blob: 2ddac62bc5645debc9208eee1d8eb9846ccab40f [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
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000651# Extract the first word of "gcc", so it can be a program name with args.
652set dummy gcc; ac_word=$2
653echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
654echo "configure:655: checking for $ac_word" >&5
655if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
656 echo $ac_n "(cached) $ac_c" 1>&6
657else
658 if test -n "$CC"; then
659 ac_cv_prog_CC="$CC" # Let the user override the test.
660else
661 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
662 ac_dummy="$PATH"
663 for ac_dir in $ac_dummy; do
664 test -z "$ac_dir" && ac_dir=.
665 if test -f $ac_dir/$ac_word; then
666 ac_cv_prog_CC="gcc"
667 break
668 fi
669 done
670 IFS="$ac_save_ifs"
671fi
672fi
673CC="$ac_cv_prog_CC"
674if test -n "$CC"; then
675 echo "$ac_t""$CC" 1>&6
676else
677 echo "$ac_t""no" 1>&6
678fi
679
680if test -z "$CC"; then
681 # Extract the first word of "cc", so it can be a program name with args.
682set dummy cc; ac_word=$2
683echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
684echo "configure:685: checking for $ac_word" >&5
685if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
686 echo $ac_n "(cached) $ac_c" 1>&6
687else
688 if test -n "$CC"; then
689 ac_cv_prog_CC="$CC" # Let the user override the test.
690else
691 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
692 ac_prog_rejected=no
693 ac_dummy="$PATH"
694 for ac_dir in $ac_dummy; do
695 test -z "$ac_dir" && ac_dir=.
696 if test -f $ac_dir/$ac_word; then
697 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
698 ac_prog_rejected=yes
699 continue
700 fi
701 ac_cv_prog_CC="cc"
702 break
703 fi
704 done
705 IFS="$ac_save_ifs"
706if test $ac_prog_rejected = yes; then
707 # We found a bogon in the path, so make sure we never use it.
708 set dummy $ac_cv_prog_CC
709 shift
710 if test $# -gt 0; then
711 # We chose a different compiler from the bogus one.
712 # However, it has the same basename, so the bogon will be chosen
713 # first if we set CC to just the basename; use the full file name.
714 shift
715 set dummy "$ac_dir/$ac_word" "$@"
716 shift
717 ac_cv_prog_CC="$@"
718 fi
719fi
720fi
721fi
722CC="$ac_cv_prog_CC"
723if test -n "$CC"; then
724 echo "$ac_t""$CC" 1>&6
725else
726 echo "$ac_t""no" 1>&6
727fi
728
729 if test -z "$CC"; then
730 case "`uname -s`" in
731 *win32* | *WIN32*)
732 # Extract the first word of "cl", so it can be a program name with args.
733set dummy cl; ac_word=$2
734echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
735echo "configure:736: checking for $ac_word" >&5
736if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
737 echo $ac_n "(cached) $ac_c" 1>&6
738else
739 if test -n "$CC"; then
740 ac_cv_prog_CC="$CC" # Let the user override the test.
741else
742 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
743 ac_dummy="$PATH"
744 for ac_dir in $ac_dummy; do
745 test -z "$ac_dir" && ac_dir=.
746 if test -f $ac_dir/$ac_word; then
747 ac_cv_prog_CC="cl"
748 break
749 fi
750 done
751 IFS="$ac_save_ifs"
752fi
753fi
754CC="$ac_cv_prog_CC"
755if test -n "$CC"; then
756 echo "$ac_t""$CC" 1>&6
757else
758 echo "$ac_t""no" 1>&6
759fi
760 ;;
761 esac
762 fi
763 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
764fi
765
766echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
767echo "configure:768: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
768
769ac_ext=c
770# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
771ac_cpp='$CPP $CPPFLAGS'
772ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
773ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
774cross_compiling=$ac_cv_prog_cc_cross
775
776cat > conftest.$ac_ext << EOF
777
778#line 779 "configure"
779#include "confdefs.h"
780
781main(){return(0);}
782EOF
783if { (eval echo configure:784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
784 ac_cv_prog_cc_works=yes
785 # If we can't run a trivial program, we are probably using a cross compiler.
786 if (./conftest; exit) 2>/dev/null; then
787 ac_cv_prog_cc_cross=no
788 else
789 ac_cv_prog_cc_cross=yes
790 fi
791else
792 echo "configure: failed program was:" >&5
793 cat conftest.$ac_ext >&5
794 ac_cv_prog_cc_works=no
795fi
796rm -fr conftest*
797ac_ext=c
798# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
799ac_cpp='$CPP $CPPFLAGS'
800ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
801ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
802cross_compiling=$ac_cv_prog_cc_cross
803
804echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
805if test $ac_cv_prog_cc_works = no; then
806 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
807fi
808echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
809echo "configure:810: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
810echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
811cross_compiling=$ac_cv_prog_cc_cross
812
813echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
814echo "configure:815: checking whether we are using GNU C" >&5
815if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
816 echo $ac_n "(cached) $ac_c" 1>&6
817else
818 cat > conftest.c <<EOF
819#ifdef __GNUC__
820 yes;
821#endif
822EOF
823if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:824: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
824 ac_cv_prog_gcc=yes
825else
826 ac_cv_prog_gcc=no
827fi
828fi
829
830echo "$ac_t""$ac_cv_prog_gcc" 1>&6
831
832if test $ac_cv_prog_gcc = yes; then
833 GCC=yes
834else
835 GCC=
836fi
837
838ac_test_CFLAGS="${CFLAGS+set}"
839ac_save_CFLAGS="$CFLAGS"
840CFLAGS=
841echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
842echo "configure:843: checking whether ${CC-cc} accepts -g" >&5
843if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
844 echo $ac_n "(cached) $ac_c" 1>&6
845else
846 echo 'void f(){}' > conftest.c
847if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
848 ac_cv_prog_cc_g=yes
849else
850 ac_cv_prog_cc_g=no
851fi
852rm -f conftest*
853
854fi
855
856echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
857if test "$ac_test_CFLAGS" = set; then
858 CFLAGS="$ac_save_CFLAGS"
859elif test $ac_cv_prog_cc_g = yes; then
860 if test "$GCC" = yes; then
861 CFLAGS="-g -O2"
862 else
863 CFLAGS="-g"
864 fi
865else
866 if test "$GCC" = yes; then
867 CFLAGS="-O2"
868 else
869 CFLAGS=
870 fi
871fi
872
Theodore Ts'o74becf31997-04-26 14:37:06 +0000873# Check whether --with-linker or --without-linker was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000874if test "${with_linker+set}" = set; then
875 withval="$with_linker"
Theodore Ts'o74becf31997-04-26 14:37:06 +0000876 echo "$ac_t""LD=$withval" 1>&6
877LD=$withval
878else
879 if test -z "$LD" ; then LD=$CC; fi
880echo "$ac_t""LD defaults to $LD" 1>&6
881fi
882export LD
883
884# Check whether --with-ccopts or --without-ccopts was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000885if test "${with_ccopts+set}" = set; then
886 withval="$with_ccopts"
Theodore Ts'o74becf31997-04-26 14:37:06 +0000887 echo "$ac_t""CCOPTS is $withval" 1>&6
888CCOPTS=$withval
889CFLAGS="$CFLAGS $withval"
890else
891 CCOPTS=
892fi
893
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000894echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000895echo "configure:896: checking how to run the C preprocessor" >&5
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000896# On Suns, sometimes $CPP names a directory.
897if test -n "$CPP" && test -d "$CPP"; then
898 CPP=
899fi
900if test -z "$CPP"; then
901if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
902 echo $ac_n "(cached) $ac_c" 1>&6
903else
904 # This must be in double quotes, not single quotes, because CPP may get
905 # substituted into the Makefile and "${CC-cc}" will confuse make.
906 CPP="${CC-cc} -E"
907 # On the NeXT, cc -E runs the code through the compiler's parser,
908 # not just through cpp.
909 cat > conftest.$ac_ext <<EOF
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000910#line 911 "configure"
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000911#include "confdefs.h"
912#include <assert.h>
913Syntax Error
914EOF
915ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000916{ (eval echo configure:917: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000917ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
918if test -z "$ac_err"; then
919 :
920else
921 echo "$ac_err" >&5
922 echo "configure: failed program was:" >&5
923 cat conftest.$ac_ext >&5
924 rm -rf conftest*
925 CPP="${CC-cc} -E -traditional-cpp"
926 cat > conftest.$ac_ext <<EOF
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000927#line 928 "configure"
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000928#include "confdefs.h"
929#include <assert.h>
930Syntax Error
931EOF
932ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000933{ (eval echo configure:934: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000934ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
935if test -z "$ac_err"; then
936 :
937else
938 echo "$ac_err" >&5
939 echo "configure: failed program was:" >&5
940 cat conftest.$ac_ext >&5
941 rm -rf conftest*
942 CPP="${CC-cc} -nologo -E"
943 cat > conftest.$ac_ext <<EOF
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000944#line 945 "configure"
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000945#include "confdefs.h"
946#include <assert.h>
947Syntax Error
948EOF
949ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000950{ (eval echo configure:951: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000951ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
952if test -z "$ac_err"; then
953 :
954else
955 echo "$ac_err" >&5
956 echo "configure: failed program was:" >&5
957 cat conftest.$ac_ext >&5
958 rm -rf conftest*
959 CPP=/lib/cpp
960fi
961rm -f conftest*
962fi
963rm -f conftest*
964fi
965rm -f conftest*
966 ac_cv_prog_CPP="$CPP"
967fi
968 CPP="$ac_cv_prog_CPP"
969else
970 ac_cv_prog_CPP="$CPP"
971fi
972echo "$ac_t""$CPP" 1>&6
973
974ac_safe=`echo "linux/fs.h" | sed 'y%./+-%__p_%'`
975echo $ac_n "checking for linux/fs.h""... $ac_c" 1>&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000976echo "configure:977: checking for linux/fs.h" >&5
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000977if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
978 echo $ac_n "(cached) $ac_c" 1>&6
979else
980 cat > conftest.$ac_ext <<EOF
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000981#line 982 "configure"
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000982#include "confdefs.h"
983#include <linux/fs.h>
984EOF
985ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000986{ (eval echo configure:987: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000987ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
988if test -z "$ac_err"; then
989 rm -rf conftest*
990 eval "ac_cv_header_$ac_safe=yes"
991else
992 echo "$ac_err" >&5
993 echo "configure: failed program was:" >&5
994 cat conftest.$ac_ext >&5
995 rm -rf conftest*
996 eval "ac_cv_header_$ac_safe=no"
997fi
998rm -f conftest*
999fi
1000if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1001 echo "$ac_t""yes" 1>&6
1002 linux_headers=yes
1003else
1004 echo "$ac_t""no" 1>&6
1005linux_headers=no
1006fi
1007
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001008if test "$linux_headers" != yes; then
1009 LINUX_INCLUDE='-I$(top_builddir)/include'
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001010fi
1011
Theodore Ts'oa4d09611997-04-29 14:28:00 +00001012LIB_EXT=.a
1013STATIC_LIB_EXT=.a
1014PROFILE_LIB_EXT=.a
Theodore Ts'o74becf31997-04-26 14:37:06 +00001015# Check whether --with-ldopts or --without-ldopts was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001016if test "${with_ldopts+set}" = set; then
1017 withval="$with_ldopts"
Theodore Ts'o74becf31997-04-26 14:37:06 +00001018 echo "$ac_t""LDFLAGS is $withval" 1>&6
1019LDFLAGS=$withval
1020else
1021 LDFLAGS=
1022fi
1023
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00001024# Check whether --with-root-prefix or --without-root-prefix was given.
1025if test "${with_root_prefix+set}" = set; then
1026 withval="$with_root_prefix"
1027 root_prefix=$withval
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001028else
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00001029 root_prefix=NONE
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001030fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001031# Check whether --enable-dll-shlibs or --disable-dll-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001032if test "${enable_dll_shlibs+set}" = set; then
1033 enableval="$enable_dll_shlibs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001034 if test "$enableval" = "no"
1035then
1036 DLL_CMT=#
1037 MAKEFILE_DLL=/dev/null
1038 echo "Disabling DLL shared libraries"
1039else
1040 DLL_CMT=
1041 MAKEFILE_DLL=$srcdir/lib/Makefile.dll-lib
Theodore Ts'o74becf31997-04-26 14:37:06 +00001042 BINARY_TYPE=dllbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00001043 LIB_EXT=.sa
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001044 echo "Enabling DLL shared libraries"
1045fi
1046
1047else
1048 MAKEFILE_DLL=/dev/null
1049DLL_CMT=#
1050echo "Disabling DLL shared libraries by default"
1051
1052fi
1053
1054
1055
1056# Check whether --enable-elf-shlibs or --disable-elf-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001057if test "${enable_elf_shlibs+set}" = set; then
1058 enableval="$enable_elf_shlibs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001059 if test "$enableval" = "no"
1060then
1061 ELF_CMT=#
1062 MAKEFILE_ELF=/dev/null
1063 echo "Disabling ELF shared libraries"
1064else
1065 ELF_CMT=
1066 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
Theodore Ts'o74becf31997-04-26 14:37:06 +00001067 BINARY_TYPE=elfbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00001068 LIB_EXT=.so
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001069 echo "Enabling ELF shared libraries"
1070fi
1071
1072else
1073 MAKEFILE_ELF=/dev/null
1074ELF_CMT=#
1075echo "Disabling ELF shared libraries by default"
1076
1077fi
1078
1079
1080
1081# Check whether --enable-bsd-shlibs or --disable-bsd-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001082if test "${enable_bsd_shlibs+set}" = set; then
1083 enableval="$enable_bsd_shlibs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001084 if test "$enableval" = "no"
1085then
1086 BSDLIB_CMT=#
1087 MAKEFILE_BSDLIB=/dev/null
1088 echo "Disabling BSD shared libraries"
1089else
1090 BSDLIB_CMT=
1091 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
Theodore Ts'oa4d09611997-04-29 14:28:00 +00001092 LIB_EXT=.so
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001093 echo "Enabling BSD shared libraries"
1094fi
1095
1096else
1097 MAKEFILE_BSDLIB=/dev/null
1098BSDLIB_CMT=#
1099echo "Disabling BSD shared libraries by default"
1100
1101fi
1102
1103
1104
1105# Check whether --enable-profile or --disable-profile was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001106if test "${enable_profile+set}" = set; then
1107 enableval="$enable_profile"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001108 if test "$enableval" = "no"
1109then
1110 PROFILE_CMT=#
1111 MAKEFILE_PROFILE=/dev/null
1112 echo "Disabling profiling libraries"
1113else
1114 PROFILE_CMT=
1115 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
Theodore Ts'oa4d09611997-04-29 14:28:00 +00001116 PROFILED_LIB_EXT=_p.a
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001117 echo "Building profiling libraries"
1118fi
1119
1120else
1121 PROFILE_CMT=#
1122MAKEFILE_PROFILE=/dev/null
1123echo "Disabling profiling libraries by default"
1124
1125fi
1126
1127
1128
1129# Check whether --enable-checker or --disable-checker was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001130if test "${enable_checker+set}" = set; then
1131 enableval="$enable_checker"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001132 if test "$enableval" = "no"
1133then
1134 CHECKER_CMT=#
1135 MAKEFILE_CHECKER=/dev/null
1136 echo "Disabling checker libraries"
1137else
1138 CHECKER_CMT=
1139 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
1140 echo "Building checker libraries"
1141fi
1142
1143else
1144 CHECKER_CMT=#
1145MAKEFILE_CHECKER=/dev/null
1146echo "Disabling checker libraries by default"
1147
1148fi
1149
1150
1151
Theodore Ts'oa4d09611997-04-29 14:28:00 +00001152
1153
1154
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001155# Check whether --enable-gcc-wall or --disable-gcc-wall was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001156if test "${enable_gcc_wall+set}" = set; then
1157 enableval="$enable_gcc_wall"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001158 if test "$enableval" = "no"
1159then
1160 W=#
1161 echo "Disabling GCC warnings"
1162else
1163 W=
1164 echo "Enabling GCC warnings"
1165fi
1166
1167else
1168 W=#
1169echo "Disabling GCC warnings by default"
1170
1171fi
1172
1173
Theodore Ts'oa4d09611997-04-29 14:28:00 +00001174# Check whether --enable-dynamic-e2fsck or --disable-dynamic-e2fsck was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001175if test "${enable_dynamic_e2fsck+set}" = set; then
1176 enableval="$enable_dynamic_e2fsck"
Theodore Ts'oa4d09611997-04-29 14:28:00 +00001177 if test "$enableval" = "no"
1178then
1179 E2FSCK_TYPE=static
1180 echo "Building e2fsck statically"
1181else
1182 E2FSCK_TYPE=shared
1183 echo "Building e2fsck dynamically"
1184fi
1185
1186else
1187 E2FSCK_TYPE=static
1188echo "Building e2fsck statically by default"
1189
1190fi
1191
1192
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001193# Check whether --enable-fsck or --disable-fsck was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001194if test "${enable_fsck+set}" = set; then
1195 enableval="$enable_fsck"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001196 if test "$enableval" = "no"
1197then
1198 FSCK_PROG='' FSCK_MAN=''
1199 echo "Not building fsck wrapper"
1200else
1201 FSCK_PROG=fsck FSCK_MAN=fsck.8
1202 echo "Building fsck wrapper"
1203fi
1204
1205else
1206 case "$host_os" in
1207 gnu*)
1208 FSCK_PROG='' FSCK_MAN=''
1209 echo "Not building fsck wrapper by default"
1210 ;;
1211 *)
1212 FSCK_PROG=fsck FSCK_MAN=fsck.8
1213 echo "Building fsck wrapper by default"
1214esac
1215
1216fi
1217
1218
1219
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001220MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
1221
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001222# Check whether --enable-old-bitops or --disable-old-bitops was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001223if test "${enable_old_bitops+set}" = set; then
1224 enableval="$enable_old_bitops"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001225 if test "$enableval" = "no"
1226then
1227 echo "Using new (standard) bitmask operations"
1228else
1229 cat >> confdefs.h <<\EOF
1230#define EXT2_OLD_BITOPS 1
1231EOF
1232
1233 echo "Using old (native) bitmask operations"
1234
1235fi
1236
1237else
1238 echo "Using standard bitmask operations by default"
1239
1240fi
1241
Theodore Ts'o74becf31997-04-26 14:37:06 +00001242
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001243echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001244echo "configure:1245: checking whether ${MAKE-make} sets \${MAKE}" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001245set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001246if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1247 echo $ac_n "(cached) $ac_c" 1>&6
1248else
1249 cat > conftestmake <<\EOF
1250all:
1251 @echo 'ac_maketemp="${MAKE}"'
1252EOF
1253# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1254eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1255if test -n "$ac_maketemp"; then
1256 eval ac_cv_prog_make_${ac_make}_set=yes
1257else
1258 eval ac_cv_prog_make_${ac_make}_set=no
1259fi
1260rm -f conftestmake
1261fi
1262if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1263 echo "$ac_t""yes" 1>&6
1264 SET_MAKE=
1265else
1266 echo "$ac_t""no" 1>&6
1267 SET_MAKE="MAKE=${MAKE-make}"
1268fi
1269
1270# Extract the first word of "ln", so it can be a program name with args.
1271set dummy ln; ac_word=$2
1272echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001273echo "configure:1274: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001274if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then
1275 echo $ac_n "(cached) $ac_c" 1>&6
1276else
1277 case "$LN" in
1278 /*)
1279 ac_cv_path_LN="$LN" # Let the user override the test with a path.
1280 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001281 ?:/*)
1282 ac_cv_path_LN="$LN" # Let the user override the test with a dos path.
1283 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001284 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001285 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1286 ac_dummy="$PATH"
1287 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001288 test -z "$ac_dir" && ac_dir=.
1289 if test -f $ac_dir/$ac_word; then
1290 ac_cv_path_LN="$ac_dir/$ac_word"
1291 break
1292 fi
1293 done
1294 IFS="$ac_save_ifs"
1295 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
1296 ;;
1297esac
1298fi
1299LN="$ac_cv_path_LN"
1300if test -n "$LN"; then
1301 echo "$ac_t""$LN" 1>&6
1302else
1303 echo "$ac_t""no" 1>&6
1304fi
1305
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001306echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001307echo "configure:1308: checking whether ln -s works" >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001308if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1309 echo $ac_n "(cached) $ac_c" 1>&6
1310else
1311 rm -f conftestdata
1312if ln -s X conftestdata 2>/dev/null
1313then
1314 rm -f conftestdata
1315 ac_cv_prog_LN_S="ln -s"
1316else
1317 ac_cv_prog_LN_S=ln
1318fi
1319fi
1320LN_S="$ac_cv_prog_LN_S"
1321if test "$ac_cv_prog_LN_S" = "ln -s"; then
1322 echo "$ac_t""yes" 1>&6
1323else
1324 echo "$ac_t""no" 1>&6
1325fi
1326
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001327# Extract the first word of "mv", so it can be a program name with args.
1328set dummy mv; ac_word=$2
1329echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001330echo "configure:1331: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001331if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
1332 echo $ac_n "(cached) $ac_c" 1>&6
1333else
1334 case "$MV" in
1335 /*)
1336 ac_cv_path_MV="$MV" # Let the user override the test with a path.
1337 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001338 ?:/*)
1339 ac_cv_path_MV="$MV" # Let the user override the test with a dos path.
1340 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001341 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001342 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1343 ac_dummy="$PATH"
1344 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001345 test -z "$ac_dir" && ac_dir=.
1346 if test -f $ac_dir/$ac_word; then
1347 ac_cv_path_MV="$ac_dir/$ac_word"
1348 break
1349 fi
1350 done
1351 IFS="$ac_save_ifs"
1352 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
1353 ;;
1354esac
1355fi
1356MV="$ac_cv_path_MV"
1357if test -n "$MV"; then
1358 echo "$ac_t""$MV" 1>&6
1359else
1360 echo "$ac_t""no" 1>&6
1361fi
1362
1363# Extract the first word of "cp", so it can be a program name with args.
1364set dummy cp; ac_word=$2
1365echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001366echo "configure:1367: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001367if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then
1368 echo $ac_n "(cached) $ac_c" 1>&6
1369else
1370 case "$CP" in
1371 /*)
1372 ac_cv_path_CP="$CP" # Let the user override the test with a path.
1373 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001374 ?:/*)
1375 ac_cv_path_CP="$CP" # Let the user override the test with a dos path.
1376 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001377 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001378 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1379 ac_dummy="$PATH"
1380 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001381 test -z "$ac_dir" && ac_dir=.
1382 if test -f $ac_dir/$ac_word; then
1383 ac_cv_path_CP="$ac_dir/$ac_word"
1384 break
1385 fi
1386 done
1387 IFS="$ac_save_ifs"
1388 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
1389 ;;
1390esac
1391fi
1392CP="$ac_cv_path_CP"
1393if test -n "$CP"; then
1394 echo "$ac_t""$CP" 1>&6
1395else
1396 echo "$ac_t""no" 1>&6
1397fi
1398
1399# Extract the first word of "rm", so it can be a program name with args.
1400set dummy rm; ac_word=$2
1401echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001402echo "configure:1403: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001403if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
1404 echo $ac_n "(cached) $ac_c" 1>&6
1405else
1406 case "$RM" in
1407 /*)
1408 ac_cv_path_RM="$RM" # Let the user override the test with a path.
1409 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001410 ?:/*)
1411 ac_cv_path_RM="$RM" # Let the user override the test with a dos path.
1412 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001413 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001414 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1415 ac_dummy="$PATH"
1416 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001417 test -z "$ac_dir" && ac_dir=.
1418 if test -f $ac_dir/$ac_word; then
1419 ac_cv_path_RM="$ac_dir/$ac_word"
1420 break
1421 fi
1422 done
1423 IFS="$ac_save_ifs"
1424 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
1425 ;;
1426esac
1427fi
1428RM="$ac_cv_path_RM"
1429if test -n "$RM"; then
1430 echo "$ac_t""$RM" 1>&6
1431else
1432 echo "$ac_t""no" 1>&6
1433fi
1434
1435# Extract the first word of "chmod", so it can be a program name with args.
1436set dummy chmod; ac_word=$2
1437echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001438echo "configure:1439: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001439if eval "test \"`echo '$''{'ac_cv_path_CHMOD'+set}'`\" = set"; then
1440 echo $ac_n "(cached) $ac_c" 1>&6
1441else
1442 case "$CHMOD" in
1443 /*)
1444 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
1445 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001446 ?:/*)
1447 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a dos path.
1448 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001449 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001450 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1451 ac_dummy="$PATH"
1452 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001453 test -z "$ac_dir" && ac_dir=.
1454 if test -f $ac_dir/$ac_word; then
1455 ac_cv_path_CHMOD="$ac_dir/$ac_word"
1456 break
1457 fi
1458 done
1459 IFS="$ac_save_ifs"
1460 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
1461 ;;
1462esac
1463fi
1464CHMOD="$ac_cv_path_CHMOD"
1465if test -n "$CHMOD"; then
1466 echo "$ac_t""$CHMOD" 1>&6
1467else
1468 echo "$ac_t""no" 1>&6
1469fi
1470
1471# Extract the first word of "awk", so it can be a program name with args.
1472set dummy awk; ac_word=$2
1473echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001474echo "configure:1475: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001475if eval "test \"`echo '$''{'ac_cv_path_AWK'+set}'`\" = set"; then
1476 echo $ac_n "(cached) $ac_c" 1>&6
1477else
1478 case "$AWK" in
1479 /*)
1480 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
1481 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001482 ?:/*)
1483 ac_cv_path_AWK="$AWK" # Let the user override the test with a dos path.
1484 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001485 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001486 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1487 ac_dummy="$PATH"
1488 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001489 test -z "$ac_dir" && ac_dir=.
1490 if test -f $ac_dir/$ac_word; then
1491 ac_cv_path_AWK="$ac_dir/$ac_word"
1492 break
1493 fi
1494 done
1495 IFS="$ac_save_ifs"
1496 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
1497 ;;
1498esac
1499fi
1500AWK="$ac_cv_path_AWK"
1501if test -n "$AWK"; then
1502 echo "$ac_t""$AWK" 1>&6
1503else
1504 echo "$ac_t""no" 1>&6
1505fi
1506
1507# Extract the first word of "sed", so it can be a program name with args.
1508set dummy sed; ac_word=$2
1509echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001510echo "configure:1511: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001511if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then
1512 echo $ac_n "(cached) $ac_c" 1>&6
1513else
1514 case "$SED" in
1515 /*)
1516 ac_cv_path_SED="$SED" # Let the user override the test with a path.
1517 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001518 ?:/*)
1519 ac_cv_path_SED="$SED" # Let the user override the test with a dos path.
1520 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001521 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001522 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1523 ac_dummy="$PATH"
1524 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001525 test -z "$ac_dir" && ac_dir=.
1526 if test -f $ac_dir/$ac_word; then
1527 ac_cv_path_SED="$ac_dir/$ac_word"
1528 break
1529 fi
1530 done
1531 IFS="$ac_save_ifs"
1532 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
1533 ;;
1534esac
1535fi
1536SED="$ac_cv_path_SED"
1537if test -n "$SED"; then
1538 echo "$ac_t""$SED" 1>&6
1539else
1540 echo "$ac_t""no" 1>&6
1541fi
1542
Theodore Ts'o9d564f71999-07-03 20:25:58 +00001543# Extract the first word of "perl", so it can be a program name with args.
1544set dummy perl; ac_word=$2
1545echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001546echo "configure:1547: checking for $ac_word" >&5
Theodore Ts'o9d564f71999-07-03 20:25:58 +00001547if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
1548 echo $ac_n "(cached) $ac_c" 1>&6
1549else
1550 case "$PERL" in
1551 /*)
1552 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
1553 ;;
1554 ?:/*)
1555 ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
1556 ;;
1557 *)
1558 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1559 ac_dummy="$PATH"
1560 for ac_dir in $ac_dummy; do
1561 test -z "$ac_dir" && ac_dir=.
1562 if test -f $ac_dir/$ac_word; then
1563 ac_cv_path_PERL="$ac_dir/$ac_word"
1564 break
1565 fi
1566 done
1567 IFS="$ac_save_ifs"
1568 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
1569 ;;
1570esac
1571fi
1572PERL="$ac_cv_path_PERL"
1573if test -n "$PERL"; then
1574 echo "$ac_t""$PERL" 1>&6
1575else
1576 echo "$ac_t""no" 1>&6
1577fi
1578
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001579echo $ac_n "checking build system type""... $ac_c" 1>&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001580echo "configure:1581: checking build system type" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001581
1582build_alias=$build
1583case "$build_alias" in
1584NONE)
1585 case $nonopt in
1586 NONE) build_alias=$host_alias ;;
1587 *) build_alias=$nonopt ;;
1588 esac ;;
1589esac
1590
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001591build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001592build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1593build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1594build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001595echo "$ac_t""$build" 1>&6
1596
1597if test $host != $build; then
1598 ac_tool_prefix=${host_alias}-
1599else
1600 ac_tool_prefix=
1601fi
1602
1603# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1604set dummy ${ac_tool_prefix}ar; ac_word=$2
1605echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001606echo "configure:1607: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001607if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1608 echo $ac_n "(cached) $ac_c" 1>&6
1609else
1610 if test -n "$AR"; then
1611 ac_cv_prog_AR="$AR" # Let the user override the test.
1612else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001613 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1614 ac_dummy="$PATH"
1615 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001616 test -z "$ac_dir" && ac_dir=.
1617 if test -f $ac_dir/$ac_word; then
1618 ac_cv_prog_AR="${ac_tool_prefix}ar"
1619 break
1620 fi
1621 done
1622 IFS="$ac_save_ifs"
1623fi
1624fi
1625AR="$ac_cv_prog_AR"
1626if test -n "$AR"; then
1627 echo "$ac_t""$AR" 1>&6
1628else
1629 echo "$ac_t""no" 1>&6
1630fi
1631
1632
1633if test -z "$ac_cv_prog_AR"; then
1634if test -n "$ac_tool_prefix"; then
1635 # Extract the first word of "ar", so it can be a program name with args.
1636set dummy ar; ac_word=$2
1637echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001638echo "configure:1639: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001639if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1640 echo $ac_n "(cached) $ac_c" 1>&6
1641else
1642 if test -n "$AR"; then
1643 ac_cv_prog_AR="$AR" # Let the user override the test.
1644else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001645 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1646 ac_dummy="$PATH"
1647 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001648 test -z "$ac_dir" && ac_dir=.
1649 if test -f $ac_dir/$ac_word; then
1650 ac_cv_prog_AR="ar"
1651 break
1652 fi
1653 done
1654 IFS="$ac_save_ifs"
1655 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1656fi
1657fi
1658AR="$ac_cv_prog_AR"
1659if test -n "$AR"; then
1660 echo "$ac_t""$AR" 1>&6
1661else
1662 echo "$ac_t""no" 1>&6
1663fi
1664
1665else
1666 AR="ar"
1667fi
1668fi
1669
1670# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1671set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1672echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001673echo "configure:1674: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001674if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1675 echo $ac_n "(cached) $ac_c" 1>&6
1676else
1677 if test -n "$RANLIB"; then
1678 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1679else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001680 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1681 ac_dummy="$PATH"
1682 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001683 test -z "$ac_dir" && ac_dir=.
1684 if test -f $ac_dir/$ac_word; then
1685 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1686 break
1687 fi
1688 done
1689 IFS="$ac_save_ifs"
1690fi
1691fi
1692RANLIB="$ac_cv_prog_RANLIB"
1693if test -n "$RANLIB"; then
1694 echo "$ac_t""$RANLIB" 1>&6
1695else
1696 echo "$ac_t""no" 1>&6
1697fi
1698
1699
1700if test -z "$ac_cv_prog_RANLIB"; then
1701if test -n "$ac_tool_prefix"; then
1702 # Extract the first word of "ranlib", so it can be a program name with args.
1703set dummy ranlib; ac_word=$2
1704echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001705echo "configure:1706: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001706if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1707 echo $ac_n "(cached) $ac_c" 1>&6
1708else
1709 if test -n "$RANLIB"; then
1710 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1711else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001712 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1713 ac_dummy="$PATH"
1714 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001715 test -z "$ac_dir" && ac_dir=.
1716 if test -f $ac_dir/$ac_word; then
1717 ac_cv_prog_RANLIB="ranlib"
1718 break
1719 fi
1720 done
1721 IFS="$ac_save_ifs"
1722 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1723fi
1724fi
1725RANLIB="$ac_cv_prog_RANLIB"
1726if test -n "$RANLIB"; then
1727 echo "$ac_t""$RANLIB" 1>&6
1728else
1729 echo "$ac_t""no" 1>&6
1730fi
1731
1732else
1733 RANLIB=":"
1734fi
1735fi
1736
1737# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1738set dummy ${ac_tool_prefix}strip; ac_word=$2
1739echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001740echo "configure:1741: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001741if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1742 echo $ac_n "(cached) $ac_c" 1>&6
1743else
1744 if test -n "$STRIP"; then
1745 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1746else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001747 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1748 ac_dummy="$PATH"
1749 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001750 test -z "$ac_dir" && ac_dir=.
1751 if test -f $ac_dir/$ac_word; then
1752 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1753 break
1754 fi
1755 done
1756 IFS="$ac_save_ifs"
1757fi
1758fi
1759STRIP="$ac_cv_prog_STRIP"
1760if test -n "$STRIP"; then
1761 echo "$ac_t""$STRIP" 1>&6
1762else
1763 echo "$ac_t""no" 1>&6
1764fi
1765
1766
1767if test -z "$ac_cv_prog_STRIP"; then
1768if test -n "$ac_tool_prefix"; then
1769 # Extract the first word of "strip", so it can be a program name with args.
1770set dummy strip; ac_word=$2
1771echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001772echo "configure:1773: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001773if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1774 echo $ac_n "(cached) $ac_c" 1>&6
1775else
1776 if test -n "$STRIP"; then
1777 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1778else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001779 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1780 ac_dummy="$PATH"
1781 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001782 test -z "$ac_dir" && ac_dir=.
1783 if test -f $ac_dir/$ac_word; then
1784 ac_cv_prog_STRIP="strip"
1785 break
1786 fi
1787 done
1788 IFS="$ac_save_ifs"
1789 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
1790fi
1791fi
1792STRIP="$ac_cv_prog_STRIP"
1793if test -n "$STRIP"; then
1794 echo "$ac_t""$STRIP" 1>&6
1795else
1796 echo "$ac_t""no" 1>&6
1797fi
1798
1799else
1800 STRIP=":"
1801fi
1802fi
1803
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001804# Find a good install program. We prefer a C program (faster),
1805# so one script is as good as another. But avoid the broken or
1806# incompatible versions:
1807# SysV /etc/install, /usr/sbin/install
1808# SunOS /usr/etc/install
1809# IRIX /sbin/install
1810# AIX /bin/install
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001811# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001812# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1813# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1814# ./install, which can be erroneously created by make from ./install.sh.
1815echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001816echo "configure:1817: checking for a BSD compatible install" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001817if test -z "$INSTALL"; then
1818if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1819 echo $ac_n "(cached) $ac_c" 1>&6
1820else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001821 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001822 for ac_dir in $PATH; do
1823 # Account for people who put trailing slashes in PATH elements.
1824 case "$ac_dir/" in
1825 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1826 *)
1827 # OSF1 and SCO ODT 3.0 have their own names for install.
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001828 # Don't use installbsd from OSF since it installs stuff as root
1829 # by default.
1830 for ac_prog in ginstall scoinst install; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001831 if test -f $ac_dir/$ac_prog; then
1832 if test $ac_prog = install &&
1833 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1834 # AIX install. It has an incompatible calling convention.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001835 :
1836 else
1837 ac_cv_path_install="$ac_dir/$ac_prog -c"
1838 break 2
1839 fi
1840 fi
1841 done
1842 ;;
1843 esac
1844 done
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001845 IFS="$ac_save_IFS"
1846
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001847fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001848 if test "${ac_cv_path_install+set}" = set; then
1849 INSTALL="$ac_cv_path_install"
1850 else
1851 # As a last resort, use the slow shell script. We don't cache a
1852 # path for INSTALL within a source directory, because that will
1853 # break other packages using the cache if that directory is
1854 # removed, or if the path is relative.
1855 INSTALL="$ac_install_sh"
1856 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001857fi
1858echo "$ac_t""$INSTALL" 1>&6
1859
1860# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1861# It thinks the first close brace ends the variable substitution.
1862test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1863
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001864test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1865
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001866test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1867
Theodore Ts'o6c133521999-07-03 20:37:03 +00001868# See if we need a separate native compiler.
1869if test $cross_compiling = no; then
1870 BUILD_CC="$CC"
1871
1872else
1873 for ac_prog in gcc cc
1874do
1875# Extract the first word of "$ac_prog", so it can be a program name with args.
1876set dummy $ac_prog; ac_word=$2
1877echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001878echo "configure:1879: checking for $ac_word" >&5
Theodore Ts'o6c133521999-07-03 20:37:03 +00001879if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
1880 echo $ac_n "(cached) $ac_c" 1>&6
1881else
1882 if test -n "$BUILD_CC"; then
1883 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
1884else
1885 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1886 ac_dummy="$PATH"
1887 for ac_dir in $ac_dummy; do
1888 test -z "$ac_dir" && ac_dir=.
1889 if test -f $ac_dir/$ac_word; then
1890 ac_cv_prog_BUILD_CC="$ac_prog"
1891 break
1892 fi
1893 done
1894 IFS="$ac_save_ifs"
1895fi
1896fi
1897BUILD_CC="$ac_cv_prog_BUILD_CC"
1898if test -n "$BUILD_CC"; then
1899 echo "$ac_t""$BUILD_CC" 1>&6
1900else
1901 echo "$ac_t""no" 1>&6
1902fi
1903
1904test -n "$BUILD_CC" && break
1905done
1906
1907fi
Theodore Ts'oc81c6ce1999-10-26 04:28:53 +00001908for ac_hdr in stdlib.h unistd.h stdarg.h errno.h malloc.h mntent.h paths.h dirent.h getopt.h setjmp.h signal.h termios.h linux/fd.h linux/major.h sys/disklabel.h sys/sockio.h sys/time.h sys/stat.h sys/types.h net/if.h netinet/in.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001909do
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001910ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001911echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001912echo "configure:1913: checking for $ac_hdr" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001913if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1914 echo $ac_n "(cached) $ac_c" 1>&6
1915else
1916 cat > conftest.$ac_ext <<EOF
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001917#line 1918 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001918#include "confdefs.h"
1919#include <$ac_hdr>
1920EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001921ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001922{ (eval echo configure:1923: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001923ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001924if test -z "$ac_err"; then
1925 rm -rf conftest*
1926 eval "ac_cv_header_$ac_safe=yes"
1927else
1928 echo "$ac_err" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001929 echo "configure: failed program was:" >&5
1930 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001931 rm -rf conftest*
1932 eval "ac_cv_header_$ac_safe=no"
1933fi
1934rm -f conftest*
1935fi
1936if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1937 echo "$ac_t""yes" 1>&6
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001938 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001939 cat >> confdefs.h <<EOF
1940#define $ac_tr_hdr 1
1941EOF
1942
1943else
1944 echo "$ac_t""no" 1>&6
1945fi
1946done
1947
1948echo $ac_n "checking for vprintf""... $ac_c" 1>&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001949echo "configure:1950: checking for vprintf" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001950if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
1951 echo $ac_n "(cached) $ac_c" 1>&6
1952else
1953 cat > conftest.$ac_ext <<EOF
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001954#line 1955 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001955#include "confdefs.h"
1956/* System header to define __stub macros and hopefully few prototypes,
1957 which can conflict with char vprintf(); below. */
1958#include <assert.h>
1959/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001960/* We use char because int might match the return type of a gcc2
1961 builtin and then its argument prototype would still apply. */
1962char vprintf();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001963
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001964int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001965
1966/* The GNU C library defines this for functions which it implements
1967 to always fail with ENOSYS. Some functions are actually named
1968 something starting with __ and the normal name is an alias. */
1969#if defined (__stub_vprintf) || defined (__stub___vprintf)
1970choke me
1971#else
1972vprintf();
1973#endif
1974
1975; return 0; }
1976EOF
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001977if { (eval echo configure:1978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001978 rm -rf conftest*
1979 eval "ac_cv_func_vprintf=yes"
1980else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001981 echo "configure: failed program was:" >&5
1982 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001983 rm -rf conftest*
1984 eval "ac_cv_func_vprintf=no"
1985fi
1986rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001987fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001988
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001989if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
1990 echo "$ac_t""yes" 1>&6
1991 cat >> confdefs.h <<\EOF
1992#define HAVE_VPRINTF 1
1993EOF
1994
1995else
1996 echo "$ac_t""no" 1>&6
1997fi
1998
1999if test "$ac_cv_func_vprintf" != yes; then
2000echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002001echo "configure:2002: checking for _doprnt" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002002if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2003 echo $ac_n "(cached) $ac_c" 1>&6
2004else
2005 cat > conftest.$ac_ext <<EOF
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002006#line 2007 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002007#include "confdefs.h"
2008/* System header to define __stub macros and hopefully few prototypes,
2009 which can conflict with char _doprnt(); below. */
2010#include <assert.h>
2011/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002012/* We use char because int might match the return type of a gcc2
2013 builtin and then its argument prototype would still apply. */
2014char _doprnt();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002015
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002016int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002017
2018/* The GNU C library defines this for functions which it implements
2019 to always fail with ENOSYS. Some functions are actually named
2020 something starting with __ and the normal name is an alias. */
2021#if defined (__stub__doprnt) || defined (__stub____doprnt)
2022choke me
2023#else
2024_doprnt();
2025#endif
2026
2027; return 0; }
2028EOF
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002029if { (eval echo configure:2030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002030 rm -rf conftest*
2031 eval "ac_cv_func__doprnt=yes"
2032else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002033 echo "configure: failed program was:" >&5
2034 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002035 rm -rf conftest*
2036 eval "ac_cv_func__doprnt=no"
2037fi
2038rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002039fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002040
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002041if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2042 echo "$ac_t""yes" 1>&6
2043 cat >> confdefs.h <<\EOF
2044#define HAVE_DOPRNT 1
2045EOF
2046
2047else
2048 echo "$ac_t""no" 1>&6
2049fi
2050
2051fi
2052
2053echo $ac_n "checking whether struct dirent has a d_namlen field""... $ac_c" 1>&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002054echo "configure:2055: checking whether struct dirent has a d_namlen field" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002055if eval "test \"`echo '$''{'e2fsprogs_cv_struct_d_namlen'+set}'`\" = set"; then
2056 echo $ac_n "(cached) $ac_c" 1>&6
2057else
2058 cat > conftest.$ac_ext <<EOF
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002059#line 2060 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002060#include "confdefs.h"
2061#include <sys/types.h>
2062#include <dirent.h>
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002063int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002064struct dirent de; de.d_namlen = 0;
2065; return 0; }
2066EOF
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002067if { (eval echo configure:2068: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002068 rm -rf conftest*
2069 e2fsprogs_cv_struct_d_namlen=yes
2070else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002071 echo "configure: failed program was:" >&5
2072 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002073 rm -rf conftest*
2074 e2fsprogs_cv_struct_d_namlen=no
2075fi
2076rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002077fi
2078
2079echo "$ac_t""$e2fsprogs_cv_struct_d_namlen" 1>&6
2080if test "$e2fsprogs_cv_struct_d_namlen" = yes; then
2081 cat >> confdefs.h <<\EOF
2082#define HAVE_DIRENT_NAMLEN 1
2083EOF
2084
2085fi
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00002086echo $ac_n "checking whether llseek declared in unistd.h""... $ac_c" 1>&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002087echo "configure:2088: checking whether llseek declared in unistd.h" >&5
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00002088if eval "test \"`echo '$''{'e2fsprogs_cv_have_llseek_prototype'+set}'`\" = set"; then
2089 echo $ac_n "(cached) $ac_c" 1>&6
2090else
2091 cat > conftest.$ac_ext <<EOF
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002092#line 2093 "configure"
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00002093#include "confdefs.h"
2094#include <unistd.h>
2095int main() {
2096extern int llseek(int);
2097; return 0; }
2098EOF
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002099if { (eval echo configure:2100: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00002100 rm -rf conftest*
2101 e2fsprogs_cv_have_llseek_prototype=no
2102else
2103 echo "configure: failed program was:" >&5
2104 cat conftest.$ac_ext >&5
2105 rm -rf conftest*
2106 e2fsprogs_cv_have_llseek_prototype=yes
2107fi
2108rm -f conftest*
2109fi
2110
2111echo "$ac_t""$e2fsprogs_cv_have_llseek_prototype" 1>&6
2112if test "$e2fsprogs_cv_have_llseek_prototype" = yes; then
2113 cat >> confdefs.h <<\EOF
2114#define HAVE_LLSEEK_PROTOTYPE 1
2115EOF
2116
2117fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002118if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
2119 # if cross-compiling, with no cached values, just assume something common.
2120 ac_cv_sizeof_short=2
2121 ac_cv_sizeof_int=4
2122 ac_cv_sizeof_long=4
Theodore Ts'o6c133521999-07-03 20:37:03 +00002123 ac_cv_sizeof_long_long=8
2124 echo "configure: warning: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" 1>&2
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002125fi
2126echo $ac_n "checking size of short""... $ac_c" 1>&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002127echo "configure:2128: checking size of short" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002128if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2129 echo $ac_n "(cached) $ac_c" 1>&6
2130else
2131 if test "$cross_compiling" = yes; then
2132 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2133else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002134 cat > conftest.$ac_ext <<EOF
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002135#line 2136 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002136#include "confdefs.h"
2137#include <stdio.h>
2138main()
2139{
2140 FILE *f=fopen("conftestval", "w");
2141 if (!f) exit(1);
2142 fprintf(f, "%d\n", sizeof(short));
2143 exit(0);
2144}
2145EOF
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002146if { (eval echo configure:2147: \"$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 +00002147then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002148 ac_cv_sizeof_short=`cat conftestval`
2149else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002150 echo "configure: failed program was:" >&5
2151 cat conftest.$ac_ext >&5
2152 rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002153 ac_cv_sizeof_short=0
2154fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002155rm -fr conftest*
2156fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002157
2158fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002159echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2160cat >> confdefs.h <<EOF
2161#define SIZEOF_SHORT $ac_cv_sizeof_short
2162EOF
2163
2164
2165echo $ac_n "checking size of int""... $ac_c" 1>&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002166echo "configure:2167: checking size of int" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002167if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2168 echo $ac_n "(cached) $ac_c" 1>&6
2169else
2170 if test "$cross_compiling" = yes; then
2171 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2172else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002173 cat > conftest.$ac_ext <<EOF
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002174#line 2175 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002175#include "confdefs.h"
2176#include <stdio.h>
2177main()
2178{
2179 FILE *f=fopen("conftestval", "w");
2180 if (!f) exit(1);
2181 fprintf(f, "%d\n", sizeof(int));
2182 exit(0);
2183}
2184EOF
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002185if { (eval echo configure:2186: \"$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 +00002186then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002187 ac_cv_sizeof_int=`cat conftestval`
2188else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002189 echo "configure: failed program was:" >&5
2190 cat conftest.$ac_ext >&5
2191 rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002192 ac_cv_sizeof_int=0
2193fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002194rm -fr conftest*
2195fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002196
2197fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002198echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2199cat >> confdefs.h <<EOF
2200#define SIZEOF_INT $ac_cv_sizeof_int
2201EOF
2202
2203
2204echo $ac_n "checking size of long""... $ac_c" 1>&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002205echo "configure:2206: checking size of long" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002206if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2207 echo $ac_n "(cached) $ac_c" 1>&6
2208else
2209 if test "$cross_compiling" = yes; then
2210 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2211else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002212 cat > conftest.$ac_ext <<EOF
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002213#line 2214 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002214#include "confdefs.h"
2215#include <stdio.h>
2216main()
2217{
2218 FILE *f=fopen("conftestval", "w");
2219 if (!f) exit(1);
2220 fprintf(f, "%d\n", sizeof(long));
2221 exit(0);
2222}
2223EOF
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002224if { (eval echo configure:2225: \"$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 +00002225then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002226 ac_cv_sizeof_long=`cat conftestval`
2227else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002228 echo "configure: failed program was:" >&5
2229 cat conftest.$ac_ext >&5
2230 rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002231 ac_cv_sizeof_long=0
2232fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002233rm -fr conftest*
2234fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002235
2236fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002237echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2238cat >> confdefs.h <<EOF
2239#define SIZEOF_LONG $ac_cv_sizeof_long
2240EOF
2241
2242
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002243echo $ac_n "checking size of long long""... $ac_c" 1>&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002244echo "configure:2245: checking size of long long" >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002245if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
2246 echo $ac_n "(cached) $ac_c" 1>&6
2247else
2248 if test "$cross_compiling" = yes; then
2249 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2250else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002251 cat > conftest.$ac_ext <<EOF
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002252#line 2253 "configure"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002253#include "confdefs.h"
2254#include <stdio.h>
2255main()
2256{
2257 FILE *f=fopen("conftestval", "w");
2258 if (!f) exit(1);
2259 fprintf(f, "%d\n", sizeof(long long));
2260 exit(0);
2261}
2262EOF
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002263if { (eval echo configure:2264: \"$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 +00002264then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002265 ac_cv_sizeof_long_long=`cat conftestval`
2266else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002267 echo "configure: failed program was:" >&5
2268 cat conftest.$ac_ext >&5
2269 rm -fr conftest*
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002270 ac_cv_sizeof_long_long=0
2271fi
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002272rm -fr conftest*
2273fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002274
2275fi
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002276echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
2277cat >> confdefs.h <<EOF
2278#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
2279EOF
2280
2281
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002282SIZEOF_SHORT=$ac_cv_sizeof_short
2283SIZEOF_INT=$ac_cv_sizeof_int
2284SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002285SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
2286
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002287
2288
2289
2290echo $ac_n "checking whether struct stat has a st_flags field""... $ac_c" 1>&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002291echo "configure:2292: checking whether struct stat has a st_flags field" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002292if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags'+set}'`\" = set"; then
2293 echo $ac_n "(cached) $ac_c" 1>&6
2294else
2295 cat > conftest.$ac_ext <<EOF
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002296#line 2297 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002297#include "confdefs.h"
2298#include <sys/stat.h>
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002299int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002300struct stat stat; stat.st_flags = 0;
2301; return 0; }
2302EOF
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002303if { (eval echo configure:2304: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002304 rm -rf conftest*
2305 e2fsprogs_cv_struct_st_flags=yes
2306else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002307 echo "configure: failed program was:" >&5
2308 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002309 rm -rf conftest*
2310 e2fsprogs_cv_struct_st_flags=no
2311fi
2312rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002313fi
2314
2315echo "$ac_t""$e2fsprogs_cv_struct_st_flags" 1>&6
2316if test "$e2fsprogs_cv_struct_st_flags" = yes; then
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00002317 echo $ac_n "checking whether st_flags field is useful""... $ac_c" 1>&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002318echo "configure:2319: checking whether st_flags field is useful" >&5
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00002319 if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags_immut'+set}'`\" = set"; then
2320 echo $ac_n "(cached) $ac_c" 1>&6
2321else
2322 cat > conftest.$ac_ext <<EOF
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002323#line 2324 "configure"
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00002324#include "confdefs.h"
2325#include <sys/stat.h>
2326int main() {
2327struct stat stat; stat.st_flags |= UF_IMMUTABLE;
2328; return 0; }
2329EOF
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002330if { (eval echo configure:2331: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00002331 rm -rf conftest*
2332 e2fsprogs_cv_struct_st_flags_immut=yes
2333else
2334 echo "configure: failed program was:" >&5
2335 cat conftest.$ac_ext >&5
2336 rm -rf conftest*
2337 e2fsprogs_cv_struct_st_flags_immut=no
2338fi
2339rm -f conftest*
2340fi
2341
2342 echo "$ac_t""$e2fsprogs_cv_struct_st_flags_immut" 1>&6
2343 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
2344 cat >> confdefs.h <<\EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002345#define HAVE_STAT_FLAGS 1
2346EOF
2347
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00002348 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002349fi
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00002350for ac_func in chflags getrusage llseek strdup getmntinfo strcasecmp srandom fchown mallinfo
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002351do
2352echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002353echo "configure:2354: checking for $ac_func" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002354if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2355 echo $ac_n "(cached) $ac_c" 1>&6
2356else
2357 cat > conftest.$ac_ext <<EOF
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002358#line 2359 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002359#include "confdefs.h"
2360/* System header to define __stub macros and hopefully few prototypes,
2361 which can conflict with char $ac_func(); below. */
2362#include <assert.h>
2363/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002364/* We use char because int might match the return type of a gcc2
2365 builtin and then its argument prototype would still apply. */
2366char $ac_func();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002367
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002368int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002369
2370/* The GNU C library defines this for functions which it implements
2371 to always fail with ENOSYS. Some functions are actually named
2372 something starting with __ and the normal name is an alias. */
2373#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2374choke me
2375#else
2376$ac_func();
2377#endif
2378
2379; return 0; }
2380EOF
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002381if { (eval echo configure:2382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002382 rm -rf conftest*
2383 eval "ac_cv_func_$ac_func=yes"
2384else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002385 echo "configure: failed program was:" >&5
2386 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002387 rm -rf conftest*
2388 eval "ac_cv_func_$ac_func=no"
2389fi
2390rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002391fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002392
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002393if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2394 echo "$ac_t""yes" 1>&6
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002395 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002396 cat >> confdefs.h <<EOF
2397#define $ac_tr_func 1
2398EOF
2399
2400else
2401 echo "$ac_t""no" 1>&6
2402fi
2403done
2404
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002405echo $ac_n "checking ino_t defined by sys/types.h""... $ac_c" 1>&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002406echo "configure:2407: checking ino_t defined by sys/types.h" >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002407if eval "test \"`echo '$''{'e2fsprogs_cv_ino_t'+set}'`\" = set"; then
2408 echo $ac_n "(cached) $ac_c" 1>&6
2409else
2410 cat > conftest.$ac_ext <<EOF
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002411#line 2412 "configure"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002412#include "confdefs.h"
2413#include <sys/types.h>
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002414int main() {
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002415ino_t ino; ino = 0;
2416; return 0; }
2417EOF
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002418if { (eval echo configure:2419: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002419 rm -rf conftest*
2420 e2fsprogs_cv_ino_t=yes
2421else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002422 echo "configure: failed program was:" >&5
2423 cat conftest.$ac_ext >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002424 rm -rf conftest*
2425 e2fsprogs_cv_ino_t=no
2426fi
2427rm -f conftest*
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002428fi
2429
2430echo "$ac_t""$e2fsprogs_cv_ino_t" 1>&6
2431if test "$e2fsprogs_cv_ino_t" = yes; then
2432 cat >> confdefs.h <<\EOF
2433#define HAVE_INO_T 1
2434EOF
2435
2436fi
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002437SOCKET_LIB=''
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002438echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002439echo "configure:2440: checking for socket in -lsocket" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002440ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
2441if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002442 echo $ac_n "(cached) $ac_c" 1>&6
2443else
2444 ac_save_LIBS="$LIBS"
2445LIBS="-lsocket $LIBS"
2446cat > conftest.$ac_ext <<EOF
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002447#line 2448 "configure"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002448#include "confdefs.h"
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002449/* Override any gcc2 internal prototype to avoid an error. */
2450/* We use char because int might match the return type of a gcc2
2451 builtin and then its argument prototype would still apply. */
2452char socket();
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002453
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002454int main() {
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002455socket()
2456; return 0; }
2457EOF
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002458if { (eval echo configure:2459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002459 rm -rf conftest*
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002460 eval "ac_cv_lib_$ac_lib_var=yes"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002461else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002462 echo "configure: failed program was:" >&5
2463 cat conftest.$ac_ext >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002464 rm -rf conftest*
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002465 eval "ac_cv_lib_$ac_lib_var=no"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002466fi
2467rm -f conftest*
2468LIBS="$ac_save_LIBS"
2469
2470fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002471if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002472 echo "$ac_t""yes" 1>&6
2473 SOCKET_LIB=-lsocket
2474else
2475 echo "$ac_t""no" 1>&6
2476fi
2477
2478
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002479echo $ac_n "checking for optreset""... $ac_c" 1>&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002480echo "configure:2481: checking for optreset" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002481if eval "test \"`echo '$''{'ac_cv_have_optreset'+set}'`\" = set"; then
2482 echo $ac_n "(cached) $ac_c" 1>&6
2483else
2484 cat > conftest.$ac_ext <<EOF
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002485#line 2486 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002486#include "confdefs.h"
2487#include <unistd.h>
2488EOF
2489if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2490 egrep "optreset" >/dev/null 2>&1; then
2491 rm -rf conftest*
2492 ac_cv_have_optreset=yes
2493else
2494 rm -rf conftest*
2495 ac_cv_have_optreset=no
2496fi
2497rm -f conftest*
2498
2499fi
2500echo "$ac_t""$ac_cv_have_optreset" 1>&6
2501if test $ac_cv_have_optreset = yes; then
2502 cat >> confdefs.h <<\EOF
2503#define HAVE_OPTRESET 1
2504EOF
2505
2506fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002507echo $ac_n "checking whether the ext2 ioctls compile""... $ac_c" 1>&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002508echo "configure:2509: checking whether the ext2 ioctls compile" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002509if eval "test \"`echo '$''{'e2fsprogs_cv_ioctl_ext2'+set}'`\" = set"; then
2510 echo $ac_n "(cached) $ac_c" 1>&6
2511else
2512 cat > conftest.$ac_ext <<EOF
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002513#line 2514 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002514#include "confdefs.h"
2515#include <linux/ext2_fs.h>
2516#include <sys/ioctl.h>
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002517int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002518ioctl (0, EXT2_IOC_SETVERSION, 0);
2519; return 0; }
2520EOF
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002521if { (eval echo configure:2522: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002522 rm -rf conftest*
2523 e2fsprogs_cv_ioctl_ext2=yes
2524else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002525 echo "configure: failed program was:" >&5
2526 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002527 rm -rf conftest*
2528 e2fsprogs_cv_ioctl_ext2=no
2529fi
2530rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002531fi
2532
2533echo "$ac_t""$e2fsprogs_cv_ioctl_ext2" 1>&6
2534if test "$e2fsprogs_cv_ioctl_ext2" = yes; then
2535 cat >> confdefs.h <<\EOF
2536#define HAVE_EXT2_IOCTLS 1
2537EOF
2538
2539fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002540case "$host_os" in
Theodore Ts'o6c133521999-07-03 20:37:03 +00002541linux* | gnu*)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00002542 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
2543 root_prefix="";
2544 echo "On $host_os systems, root_prefix defaults to ''"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002545 fi
2546 ;;
2547esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002548case "$host_os" in
2549linux* | gnu*)
2550 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00002551 prefix="/usr";
2552 echo "On $host_os systems, prefix defaults to /usr"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002553 fi
2554;;
2555esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00002556if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +00002557 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00002558 root_prefix="$ac_default_prefix"
2559 else
2560 root_prefix="$prefix"
2561 fi
2562fi
2563
Theodore Ts'oae851481997-04-29 18:13:24 +00002564echo $ac_n "checking whether linker accepts -static""... $ac_c" 1>&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002565echo "configure:2566: checking whether linker accepts -static" >&5
Theodore Ts'oae851481997-04-29 18:13:24 +00002566if eval "test \"`echo '$''{'ac_cv_e2fsprogs_use_static'+set}'`\" = set"; then
2567 echo $ac_n "(cached) $ac_c" 1>&6
2568else
2569 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
2570cat > conftest.$ac_ext <<EOF
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002571#line 2572 "configure"
Theodore Ts'oae851481997-04-29 18:13:24 +00002572#include "confdefs.h"
2573#include <stdio.h>
2574int main() {
2575fflush(stdout);
2576; return 0; }
2577EOF
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002578if { (eval echo configure:2579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oae851481997-04-29 18:13:24 +00002579 rm -rf conftest*
2580 ac_cv_e2fsprogs_use_static=yes
2581else
2582 echo "configure: failed program was:" >&5
2583 cat conftest.$ac_ext >&5
2584 rm -rf conftest*
2585 ac_cv_e2fsprogs_use_static=no
2586fi
2587rm -f conftest*
2588LDFLAGS=$SAVE_LDFLAGS
2589fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002590
Theodore Ts'odefde781999-01-04 07:39:19 +00002591case "$host_os" in
2592solaris2.*)
2593 ac_cv_e2fsprogs_use_static=no
2594;;
2595esac
Theodore Ts'oae851481997-04-29 18:13:24 +00002596echo "$ac_t""$ac_cv_e2fsprogs_use_static" 1>&6
Theodore Ts'o74becf31997-04-26 14:37:06 +00002597LDFLAG_STATIC=
Theodore Ts'oae851481997-04-29 18:13:24 +00002598if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002599 LDFLAG_STATIC=-static
Theodore Ts'oae851481997-04-29 18:13:24 +00002600fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002601
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002602SS_DIR=`cd ${srcdir}/lib/ss; pwd`
2603ET_DIR=`cd ${srcdir}/lib/et; pwd`
2604
2605
2606if test "$cross_compiling" = yes ; then
2607 DO_TEST_SUITE=
2608else
2609 DO_TEST_SUITE=check
2610fi
2611
Theodore Ts'oa4d09611997-04-29 14:28:00 +00002612DO_SUBSTITUTE_SCRIPT=$srcdir/lib/do_substitute
2613
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002614test -d lib || mkdir lib
2615test -d include || mkdir include
2616test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +00002617test -d include/asm || mkdir include/asm
Theodore Ts'obc210071997-06-17 05:41:36 +00002618rmakefile=
2619if test -d ${srcdir}/resize ; then
2620 rmakefile=resize/Makefile
2621fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002622trap '' 1 2 15
2623cat > confcache <<\EOF
2624# This file is a shell script that caches the results of configure
2625# tests run on this system so they can be shared between configure
2626# scripts and configure runs. It is not useful on other systems.
2627# If it contains results you don't want to keep, you may remove or edit it.
2628#
2629# By default, configure uses ./config.cache as the cache file,
2630# creating it if it does not exist already. You can give configure
2631# the --cache-file=FILE option to use a different cache file; that is
2632# what configure does when it calls configure scripts in
2633# subdirectories, so they share the cache.
2634# Giving --cache-file=/dev/null disables caching, for debugging configure.
2635# config.status only pays attention to the cache file if you give it the
2636# --recheck option to rerun configure.
2637#
2638EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002639# The following way of writing the cache mishandles newlines in values,
2640# but we know of no workaround that is simple, portable, and efficient.
2641# So, don't put newlines in cache variables' values.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002642# Ultrix sh set writes to stderr and can't be redirected directly,
2643# and sets the high bit in the cache file unless we assign to the vars.
2644(set) 2>&1 |
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00002645 case `(ac_space=' '; set | grep ac_space) 2>&1` in
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002646 *ac_space=\ *)
2647 # `set' does not quote correctly, so add quotes (double-quote substitution
2648 # turns \\\\ into \\, and sed turns \\ into \).
2649 sed -n \
2650 -e "s/'/'\\\\''/g" \
2651 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2652 ;;
2653 *)
2654 # `set' quotes correctly as required by POSIX, so do not add quotes.
2655 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2656 ;;
2657 esac >> confcache
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002658if cmp -s $cache_file confcache; then
2659 :
2660else
2661 if test -w $cache_file; then
2662 echo "updating cache $cache_file"
2663 cat confcache > $cache_file
2664 else
2665 echo "not updating unwritable cache $cache_file"
2666 fi
2667fi
2668rm -f confcache
2669
2670trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2671
2672test "x$prefix" = xNONE && prefix=$ac_default_prefix
2673# Let make expand exec_prefix.
2674test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2675
2676# Any assignment to VPATH causes Sun make to only execute
2677# the first set of double-colon rules, so remove it if not needed.
2678# If there is a colon in the path, we need to keep it.
2679if test "x$srcdir" = x.; then
2680 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2681fi
2682
2683trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2684
2685# Transform confdefs.h into DEFS.
2686# Protect against shell expansion while executing Makefile rules.
2687# Protect against Makefile macro expansion.
2688cat > conftest.defs <<\EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002689s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002690s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
2691s%\[%\\&%g
2692s%\]%\\&%g
2693s%\$%$$%g
2694EOF
2695DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2696rm -f conftest.defs
2697
2698
2699# Without the "./", some shells look in PATH for config.status.
2700: ${CONFIG_STATUS=./config.status}
2701
2702echo creating $CONFIG_STATUS
2703rm -f $CONFIG_STATUS
2704cat > $CONFIG_STATUS <<EOF
2705#! /bin/sh
2706# Generated automatically by configure.
2707# Run this file to recreate the current configuration.
2708# This directory was configured as follows,
2709# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2710#
2711# $0 $ac_configure_args
2712#
2713# Compiler output produced by configure, useful for debugging
2714# configure, is in ./config.log if it exists.
2715
2716ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2717for ac_option
2718do
2719 case "\$ac_option" in
2720 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2721 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2722 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2723 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00002724 echo "$CONFIG_STATUS generated by autoconf version 2.13"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002725 exit 0 ;;
2726 -help | --help | --hel | --he | --h)
2727 echo "\$ac_cs_usage"; exit 0 ;;
2728 *) echo "\$ac_cs_usage"; exit 1 ;;
2729 esac
2730done
2731
2732ac_given_srcdir=$srcdir
2733ac_given_INSTALL="$INSTALL"
2734
Theodore Ts'o44339bd1997-10-15 02:47:20 +00002735trap 'rm -fr `echo "MCONFIG Makefile util/Makefile util/subst.conf lib/et/Makefile
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002736 lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile lib/uuid/Makefile
2737 misc/Makefile e2fsck/Makefile debugfs/Makefile tests/Makefile
Theodore Ts'obc210071997-06-17 05:41:36 +00002738 tests/progs/Makefile $rmakefile doc/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002739EOF
2740cat >> $CONFIG_STATUS <<EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002741
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002742# Protect against being on the right side of a sed subst in config.status.
2743sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2744 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002745$ac_vpsub
2746$extrasub
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00002747s%@SHELL@%$SHELL%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002748s%@CFLAGS@%$CFLAGS%g
2749s%@CPPFLAGS@%$CPPFLAGS%g
2750s%@CXXFLAGS@%$CXXFLAGS%g
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00002751s%@FFLAGS@%$FFLAGS%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002752s%@DEFS@%$DEFS%g
2753s%@LDFLAGS@%$LDFLAGS%g
2754s%@LIBS@%$LIBS%g
2755s%@exec_prefix@%$exec_prefix%g
2756s%@prefix@%$prefix%g
2757s%@program_transform_name@%$program_transform_name%g
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002758s%@bindir@%$bindir%g
2759s%@sbindir@%$sbindir%g
2760s%@libexecdir@%$libexecdir%g
2761s%@datadir@%$datadir%g
2762s%@sysconfdir@%$sysconfdir%g
2763s%@sharedstatedir@%$sharedstatedir%g
2764s%@localstatedir@%$localstatedir%g
2765s%@libdir@%$libdir%g
2766s%@includedir@%$includedir%g
2767s%@oldincludedir@%$oldincludedir%g
2768s%@infodir@%$infodir%g
2769s%@mandir@%$mandir%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002770/@MCONFIG@/r $MCONFIG
2771s%@MCONFIG@%%g
Theodore Ts'o74becf31997-04-26 14:37:06 +00002772s%@E2FSPROGS_YEAR@%$E2FSPROGS_YEAR%g
2773s%@E2FSPROGS_MONTH@%$E2FSPROGS_MONTH%g
2774s%@E2FSPROGS_VERSION@%$E2FSPROGS_VERSION%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002775s%@host@%$host%g
2776s%@host_alias@%$host_alias%g
2777s%@host_cpu@%$host_cpu%g
2778s%@host_vendor@%$host_vendor%g
2779s%@host_os@%$host_os%g
Theodore Ts'o74becf31997-04-26 14:37:06 +00002780s%@CC@%$CC%g
2781s%@LD@%$LD%g
2782s%@CCOPTS@%$CCOPTS%g
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002783s%@CPP@%$CPP%g
2784s%@LINUX_INCLUDE@%$LINUX_INCLUDE%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002785s%@DLL_CMT@%$DLL_CMT%g
2786/@MAKEFILE_DLL@/r $MAKEFILE_DLL
2787s%@MAKEFILE_DLL@%%g
2788s%@ELF_CMT@%$ELF_CMT%g
2789/@MAKEFILE_ELF@/r $MAKEFILE_ELF
2790s%@MAKEFILE_ELF@%%g
2791s%@BSDLIB_CMT@%$BSDLIB_CMT%g
2792/@MAKEFILE_BSDLIB@/r $MAKEFILE_BSDLIB
2793s%@MAKEFILE_BSDLIB@%%g
2794s%@PROFILE_CMT@%$PROFILE_CMT%g
2795/@MAKEFILE_PROFILE@/r $MAKEFILE_PROFILE
2796s%@MAKEFILE_PROFILE@%%g
2797s%@CHECKER_CMT@%$CHECKER_CMT%g
2798/@MAKEFILE_CHECKER@/r $MAKEFILE_CHECKER
2799s%@MAKEFILE_CHECKER@%%g
Theodore Ts'oa4d09611997-04-29 14:28:00 +00002800s%@LIB_EXT@%$LIB_EXT%g
2801s%@STATIC_LIB_EXT@%$STATIC_LIB_EXT%g
2802s%@PROFILED_LIB_EXT@%$PROFILED_LIB_EXT%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002803s%@W@%$W%g
Theodore Ts'oa4d09611997-04-29 14:28:00 +00002804s%@E2FSCK_TYPE@%$E2FSCK_TYPE%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002805s%@FSCK_PROG@%$FSCK_PROG%g
2806s%@FSCK_MAN@%$FSCK_MAN%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002807/@MAKEFILE_LIBRARY@/r $MAKEFILE_LIBRARY
2808s%@MAKEFILE_LIBRARY@%%g
Theodore Ts'o74becf31997-04-26 14:37:06 +00002809s%@BINARY_TYPE@%$BINARY_TYPE%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002810s%@SET_MAKE@%$SET_MAKE%g
2811s%@LN@%$LN%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002812s%@LN_S@%$LN_S%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002813s%@MV@%$MV%g
2814s%@CP@%$CP%g
2815s%@RM@%$RM%g
2816s%@CHMOD@%$CHMOD%g
2817s%@AWK@%$AWK%g
2818s%@SED@%$SED%g
Theodore Ts'o9d564f71999-07-03 20:25:58 +00002819s%@PERL@%$PERL%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002820s%@build@%$build%g
2821s%@build_alias@%$build_alias%g
2822s%@build_cpu@%$build_cpu%g
2823s%@build_vendor@%$build_vendor%g
2824s%@build_os@%$build_os%g
2825s%@AR@%$AR%g
2826s%@RANLIB@%$RANLIB%g
2827s%@STRIP@%$STRIP%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002828s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00002829s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002830s%@INSTALL_DATA@%$INSTALL_DATA%g
Theodore Ts'o6c133521999-07-03 20:37:03 +00002831s%@BUILD_CC@%$BUILD_CC%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002832s%@SIZEOF_SHORT@%$SIZEOF_SHORT%g
2833s%@SIZEOF_INT@%$SIZEOF_INT%g
2834s%@SIZEOF_LONG@%$SIZEOF_LONG%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002835s%@SIZEOF_LONG_LONG@%$SIZEOF_LONG_LONG%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002836s%@SOCKET_LIB@%$SOCKET_LIB%g
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00002837s%@root_prefix@%$root_prefix%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002838s%@LDFLAG_STATIC@%$LDFLAG_STATIC%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002839s%@SS_DIR@%$SS_DIR%g
2840s%@ET_DIR@%$ET_DIR%g
2841s%@DO_TEST_SUITE@%$DO_TEST_SUITE%g
Theodore Ts'oa4d09611997-04-29 14:28:00 +00002842/@DO_SUBSTITUTE_SCRIPT@/r $DO_SUBSTITUTE_SCRIPT
2843s%@DO_SUBSTITUTE_SCRIPT@%%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002844
2845CEOF
2846EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002847
2848cat >> $CONFIG_STATUS <<\EOF
2849
2850# Split the substitutions into bite-sized pieces for seds with
2851# small command number limits, like on Digital OSF/1 and HP-UX.
2852ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2853ac_file=1 # Number of current file.
2854ac_beg=1 # First line for current file.
2855ac_end=$ac_max_sed_cmds # Line after last line for current file.
2856ac_more_lines=:
2857ac_sed_cmds=""
2858while $ac_more_lines; do
2859 if test $ac_beg -gt 1; then
2860 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2861 else
2862 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2863 fi
2864 if test ! -s conftest.s$ac_file; then
2865 ac_more_lines=false
2866 rm -f conftest.s$ac_file
2867 else
2868 if test -z "$ac_sed_cmds"; then
2869 ac_sed_cmds="sed -f conftest.s$ac_file"
2870 else
2871 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2872 fi
2873 ac_file=`expr $ac_file + 1`
2874 ac_beg=$ac_end
2875 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2876 fi
2877done
2878if test -z "$ac_sed_cmds"; then
2879 ac_sed_cmds=cat
2880fi
2881EOF
2882
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002883cat >> $CONFIG_STATUS <<EOF
2884
Theodore Ts'o44339bd1997-10-15 02:47:20 +00002885CONFIG_FILES=\${CONFIG_FILES-"MCONFIG Makefile util/Makefile util/subst.conf lib/et/Makefile
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002886 lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile lib/uuid/Makefile
2887 misc/Makefile e2fsck/Makefile debugfs/Makefile tests/Makefile
Theodore Ts'obc210071997-06-17 05:41:36 +00002888 tests/progs/Makefile $rmakefile doc/Makefile"}
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002889EOF
2890cat >> $CONFIG_STATUS <<\EOF
2891for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002892 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002893 case "$ac_file" in
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002894 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002895 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2896 *) ac_file_in="${ac_file}.in" ;;
2897 esac
2898
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002899 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002900
2901 # Remove last slash and all that follows it. Not all systems have dirname.
2902 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2903 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2904 # The file is in a subdirectory.
2905 test ! -d "$ac_dir" && mkdir "$ac_dir"
2906 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2907 # A "../" for each directory in $ac_dir_suffix.
2908 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2909 else
2910 ac_dir_suffix= ac_dots=
2911 fi
2912
2913 case "$ac_given_srcdir" in
2914 .) srcdir=.
2915 if test -z "$ac_dots"; then top_srcdir=.
2916 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2917 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2918 *) # Relative path.
2919 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2920 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2921 esac
2922
2923 case "$ac_given_INSTALL" in
2924 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2925 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2926 esac
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002927
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002928 echo creating "$ac_file"
2929 rm -f "$ac_file"
2930 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2931 case "$ac_file" in
2932 *Makefile*) ac_comsub="1i\\
2933# $configure_input" ;;
2934 *) ac_comsub= ;;
2935 esac
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002936
2937 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 +00002938 sed -e "$ac_comsub
2939s%@configure_input@%$configure_input%g
2940s%@srcdir@%$srcdir%g
2941s%@top_srcdir@%$top_srcdir%g
2942s%@INSTALL@%$INSTALL%g
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002943" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002944fi; done
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002945rm -f conftest.s*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002946
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002947EOF
2948cat >> $CONFIG_STATUS <<EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002949
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002950EOF
2951cat >> $CONFIG_STATUS <<\EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002952
2953exit 0
2954EOF
2955chmod +x $CONFIG_STATUS
2956rm -fr confdefs* $ac_clean_files
2957test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2958