blob: ab9582850efa1804efbcfe3f9d591e179e325046 [file] [log] [blame]
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004# Generated automatically using autoconf version 2.13
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006#
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Defaults:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
14ac_help="$ac_help
Theodore Ts'o74becf31997-04-26 14:37:06 +000015 --with-cc=COMPILER select compiler to use"
16ac_help="$ac_help
17 --with-linker=LINKER select linker to use"
18ac_help="$ac_help
19 --with-ccopts=CCOPTS select compiler command line options"
20ac_help="$ac_help
21 --with-ldopts=LDOPTS select linker command line options"
22ac_help="$ac_help
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000023 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000024ac_help="$ac_help
Theodore Ts'oa4d09611997-04-29 14:28:00 +000025 --enable-dll-shlibs select DLL libraries"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000026ac_help="$ac_help
Theodore Ts'oa4d09611997-04-29 14:28:00 +000027 --enable-elf-shlibs select ELF shared libraries"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000028ac_help="$ac_help
Theodore Ts'oa4d09611997-04-29 14:28:00 +000029 --enable-bsd-shlibs select BSD shared libraries"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000030ac_help="$ac_help
Theodore Ts'oa4d09611997-04-29 14:28:00 +000031 --enable-profile build profiling libraries"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000032ac_help="$ac_help
Theodore Ts'oa4d09611997-04-29 14:28:00 +000033 --enable-checker build checker libraries"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000034ac_help="$ac_help
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000035 --enable-gcc-wall enable GCC anal warnings (DON'T USE IN PRODUCTION)"
Theodore Ts'oa4d09611997-04-29 14:28:00 +000036ac_help="$ac_help
37 --enable-dynamic-e2fsck build e2fsck dynamically"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000038ac_help="$ac_help
39 --enable-fsck build fsck wrapper program"
40ac_help="$ac_help
41 --enable-old-bitops Use old (non-standard but native) bitmask operations"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000042
43# Initialize some variables set by options.
44# The variables have the same names as the options, with
45# dashes changed to underlines.
46build=NONE
47cache_file=./config.cache
48exec_prefix=NONE
49host=NONE
50no_create=
51nonopt=NONE
52no_recursion=
53prefix=NONE
54program_prefix=NONE
55program_suffix=NONE
56program_transform_name=s,x,x,
57silent=
58site=
59srcdir=
60target=NONE
61verbose=
62x_includes=NONE
63x_libraries=NONE
Theodore Ts'o21c84b71997-04-29 16:15:03 +000064bindir='${exec_prefix}/bin'
65sbindir='${exec_prefix}/sbin'
66libexecdir='${exec_prefix}/libexec'
67datadir='${prefix}/share'
68sysconfdir='${prefix}/etc'
69sharedstatedir='${prefix}/com'
70localstatedir='${prefix}/var'
71libdir='${exec_prefix}/lib'
72includedir='${prefix}/include'
73oldincludedir='/usr/include'
74infodir='${prefix}/info'
75mandir='${prefix}/man'
Theodore Ts'o50e1e101997-04-26 13:58:21 +000076
77# Initialize some other variables.
78subdirs=
Theodore Ts'o21c84b71997-04-29 16:15:03 +000079MFLAGS= MAKEFLAGS=
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +000080SHELL=${CONFIG_SHELL-/bin/sh}
Theodore Ts'o21c84b71997-04-29 16:15:03 +000081# Maximum number of lines to put in a shell here document.
82ac_max_here_lines=12
Theodore Ts'o50e1e101997-04-26 13:58:21 +000083
84ac_prev=
85for ac_option
86do
87
88 # If the previous option needs an argument, assign it.
89 if test -n "$ac_prev"; then
90 eval "$ac_prev=\$ac_option"
91 ac_prev=
92 continue
93 fi
94
95 case "$ac_option" in
96 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
97 *) ac_optarg= ;;
98 esac
99
100 # Accept the important Cygnus configure options, so we can diagnose typos.
101
102 case "$ac_option" in
103
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000104 -bindir | --bindir | --bindi | --bind | --bin | --bi)
105 ac_prev=bindir ;;
106 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
107 bindir="$ac_optarg" ;;
108
109 -build | --build | --buil | --bui | --bu)
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000110 ac_prev=build ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000111 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000112 build="$ac_optarg" ;;
113
114 -cache-file | --cache-file | --cache-fil | --cache-fi \
115 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
116 ac_prev=cache_file ;;
117 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
118 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
119 cache_file="$ac_optarg" ;;
120
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000121 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
122 ac_prev=datadir ;;
123 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
124 | --da=*)
125 datadir="$ac_optarg" ;;
126
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000127 -disable-* | --disable-*)
128 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
129 # Reject names that are not valid shell variable names.
130 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
131 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
132 fi
133 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
134 eval "enable_${ac_feature}=no" ;;
135
136 -enable-* | --enable-*)
137 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
138 # Reject names that are not valid shell variable names.
139 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
140 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
141 fi
142 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
143 case "$ac_option" in
144 *=*) ;;
145 *) ac_optarg=yes ;;
146 esac
147 eval "enable_${ac_feature}='$ac_optarg'" ;;
148
149 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
150 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
151 | --exec | --exe | --ex)
152 ac_prev=exec_prefix ;;
153 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
154 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
155 | --exec=* | --exe=* | --ex=*)
156 exec_prefix="$ac_optarg" ;;
157
158 -gas | --gas | --ga | --g)
159 # Obsolete; use --with-gas.
160 with_gas=yes ;;
161
162 -help | --help | --hel | --he)
163 # Omit some internal or obsolete options to make the list less imposing.
164 # This message is too long to be a string in the A/UX 3.1 sh.
165 cat << EOF
166Usage: configure [options] [host]
167Options: [defaults in brackets after descriptions]
168Configuration:
169 --cache-file=FILE cache test results in FILE
170 --help print this message
171 --no-create do not create output files
172 --quiet, --silent do not print \`checking...' messages
173 --version print the version of autoconf that created configure
174Directory and file names:
175 --prefix=PREFIX install architecture-independent files in PREFIX
176 [$ac_default_prefix]
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000177 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000178 [same as prefix]
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000179 --bindir=DIR user executables in DIR [EPREFIX/bin]
180 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
181 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
182 --datadir=DIR read-only architecture-independent data in DIR
183 [PREFIX/share]
184 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
185 --sharedstatedir=DIR modifiable architecture-independent data in DIR
186 [PREFIX/com]
187 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
188 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
189 --includedir=DIR C header files in DIR [PREFIX/include]
190 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
191 --infodir=DIR info documentation in DIR [PREFIX/info]
192 --mandir=DIR man documentation in DIR [PREFIX/man]
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000193 --srcdir=DIR find the sources in DIR [configure dir or ..]
194 --program-prefix=PREFIX prepend PREFIX to installed program names
195 --program-suffix=SUFFIX append SUFFIX to installed program names
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000196 --program-transform-name=PROGRAM
197 run sed PROGRAM on installed program names
198EOF
199 cat << EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000200Host type:
201 --build=BUILD configure for building on BUILD [BUILD=HOST]
202 --host=HOST configure for HOST [guessed]
203 --target=TARGET configure for TARGET [TARGET=HOST]
204Features and packages:
205 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
206 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
207 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
208 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
209 --x-includes=DIR X include files are in DIR
210 --x-libraries=DIR X library files are in DIR
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000211EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000212 if test -n "$ac_help"; then
213 echo "--enable and --with options recognized:$ac_help"
214 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000215 exit 0 ;;
216
217 -host | --host | --hos | --ho)
218 ac_prev=host ;;
219 -host=* | --host=* | --hos=* | --ho=*)
220 host="$ac_optarg" ;;
221
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000222 -includedir | --includedir | --includedi | --included | --include \
223 | --includ | --inclu | --incl | --inc)
224 ac_prev=includedir ;;
225 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
226 | --includ=* | --inclu=* | --incl=* | --inc=*)
227 includedir="$ac_optarg" ;;
228
229 -infodir | --infodir | --infodi | --infod | --info | --inf)
230 ac_prev=infodir ;;
231 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
232 infodir="$ac_optarg" ;;
233
234 -libdir | --libdir | --libdi | --libd)
235 ac_prev=libdir ;;
236 -libdir=* | --libdir=* | --libdi=* | --libd=*)
237 libdir="$ac_optarg" ;;
238
239 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
240 | --libexe | --libex | --libe)
241 ac_prev=libexecdir ;;
242 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
243 | --libexe=* | --libex=* | --libe=*)
244 libexecdir="$ac_optarg" ;;
245
246 -localstatedir | --localstatedir | --localstatedi | --localstated \
247 | --localstate | --localstat | --localsta | --localst \
248 | --locals | --local | --loca | --loc | --lo)
249 ac_prev=localstatedir ;;
250 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
251 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
252 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
253 localstatedir="$ac_optarg" ;;
254
255 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
256 ac_prev=mandir ;;
257 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
258 mandir="$ac_optarg" ;;
259
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000260 -nfp | --nfp | --nf)
261 # Obsolete; use --without-fp.
262 with_fp=no ;;
263
264 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
265 | --no-cr | --no-c)
266 no_create=yes ;;
267
268 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
269 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
270 no_recursion=yes ;;
271
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000272 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
273 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
274 | --oldin | --oldi | --old | --ol | --o)
275 ac_prev=oldincludedir ;;
276 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
277 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
278 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
279 oldincludedir="$ac_optarg" ;;
280
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000281 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
282 ac_prev=prefix ;;
283 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
284 prefix="$ac_optarg" ;;
285
286 -program-prefix | --program-prefix | --program-prefi | --program-pref \
287 | --program-pre | --program-pr | --program-p)
288 ac_prev=program_prefix ;;
289 -program-prefix=* | --program-prefix=* | --program-prefi=* \
290 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
291 program_prefix="$ac_optarg" ;;
292
293 -program-suffix | --program-suffix | --program-suffi | --program-suff \
294 | --program-suf | --program-su | --program-s)
295 ac_prev=program_suffix ;;
296 -program-suffix=* | --program-suffix=* | --program-suffi=* \
297 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
298 program_suffix="$ac_optarg" ;;
299
300 -program-transform-name | --program-transform-name \
301 | --program-transform-nam | --program-transform-na \
302 | --program-transform-n | --program-transform- \
303 | --program-transform | --program-transfor \
304 | --program-transfo | --program-transf \
305 | --program-trans | --program-tran \
306 | --progr-tra | --program-tr | --program-t)
307 ac_prev=program_transform_name ;;
308 -program-transform-name=* | --program-transform-name=* \
309 | --program-transform-nam=* | --program-transform-na=* \
310 | --program-transform-n=* | --program-transform-=* \
311 | --program-transform=* | --program-transfor=* \
312 | --program-transfo=* | --program-transf=* \
313 | --program-trans=* | --program-tran=* \
314 | --progr-tra=* | --program-tr=* | --program-t=*)
315 program_transform_name="$ac_optarg" ;;
316
317 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
318 | -silent | --silent | --silen | --sile | --sil)
319 silent=yes ;;
320
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000321 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
322 ac_prev=sbindir ;;
323 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
324 | --sbi=* | --sb=*)
325 sbindir="$ac_optarg" ;;
326
327 -sharedstatedir | --sharedstatedir | --sharedstatedi \
328 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
329 | --sharedst | --shareds | --shared | --share | --shar \
330 | --sha | --sh)
331 ac_prev=sharedstatedir ;;
332 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
333 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
334 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
335 | --sha=* | --sh=*)
336 sharedstatedir="$ac_optarg" ;;
337
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000338 -site | --site | --sit)
339 ac_prev=site ;;
340 -site=* | --site=* | --sit=*)
341 site="$ac_optarg" ;;
342
343 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
344 ac_prev=srcdir ;;
345 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
346 srcdir="$ac_optarg" ;;
347
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000348 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
349 | --syscon | --sysco | --sysc | --sys | --sy)
350 ac_prev=sysconfdir ;;
351 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
352 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
353 sysconfdir="$ac_optarg" ;;
354
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000355 -target | --target | --targe | --targ | --tar | --ta | --t)
356 ac_prev=target ;;
357 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
358 target="$ac_optarg" ;;
359
360 -v | -verbose | --verbose | --verbos | --verbo | --verb)
361 verbose=yes ;;
362
363 -version | --version | --versio | --versi | --vers)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000364 echo "configure generated by autoconf version 2.13"
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000365 exit 0 ;;
366
367 -with-* | --with-*)
368 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
369 # Reject names that are not valid shell variable names.
370 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
371 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
372 fi
373 ac_package=`echo $ac_package| sed 's/-/_/g'`
374 case "$ac_option" in
375 *=*) ;;
376 *) ac_optarg=yes ;;
377 esac
378 eval "with_${ac_package}='$ac_optarg'" ;;
379
380 -without-* | --without-*)
381 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
382 # Reject names that are not valid shell variable names.
383 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
384 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
385 fi
386 ac_package=`echo $ac_package| sed 's/-/_/g'`
387 eval "with_${ac_package}=no" ;;
388
389 --x)
390 # Obsolete; use --with-x.
391 with_x=yes ;;
392
393 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
394 | --x-incl | --x-inc | --x-in | --x-i)
395 ac_prev=x_includes ;;
396 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
397 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
398 x_includes="$ac_optarg" ;;
399
400 -x-libraries | --x-libraries | --x-librarie | --x-librari \
401 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
402 ac_prev=x_libraries ;;
403 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
404 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
405 x_libraries="$ac_optarg" ;;
406
407 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
408 ;;
409
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000410 *)
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000411 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
412 echo "configure: warning: $ac_option: invalid host type" 1>&2
413 fi
414 if test "x$nonopt" != xNONE; then
415 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
416 fi
417 nonopt="$ac_option"
418 ;;
419
420 esac
421done
422
423if test -n "$ac_prev"; then
424 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
425fi
426
427trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
428
429# File descriptor usage:
430# 0 standard input
431# 1 file creation
432# 2 errors and warnings
433# 3 some systems may open it to /dev/tty
434# 4 used on the Kubota Titan
435# 6 checking for... messages and results
436# 5 compiler messages saved in config.log
437if test "$silent" = yes; then
438 exec 6>/dev/null
439else
440 exec 6>&1
441fi
442exec 5>./config.log
443
444echo "\
445This file contains any messages produced by compilers while
446running configure, to aid debugging if configure makes a mistake.
447" 1>&5
448
449# Strip out --no-create and --no-recursion so they do not pile up.
450# Also quote any args containing shell metacharacters.
451ac_configure_args=
452for ac_arg
453do
454 case "$ac_arg" in
455 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
456 | --no-cr | --no-c) ;;
457 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
458 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
459 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
460 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
461 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
462 esac
463done
464
465# NLS nuisances.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000466# Only set these to C if already set. These must not be set unconditionally
467# because not all systems understand e.g. LANG=C (notably SCO).
468# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
469# Non-C LC_CTYPE values break the ctype check.
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000470if test "${LANG+set}" = set; then LANG=C; export LANG; fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000471if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
472if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
473if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000474
475# confdefs.h avoids OS command line length limits that DEFS can exceed.
476rm -rf conftest* confdefs.h
477# AIX cpp loses on an empty file, so make sure it contains at least a newline.
478echo > confdefs.h
479
480# A filename unique to this package, relative to the directory that
481# configure is in, which we can look for to find out if srcdir is correct.
482ac_unique_file=version.h
483
484# Find the source files, if location was not specified.
485if test -z "$srcdir"; then
486 ac_srcdir_defaulted=yes
487 # Try the directory containing this script, then its parent.
488 ac_prog=$0
489 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
490 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
491 srcdir=$ac_confdir
492 if test ! -r $srcdir/$ac_unique_file; then
493 srcdir=..
494 fi
495else
496 ac_srcdir_defaulted=no
497fi
498if test ! -r $srcdir/$ac_unique_file; then
499 if test "$ac_srcdir_defaulted" = yes; then
500 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
501 else
502 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
503 fi
504fi
505srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
506
507# Prefer explicitly selected file to automatically selected ones.
508if test -z "$CONFIG_SITE"; then
509 if test "x$prefix" != xNONE; then
510 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
511 else
512 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
513 fi
514fi
515for ac_site_file in $CONFIG_SITE; do
516 if test -r "$ac_site_file"; then
517 echo "loading site script $ac_site_file"
518 . "$ac_site_file"
519 fi
520done
521
522if test -r "$cache_file"; then
523 echo "loading cache $cache_file"
524 . $cache_file
525else
526 echo "creating cache $cache_file"
527 > $cache_file
528fi
529
530ac_ext=c
531# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
532ac_cpp='$CPP $CPPFLAGS'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000533ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000534ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000535cross_compiling=$ac_cv_prog_cc_cross
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000536
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000537ac_exeext=
538ac_objext=o
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000539if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
540 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
541 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
542 ac_n= ac_c='
543' ac_t=' '
544 else
545 ac_n=-n ac_c= ac_t=
546 fi
547else
548 ac_n= ac_c='\c' ac_t=
549fi
550
551
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +0000552
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000553MCONFIG=./MCONFIG
554
Theodore Ts'o74becf31997-04-26 14:37:06 +0000555BINARY_TYPE=bin
556E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
557 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
558DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
559 | tr \" " "`
560MONTH=`echo $DATE | awk -F- '{print $2}'`
561YEAR=`echo $DATE | awk -F- '{print $3}'`
562
Theodore Ts'o14790ed1999-01-12 23:32:52 +0000563if expr $YEAR ">" 1900 > /dev/null ; then
564 E2FSPROGS_YEAR=$YEAR
565elif expr $YEAR ">" 90 >/dev/null ; then
Theodore Ts'o74becf31997-04-26 14:37:06 +0000566 E2FSPROGS_YEAR=19$YEAR
567else
568 E2FSPROGS_YEAR=20$YEAR
569fi
570
571case $MONTH in
572Jan) E2FSPROGS_MONTH="January" ;;
573Feb) E2FSPROGS_MONTH="February" ;;
574Mar) E2FSPROGS_MONTH="March" ;;
575Apr) E2FSPROGS_MONTH="April" ;;
576May) E2FSPROGS_MONTH="May" ;;
577Jun) E2FSPROGS_MONTH="June" ;;
578Jul) E2FSPROGS_MONTH="July" ;;
579Aug) E2FSPROGS_MONTH="August" ;;
580Sep) E2FSPROGS_MONTH="September" ;;
581Oct) E2FSPROGS_MONTH="October" ;;
582Nov) E2FSPROGS_MONTH="November" ;;
583Dec) E2FSPROGS_MONTH="December" ;;
584*) echo "Unknown month $MONTH??" ;;
585esac
586
587unset DATE MONTH YEAR
588echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION"
589echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}"
590
591
592
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000593
594ac_aux_dir=
595for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
596 if test -f $ac_dir/install-sh; then
597 ac_aux_dir=$ac_dir
598 ac_install_sh="$ac_aux_dir/install-sh -c"
599 break
600 elif test -f $ac_dir/install.sh; then
601 ac_aux_dir=$ac_dir
602 ac_install_sh="$ac_aux_dir/install.sh -c"
603 break
604 fi
605done
606if test -z "$ac_aux_dir"; then
607 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
608fi
609ac_config_guess=$ac_aux_dir/config.guess
610ac_config_sub=$ac_aux_dir/config.sub
611ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
612
613
614# Make sure we can run config.sub.
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000615if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000616else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
617fi
618
619echo $ac_n "checking host system type""... $ac_c" 1>&6
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000620echo "configure:621: checking host system type" >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000621
622host_alias=$host
623case "$host_alias" in
624NONE)
625 case $nonopt in
626 NONE)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000627 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000628 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
629 fi ;;
630 *) host_alias=$nonopt ;;
631 esac ;;
632esac
633
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000634host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000635host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
636host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
637host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000638echo "$ac_t""$host" 1>&6
639
Theodore Ts'o74becf31997-04-26 14:37:06 +0000640# Check whether --with-cc or --without-cc was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000641if test "${with_cc+set}" = set; then
642 withval="$with_cc"
Theodore Ts'o74becf31997-04-26 14:37:06 +0000643 echo "$ac_t""CC=$withval" 1>&6
644CC=$withval
645else
646 if test -z "$CC" ; then CC=cc; fi
647echo "$ac_t""CC defaults to $CC" 1>&6
648fi
649export CC
650
651# Check whether --with-linker or --without-linker was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000652if test "${with_linker+set}" = set; then
653 withval="$with_linker"
Theodore Ts'o74becf31997-04-26 14:37:06 +0000654 echo "$ac_t""LD=$withval" 1>&6
655LD=$withval
656else
657 if test -z "$LD" ; then LD=$CC; fi
658echo "$ac_t""LD defaults to $LD" 1>&6
659fi
660export LD
661
662# Check whether --with-ccopts or --without-ccopts was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000663if test "${with_ccopts+set}" = set; then
664 withval="$with_ccopts"
Theodore Ts'o74becf31997-04-26 14:37:06 +0000665 echo "$ac_t""CCOPTS is $withval" 1>&6
666CCOPTS=$withval
667CFLAGS="$CFLAGS $withval"
668else
669 CCOPTS=
670fi
671
Theodore Ts'oa4d09611997-04-29 14:28:00 +0000672LIB_EXT=.a
673STATIC_LIB_EXT=.a
674PROFILE_LIB_EXT=.a
Theodore Ts'o74becf31997-04-26 14:37:06 +0000675# Check whether --with-ldopts or --without-ldopts was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000676if test "${with_ldopts+set}" = set; then
677 withval="$with_ldopts"
Theodore Ts'o74becf31997-04-26 14:37:06 +0000678 echo "$ac_t""LDFLAGS is $withval" 1>&6
679LDFLAGS=$withval
680else
681 LDFLAGS=
682fi
683
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +0000684# Check whether --with-root-prefix or --without-root-prefix was given.
685if test "${with_root_prefix+set}" = set; then
686 withval="$with_root_prefix"
687 root_prefix=$withval
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000688else
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +0000689 root_prefix=NONE
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000690fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000691# Check whether --enable-dll-shlibs or --disable-dll-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000692if test "${enable_dll_shlibs+set}" = set; then
693 enableval="$enable_dll_shlibs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000694 if test "$enableval" = "no"
695then
696 DLL_CMT=#
697 MAKEFILE_DLL=/dev/null
698 echo "Disabling DLL shared libraries"
699else
700 DLL_CMT=
701 MAKEFILE_DLL=$srcdir/lib/Makefile.dll-lib
Theodore Ts'o74becf31997-04-26 14:37:06 +0000702 BINARY_TYPE=dllbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +0000703 LIB_EXT=.sa
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000704 echo "Enabling DLL shared libraries"
705fi
706
707else
708 MAKEFILE_DLL=/dev/null
709DLL_CMT=#
710echo "Disabling DLL shared libraries by default"
711
712fi
713
714
715
716# Check whether --enable-elf-shlibs or --disable-elf-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000717if test "${enable_elf_shlibs+set}" = set; then
718 enableval="$enable_elf_shlibs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000719 if test "$enableval" = "no"
720then
721 ELF_CMT=#
722 MAKEFILE_ELF=/dev/null
723 echo "Disabling ELF shared libraries"
724else
725 ELF_CMT=
726 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
Theodore Ts'o74becf31997-04-26 14:37:06 +0000727 BINARY_TYPE=elfbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +0000728 LIB_EXT=.so
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000729 echo "Enabling ELF shared libraries"
730fi
731
732else
733 MAKEFILE_ELF=/dev/null
734ELF_CMT=#
735echo "Disabling ELF shared libraries by default"
736
737fi
738
739
740
741# Check whether --enable-bsd-shlibs or --disable-bsd-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000742if test "${enable_bsd_shlibs+set}" = set; then
743 enableval="$enable_bsd_shlibs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000744 if test "$enableval" = "no"
745then
746 BSDLIB_CMT=#
747 MAKEFILE_BSDLIB=/dev/null
748 echo "Disabling BSD shared libraries"
749else
750 BSDLIB_CMT=
751 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
Theodore Ts'oa4d09611997-04-29 14:28:00 +0000752 LIB_EXT=.so
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000753 echo "Enabling BSD shared libraries"
754fi
755
756else
757 MAKEFILE_BSDLIB=/dev/null
758BSDLIB_CMT=#
759echo "Disabling BSD shared libraries by default"
760
761fi
762
763
764
765# Check whether --enable-profile or --disable-profile was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000766if test "${enable_profile+set}" = set; then
767 enableval="$enable_profile"
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000768 if test "$enableval" = "no"
769then
770 PROFILE_CMT=#
771 MAKEFILE_PROFILE=/dev/null
772 echo "Disabling profiling libraries"
773else
774 PROFILE_CMT=
775 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
Theodore Ts'oa4d09611997-04-29 14:28:00 +0000776 PROFILED_LIB_EXT=_p.a
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000777 echo "Building profiling libraries"
778fi
779
780else
781 PROFILE_CMT=#
782MAKEFILE_PROFILE=/dev/null
783echo "Disabling profiling libraries by default"
784
785fi
786
787
788
789# Check whether --enable-checker or --disable-checker was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000790if test "${enable_checker+set}" = set; then
791 enableval="$enable_checker"
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000792 if test "$enableval" = "no"
793then
794 CHECKER_CMT=#
795 MAKEFILE_CHECKER=/dev/null
796 echo "Disabling checker libraries"
797else
798 CHECKER_CMT=
799 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
800 echo "Building checker libraries"
801fi
802
803else
804 CHECKER_CMT=#
805MAKEFILE_CHECKER=/dev/null
806echo "Disabling checker libraries by default"
807
808fi
809
810
811
Theodore Ts'oa4d09611997-04-29 14:28:00 +0000812
813
814
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000815# Check whether --enable-gcc-wall or --disable-gcc-wall was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000816if test "${enable_gcc_wall+set}" = set; then
817 enableval="$enable_gcc_wall"
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000818 if test "$enableval" = "no"
819then
820 W=#
821 echo "Disabling GCC warnings"
822else
823 W=
824 echo "Enabling GCC warnings"
825fi
826
827else
828 W=#
829echo "Disabling GCC warnings by default"
830
831fi
832
833
Theodore Ts'oa4d09611997-04-29 14:28:00 +0000834# Check whether --enable-dynamic-e2fsck or --disable-dynamic-e2fsck was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000835if test "${enable_dynamic_e2fsck+set}" = set; then
836 enableval="$enable_dynamic_e2fsck"
Theodore Ts'oa4d09611997-04-29 14:28:00 +0000837 if test "$enableval" = "no"
838then
839 E2FSCK_TYPE=static
840 echo "Building e2fsck statically"
841else
842 E2FSCK_TYPE=shared
843 echo "Building e2fsck dynamically"
844fi
845
846else
847 E2FSCK_TYPE=static
848echo "Building e2fsck statically by default"
849
850fi
851
852
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000853# Check whether --enable-fsck or --disable-fsck was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000854if test "${enable_fsck+set}" = set; then
855 enableval="$enable_fsck"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000856 if test "$enableval" = "no"
857then
858 FSCK_PROG='' FSCK_MAN=''
859 echo "Not building fsck wrapper"
860else
861 FSCK_PROG=fsck FSCK_MAN=fsck.8
862 echo "Building fsck wrapper"
863fi
864
865else
866 case "$host_os" in
867 gnu*)
868 FSCK_PROG='' FSCK_MAN=''
869 echo "Not building fsck wrapper by default"
870 ;;
871 *)
872 FSCK_PROG=fsck FSCK_MAN=fsck.8
873 echo "Building fsck wrapper by default"
874esac
875
876fi
877
878
879
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000880MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
881
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000882# Check whether --enable-old-bitops or --disable-old-bitops was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000883if test "${enable_old_bitops+set}" = set; then
884 enableval="$enable_old_bitops"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000885 if test "$enableval" = "no"
886then
887 echo "Using new (standard) bitmask operations"
888else
889 cat >> confdefs.h <<\EOF
890#define EXT2_OLD_BITOPS 1
891EOF
892
893 echo "Using old (native) bitmask operations"
894
895fi
896
897else
898 echo "Using standard bitmask operations by default"
899
900fi
901
Theodore Ts'o74becf31997-04-26 14:37:06 +0000902
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000903echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000904echo "configure:905: checking whether ${MAKE-make} sets \${MAKE}" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000905set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000906if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
907 echo $ac_n "(cached) $ac_c" 1>&6
908else
909 cat > conftestmake <<\EOF
910all:
911 @echo 'ac_maketemp="${MAKE}"'
912EOF
913# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
914eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
915if test -n "$ac_maketemp"; then
916 eval ac_cv_prog_make_${ac_make}_set=yes
917else
918 eval ac_cv_prog_make_${ac_make}_set=no
919fi
920rm -f conftestmake
921fi
922if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
923 echo "$ac_t""yes" 1>&6
924 SET_MAKE=
925else
926 echo "$ac_t""no" 1>&6
927 SET_MAKE="MAKE=${MAKE-make}"
928fi
929
930# Extract the first word of "ln", so it can be a program name with args.
931set dummy ln; ac_word=$2
932echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000933echo "configure:934: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000934if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then
935 echo $ac_n "(cached) $ac_c" 1>&6
936else
937 case "$LN" in
938 /*)
939 ac_cv_path_LN="$LN" # Let the user override the test with a path.
940 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000941 ?:/*)
942 ac_cv_path_LN="$LN" # Let the user override the test with a dos path.
943 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000944 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000945 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
946 ac_dummy="$PATH"
947 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000948 test -z "$ac_dir" && ac_dir=.
949 if test -f $ac_dir/$ac_word; then
950 ac_cv_path_LN="$ac_dir/$ac_word"
951 break
952 fi
953 done
954 IFS="$ac_save_ifs"
955 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
956 ;;
957esac
958fi
959LN="$ac_cv_path_LN"
960if test -n "$LN"; then
961 echo "$ac_t""$LN" 1>&6
962else
963 echo "$ac_t""no" 1>&6
964fi
965
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000966echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000967echo "configure:968: checking whether ln -s works" >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000968if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
969 echo $ac_n "(cached) $ac_c" 1>&6
970else
971 rm -f conftestdata
972if ln -s X conftestdata 2>/dev/null
973then
974 rm -f conftestdata
975 ac_cv_prog_LN_S="ln -s"
976else
977 ac_cv_prog_LN_S=ln
978fi
979fi
980LN_S="$ac_cv_prog_LN_S"
981if test "$ac_cv_prog_LN_S" = "ln -s"; then
982 echo "$ac_t""yes" 1>&6
983else
984 echo "$ac_t""no" 1>&6
985fi
986
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000987# Extract the first word of "mv", so it can be a program name with args.
988set dummy mv; ac_word=$2
989echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000990echo "configure:991: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000991if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
992 echo $ac_n "(cached) $ac_c" 1>&6
993else
994 case "$MV" in
995 /*)
996 ac_cv_path_MV="$MV" # Let the user override the test with a path.
997 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000998 ?:/*)
999 ac_cv_path_MV="$MV" # Let the user override the test with a dos path.
1000 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001001 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001002 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1003 ac_dummy="$PATH"
1004 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001005 test -z "$ac_dir" && ac_dir=.
1006 if test -f $ac_dir/$ac_word; then
1007 ac_cv_path_MV="$ac_dir/$ac_word"
1008 break
1009 fi
1010 done
1011 IFS="$ac_save_ifs"
1012 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
1013 ;;
1014esac
1015fi
1016MV="$ac_cv_path_MV"
1017if test -n "$MV"; then
1018 echo "$ac_t""$MV" 1>&6
1019else
1020 echo "$ac_t""no" 1>&6
1021fi
1022
1023# Extract the first word of "cp", so it can be a program name with args.
1024set dummy cp; ac_word=$2
1025echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001026echo "configure:1027: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001027if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then
1028 echo $ac_n "(cached) $ac_c" 1>&6
1029else
1030 case "$CP" in
1031 /*)
1032 ac_cv_path_CP="$CP" # Let the user override the test with a path.
1033 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001034 ?:/*)
1035 ac_cv_path_CP="$CP" # Let the user override the test with a dos path.
1036 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001037 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001038 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1039 ac_dummy="$PATH"
1040 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001041 test -z "$ac_dir" && ac_dir=.
1042 if test -f $ac_dir/$ac_word; then
1043 ac_cv_path_CP="$ac_dir/$ac_word"
1044 break
1045 fi
1046 done
1047 IFS="$ac_save_ifs"
1048 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
1049 ;;
1050esac
1051fi
1052CP="$ac_cv_path_CP"
1053if test -n "$CP"; then
1054 echo "$ac_t""$CP" 1>&6
1055else
1056 echo "$ac_t""no" 1>&6
1057fi
1058
1059# Extract the first word of "rm", so it can be a program name with args.
1060set dummy rm; ac_word=$2
1061echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001062echo "configure:1063: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001063if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
1064 echo $ac_n "(cached) $ac_c" 1>&6
1065else
1066 case "$RM" in
1067 /*)
1068 ac_cv_path_RM="$RM" # Let the user override the test with a path.
1069 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001070 ?:/*)
1071 ac_cv_path_RM="$RM" # Let the user override the test with a dos path.
1072 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001073 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001074 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1075 ac_dummy="$PATH"
1076 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001077 test -z "$ac_dir" && ac_dir=.
1078 if test -f $ac_dir/$ac_word; then
1079 ac_cv_path_RM="$ac_dir/$ac_word"
1080 break
1081 fi
1082 done
1083 IFS="$ac_save_ifs"
1084 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
1085 ;;
1086esac
1087fi
1088RM="$ac_cv_path_RM"
1089if test -n "$RM"; then
1090 echo "$ac_t""$RM" 1>&6
1091else
1092 echo "$ac_t""no" 1>&6
1093fi
1094
1095# Extract the first word of "chmod", so it can be a program name with args.
1096set dummy chmod; ac_word=$2
1097echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001098echo "configure:1099: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001099if eval "test \"`echo '$''{'ac_cv_path_CHMOD'+set}'`\" = set"; then
1100 echo $ac_n "(cached) $ac_c" 1>&6
1101else
1102 case "$CHMOD" in
1103 /*)
1104 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
1105 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001106 ?:/*)
1107 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a dos path.
1108 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001109 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001110 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1111 ac_dummy="$PATH"
1112 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001113 test -z "$ac_dir" && ac_dir=.
1114 if test -f $ac_dir/$ac_word; then
1115 ac_cv_path_CHMOD="$ac_dir/$ac_word"
1116 break
1117 fi
1118 done
1119 IFS="$ac_save_ifs"
1120 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
1121 ;;
1122esac
1123fi
1124CHMOD="$ac_cv_path_CHMOD"
1125if test -n "$CHMOD"; then
1126 echo "$ac_t""$CHMOD" 1>&6
1127else
1128 echo "$ac_t""no" 1>&6
1129fi
1130
1131# Extract the first word of "awk", so it can be a program name with args.
1132set dummy awk; ac_word=$2
1133echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001134echo "configure:1135: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001135if eval "test \"`echo '$''{'ac_cv_path_AWK'+set}'`\" = set"; then
1136 echo $ac_n "(cached) $ac_c" 1>&6
1137else
1138 case "$AWK" in
1139 /*)
1140 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
1141 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001142 ?:/*)
1143 ac_cv_path_AWK="$AWK" # Let the user override the test with a dos path.
1144 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001145 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001146 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1147 ac_dummy="$PATH"
1148 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001149 test -z "$ac_dir" && ac_dir=.
1150 if test -f $ac_dir/$ac_word; then
1151 ac_cv_path_AWK="$ac_dir/$ac_word"
1152 break
1153 fi
1154 done
1155 IFS="$ac_save_ifs"
1156 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
1157 ;;
1158esac
1159fi
1160AWK="$ac_cv_path_AWK"
1161if test -n "$AWK"; then
1162 echo "$ac_t""$AWK" 1>&6
1163else
1164 echo "$ac_t""no" 1>&6
1165fi
1166
1167# Extract the first word of "sed", so it can be a program name with args.
1168set dummy sed; ac_word=$2
1169echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001170echo "configure:1171: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001171if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then
1172 echo $ac_n "(cached) $ac_c" 1>&6
1173else
1174 case "$SED" in
1175 /*)
1176 ac_cv_path_SED="$SED" # Let the user override the test with a path.
1177 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001178 ?:/*)
1179 ac_cv_path_SED="$SED" # Let the user override the test with a dos path.
1180 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001181 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001182 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1183 ac_dummy="$PATH"
1184 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001185 test -z "$ac_dir" && ac_dir=.
1186 if test -f $ac_dir/$ac_word; then
1187 ac_cv_path_SED="$ac_dir/$ac_word"
1188 break
1189 fi
1190 done
1191 IFS="$ac_save_ifs"
1192 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
1193 ;;
1194esac
1195fi
1196SED="$ac_cv_path_SED"
1197if test -n "$SED"; then
1198 echo "$ac_t""$SED" 1>&6
1199else
1200 echo "$ac_t""no" 1>&6
1201fi
1202
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001203echo $ac_n "checking build system type""... $ac_c" 1>&6
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001204echo "configure:1205: checking build system type" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001205
1206build_alias=$build
1207case "$build_alias" in
1208NONE)
1209 case $nonopt in
1210 NONE) build_alias=$host_alias ;;
1211 *) build_alias=$nonopt ;;
1212 esac ;;
1213esac
1214
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001215build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001216build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1217build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1218build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001219echo "$ac_t""$build" 1>&6
1220
1221if test $host != $build; then
1222 ac_tool_prefix=${host_alias}-
1223else
1224 ac_tool_prefix=
1225fi
1226
1227# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1228set dummy ${ac_tool_prefix}ar; ac_word=$2
1229echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001230echo "configure:1231: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001231if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1232 echo $ac_n "(cached) $ac_c" 1>&6
1233else
1234 if test -n "$AR"; then
1235 ac_cv_prog_AR="$AR" # Let the user override the test.
1236else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001237 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1238 ac_dummy="$PATH"
1239 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001240 test -z "$ac_dir" && ac_dir=.
1241 if test -f $ac_dir/$ac_word; then
1242 ac_cv_prog_AR="${ac_tool_prefix}ar"
1243 break
1244 fi
1245 done
1246 IFS="$ac_save_ifs"
1247fi
1248fi
1249AR="$ac_cv_prog_AR"
1250if test -n "$AR"; then
1251 echo "$ac_t""$AR" 1>&6
1252else
1253 echo "$ac_t""no" 1>&6
1254fi
1255
1256
1257if test -z "$ac_cv_prog_AR"; then
1258if test -n "$ac_tool_prefix"; then
1259 # Extract the first word of "ar", so it can be a program name with args.
1260set dummy ar; ac_word=$2
1261echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001262echo "configure:1263: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001263if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1264 echo $ac_n "(cached) $ac_c" 1>&6
1265else
1266 if test -n "$AR"; then
1267 ac_cv_prog_AR="$AR" # Let the user override the test.
1268else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001269 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1270 ac_dummy="$PATH"
1271 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001272 test -z "$ac_dir" && ac_dir=.
1273 if test -f $ac_dir/$ac_word; then
1274 ac_cv_prog_AR="ar"
1275 break
1276 fi
1277 done
1278 IFS="$ac_save_ifs"
1279 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1280fi
1281fi
1282AR="$ac_cv_prog_AR"
1283if test -n "$AR"; then
1284 echo "$ac_t""$AR" 1>&6
1285else
1286 echo "$ac_t""no" 1>&6
1287fi
1288
1289else
1290 AR="ar"
1291fi
1292fi
1293
1294# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1295set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1296echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001297echo "configure:1298: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001298if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1299 echo $ac_n "(cached) $ac_c" 1>&6
1300else
1301 if test -n "$RANLIB"; then
1302 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1303else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001304 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1305 ac_dummy="$PATH"
1306 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001307 test -z "$ac_dir" && ac_dir=.
1308 if test -f $ac_dir/$ac_word; then
1309 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1310 break
1311 fi
1312 done
1313 IFS="$ac_save_ifs"
1314fi
1315fi
1316RANLIB="$ac_cv_prog_RANLIB"
1317if test -n "$RANLIB"; then
1318 echo "$ac_t""$RANLIB" 1>&6
1319else
1320 echo "$ac_t""no" 1>&6
1321fi
1322
1323
1324if test -z "$ac_cv_prog_RANLIB"; then
1325if test -n "$ac_tool_prefix"; then
1326 # Extract the first word of "ranlib", so it can be a program name with args.
1327set dummy ranlib; ac_word=$2
1328echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001329echo "configure:1330: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001330if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1331 echo $ac_n "(cached) $ac_c" 1>&6
1332else
1333 if test -n "$RANLIB"; then
1334 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1335else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001336 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1337 ac_dummy="$PATH"
1338 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001339 test -z "$ac_dir" && ac_dir=.
1340 if test -f $ac_dir/$ac_word; then
1341 ac_cv_prog_RANLIB="ranlib"
1342 break
1343 fi
1344 done
1345 IFS="$ac_save_ifs"
1346 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1347fi
1348fi
1349RANLIB="$ac_cv_prog_RANLIB"
1350if test -n "$RANLIB"; then
1351 echo "$ac_t""$RANLIB" 1>&6
1352else
1353 echo "$ac_t""no" 1>&6
1354fi
1355
1356else
1357 RANLIB=":"
1358fi
1359fi
1360
1361# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1362set dummy ${ac_tool_prefix}strip; ac_word=$2
1363echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001364echo "configure:1365: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001365if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1366 echo $ac_n "(cached) $ac_c" 1>&6
1367else
1368 if test -n "$STRIP"; then
1369 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1370else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001371 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1372 ac_dummy="$PATH"
1373 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001374 test -z "$ac_dir" && ac_dir=.
1375 if test -f $ac_dir/$ac_word; then
1376 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1377 break
1378 fi
1379 done
1380 IFS="$ac_save_ifs"
1381fi
1382fi
1383STRIP="$ac_cv_prog_STRIP"
1384if test -n "$STRIP"; then
1385 echo "$ac_t""$STRIP" 1>&6
1386else
1387 echo "$ac_t""no" 1>&6
1388fi
1389
1390
1391if test -z "$ac_cv_prog_STRIP"; then
1392if test -n "$ac_tool_prefix"; then
1393 # Extract the first word of "strip", so it can be a program name with args.
1394set dummy strip; ac_word=$2
1395echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001396echo "configure:1397: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001397if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1398 echo $ac_n "(cached) $ac_c" 1>&6
1399else
1400 if test -n "$STRIP"; then
1401 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1402else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001403 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1404 ac_dummy="$PATH"
1405 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001406 test -z "$ac_dir" && ac_dir=.
1407 if test -f $ac_dir/$ac_word; then
1408 ac_cv_prog_STRIP="strip"
1409 break
1410 fi
1411 done
1412 IFS="$ac_save_ifs"
1413 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
1414fi
1415fi
1416STRIP="$ac_cv_prog_STRIP"
1417if test -n "$STRIP"; then
1418 echo "$ac_t""$STRIP" 1>&6
1419else
1420 echo "$ac_t""no" 1>&6
1421fi
1422
1423else
1424 STRIP=":"
1425fi
1426fi
1427
1428# Extract the first word of "gcc", so it can be a program name with args.
1429set dummy gcc; ac_word=$2
1430echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001431echo "configure:1432: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001432if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1433 echo $ac_n "(cached) $ac_c" 1>&6
1434else
1435 if test -n "$CC"; then
1436 ac_cv_prog_CC="$CC" # Let the user override the test.
1437else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001438 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1439 ac_dummy="$PATH"
1440 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001441 test -z "$ac_dir" && ac_dir=.
1442 if test -f $ac_dir/$ac_word; then
1443 ac_cv_prog_CC="gcc"
1444 break
1445 fi
1446 done
1447 IFS="$ac_save_ifs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001448fi
1449fi
1450CC="$ac_cv_prog_CC"
1451if test -n "$CC"; then
1452 echo "$ac_t""$CC" 1>&6
1453else
1454 echo "$ac_t""no" 1>&6
1455fi
1456
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001457if test -z "$CC"; then
1458 # Extract the first word of "cc", so it can be a program name with args.
1459set dummy cc; ac_word=$2
1460echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001461echo "configure:1462: checking for $ac_word" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001462if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1463 echo $ac_n "(cached) $ac_c" 1>&6
1464else
1465 if test -n "$CC"; then
1466 ac_cv_prog_CC="$CC" # Let the user override the test.
1467else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001468 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001469 ac_prog_rejected=no
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001470 ac_dummy="$PATH"
1471 for ac_dir in $ac_dummy; do
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001472 test -z "$ac_dir" && ac_dir=.
1473 if test -f $ac_dir/$ac_word; then
1474 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1475 ac_prog_rejected=yes
1476 continue
1477 fi
1478 ac_cv_prog_CC="cc"
1479 break
1480 fi
1481 done
1482 IFS="$ac_save_ifs"
1483if test $ac_prog_rejected = yes; then
1484 # We found a bogon in the path, so make sure we never use it.
1485 set dummy $ac_cv_prog_CC
1486 shift
1487 if test $# -gt 0; then
1488 # We chose a different compiler from the bogus one.
1489 # However, it has the same basename, so the bogon will be chosen
1490 # first if we set CC to just the basename; use the full file name.
1491 shift
1492 set dummy "$ac_dir/$ac_word" "$@"
1493 shift
1494 ac_cv_prog_CC="$@"
1495 fi
1496fi
1497fi
1498fi
1499CC="$ac_cv_prog_CC"
1500if test -n "$CC"; then
1501 echo "$ac_t""$CC" 1>&6
1502else
1503 echo "$ac_t""no" 1>&6
1504fi
1505
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001506 if test -z "$CC"; then
1507 case "`uname -s`" in
1508 *win32* | *WIN32*)
1509 # Extract the first word of "cl", so it can be a program name with args.
1510set dummy cl; ac_word=$2
1511echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1512echo "configure:1513: checking for $ac_word" >&5
1513if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1514 echo $ac_n "(cached) $ac_c" 1>&6
1515else
1516 if test -n "$CC"; then
1517 ac_cv_prog_CC="$CC" # Let the user override the test.
1518else
1519 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1520 ac_dummy="$PATH"
1521 for ac_dir in $ac_dummy; do
1522 test -z "$ac_dir" && ac_dir=.
1523 if test -f $ac_dir/$ac_word; then
1524 ac_cv_prog_CC="cl"
1525 break
1526 fi
1527 done
1528 IFS="$ac_save_ifs"
1529fi
1530fi
1531CC="$ac_cv_prog_CC"
1532if test -n "$CC"; then
1533 echo "$ac_t""$CC" 1>&6
1534else
1535 echo "$ac_t""no" 1>&6
1536fi
1537 ;;
1538 esac
1539 fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001540 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1541fi
1542
1543echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001544echo "configure:1545: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001545
1546ac_ext=c
1547# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1548ac_cpp='$CPP $CPPFLAGS'
1549ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001550ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001551cross_compiling=$ac_cv_prog_cc_cross
1552
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001553cat > conftest.$ac_ext << EOF
1554
1555#line 1556 "configure"
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001556#include "confdefs.h"
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001557
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001558main(){return(0);}
1559EOF
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001560if { (eval echo configure:1561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001561 ac_cv_prog_cc_works=yes
1562 # If we can't run a trivial program, we are probably using a cross compiler.
1563 if (./conftest; exit) 2>/dev/null; then
1564 ac_cv_prog_cc_cross=no
1565 else
1566 ac_cv_prog_cc_cross=yes
1567 fi
1568else
1569 echo "configure: failed program was:" >&5
1570 cat conftest.$ac_ext >&5
1571 ac_cv_prog_cc_works=no
1572fi
1573rm -fr conftest*
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001574ac_ext=c
1575# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1576ac_cpp='$CPP $CPPFLAGS'
1577ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1578ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1579cross_compiling=$ac_cv_prog_cc_cross
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001580
1581echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1582if test $ac_cv_prog_cc_works = no; then
1583 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1584fi
1585echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001586echo "configure:1587: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001587echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1588cross_compiling=$ac_cv_prog_cc_cross
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001589
1590echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001591echo "configure:1592: checking whether we are using GNU C" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001592if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1593 echo $ac_n "(cached) $ac_c" 1>&6
1594else
1595 cat > conftest.c <<EOF
1596#ifdef __GNUC__
1597 yes;
1598#endif
1599EOF
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001600if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1601: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001601 ac_cv_prog_gcc=yes
1602else
1603 ac_cv_prog_gcc=no
1604fi
1605fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001606
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001607echo "$ac_t""$ac_cv_prog_gcc" 1>&6
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001608
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001609if test $ac_cv_prog_gcc = yes; then
1610 GCC=yes
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001611else
1612 GCC=
1613fi
1614
1615ac_test_CFLAGS="${CFLAGS+set}"
1616ac_save_CFLAGS="$CFLAGS"
1617CFLAGS=
1618echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1619echo "configure:1620: checking whether ${CC-cc} accepts -g" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001620if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001621 echo $ac_n "(cached) $ac_c" 1>&6
1622else
1623 echo 'void f(){}' > conftest.c
1624if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001625 ac_cv_prog_cc_g=yes
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001626else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001627 ac_cv_prog_cc_g=no
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001628fi
1629rm -f conftest*
1630
1631fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001632
1633echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001634if test "$ac_test_CFLAGS" = set; then
1635 CFLAGS="$ac_save_CFLAGS"
1636elif test $ac_cv_prog_cc_g = yes; then
1637 if test "$GCC" = yes; then
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001638 CFLAGS="-g -O2"
1639 else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001640 CFLAGS="-g"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001641 fi
1642else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001643 if test "$GCC" = yes; then
1644 CFLAGS="-O2"
1645 else
1646 CFLAGS=
1647 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001648fi
1649
1650# Find a good install program. We prefer a C program (faster),
1651# so one script is as good as another. But avoid the broken or
1652# incompatible versions:
1653# SysV /etc/install, /usr/sbin/install
1654# SunOS /usr/etc/install
1655# IRIX /sbin/install
1656# AIX /bin/install
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001657# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001658# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1659# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1660# ./install, which can be erroneously created by make from ./install.sh.
1661echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001662echo "configure:1663: checking for a BSD compatible install" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001663if test -z "$INSTALL"; then
1664if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1665 echo $ac_n "(cached) $ac_c" 1>&6
1666else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001667 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001668 for ac_dir in $PATH; do
1669 # Account for people who put trailing slashes in PATH elements.
1670 case "$ac_dir/" in
1671 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1672 *)
1673 # OSF1 and SCO ODT 3.0 have their own names for install.
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001674 # Don't use installbsd from OSF since it installs stuff as root
1675 # by default.
1676 for ac_prog in ginstall scoinst install; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001677 if test -f $ac_dir/$ac_prog; then
1678 if test $ac_prog = install &&
1679 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1680 # AIX install. It has an incompatible calling convention.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001681 :
1682 else
1683 ac_cv_path_install="$ac_dir/$ac_prog -c"
1684 break 2
1685 fi
1686 fi
1687 done
1688 ;;
1689 esac
1690 done
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001691 IFS="$ac_save_IFS"
1692
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001693fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001694 if test "${ac_cv_path_install+set}" = set; then
1695 INSTALL="$ac_cv_path_install"
1696 else
1697 # As a last resort, use the slow shell script. We don't cache a
1698 # path for INSTALL within a source directory, because that will
1699 # break other packages using the cache if that directory is
1700 # removed, or if the path is relative.
1701 INSTALL="$ac_install_sh"
1702 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001703fi
1704echo "$ac_t""$INSTALL" 1>&6
1705
1706# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1707# It thinks the first close brace ends the variable substitution.
1708test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1709
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001710test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1711
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001712test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1713
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001714
1715echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001716echo "configure:1717: checking how to run the C preprocessor" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001717# On Suns, sometimes $CPP names a directory.
1718if test -n "$CPP" && test -d "$CPP"; then
1719 CPP=
1720fi
1721if test -z "$CPP"; then
1722if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1723 echo $ac_n "(cached) $ac_c" 1>&6
1724else
1725 # This must be in double quotes, not single quotes, because CPP may get
1726 # substituted into the Makefile and "${CC-cc}" will confuse make.
1727 CPP="${CC-cc} -E"
1728 # On the NeXT, cc -E runs the code through the compiler's parser,
1729 # not just through cpp.
1730 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001731#line 1732 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001732#include "confdefs.h"
1733#include <assert.h>
1734Syntax Error
1735EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001736ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001737{ (eval echo configure:1738: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1738ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001739if test -z "$ac_err"; then
1740 :
1741else
1742 echo "$ac_err" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001743 echo "configure: failed program was:" >&5
1744 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001745 rm -rf conftest*
1746 CPP="${CC-cc} -E -traditional-cpp"
1747 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001748#line 1749 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001749#include "confdefs.h"
1750#include <assert.h>
1751Syntax Error
1752EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001753ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001754{ (eval echo configure:1755: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1755ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1756if test -z "$ac_err"; then
1757 :
1758else
1759 echo "$ac_err" >&5
1760 echo "configure: failed program was:" >&5
1761 cat conftest.$ac_ext >&5
1762 rm -rf conftest*
1763 CPP="${CC-cc} -nologo -E"
1764 cat > conftest.$ac_ext <<EOF
1765#line 1766 "configure"
1766#include "confdefs.h"
1767#include <assert.h>
1768Syntax Error
1769EOF
1770ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1771{ (eval echo configure:1772: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1772ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001773if test -z "$ac_err"; then
1774 :
1775else
1776 echo "$ac_err" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001777 echo "configure: failed program was:" >&5
1778 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001779 rm -rf conftest*
1780 CPP=/lib/cpp
1781fi
1782rm -f conftest*
1783fi
1784rm -f conftest*
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001785fi
1786rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001787 ac_cv_prog_CPP="$CPP"
1788fi
1789 CPP="$ac_cv_prog_CPP"
1790else
1791 ac_cv_prog_CPP="$CPP"
1792fi
1793echo "$ac_t""$CPP" 1>&6
1794
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001795for ac_hdr in stdlib.h unistd.h stdarg.h errno.h malloc.h mntent.h paths.h dirent.h getopt.h setjmp.h linux/fd.h linux/major.h sys/disklabel.h sys/sockio.h sys/time.h sys/stat.h sys/types.h net/if.h netinet/in.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001796do
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001797ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001798echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001799echo "configure:1800: checking for $ac_hdr" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001800if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1801 echo $ac_n "(cached) $ac_c" 1>&6
1802else
1803 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001804#line 1805 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001805#include "confdefs.h"
1806#include <$ac_hdr>
1807EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001808ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001809{ (eval echo configure:1810: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1810ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001811if test -z "$ac_err"; then
1812 rm -rf conftest*
1813 eval "ac_cv_header_$ac_safe=yes"
1814else
1815 echo "$ac_err" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001816 echo "configure: failed program was:" >&5
1817 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001818 rm -rf conftest*
1819 eval "ac_cv_header_$ac_safe=no"
1820fi
1821rm -f conftest*
1822fi
1823if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1824 echo "$ac_t""yes" 1>&6
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001825 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001826 cat >> confdefs.h <<EOF
1827#define $ac_tr_hdr 1
1828EOF
1829
1830else
1831 echo "$ac_t""no" 1>&6
1832fi
1833done
1834
1835echo $ac_n "checking for vprintf""... $ac_c" 1>&6
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001836echo "configure:1837: checking for vprintf" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001837if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
1838 echo $ac_n "(cached) $ac_c" 1>&6
1839else
1840 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001841#line 1842 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001842#include "confdefs.h"
1843/* System header to define __stub macros and hopefully few prototypes,
1844 which can conflict with char vprintf(); below. */
1845#include <assert.h>
1846/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001847/* We use char because int might match the return type of a gcc2
1848 builtin and then its argument prototype would still apply. */
1849char vprintf();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001850
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001851int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001852
1853/* The GNU C library defines this for functions which it implements
1854 to always fail with ENOSYS. Some functions are actually named
1855 something starting with __ and the normal name is an alias. */
1856#if defined (__stub_vprintf) || defined (__stub___vprintf)
1857choke me
1858#else
1859vprintf();
1860#endif
1861
1862; return 0; }
1863EOF
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001864if { (eval echo configure:1865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001865 rm -rf conftest*
1866 eval "ac_cv_func_vprintf=yes"
1867else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001868 echo "configure: failed program was:" >&5
1869 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001870 rm -rf conftest*
1871 eval "ac_cv_func_vprintf=no"
1872fi
1873rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001874fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001875
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001876if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
1877 echo "$ac_t""yes" 1>&6
1878 cat >> confdefs.h <<\EOF
1879#define HAVE_VPRINTF 1
1880EOF
1881
1882else
1883 echo "$ac_t""no" 1>&6
1884fi
1885
1886if test "$ac_cv_func_vprintf" != yes; then
1887echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001888echo "configure:1889: checking for _doprnt" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001889if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
1890 echo $ac_n "(cached) $ac_c" 1>&6
1891else
1892 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001893#line 1894 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001894#include "confdefs.h"
1895/* System header to define __stub macros and hopefully few prototypes,
1896 which can conflict with char _doprnt(); below. */
1897#include <assert.h>
1898/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001899/* We use char because int might match the return type of a gcc2
1900 builtin and then its argument prototype would still apply. */
1901char _doprnt();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001902
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001903int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001904
1905/* The GNU C library defines this for functions which it implements
1906 to always fail with ENOSYS. Some functions are actually named
1907 something starting with __ and the normal name is an alias. */
1908#if defined (__stub__doprnt) || defined (__stub____doprnt)
1909choke me
1910#else
1911_doprnt();
1912#endif
1913
1914; return 0; }
1915EOF
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001916if { (eval echo configure:1917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001917 rm -rf conftest*
1918 eval "ac_cv_func__doprnt=yes"
1919else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001920 echo "configure: failed program was:" >&5
1921 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001922 rm -rf conftest*
1923 eval "ac_cv_func__doprnt=no"
1924fi
1925rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001926fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001927
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001928if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
1929 echo "$ac_t""yes" 1>&6
1930 cat >> confdefs.h <<\EOF
1931#define HAVE_DOPRNT 1
1932EOF
1933
1934else
1935 echo "$ac_t""no" 1>&6
1936fi
1937
1938fi
1939
1940echo $ac_n "checking whether struct dirent has a d_namlen field""... $ac_c" 1>&6
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001941echo "configure:1942: checking whether struct dirent has a d_namlen field" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001942if eval "test \"`echo '$''{'e2fsprogs_cv_struct_d_namlen'+set}'`\" = set"; then
1943 echo $ac_n "(cached) $ac_c" 1>&6
1944else
1945 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001946#line 1947 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001947#include "confdefs.h"
1948#include <sys/types.h>
1949#include <dirent.h>
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001950int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001951struct dirent de; de.d_namlen = 0;
1952; return 0; }
1953EOF
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001954if { (eval echo configure:1955: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001955 rm -rf conftest*
1956 e2fsprogs_cv_struct_d_namlen=yes
1957else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001958 echo "configure: failed program was:" >&5
1959 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001960 rm -rf conftest*
1961 e2fsprogs_cv_struct_d_namlen=no
1962fi
1963rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001964fi
1965
1966echo "$ac_t""$e2fsprogs_cv_struct_d_namlen" 1>&6
1967if test "$e2fsprogs_cv_struct_d_namlen" = yes; then
1968 cat >> confdefs.h <<\EOF
1969#define HAVE_DIRENT_NAMLEN 1
1970EOF
1971
1972fi
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00001973echo $ac_n "checking whether llseek declared in unistd.h""... $ac_c" 1>&6
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001974echo "configure:1975: checking whether llseek declared in unistd.h" >&5
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00001975if eval "test \"`echo '$''{'e2fsprogs_cv_have_llseek_prototype'+set}'`\" = set"; then
1976 echo $ac_n "(cached) $ac_c" 1>&6
1977else
1978 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001979#line 1980 "configure"
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00001980#include "confdefs.h"
1981#include <unistd.h>
1982int main() {
1983extern int llseek(int);
1984; return 0; }
1985EOF
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001986if { (eval echo configure:1987: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00001987 rm -rf conftest*
1988 e2fsprogs_cv_have_llseek_prototype=no
1989else
1990 echo "configure: failed program was:" >&5
1991 cat conftest.$ac_ext >&5
1992 rm -rf conftest*
1993 e2fsprogs_cv_have_llseek_prototype=yes
1994fi
1995rm -f conftest*
1996fi
1997
1998echo "$ac_t""$e2fsprogs_cv_have_llseek_prototype" 1>&6
1999if test "$e2fsprogs_cv_have_llseek_prototype" = yes; then
2000 cat >> confdefs.h <<\EOF
2001#define HAVE_LLSEEK_PROTOTYPE 1
2002EOF
2003
2004fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002005if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
2006 # if cross-compiling, with no cached values, just assume something common.
2007 ac_cv_sizeof_short=2
2008 ac_cv_sizeof_int=4
2009 ac_cv_sizeof_long=4
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002010 ac_cv_sizeof_long_long=0
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002011 echo "configure: warning: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4" 1>&2
2012fi
2013echo $ac_n "checking size of short""... $ac_c" 1>&6
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00002014echo "configure:2015: checking size of short" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002015if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2016 echo $ac_n "(cached) $ac_c" 1>&6
2017else
2018 if test "$cross_compiling" = yes; then
2019 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2020else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002021 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00002022#line 2023 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002023#include "confdefs.h"
2024#include <stdio.h>
2025main()
2026{
2027 FILE *f=fopen("conftestval", "w");
2028 if (!f) exit(1);
2029 fprintf(f, "%d\n", sizeof(short));
2030 exit(0);
2031}
2032EOF
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00002033if { (eval echo configure:2034: \"$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 +00002034then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002035 ac_cv_sizeof_short=`cat conftestval`
2036else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002037 echo "configure: failed program was:" >&5
2038 cat conftest.$ac_ext >&5
2039 rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002040 ac_cv_sizeof_short=0
2041fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002042rm -fr conftest*
2043fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002044
2045fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002046echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2047cat >> confdefs.h <<EOF
2048#define SIZEOF_SHORT $ac_cv_sizeof_short
2049EOF
2050
2051
2052echo $ac_n "checking size of int""... $ac_c" 1>&6
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00002053echo "configure:2054: checking size of int" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002054if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2055 echo $ac_n "(cached) $ac_c" 1>&6
2056else
2057 if test "$cross_compiling" = yes; then
2058 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2059else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002060 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00002061#line 2062 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002062#include "confdefs.h"
2063#include <stdio.h>
2064main()
2065{
2066 FILE *f=fopen("conftestval", "w");
2067 if (!f) exit(1);
2068 fprintf(f, "%d\n", sizeof(int));
2069 exit(0);
2070}
2071EOF
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00002072if { (eval echo configure:2073: \"$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 +00002073then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002074 ac_cv_sizeof_int=`cat conftestval`
2075else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002076 echo "configure: failed program was:" >&5
2077 cat conftest.$ac_ext >&5
2078 rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002079 ac_cv_sizeof_int=0
2080fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002081rm -fr conftest*
2082fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002083
2084fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002085echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2086cat >> confdefs.h <<EOF
2087#define SIZEOF_INT $ac_cv_sizeof_int
2088EOF
2089
2090
2091echo $ac_n "checking size of long""... $ac_c" 1>&6
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00002092echo "configure:2093: checking size of long" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002093if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2094 echo $ac_n "(cached) $ac_c" 1>&6
2095else
2096 if test "$cross_compiling" = yes; then
2097 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2098else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002099 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00002100#line 2101 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002101#include "confdefs.h"
2102#include <stdio.h>
2103main()
2104{
2105 FILE *f=fopen("conftestval", "w");
2106 if (!f) exit(1);
2107 fprintf(f, "%d\n", sizeof(long));
2108 exit(0);
2109}
2110EOF
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00002111if { (eval echo configure:2112: \"$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 +00002112then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002113 ac_cv_sizeof_long=`cat conftestval`
2114else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002115 echo "configure: failed program was:" >&5
2116 cat conftest.$ac_ext >&5
2117 rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002118 ac_cv_sizeof_long=0
2119fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002120rm -fr conftest*
2121fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002122
2123fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002124echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2125cat >> confdefs.h <<EOF
2126#define SIZEOF_LONG $ac_cv_sizeof_long
2127EOF
2128
2129
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002130echo $ac_n "checking size of long long""... $ac_c" 1>&6
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00002131echo "configure:2132: checking size of long long" >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002132if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
2133 echo $ac_n "(cached) $ac_c" 1>&6
2134else
2135 if test "$cross_compiling" = yes; then
2136 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2137else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002138 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00002139#line 2140 "configure"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002140#include "confdefs.h"
2141#include <stdio.h>
2142main()
2143{
2144 FILE *f=fopen("conftestval", "w");
2145 if (!f) exit(1);
2146 fprintf(f, "%d\n", sizeof(long long));
2147 exit(0);
2148}
2149EOF
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00002150if { (eval echo configure:2151: \"$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 +00002151then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002152 ac_cv_sizeof_long_long=`cat conftestval`
2153else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002154 echo "configure: failed program was:" >&5
2155 cat conftest.$ac_ext >&5
2156 rm -fr conftest*
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002157 ac_cv_sizeof_long_long=0
2158fi
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002159rm -fr conftest*
2160fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002161
2162fi
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002163echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
2164cat >> confdefs.h <<EOF
2165#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
2166EOF
2167
2168
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002169SIZEOF_SHORT=$ac_cv_sizeof_short
2170SIZEOF_INT=$ac_cv_sizeof_int
2171SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002172SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
2173
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002174
2175
2176
2177echo $ac_n "checking whether struct stat has a st_flags field""... $ac_c" 1>&6
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00002178echo "configure:2179: checking whether struct stat has a st_flags field" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002179if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags'+set}'`\" = set"; then
2180 echo $ac_n "(cached) $ac_c" 1>&6
2181else
2182 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00002183#line 2184 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002184#include "confdefs.h"
2185#include <sys/stat.h>
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002186int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002187struct stat stat; stat.st_flags = 0;
2188; return 0; }
2189EOF
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00002190if { (eval echo configure:2191: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002191 rm -rf conftest*
2192 e2fsprogs_cv_struct_st_flags=yes
2193else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002194 echo "configure: failed program was:" >&5
2195 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002196 rm -rf conftest*
2197 e2fsprogs_cv_struct_st_flags=no
2198fi
2199rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002200fi
2201
2202echo "$ac_t""$e2fsprogs_cv_struct_st_flags" 1>&6
2203if test "$e2fsprogs_cv_struct_st_flags" = yes; then
2204 cat >> confdefs.h <<\EOF
2205#define HAVE_STAT_FLAGS 1
2206EOF
2207
2208fi
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00002209for ac_func in chflags getrusage llseek strdup getmntinfo strcasecmp srandom fchown mallinfo
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002210do
2211echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00002212echo "configure:2213: checking for $ac_func" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002213if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2214 echo $ac_n "(cached) $ac_c" 1>&6
2215else
2216 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00002217#line 2218 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002218#include "confdefs.h"
2219/* System header to define __stub macros and hopefully few prototypes,
2220 which can conflict with char $ac_func(); below. */
2221#include <assert.h>
2222/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002223/* We use char because int might match the return type of a gcc2
2224 builtin and then its argument prototype would still apply. */
2225char $ac_func();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002226
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002227int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002228
2229/* The GNU C library defines this for functions which it implements
2230 to always fail with ENOSYS. Some functions are actually named
2231 something starting with __ and the normal name is an alias. */
2232#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2233choke me
2234#else
2235$ac_func();
2236#endif
2237
2238; return 0; }
2239EOF
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00002240if { (eval echo configure:2241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002241 rm -rf conftest*
2242 eval "ac_cv_func_$ac_func=yes"
2243else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002244 echo "configure: failed program was:" >&5
2245 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002246 rm -rf conftest*
2247 eval "ac_cv_func_$ac_func=no"
2248fi
2249rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002250fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002251
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002252if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2253 echo "$ac_t""yes" 1>&6
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002254 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002255 cat >> confdefs.h <<EOF
2256#define $ac_tr_func 1
2257EOF
2258
2259else
2260 echo "$ac_t""no" 1>&6
2261fi
2262done
2263
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002264echo $ac_n "checking ino_t defined by sys/types.h""... $ac_c" 1>&6
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00002265echo "configure:2266: checking ino_t defined by sys/types.h" >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002266if eval "test \"`echo '$''{'e2fsprogs_cv_ino_t'+set}'`\" = set"; then
2267 echo $ac_n "(cached) $ac_c" 1>&6
2268else
2269 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00002270#line 2271 "configure"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002271#include "confdefs.h"
2272#include <sys/types.h>
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002273int main() {
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002274ino_t ino; ino = 0;
2275; return 0; }
2276EOF
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00002277if { (eval echo configure:2278: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002278 rm -rf conftest*
2279 e2fsprogs_cv_ino_t=yes
2280else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002281 echo "configure: failed program was:" >&5
2282 cat conftest.$ac_ext >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002283 rm -rf conftest*
2284 e2fsprogs_cv_ino_t=no
2285fi
2286rm -f conftest*
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002287fi
2288
2289echo "$ac_t""$e2fsprogs_cv_ino_t" 1>&6
2290if test "$e2fsprogs_cv_ino_t" = yes; then
2291 cat >> confdefs.h <<\EOF
2292#define HAVE_INO_T 1
2293EOF
2294
2295fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002296ac_safe=`echo "linux/fs.h" | sed 'y%./+-%__p_%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002297echo $ac_n "checking for linux/fs.h""... $ac_c" 1>&6
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00002298echo "configure:2299: checking for linux/fs.h" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002299if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2300 echo $ac_n "(cached) $ac_c" 1>&6
2301else
2302 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00002303#line 2304 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002304#include "confdefs.h"
2305#include <linux/fs.h>
2306EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002307ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00002308{ (eval echo configure:2309: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2309ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002310if test -z "$ac_err"; then
2311 rm -rf conftest*
2312 eval "ac_cv_header_$ac_safe=yes"
2313else
2314 echo "$ac_err" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002315 echo "configure: failed program was:" >&5
2316 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002317 rm -rf conftest*
2318 eval "ac_cv_header_$ac_safe=no"
2319fi
2320rm -f conftest*
2321fi
2322if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2323 echo "$ac_t""yes" 1>&6
2324 linux_headers=yes
2325else
2326 echo "$ac_t""no" 1>&6
2327linux_headers=no
2328fi
2329
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002330if test "$linux_headers" = yes; then
2331 cat >> confdefs.h <<\EOF
2332#define HAVE_LINUX_FS_H 1
2333EOF
2334
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002335else
2336 LINUX_INCLUDE='-I$(top_srcdir)/include -I$(top_builddir)/include'
2337 # Use this include directory with test compiles in the configure script too.
2338 CPPFLAGS="$CPPFLAGS -I$srcdir/include -I./include"
2339fi
2340
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002341SOCKET_LIB=''
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002342echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00002343echo "configure:2344: checking for socket in -lsocket" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002344ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
2345if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002346 echo $ac_n "(cached) $ac_c" 1>&6
2347else
2348 ac_save_LIBS="$LIBS"
2349LIBS="-lsocket $LIBS"
2350cat > conftest.$ac_ext <<EOF
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00002351#line 2352 "configure"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002352#include "confdefs.h"
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002353/* Override any gcc2 internal prototype to avoid an error. */
2354/* We use char because int might match the return type of a gcc2
2355 builtin and then its argument prototype would still apply. */
2356char socket();
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002357
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002358int main() {
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002359socket()
2360; return 0; }
2361EOF
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00002362if { (eval echo configure:2363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002363 rm -rf conftest*
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002364 eval "ac_cv_lib_$ac_lib_var=yes"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002365else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002366 echo "configure: failed program was:" >&5
2367 cat conftest.$ac_ext >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002368 rm -rf conftest*
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002369 eval "ac_cv_lib_$ac_lib_var=no"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002370fi
2371rm -f conftest*
2372LIBS="$ac_save_LIBS"
2373
2374fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002375if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002376 echo "$ac_t""yes" 1>&6
2377 SOCKET_LIB=-lsocket
2378else
2379 echo "$ac_t""no" 1>&6
2380fi
2381
2382
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002383echo $ac_n "checking for optreset""... $ac_c" 1>&6
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00002384echo "configure:2385: checking for optreset" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002385if eval "test \"`echo '$''{'ac_cv_have_optreset'+set}'`\" = set"; then
2386 echo $ac_n "(cached) $ac_c" 1>&6
2387else
2388 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00002389#line 2390 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002390#include "confdefs.h"
2391#include <unistd.h>
2392EOF
2393if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2394 egrep "optreset" >/dev/null 2>&1; then
2395 rm -rf conftest*
2396 ac_cv_have_optreset=yes
2397else
2398 rm -rf conftest*
2399 ac_cv_have_optreset=no
2400fi
2401rm -f conftest*
2402
2403fi
2404echo "$ac_t""$ac_cv_have_optreset" 1>&6
2405if test $ac_cv_have_optreset = yes; then
2406 cat >> confdefs.h <<\EOF
2407#define HAVE_OPTRESET 1
2408EOF
2409
2410fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002411echo $ac_n "checking whether the ext2 ioctls compile""... $ac_c" 1>&6
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00002412echo "configure:2413: checking whether the ext2 ioctls compile" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002413if eval "test \"`echo '$''{'e2fsprogs_cv_ioctl_ext2'+set}'`\" = set"; then
2414 echo $ac_n "(cached) $ac_c" 1>&6
2415else
2416 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00002417#line 2418 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002418#include "confdefs.h"
2419#include <linux/ext2_fs.h>
2420#include <sys/ioctl.h>
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002421int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002422ioctl (0, EXT2_IOC_SETVERSION, 0);
2423; return 0; }
2424EOF
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00002425if { (eval echo configure:2426: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002426 rm -rf conftest*
2427 e2fsprogs_cv_ioctl_ext2=yes
2428else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002429 echo "configure: failed program was:" >&5
2430 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002431 rm -rf conftest*
2432 e2fsprogs_cv_ioctl_ext2=no
2433fi
2434rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002435fi
2436
2437echo "$ac_t""$e2fsprogs_cv_ioctl_ext2" 1>&6
2438if test "$e2fsprogs_cv_ioctl_ext2" = yes; then
2439 cat >> confdefs.h <<\EOF
2440#define HAVE_EXT2_IOCTLS 1
2441EOF
2442
2443fi
Theodore Ts'o66704951999-06-25 15:30:33 +00002444echo $ac_n "checking whether struct ext2_inode has an i_version field""... $ac_c" 1>&6
2445echo "configure:2446: checking whether struct ext2_inode has an i_version field" >&5
2446if eval "test \"`echo '$''{'e2fsprogs_cv_ext2_inode_version'+set}'`\" = set"; then
2447 echo $ac_n "(cached) $ac_c" 1>&6
2448else
2449 cat > conftest.$ac_ext <<EOF
2450#line 2451 "configure"
2451#include "confdefs.h"
2452#include <linux/ext2_fs.h>
2453int main() {
2454struct ext2_inode e2i; e2i.i_version=0;
2455; return 0; }
2456EOF
2457if { (eval echo configure:2458: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2458 rm -rf conftest*
2459 e2fsprogs_cv_ext2_inode_version=yes
2460else
2461 echo "configure: failed program was:" >&5
2462 cat conftest.$ac_ext >&5
2463 rm -rf conftest*
2464 e2fsprogs_cv_ext2_inode_version=no
2465fi
2466rm -f conftest*
2467fi
2468
2469echo "$ac_t""$e2fsprogs_cv_ext2_inode_version" 1>&6
2470if test "$e2fsprogs_cv_ext2_inode_version" = yes; then
2471 cat >> confdefs.h <<\EOF
2472#define HAVE_EXT2_INODE_VERSION 1
2473EOF
2474
2475fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002476case "$host_os" in
2477linux*)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00002478 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
2479 root_prefix="";
2480 echo "On $host_os systems, root_prefix defaults to ''"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002481 fi
2482 ;;
2483esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002484case "$host_os" in
2485linux* | gnu*)
2486 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00002487 prefix="/usr";
2488 echo "On $host_os systems, prefix defaults to /usr"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002489 fi
2490;;
2491esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00002492if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +00002493 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00002494 root_prefix="$ac_default_prefix"
2495 else
2496 root_prefix="$prefix"
2497 fi
2498fi
2499
Theodore Ts'oae851481997-04-29 18:13:24 +00002500echo $ac_n "checking whether linker accepts -static""... $ac_c" 1>&6
Theodore Ts'o66704951999-06-25 15:30:33 +00002501echo "configure:2502: checking whether linker accepts -static" >&5
Theodore Ts'oae851481997-04-29 18:13:24 +00002502if eval "test \"`echo '$''{'ac_cv_e2fsprogs_use_static'+set}'`\" = set"; then
2503 echo $ac_n "(cached) $ac_c" 1>&6
2504else
2505 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
2506cat > conftest.$ac_ext <<EOF
Theodore Ts'o66704951999-06-25 15:30:33 +00002507#line 2508 "configure"
Theodore Ts'oae851481997-04-29 18:13:24 +00002508#include "confdefs.h"
2509#include <stdio.h>
2510int main() {
2511fflush(stdout);
2512; return 0; }
2513EOF
Theodore Ts'o66704951999-06-25 15:30:33 +00002514if { (eval echo configure:2515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oae851481997-04-29 18:13:24 +00002515 rm -rf conftest*
2516 ac_cv_e2fsprogs_use_static=yes
2517else
2518 echo "configure: failed program was:" >&5
2519 cat conftest.$ac_ext >&5
2520 rm -rf conftest*
2521 ac_cv_e2fsprogs_use_static=no
2522fi
2523rm -f conftest*
2524LDFLAGS=$SAVE_LDFLAGS
2525fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002526
Theodore Ts'odefde781999-01-04 07:39:19 +00002527case "$host_os" in
2528solaris2.*)
2529 ac_cv_e2fsprogs_use_static=no
2530;;
2531esac
Theodore Ts'oae851481997-04-29 18:13:24 +00002532echo "$ac_t""$ac_cv_e2fsprogs_use_static" 1>&6
Theodore Ts'o74becf31997-04-26 14:37:06 +00002533LDFLAG_STATIC=
Theodore Ts'oae851481997-04-29 18:13:24 +00002534if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002535 LDFLAG_STATIC=-static
Theodore Ts'oae851481997-04-29 18:13:24 +00002536fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002537
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002538SS_DIR=`cd ${srcdir}/lib/ss; pwd`
2539ET_DIR=`cd ${srcdir}/lib/et; pwd`
2540
2541
2542if test "$cross_compiling" = yes ; then
2543 DO_TEST_SUITE=
2544else
2545 DO_TEST_SUITE=check
2546fi
2547
Theodore Ts'oa4d09611997-04-29 14:28:00 +00002548DO_SUBSTITUTE_SCRIPT=$srcdir/lib/do_substitute
2549
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002550test -d lib || mkdir lib
2551test -d include || mkdir include
2552test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +00002553test -d include/asm || mkdir include/asm
Theodore Ts'obc210071997-06-17 05:41:36 +00002554rmakefile=
2555if test -d ${srcdir}/resize ; then
2556 rmakefile=resize/Makefile
2557fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002558trap '' 1 2 15
2559cat > confcache <<\EOF
2560# This file is a shell script that caches the results of configure
2561# tests run on this system so they can be shared between configure
2562# scripts and configure runs. It is not useful on other systems.
2563# If it contains results you don't want to keep, you may remove or edit it.
2564#
2565# By default, configure uses ./config.cache as the cache file,
2566# creating it if it does not exist already. You can give configure
2567# the --cache-file=FILE option to use a different cache file; that is
2568# what configure does when it calls configure scripts in
2569# subdirectories, so they share the cache.
2570# Giving --cache-file=/dev/null disables caching, for debugging configure.
2571# config.status only pays attention to the cache file if you give it the
2572# --recheck option to rerun configure.
2573#
2574EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002575# The following way of writing the cache mishandles newlines in values,
2576# but we know of no workaround that is simple, portable, and efficient.
2577# So, don't put newlines in cache variables' values.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002578# Ultrix sh set writes to stderr and can't be redirected directly,
2579# and sets the high bit in the cache file unless we assign to the vars.
2580(set) 2>&1 |
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00002581 case `(ac_space=' '; set | grep ac_space) 2>&1` in
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002582 *ac_space=\ *)
2583 # `set' does not quote correctly, so add quotes (double-quote substitution
2584 # turns \\\\ into \\, and sed turns \\ into \).
2585 sed -n \
2586 -e "s/'/'\\\\''/g" \
2587 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2588 ;;
2589 *)
2590 # `set' quotes correctly as required by POSIX, so do not add quotes.
2591 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2592 ;;
2593 esac >> confcache
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002594if cmp -s $cache_file confcache; then
2595 :
2596else
2597 if test -w $cache_file; then
2598 echo "updating cache $cache_file"
2599 cat confcache > $cache_file
2600 else
2601 echo "not updating unwritable cache $cache_file"
2602 fi
2603fi
2604rm -f confcache
2605
2606trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2607
2608test "x$prefix" = xNONE && prefix=$ac_default_prefix
2609# Let make expand exec_prefix.
2610test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2611
2612# Any assignment to VPATH causes Sun make to only execute
2613# the first set of double-colon rules, so remove it if not needed.
2614# If there is a colon in the path, we need to keep it.
2615if test "x$srcdir" = x.; then
2616 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2617fi
2618
2619trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2620
2621# Transform confdefs.h into DEFS.
2622# Protect against shell expansion while executing Makefile rules.
2623# Protect against Makefile macro expansion.
2624cat > conftest.defs <<\EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002625s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002626s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
2627s%\[%\\&%g
2628s%\]%\\&%g
2629s%\$%$$%g
2630EOF
2631DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2632rm -f conftest.defs
2633
2634
2635# Without the "./", some shells look in PATH for config.status.
2636: ${CONFIG_STATUS=./config.status}
2637
2638echo creating $CONFIG_STATUS
2639rm -f $CONFIG_STATUS
2640cat > $CONFIG_STATUS <<EOF
2641#! /bin/sh
2642# Generated automatically by configure.
2643# Run this file to recreate the current configuration.
2644# This directory was configured as follows,
2645# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2646#
2647# $0 $ac_configure_args
2648#
2649# Compiler output produced by configure, useful for debugging
2650# configure, is in ./config.log if it exists.
2651
2652ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2653for ac_option
2654do
2655 case "\$ac_option" in
2656 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2657 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2658 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2659 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00002660 echo "$CONFIG_STATUS generated by autoconf version 2.13"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002661 exit 0 ;;
2662 -help | --help | --hel | --he | --h)
2663 echo "\$ac_cs_usage"; exit 0 ;;
2664 *) echo "\$ac_cs_usage"; exit 1 ;;
2665 esac
2666done
2667
2668ac_given_srcdir=$srcdir
2669ac_given_INSTALL="$INSTALL"
2670
Theodore Ts'o44339bd1997-10-15 02:47:20 +00002671trap 'rm -fr `echo "MCONFIG Makefile util/Makefile util/subst.conf lib/et/Makefile
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002672 lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile lib/uuid/Makefile
2673 misc/Makefile e2fsck/Makefile debugfs/Makefile tests/Makefile
Theodore Ts'obc210071997-06-17 05:41:36 +00002674 tests/progs/Makefile $rmakefile doc/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002675EOF
2676cat >> $CONFIG_STATUS <<EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002677
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002678# Protect against being on the right side of a sed subst in config.status.
2679sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2680 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002681$ac_vpsub
2682$extrasub
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00002683s%@SHELL@%$SHELL%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002684s%@CFLAGS@%$CFLAGS%g
2685s%@CPPFLAGS@%$CPPFLAGS%g
2686s%@CXXFLAGS@%$CXXFLAGS%g
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00002687s%@FFLAGS@%$FFLAGS%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002688s%@DEFS@%$DEFS%g
2689s%@LDFLAGS@%$LDFLAGS%g
2690s%@LIBS@%$LIBS%g
2691s%@exec_prefix@%$exec_prefix%g
2692s%@prefix@%$prefix%g
2693s%@program_transform_name@%$program_transform_name%g
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002694s%@bindir@%$bindir%g
2695s%@sbindir@%$sbindir%g
2696s%@libexecdir@%$libexecdir%g
2697s%@datadir@%$datadir%g
2698s%@sysconfdir@%$sysconfdir%g
2699s%@sharedstatedir@%$sharedstatedir%g
2700s%@localstatedir@%$localstatedir%g
2701s%@libdir@%$libdir%g
2702s%@includedir@%$includedir%g
2703s%@oldincludedir@%$oldincludedir%g
2704s%@infodir@%$infodir%g
2705s%@mandir@%$mandir%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002706/@MCONFIG@/r $MCONFIG
2707s%@MCONFIG@%%g
Theodore Ts'o74becf31997-04-26 14:37:06 +00002708s%@E2FSPROGS_YEAR@%$E2FSPROGS_YEAR%g
2709s%@E2FSPROGS_MONTH@%$E2FSPROGS_MONTH%g
2710s%@E2FSPROGS_VERSION@%$E2FSPROGS_VERSION%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002711s%@host@%$host%g
2712s%@host_alias@%$host_alias%g
2713s%@host_cpu@%$host_cpu%g
2714s%@host_vendor@%$host_vendor%g
2715s%@host_os@%$host_os%g
Theodore Ts'o74becf31997-04-26 14:37:06 +00002716s%@CC@%$CC%g
2717s%@LD@%$LD%g
2718s%@CCOPTS@%$CCOPTS%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002719s%@DLL_CMT@%$DLL_CMT%g
2720/@MAKEFILE_DLL@/r $MAKEFILE_DLL
2721s%@MAKEFILE_DLL@%%g
2722s%@ELF_CMT@%$ELF_CMT%g
2723/@MAKEFILE_ELF@/r $MAKEFILE_ELF
2724s%@MAKEFILE_ELF@%%g
2725s%@BSDLIB_CMT@%$BSDLIB_CMT%g
2726/@MAKEFILE_BSDLIB@/r $MAKEFILE_BSDLIB
2727s%@MAKEFILE_BSDLIB@%%g
2728s%@PROFILE_CMT@%$PROFILE_CMT%g
2729/@MAKEFILE_PROFILE@/r $MAKEFILE_PROFILE
2730s%@MAKEFILE_PROFILE@%%g
2731s%@CHECKER_CMT@%$CHECKER_CMT%g
2732/@MAKEFILE_CHECKER@/r $MAKEFILE_CHECKER
2733s%@MAKEFILE_CHECKER@%%g
Theodore Ts'oa4d09611997-04-29 14:28:00 +00002734s%@LIB_EXT@%$LIB_EXT%g
2735s%@STATIC_LIB_EXT@%$STATIC_LIB_EXT%g
2736s%@PROFILED_LIB_EXT@%$PROFILED_LIB_EXT%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002737s%@W@%$W%g
Theodore Ts'oa4d09611997-04-29 14:28:00 +00002738s%@E2FSCK_TYPE@%$E2FSCK_TYPE%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002739s%@FSCK_PROG@%$FSCK_PROG%g
2740s%@FSCK_MAN@%$FSCK_MAN%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002741/@MAKEFILE_LIBRARY@/r $MAKEFILE_LIBRARY
2742s%@MAKEFILE_LIBRARY@%%g
Theodore Ts'o74becf31997-04-26 14:37:06 +00002743s%@BINARY_TYPE@%$BINARY_TYPE%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002744s%@SET_MAKE@%$SET_MAKE%g
2745s%@LN@%$LN%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002746s%@LN_S@%$LN_S%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002747s%@MV@%$MV%g
2748s%@CP@%$CP%g
2749s%@RM@%$RM%g
2750s%@CHMOD@%$CHMOD%g
2751s%@AWK@%$AWK%g
2752s%@SED@%$SED%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002753s%@build@%$build%g
2754s%@build_alias@%$build_alias%g
2755s%@build_cpu@%$build_cpu%g
2756s%@build_vendor@%$build_vendor%g
2757s%@build_os@%$build_os%g
2758s%@AR@%$AR%g
2759s%@RANLIB@%$RANLIB%g
2760s%@STRIP@%$STRIP%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002761s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00002762s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002763s%@INSTALL_DATA@%$INSTALL_DATA%g
2764s%@CPP@%$CPP%g
2765s%@SIZEOF_SHORT@%$SIZEOF_SHORT%g
2766s%@SIZEOF_INT@%$SIZEOF_INT%g
2767s%@SIZEOF_LONG@%$SIZEOF_LONG%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002768s%@SIZEOF_LONG_LONG@%$SIZEOF_LONG_LONG%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002769s%@LINUX_INCLUDE@%$LINUX_INCLUDE%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002770s%@SOCKET_LIB@%$SOCKET_LIB%g
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00002771s%@root_prefix@%$root_prefix%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002772s%@LDFLAG_STATIC@%$LDFLAG_STATIC%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002773s%@SS_DIR@%$SS_DIR%g
2774s%@ET_DIR@%$ET_DIR%g
2775s%@DO_TEST_SUITE@%$DO_TEST_SUITE%g
Theodore Ts'oa4d09611997-04-29 14:28:00 +00002776/@DO_SUBSTITUTE_SCRIPT@/r $DO_SUBSTITUTE_SCRIPT
2777s%@DO_SUBSTITUTE_SCRIPT@%%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002778
2779CEOF
2780EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002781
2782cat >> $CONFIG_STATUS <<\EOF
2783
2784# Split the substitutions into bite-sized pieces for seds with
2785# small command number limits, like on Digital OSF/1 and HP-UX.
2786ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2787ac_file=1 # Number of current file.
2788ac_beg=1 # First line for current file.
2789ac_end=$ac_max_sed_cmds # Line after last line for current file.
2790ac_more_lines=:
2791ac_sed_cmds=""
2792while $ac_more_lines; do
2793 if test $ac_beg -gt 1; then
2794 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2795 else
2796 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2797 fi
2798 if test ! -s conftest.s$ac_file; then
2799 ac_more_lines=false
2800 rm -f conftest.s$ac_file
2801 else
2802 if test -z "$ac_sed_cmds"; then
2803 ac_sed_cmds="sed -f conftest.s$ac_file"
2804 else
2805 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2806 fi
2807 ac_file=`expr $ac_file + 1`
2808 ac_beg=$ac_end
2809 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2810 fi
2811done
2812if test -z "$ac_sed_cmds"; then
2813 ac_sed_cmds=cat
2814fi
2815EOF
2816
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002817cat >> $CONFIG_STATUS <<EOF
2818
Theodore Ts'o44339bd1997-10-15 02:47:20 +00002819CONFIG_FILES=\${CONFIG_FILES-"MCONFIG Makefile util/Makefile util/subst.conf lib/et/Makefile
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002820 lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile lib/uuid/Makefile
2821 misc/Makefile e2fsck/Makefile debugfs/Makefile tests/Makefile
Theodore Ts'obc210071997-06-17 05:41:36 +00002822 tests/progs/Makefile $rmakefile doc/Makefile"}
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002823EOF
2824cat >> $CONFIG_STATUS <<\EOF
2825for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002826 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002827 case "$ac_file" in
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002828 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002829 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2830 *) ac_file_in="${ac_file}.in" ;;
2831 esac
2832
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002833 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002834
2835 # Remove last slash and all that follows it. Not all systems have dirname.
2836 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2837 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2838 # The file is in a subdirectory.
2839 test ! -d "$ac_dir" && mkdir "$ac_dir"
2840 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2841 # A "../" for each directory in $ac_dir_suffix.
2842 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2843 else
2844 ac_dir_suffix= ac_dots=
2845 fi
2846
2847 case "$ac_given_srcdir" in
2848 .) srcdir=.
2849 if test -z "$ac_dots"; then top_srcdir=.
2850 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2851 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2852 *) # Relative path.
2853 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2854 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2855 esac
2856
2857 case "$ac_given_INSTALL" in
2858 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2859 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2860 esac
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002861
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002862 echo creating "$ac_file"
2863 rm -f "$ac_file"
2864 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2865 case "$ac_file" in
2866 *Makefile*) ac_comsub="1i\\
2867# $configure_input" ;;
2868 *) ac_comsub= ;;
2869 esac
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002870
2871 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 +00002872 sed -e "$ac_comsub
2873s%@configure_input@%$configure_input%g
2874s%@srcdir@%$srcdir%g
2875s%@top_srcdir@%$top_srcdir%g
2876s%@INSTALL@%$INSTALL%g
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002877" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002878fi; done
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002879rm -f conftest.s*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002880
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002881EOF
2882cat >> $CONFIG_STATUS <<EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002883
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002884EOF
2885cat >> $CONFIG_STATUS <<\EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002886
2887exit 0
2888EOF
2889chmod +x $CONFIG_STATUS
2890rm -fr confdefs* $ac_clean_files
2891test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2892