blob: 49aedbe5e09449ee7286115cba77353936ddecab [file] [log] [blame]
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004# Generated automatically using autoconf version 2.13
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006#
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Defaults:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
14ac_help="$ac_help
Theodore Ts'o74becf31997-04-26 14:37:06 +000015 --with-cc=COMPILER select compiler to use"
16ac_help="$ac_help
17 --with-linker=LINKER select linker to use"
18ac_help="$ac_help
19 --with-ccopts=CCOPTS select compiler command line options"
20ac_help="$ac_help
21 --with-ldopts=LDOPTS select linker command line options"
22ac_help="$ac_help
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000023 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000024ac_help="$ac_help
Theodore Ts'oa4d09611997-04-29 14:28:00 +000025 --enable-dll-shlibs select DLL libraries"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000026ac_help="$ac_help
Theodore Ts'oa4d09611997-04-29 14:28:00 +000027 --enable-elf-shlibs select ELF shared libraries"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000028ac_help="$ac_help
Theodore Ts'oa4d09611997-04-29 14:28:00 +000029 --enable-bsd-shlibs select BSD shared libraries"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000030ac_help="$ac_help
Theodore Ts'oa4d09611997-04-29 14:28:00 +000031 --enable-profile build profiling libraries"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000032ac_help="$ac_help
Theodore Ts'oa4d09611997-04-29 14:28:00 +000033 --enable-checker build checker libraries"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000034ac_help="$ac_help
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000035 --enable-gcc-wall enable GCC anal warnings (DON'T USE IN PRODUCTION)"
Theodore Ts'oa4d09611997-04-29 14:28:00 +000036ac_help="$ac_help
37 --enable-dynamic-e2fsck build e2fsck dynamically"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000038ac_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"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000042
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
Theodore Ts'o21c84b71997-04-29 16:15:03 +000064bindir='${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'
Theodore Ts'o50e1e101997-04-26 13:58:21 +000076
77# Initialize some other variables.
78subdirs=
Theodore Ts'o21c84b71997-04-29 16:15:03 +000079MFLAGS= MAKEFLAGS=
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +000080SHELL=${CONFIG_SHELL-/bin/sh}
Theodore Ts'o21c84b71997-04-29 16:15:03 +000081# Maximum number of lines to put in a shell here document.
82ac_max_here_lines=12
Theodore Ts'o50e1e101997-04-26 13:58:21 +000083
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
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000104 -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)
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000110 ac_prev=build ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000111 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000112 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
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000121 -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
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000127 -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]
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000177 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000178 [same as prefix]
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000179 --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]
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000193 --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
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000196 --program-transform-name=PROGRAM
197 run sed PROGRAM on installed program names
198EOF
199 cat << EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000200Host 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
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000211EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000212 if test -n "$ac_help"; then
213 echo "--enable and --with options recognized:$ac_help"
214 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000215 exit 0 ;;
216
217 -host | --host | --hos | --ho)
218 ac_prev=host ;;
219 -host=* | --host=* | --hos=* | --ho=*)
220 host="$ac_optarg" ;;
221
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000222 -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
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000260 -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
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000272 -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
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000281 -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
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000321 -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
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000338 -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
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000348 -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
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000355 -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)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000364 echo "configure generated by autoconf version 2.13"
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000365 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
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000410 *)
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000411 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.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000466# 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.
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000470if test "${LANG+set}" = set; then LANG=C; export LANG; fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000471if 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
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000474
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'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000533ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000534ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000535cross_compiling=$ac_cv_prog_cc_cross
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000536
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000537ac_exeext=
538ac_objext=o
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000539if (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
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +0000552
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000553MCONFIG=./MCONFIG
554
Theodore Ts'o74becf31997-04-26 14:37:06 +0000555BINARY_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
Theodore Ts'o14790ed1999-01-12 23:32:52 +0000563if expr $YEAR ">" 1900 > /dev/null ; then
564 E2FSPROGS_YEAR=$YEAR
565elif expr $YEAR ">" 90 >/dev/null ; then
Theodore Ts'o74becf31997-04-26 14:37:06 +0000566 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
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000593
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.
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000615if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000616else { 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
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000620echo "configure:621: checking host system type" >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000621
622host_alias=$host
623case "$host_alias" in
624NONE)
625 case $nonopt in
626 NONE)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000627 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000628 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
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000634host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000635host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
636host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
637host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000638echo "$ac_t""$host" 1>&6
639
Theodore Ts'o74becf31997-04-26 14:37:06 +0000640# Check whether --with-cc or --without-cc was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000641if test "${with_cc+set}" = set; then
642 withval="$with_cc"
Theodore Ts'o74becf31997-04-26 14:37:06 +0000643 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.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000652if test "${with_linker+set}" = set; then
653 withval="$with_linker"
Theodore Ts'o74becf31997-04-26 14:37:06 +0000654 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.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000663if test "${with_ccopts+set}" = set; then
664 withval="$with_ccopts"
Theodore Ts'o74becf31997-04-26 14:37:06 +0000665 echo "$ac_t""CCOPTS is $withval" 1>&6
666CCOPTS=$withval
667CFLAGS="$CFLAGS $withval"
668else
669 CCOPTS=
670fi
671
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000672echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
673echo "configure:674: checking how to run the C preprocessor" >&5
674# On Suns, sometimes $CPP names a directory.
675if test -n "$CPP" && test -d "$CPP"; then
676 CPP=
677fi
678if test -z "$CPP"; then
679if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
680 echo $ac_n "(cached) $ac_c" 1>&6
681else
682 # This must be in double quotes, not single quotes, because CPP may get
683 # substituted into the Makefile and "${CC-cc}" will confuse make.
684 CPP="${CC-cc} -E"
685 # On the NeXT, cc -E runs the code through the compiler's parser,
686 # not just through cpp.
687 cat > conftest.$ac_ext <<EOF
688#line 689 "configure"
689#include "confdefs.h"
690#include <assert.h>
691Syntax Error
692EOF
693ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
694{ (eval echo configure:695: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
695ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
696if test -z "$ac_err"; then
697 :
698else
699 echo "$ac_err" >&5
700 echo "configure: failed program was:" >&5
701 cat conftest.$ac_ext >&5
702 rm -rf conftest*
703 CPP="${CC-cc} -E -traditional-cpp"
704 cat > conftest.$ac_ext <<EOF
705#line 706 "configure"
706#include "confdefs.h"
707#include <assert.h>
708Syntax Error
709EOF
710ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
711{ (eval echo configure:712: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
712ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
713if test -z "$ac_err"; then
714 :
715else
716 echo "$ac_err" >&5
717 echo "configure: failed program was:" >&5
718 cat conftest.$ac_ext >&5
719 rm -rf conftest*
720 CPP="${CC-cc} -nologo -E"
721 cat > conftest.$ac_ext <<EOF
722#line 723 "configure"
723#include "confdefs.h"
724#include <assert.h>
725Syntax Error
726EOF
727ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
728{ (eval echo configure:729: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
729ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
730if test -z "$ac_err"; then
731 :
732else
733 echo "$ac_err" >&5
734 echo "configure: failed program was:" >&5
735 cat conftest.$ac_ext >&5
736 rm -rf conftest*
737 CPP=/lib/cpp
738fi
739rm -f conftest*
740fi
741rm -f conftest*
742fi
743rm -f conftest*
744 ac_cv_prog_CPP="$CPP"
745fi
746 CPP="$ac_cv_prog_CPP"
747else
748 ac_cv_prog_CPP="$CPP"
749fi
750echo "$ac_t""$CPP" 1>&6
751
752ac_safe=`echo "linux/fs.h" | sed 'y%./+-%__p_%'`
753echo $ac_n "checking for linux/fs.h""... $ac_c" 1>&6
754echo "configure:755: checking for linux/fs.h" >&5
755if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
756 echo $ac_n "(cached) $ac_c" 1>&6
757else
758 cat > conftest.$ac_ext <<EOF
759#line 760 "configure"
760#include "confdefs.h"
761#include <linux/fs.h>
762EOF
763ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
764{ (eval echo configure:765: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
765ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
766if test -z "$ac_err"; then
767 rm -rf conftest*
768 eval "ac_cv_header_$ac_safe=yes"
769else
770 echo "$ac_err" >&5
771 echo "configure: failed program was:" >&5
772 cat conftest.$ac_ext >&5
773 rm -rf conftest*
774 eval "ac_cv_header_$ac_safe=no"
775fi
776rm -f conftest*
777fi
778if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
779 echo "$ac_t""yes" 1>&6
780 linux_headers=yes
781else
782 echo "$ac_t""no" 1>&6
783linux_headers=no
784fi
785
786if test "$linux_headers" = yes; then
787 cat >> confdefs.h <<\EOF
788#define HAVE_LINUX_FS_H 1
789EOF
790
791else
792 LINUX_INCLUDE='-I$(top_srcdir)/include -I$(top_builddir)/include'
793 # Use this include directory with test compiles in the configure script too.
794 CPPFLAGS="$CPPFLAGS -I$srcdir/include -I./include"
795fi
796
Theodore Ts'oa4d09611997-04-29 14:28:00 +0000797LIB_EXT=.a
798STATIC_LIB_EXT=.a
799PROFILE_LIB_EXT=.a
Theodore Ts'o74becf31997-04-26 14:37:06 +0000800# Check whether --with-ldopts or --without-ldopts was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000801if test "${with_ldopts+set}" = set; then
802 withval="$with_ldopts"
Theodore Ts'o74becf31997-04-26 14:37:06 +0000803 echo "$ac_t""LDFLAGS is $withval" 1>&6
804LDFLAGS=$withval
805else
806 LDFLAGS=
807fi
808
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +0000809# Check whether --with-root-prefix or --without-root-prefix was given.
810if test "${with_root_prefix+set}" = set; then
811 withval="$with_root_prefix"
812 root_prefix=$withval
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000813else
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +0000814 root_prefix=NONE
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000815fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000816# Check whether --enable-dll-shlibs or --disable-dll-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000817if test "${enable_dll_shlibs+set}" = set; then
818 enableval="$enable_dll_shlibs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000819 if test "$enableval" = "no"
820then
821 DLL_CMT=#
822 MAKEFILE_DLL=/dev/null
823 echo "Disabling DLL shared libraries"
824else
825 DLL_CMT=
826 MAKEFILE_DLL=$srcdir/lib/Makefile.dll-lib
Theodore Ts'o74becf31997-04-26 14:37:06 +0000827 BINARY_TYPE=dllbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +0000828 LIB_EXT=.sa
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000829 echo "Enabling DLL shared libraries"
830fi
831
832else
833 MAKEFILE_DLL=/dev/null
834DLL_CMT=#
835echo "Disabling DLL shared libraries by default"
836
837fi
838
839
840
841# Check whether --enable-elf-shlibs or --disable-elf-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000842if test "${enable_elf_shlibs+set}" = set; then
843 enableval="$enable_elf_shlibs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000844 if test "$enableval" = "no"
845then
846 ELF_CMT=#
847 MAKEFILE_ELF=/dev/null
848 echo "Disabling ELF shared libraries"
849else
850 ELF_CMT=
851 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
Theodore Ts'o74becf31997-04-26 14:37:06 +0000852 BINARY_TYPE=elfbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +0000853 LIB_EXT=.so
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000854 echo "Enabling ELF shared libraries"
855fi
856
857else
858 MAKEFILE_ELF=/dev/null
859ELF_CMT=#
860echo "Disabling ELF shared libraries by default"
861
862fi
863
864
865
866# Check whether --enable-bsd-shlibs or --disable-bsd-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000867if test "${enable_bsd_shlibs+set}" = set; then
868 enableval="$enable_bsd_shlibs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000869 if test "$enableval" = "no"
870then
871 BSDLIB_CMT=#
872 MAKEFILE_BSDLIB=/dev/null
873 echo "Disabling BSD shared libraries"
874else
875 BSDLIB_CMT=
876 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
Theodore Ts'oa4d09611997-04-29 14:28:00 +0000877 LIB_EXT=.so
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000878 echo "Enabling BSD shared libraries"
879fi
880
881else
882 MAKEFILE_BSDLIB=/dev/null
883BSDLIB_CMT=#
884echo "Disabling BSD shared libraries by default"
885
886fi
887
888
889
890# Check whether --enable-profile or --disable-profile was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000891if test "${enable_profile+set}" = set; then
892 enableval="$enable_profile"
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000893 if test "$enableval" = "no"
894then
895 PROFILE_CMT=#
896 MAKEFILE_PROFILE=/dev/null
897 echo "Disabling profiling libraries"
898else
899 PROFILE_CMT=
900 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
Theodore Ts'oa4d09611997-04-29 14:28:00 +0000901 PROFILED_LIB_EXT=_p.a
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000902 echo "Building profiling libraries"
903fi
904
905else
906 PROFILE_CMT=#
907MAKEFILE_PROFILE=/dev/null
908echo "Disabling profiling libraries by default"
909
910fi
911
912
913
914# Check whether --enable-checker or --disable-checker was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000915if test "${enable_checker+set}" = set; then
916 enableval="$enable_checker"
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000917 if test "$enableval" = "no"
918then
919 CHECKER_CMT=#
920 MAKEFILE_CHECKER=/dev/null
921 echo "Disabling checker libraries"
922else
923 CHECKER_CMT=
924 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
925 echo "Building checker libraries"
926fi
927
928else
929 CHECKER_CMT=#
930MAKEFILE_CHECKER=/dev/null
931echo "Disabling checker libraries by default"
932
933fi
934
935
936
Theodore Ts'oa4d09611997-04-29 14:28:00 +0000937
938
939
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000940# Check whether --enable-gcc-wall or --disable-gcc-wall was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000941if test "${enable_gcc_wall+set}" = set; then
942 enableval="$enable_gcc_wall"
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000943 if test "$enableval" = "no"
944then
945 W=#
946 echo "Disabling GCC warnings"
947else
948 W=
949 echo "Enabling GCC warnings"
950fi
951
952else
953 W=#
954echo "Disabling GCC warnings by default"
955
956fi
957
958
Theodore Ts'oa4d09611997-04-29 14:28:00 +0000959# Check whether --enable-dynamic-e2fsck or --disable-dynamic-e2fsck was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000960if test "${enable_dynamic_e2fsck+set}" = set; then
961 enableval="$enable_dynamic_e2fsck"
Theodore Ts'oa4d09611997-04-29 14:28:00 +0000962 if test "$enableval" = "no"
963then
964 E2FSCK_TYPE=static
965 echo "Building e2fsck statically"
966else
967 E2FSCK_TYPE=shared
968 echo "Building e2fsck dynamically"
969fi
970
971else
972 E2FSCK_TYPE=static
973echo "Building e2fsck statically by default"
974
975fi
976
977
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000978# Check whether --enable-fsck or --disable-fsck was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000979if test "${enable_fsck+set}" = set; then
980 enableval="$enable_fsck"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000981 if test "$enableval" = "no"
982then
983 FSCK_PROG='' FSCK_MAN=''
984 echo "Not building fsck wrapper"
985else
986 FSCK_PROG=fsck FSCK_MAN=fsck.8
987 echo "Building fsck wrapper"
988fi
989
990else
991 case "$host_os" in
992 gnu*)
993 FSCK_PROG='' FSCK_MAN=''
994 echo "Not building fsck wrapper by default"
995 ;;
996 *)
997 FSCK_PROG=fsck FSCK_MAN=fsck.8
998 echo "Building fsck wrapper by default"
999esac
1000
1001fi
1002
1003
1004
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001005MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
1006
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001007# Check whether --enable-old-bitops or --disable-old-bitops was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001008if test "${enable_old_bitops+set}" = set; then
1009 enableval="$enable_old_bitops"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001010 if test "$enableval" = "no"
1011then
1012 echo "Using new (standard) bitmask operations"
1013else
1014 cat >> confdefs.h <<\EOF
1015#define EXT2_OLD_BITOPS 1
1016EOF
1017
1018 echo "Using old (native) bitmask operations"
1019
1020fi
1021
1022else
1023 echo "Using standard bitmask operations by default"
1024
1025fi
1026
Theodore Ts'o74becf31997-04-26 14:37:06 +00001027
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001028echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001029echo "configure:1030: checking whether ${MAKE-make} sets \${MAKE}" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001030set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001031if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1032 echo $ac_n "(cached) $ac_c" 1>&6
1033else
1034 cat > conftestmake <<\EOF
1035all:
1036 @echo 'ac_maketemp="${MAKE}"'
1037EOF
1038# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1039eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1040if test -n "$ac_maketemp"; then
1041 eval ac_cv_prog_make_${ac_make}_set=yes
1042else
1043 eval ac_cv_prog_make_${ac_make}_set=no
1044fi
1045rm -f conftestmake
1046fi
1047if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1048 echo "$ac_t""yes" 1>&6
1049 SET_MAKE=
1050else
1051 echo "$ac_t""no" 1>&6
1052 SET_MAKE="MAKE=${MAKE-make}"
1053fi
1054
1055# Extract the first word of "ln", so it can be a program name with args.
1056set dummy ln; ac_word=$2
1057echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001058echo "configure:1059: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001059if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then
1060 echo $ac_n "(cached) $ac_c" 1>&6
1061else
1062 case "$LN" in
1063 /*)
1064 ac_cv_path_LN="$LN" # Let the user override the test with a path.
1065 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001066 ?:/*)
1067 ac_cv_path_LN="$LN" # Let the user override the test with a dos path.
1068 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001069 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001070 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1071 ac_dummy="$PATH"
1072 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001073 test -z "$ac_dir" && ac_dir=.
1074 if test -f $ac_dir/$ac_word; then
1075 ac_cv_path_LN="$ac_dir/$ac_word"
1076 break
1077 fi
1078 done
1079 IFS="$ac_save_ifs"
1080 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
1081 ;;
1082esac
1083fi
1084LN="$ac_cv_path_LN"
1085if test -n "$LN"; then
1086 echo "$ac_t""$LN" 1>&6
1087else
1088 echo "$ac_t""no" 1>&6
1089fi
1090
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001091echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001092echo "configure:1093: checking whether ln -s works" >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001093if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1094 echo $ac_n "(cached) $ac_c" 1>&6
1095else
1096 rm -f conftestdata
1097if ln -s X conftestdata 2>/dev/null
1098then
1099 rm -f conftestdata
1100 ac_cv_prog_LN_S="ln -s"
1101else
1102 ac_cv_prog_LN_S=ln
1103fi
1104fi
1105LN_S="$ac_cv_prog_LN_S"
1106if test "$ac_cv_prog_LN_S" = "ln -s"; then
1107 echo "$ac_t""yes" 1>&6
1108else
1109 echo "$ac_t""no" 1>&6
1110fi
1111
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001112# Extract the first word of "mv", so it can be a program name with args.
1113set dummy mv; ac_word=$2
1114echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001115echo "configure:1116: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001116if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
1117 echo $ac_n "(cached) $ac_c" 1>&6
1118else
1119 case "$MV" in
1120 /*)
1121 ac_cv_path_MV="$MV" # Let the user override the test with a path.
1122 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001123 ?:/*)
1124 ac_cv_path_MV="$MV" # Let the user override the test with a dos path.
1125 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001126 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001127 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1128 ac_dummy="$PATH"
1129 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001130 test -z "$ac_dir" && ac_dir=.
1131 if test -f $ac_dir/$ac_word; then
1132 ac_cv_path_MV="$ac_dir/$ac_word"
1133 break
1134 fi
1135 done
1136 IFS="$ac_save_ifs"
1137 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
1138 ;;
1139esac
1140fi
1141MV="$ac_cv_path_MV"
1142if test -n "$MV"; then
1143 echo "$ac_t""$MV" 1>&6
1144else
1145 echo "$ac_t""no" 1>&6
1146fi
1147
1148# Extract the first word of "cp", so it can be a program name with args.
1149set dummy cp; ac_word=$2
1150echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001151echo "configure:1152: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001152if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then
1153 echo $ac_n "(cached) $ac_c" 1>&6
1154else
1155 case "$CP" in
1156 /*)
1157 ac_cv_path_CP="$CP" # Let the user override the test with a path.
1158 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001159 ?:/*)
1160 ac_cv_path_CP="$CP" # Let the user override the test with a dos path.
1161 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001162 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001163 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1164 ac_dummy="$PATH"
1165 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001166 test -z "$ac_dir" && ac_dir=.
1167 if test -f $ac_dir/$ac_word; then
1168 ac_cv_path_CP="$ac_dir/$ac_word"
1169 break
1170 fi
1171 done
1172 IFS="$ac_save_ifs"
1173 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
1174 ;;
1175esac
1176fi
1177CP="$ac_cv_path_CP"
1178if test -n "$CP"; then
1179 echo "$ac_t""$CP" 1>&6
1180else
1181 echo "$ac_t""no" 1>&6
1182fi
1183
1184# Extract the first word of "rm", so it can be a program name with args.
1185set dummy rm; ac_word=$2
1186echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001187echo "configure:1188: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001188if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
1189 echo $ac_n "(cached) $ac_c" 1>&6
1190else
1191 case "$RM" in
1192 /*)
1193 ac_cv_path_RM="$RM" # Let the user override the test with a path.
1194 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001195 ?:/*)
1196 ac_cv_path_RM="$RM" # Let the user override the test with a dos path.
1197 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001198 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001199 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1200 ac_dummy="$PATH"
1201 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001202 test -z "$ac_dir" && ac_dir=.
1203 if test -f $ac_dir/$ac_word; then
1204 ac_cv_path_RM="$ac_dir/$ac_word"
1205 break
1206 fi
1207 done
1208 IFS="$ac_save_ifs"
1209 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
1210 ;;
1211esac
1212fi
1213RM="$ac_cv_path_RM"
1214if test -n "$RM"; then
1215 echo "$ac_t""$RM" 1>&6
1216else
1217 echo "$ac_t""no" 1>&6
1218fi
1219
1220# Extract the first word of "chmod", so it can be a program name with args.
1221set dummy chmod; ac_word=$2
1222echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001223echo "configure:1224: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001224if eval "test \"`echo '$''{'ac_cv_path_CHMOD'+set}'`\" = set"; then
1225 echo $ac_n "(cached) $ac_c" 1>&6
1226else
1227 case "$CHMOD" in
1228 /*)
1229 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
1230 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001231 ?:/*)
1232 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a dos path.
1233 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001234 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001235 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1236 ac_dummy="$PATH"
1237 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001238 test -z "$ac_dir" && ac_dir=.
1239 if test -f $ac_dir/$ac_word; then
1240 ac_cv_path_CHMOD="$ac_dir/$ac_word"
1241 break
1242 fi
1243 done
1244 IFS="$ac_save_ifs"
1245 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
1246 ;;
1247esac
1248fi
1249CHMOD="$ac_cv_path_CHMOD"
1250if test -n "$CHMOD"; then
1251 echo "$ac_t""$CHMOD" 1>&6
1252else
1253 echo "$ac_t""no" 1>&6
1254fi
1255
1256# Extract the first word of "awk", so it can be a program name with args.
1257set dummy awk; ac_word=$2
1258echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001259echo "configure:1260: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001260if eval "test \"`echo '$''{'ac_cv_path_AWK'+set}'`\" = set"; then
1261 echo $ac_n "(cached) $ac_c" 1>&6
1262else
1263 case "$AWK" in
1264 /*)
1265 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
1266 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001267 ?:/*)
1268 ac_cv_path_AWK="$AWK" # Let the user override the test with a dos path.
1269 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001270 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001271 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1272 ac_dummy="$PATH"
1273 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001274 test -z "$ac_dir" && ac_dir=.
1275 if test -f $ac_dir/$ac_word; then
1276 ac_cv_path_AWK="$ac_dir/$ac_word"
1277 break
1278 fi
1279 done
1280 IFS="$ac_save_ifs"
1281 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
1282 ;;
1283esac
1284fi
1285AWK="$ac_cv_path_AWK"
1286if test -n "$AWK"; then
1287 echo "$ac_t""$AWK" 1>&6
1288else
1289 echo "$ac_t""no" 1>&6
1290fi
1291
1292# Extract the first word of "sed", so it can be a program name with args.
1293set dummy sed; ac_word=$2
1294echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001295echo "configure:1296: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001296if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then
1297 echo $ac_n "(cached) $ac_c" 1>&6
1298else
1299 case "$SED" in
1300 /*)
1301 ac_cv_path_SED="$SED" # Let the user override the test with a path.
1302 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001303 ?:/*)
1304 ac_cv_path_SED="$SED" # Let the user override the test with a dos path.
1305 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001306 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001307 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1308 ac_dummy="$PATH"
1309 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001310 test -z "$ac_dir" && ac_dir=.
1311 if test -f $ac_dir/$ac_word; then
1312 ac_cv_path_SED="$ac_dir/$ac_word"
1313 break
1314 fi
1315 done
1316 IFS="$ac_save_ifs"
1317 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
1318 ;;
1319esac
1320fi
1321SED="$ac_cv_path_SED"
1322if test -n "$SED"; then
1323 echo "$ac_t""$SED" 1>&6
1324else
1325 echo "$ac_t""no" 1>&6
1326fi
1327
Theodore Ts'o9d564f71999-07-03 20:25:58 +00001328# Extract the first word of "perl", so it can be a program name with args.
1329set dummy perl; ac_word=$2
1330echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001331echo "configure:1332: checking for $ac_word" >&5
Theodore Ts'o9d564f71999-07-03 20:25:58 +00001332if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
1333 echo $ac_n "(cached) $ac_c" 1>&6
1334else
1335 case "$PERL" in
1336 /*)
1337 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
1338 ;;
1339 ?:/*)
1340 ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
1341 ;;
1342 *)
1343 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1344 ac_dummy="$PATH"
1345 for ac_dir in $ac_dummy; do
1346 test -z "$ac_dir" && ac_dir=.
1347 if test -f $ac_dir/$ac_word; then
1348 ac_cv_path_PERL="$ac_dir/$ac_word"
1349 break
1350 fi
1351 done
1352 IFS="$ac_save_ifs"
1353 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
1354 ;;
1355esac
1356fi
1357PERL="$ac_cv_path_PERL"
1358if test -n "$PERL"; then
1359 echo "$ac_t""$PERL" 1>&6
1360else
1361 echo "$ac_t""no" 1>&6
1362fi
1363
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001364echo $ac_n "checking build system type""... $ac_c" 1>&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001365echo "configure:1366: checking build system type" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001366
1367build_alias=$build
1368case "$build_alias" in
1369NONE)
1370 case $nonopt in
1371 NONE) build_alias=$host_alias ;;
1372 *) build_alias=$nonopt ;;
1373 esac ;;
1374esac
1375
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001376build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001377build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1378build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1379build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001380echo "$ac_t""$build" 1>&6
1381
1382if test $host != $build; then
1383 ac_tool_prefix=${host_alias}-
1384else
1385 ac_tool_prefix=
1386fi
1387
1388# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1389set dummy ${ac_tool_prefix}ar; ac_word=$2
1390echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001391echo "configure:1392: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001392if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1393 echo $ac_n "(cached) $ac_c" 1>&6
1394else
1395 if test -n "$AR"; then
1396 ac_cv_prog_AR="$AR" # Let the user override the test.
1397else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001398 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1399 ac_dummy="$PATH"
1400 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001401 test -z "$ac_dir" && ac_dir=.
1402 if test -f $ac_dir/$ac_word; then
1403 ac_cv_prog_AR="${ac_tool_prefix}ar"
1404 break
1405 fi
1406 done
1407 IFS="$ac_save_ifs"
1408fi
1409fi
1410AR="$ac_cv_prog_AR"
1411if test -n "$AR"; then
1412 echo "$ac_t""$AR" 1>&6
1413else
1414 echo "$ac_t""no" 1>&6
1415fi
1416
1417
1418if test -z "$ac_cv_prog_AR"; then
1419if test -n "$ac_tool_prefix"; then
1420 # Extract the first word of "ar", so it can be a program name with args.
1421set dummy ar; ac_word=$2
1422echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001423echo "configure:1424: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001424if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1425 echo $ac_n "(cached) $ac_c" 1>&6
1426else
1427 if test -n "$AR"; then
1428 ac_cv_prog_AR="$AR" # Let the user override the test.
1429else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001430 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1431 ac_dummy="$PATH"
1432 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001433 test -z "$ac_dir" && ac_dir=.
1434 if test -f $ac_dir/$ac_word; then
1435 ac_cv_prog_AR="ar"
1436 break
1437 fi
1438 done
1439 IFS="$ac_save_ifs"
1440 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1441fi
1442fi
1443AR="$ac_cv_prog_AR"
1444if test -n "$AR"; then
1445 echo "$ac_t""$AR" 1>&6
1446else
1447 echo "$ac_t""no" 1>&6
1448fi
1449
1450else
1451 AR="ar"
1452fi
1453fi
1454
1455# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1456set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1457echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001458echo "configure:1459: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001459if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1460 echo $ac_n "(cached) $ac_c" 1>&6
1461else
1462 if test -n "$RANLIB"; then
1463 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1464else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001465 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1466 ac_dummy="$PATH"
1467 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001468 test -z "$ac_dir" && ac_dir=.
1469 if test -f $ac_dir/$ac_word; then
1470 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1471 break
1472 fi
1473 done
1474 IFS="$ac_save_ifs"
1475fi
1476fi
1477RANLIB="$ac_cv_prog_RANLIB"
1478if test -n "$RANLIB"; then
1479 echo "$ac_t""$RANLIB" 1>&6
1480else
1481 echo "$ac_t""no" 1>&6
1482fi
1483
1484
1485if test -z "$ac_cv_prog_RANLIB"; then
1486if test -n "$ac_tool_prefix"; then
1487 # Extract the first word of "ranlib", so it can be a program name with args.
1488set dummy ranlib; ac_word=$2
1489echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001490echo "configure:1491: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001491if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1492 echo $ac_n "(cached) $ac_c" 1>&6
1493else
1494 if test -n "$RANLIB"; then
1495 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1496else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001497 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1498 ac_dummy="$PATH"
1499 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001500 test -z "$ac_dir" && ac_dir=.
1501 if test -f $ac_dir/$ac_word; then
1502 ac_cv_prog_RANLIB="ranlib"
1503 break
1504 fi
1505 done
1506 IFS="$ac_save_ifs"
1507 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1508fi
1509fi
1510RANLIB="$ac_cv_prog_RANLIB"
1511if test -n "$RANLIB"; then
1512 echo "$ac_t""$RANLIB" 1>&6
1513else
1514 echo "$ac_t""no" 1>&6
1515fi
1516
1517else
1518 RANLIB=":"
1519fi
1520fi
1521
1522# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1523set dummy ${ac_tool_prefix}strip; ac_word=$2
1524echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001525echo "configure:1526: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001526if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1527 echo $ac_n "(cached) $ac_c" 1>&6
1528else
1529 if test -n "$STRIP"; then
1530 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1531else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001532 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1533 ac_dummy="$PATH"
1534 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001535 test -z "$ac_dir" && ac_dir=.
1536 if test -f $ac_dir/$ac_word; then
1537 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1538 break
1539 fi
1540 done
1541 IFS="$ac_save_ifs"
1542fi
1543fi
1544STRIP="$ac_cv_prog_STRIP"
1545if test -n "$STRIP"; then
1546 echo "$ac_t""$STRIP" 1>&6
1547else
1548 echo "$ac_t""no" 1>&6
1549fi
1550
1551
1552if test -z "$ac_cv_prog_STRIP"; then
1553if test -n "$ac_tool_prefix"; then
1554 # Extract the first word of "strip", so it can be a program name with args.
1555set dummy strip; ac_word=$2
1556echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001557echo "configure:1558: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001558if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1559 echo $ac_n "(cached) $ac_c" 1>&6
1560else
1561 if test -n "$STRIP"; then
1562 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1563else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001564 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1565 ac_dummy="$PATH"
1566 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001567 test -z "$ac_dir" && ac_dir=.
1568 if test -f $ac_dir/$ac_word; then
1569 ac_cv_prog_STRIP="strip"
1570 break
1571 fi
1572 done
1573 IFS="$ac_save_ifs"
1574 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
1575fi
1576fi
1577STRIP="$ac_cv_prog_STRIP"
1578if test -n "$STRIP"; then
1579 echo "$ac_t""$STRIP" 1>&6
1580else
1581 echo "$ac_t""no" 1>&6
1582fi
1583
1584else
1585 STRIP=":"
1586fi
1587fi
1588
1589# Extract the first word of "gcc", so it can be a program name with args.
1590set dummy gcc; ac_word=$2
1591echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001592echo "configure:1593: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001593if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1594 echo $ac_n "(cached) $ac_c" 1>&6
1595else
1596 if test -n "$CC"; then
1597 ac_cv_prog_CC="$CC" # Let the user override the test.
1598else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001599 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1600 ac_dummy="$PATH"
1601 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001602 test -z "$ac_dir" && ac_dir=.
1603 if test -f $ac_dir/$ac_word; then
1604 ac_cv_prog_CC="gcc"
1605 break
1606 fi
1607 done
1608 IFS="$ac_save_ifs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001609fi
1610fi
1611CC="$ac_cv_prog_CC"
1612if test -n "$CC"; then
1613 echo "$ac_t""$CC" 1>&6
1614else
1615 echo "$ac_t""no" 1>&6
1616fi
1617
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001618if test -z "$CC"; then
1619 # Extract the first word of "cc", so it can be a program name with args.
1620set dummy cc; ac_word=$2
1621echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001622echo "configure:1623: checking for $ac_word" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001623if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1624 echo $ac_n "(cached) $ac_c" 1>&6
1625else
1626 if test -n "$CC"; then
1627 ac_cv_prog_CC="$CC" # Let the user override the test.
1628else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001629 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001630 ac_prog_rejected=no
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001631 ac_dummy="$PATH"
1632 for ac_dir in $ac_dummy; do
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001633 test -z "$ac_dir" && ac_dir=.
1634 if test -f $ac_dir/$ac_word; then
1635 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1636 ac_prog_rejected=yes
1637 continue
1638 fi
1639 ac_cv_prog_CC="cc"
1640 break
1641 fi
1642 done
1643 IFS="$ac_save_ifs"
1644if test $ac_prog_rejected = yes; then
1645 # We found a bogon in the path, so make sure we never use it.
1646 set dummy $ac_cv_prog_CC
1647 shift
1648 if test $# -gt 0; then
1649 # We chose a different compiler from the bogus one.
1650 # However, it has the same basename, so the bogon will be chosen
1651 # first if we set CC to just the basename; use the full file name.
1652 shift
1653 set dummy "$ac_dir/$ac_word" "$@"
1654 shift
1655 ac_cv_prog_CC="$@"
1656 fi
1657fi
1658fi
1659fi
1660CC="$ac_cv_prog_CC"
1661if test -n "$CC"; then
1662 echo "$ac_t""$CC" 1>&6
1663else
1664 echo "$ac_t""no" 1>&6
1665fi
1666
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001667 if test -z "$CC"; then
1668 case "`uname -s`" in
1669 *win32* | *WIN32*)
1670 # Extract the first word of "cl", so it can be a program name with args.
1671set dummy cl; ac_word=$2
1672echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001673echo "configure:1674: checking for $ac_word" >&5
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001674if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1675 echo $ac_n "(cached) $ac_c" 1>&6
1676else
1677 if test -n "$CC"; then
1678 ac_cv_prog_CC="$CC" # Let the user override the test.
1679else
1680 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1681 ac_dummy="$PATH"
1682 for ac_dir in $ac_dummy; do
1683 test -z "$ac_dir" && ac_dir=.
1684 if test -f $ac_dir/$ac_word; then
1685 ac_cv_prog_CC="cl"
1686 break
1687 fi
1688 done
1689 IFS="$ac_save_ifs"
1690fi
1691fi
1692CC="$ac_cv_prog_CC"
1693if test -n "$CC"; then
1694 echo "$ac_t""$CC" 1>&6
1695else
1696 echo "$ac_t""no" 1>&6
1697fi
1698 ;;
1699 esac
1700 fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001701 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1702fi
1703
1704echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001705echo "configure:1706: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001706
1707ac_ext=c
1708# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1709ac_cpp='$CPP $CPPFLAGS'
1710ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001711ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001712cross_compiling=$ac_cv_prog_cc_cross
1713
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001714cat > conftest.$ac_ext << EOF
1715
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001716#line 1717 "configure"
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001717#include "confdefs.h"
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001718
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001719main(){return(0);}
1720EOF
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001721if { (eval echo configure:1722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001722 ac_cv_prog_cc_works=yes
1723 # If we can't run a trivial program, we are probably using a cross compiler.
1724 if (./conftest; exit) 2>/dev/null; then
1725 ac_cv_prog_cc_cross=no
1726 else
1727 ac_cv_prog_cc_cross=yes
1728 fi
1729else
1730 echo "configure: failed program was:" >&5
1731 cat conftest.$ac_ext >&5
1732 ac_cv_prog_cc_works=no
1733fi
1734rm -fr conftest*
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001735ac_ext=c
1736# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1737ac_cpp='$CPP $CPPFLAGS'
1738ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1739ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1740cross_compiling=$ac_cv_prog_cc_cross
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001741
1742echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1743if test $ac_cv_prog_cc_works = no; then
1744 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1745fi
1746echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001747echo "configure:1748: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001748echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1749cross_compiling=$ac_cv_prog_cc_cross
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001750
1751echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001752echo "configure:1753: checking whether we are using GNU C" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001753if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1754 echo $ac_n "(cached) $ac_c" 1>&6
1755else
1756 cat > conftest.c <<EOF
1757#ifdef __GNUC__
1758 yes;
1759#endif
1760EOF
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001761if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1762: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001762 ac_cv_prog_gcc=yes
1763else
1764 ac_cv_prog_gcc=no
1765fi
1766fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001767
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001768echo "$ac_t""$ac_cv_prog_gcc" 1>&6
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001769
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001770if test $ac_cv_prog_gcc = yes; then
1771 GCC=yes
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001772else
1773 GCC=
1774fi
1775
1776ac_test_CFLAGS="${CFLAGS+set}"
1777ac_save_CFLAGS="$CFLAGS"
1778CFLAGS=
1779echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001780echo "configure:1781: checking whether ${CC-cc} accepts -g" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001781if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001782 echo $ac_n "(cached) $ac_c" 1>&6
1783else
1784 echo 'void f(){}' > conftest.c
1785if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001786 ac_cv_prog_cc_g=yes
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001787else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001788 ac_cv_prog_cc_g=no
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001789fi
1790rm -f conftest*
1791
1792fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001793
1794echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001795if test "$ac_test_CFLAGS" = set; then
1796 CFLAGS="$ac_save_CFLAGS"
1797elif test $ac_cv_prog_cc_g = yes; then
1798 if test "$GCC" = yes; then
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001799 CFLAGS="-g -O2"
1800 else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001801 CFLAGS="-g"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001802 fi
1803else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001804 if test "$GCC" = yes; then
1805 CFLAGS="-O2"
1806 else
1807 CFLAGS=
1808 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001809fi
1810
1811# Find a good install program. We prefer a C program (faster),
1812# so one script is as good as another. But avoid the broken or
1813# incompatible versions:
1814# SysV /etc/install, /usr/sbin/install
1815# SunOS /usr/etc/install
1816# IRIX /sbin/install
1817# AIX /bin/install
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001818# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001819# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1820# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1821# ./install, which can be erroneously created by make from ./install.sh.
1822echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001823echo "configure:1824: checking for a BSD compatible install" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001824if test -z "$INSTALL"; then
1825if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1826 echo $ac_n "(cached) $ac_c" 1>&6
1827else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001828 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001829 for ac_dir in $PATH; do
1830 # Account for people who put trailing slashes in PATH elements.
1831 case "$ac_dir/" in
1832 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1833 *)
1834 # OSF1 and SCO ODT 3.0 have their own names for install.
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001835 # Don't use installbsd from OSF since it installs stuff as root
1836 # by default.
1837 for ac_prog in ginstall scoinst install; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001838 if test -f $ac_dir/$ac_prog; then
1839 if test $ac_prog = install &&
1840 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1841 # AIX install. It has an incompatible calling convention.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001842 :
1843 else
1844 ac_cv_path_install="$ac_dir/$ac_prog -c"
1845 break 2
1846 fi
1847 fi
1848 done
1849 ;;
1850 esac
1851 done
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001852 IFS="$ac_save_IFS"
1853
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001854fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001855 if test "${ac_cv_path_install+set}" = set; then
1856 INSTALL="$ac_cv_path_install"
1857 else
1858 # As a last resort, use the slow shell script. We don't cache a
1859 # path for INSTALL within a source directory, because that will
1860 # break other packages using the cache if that directory is
1861 # removed, or if the path is relative.
1862 INSTALL="$ac_install_sh"
1863 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001864fi
1865echo "$ac_t""$INSTALL" 1>&6
1866
1867# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1868# It thinks the first close brace ends the variable substitution.
1869test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1870
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001871test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1872
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001873test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1874
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001875
Theodore Ts'o6c133521999-07-03 20:37:03 +00001876# See if we need a separate native compiler.
1877if test $cross_compiling = no; then
1878 BUILD_CC="$CC"
1879
1880else
1881 for ac_prog in gcc cc
1882do
1883# Extract the first word of "$ac_prog", so it can be a program name with args.
1884set dummy $ac_prog; ac_word=$2
1885echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001886echo "configure:1887: checking for $ac_word" >&5
Theodore Ts'o6c133521999-07-03 20:37:03 +00001887if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
1888 echo $ac_n "(cached) $ac_c" 1>&6
1889else
1890 if test -n "$BUILD_CC"; then
1891 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
1892else
1893 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1894 ac_dummy="$PATH"
1895 for ac_dir in $ac_dummy; do
1896 test -z "$ac_dir" && ac_dir=.
1897 if test -f $ac_dir/$ac_word; then
1898 ac_cv_prog_BUILD_CC="$ac_prog"
1899 break
1900 fi
1901 done
1902 IFS="$ac_save_ifs"
1903fi
1904fi
1905BUILD_CC="$ac_cv_prog_BUILD_CC"
1906if test -n "$BUILD_CC"; then
1907 echo "$ac_t""$BUILD_CC" 1>&6
1908else
1909 echo "$ac_t""no" 1>&6
1910fi
1911
1912test -n "$BUILD_CC" && break
1913done
1914
1915fi
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00001916for ac_hdr in stdlib.h unistd.h stdarg.h errno.h malloc.h mntent.h paths.h dirent.h getopt.h setjmp.h signal.h 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
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001917do
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001918ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001919echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001920echo "configure:1921: checking for $ac_hdr" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001921if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1922 echo $ac_n "(cached) $ac_c" 1>&6
1923else
1924 cat > conftest.$ac_ext <<EOF
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001925#line 1926 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001926#include "confdefs.h"
1927#include <$ac_hdr>
1928EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001929ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001930{ (eval echo configure:1931: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001931ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001932if test -z "$ac_err"; then
1933 rm -rf conftest*
1934 eval "ac_cv_header_$ac_safe=yes"
1935else
1936 echo "$ac_err" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001937 echo "configure: failed program was:" >&5
1938 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001939 rm -rf conftest*
1940 eval "ac_cv_header_$ac_safe=no"
1941fi
1942rm -f conftest*
1943fi
1944if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1945 echo "$ac_t""yes" 1>&6
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001946 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001947 cat >> confdefs.h <<EOF
1948#define $ac_tr_hdr 1
1949EOF
1950
1951else
1952 echo "$ac_t""no" 1>&6
1953fi
1954done
1955
1956echo $ac_n "checking for vprintf""... $ac_c" 1>&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001957echo "configure:1958: checking for vprintf" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001958if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
1959 echo $ac_n "(cached) $ac_c" 1>&6
1960else
1961 cat > conftest.$ac_ext <<EOF
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001962#line 1963 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001963#include "confdefs.h"
1964/* System header to define __stub macros and hopefully few prototypes,
1965 which can conflict with char vprintf(); below. */
1966#include <assert.h>
1967/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001968/* We use char because int might match the return type of a gcc2
1969 builtin and then its argument prototype would still apply. */
1970char vprintf();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001971
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001972int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001973
1974/* The GNU C library defines this for functions which it implements
1975 to always fail with ENOSYS. Some functions are actually named
1976 something starting with __ and the normal name is an alias. */
1977#if defined (__stub_vprintf) || defined (__stub___vprintf)
1978choke me
1979#else
1980vprintf();
1981#endif
1982
1983; return 0; }
1984EOF
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001985if { (eval echo configure:1986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001986 rm -rf conftest*
1987 eval "ac_cv_func_vprintf=yes"
1988else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001989 echo "configure: failed program was:" >&5
1990 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001991 rm -rf conftest*
1992 eval "ac_cv_func_vprintf=no"
1993fi
1994rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001995fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001996
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001997if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
1998 echo "$ac_t""yes" 1>&6
1999 cat >> confdefs.h <<\EOF
2000#define HAVE_VPRINTF 1
2001EOF
2002
2003else
2004 echo "$ac_t""no" 1>&6
2005fi
2006
2007if test "$ac_cv_func_vprintf" != yes; then
2008echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002009echo "configure:2010: checking for _doprnt" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002010if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2011 echo $ac_n "(cached) $ac_c" 1>&6
2012else
2013 cat > conftest.$ac_ext <<EOF
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002014#line 2015 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002015#include "confdefs.h"
2016/* System header to define __stub macros and hopefully few prototypes,
2017 which can conflict with char _doprnt(); below. */
2018#include <assert.h>
2019/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002020/* We use char because int might match the return type of a gcc2
2021 builtin and then its argument prototype would still apply. */
2022char _doprnt();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002023
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002024int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002025
2026/* The GNU C library defines this for functions which it implements
2027 to always fail with ENOSYS. Some functions are actually named
2028 something starting with __ and the normal name is an alias. */
2029#if defined (__stub__doprnt) || defined (__stub____doprnt)
2030choke me
2031#else
2032_doprnt();
2033#endif
2034
2035; return 0; }
2036EOF
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002037if { (eval echo configure:2038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002038 rm -rf conftest*
2039 eval "ac_cv_func__doprnt=yes"
2040else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002041 echo "configure: failed program was:" >&5
2042 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002043 rm -rf conftest*
2044 eval "ac_cv_func__doprnt=no"
2045fi
2046rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002047fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002048
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002049if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2050 echo "$ac_t""yes" 1>&6
2051 cat >> confdefs.h <<\EOF
2052#define HAVE_DOPRNT 1
2053EOF
2054
2055else
2056 echo "$ac_t""no" 1>&6
2057fi
2058
2059fi
2060
2061echo $ac_n "checking whether struct dirent has a d_namlen field""... $ac_c" 1>&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002062echo "configure:2063: checking whether struct dirent has a d_namlen field" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002063if eval "test \"`echo '$''{'e2fsprogs_cv_struct_d_namlen'+set}'`\" = set"; then
2064 echo $ac_n "(cached) $ac_c" 1>&6
2065else
2066 cat > conftest.$ac_ext <<EOF
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002067#line 2068 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002068#include "confdefs.h"
2069#include <sys/types.h>
2070#include <dirent.h>
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002071int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002072struct dirent de; de.d_namlen = 0;
2073; return 0; }
2074EOF
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002075if { (eval echo configure:2076: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002076 rm -rf conftest*
2077 e2fsprogs_cv_struct_d_namlen=yes
2078else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002079 echo "configure: failed program was:" >&5
2080 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002081 rm -rf conftest*
2082 e2fsprogs_cv_struct_d_namlen=no
2083fi
2084rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002085fi
2086
2087echo "$ac_t""$e2fsprogs_cv_struct_d_namlen" 1>&6
2088if test "$e2fsprogs_cv_struct_d_namlen" = yes; then
2089 cat >> confdefs.h <<\EOF
2090#define HAVE_DIRENT_NAMLEN 1
2091EOF
2092
2093fi
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00002094echo $ac_n "checking whether llseek declared in unistd.h""... $ac_c" 1>&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002095echo "configure:2096: checking whether llseek declared in unistd.h" >&5
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00002096if eval "test \"`echo '$''{'e2fsprogs_cv_have_llseek_prototype'+set}'`\" = set"; then
2097 echo $ac_n "(cached) $ac_c" 1>&6
2098else
2099 cat > conftest.$ac_ext <<EOF
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002100#line 2101 "configure"
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00002101#include "confdefs.h"
2102#include <unistd.h>
2103int main() {
2104extern int llseek(int);
2105; return 0; }
2106EOF
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002107if { (eval echo configure:2108: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00002108 rm -rf conftest*
2109 e2fsprogs_cv_have_llseek_prototype=no
2110else
2111 echo "configure: failed program was:" >&5
2112 cat conftest.$ac_ext >&5
2113 rm -rf conftest*
2114 e2fsprogs_cv_have_llseek_prototype=yes
2115fi
2116rm -f conftest*
2117fi
2118
2119echo "$ac_t""$e2fsprogs_cv_have_llseek_prototype" 1>&6
2120if test "$e2fsprogs_cv_have_llseek_prototype" = yes; then
2121 cat >> confdefs.h <<\EOF
2122#define HAVE_LLSEEK_PROTOTYPE 1
2123EOF
2124
2125fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002126if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
2127 # if cross-compiling, with no cached values, just assume something common.
2128 ac_cv_sizeof_short=2
2129 ac_cv_sizeof_int=4
2130 ac_cv_sizeof_long=4
Theodore Ts'o6c133521999-07-03 20:37:03 +00002131 ac_cv_sizeof_long_long=8
2132 echo "configure: warning: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" 1>&2
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002133fi
2134echo $ac_n "checking size of short""... $ac_c" 1>&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002135echo "configure:2136: checking size of short" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002136if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2137 echo $ac_n "(cached) $ac_c" 1>&6
2138else
2139 if test "$cross_compiling" = yes; then
2140 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2141else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002142 cat > conftest.$ac_ext <<EOF
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002143#line 2144 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002144#include "confdefs.h"
2145#include <stdio.h>
2146main()
2147{
2148 FILE *f=fopen("conftestval", "w");
2149 if (!f) exit(1);
2150 fprintf(f, "%d\n", sizeof(short));
2151 exit(0);
2152}
2153EOF
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002154if { (eval echo configure:2155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002155then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002156 ac_cv_sizeof_short=`cat conftestval`
2157else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002158 echo "configure: failed program was:" >&5
2159 cat conftest.$ac_ext >&5
2160 rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002161 ac_cv_sizeof_short=0
2162fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002163rm -fr conftest*
2164fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002165
2166fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002167echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2168cat >> confdefs.h <<EOF
2169#define SIZEOF_SHORT $ac_cv_sizeof_short
2170EOF
2171
2172
2173echo $ac_n "checking size of int""... $ac_c" 1>&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002174echo "configure:2175: checking size of int" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002175if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2176 echo $ac_n "(cached) $ac_c" 1>&6
2177else
2178 if test "$cross_compiling" = yes; then
2179 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2180else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002181 cat > conftest.$ac_ext <<EOF
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002182#line 2183 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002183#include "confdefs.h"
2184#include <stdio.h>
2185main()
2186{
2187 FILE *f=fopen("conftestval", "w");
2188 if (!f) exit(1);
2189 fprintf(f, "%d\n", sizeof(int));
2190 exit(0);
2191}
2192EOF
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002193if { (eval echo configure:2194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002194then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002195 ac_cv_sizeof_int=`cat conftestval`
2196else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002197 echo "configure: failed program was:" >&5
2198 cat conftest.$ac_ext >&5
2199 rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002200 ac_cv_sizeof_int=0
2201fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002202rm -fr conftest*
2203fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002204
2205fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002206echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2207cat >> confdefs.h <<EOF
2208#define SIZEOF_INT $ac_cv_sizeof_int
2209EOF
2210
2211
2212echo $ac_n "checking size of long""... $ac_c" 1>&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002213echo "configure:2214: checking size of long" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002214if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2215 echo $ac_n "(cached) $ac_c" 1>&6
2216else
2217 if test "$cross_compiling" = yes; then
2218 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2219else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002220 cat > conftest.$ac_ext <<EOF
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002221#line 2222 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002222#include "confdefs.h"
2223#include <stdio.h>
2224main()
2225{
2226 FILE *f=fopen("conftestval", "w");
2227 if (!f) exit(1);
2228 fprintf(f, "%d\n", sizeof(long));
2229 exit(0);
2230}
2231EOF
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002232if { (eval echo configure:2233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002233then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002234 ac_cv_sizeof_long=`cat conftestval`
2235else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002236 echo "configure: failed program was:" >&5
2237 cat conftest.$ac_ext >&5
2238 rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002239 ac_cv_sizeof_long=0
2240fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002241rm -fr conftest*
2242fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002243
2244fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002245echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2246cat >> confdefs.h <<EOF
2247#define SIZEOF_LONG $ac_cv_sizeof_long
2248EOF
2249
2250
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002251echo $ac_n "checking size of long long""... $ac_c" 1>&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002252echo "configure:2253: checking size of long long" >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002253if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
2254 echo $ac_n "(cached) $ac_c" 1>&6
2255else
2256 if test "$cross_compiling" = yes; then
2257 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2258else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002259 cat > conftest.$ac_ext <<EOF
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002260#line 2261 "configure"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002261#include "confdefs.h"
2262#include <stdio.h>
2263main()
2264{
2265 FILE *f=fopen("conftestval", "w");
2266 if (!f) exit(1);
2267 fprintf(f, "%d\n", sizeof(long long));
2268 exit(0);
2269}
2270EOF
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002271if { (eval echo configure:2272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002272then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002273 ac_cv_sizeof_long_long=`cat conftestval`
2274else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002275 echo "configure: failed program was:" >&5
2276 cat conftest.$ac_ext >&5
2277 rm -fr conftest*
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002278 ac_cv_sizeof_long_long=0
2279fi
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002280rm -fr conftest*
2281fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002282
2283fi
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002284echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
2285cat >> confdefs.h <<EOF
2286#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
2287EOF
2288
2289
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002290SIZEOF_SHORT=$ac_cv_sizeof_short
2291SIZEOF_INT=$ac_cv_sizeof_int
2292SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002293SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
2294
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002295
2296
2297
2298echo $ac_n "checking whether struct stat has a st_flags field""... $ac_c" 1>&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002299echo "configure:2300: checking whether struct stat has a st_flags field" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002300if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags'+set}'`\" = set"; then
2301 echo $ac_n "(cached) $ac_c" 1>&6
2302else
2303 cat > conftest.$ac_ext <<EOF
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002304#line 2305 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002305#include "confdefs.h"
2306#include <sys/stat.h>
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002307int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002308struct stat stat; stat.st_flags = 0;
2309; return 0; }
2310EOF
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002311if { (eval echo configure:2312: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002312 rm -rf conftest*
2313 e2fsprogs_cv_struct_st_flags=yes
2314else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002315 echo "configure: failed program was:" >&5
2316 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002317 rm -rf conftest*
2318 e2fsprogs_cv_struct_st_flags=no
2319fi
2320rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002321fi
2322
2323echo "$ac_t""$e2fsprogs_cv_struct_st_flags" 1>&6
2324if test "$e2fsprogs_cv_struct_st_flags" = yes; then
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00002325 echo $ac_n "checking whether st_flags field is useful""... $ac_c" 1>&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002326echo "configure:2327: checking whether st_flags field is useful" >&5
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00002327 if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags_immut'+set}'`\" = set"; then
2328 echo $ac_n "(cached) $ac_c" 1>&6
2329else
2330 cat > conftest.$ac_ext <<EOF
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002331#line 2332 "configure"
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00002332#include "confdefs.h"
2333#include <sys/stat.h>
2334int main() {
2335struct stat stat; stat.st_flags |= UF_IMMUTABLE;
2336; return 0; }
2337EOF
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002338if { (eval echo configure:2339: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00002339 rm -rf conftest*
2340 e2fsprogs_cv_struct_st_flags_immut=yes
2341else
2342 echo "configure: failed program was:" >&5
2343 cat conftest.$ac_ext >&5
2344 rm -rf conftest*
2345 e2fsprogs_cv_struct_st_flags_immut=no
2346fi
2347rm -f conftest*
2348fi
2349
2350 echo "$ac_t""$e2fsprogs_cv_struct_st_flags_immut" 1>&6
2351 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
2352 cat >> confdefs.h <<\EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002353#define HAVE_STAT_FLAGS 1
2354EOF
2355
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00002356 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002357fi
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00002358for ac_func in chflags getrusage llseek strdup getmntinfo strcasecmp srandom fchown mallinfo
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002359do
2360echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002361echo "configure:2362: checking for $ac_func" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002362if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2363 echo $ac_n "(cached) $ac_c" 1>&6
2364else
2365 cat > conftest.$ac_ext <<EOF
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002366#line 2367 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002367#include "confdefs.h"
2368/* System header to define __stub macros and hopefully few prototypes,
2369 which can conflict with char $ac_func(); below. */
2370#include <assert.h>
2371/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002372/* We use char because int might match the return type of a gcc2
2373 builtin and then its argument prototype would still apply. */
2374char $ac_func();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002375
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002376int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002377
2378/* The GNU C library defines this for functions which it implements
2379 to always fail with ENOSYS. Some functions are actually named
2380 something starting with __ and the normal name is an alias. */
2381#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2382choke me
2383#else
2384$ac_func();
2385#endif
2386
2387; return 0; }
2388EOF
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002389if { (eval echo configure:2390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002390 rm -rf conftest*
2391 eval "ac_cv_func_$ac_func=yes"
2392else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002393 echo "configure: failed program was:" >&5
2394 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002395 rm -rf conftest*
2396 eval "ac_cv_func_$ac_func=no"
2397fi
2398rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002399fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002400
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002401if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2402 echo "$ac_t""yes" 1>&6
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002403 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002404 cat >> confdefs.h <<EOF
2405#define $ac_tr_func 1
2406EOF
2407
2408else
2409 echo "$ac_t""no" 1>&6
2410fi
2411done
2412
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002413echo $ac_n "checking ino_t defined by sys/types.h""... $ac_c" 1>&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002414echo "configure:2415: checking ino_t defined by sys/types.h" >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002415if eval "test \"`echo '$''{'e2fsprogs_cv_ino_t'+set}'`\" = set"; then
2416 echo $ac_n "(cached) $ac_c" 1>&6
2417else
2418 cat > conftest.$ac_ext <<EOF
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002419#line 2420 "configure"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002420#include "confdefs.h"
2421#include <sys/types.h>
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002422int main() {
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002423ino_t ino; ino = 0;
2424; return 0; }
2425EOF
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002426if { (eval echo configure:2427: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002427 rm -rf conftest*
2428 e2fsprogs_cv_ino_t=yes
2429else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002430 echo "configure: failed program was:" >&5
2431 cat conftest.$ac_ext >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002432 rm -rf conftest*
2433 e2fsprogs_cv_ino_t=no
2434fi
2435rm -f conftest*
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002436fi
2437
2438echo "$ac_t""$e2fsprogs_cv_ino_t" 1>&6
2439if test "$e2fsprogs_cv_ino_t" = yes; then
2440 cat >> confdefs.h <<\EOF
2441#define HAVE_INO_T 1
2442EOF
2443
2444fi
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002445SOCKET_LIB=''
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002446echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00002447echo "configure:2448: checking for socket in -lsocket" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002448ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
2449if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002450 echo $ac_n "(cached) $ac_c" 1>&6
2451else
2452 ac_save_LIBS="$LIBS"
2453LIBS="-lsocket $LIBS"
2454cat > conftest.$ac_ext <<EOF
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00002455#line 2456 "configure"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002456#include "confdefs.h"
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002457/* Override any gcc2 internal prototype to avoid an error. */
2458/* We use char because int might match the return type of a gcc2
2459 builtin and then its argument prototype would still apply. */
2460char socket();
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002461
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002462int main() {
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002463socket()
2464; return 0; }
2465EOF
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00002466if { (eval echo configure:2467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002467 rm -rf conftest*
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002468 eval "ac_cv_lib_$ac_lib_var=yes"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002469else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002470 echo "configure: failed program was:" >&5
2471 cat conftest.$ac_ext >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002472 rm -rf conftest*
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002473 eval "ac_cv_lib_$ac_lib_var=no"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002474fi
2475rm -f conftest*
2476LIBS="$ac_save_LIBS"
2477
2478fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002479if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002480 echo "$ac_t""yes" 1>&6
2481 SOCKET_LIB=-lsocket
2482else
2483 echo "$ac_t""no" 1>&6
2484fi
2485
2486
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002487echo $ac_n "checking for optreset""... $ac_c" 1>&6
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00002488echo "configure:2489: checking for optreset" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002489if eval "test \"`echo '$''{'ac_cv_have_optreset'+set}'`\" = set"; then
2490 echo $ac_n "(cached) $ac_c" 1>&6
2491else
2492 cat > conftest.$ac_ext <<EOF
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00002493#line 2494 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002494#include "confdefs.h"
2495#include <unistd.h>
2496EOF
2497if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2498 egrep "optreset" >/dev/null 2>&1; then
2499 rm -rf conftest*
2500 ac_cv_have_optreset=yes
2501else
2502 rm -rf conftest*
2503 ac_cv_have_optreset=no
2504fi
2505rm -f conftest*
2506
2507fi
2508echo "$ac_t""$ac_cv_have_optreset" 1>&6
2509if test $ac_cv_have_optreset = yes; then
2510 cat >> confdefs.h <<\EOF
2511#define HAVE_OPTRESET 1
2512EOF
2513
2514fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002515echo $ac_n "checking whether the ext2 ioctls compile""... $ac_c" 1>&6
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00002516echo "configure:2517: checking whether the ext2 ioctls compile" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002517if eval "test \"`echo '$''{'e2fsprogs_cv_ioctl_ext2'+set}'`\" = set"; then
2518 echo $ac_n "(cached) $ac_c" 1>&6
2519else
2520 cat > conftest.$ac_ext <<EOF
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00002521#line 2522 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002522#include "confdefs.h"
2523#include <linux/ext2_fs.h>
2524#include <sys/ioctl.h>
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002525int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002526ioctl (0, EXT2_IOC_SETVERSION, 0);
2527; return 0; }
2528EOF
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00002529if { (eval echo configure:2530: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002530 rm -rf conftest*
2531 e2fsprogs_cv_ioctl_ext2=yes
2532else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002533 echo "configure: failed program was:" >&5
2534 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002535 rm -rf conftest*
2536 e2fsprogs_cv_ioctl_ext2=no
2537fi
2538rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002539fi
2540
2541echo "$ac_t""$e2fsprogs_cv_ioctl_ext2" 1>&6
2542if test "$e2fsprogs_cv_ioctl_ext2" = yes; then
2543 cat >> confdefs.h <<\EOF
2544#define HAVE_EXT2_IOCTLS 1
2545EOF
2546
2547fi
Theodore Ts'o66704951999-06-25 15:30:33 +00002548echo $ac_n "checking whether struct ext2_inode has an i_version field""... $ac_c" 1>&6
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00002549echo "configure:2550: checking whether struct ext2_inode has an i_version field" >&5
Theodore Ts'o66704951999-06-25 15:30:33 +00002550if eval "test \"`echo '$''{'e2fsprogs_cv_ext2_inode_version'+set}'`\" = set"; then
2551 echo $ac_n "(cached) $ac_c" 1>&6
2552else
2553 cat > conftest.$ac_ext <<EOF
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00002554#line 2555 "configure"
Theodore Ts'o66704951999-06-25 15:30:33 +00002555#include "confdefs.h"
2556#include <linux/ext2_fs.h>
2557int main() {
2558struct ext2_inode e2i; e2i.i_version=0;
2559; return 0; }
2560EOF
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00002561if { (eval echo configure:2562: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o66704951999-06-25 15:30:33 +00002562 rm -rf conftest*
2563 e2fsprogs_cv_ext2_inode_version=yes
2564else
2565 echo "configure: failed program was:" >&5
2566 cat conftest.$ac_ext >&5
2567 rm -rf conftest*
2568 e2fsprogs_cv_ext2_inode_version=no
2569fi
2570rm -f conftest*
2571fi
2572
2573echo "$ac_t""$e2fsprogs_cv_ext2_inode_version" 1>&6
2574if test "$e2fsprogs_cv_ext2_inode_version" = yes; then
2575 cat >> confdefs.h <<\EOF
2576#define HAVE_EXT2_INODE_VERSION 1
2577EOF
2578
2579fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002580case "$host_os" in
Theodore Ts'o6c133521999-07-03 20:37:03 +00002581linux* | gnu*)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00002582 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
2583 root_prefix="";
2584 echo "On $host_os systems, root_prefix defaults to ''"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002585 fi
2586 ;;
2587esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002588case "$host_os" in
2589linux* | gnu*)
2590 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00002591 prefix="/usr";
2592 echo "On $host_os systems, prefix defaults to /usr"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002593 fi
2594;;
2595esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00002596if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +00002597 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00002598 root_prefix="$ac_default_prefix"
2599 else
2600 root_prefix="$prefix"
2601 fi
2602fi
2603
Theodore Ts'oae851481997-04-29 18:13:24 +00002604echo $ac_n "checking whether linker accepts -static""... $ac_c" 1>&6
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00002605echo "configure:2606: checking whether linker accepts -static" >&5
Theodore Ts'oae851481997-04-29 18:13:24 +00002606if eval "test \"`echo '$''{'ac_cv_e2fsprogs_use_static'+set}'`\" = set"; then
2607 echo $ac_n "(cached) $ac_c" 1>&6
2608else
2609 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
2610cat > conftest.$ac_ext <<EOF
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00002611#line 2612 "configure"
Theodore Ts'oae851481997-04-29 18:13:24 +00002612#include "confdefs.h"
2613#include <stdio.h>
2614int main() {
2615fflush(stdout);
2616; return 0; }
2617EOF
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00002618if { (eval echo configure:2619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oae851481997-04-29 18:13:24 +00002619 rm -rf conftest*
2620 ac_cv_e2fsprogs_use_static=yes
2621else
2622 echo "configure: failed program was:" >&5
2623 cat conftest.$ac_ext >&5
2624 rm -rf conftest*
2625 ac_cv_e2fsprogs_use_static=no
2626fi
2627rm -f conftest*
2628LDFLAGS=$SAVE_LDFLAGS
2629fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002630
Theodore Ts'odefde781999-01-04 07:39:19 +00002631case "$host_os" in
2632solaris2.*)
2633 ac_cv_e2fsprogs_use_static=no
2634;;
2635esac
Theodore Ts'oae851481997-04-29 18:13:24 +00002636echo "$ac_t""$ac_cv_e2fsprogs_use_static" 1>&6
Theodore Ts'o74becf31997-04-26 14:37:06 +00002637LDFLAG_STATIC=
Theodore Ts'oae851481997-04-29 18:13:24 +00002638if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002639 LDFLAG_STATIC=-static
Theodore Ts'oae851481997-04-29 18:13:24 +00002640fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002641
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002642SS_DIR=`cd ${srcdir}/lib/ss; pwd`
2643ET_DIR=`cd ${srcdir}/lib/et; pwd`
2644
2645
2646if test "$cross_compiling" = yes ; then
2647 DO_TEST_SUITE=
2648else
2649 DO_TEST_SUITE=check
2650fi
2651
Theodore Ts'oa4d09611997-04-29 14:28:00 +00002652DO_SUBSTITUTE_SCRIPT=$srcdir/lib/do_substitute
2653
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002654test -d lib || mkdir lib
2655test -d include || mkdir include
2656test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +00002657test -d include/asm || mkdir include/asm
Theodore Ts'obc210071997-06-17 05:41:36 +00002658rmakefile=
2659if test -d ${srcdir}/resize ; then
2660 rmakefile=resize/Makefile
2661fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002662trap '' 1 2 15
2663cat > confcache <<\EOF
2664# This file is a shell script that caches the results of configure
2665# tests run on this system so they can be shared between configure
2666# scripts and configure runs. It is not useful on other systems.
2667# If it contains results you don't want to keep, you may remove or edit it.
2668#
2669# By default, configure uses ./config.cache as the cache file,
2670# creating it if it does not exist already. You can give configure
2671# the --cache-file=FILE option to use a different cache file; that is
2672# what configure does when it calls configure scripts in
2673# subdirectories, so they share the cache.
2674# Giving --cache-file=/dev/null disables caching, for debugging configure.
2675# config.status only pays attention to the cache file if you give it the
2676# --recheck option to rerun configure.
2677#
2678EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002679# The following way of writing the cache mishandles newlines in values,
2680# but we know of no workaround that is simple, portable, and efficient.
2681# So, don't put newlines in cache variables' values.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002682# Ultrix sh set writes to stderr and can't be redirected directly,
2683# and sets the high bit in the cache file unless we assign to the vars.
2684(set) 2>&1 |
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00002685 case `(ac_space=' '; set | grep ac_space) 2>&1` in
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002686 *ac_space=\ *)
2687 # `set' does not quote correctly, so add quotes (double-quote substitution
2688 # turns \\\\ into \\, and sed turns \\ into \).
2689 sed -n \
2690 -e "s/'/'\\\\''/g" \
2691 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2692 ;;
2693 *)
2694 # `set' quotes correctly as required by POSIX, so do not add quotes.
2695 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2696 ;;
2697 esac >> confcache
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002698if cmp -s $cache_file confcache; then
2699 :
2700else
2701 if test -w $cache_file; then
2702 echo "updating cache $cache_file"
2703 cat confcache > $cache_file
2704 else
2705 echo "not updating unwritable cache $cache_file"
2706 fi
2707fi
2708rm -f confcache
2709
2710trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2711
2712test "x$prefix" = xNONE && prefix=$ac_default_prefix
2713# Let make expand exec_prefix.
2714test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2715
2716# Any assignment to VPATH causes Sun make to only execute
2717# the first set of double-colon rules, so remove it if not needed.
2718# If there is a colon in the path, we need to keep it.
2719if test "x$srcdir" = x.; then
2720 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2721fi
2722
2723trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2724
2725# Transform confdefs.h into DEFS.
2726# Protect against shell expansion while executing Makefile rules.
2727# Protect against Makefile macro expansion.
2728cat > conftest.defs <<\EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002729s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002730s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
2731s%\[%\\&%g
2732s%\]%\\&%g
2733s%\$%$$%g
2734EOF
2735DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2736rm -f conftest.defs
2737
2738
2739# Without the "./", some shells look in PATH for config.status.
2740: ${CONFIG_STATUS=./config.status}
2741
2742echo creating $CONFIG_STATUS
2743rm -f $CONFIG_STATUS
2744cat > $CONFIG_STATUS <<EOF
2745#! /bin/sh
2746# Generated automatically by configure.
2747# Run this file to recreate the current configuration.
2748# This directory was configured as follows,
2749# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2750#
2751# $0 $ac_configure_args
2752#
2753# Compiler output produced by configure, useful for debugging
2754# configure, is in ./config.log if it exists.
2755
2756ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2757for ac_option
2758do
2759 case "\$ac_option" in
2760 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2761 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2762 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2763 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00002764 echo "$CONFIG_STATUS generated by autoconf version 2.13"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002765 exit 0 ;;
2766 -help | --help | --hel | --he | --h)
2767 echo "\$ac_cs_usage"; exit 0 ;;
2768 *) echo "\$ac_cs_usage"; exit 1 ;;
2769 esac
2770done
2771
2772ac_given_srcdir=$srcdir
2773ac_given_INSTALL="$INSTALL"
2774
Theodore Ts'o44339bd1997-10-15 02:47:20 +00002775trap 'rm -fr `echo "MCONFIG Makefile util/Makefile util/subst.conf lib/et/Makefile
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002776 lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile lib/uuid/Makefile
2777 misc/Makefile e2fsck/Makefile debugfs/Makefile tests/Makefile
Theodore Ts'obc210071997-06-17 05:41:36 +00002778 tests/progs/Makefile $rmakefile doc/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002779EOF
2780cat >> $CONFIG_STATUS <<EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002781
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002782# Protect against being on the right side of a sed subst in config.status.
2783sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2784 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002785$ac_vpsub
2786$extrasub
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00002787s%@SHELL@%$SHELL%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002788s%@CFLAGS@%$CFLAGS%g
2789s%@CPPFLAGS@%$CPPFLAGS%g
2790s%@CXXFLAGS@%$CXXFLAGS%g
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00002791s%@FFLAGS@%$FFLAGS%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002792s%@DEFS@%$DEFS%g
2793s%@LDFLAGS@%$LDFLAGS%g
2794s%@LIBS@%$LIBS%g
2795s%@exec_prefix@%$exec_prefix%g
2796s%@prefix@%$prefix%g
2797s%@program_transform_name@%$program_transform_name%g
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002798s%@bindir@%$bindir%g
2799s%@sbindir@%$sbindir%g
2800s%@libexecdir@%$libexecdir%g
2801s%@datadir@%$datadir%g
2802s%@sysconfdir@%$sysconfdir%g
2803s%@sharedstatedir@%$sharedstatedir%g
2804s%@localstatedir@%$localstatedir%g
2805s%@libdir@%$libdir%g
2806s%@includedir@%$includedir%g
2807s%@oldincludedir@%$oldincludedir%g
2808s%@infodir@%$infodir%g
2809s%@mandir@%$mandir%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002810/@MCONFIG@/r $MCONFIG
2811s%@MCONFIG@%%g
Theodore Ts'o74becf31997-04-26 14:37:06 +00002812s%@E2FSPROGS_YEAR@%$E2FSPROGS_YEAR%g
2813s%@E2FSPROGS_MONTH@%$E2FSPROGS_MONTH%g
2814s%@E2FSPROGS_VERSION@%$E2FSPROGS_VERSION%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002815s%@host@%$host%g
2816s%@host_alias@%$host_alias%g
2817s%@host_cpu@%$host_cpu%g
2818s%@host_vendor@%$host_vendor%g
2819s%@host_os@%$host_os%g
Theodore Ts'o74becf31997-04-26 14:37:06 +00002820s%@CC@%$CC%g
2821s%@LD@%$LD%g
2822s%@CCOPTS@%$CCOPTS%g
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002823s%@CPP@%$CPP%g
2824s%@LINUX_INCLUDE@%$LINUX_INCLUDE%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002825s%@DLL_CMT@%$DLL_CMT%g
2826/@MAKEFILE_DLL@/r $MAKEFILE_DLL
2827s%@MAKEFILE_DLL@%%g
2828s%@ELF_CMT@%$ELF_CMT%g
2829/@MAKEFILE_ELF@/r $MAKEFILE_ELF
2830s%@MAKEFILE_ELF@%%g
2831s%@BSDLIB_CMT@%$BSDLIB_CMT%g
2832/@MAKEFILE_BSDLIB@/r $MAKEFILE_BSDLIB
2833s%@MAKEFILE_BSDLIB@%%g
2834s%@PROFILE_CMT@%$PROFILE_CMT%g
2835/@MAKEFILE_PROFILE@/r $MAKEFILE_PROFILE
2836s%@MAKEFILE_PROFILE@%%g
2837s%@CHECKER_CMT@%$CHECKER_CMT%g
2838/@MAKEFILE_CHECKER@/r $MAKEFILE_CHECKER
2839s%@MAKEFILE_CHECKER@%%g
Theodore Ts'oa4d09611997-04-29 14:28:00 +00002840s%@LIB_EXT@%$LIB_EXT%g
2841s%@STATIC_LIB_EXT@%$STATIC_LIB_EXT%g
2842s%@PROFILED_LIB_EXT@%$PROFILED_LIB_EXT%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002843s%@W@%$W%g
Theodore Ts'oa4d09611997-04-29 14:28:00 +00002844s%@E2FSCK_TYPE@%$E2FSCK_TYPE%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002845s%@FSCK_PROG@%$FSCK_PROG%g
2846s%@FSCK_MAN@%$FSCK_MAN%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002847/@MAKEFILE_LIBRARY@/r $MAKEFILE_LIBRARY
2848s%@MAKEFILE_LIBRARY@%%g
Theodore Ts'o74becf31997-04-26 14:37:06 +00002849s%@BINARY_TYPE@%$BINARY_TYPE%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002850s%@SET_MAKE@%$SET_MAKE%g
2851s%@LN@%$LN%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002852s%@LN_S@%$LN_S%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002853s%@MV@%$MV%g
2854s%@CP@%$CP%g
2855s%@RM@%$RM%g
2856s%@CHMOD@%$CHMOD%g
2857s%@AWK@%$AWK%g
2858s%@SED@%$SED%g
Theodore Ts'o9d564f71999-07-03 20:25:58 +00002859s%@PERL@%$PERL%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002860s%@build@%$build%g
2861s%@build_alias@%$build_alias%g
2862s%@build_cpu@%$build_cpu%g
2863s%@build_vendor@%$build_vendor%g
2864s%@build_os@%$build_os%g
2865s%@AR@%$AR%g
2866s%@RANLIB@%$RANLIB%g
2867s%@STRIP@%$STRIP%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002868s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00002869s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002870s%@INSTALL_DATA@%$INSTALL_DATA%g
Theodore Ts'o6c133521999-07-03 20:37:03 +00002871s%@BUILD_CC@%$BUILD_CC%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002872s%@SIZEOF_SHORT@%$SIZEOF_SHORT%g
2873s%@SIZEOF_INT@%$SIZEOF_INT%g
2874s%@SIZEOF_LONG@%$SIZEOF_LONG%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002875s%@SIZEOF_LONG_LONG@%$SIZEOF_LONG_LONG%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002876s%@SOCKET_LIB@%$SOCKET_LIB%g
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00002877s%@root_prefix@%$root_prefix%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002878s%@LDFLAG_STATIC@%$LDFLAG_STATIC%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002879s%@SS_DIR@%$SS_DIR%g
2880s%@ET_DIR@%$ET_DIR%g
2881s%@DO_TEST_SUITE@%$DO_TEST_SUITE%g
Theodore Ts'oa4d09611997-04-29 14:28:00 +00002882/@DO_SUBSTITUTE_SCRIPT@/r $DO_SUBSTITUTE_SCRIPT
2883s%@DO_SUBSTITUTE_SCRIPT@%%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002884
2885CEOF
2886EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002887
2888cat >> $CONFIG_STATUS <<\EOF
2889
2890# Split the substitutions into bite-sized pieces for seds with
2891# small command number limits, like on Digital OSF/1 and HP-UX.
2892ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2893ac_file=1 # Number of current file.
2894ac_beg=1 # First line for current file.
2895ac_end=$ac_max_sed_cmds # Line after last line for current file.
2896ac_more_lines=:
2897ac_sed_cmds=""
2898while $ac_more_lines; do
2899 if test $ac_beg -gt 1; then
2900 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2901 else
2902 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2903 fi
2904 if test ! -s conftest.s$ac_file; then
2905 ac_more_lines=false
2906 rm -f conftest.s$ac_file
2907 else
2908 if test -z "$ac_sed_cmds"; then
2909 ac_sed_cmds="sed -f conftest.s$ac_file"
2910 else
2911 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2912 fi
2913 ac_file=`expr $ac_file + 1`
2914 ac_beg=$ac_end
2915 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2916 fi
2917done
2918if test -z "$ac_sed_cmds"; then
2919 ac_sed_cmds=cat
2920fi
2921EOF
2922
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002923cat >> $CONFIG_STATUS <<EOF
2924
Theodore Ts'o44339bd1997-10-15 02:47:20 +00002925CONFIG_FILES=\${CONFIG_FILES-"MCONFIG Makefile util/Makefile util/subst.conf lib/et/Makefile
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002926 lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile lib/uuid/Makefile
2927 misc/Makefile e2fsck/Makefile debugfs/Makefile tests/Makefile
Theodore Ts'obc210071997-06-17 05:41:36 +00002928 tests/progs/Makefile $rmakefile doc/Makefile"}
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002929EOF
2930cat >> $CONFIG_STATUS <<\EOF
2931for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002932 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002933 case "$ac_file" in
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002934 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002935 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2936 *) ac_file_in="${ac_file}.in" ;;
2937 esac
2938
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002939 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002940
2941 # Remove last slash and all that follows it. Not all systems have dirname.
2942 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2943 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2944 # The file is in a subdirectory.
2945 test ! -d "$ac_dir" && mkdir "$ac_dir"
2946 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2947 # A "../" for each directory in $ac_dir_suffix.
2948 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2949 else
2950 ac_dir_suffix= ac_dots=
2951 fi
2952
2953 case "$ac_given_srcdir" in
2954 .) srcdir=.
2955 if test -z "$ac_dots"; then top_srcdir=.
2956 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2957 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2958 *) # Relative path.
2959 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2960 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2961 esac
2962
2963 case "$ac_given_INSTALL" in
2964 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2965 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2966 esac
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002967
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002968 echo creating "$ac_file"
2969 rm -f "$ac_file"
2970 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2971 case "$ac_file" in
2972 *Makefile*) ac_comsub="1i\\
2973# $configure_input" ;;
2974 *) ac_comsub= ;;
2975 esac
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002976
2977 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002978 sed -e "$ac_comsub
2979s%@configure_input@%$configure_input%g
2980s%@srcdir@%$srcdir%g
2981s%@top_srcdir@%$top_srcdir%g
2982s%@INSTALL@%$INSTALL%g
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002983" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002984fi; done
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002985rm -f conftest.s*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002986
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002987EOF
2988cat >> $CONFIG_STATUS <<EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002989
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002990EOF
2991cat >> $CONFIG_STATUS <<\EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002992
2993exit 0
2994EOF
2995chmod +x $CONFIG_STATUS
2996rm -fr confdefs* $ac_clean_files
2997test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2998