blob: f961e5154a19ec4303e9bc9af77a5f7642472c12 [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'o21c84b71997-04-29 16:15:03 +00004# Generated automatically using autoconf version 2.12
5# 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'ofc6d9d51997-04-29 14:51:31 +000023 --with-usr-prefx=PREFIX specify a prefix corresponding to /usr (default ${prefix})"
24ac_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'oa4d09611997-04-29 14:28:00 +000035 --enable-gcc-wall enable GCC anal warnings"
36ac_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=
80# Maximum number of lines to put in a shell here document.
81ac_max_here_lines=12
Theodore Ts'o50e1e101997-04-26 13:58:21 +000082
83ac_prev=
84for ac_option
85do
86
87 # If the previous option needs an argument, assign it.
88 if test -n "$ac_prev"; then
89 eval "$ac_prev=\$ac_option"
90 ac_prev=
91 continue
92 fi
93
94 case "$ac_option" in
95 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
96 *) ac_optarg= ;;
97 esac
98
99 # Accept the important Cygnus configure options, so we can diagnose typos.
100
101 case "$ac_option" in
102
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000103 -bindir | --bindir | --bindi | --bind | --bin | --bi)
104 ac_prev=bindir ;;
105 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
106 bindir="$ac_optarg" ;;
107
108 -build | --build | --buil | --bui | --bu)
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000109 ac_prev=build ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000110 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000111 build="$ac_optarg" ;;
112
113 -cache-file | --cache-file | --cache-fil | --cache-fi \
114 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
115 ac_prev=cache_file ;;
116 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
117 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
118 cache_file="$ac_optarg" ;;
119
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000120 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
121 ac_prev=datadir ;;
122 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
123 | --da=*)
124 datadir="$ac_optarg" ;;
125
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000126 -disable-* | --disable-*)
127 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
128 # Reject names that are not valid shell variable names.
129 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
130 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
131 fi
132 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
133 eval "enable_${ac_feature}=no" ;;
134
135 -enable-* | --enable-*)
136 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
137 # Reject names that are not valid shell variable names.
138 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
139 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
140 fi
141 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
142 case "$ac_option" in
143 *=*) ;;
144 *) ac_optarg=yes ;;
145 esac
146 eval "enable_${ac_feature}='$ac_optarg'" ;;
147
148 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
149 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
150 | --exec | --exe | --ex)
151 ac_prev=exec_prefix ;;
152 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
153 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
154 | --exec=* | --exe=* | --ex=*)
155 exec_prefix="$ac_optarg" ;;
156
157 -gas | --gas | --ga | --g)
158 # Obsolete; use --with-gas.
159 with_gas=yes ;;
160
161 -help | --help | --hel | --he)
162 # Omit some internal or obsolete options to make the list less imposing.
163 # This message is too long to be a string in the A/UX 3.1 sh.
164 cat << EOF
165Usage: configure [options] [host]
166Options: [defaults in brackets after descriptions]
167Configuration:
168 --cache-file=FILE cache test results in FILE
169 --help print this message
170 --no-create do not create output files
171 --quiet, --silent do not print \`checking...' messages
172 --version print the version of autoconf that created configure
173Directory and file names:
174 --prefix=PREFIX install architecture-independent files in PREFIX
175 [$ac_default_prefix]
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000176 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000177 [same as prefix]
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000178 --bindir=DIR user executables in DIR [EPREFIX/bin]
179 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
180 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
181 --datadir=DIR read-only architecture-independent data in DIR
182 [PREFIX/share]
183 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
184 --sharedstatedir=DIR modifiable architecture-independent data in DIR
185 [PREFIX/com]
186 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
187 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
188 --includedir=DIR C header files in DIR [PREFIX/include]
189 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
190 --infodir=DIR info documentation in DIR [PREFIX/info]
191 --mandir=DIR man documentation in DIR [PREFIX/man]
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000192 --srcdir=DIR find the sources in DIR [configure dir or ..]
193 --program-prefix=PREFIX prepend PREFIX to installed program names
194 --program-suffix=SUFFIX append SUFFIX to installed program names
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000195 --program-transform-name=PROGRAM
196 run sed PROGRAM on installed program names
197EOF
198 cat << EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000199Host type:
200 --build=BUILD configure for building on BUILD [BUILD=HOST]
201 --host=HOST configure for HOST [guessed]
202 --target=TARGET configure for TARGET [TARGET=HOST]
203Features and packages:
204 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
205 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
206 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
207 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
208 --x-includes=DIR X include files are in DIR
209 --x-libraries=DIR X library files are in DIR
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000210EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000211 if test -n "$ac_help"; then
212 echo "--enable and --with options recognized:$ac_help"
213 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000214 exit 0 ;;
215
216 -host | --host | --hos | --ho)
217 ac_prev=host ;;
218 -host=* | --host=* | --hos=* | --ho=*)
219 host="$ac_optarg" ;;
220
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000221 -includedir | --includedir | --includedi | --included | --include \
222 | --includ | --inclu | --incl | --inc)
223 ac_prev=includedir ;;
224 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
225 | --includ=* | --inclu=* | --incl=* | --inc=*)
226 includedir="$ac_optarg" ;;
227
228 -infodir | --infodir | --infodi | --infod | --info | --inf)
229 ac_prev=infodir ;;
230 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
231 infodir="$ac_optarg" ;;
232
233 -libdir | --libdir | --libdi | --libd)
234 ac_prev=libdir ;;
235 -libdir=* | --libdir=* | --libdi=* | --libd=*)
236 libdir="$ac_optarg" ;;
237
238 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
239 | --libexe | --libex | --libe)
240 ac_prev=libexecdir ;;
241 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
242 | --libexe=* | --libex=* | --libe=*)
243 libexecdir="$ac_optarg" ;;
244
245 -localstatedir | --localstatedir | --localstatedi | --localstated \
246 | --localstate | --localstat | --localsta | --localst \
247 | --locals | --local | --loca | --loc | --lo)
248 ac_prev=localstatedir ;;
249 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
250 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
251 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
252 localstatedir="$ac_optarg" ;;
253
254 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
255 ac_prev=mandir ;;
256 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
257 mandir="$ac_optarg" ;;
258
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000259 -nfp | --nfp | --nf)
260 # Obsolete; use --without-fp.
261 with_fp=no ;;
262
263 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
264 | --no-cr | --no-c)
265 no_create=yes ;;
266
267 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
268 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
269 no_recursion=yes ;;
270
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000271 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
272 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
273 | --oldin | --oldi | --old | --ol | --o)
274 ac_prev=oldincludedir ;;
275 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
276 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
277 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
278 oldincludedir="$ac_optarg" ;;
279
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000280 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
281 ac_prev=prefix ;;
282 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
283 prefix="$ac_optarg" ;;
284
285 -program-prefix | --program-prefix | --program-prefi | --program-pref \
286 | --program-pre | --program-pr | --program-p)
287 ac_prev=program_prefix ;;
288 -program-prefix=* | --program-prefix=* | --program-prefi=* \
289 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
290 program_prefix="$ac_optarg" ;;
291
292 -program-suffix | --program-suffix | --program-suffi | --program-suff \
293 | --program-suf | --program-su | --program-s)
294 ac_prev=program_suffix ;;
295 -program-suffix=* | --program-suffix=* | --program-suffi=* \
296 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
297 program_suffix="$ac_optarg" ;;
298
299 -program-transform-name | --program-transform-name \
300 | --program-transform-nam | --program-transform-na \
301 | --program-transform-n | --program-transform- \
302 | --program-transform | --program-transfor \
303 | --program-transfo | --program-transf \
304 | --program-trans | --program-tran \
305 | --progr-tra | --program-tr | --program-t)
306 ac_prev=program_transform_name ;;
307 -program-transform-name=* | --program-transform-name=* \
308 | --program-transform-nam=* | --program-transform-na=* \
309 | --program-transform-n=* | --program-transform-=* \
310 | --program-transform=* | --program-transfor=* \
311 | --program-transfo=* | --program-transf=* \
312 | --program-trans=* | --program-tran=* \
313 | --progr-tra=* | --program-tr=* | --program-t=*)
314 program_transform_name="$ac_optarg" ;;
315
316 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
317 | -silent | --silent | --silen | --sile | --sil)
318 silent=yes ;;
319
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000320 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
321 ac_prev=sbindir ;;
322 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
323 | --sbi=* | --sb=*)
324 sbindir="$ac_optarg" ;;
325
326 -sharedstatedir | --sharedstatedir | --sharedstatedi \
327 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
328 | --sharedst | --shareds | --shared | --share | --shar \
329 | --sha | --sh)
330 ac_prev=sharedstatedir ;;
331 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
332 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
333 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
334 | --sha=* | --sh=*)
335 sharedstatedir="$ac_optarg" ;;
336
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000337 -site | --site | --sit)
338 ac_prev=site ;;
339 -site=* | --site=* | --sit=*)
340 site="$ac_optarg" ;;
341
342 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
343 ac_prev=srcdir ;;
344 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
345 srcdir="$ac_optarg" ;;
346
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000347 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
348 | --syscon | --sysco | --sysc | --sys | --sy)
349 ac_prev=sysconfdir ;;
350 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
351 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
352 sysconfdir="$ac_optarg" ;;
353
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000354 -target | --target | --targe | --targ | --tar | --ta | --t)
355 ac_prev=target ;;
356 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
357 target="$ac_optarg" ;;
358
359 -v | -verbose | --verbose | --verbos | --verbo | --verb)
360 verbose=yes ;;
361
362 -version | --version | --versio | --versi | --vers)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000363 echo "configure generated by autoconf version 2.12"
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000364 exit 0 ;;
365
366 -with-* | --with-*)
367 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
368 # Reject names that are not valid shell variable names.
369 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
370 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
371 fi
372 ac_package=`echo $ac_package| sed 's/-/_/g'`
373 case "$ac_option" in
374 *=*) ;;
375 *) ac_optarg=yes ;;
376 esac
377 eval "with_${ac_package}='$ac_optarg'" ;;
378
379 -without-* | --without-*)
380 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
381 # Reject names that are not valid shell variable names.
382 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
383 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
384 fi
385 ac_package=`echo $ac_package| sed 's/-/_/g'`
386 eval "with_${ac_package}=no" ;;
387
388 --x)
389 # Obsolete; use --with-x.
390 with_x=yes ;;
391
392 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
393 | --x-incl | --x-inc | --x-in | --x-i)
394 ac_prev=x_includes ;;
395 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
396 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
397 x_includes="$ac_optarg" ;;
398
399 -x-libraries | --x-libraries | --x-librarie | --x-librari \
400 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
401 ac_prev=x_libraries ;;
402 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
403 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
404 x_libraries="$ac_optarg" ;;
405
406 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
407 ;;
408
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000409 *)
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000410 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
411 echo "configure: warning: $ac_option: invalid host type" 1>&2
412 fi
413 if test "x$nonopt" != xNONE; then
414 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
415 fi
416 nonopt="$ac_option"
417 ;;
418
419 esac
420done
421
422if test -n "$ac_prev"; then
423 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
424fi
425
426trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
427
428# File descriptor usage:
429# 0 standard input
430# 1 file creation
431# 2 errors and warnings
432# 3 some systems may open it to /dev/tty
433# 4 used on the Kubota Titan
434# 6 checking for... messages and results
435# 5 compiler messages saved in config.log
436if test "$silent" = yes; then
437 exec 6>/dev/null
438else
439 exec 6>&1
440fi
441exec 5>./config.log
442
443echo "\
444This file contains any messages produced by compilers while
445running configure, to aid debugging if configure makes a mistake.
446" 1>&5
447
448# Strip out --no-create and --no-recursion so they do not pile up.
449# Also quote any args containing shell metacharacters.
450ac_configure_args=
451for ac_arg
452do
453 case "$ac_arg" in
454 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
455 | --no-cr | --no-c) ;;
456 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
457 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
458 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
459 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
460 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
461 esac
462done
463
464# NLS nuisances.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000465# Only set these to C if already set. These must not be set unconditionally
466# because not all systems understand e.g. LANG=C (notably SCO).
467# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
468# Non-C LC_CTYPE values break the ctype check.
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000469if test "${LANG+set}" = set; then LANG=C; export LANG; fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000470if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
471if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
472if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000473
474# confdefs.h avoids OS command line length limits that DEFS can exceed.
475rm -rf conftest* confdefs.h
476# AIX cpp loses on an empty file, so make sure it contains at least a newline.
477echo > confdefs.h
478
479# A filename unique to this package, relative to the directory that
480# configure is in, which we can look for to find out if srcdir is correct.
481ac_unique_file=version.h
482
483# Find the source files, if location was not specified.
484if test -z "$srcdir"; then
485 ac_srcdir_defaulted=yes
486 # Try the directory containing this script, then its parent.
487 ac_prog=$0
488 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
489 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
490 srcdir=$ac_confdir
491 if test ! -r $srcdir/$ac_unique_file; then
492 srcdir=..
493 fi
494else
495 ac_srcdir_defaulted=no
496fi
497if test ! -r $srcdir/$ac_unique_file; then
498 if test "$ac_srcdir_defaulted" = yes; then
499 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
500 else
501 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
502 fi
503fi
504srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
505
506# Prefer explicitly selected file to automatically selected ones.
507if test -z "$CONFIG_SITE"; then
508 if test "x$prefix" != xNONE; then
509 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
510 else
511 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
512 fi
513fi
514for ac_site_file in $CONFIG_SITE; do
515 if test -r "$ac_site_file"; then
516 echo "loading site script $ac_site_file"
517 . "$ac_site_file"
518 fi
519done
520
521if test -r "$cache_file"; then
522 echo "loading cache $cache_file"
523 . $cache_file
524else
525 echo "creating cache $cache_file"
526 > $cache_file
527fi
528
529ac_ext=c
530# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
531ac_cpp='$CPP $CPPFLAGS'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000532ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
533ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
534cross_compiling=$ac_cv_prog_cc_cross
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000535
536if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
537 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
538 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
539 ac_n= ac_c='
540' ac_t=' '
541 else
542 ac_n=-n ac_c= ac_t=
543 fi
544else
545 ac_n= ac_c='\c' ac_t=
546fi
547
548
549MCONFIG=./MCONFIG
550
Theodore Ts'o74becf31997-04-26 14:37:06 +0000551BINARY_TYPE=bin
552E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
553 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
554DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
555 | tr \" " "`
556MONTH=`echo $DATE | awk -F- '{print $2}'`
557YEAR=`echo $DATE | awk -F- '{print $3}'`
558
559if expr $YEAR ">" 90 >/dev/null ; then
560 E2FSPROGS_YEAR=19$YEAR
561else
562 E2FSPROGS_YEAR=20$YEAR
563fi
564
565case $MONTH in
566Jan) E2FSPROGS_MONTH="January" ;;
567Feb) E2FSPROGS_MONTH="February" ;;
568Mar) E2FSPROGS_MONTH="March" ;;
569Apr) E2FSPROGS_MONTH="April" ;;
570May) E2FSPROGS_MONTH="May" ;;
571Jun) E2FSPROGS_MONTH="June" ;;
572Jul) E2FSPROGS_MONTH="July" ;;
573Aug) E2FSPROGS_MONTH="August" ;;
574Sep) E2FSPROGS_MONTH="September" ;;
575Oct) E2FSPROGS_MONTH="October" ;;
576Nov) E2FSPROGS_MONTH="November" ;;
577Dec) E2FSPROGS_MONTH="December" ;;
578*) echo "Unknown month $MONTH??" ;;
579esac
580
581unset DATE MONTH YEAR
582echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION"
583echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}"
584
585
586
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000587
588ac_aux_dir=
589for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
590 if test -f $ac_dir/install-sh; then
591 ac_aux_dir=$ac_dir
592 ac_install_sh="$ac_aux_dir/install-sh -c"
593 break
594 elif test -f $ac_dir/install.sh; then
595 ac_aux_dir=$ac_dir
596 ac_install_sh="$ac_aux_dir/install.sh -c"
597 break
598 fi
599done
600if test -z "$ac_aux_dir"; then
601 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
602fi
603ac_config_guess=$ac_aux_dir/config.guess
604ac_config_sub=$ac_aux_dir/config.sub
605ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
606
607
608# Make sure we can run config.sub.
609if $ac_config_sub sun4 >/dev/null 2>&1; then :
610else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
611fi
612
613echo $ac_n "checking host system type""... $ac_c" 1>&6
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000614echo "configure:615: checking host system type" >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000615
616host_alias=$host
617case "$host_alias" in
618NONE)
619 case $nonopt in
620 NONE)
621 if host_alias=`$ac_config_guess`; then :
622 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
623 fi ;;
624 *) host_alias=$nonopt ;;
625 esac ;;
626esac
627
628host=`$ac_config_sub $host_alias`
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000629host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
630host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
631host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000632echo "$ac_t""$host" 1>&6
633
Theodore Ts'o74becf31997-04-26 14:37:06 +0000634# Check whether --with-cc or --without-cc was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000635if test "${with_cc+set}" = set; then
636 withval="$with_cc"
Theodore Ts'o74becf31997-04-26 14:37:06 +0000637 echo "$ac_t""CC=$withval" 1>&6
638CC=$withval
639else
640 if test -z "$CC" ; then CC=cc; fi
641echo "$ac_t""CC defaults to $CC" 1>&6
642fi
643export CC
644
645# Check whether --with-linker or --without-linker was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000646if test "${with_linker+set}" = set; then
647 withval="$with_linker"
Theodore Ts'o74becf31997-04-26 14:37:06 +0000648 echo "$ac_t""LD=$withval" 1>&6
649LD=$withval
650else
651 if test -z "$LD" ; then LD=$CC; fi
652echo "$ac_t""LD defaults to $LD" 1>&6
653fi
654export LD
655
656# Check whether --with-ccopts or --without-ccopts was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000657if test "${with_ccopts+set}" = set; then
658 withval="$with_ccopts"
Theodore Ts'o74becf31997-04-26 14:37:06 +0000659 echo "$ac_t""CCOPTS is $withval" 1>&6
660CCOPTS=$withval
661CFLAGS="$CFLAGS $withval"
662else
663 CCOPTS=
664fi
665
Theodore Ts'oa4d09611997-04-29 14:28:00 +0000666LIB_EXT=.a
667STATIC_LIB_EXT=.a
668PROFILE_LIB_EXT=.a
Theodore Ts'o74becf31997-04-26 14:37:06 +0000669# Check whether --with-ldopts or --without-ldopts was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000670if test "${with_ldopts+set}" = set; then
671 withval="$with_ldopts"
Theodore Ts'o74becf31997-04-26 14:37:06 +0000672 echo "$ac_t""LDFLAGS is $withval" 1>&6
673LDFLAGS=$withval
674else
675 LDFLAGS=
676fi
677
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000678# Check whether --with-usr-prefix or --without-usr-prefix was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000679if test "${with_usr_prefix+set}" = set; then
680 withval="$with_usr_prefix"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000681 usr_prefix=$withval
682else
683 usr_prefix=NONE
684fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000685# Check whether --enable-dll-shlibs or --disable-dll-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000686if test "${enable_dll_shlibs+set}" = set; then
687 enableval="$enable_dll_shlibs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000688 if test "$enableval" = "no"
689then
690 DLL_CMT=#
691 MAKEFILE_DLL=/dev/null
692 echo "Disabling DLL shared libraries"
693else
694 DLL_CMT=
695 MAKEFILE_DLL=$srcdir/lib/Makefile.dll-lib
Theodore Ts'o74becf31997-04-26 14:37:06 +0000696 BINARY_TYPE=dllbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +0000697 LIB_EXT=.sa
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000698 echo "Enabling DLL shared libraries"
699fi
700
701else
702 MAKEFILE_DLL=/dev/null
703DLL_CMT=#
704echo "Disabling DLL shared libraries by default"
705
706fi
707
708
709
710# Check whether --enable-elf-shlibs or --disable-elf-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000711if test "${enable_elf_shlibs+set}" = set; then
712 enableval="$enable_elf_shlibs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000713 if test "$enableval" = "no"
714then
715 ELF_CMT=#
716 MAKEFILE_ELF=/dev/null
717 echo "Disabling ELF shared libraries"
718else
719 ELF_CMT=
720 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
Theodore Ts'o74becf31997-04-26 14:37:06 +0000721 BINARY_TYPE=elfbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +0000722 LIB_EXT=.so
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000723 echo "Enabling ELF shared libraries"
724fi
725
726else
727 MAKEFILE_ELF=/dev/null
728ELF_CMT=#
729echo "Disabling ELF shared libraries by default"
730
731fi
732
733
734
735# Check whether --enable-bsd-shlibs or --disable-bsd-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000736if test "${enable_bsd_shlibs+set}" = set; then
737 enableval="$enable_bsd_shlibs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000738 if test "$enableval" = "no"
739then
740 BSDLIB_CMT=#
741 MAKEFILE_BSDLIB=/dev/null
742 echo "Disabling BSD shared libraries"
743else
744 BSDLIB_CMT=
745 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
Theodore Ts'oa4d09611997-04-29 14:28:00 +0000746 LIB_EXT=.so
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000747 echo "Enabling BSD shared libraries"
748fi
749
750else
751 MAKEFILE_BSDLIB=/dev/null
752BSDLIB_CMT=#
753echo "Disabling BSD shared libraries by default"
754
755fi
756
757
758
759# Check whether --enable-profile or --disable-profile was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000760if test "${enable_profile+set}" = set; then
761 enableval="$enable_profile"
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000762 if test "$enableval" = "no"
763then
764 PROFILE_CMT=#
765 MAKEFILE_PROFILE=/dev/null
766 echo "Disabling profiling libraries"
767else
768 PROFILE_CMT=
769 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
Theodore Ts'oa4d09611997-04-29 14:28:00 +0000770 PROFILED_LIB_EXT=_p.a
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000771 echo "Building profiling libraries"
772fi
773
774else
775 PROFILE_CMT=#
776MAKEFILE_PROFILE=/dev/null
777echo "Disabling profiling libraries by default"
778
779fi
780
781
782
783# Check whether --enable-checker or --disable-checker was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000784if test "${enable_checker+set}" = set; then
785 enableval="$enable_checker"
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000786 if test "$enableval" = "no"
787then
788 CHECKER_CMT=#
789 MAKEFILE_CHECKER=/dev/null
790 echo "Disabling checker libraries"
791else
792 CHECKER_CMT=
793 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
794 echo "Building checker libraries"
795fi
796
797else
798 CHECKER_CMT=#
799MAKEFILE_CHECKER=/dev/null
800echo "Disabling checker libraries by default"
801
802fi
803
804
805
Theodore Ts'oa4d09611997-04-29 14:28:00 +0000806
807
808
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000809# Check whether --enable-gcc-wall or --disable-gcc-wall was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000810if test "${enable_gcc_wall+set}" = set; then
811 enableval="$enable_gcc_wall"
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000812 if test "$enableval" = "no"
813then
814 W=#
815 echo "Disabling GCC warnings"
816else
817 W=
818 echo "Enabling GCC warnings"
819fi
820
821else
822 W=#
823echo "Disabling GCC warnings by default"
824
825fi
826
827
Theodore Ts'oa4d09611997-04-29 14:28:00 +0000828# Check whether --enable-dynamic-e2fsck or --disable-dynamic-e2fsck was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000829if test "${enable_dynamic_e2fsck+set}" = set; then
830 enableval="$enable_dynamic_e2fsck"
Theodore Ts'oa4d09611997-04-29 14:28:00 +0000831 if test "$enableval" = "no"
832then
833 E2FSCK_TYPE=static
834 echo "Building e2fsck statically"
835else
836 E2FSCK_TYPE=shared
837 echo "Building e2fsck dynamically"
838fi
839
840else
841 E2FSCK_TYPE=static
842echo "Building e2fsck statically by default"
843
844fi
845
846
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000847# Check whether --enable-fsck or --disable-fsck was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000848if test "${enable_fsck+set}" = set; then
849 enableval="$enable_fsck"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000850 if test "$enableval" = "no"
851then
852 FSCK_PROG='' FSCK_MAN=''
853 echo "Not building fsck wrapper"
854else
855 FSCK_PROG=fsck FSCK_MAN=fsck.8
856 echo "Building fsck wrapper"
857fi
858
859else
860 case "$host_os" in
861 gnu*)
862 FSCK_PROG='' FSCK_MAN=''
863 echo "Not building fsck wrapper by default"
864 ;;
865 *)
866 FSCK_PROG=fsck FSCK_MAN=fsck.8
867 echo "Building fsck wrapper by default"
868esac
869
870fi
871
872
873
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000874MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
875
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000876# Check whether --enable-old-bitops or --disable-old-bitops was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000877if test "${enable_old_bitops+set}" = set; then
878 enableval="$enable_old_bitops"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000879 if test "$enableval" = "no"
880then
881 echo "Using new (standard) bitmask operations"
882else
883 cat >> confdefs.h <<\EOF
884#define EXT2_OLD_BITOPS 1
885EOF
886
887 echo "Using old (native) bitmask operations"
888
889fi
890
891else
892 echo "Using standard bitmask operations by default"
893
894fi
895
Theodore Ts'o74becf31997-04-26 14:37:06 +0000896
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000897echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000898echo "configure:899: checking whether ${MAKE-make} sets \${MAKE}" >&5
899set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000900if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
901 echo $ac_n "(cached) $ac_c" 1>&6
902else
903 cat > conftestmake <<\EOF
904all:
905 @echo 'ac_maketemp="${MAKE}"'
906EOF
907# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
908eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
909if test -n "$ac_maketemp"; then
910 eval ac_cv_prog_make_${ac_make}_set=yes
911else
912 eval ac_cv_prog_make_${ac_make}_set=no
913fi
914rm -f conftestmake
915fi
916if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
917 echo "$ac_t""yes" 1>&6
918 SET_MAKE=
919else
920 echo "$ac_t""no" 1>&6
921 SET_MAKE="MAKE=${MAKE-make}"
922fi
923
924# Extract the first word of "ln", so it can be a program name with args.
925set dummy ln; ac_word=$2
926echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000927echo "configure:928: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000928if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then
929 echo $ac_n "(cached) $ac_c" 1>&6
930else
931 case "$LN" in
932 /*)
933 ac_cv_path_LN="$LN" # Let the user override the test with a path.
934 ;;
935 *)
936 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
937 for ac_dir in $PATH; do
938 test -z "$ac_dir" && ac_dir=.
939 if test -f $ac_dir/$ac_word; then
940 ac_cv_path_LN="$ac_dir/$ac_word"
941 break
942 fi
943 done
944 IFS="$ac_save_ifs"
945 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
946 ;;
947esac
948fi
949LN="$ac_cv_path_LN"
950if test -n "$LN"; then
951 echo "$ac_t""$LN" 1>&6
952else
953 echo "$ac_t""no" 1>&6
954fi
955
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000956echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000957echo "configure:958: checking whether ln -s works" >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000958if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
959 echo $ac_n "(cached) $ac_c" 1>&6
960else
961 rm -f conftestdata
962if ln -s X conftestdata 2>/dev/null
963then
964 rm -f conftestdata
965 ac_cv_prog_LN_S="ln -s"
966else
967 ac_cv_prog_LN_S=ln
968fi
969fi
970LN_S="$ac_cv_prog_LN_S"
971if test "$ac_cv_prog_LN_S" = "ln -s"; then
972 echo "$ac_t""yes" 1>&6
973else
974 echo "$ac_t""no" 1>&6
975fi
976
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000977# Extract the first word of "mv", so it can be a program name with args.
978set dummy mv; ac_word=$2
979echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000980echo "configure:981: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000981if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
982 echo $ac_n "(cached) $ac_c" 1>&6
983else
984 case "$MV" in
985 /*)
986 ac_cv_path_MV="$MV" # Let the user override the test with a path.
987 ;;
988 *)
989 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
990 for ac_dir in $PATH; do
991 test -z "$ac_dir" && ac_dir=.
992 if test -f $ac_dir/$ac_word; then
993 ac_cv_path_MV="$ac_dir/$ac_word"
994 break
995 fi
996 done
997 IFS="$ac_save_ifs"
998 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
999 ;;
1000esac
1001fi
1002MV="$ac_cv_path_MV"
1003if test -n "$MV"; then
1004 echo "$ac_t""$MV" 1>&6
1005else
1006 echo "$ac_t""no" 1>&6
1007fi
1008
1009# Extract the first word of "cp", so it can be a program name with args.
1010set dummy cp; ac_word=$2
1011echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001012echo "configure:1013: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001013if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then
1014 echo $ac_n "(cached) $ac_c" 1>&6
1015else
1016 case "$CP" in
1017 /*)
1018 ac_cv_path_CP="$CP" # Let the user override the test with a path.
1019 ;;
1020 *)
1021 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1022 for ac_dir in $PATH; do
1023 test -z "$ac_dir" && ac_dir=.
1024 if test -f $ac_dir/$ac_word; then
1025 ac_cv_path_CP="$ac_dir/$ac_word"
1026 break
1027 fi
1028 done
1029 IFS="$ac_save_ifs"
1030 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
1031 ;;
1032esac
1033fi
1034CP="$ac_cv_path_CP"
1035if test -n "$CP"; then
1036 echo "$ac_t""$CP" 1>&6
1037else
1038 echo "$ac_t""no" 1>&6
1039fi
1040
1041# Extract the first word of "rm", so it can be a program name with args.
1042set dummy rm; ac_word=$2
1043echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001044echo "configure:1045: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001045if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
1046 echo $ac_n "(cached) $ac_c" 1>&6
1047else
1048 case "$RM" in
1049 /*)
1050 ac_cv_path_RM="$RM" # Let the user override the test with a path.
1051 ;;
1052 *)
1053 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1054 for ac_dir in $PATH; do
1055 test -z "$ac_dir" && ac_dir=.
1056 if test -f $ac_dir/$ac_word; then
1057 ac_cv_path_RM="$ac_dir/$ac_word"
1058 break
1059 fi
1060 done
1061 IFS="$ac_save_ifs"
1062 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
1063 ;;
1064esac
1065fi
1066RM="$ac_cv_path_RM"
1067if test -n "$RM"; then
1068 echo "$ac_t""$RM" 1>&6
1069else
1070 echo "$ac_t""no" 1>&6
1071fi
1072
1073# Extract the first word of "chmod", so it can be a program name with args.
1074set dummy chmod; ac_word=$2
1075echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001076echo "configure:1077: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001077if eval "test \"`echo '$''{'ac_cv_path_CHMOD'+set}'`\" = set"; then
1078 echo $ac_n "(cached) $ac_c" 1>&6
1079else
1080 case "$CHMOD" in
1081 /*)
1082 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
1083 ;;
1084 *)
1085 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1086 for ac_dir in $PATH; do
1087 test -z "$ac_dir" && ac_dir=.
1088 if test -f $ac_dir/$ac_word; then
1089 ac_cv_path_CHMOD="$ac_dir/$ac_word"
1090 break
1091 fi
1092 done
1093 IFS="$ac_save_ifs"
1094 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
1095 ;;
1096esac
1097fi
1098CHMOD="$ac_cv_path_CHMOD"
1099if test -n "$CHMOD"; then
1100 echo "$ac_t""$CHMOD" 1>&6
1101else
1102 echo "$ac_t""no" 1>&6
1103fi
1104
1105# Extract the first word of "awk", so it can be a program name with args.
1106set dummy awk; ac_word=$2
1107echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001108echo "configure:1109: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001109if eval "test \"`echo '$''{'ac_cv_path_AWK'+set}'`\" = set"; then
1110 echo $ac_n "(cached) $ac_c" 1>&6
1111else
1112 case "$AWK" in
1113 /*)
1114 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
1115 ;;
1116 *)
1117 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1118 for ac_dir in $PATH; do
1119 test -z "$ac_dir" && ac_dir=.
1120 if test -f $ac_dir/$ac_word; then
1121 ac_cv_path_AWK="$ac_dir/$ac_word"
1122 break
1123 fi
1124 done
1125 IFS="$ac_save_ifs"
1126 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
1127 ;;
1128esac
1129fi
1130AWK="$ac_cv_path_AWK"
1131if test -n "$AWK"; then
1132 echo "$ac_t""$AWK" 1>&6
1133else
1134 echo "$ac_t""no" 1>&6
1135fi
1136
1137# Extract the first word of "sed", so it can be a program name with args.
1138set dummy sed; ac_word=$2
1139echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001140echo "configure:1141: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001141if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then
1142 echo $ac_n "(cached) $ac_c" 1>&6
1143else
1144 case "$SED" in
1145 /*)
1146 ac_cv_path_SED="$SED" # Let the user override the test with a path.
1147 ;;
1148 *)
1149 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1150 for ac_dir in $PATH; do
1151 test -z "$ac_dir" && ac_dir=.
1152 if test -f $ac_dir/$ac_word; then
1153 ac_cv_path_SED="$ac_dir/$ac_word"
1154 break
1155 fi
1156 done
1157 IFS="$ac_save_ifs"
1158 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
1159 ;;
1160esac
1161fi
1162SED="$ac_cv_path_SED"
1163if test -n "$SED"; then
1164 echo "$ac_t""$SED" 1>&6
1165else
1166 echo "$ac_t""no" 1>&6
1167fi
1168
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001169echo $ac_n "checking build system type""... $ac_c" 1>&6
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001170echo "configure:1171: checking build system type" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001171
1172build_alias=$build
1173case "$build_alias" in
1174NONE)
1175 case $nonopt in
1176 NONE) build_alias=$host_alias ;;
1177 *) build_alias=$nonopt ;;
1178 esac ;;
1179esac
1180
1181build=`$ac_config_sub $build_alias`
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001182build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1183build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1184build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001185echo "$ac_t""$build" 1>&6
1186
1187if test $host != $build; then
1188 ac_tool_prefix=${host_alias}-
1189else
1190 ac_tool_prefix=
1191fi
1192
1193# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1194set dummy ${ac_tool_prefix}ar; ac_word=$2
1195echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001196echo "configure:1197: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001197if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1198 echo $ac_n "(cached) $ac_c" 1>&6
1199else
1200 if test -n "$AR"; then
1201 ac_cv_prog_AR="$AR" # Let the user override the test.
1202else
1203 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1204 for ac_dir in $PATH; do
1205 test -z "$ac_dir" && ac_dir=.
1206 if test -f $ac_dir/$ac_word; then
1207 ac_cv_prog_AR="${ac_tool_prefix}ar"
1208 break
1209 fi
1210 done
1211 IFS="$ac_save_ifs"
1212fi
1213fi
1214AR="$ac_cv_prog_AR"
1215if test -n "$AR"; then
1216 echo "$ac_t""$AR" 1>&6
1217else
1218 echo "$ac_t""no" 1>&6
1219fi
1220
1221
1222if test -z "$ac_cv_prog_AR"; then
1223if test -n "$ac_tool_prefix"; then
1224 # Extract the first word of "ar", so it can be a program name with args.
1225set dummy ar; ac_word=$2
1226echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001227echo "configure:1228: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001228if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1229 echo $ac_n "(cached) $ac_c" 1>&6
1230else
1231 if test -n "$AR"; then
1232 ac_cv_prog_AR="$AR" # Let the user override the test.
1233else
1234 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1235 for ac_dir in $PATH; do
1236 test -z "$ac_dir" && ac_dir=.
1237 if test -f $ac_dir/$ac_word; then
1238 ac_cv_prog_AR="ar"
1239 break
1240 fi
1241 done
1242 IFS="$ac_save_ifs"
1243 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1244fi
1245fi
1246AR="$ac_cv_prog_AR"
1247if test -n "$AR"; then
1248 echo "$ac_t""$AR" 1>&6
1249else
1250 echo "$ac_t""no" 1>&6
1251fi
1252
1253else
1254 AR="ar"
1255fi
1256fi
1257
1258# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1259set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1260echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001261echo "configure:1262: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001262if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1263 echo $ac_n "(cached) $ac_c" 1>&6
1264else
1265 if test -n "$RANLIB"; then
1266 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1267else
1268 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1269 for ac_dir in $PATH; do
1270 test -z "$ac_dir" && ac_dir=.
1271 if test -f $ac_dir/$ac_word; then
1272 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1273 break
1274 fi
1275 done
1276 IFS="$ac_save_ifs"
1277fi
1278fi
1279RANLIB="$ac_cv_prog_RANLIB"
1280if test -n "$RANLIB"; then
1281 echo "$ac_t""$RANLIB" 1>&6
1282else
1283 echo "$ac_t""no" 1>&6
1284fi
1285
1286
1287if test -z "$ac_cv_prog_RANLIB"; then
1288if test -n "$ac_tool_prefix"; then
1289 # Extract the first word of "ranlib", so it can be a program name with args.
1290set dummy ranlib; ac_word=$2
1291echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001292echo "configure:1293: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001293if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1294 echo $ac_n "(cached) $ac_c" 1>&6
1295else
1296 if test -n "$RANLIB"; then
1297 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1298else
1299 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1300 for ac_dir in $PATH; do
1301 test -z "$ac_dir" && ac_dir=.
1302 if test -f $ac_dir/$ac_word; then
1303 ac_cv_prog_RANLIB="ranlib"
1304 break
1305 fi
1306 done
1307 IFS="$ac_save_ifs"
1308 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1309fi
1310fi
1311RANLIB="$ac_cv_prog_RANLIB"
1312if test -n "$RANLIB"; then
1313 echo "$ac_t""$RANLIB" 1>&6
1314else
1315 echo "$ac_t""no" 1>&6
1316fi
1317
1318else
1319 RANLIB=":"
1320fi
1321fi
1322
1323# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1324set dummy ${ac_tool_prefix}strip; ac_word=$2
1325echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001326echo "configure:1327: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001327if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1328 echo $ac_n "(cached) $ac_c" 1>&6
1329else
1330 if test -n "$STRIP"; then
1331 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1332else
1333 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1334 for ac_dir in $PATH; do
1335 test -z "$ac_dir" && ac_dir=.
1336 if test -f $ac_dir/$ac_word; then
1337 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1338 break
1339 fi
1340 done
1341 IFS="$ac_save_ifs"
1342fi
1343fi
1344STRIP="$ac_cv_prog_STRIP"
1345if test -n "$STRIP"; then
1346 echo "$ac_t""$STRIP" 1>&6
1347else
1348 echo "$ac_t""no" 1>&6
1349fi
1350
1351
1352if test -z "$ac_cv_prog_STRIP"; then
1353if test -n "$ac_tool_prefix"; then
1354 # Extract the first word of "strip", so it can be a program name with args.
1355set dummy strip; ac_word=$2
1356echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001357echo "configure:1358: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001358if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1359 echo $ac_n "(cached) $ac_c" 1>&6
1360else
1361 if test -n "$STRIP"; then
1362 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1363else
1364 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1365 for ac_dir in $PATH; do
1366 test -z "$ac_dir" && ac_dir=.
1367 if test -f $ac_dir/$ac_word; then
1368 ac_cv_prog_STRIP="strip"
1369 break
1370 fi
1371 done
1372 IFS="$ac_save_ifs"
1373 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
1374fi
1375fi
1376STRIP="$ac_cv_prog_STRIP"
1377if test -n "$STRIP"; then
1378 echo "$ac_t""$STRIP" 1>&6
1379else
1380 echo "$ac_t""no" 1>&6
1381fi
1382
1383else
1384 STRIP=":"
1385fi
1386fi
1387
1388# Extract the first word of "gcc", so it can be a program name with args.
1389set dummy gcc; ac_word=$2
1390echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001391echo "configure:1392: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001392if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1393 echo $ac_n "(cached) $ac_c" 1>&6
1394else
1395 if test -n "$CC"; then
1396 ac_cv_prog_CC="$CC" # Let the user override the test.
1397else
1398 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1399 for ac_dir in $PATH; do
1400 test -z "$ac_dir" && ac_dir=.
1401 if test -f $ac_dir/$ac_word; then
1402 ac_cv_prog_CC="gcc"
1403 break
1404 fi
1405 done
1406 IFS="$ac_save_ifs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001407fi
1408fi
1409CC="$ac_cv_prog_CC"
1410if test -n "$CC"; then
1411 echo "$ac_t""$CC" 1>&6
1412else
1413 echo "$ac_t""no" 1>&6
1414fi
1415
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001416if test -z "$CC"; then
1417 # Extract the first word of "cc", so it can be a program name with args.
1418set dummy cc; ac_word=$2
1419echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1420echo "configure:1421: checking for $ac_word" >&5
1421if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1422 echo $ac_n "(cached) $ac_c" 1>&6
1423else
1424 if test -n "$CC"; then
1425 ac_cv_prog_CC="$CC" # Let the user override the test.
1426else
1427 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1428 ac_prog_rejected=no
1429 for ac_dir in $PATH; do
1430 test -z "$ac_dir" && ac_dir=.
1431 if test -f $ac_dir/$ac_word; then
1432 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1433 ac_prog_rejected=yes
1434 continue
1435 fi
1436 ac_cv_prog_CC="cc"
1437 break
1438 fi
1439 done
1440 IFS="$ac_save_ifs"
1441if test $ac_prog_rejected = yes; then
1442 # We found a bogon in the path, so make sure we never use it.
1443 set dummy $ac_cv_prog_CC
1444 shift
1445 if test $# -gt 0; then
1446 # We chose a different compiler from the bogus one.
1447 # However, it has the same basename, so the bogon will be chosen
1448 # first if we set CC to just the basename; use the full file name.
1449 shift
1450 set dummy "$ac_dir/$ac_word" "$@"
1451 shift
1452 ac_cv_prog_CC="$@"
1453 fi
1454fi
1455fi
1456fi
1457CC="$ac_cv_prog_CC"
1458if test -n "$CC"; then
1459 echo "$ac_t""$CC" 1>&6
1460else
1461 echo "$ac_t""no" 1>&6
1462fi
1463
1464 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1465fi
1466
1467echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1468echo "configure:1469: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1469
1470ac_ext=c
1471# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1472ac_cpp='$CPP $CPPFLAGS'
1473ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1474ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1475cross_compiling=$ac_cv_prog_cc_cross
1476
1477cat > conftest.$ac_ext <<EOF
1478#line 1479 "configure"
1479#include "confdefs.h"
1480main(){return(0);}
1481EOF
1482if { (eval echo configure:1483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1483 ac_cv_prog_cc_works=yes
1484 # If we can't run a trivial program, we are probably using a cross compiler.
1485 if (./conftest; exit) 2>/dev/null; then
1486 ac_cv_prog_cc_cross=no
1487 else
1488 ac_cv_prog_cc_cross=yes
1489 fi
1490else
1491 echo "configure: failed program was:" >&5
1492 cat conftest.$ac_ext >&5
1493 ac_cv_prog_cc_works=no
1494fi
1495rm -fr conftest*
1496
1497echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1498if test $ac_cv_prog_cc_works = no; then
1499 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1500fi
1501echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1502echo "configure:1503: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1503echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1504cross_compiling=$ac_cv_prog_cc_cross
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001505
1506echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001507echo "configure:1508: checking whether we are using GNU C" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001508if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1509 echo $ac_n "(cached) $ac_c" 1>&6
1510else
1511 cat > conftest.c <<EOF
1512#ifdef __GNUC__
1513 yes;
1514#endif
1515EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001516if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1517: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001517 ac_cv_prog_gcc=yes
1518else
1519 ac_cv_prog_gcc=no
1520fi
1521fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001522
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001523echo "$ac_t""$ac_cv_prog_gcc" 1>&6
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001524
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001525if test $ac_cv_prog_gcc = yes; then
1526 GCC=yes
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001527 ac_test_CFLAGS="${CFLAGS+set}"
1528 ac_save_CFLAGS="$CFLAGS"
1529 CFLAGS=
1530 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1531echo "configure:1532: checking whether ${CC-cc} accepts -g" >&5
1532if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001533 echo $ac_n "(cached) $ac_c" 1>&6
1534else
1535 echo 'void f(){}' > conftest.c
1536if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001537 ac_cv_prog_cc_g=yes
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001538else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001539 ac_cv_prog_cc_g=no
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001540fi
1541rm -f conftest*
1542
1543fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001544
1545echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1546 if test "$ac_test_CFLAGS" = set; then
1547 CFLAGS="$ac_save_CFLAGS"
1548 elif test $ac_cv_prog_cc_g = yes; then
1549 CFLAGS="-g -O2"
1550 else
1551 CFLAGS="-O2"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001552 fi
1553else
1554 GCC=
1555 test "${CFLAGS+set}" = set || CFLAGS="-g"
1556fi
1557
1558# Find a good install program. We prefer a C program (faster),
1559# so one script is as good as another. But avoid the broken or
1560# incompatible versions:
1561# SysV /etc/install, /usr/sbin/install
1562# SunOS /usr/etc/install
1563# IRIX /sbin/install
1564# AIX /bin/install
1565# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1566# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1567# ./install, which can be erroneously created by make from ./install.sh.
1568echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001569echo "configure:1570: checking for a BSD compatible install" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001570if test -z "$INSTALL"; then
1571if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1572 echo $ac_n "(cached) $ac_c" 1>&6
1573else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001574 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001575 for ac_dir in $PATH; do
1576 # Account for people who put trailing slashes in PATH elements.
1577 case "$ac_dir/" in
1578 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1579 *)
1580 # OSF1 and SCO ODT 3.0 have their own names for install.
1581 for ac_prog in ginstall installbsd scoinst install; do
1582 if test -f $ac_dir/$ac_prog; then
1583 if test $ac_prog = install &&
1584 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1585 # AIX install. It has an incompatible calling convention.
1586 # OSF/1 installbsd also uses dspmsg, but is usable.
1587 :
1588 else
1589 ac_cv_path_install="$ac_dir/$ac_prog -c"
1590 break 2
1591 fi
1592 fi
1593 done
1594 ;;
1595 esac
1596 done
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001597 IFS="$ac_save_IFS"
1598
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001599fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001600 if test "${ac_cv_path_install+set}" = set; then
1601 INSTALL="$ac_cv_path_install"
1602 else
1603 # As a last resort, use the slow shell script. We don't cache a
1604 # path for INSTALL within a source directory, because that will
1605 # break other packages using the cache if that directory is
1606 # removed, or if the path is relative.
1607 INSTALL="$ac_install_sh"
1608 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001609fi
1610echo "$ac_t""$INSTALL" 1>&6
1611
1612# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1613# It thinks the first close brace ends the variable substitution.
1614test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1615
1616test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1617
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001618
1619echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001620echo "configure:1621: checking how to run the C preprocessor" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001621# On Suns, sometimes $CPP names a directory.
1622if test -n "$CPP" && test -d "$CPP"; then
1623 CPP=
1624fi
1625if test -z "$CPP"; then
1626if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1627 echo $ac_n "(cached) $ac_c" 1>&6
1628else
1629 # This must be in double quotes, not single quotes, because CPP may get
1630 # substituted into the Makefile and "${CC-cc}" will confuse make.
1631 CPP="${CC-cc} -E"
1632 # On the NeXT, cc -E runs the code through the compiler's parser,
1633 # not just through cpp.
1634 cat > conftest.$ac_ext <<EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001635#line 1636 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001636#include "confdefs.h"
1637#include <assert.h>
1638Syntax Error
1639EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001640ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1641{ (eval echo configure:1642: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001642ac_err=`grep -v '^ *+' conftest.out`
1643if test -z "$ac_err"; then
1644 :
1645else
1646 echo "$ac_err" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001647 echo "configure: failed program was:" >&5
1648 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001649 rm -rf conftest*
1650 CPP="${CC-cc} -E -traditional-cpp"
1651 cat > conftest.$ac_ext <<EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001652#line 1653 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001653#include "confdefs.h"
1654#include <assert.h>
1655Syntax Error
1656EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001657ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1658{ (eval echo configure:1659: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001659ac_err=`grep -v '^ *+' conftest.out`
1660if test -z "$ac_err"; then
1661 :
1662else
1663 echo "$ac_err" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001664 echo "configure: failed program was:" >&5
1665 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001666 rm -rf conftest*
1667 CPP=/lib/cpp
1668fi
1669rm -f conftest*
1670fi
1671rm -f conftest*
1672 ac_cv_prog_CPP="$CPP"
1673fi
1674 CPP="$ac_cv_prog_CPP"
1675else
1676 ac_cv_prog_CPP="$CPP"
1677fi
1678echo "$ac_t""$CPP" 1>&6
1679
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001680for ac_hdr in stdlib.h unistd.h stdarg.h errno.h mntent.h dirent.h getopt.h linux/fd.h linux/major.h sys/disklabel.h sys/sockio.h net/if.h netinet/in.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001681do
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001682ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001683echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001684echo "configure:1685: checking for $ac_hdr" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001685if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1686 echo $ac_n "(cached) $ac_c" 1>&6
1687else
1688 cat > conftest.$ac_ext <<EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001689#line 1690 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001690#include "confdefs.h"
1691#include <$ac_hdr>
1692EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001693ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1694{ (eval echo configure:1695: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001695ac_err=`grep -v '^ *+' conftest.out`
1696if test -z "$ac_err"; then
1697 rm -rf conftest*
1698 eval "ac_cv_header_$ac_safe=yes"
1699else
1700 echo "$ac_err" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001701 echo "configure: failed program was:" >&5
1702 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001703 rm -rf conftest*
1704 eval "ac_cv_header_$ac_safe=no"
1705fi
1706rm -f conftest*
1707fi
1708if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1709 echo "$ac_t""yes" 1>&6
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001710 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001711 cat >> confdefs.h <<EOF
1712#define $ac_tr_hdr 1
1713EOF
1714
1715else
1716 echo "$ac_t""no" 1>&6
1717fi
1718done
1719
1720echo $ac_n "checking for vprintf""... $ac_c" 1>&6
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001721echo "configure:1722: checking for vprintf" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001722if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
1723 echo $ac_n "(cached) $ac_c" 1>&6
1724else
1725 cat > conftest.$ac_ext <<EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001726#line 1727 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001727#include "confdefs.h"
1728/* System header to define __stub macros and hopefully few prototypes,
1729 which can conflict with char vprintf(); below. */
1730#include <assert.h>
1731/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001732/* We use char because int might match the return type of a gcc2
1733 builtin and then its argument prototype would still apply. */
1734char vprintf();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001735
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001736int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001737
1738/* The GNU C library defines this for functions which it implements
1739 to always fail with ENOSYS. Some functions are actually named
1740 something starting with __ and the normal name is an alias. */
1741#if defined (__stub_vprintf) || defined (__stub___vprintf)
1742choke me
1743#else
1744vprintf();
1745#endif
1746
1747; return 0; }
1748EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001749if { (eval echo configure:1750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001750 rm -rf conftest*
1751 eval "ac_cv_func_vprintf=yes"
1752else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001753 echo "configure: failed program was:" >&5
1754 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001755 rm -rf conftest*
1756 eval "ac_cv_func_vprintf=no"
1757fi
1758rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001759fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001760
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001761if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
1762 echo "$ac_t""yes" 1>&6
1763 cat >> confdefs.h <<\EOF
1764#define HAVE_VPRINTF 1
1765EOF
1766
1767else
1768 echo "$ac_t""no" 1>&6
1769fi
1770
1771if test "$ac_cv_func_vprintf" != yes; then
1772echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001773echo "configure:1774: checking for _doprnt" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001774if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
1775 echo $ac_n "(cached) $ac_c" 1>&6
1776else
1777 cat > conftest.$ac_ext <<EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001778#line 1779 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001779#include "confdefs.h"
1780/* System header to define __stub macros and hopefully few prototypes,
1781 which can conflict with char _doprnt(); below. */
1782#include <assert.h>
1783/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001784/* We use char because int might match the return type of a gcc2
1785 builtin and then its argument prototype would still apply. */
1786char _doprnt();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001787
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001788int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001789
1790/* The GNU C library defines this for functions which it implements
1791 to always fail with ENOSYS. Some functions are actually named
1792 something starting with __ and the normal name is an alias. */
1793#if defined (__stub__doprnt) || defined (__stub____doprnt)
1794choke me
1795#else
1796_doprnt();
1797#endif
1798
1799; return 0; }
1800EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001801if { (eval echo configure:1802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001802 rm -rf conftest*
1803 eval "ac_cv_func__doprnt=yes"
1804else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001805 echo "configure: failed program was:" >&5
1806 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001807 rm -rf conftest*
1808 eval "ac_cv_func__doprnt=no"
1809fi
1810rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001811fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001812
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001813if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
1814 echo "$ac_t""yes" 1>&6
1815 cat >> confdefs.h <<\EOF
1816#define HAVE_DOPRNT 1
1817EOF
1818
1819else
1820 echo "$ac_t""no" 1>&6
1821fi
1822
1823fi
1824
1825echo $ac_n "checking whether struct dirent has a d_namlen field""... $ac_c" 1>&6
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001826echo "configure:1827: checking whether struct dirent has a d_namlen field" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001827if eval "test \"`echo '$''{'e2fsprogs_cv_struct_d_namlen'+set}'`\" = set"; then
1828 echo $ac_n "(cached) $ac_c" 1>&6
1829else
1830 cat > conftest.$ac_ext <<EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001831#line 1832 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001832#include "confdefs.h"
1833#include <sys/types.h>
1834#include <dirent.h>
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001835int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001836struct dirent de; de.d_namlen = 0;
1837; return 0; }
1838EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001839if { (eval echo configure:1840: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001840 rm -rf conftest*
1841 e2fsprogs_cv_struct_d_namlen=yes
1842else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001843 echo "configure: failed program was:" >&5
1844 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001845 rm -rf conftest*
1846 e2fsprogs_cv_struct_d_namlen=no
1847fi
1848rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001849fi
1850
1851echo "$ac_t""$e2fsprogs_cv_struct_d_namlen" 1>&6
1852if test "$e2fsprogs_cv_struct_d_namlen" = yes; then
1853 cat >> confdefs.h <<\EOF
1854#define HAVE_DIRENT_NAMLEN 1
1855EOF
1856
1857fi
1858if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
1859 # if cross-compiling, with no cached values, just assume something common.
1860 ac_cv_sizeof_short=2
1861 ac_cv_sizeof_int=4
1862 ac_cv_sizeof_long=4
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001863 ac_cv_sizeof_long_long=0
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001864 echo "configure: warning: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4" 1>&2
1865fi
1866echo $ac_n "checking size of short""... $ac_c" 1>&6
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001867echo "configure:1868: checking size of short" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001868if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
1869 echo $ac_n "(cached) $ac_c" 1>&6
1870else
1871 if test "$cross_compiling" = yes; then
1872 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1873else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001874 cat > conftest.$ac_ext <<EOF
1875#line 1876 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001876#include "confdefs.h"
1877#include <stdio.h>
1878main()
1879{
1880 FILE *f=fopen("conftestval", "w");
1881 if (!f) exit(1);
1882 fprintf(f, "%d\n", sizeof(short));
1883 exit(0);
1884}
1885EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001886if { (eval echo configure:1887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1887then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001888 ac_cv_sizeof_short=`cat conftestval`
1889else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001890 echo "configure: failed program was:" >&5
1891 cat conftest.$ac_ext >&5
1892 rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001893 ac_cv_sizeof_short=0
1894fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001895rm -fr conftest*
1896fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001897
1898fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001899echo "$ac_t""$ac_cv_sizeof_short" 1>&6
1900cat >> confdefs.h <<EOF
1901#define SIZEOF_SHORT $ac_cv_sizeof_short
1902EOF
1903
1904
1905echo $ac_n "checking size of int""... $ac_c" 1>&6
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001906echo "configure:1907: checking size of int" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001907if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1908 echo $ac_n "(cached) $ac_c" 1>&6
1909else
1910 if test "$cross_compiling" = yes; then
1911 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1912else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001913 cat > conftest.$ac_ext <<EOF
1914#line 1915 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001915#include "confdefs.h"
1916#include <stdio.h>
1917main()
1918{
1919 FILE *f=fopen("conftestval", "w");
1920 if (!f) exit(1);
1921 fprintf(f, "%d\n", sizeof(int));
1922 exit(0);
1923}
1924EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001925if { (eval echo configure:1926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1926then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001927 ac_cv_sizeof_int=`cat conftestval`
1928else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001929 echo "configure: failed program was:" >&5
1930 cat conftest.$ac_ext >&5
1931 rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001932 ac_cv_sizeof_int=0
1933fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001934rm -fr conftest*
1935fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001936
1937fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001938echo "$ac_t""$ac_cv_sizeof_int" 1>&6
1939cat >> confdefs.h <<EOF
1940#define SIZEOF_INT $ac_cv_sizeof_int
1941EOF
1942
1943
1944echo $ac_n "checking size of long""... $ac_c" 1>&6
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001945echo "configure:1946: checking size of long" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001946if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
1947 echo $ac_n "(cached) $ac_c" 1>&6
1948else
1949 if test "$cross_compiling" = yes; then
1950 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1951else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001952 cat > conftest.$ac_ext <<EOF
1953#line 1954 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001954#include "confdefs.h"
1955#include <stdio.h>
1956main()
1957{
1958 FILE *f=fopen("conftestval", "w");
1959 if (!f) exit(1);
1960 fprintf(f, "%d\n", sizeof(long));
1961 exit(0);
1962}
1963EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001964if { (eval echo configure:1965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1965then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001966 ac_cv_sizeof_long=`cat conftestval`
1967else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001968 echo "configure: failed program was:" >&5
1969 cat conftest.$ac_ext >&5
1970 rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001971 ac_cv_sizeof_long=0
1972fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001973rm -fr conftest*
1974fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001975
1976fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001977echo "$ac_t""$ac_cv_sizeof_long" 1>&6
1978cat >> confdefs.h <<EOF
1979#define SIZEOF_LONG $ac_cv_sizeof_long
1980EOF
1981
1982
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001983echo $ac_n "checking size of long long""... $ac_c" 1>&6
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001984echo "configure:1985: checking size of long long" >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001985if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
1986 echo $ac_n "(cached) $ac_c" 1>&6
1987else
1988 if test "$cross_compiling" = yes; then
1989 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1990else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001991 cat > conftest.$ac_ext <<EOF
1992#line 1993 "configure"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001993#include "confdefs.h"
1994#include <stdio.h>
1995main()
1996{
1997 FILE *f=fopen("conftestval", "w");
1998 if (!f) exit(1);
1999 fprintf(f, "%d\n", sizeof(long long));
2000 exit(0);
2001}
2002EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002003if { (eval echo configure:2004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2004then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002005 ac_cv_sizeof_long_long=`cat conftestval`
2006else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002007 echo "configure: failed program was:" >&5
2008 cat conftest.$ac_ext >&5
2009 rm -fr conftest*
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002010 ac_cv_sizeof_long_long=0
2011fi
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002012rm -fr conftest*
2013fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002014
2015fi
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002016echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
2017cat >> confdefs.h <<EOF
2018#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
2019EOF
2020
2021
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002022SIZEOF_SHORT=$ac_cv_sizeof_short
2023SIZEOF_INT=$ac_cv_sizeof_int
2024SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002025SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
2026
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002027
2028
2029
2030echo $ac_n "checking whether struct stat has a st_flags field""... $ac_c" 1>&6
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002031echo "configure:2032: checking whether struct stat has a st_flags field" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002032if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags'+set}'`\" = set"; then
2033 echo $ac_n "(cached) $ac_c" 1>&6
2034else
2035 cat > conftest.$ac_ext <<EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002036#line 2037 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002037#include "confdefs.h"
2038#include <sys/stat.h>
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002039int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002040struct stat stat; stat.st_flags = 0;
2041; return 0; }
2042EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002043if { (eval echo configure:2044: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002044 rm -rf conftest*
2045 e2fsprogs_cv_struct_st_flags=yes
2046else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002047 echo "configure: failed program was:" >&5
2048 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002049 rm -rf conftest*
2050 e2fsprogs_cv_struct_st_flags=no
2051fi
2052rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002053fi
2054
2055echo "$ac_t""$e2fsprogs_cv_struct_st_flags" 1>&6
2056if test "$e2fsprogs_cv_struct_st_flags" = yes; then
2057 cat >> confdefs.h <<\EOF
2058#define HAVE_STAT_FLAGS 1
2059EOF
2060
2061fi
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002062for ac_func in chflags getrusage llseek strdup getmntinfo strcasecmp srandom fchown
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002063do
2064echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002065echo "configure:2066: checking for $ac_func" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002066if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2067 echo $ac_n "(cached) $ac_c" 1>&6
2068else
2069 cat > conftest.$ac_ext <<EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002070#line 2071 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002071#include "confdefs.h"
2072/* System header to define __stub macros and hopefully few prototypes,
2073 which can conflict with char $ac_func(); below. */
2074#include <assert.h>
2075/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002076/* We use char because int might match the return type of a gcc2
2077 builtin and then its argument prototype would still apply. */
2078char $ac_func();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002079
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002080int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002081
2082/* The GNU C library defines this for functions which it implements
2083 to always fail with ENOSYS. Some functions are actually named
2084 something starting with __ and the normal name is an alias. */
2085#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2086choke me
2087#else
2088$ac_func();
2089#endif
2090
2091; return 0; }
2092EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002093if { (eval echo configure:2094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002094 rm -rf conftest*
2095 eval "ac_cv_func_$ac_func=yes"
2096else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002097 echo "configure: failed program was:" >&5
2098 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002099 rm -rf conftest*
2100 eval "ac_cv_func_$ac_func=no"
2101fi
2102rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002103fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002104
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002105if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2106 echo "$ac_t""yes" 1>&6
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002107 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002108 cat >> confdefs.h <<EOF
2109#define $ac_tr_func 1
2110EOF
2111
2112else
2113 echo "$ac_t""no" 1>&6
2114fi
2115done
2116
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002117echo $ac_n "checking ino_t defined by sys/types.h""... $ac_c" 1>&6
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002118echo "configure:2119: checking ino_t defined by sys/types.h" >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002119if eval "test \"`echo '$''{'e2fsprogs_cv_ino_t'+set}'`\" = set"; then
2120 echo $ac_n "(cached) $ac_c" 1>&6
2121else
2122 cat > conftest.$ac_ext <<EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002123#line 2124 "configure"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002124#include "confdefs.h"
2125#include <sys/types.h>
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002126int main() {
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002127ino_t ino; ino = 0;
2128; return 0; }
2129EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002130if { (eval echo configure:2131: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002131 rm -rf conftest*
2132 e2fsprogs_cv_ino_t=yes
2133else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002134 echo "configure: failed program was:" >&5
2135 cat conftest.$ac_ext >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002136 rm -rf conftest*
2137 e2fsprogs_cv_ino_t=no
2138fi
2139rm -f conftest*
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002140fi
2141
2142echo "$ac_t""$e2fsprogs_cv_ino_t" 1>&6
2143if test "$e2fsprogs_cv_ino_t" = yes; then
2144 cat >> confdefs.h <<\EOF
2145#define HAVE_INO_T 1
2146EOF
2147
2148fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002149ac_safe=`echo "linux/fs.h" | sed 'y%./+-%__p_%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002150echo $ac_n "checking for linux/fs.h""... $ac_c" 1>&6
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002151echo "configure:2152: checking for linux/fs.h" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002152if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2153 echo $ac_n "(cached) $ac_c" 1>&6
2154else
2155 cat > conftest.$ac_ext <<EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002156#line 2157 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002157#include "confdefs.h"
2158#include <linux/fs.h>
2159EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002160ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2161{ (eval echo configure:2162: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002162ac_err=`grep -v '^ *+' conftest.out`
2163if test -z "$ac_err"; then
2164 rm -rf conftest*
2165 eval "ac_cv_header_$ac_safe=yes"
2166else
2167 echo "$ac_err" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002168 echo "configure: failed program was:" >&5
2169 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002170 rm -rf conftest*
2171 eval "ac_cv_header_$ac_safe=no"
2172fi
2173rm -f conftest*
2174fi
2175if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2176 echo "$ac_t""yes" 1>&6
2177 linux_headers=yes
2178else
2179 echo "$ac_t""no" 1>&6
2180linux_headers=no
2181fi
2182
2183
2184if test "$linux_headers" = yes; then
2185 cat >> confdefs.h <<\EOF
2186#define HAVE_LINUX_FS_H 1
2187EOF
2188
2189 # These are some programs that depend on having linux headers around, and
2190 # won't work otherwise. So we only compile them if we can.
2191 EXTRA_PROGS="$EXTRA_PROGS flushb"
2192else
2193 LINUX_INCLUDE='-I$(top_srcdir)/include -I$(top_builddir)/include'
2194 # Use this include directory with test compiles in the configure script too.
2195 CPPFLAGS="$CPPFLAGS -I$srcdir/include -I./include"
2196fi
2197
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002198SOCKET_LIB=''
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002199echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
2200echo "configure:2201: checking for socket in -lsocket" >&5
2201ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
2202if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002203 echo $ac_n "(cached) $ac_c" 1>&6
2204else
2205 ac_save_LIBS="$LIBS"
2206LIBS="-lsocket $LIBS"
2207cat > conftest.$ac_ext <<EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002208#line 2209 "configure"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002209#include "confdefs.h"
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002210/* Override any gcc2 internal prototype to avoid an error. */
2211/* We use char because int might match the return type of a gcc2
2212 builtin and then its argument prototype would still apply. */
2213char socket();
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002214
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002215int main() {
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002216socket()
2217; return 0; }
2218EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002219if { (eval echo configure:2220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002220 rm -rf conftest*
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002221 eval "ac_cv_lib_$ac_lib_var=yes"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002222else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002223 echo "configure: failed program was:" >&5
2224 cat conftest.$ac_ext >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002225 rm -rf conftest*
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002226 eval "ac_cv_lib_$ac_lib_var=no"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002227fi
2228rm -f conftest*
2229LIBS="$ac_save_LIBS"
2230
2231fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002232if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002233 echo "$ac_t""yes" 1>&6
2234 SOCKET_LIB=-lsocket
2235else
2236 echo "$ac_t""no" 1>&6
2237fi
2238
2239
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002240echo $ac_n "checking for optreset""... $ac_c" 1>&6
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002241echo "configure:2242: checking for optreset" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002242if eval "test \"`echo '$''{'ac_cv_have_optreset'+set}'`\" = set"; then
2243 echo $ac_n "(cached) $ac_c" 1>&6
2244else
2245 cat > conftest.$ac_ext <<EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002246#line 2247 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002247#include "confdefs.h"
2248#include <unistd.h>
2249EOF
2250if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2251 egrep "optreset" >/dev/null 2>&1; then
2252 rm -rf conftest*
2253 ac_cv_have_optreset=yes
2254else
2255 rm -rf conftest*
2256 ac_cv_have_optreset=no
2257fi
2258rm -f conftest*
2259
2260fi
2261echo "$ac_t""$ac_cv_have_optreset" 1>&6
2262if test $ac_cv_have_optreset = yes; then
2263 cat >> confdefs.h <<\EOF
2264#define HAVE_OPTRESET 1
2265EOF
2266
2267fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002268echo $ac_n "checking whether the ext2 ioctls compile""... $ac_c" 1>&6
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002269echo "configure:2270: checking whether the ext2 ioctls compile" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002270if eval "test \"`echo '$''{'e2fsprogs_cv_ioctl_ext2'+set}'`\" = set"; then
2271 echo $ac_n "(cached) $ac_c" 1>&6
2272else
2273 cat > conftest.$ac_ext <<EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002274#line 2275 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002275#include "confdefs.h"
2276#include <linux/ext2_fs.h>
2277#include <sys/ioctl.h>
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002278int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002279ioctl (0, EXT2_IOC_SETVERSION, 0);
2280; return 0; }
2281EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002282if { (eval echo configure:2283: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002283 rm -rf conftest*
2284 e2fsprogs_cv_ioctl_ext2=yes
2285else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002286 echo "configure: failed program was:" >&5
2287 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002288 rm -rf conftest*
2289 e2fsprogs_cv_ioctl_ext2=no
2290fi
2291rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002292fi
2293
2294echo "$ac_t""$e2fsprogs_cv_ioctl_ext2" 1>&6
2295if test "$e2fsprogs_cv_ioctl_ext2" = yes; then
2296 cat >> confdefs.h <<\EOF
2297#define HAVE_EXT2_IOCTLS 1
2298EOF
2299
2300fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002301case "$host_os" in
2302linux*)
2303 if test "$prefix" = NONE ; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002304 usr_prefix="\${prefix}/usr";
2305 echo "On $host_os systems, usr_prefix defaults to $usr_prefix"
2306 fi
2307 ;;
2308esac
2309if test "$usr_prefix" = NONE ; then
2310 usr_prefix="\${prefix}"
2311fi
2312
2313case "$host_os" in
2314linux* | gnu*)
2315 if test "$prefix" = NONE ; then
2316 prefix='';
2317 echo "On $host_os systems, prefix defaults to ''"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002318 fi
2319;;
2320esac
Theodore Ts'oae851481997-04-29 18:13:24 +00002321echo $ac_n "checking whether linker accepts -static""... $ac_c" 1>&6
2322echo "configure:2323: checking whether linker accepts -static" >&5
2323if eval "test \"`echo '$''{'ac_cv_e2fsprogs_use_static'+set}'`\" = set"; then
2324 echo $ac_n "(cached) $ac_c" 1>&6
2325else
2326 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
2327cat > conftest.$ac_ext <<EOF
2328#line 2329 "configure"
2329#include "confdefs.h"
2330#include <stdio.h>
2331int main() {
2332fflush(stdout);
2333; return 0; }
2334EOF
2335if { (eval echo configure:2336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2336 rm -rf conftest*
2337 ac_cv_e2fsprogs_use_static=yes
2338else
2339 echo "configure: failed program was:" >&5
2340 cat conftest.$ac_ext >&5
2341 rm -rf conftest*
2342 ac_cv_e2fsprogs_use_static=no
2343fi
2344rm -f conftest*
2345LDFLAGS=$SAVE_LDFLAGS
2346fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002347
Theodore Ts'oae851481997-04-29 18:13:24 +00002348echo "$ac_t""$ac_cv_e2fsprogs_use_static" 1>&6
Theodore Ts'o74becf31997-04-26 14:37:06 +00002349LDFLAG_STATIC=
Theodore Ts'oae851481997-04-29 18:13:24 +00002350if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002351 LDFLAG_STATIC=-static
Theodore Ts'oae851481997-04-29 18:13:24 +00002352fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002353
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002354SS_DIR=`cd ${srcdir}/lib/ss; pwd`
2355ET_DIR=`cd ${srcdir}/lib/et; pwd`
2356
2357
2358if test "$cross_compiling" = yes ; then
2359 DO_TEST_SUITE=
2360else
2361 DO_TEST_SUITE=check
2362fi
2363
Theodore Ts'oa4d09611997-04-29 14:28:00 +00002364DO_SUBSTITUTE_SCRIPT=$srcdir/lib/do_substitute
2365
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002366test -d lib || mkdir lib
2367test -d include || mkdir include
2368test -d include/linux || mkdir include/linux
2369trap '' 1 2 15
2370cat > confcache <<\EOF
2371# This file is a shell script that caches the results of configure
2372# tests run on this system so they can be shared between configure
2373# scripts and configure runs. It is not useful on other systems.
2374# If it contains results you don't want to keep, you may remove or edit it.
2375#
2376# By default, configure uses ./config.cache as the cache file,
2377# creating it if it does not exist already. You can give configure
2378# the --cache-file=FILE option to use a different cache file; that is
2379# what configure does when it calls configure scripts in
2380# subdirectories, so they share the cache.
2381# Giving --cache-file=/dev/null disables caching, for debugging configure.
2382# config.status only pays attention to the cache file if you give it the
2383# --recheck option to rerun configure.
2384#
2385EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002386# The following way of writing the cache mishandles newlines in values,
2387# but we know of no workaround that is simple, portable, and efficient.
2388# So, don't put newlines in cache variables' values.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002389# Ultrix sh set writes to stderr and can't be redirected directly,
2390# and sets the high bit in the cache file unless we assign to the vars.
2391(set) 2>&1 |
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002392 case `(ac_space=' '; set) 2>&1` in
2393 *ac_space=\ *)
2394 # `set' does not quote correctly, so add quotes (double-quote substitution
2395 # turns \\\\ into \\, and sed turns \\ into \).
2396 sed -n \
2397 -e "s/'/'\\\\''/g" \
2398 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2399 ;;
2400 *)
2401 # `set' quotes correctly as required by POSIX, so do not add quotes.
2402 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2403 ;;
2404 esac >> confcache
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002405if cmp -s $cache_file confcache; then
2406 :
2407else
2408 if test -w $cache_file; then
2409 echo "updating cache $cache_file"
2410 cat confcache > $cache_file
2411 else
2412 echo "not updating unwritable cache $cache_file"
2413 fi
2414fi
2415rm -f confcache
2416
2417trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2418
2419test "x$prefix" = xNONE && prefix=$ac_default_prefix
2420# Let make expand exec_prefix.
2421test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2422
2423# Any assignment to VPATH causes Sun make to only execute
2424# the first set of double-colon rules, so remove it if not needed.
2425# If there is a colon in the path, we need to keep it.
2426if test "x$srcdir" = x.; then
2427 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2428fi
2429
2430trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2431
2432# Transform confdefs.h into DEFS.
2433# Protect against shell expansion while executing Makefile rules.
2434# Protect against Makefile macro expansion.
2435cat > conftest.defs <<\EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002436s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002437s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
2438s%\[%\\&%g
2439s%\]%\\&%g
2440s%\$%$$%g
2441EOF
2442DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2443rm -f conftest.defs
2444
2445
2446# Without the "./", some shells look in PATH for config.status.
2447: ${CONFIG_STATUS=./config.status}
2448
2449echo creating $CONFIG_STATUS
2450rm -f $CONFIG_STATUS
2451cat > $CONFIG_STATUS <<EOF
2452#! /bin/sh
2453# Generated automatically by configure.
2454# Run this file to recreate the current configuration.
2455# This directory was configured as follows,
2456# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2457#
2458# $0 $ac_configure_args
2459#
2460# Compiler output produced by configure, useful for debugging
2461# configure, is in ./config.log if it exists.
2462
2463ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2464for ac_option
2465do
2466 case "\$ac_option" in
2467 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2468 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2469 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2470 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002471 echo "$CONFIG_STATUS generated by autoconf version 2.12"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002472 exit 0 ;;
2473 -help | --help | --hel | --he | --h)
2474 echo "\$ac_cs_usage"; exit 0 ;;
2475 *) echo "\$ac_cs_usage"; exit 1 ;;
2476 esac
2477done
2478
2479ac_given_srcdir=$srcdir
2480ac_given_INSTALL="$INSTALL"
2481
Theodore Ts'oa4d09611997-04-29 14:28:00 +00002482trap 'rm -fr `echo "MCONFIG lib/substitute_sh Makefile lib/et/Makefile
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002483 lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile lib/uuid/Makefile
2484 misc/Makefile e2fsck/Makefile debugfs/Makefile tests/Makefile
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002485 tests/progs/Makefile doc/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2486EOF
2487cat >> $CONFIG_STATUS <<EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002488
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002489# Protect against being on the right side of a sed subst in config.status.
2490sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2491 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002492$ac_vpsub
2493$extrasub
2494s%@CFLAGS@%$CFLAGS%g
2495s%@CPPFLAGS@%$CPPFLAGS%g
2496s%@CXXFLAGS@%$CXXFLAGS%g
2497s%@DEFS@%$DEFS%g
2498s%@LDFLAGS@%$LDFLAGS%g
2499s%@LIBS@%$LIBS%g
2500s%@exec_prefix@%$exec_prefix%g
2501s%@prefix@%$prefix%g
2502s%@program_transform_name@%$program_transform_name%g
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002503s%@bindir@%$bindir%g
2504s%@sbindir@%$sbindir%g
2505s%@libexecdir@%$libexecdir%g
2506s%@datadir@%$datadir%g
2507s%@sysconfdir@%$sysconfdir%g
2508s%@sharedstatedir@%$sharedstatedir%g
2509s%@localstatedir@%$localstatedir%g
2510s%@libdir@%$libdir%g
2511s%@includedir@%$includedir%g
2512s%@oldincludedir@%$oldincludedir%g
2513s%@infodir@%$infodir%g
2514s%@mandir@%$mandir%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002515/@MCONFIG@/r $MCONFIG
2516s%@MCONFIG@%%g
Theodore Ts'o74becf31997-04-26 14:37:06 +00002517s%@E2FSPROGS_YEAR@%$E2FSPROGS_YEAR%g
2518s%@E2FSPROGS_MONTH@%$E2FSPROGS_MONTH%g
2519s%@E2FSPROGS_VERSION@%$E2FSPROGS_VERSION%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002520s%@host@%$host%g
2521s%@host_alias@%$host_alias%g
2522s%@host_cpu@%$host_cpu%g
2523s%@host_vendor@%$host_vendor%g
2524s%@host_os@%$host_os%g
Theodore Ts'o74becf31997-04-26 14:37:06 +00002525s%@CC@%$CC%g
2526s%@LD@%$LD%g
2527s%@CCOPTS@%$CCOPTS%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002528s%@DLL_CMT@%$DLL_CMT%g
2529/@MAKEFILE_DLL@/r $MAKEFILE_DLL
2530s%@MAKEFILE_DLL@%%g
2531s%@ELF_CMT@%$ELF_CMT%g
2532/@MAKEFILE_ELF@/r $MAKEFILE_ELF
2533s%@MAKEFILE_ELF@%%g
2534s%@BSDLIB_CMT@%$BSDLIB_CMT%g
2535/@MAKEFILE_BSDLIB@/r $MAKEFILE_BSDLIB
2536s%@MAKEFILE_BSDLIB@%%g
2537s%@PROFILE_CMT@%$PROFILE_CMT%g
2538/@MAKEFILE_PROFILE@/r $MAKEFILE_PROFILE
2539s%@MAKEFILE_PROFILE@%%g
2540s%@CHECKER_CMT@%$CHECKER_CMT%g
2541/@MAKEFILE_CHECKER@/r $MAKEFILE_CHECKER
2542s%@MAKEFILE_CHECKER@%%g
Theodore Ts'oa4d09611997-04-29 14:28:00 +00002543s%@LIB_EXT@%$LIB_EXT%g
2544s%@STATIC_LIB_EXT@%$STATIC_LIB_EXT%g
2545s%@PROFILED_LIB_EXT@%$PROFILED_LIB_EXT%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002546s%@W@%$W%g
Theodore Ts'oa4d09611997-04-29 14:28:00 +00002547s%@E2FSCK_TYPE@%$E2FSCK_TYPE%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002548s%@FSCK_PROG@%$FSCK_PROG%g
2549s%@FSCK_MAN@%$FSCK_MAN%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002550/@MAKEFILE_LIBRARY@/r $MAKEFILE_LIBRARY
2551s%@MAKEFILE_LIBRARY@%%g
Theodore Ts'o74becf31997-04-26 14:37:06 +00002552s%@BINARY_TYPE@%$BINARY_TYPE%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002553s%@SET_MAKE@%$SET_MAKE%g
2554s%@LN@%$LN%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002555s%@LN_S@%$LN_S%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002556s%@MV@%$MV%g
2557s%@CP@%$CP%g
2558s%@RM@%$RM%g
2559s%@CHMOD@%$CHMOD%g
2560s%@AWK@%$AWK%g
2561s%@SED@%$SED%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002562s%@build@%$build%g
2563s%@build_alias@%$build_alias%g
2564s%@build_cpu@%$build_cpu%g
2565s%@build_vendor@%$build_vendor%g
2566s%@build_os@%$build_os%g
2567s%@AR@%$AR%g
2568s%@RANLIB@%$RANLIB%g
2569s%@STRIP@%$STRIP%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002570s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2571s%@INSTALL_DATA@%$INSTALL_DATA%g
2572s%@CPP@%$CPP%g
2573s%@SIZEOF_SHORT@%$SIZEOF_SHORT%g
2574s%@SIZEOF_INT@%$SIZEOF_INT%g
2575s%@SIZEOF_LONG@%$SIZEOF_LONG%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002576s%@SIZEOF_LONG_LONG@%$SIZEOF_LONG_LONG%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002577s%@EXTRA_PROGS@%$EXTRA_PROGS%g
2578s%@LINUX_INCLUDE@%$LINUX_INCLUDE%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002579s%@SOCKET_LIB@%$SOCKET_LIB%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002580s%@usr_prefix@%$usr_prefix%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002581s%@LDFLAG_STATIC@%$LDFLAG_STATIC%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002582s%@SS_DIR@%$SS_DIR%g
2583s%@ET_DIR@%$ET_DIR%g
2584s%@DO_TEST_SUITE@%$DO_TEST_SUITE%g
Theodore Ts'oa4d09611997-04-29 14:28:00 +00002585/@DO_SUBSTITUTE_SCRIPT@/r $DO_SUBSTITUTE_SCRIPT
2586s%@DO_SUBSTITUTE_SCRIPT@%%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002587
2588CEOF
2589EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002590
2591cat >> $CONFIG_STATUS <<\EOF
2592
2593# Split the substitutions into bite-sized pieces for seds with
2594# small command number limits, like on Digital OSF/1 and HP-UX.
2595ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2596ac_file=1 # Number of current file.
2597ac_beg=1 # First line for current file.
2598ac_end=$ac_max_sed_cmds # Line after last line for current file.
2599ac_more_lines=:
2600ac_sed_cmds=""
2601while $ac_more_lines; do
2602 if test $ac_beg -gt 1; then
2603 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2604 else
2605 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2606 fi
2607 if test ! -s conftest.s$ac_file; then
2608 ac_more_lines=false
2609 rm -f conftest.s$ac_file
2610 else
2611 if test -z "$ac_sed_cmds"; then
2612 ac_sed_cmds="sed -f conftest.s$ac_file"
2613 else
2614 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2615 fi
2616 ac_file=`expr $ac_file + 1`
2617 ac_beg=$ac_end
2618 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2619 fi
2620done
2621if test -z "$ac_sed_cmds"; then
2622 ac_sed_cmds=cat
2623fi
2624EOF
2625
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002626cat >> $CONFIG_STATUS <<EOF
2627
Theodore Ts'oa4d09611997-04-29 14:28:00 +00002628CONFIG_FILES=\${CONFIG_FILES-"MCONFIG lib/substitute_sh Makefile lib/et/Makefile
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002629 lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile lib/uuid/Makefile
2630 misc/Makefile e2fsck/Makefile debugfs/Makefile tests/Makefile
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002631 tests/progs/Makefile doc/Makefile"}
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002632EOF
2633cat >> $CONFIG_STATUS <<\EOF
2634for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002635 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002636 case "$ac_file" in
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002637 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002638 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2639 *) ac_file_in="${ac_file}.in" ;;
2640 esac
2641
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002642 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002643
2644 # Remove last slash and all that follows it. Not all systems have dirname.
2645 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2646 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2647 # The file is in a subdirectory.
2648 test ! -d "$ac_dir" && mkdir "$ac_dir"
2649 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2650 # A "../" for each directory in $ac_dir_suffix.
2651 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2652 else
2653 ac_dir_suffix= ac_dots=
2654 fi
2655
2656 case "$ac_given_srcdir" in
2657 .) srcdir=.
2658 if test -z "$ac_dots"; then top_srcdir=.
2659 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2660 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2661 *) # Relative path.
2662 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2663 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2664 esac
2665
2666 case "$ac_given_INSTALL" in
2667 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2668 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2669 esac
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002670
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002671 echo creating "$ac_file"
2672 rm -f "$ac_file"
2673 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2674 case "$ac_file" in
2675 *Makefile*) ac_comsub="1i\\
2676# $configure_input" ;;
2677 *) ac_comsub= ;;
2678 esac
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002679
2680 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 +00002681 sed -e "$ac_comsub
2682s%@configure_input@%$configure_input%g
2683s%@srcdir@%$srcdir%g
2684s%@top_srcdir@%$top_srcdir%g
2685s%@INSTALL@%$INSTALL%g
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002686" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002687fi; done
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002688rm -f conftest.s*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002689
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002690EOF
2691cat >> $CONFIG_STATUS <<EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002692
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002693EOF
2694cat >> $CONFIG_STATUS <<\EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002695
2696exit 0
2697EOF
2698chmod +x $CONFIG_STATUS
2699rm -fr confdefs* $ac_clean_files
2700test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2701