blob: 70a978651fa744fe729ec4f5347d32f6007834f7 [file] [log] [blame]
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004# Generated automatically using autoconf version 2.13
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006#
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Defaults:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
14ac_help="$ac_help
Theodore Ts'o74becf31997-04-26 14:37:06 +000015 --with-cc=COMPILER select compiler to use"
16ac_help="$ac_help
17 --with-linker=LINKER select linker to use"
18ac_help="$ac_help
19 --with-ccopts=CCOPTS select compiler command line options"
20ac_help="$ac_help
21 --with-ldopts=LDOPTS select linker command line options"
22ac_help="$ac_help
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000023 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000024ac_help="$ac_help
Theodore Ts'o19178752000-02-11 15:55:07 +000025 --enable-compression enable EXPERIMENTAL compression support"
26ac_help="$ac_help
Theodore Ts'oa4d09611997-04-29 14:28:00 +000027 --enable-dll-shlibs select DLL libraries"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000028ac_help="$ac_help
Theodore Ts'oa4d09611997-04-29 14:28:00 +000029 --enable-elf-shlibs select ELF shared libraries"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000030ac_help="$ac_help
Theodore Ts'oa4d09611997-04-29 14:28:00 +000031 --enable-bsd-shlibs select BSD shared libraries"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000032ac_help="$ac_help
Theodore Ts'o80bfaa32000-08-18 15:08:37 +000033 --enable-jfs-debug enable journal debugging"
34ac_help="$ac_help
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000035 --enable-nls Turn on Native Language Support"
36ac_help="$ac_help
37 --with-included-gettext use the GNU gettext library included here"
38ac_help="$ac_help
39 --with-catgets use catgets functions if available"
40ac_help="$ac_help
Theodore Ts'oa4d09611997-04-29 14:28:00 +000041 --enable-profile build profiling libraries"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000042ac_help="$ac_help
Theodore Ts'oa4d09611997-04-29 14:28:00 +000043 --enable-checker build checker libraries"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000044ac_help="$ac_help
Theodore Ts'oa4d09611997-04-29 14:28:00 +000045 --enable-dynamic-e2fsck build e2fsck dynamically"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000046ac_help="$ac_help
47 --enable-fsck build fsck wrapper program"
48ac_help="$ac_help
49 --enable-old-bitops Use old (non-standard but native) bitmask operations"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000050
51# Initialize some variables set by options.
52# The variables have the same names as the options, with
53# dashes changed to underlines.
54build=NONE
55cache_file=./config.cache
56exec_prefix=NONE
57host=NONE
58no_create=
59nonopt=NONE
60no_recursion=
61prefix=NONE
62program_prefix=NONE
63program_suffix=NONE
64program_transform_name=s,x,x,
65silent=
66site=
67srcdir=
68target=NONE
69verbose=
70x_includes=NONE
71x_libraries=NONE
Theodore Ts'o21c84b71997-04-29 16:15:03 +000072bindir='${exec_prefix}/bin'
73sbindir='${exec_prefix}/sbin'
74libexecdir='${exec_prefix}/libexec'
75datadir='${prefix}/share'
76sysconfdir='${prefix}/etc'
77sharedstatedir='${prefix}/com'
78localstatedir='${prefix}/var'
79libdir='${exec_prefix}/lib'
80includedir='${prefix}/include'
81oldincludedir='/usr/include'
82infodir='${prefix}/info'
83mandir='${prefix}/man'
Theodore Ts'o50e1e101997-04-26 13:58:21 +000084
85# Initialize some other variables.
86subdirs=
Theodore Ts'o21c84b71997-04-29 16:15:03 +000087MFLAGS= MAKEFLAGS=
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +000088SHELL=${CONFIG_SHELL-/bin/sh}
Theodore Ts'o21c84b71997-04-29 16:15:03 +000089# Maximum number of lines to put in a shell here document.
90ac_max_here_lines=12
Theodore Ts'o50e1e101997-04-26 13:58:21 +000091
92ac_prev=
93for ac_option
94do
95
96 # If the previous option needs an argument, assign it.
97 if test -n "$ac_prev"; then
98 eval "$ac_prev=\$ac_option"
99 ac_prev=
100 continue
101 fi
102
103 case "$ac_option" in
104 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
105 *) ac_optarg= ;;
106 esac
107
108 # Accept the important Cygnus configure options, so we can diagnose typos.
109
110 case "$ac_option" in
111
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000112 -bindir | --bindir | --bindi | --bind | --bin | --bi)
113 ac_prev=bindir ;;
114 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
115 bindir="$ac_optarg" ;;
116
117 -build | --build | --buil | --bui | --bu)
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000118 ac_prev=build ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000119 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000120 build="$ac_optarg" ;;
121
122 -cache-file | --cache-file | --cache-fil | --cache-fi \
123 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
124 ac_prev=cache_file ;;
125 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
126 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
127 cache_file="$ac_optarg" ;;
128
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000129 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
130 ac_prev=datadir ;;
131 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
132 | --da=*)
133 datadir="$ac_optarg" ;;
134
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000135 -disable-* | --disable-*)
136 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
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 eval "enable_${ac_feature}=no" ;;
143
144 -enable-* | --enable-*)
145 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
146 # Reject names that are not valid shell variable names.
147 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
148 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
149 fi
150 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
151 case "$ac_option" in
152 *=*) ;;
153 *) ac_optarg=yes ;;
154 esac
155 eval "enable_${ac_feature}='$ac_optarg'" ;;
156
157 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
158 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
159 | --exec | --exe | --ex)
160 ac_prev=exec_prefix ;;
161 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
162 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
163 | --exec=* | --exe=* | --ex=*)
164 exec_prefix="$ac_optarg" ;;
165
166 -gas | --gas | --ga | --g)
167 # Obsolete; use --with-gas.
168 with_gas=yes ;;
169
170 -help | --help | --hel | --he)
171 # Omit some internal or obsolete options to make the list less imposing.
172 # This message is too long to be a string in the A/UX 3.1 sh.
173 cat << EOF
174Usage: configure [options] [host]
175Options: [defaults in brackets after descriptions]
176Configuration:
177 --cache-file=FILE cache test results in FILE
178 --help print this message
179 --no-create do not create output files
180 --quiet, --silent do not print \`checking...' messages
181 --version print the version of autoconf that created configure
182Directory and file names:
183 --prefix=PREFIX install architecture-independent files in PREFIX
184 [$ac_default_prefix]
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000185 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000186 [same as prefix]
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000187 --bindir=DIR user executables in DIR [EPREFIX/bin]
188 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
189 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
190 --datadir=DIR read-only architecture-independent data in DIR
191 [PREFIX/share]
192 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
193 --sharedstatedir=DIR modifiable architecture-independent data in DIR
194 [PREFIX/com]
195 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
196 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
197 --includedir=DIR C header files in DIR [PREFIX/include]
198 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
199 --infodir=DIR info documentation in DIR [PREFIX/info]
200 --mandir=DIR man documentation in DIR [PREFIX/man]
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000201 --srcdir=DIR find the sources in DIR [configure dir or ..]
202 --program-prefix=PREFIX prepend PREFIX to installed program names
203 --program-suffix=SUFFIX append SUFFIX to installed program names
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000204 --program-transform-name=PROGRAM
205 run sed PROGRAM on installed program names
206EOF
207 cat << EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000208Host type:
209 --build=BUILD configure for building on BUILD [BUILD=HOST]
210 --host=HOST configure for HOST [guessed]
211 --target=TARGET configure for TARGET [TARGET=HOST]
212Features and packages:
213 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
214 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
215 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
216 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
217 --x-includes=DIR X include files are in DIR
218 --x-libraries=DIR X library files are in DIR
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000219EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000220 if test -n "$ac_help"; then
221 echo "--enable and --with options recognized:$ac_help"
222 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000223 exit 0 ;;
224
225 -host | --host | --hos | --ho)
226 ac_prev=host ;;
227 -host=* | --host=* | --hos=* | --ho=*)
228 host="$ac_optarg" ;;
229
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000230 -includedir | --includedir | --includedi | --included | --include \
231 | --includ | --inclu | --incl | --inc)
232 ac_prev=includedir ;;
233 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
234 | --includ=* | --inclu=* | --incl=* | --inc=*)
235 includedir="$ac_optarg" ;;
236
237 -infodir | --infodir | --infodi | --infod | --info | --inf)
238 ac_prev=infodir ;;
239 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
240 infodir="$ac_optarg" ;;
241
242 -libdir | --libdir | --libdi | --libd)
243 ac_prev=libdir ;;
244 -libdir=* | --libdir=* | --libdi=* | --libd=*)
245 libdir="$ac_optarg" ;;
246
247 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
248 | --libexe | --libex | --libe)
249 ac_prev=libexecdir ;;
250 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
251 | --libexe=* | --libex=* | --libe=*)
252 libexecdir="$ac_optarg" ;;
253
254 -localstatedir | --localstatedir | --localstatedi | --localstated \
255 | --localstate | --localstat | --localsta | --localst \
256 | --locals | --local | --loca | --loc | --lo)
257 ac_prev=localstatedir ;;
258 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
259 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
260 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
261 localstatedir="$ac_optarg" ;;
262
263 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
264 ac_prev=mandir ;;
265 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
266 mandir="$ac_optarg" ;;
267
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000268 -nfp | --nfp | --nf)
269 # Obsolete; use --without-fp.
270 with_fp=no ;;
271
272 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
273 | --no-cr | --no-c)
274 no_create=yes ;;
275
276 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
277 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
278 no_recursion=yes ;;
279
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000280 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
281 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
282 | --oldin | --oldi | --old | --ol | --o)
283 ac_prev=oldincludedir ;;
284 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
285 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
286 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
287 oldincludedir="$ac_optarg" ;;
288
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000289 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
290 ac_prev=prefix ;;
291 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
292 prefix="$ac_optarg" ;;
293
294 -program-prefix | --program-prefix | --program-prefi | --program-pref \
295 | --program-pre | --program-pr | --program-p)
296 ac_prev=program_prefix ;;
297 -program-prefix=* | --program-prefix=* | --program-prefi=* \
298 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
299 program_prefix="$ac_optarg" ;;
300
301 -program-suffix | --program-suffix | --program-suffi | --program-suff \
302 | --program-suf | --program-su | --program-s)
303 ac_prev=program_suffix ;;
304 -program-suffix=* | --program-suffix=* | --program-suffi=* \
305 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
306 program_suffix="$ac_optarg" ;;
307
308 -program-transform-name | --program-transform-name \
309 | --program-transform-nam | --program-transform-na \
310 | --program-transform-n | --program-transform- \
311 | --program-transform | --program-transfor \
312 | --program-transfo | --program-transf \
313 | --program-trans | --program-tran \
314 | --progr-tra | --program-tr | --program-t)
315 ac_prev=program_transform_name ;;
316 -program-transform-name=* | --program-transform-name=* \
317 | --program-transform-nam=* | --program-transform-na=* \
318 | --program-transform-n=* | --program-transform-=* \
319 | --program-transform=* | --program-transfor=* \
320 | --program-transfo=* | --program-transf=* \
321 | --program-trans=* | --program-tran=* \
322 | --progr-tra=* | --program-tr=* | --program-t=*)
323 program_transform_name="$ac_optarg" ;;
324
325 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
326 | -silent | --silent | --silen | --sile | --sil)
327 silent=yes ;;
328
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000329 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
330 ac_prev=sbindir ;;
331 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
332 | --sbi=* | --sb=*)
333 sbindir="$ac_optarg" ;;
334
335 -sharedstatedir | --sharedstatedir | --sharedstatedi \
336 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
337 | --sharedst | --shareds | --shared | --share | --shar \
338 | --sha | --sh)
339 ac_prev=sharedstatedir ;;
340 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
341 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
342 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
343 | --sha=* | --sh=*)
344 sharedstatedir="$ac_optarg" ;;
345
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000346 -site | --site | --sit)
347 ac_prev=site ;;
348 -site=* | --site=* | --sit=*)
349 site="$ac_optarg" ;;
350
351 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
352 ac_prev=srcdir ;;
353 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
354 srcdir="$ac_optarg" ;;
355
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000356 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
357 | --syscon | --sysco | --sysc | --sys | --sy)
358 ac_prev=sysconfdir ;;
359 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
360 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
361 sysconfdir="$ac_optarg" ;;
362
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000363 -target | --target | --targe | --targ | --tar | --ta | --t)
364 ac_prev=target ;;
365 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
366 target="$ac_optarg" ;;
367
368 -v | -verbose | --verbose | --verbos | --verbo | --verb)
369 verbose=yes ;;
370
371 -version | --version | --versio | --versi | --vers)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000372 echo "configure generated by autoconf version 2.13"
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000373 exit 0 ;;
374
375 -with-* | --with-*)
376 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
377 # Reject names that are not valid shell variable names.
378 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
379 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
380 fi
381 ac_package=`echo $ac_package| sed 's/-/_/g'`
382 case "$ac_option" in
383 *=*) ;;
384 *) ac_optarg=yes ;;
385 esac
386 eval "with_${ac_package}='$ac_optarg'" ;;
387
388 -without-* | --without-*)
389 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
390 # Reject names that are not valid shell variable names.
391 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
392 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
393 fi
394 ac_package=`echo $ac_package| sed 's/-/_/g'`
395 eval "with_${ac_package}=no" ;;
396
397 --x)
398 # Obsolete; use --with-x.
399 with_x=yes ;;
400
401 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
402 | --x-incl | --x-inc | --x-in | --x-i)
403 ac_prev=x_includes ;;
404 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
405 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
406 x_includes="$ac_optarg" ;;
407
408 -x-libraries | --x-libraries | --x-librarie | --x-librari \
409 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
410 ac_prev=x_libraries ;;
411 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
412 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
413 x_libraries="$ac_optarg" ;;
414
415 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
416 ;;
417
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000418 *)
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000419 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
420 echo "configure: warning: $ac_option: invalid host type" 1>&2
421 fi
422 if test "x$nonopt" != xNONE; then
423 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
424 fi
425 nonopt="$ac_option"
426 ;;
427
428 esac
429done
430
431if test -n "$ac_prev"; then
432 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
433fi
434
435trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
436
437# File descriptor usage:
438# 0 standard input
439# 1 file creation
440# 2 errors and warnings
441# 3 some systems may open it to /dev/tty
442# 4 used on the Kubota Titan
443# 6 checking for... messages and results
444# 5 compiler messages saved in config.log
445if test "$silent" = yes; then
446 exec 6>/dev/null
447else
448 exec 6>&1
449fi
450exec 5>./config.log
451
452echo "\
453This file contains any messages produced by compilers while
454running configure, to aid debugging if configure makes a mistake.
455" 1>&5
456
457# Strip out --no-create and --no-recursion so they do not pile up.
458# Also quote any args containing shell metacharacters.
459ac_configure_args=
460for ac_arg
461do
462 case "$ac_arg" in
463 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
464 | --no-cr | --no-c) ;;
465 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
466 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
467 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
468 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
469 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
470 esac
471done
472
473# NLS nuisances.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000474# Only set these to C if already set. These must not be set unconditionally
475# because not all systems understand e.g. LANG=C (notably SCO).
476# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
477# Non-C LC_CTYPE values break the ctype check.
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000478if test "${LANG+set}" = set; then LANG=C; export LANG; fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000479if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
480if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
481if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000482
483# confdefs.h avoids OS command line length limits that DEFS can exceed.
484rm -rf conftest* confdefs.h
485# AIX cpp loses on an empty file, so make sure it contains at least a newline.
486echo > confdefs.h
487
488# A filename unique to this package, relative to the directory that
489# configure is in, which we can look for to find out if srcdir is correct.
490ac_unique_file=version.h
491
492# Find the source files, if location was not specified.
493if test -z "$srcdir"; then
494 ac_srcdir_defaulted=yes
495 # Try the directory containing this script, then its parent.
496 ac_prog=$0
497 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
498 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
499 srcdir=$ac_confdir
500 if test ! -r $srcdir/$ac_unique_file; then
501 srcdir=..
502 fi
503else
504 ac_srcdir_defaulted=no
505fi
506if test ! -r $srcdir/$ac_unique_file; then
507 if test "$ac_srcdir_defaulted" = yes; then
508 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
509 else
510 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
511 fi
512fi
513srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
514
515# Prefer explicitly selected file to automatically selected ones.
516if test -z "$CONFIG_SITE"; then
517 if test "x$prefix" != xNONE; then
518 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
519 else
520 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
521 fi
522fi
523for ac_site_file in $CONFIG_SITE; do
524 if test -r "$ac_site_file"; then
525 echo "loading site script $ac_site_file"
526 . "$ac_site_file"
527 fi
528done
529
530if test -r "$cache_file"; then
531 echo "loading cache $cache_file"
532 . $cache_file
533else
534 echo "creating cache $cache_file"
535 > $cache_file
536fi
537
538ac_ext=c
539# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
540ac_cpp='$CPP $CPPFLAGS'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000541ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000542ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000543cross_compiling=$ac_cv_prog_cc_cross
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000544
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000545ac_exeext=
546ac_objext=o
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000547if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
548 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
549 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
550 ac_n= ac_c='
551' ac_t=' '
552 else
553 ac_n=-n ac_c= ac_t=
554 fi
555else
556 ac_n= ac_c='\c' ac_t=
557fi
558
559
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +0000560
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000561MCONFIG=./MCONFIG
562
Theodore Ts'o74becf31997-04-26 14:37:06 +0000563BINARY_TYPE=bin
564E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
565 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
566DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
567 | tr \" " "`
568MONTH=`echo $DATE | awk -F- '{print $2}'`
569YEAR=`echo $DATE | awk -F- '{print $3}'`
570
Theodore Ts'o14790ed1999-01-12 23:32:52 +0000571if expr $YEAR ">" 1900 > /dev/null ; then
572 E2FSPROGS_YEAR=$YEAR
573elif expr $YEAR ">" 90 >/dev/null ; then
Theodore Ts'o74becf31997-04-26 14:37:06 +0000574 E2FSPROGS_YEAR=19$YEAR
575else
576 E2FSPROGS_YEAR=20$YEAR
577fi
578
579case $MONTH in
580Jan) E2FSPROGS_MONTH="January" ;;
581Feb) E2FSPROGS_MONTH="February" ;;
582Mar) E2FSPROGS_MONTH="March" ;;
583Apr) E2FSPROGS_MONTH="April" ;;
584May) E2FSPROGS_MONTH="May" ;;
585Jun) E2FSPROGS_MONTH="June" ;;
586Jul) E2FSPROGS_MONTH="July" ;;
587Aug) E2FSPROGS_MONTH="August" ;;
588Sep) E2FSPROGS_MONTH="September" ;;
589Oct) E2FSPROGS_MONTH="October" ;;
590Nov) E2FSPROGS_MONTH="November" ;;
591Dec) E2FSPROGS_MONTH="December" ;;
592*) echo "Unknown month $MONTH??" ;;
593esac
594
595unset DATE MONTH YEAR
596echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION"
597echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}"
598
599
600
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000601
602ac_aux_dir=
603for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
604 if test -f $ac_dir/install-sh; then
605 ac_aux_dir=$ac_dir
606 ac_install_sh="$ac_aux_dir/install-sh -c"
607 break
608 elif test -f $ac_dir/install.sh; then
609 ac_aux_dir=$ac_dir
610 ac_install_sh="$ac_aux_dir/install.sh -c"
611 break
612 fi
613done
614if test -z "$ac_aux_dir"; then
615 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
616fi
617ac_config_guess=$ac_aux_dir/config.guess
618ac_config_sub=$ac_aux_dir/config.sub
619ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
620
621
622# Make sure we can run config.sub.
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000623if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000624else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
625fi
626
627echo $ac_n "checking host system type""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +0000628echo "configure:629: checking host system type" >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000629
630host_alias=$host
631case "$host_alias" in
632NONE)
633 case $nonopt in
634 NONE)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000635 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000636 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
637 fi ;;
638 *) host_alias=$nonopt ;;
639 esac ;;
640esac
641
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000642host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000643host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
644host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
645host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000646echo "$ac_t""$host" 1>&6
647
Theodore Ts'o74becf31997-04-26 14:37:06 +0000648# Check whether --with-cc or --without-cc was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000649if test "${with_cc+set}" = set; then
650 withval="$with_cc"
Theodore Ts'o74becf31997-04-26 14:37:06 +0000651 echo "$ac_t""CC=$withval" 1>&6
652CC=$withval
653else
654 if test -z "$CC" ; then CC=cc; fi
655echo "$ac_t""CC defaults to $CC" 1>&6
656fi
657export CC
658
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000659# Extract the first word of "gcc", so it can be a program name with args.
660set dummy gcc; ac_word=$2
661echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +0000662echo "configure:663: checking for $ac_word" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000663if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
664 echo $ac_n "(cached) $ac_c" 1>&6
665else
666 if test -n "$CC"; then
667 ac_cv_prog_CC="$CC" # Let the user override the test.
668else
669 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
670 ac_dummy="$PATH"
671 for ac_dir in $ac_dummy; do
672 test -z "$ac_dir" && ac_dir=.
673 if test -f $ac_dir/$ac_word; then
674 ac_cv_prog_CC="gcc"
675 break
676 fi
677 done
678 IFS="$ac_save_ifs"
679fi
680fi
681CC="$ac_cv_prog_CC"
682if test -n "$CC"; then
683 echo "$ac_t""$CC" 1>&6
684else
685 echo "$ac_t""no" 1>&6
686fi
687
688if test -z "$CC"; then
689 # Extract the first word of "cc", so it can be a program name with args.
690set dummy cc; ac_word=$2
691echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +0000692echo "configure:693: checking for $ac_word" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000693if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
694 echo $ac_n "(cached) $ac_c" 1>&6
695else
696 if test -n "$CC"; then
697 ac_cv_prog_CC="$CC" # Let the user override the test.
698else
699 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
700 ac_prog_rejected=no
701 ac_dummy="$PATH"
702 for ac_dir in $ac_dummy; do
703 test -z "$ac_dir" && ac_dir=.
704 if test -f $ac_dir/$ac_word; then
705 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
706 ac_prog_rejected=yes
707 continue
708 fi
709 ac_cv_prog_CC="cc"
710 break
711 fi
712 done
713 IFS="$ac_save_ifs"
714if test $ac_prog_rejected = yes; then
715 # We found a bogon in the path, so make sure we never use it.
716 set dummy $ac_cv_prog_CC
717 shift
718 if test $# -gt 0; then
719 # We chose a different compiler from the bogus one.
720 # However, it has the same basename, so the bogon will be chosen
721 # first if we set CC to just the basename; use the full file name.
722 shift
723 set dummy "$ac_dir/$ac_word" "$@"
724 shift
725 ac_cv_prog_CC="$@"
726 fi
727fi
728fi
729fi
730CC="$ac_cv_prog_CC"
731if test -n "$CC"; then
732 echo "$ac_t""$CC" 1>&6
733else
734 echo "$ac_t""no" 1>&6
735fi
736
737 if test -z "$CC"; then
738 case "`uname -s`" in
739 *win32* | *WIN32*)
740 # Extract the first word of "cl", so it can be a program name with args.
741set dummy cl; ac_word=$2
742echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +0000743echo "configure:744: checking for $ac_word" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000744if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
745 echo $ac_n "(cached) $ac_c" 1>&6
746else
747 if test -n "$CC"; then
748 ac_cv_prog_CC="$CC" # Let the user override the test.
749else
750 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
751 ac_dummy="$PATH"
752 for ac_dir in $ac_dummy; do
753 test -z "$ac_dir" && ac_dir=.
754 if test -f $ac_dir/$ac_word; then
755 ac_cv_prog_CC="cl"
756 break
757 fi
758 done
759 IFS="$ac_save_ifs"
760fi
761fi
762CC="$ac_cv_prog_CC"
763if test -n "$CC"; then
764 echo "$ac_t""$CC" 1>&6
765else
766 echo "$ac_t""no" 1>&6
767fi
768 ;;
769 esac
770 fi
771 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
772fi
773
774echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +0000775echo "configure:776: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000776
777ac_ext=c
778# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
779ac_cpp='$CPP $CPPFLAGS'
780ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
781ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
782cross_compiling=$ac_cv_prog_cc_cross
783
784cat > conftest.$ac_ext << EOF
785
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +0000786#line 787 "configure"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000787#include "confdefs.h"
788
789main(){return(0);}
790EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +0000791if { (eval echo configure:792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000792 ac_cv_prog_cc_works=yes
793 # If we can't run a trivial program, we are probably using a cross compiler.
794 if (./conftest; exit) 2>/dev/null; then
795 ac_cv_prog_cc_cross=no
796 else
797 ac_cv_prog_cc_cross=yes
798 fi
799else
800 echo "configure: failed program was:" >&5
801 cat conftest.$ac_ext >&5
802 ac_cv_prog_cc_works=no
803fi
804rm -fr conftest*
805ac_ext=c
806# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
807ac_cpp='$CPP $CPPFLAGS'
808ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
809ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
810cross_compiling=$ac_cv_prog_cc_cross
811
812echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
813if test $ac_cv_prog_cc_works = no; then
814 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
815fi
816echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +0000817echo "configure:818: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000818echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
819cross_compiling=$ac_cv_prog_cc_cross
820
821echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +0000822echo "configure:823: checking whether we are using GNU C" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000823if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
824 echo $ac_n "(cached) $ac_c" 1>&6
825else
826 cat > conftest.c <<EOF
827#ifdef __GNUC__
828 yes;
829#endif
830EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +0000831if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:832: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000832 ac_cv_prog_gcc=yes
833else
834 ac_cv_prog_gcc=no
835fi
836fi
837
838echo "$ac_t""$ac_cv_prog_gcc" 1>&6
839
840if test $ac_cv_prog_gcc = yes; then
841 GCC=yes
842else
843 GCC=
844fi
845
846ac_test_CFLAGS="${CFLAGS+set}"
847ac_save_CFLAGS="$CFLAGS"
848CFLAGS=
849echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +0000850echo "configure:851: checking whether ${CC-cc} accepts -g" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000851if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
852 echo $ac_n "(cached) $ac_c" 1>&6
853else
854 echo 'void f(){}' > conftest.c
855if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
856 ac_cv_prog_cc_g=yes
857else
858 ac_cv_prog_cc_g=no
859fi
860rm -f conftest*
861
862fi
863
864echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
865if test "$ac_test_CFLAGS" = set; then
866 CFLAGS="$ac_save_CFLAGS"
867elif test $ac_cv_prog_cc_g = yes; then
868 if test "$GCC" = yes; then
869 CFLAGS="-g -O2"
870 else
871 CFLAGS="-g"
872 fi
873else
874 if test "$GCC" = yes; then
875 CFLAGS="-O2"
876 else
877 CFLAGS=
878 fi
879fi
880
Theodore Ts'o74becf31997-04-26 14:37:06 +0000881# Check whether --with-linker or --without-linker was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000882if test "${with_linker+set}" = set; then
883 withval="$with_linker"
Theodore Ts'o74becf31997-04-26 14:37:06 +0000884 echo "$ac_t""LD=$withval" 1>&6
885LD=$withval
886else
887 if test -z "$LD" ; then LD=$CC; fi
888echo "$ac_t""LD defaults to $LD" 1>&6
889fi
890export LD
891
892# Check whether --with-ccopts or --without-ccopts was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000893if test "${with_ccopts+set}" = set; then
894 withval="$with_ccopts"
Theodore Ts'o74becf31997-04-26 14:37:06 +0000895 echo "$ac_t""CCOPTS is $withval" 1>&6
896CCOPTS=$withval
897CFLAGS="$CFLAGS $withval"
898else
899 CCOPTS=
900fi
901
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000902echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +0000903echo "configure:904: checking how to run the C preprocessor" >&5
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000904# On Suns, sometimes $CPP names a directory.
905if test -n "$CPP" && test -d "$CPP"; then
906 CPP=
907fi
908if test -z "$CPP"; then
909if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
910 echo $ac_n "(cached) $ac_c" 1>&6
911else
912 # This must be in double quotes, not single quotes, because CPP may get
913 # substituted into the Makefile and "${CC-cc}" will confuse make.
914 CPP="${CC-cc} -E"
915 # On the NeXT, cc -E runs the code through the compiler's parser,
916 # not just through cpp.
917 cat > conftest.$ac_ext <<EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +0000918#line 919 "configure"
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000919#include "confdefs.h"
920#include <assert.h>
921Syntax Error
922EOF
923ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +0000924{ (eval echo configure:925: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000925ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
926if test -z "$ac_err"; then
927 :
928else
929 echo "$ac_err" >&5
930 echo "configure: failed program was:" >&5
931 cat conftest.$ac_ext >&5
932 rm -rf conftest*
933 CPP="${CC-cc} -E -traditional-cpp"
934 cat > conftest.$ac_ext <<EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +0000935#line 936 "configure"
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000936#include "confdefs.h"
937#include <assert.h>
938Syntax Error
939EOF
940ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +0000941{ (eval echo configure:942: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000942ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
943if test -z "$ac_err"; then
944 :
945else
946 echo "$ac_err" >&5
947 echo "configure: failed program was:" >&5
948 cat conftest.$ac_ext >&5
949 rm -rf conftest*
950 CPP="${CC-cc} -nologo -E"
951 cat > conftest.$ac_ext <<EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +0000952#line 953 "configure"
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000953#include "confdefs.h"
954#include <assert.h>
955Syntax Error
956EOF
957ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +0000958{ (eval echo configure:959: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000959ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
960if test -z "$ac_err"; then
961 :
962else
963 echo "$ac_err" >&5
964 echo "configure: failed program was:" >&5
965 cat conftest.$ac_ext >&5
966 rm -rf conftest*
967 CPP=/lib/cpp
968fi
969rm -f conftest*
970fi
971rm -f conftest*
972fi
973rm -f conftest*
974 ac_cv_prog_CPP="$CPP"
975fi
976 CPP="$ac_cv_prog_CPP"
977else
978 ac_cv_prog_CPP="$CPP"
979fi
980echo "$ac_t""$CPP" 1>&6
981
982ac_safe=`echo "linux/fs.h" | sed 'y%./+-%__p_%'`
983echo $ac_n "checking for linux/fs.h""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +0000984echo "configure:985: checking for linux/fs.h" >&5
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000985if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
986 echo $ac_n "(cached) $ac_c" 1>&6
987else
988 cat > conftest.$ac_ext <<EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +0000989#line 990 "configure"
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000990#include "confdefs.h"
991#include <linux/fs.h>
992EOF
993ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +0000994{ (eval echo configure:995: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000995ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
996if test -z "$ac_err"; then
997 rm -rf conftest*
998 eval "ac_cv_header_$ac_safe=yes"
999else
1000 echo "$ac_err" >&5
1001 echo "configure: failed program was:" >&5
1002 cat conftest.$ac_ext >&5
1003 rm -rf conftest*
1004 eval "ac_cv_header_$ac_safe=no"
1005fi
1006rm -f conftest*
1007fi
1008if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1009 echo "$ac_t""yes" 1>&6
1010 linux_headers=yes
1011else
1012 echo "$ac_t""no" 1>&6
1013linux_headers=no
1014fi
1015
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001016if test "$linux_headers" != yes; then
1017 LINUX_INCLUDE='-I$(top_builddir)/include'
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001018fi
1019
Theodore Ts'oa4d09611997-04-29 14:28:00 +00001020LIB_EXT=.a
1021STATIC_LIB_EXT=.a
1022PROFILE_LIB_EXT=.a
Theodore Ts'o74becf31997-04-26 14:37:06 +00001023# Check whether --with-ldopts or --without-ldopts was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001024if test "${with_ldopts+set}" = set; then
1025 withval="$with_ldopts"
Theodore Ts'o74becf31997-04-26 14:37:06 +00001026 echo "$ac_t""LDFLAGS is $withval" 1>&6
1027LDFLAGS=$withval
1028else
1029 LDFLAGS=
1030fi
1031
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00001032# Check whether --with-root-prefix or --without-root-prefix was given.
1033if test "${with_root_prefix+set}" = set; then
1034 withval="$with_root_prefix"
1035 root_prefix=$withval
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001036else
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00001037 root_prefix=NONE
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001038fi
Theodore Ts'o19178752000-02-11 15:55:07 +00001039# Check whether --enable-compression or --disable-compression was given.
1040if test "${enable_compression+set}" = set; then
1041 enableval="$enable_compression"
1042 if test "$enableval" = "no"
1043then
1044 echo "Disabling compression support"
1045else
1046 cat >> confdefs.h <<\EOF
1047#define ENABLE_COMPRESSION 1
1048EOF
1049
1050 echo "Enabling compression support"
1051 echo "WARNING: Compression support is experimental"
1052fi
1053
1054else
1055 echo "Disabling compression support by default"
1056
1057fi
1058
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001059# Check whether --enable-dll-shlibs or --disable-dll-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001060if test "${enable_dll_shlibs+set}" = set; then
1061 enableval="$enable_dll_shlibs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001062 if test "$enableval" = "no"
1063then
1064 DLL_CMT=#
1065 MAKEFILE_DLL=/dev/null
1066 echo "Disabling DLL shared libraries"
1067else
1068 DLL_CMT=
1069 MAKEFILE_DLL=$srcdir/lib/Makefile.dll-lib
Theodore Ts'o74becf31997-04-26 14:37:06 +00001070 BINARY_TYPE=dllbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00001071 LIB_EXT=.sa
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001072 echo "Enabling DLL shared libraries"
1073fi
1074
1075else
1076 MAKEFILE_DLL=/dev/null
1077DLL_CMT=#
1078echo "Disabling DLL shared libraries by default"
1079
1080fi
1081
1082
1083
1084# Check whether --enable-elf-shlibs or --disable-elf-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001085if test "${enable_elf_shlibs+set}" = set; then
1086 enableval="$enable_elf_shlibs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001087 if test "$enableval" = "no"
1088then
1089 ELF_CMT=#
1090 MAKEFILE_ELF=/dev/null
1091 echo "Disabling ELF shared libraries"
1092else
1093 ELF_CMT=
1094 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
Theodore Ts'of5955dd2000-10-25 02:38:39 +00001095 case "$host_os" in
1096 solaris2.*)
1097 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
1098 ;;
1099 esac
Theodore Ts'o74becf31997-04-26 14:37:06 +00001100 BINARY_TYPE=elfbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00001101 LIB_EXT=.so
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001102 echo "Enabling ELF shared libraries"
1103fi
1104
1105else
1106 MAKEFILE_ELF=/dev/null
1107ELF_CMT=#
1108echo "Disabling ELF shared libraries by default"
1109
1110fi
1111
1112
1113
1114# Check whether --enable-bsd-shlibs or --disable-bsd-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001115if test "${enable_bsd_shlibs+set}" = set; then
1116 enableval="$enable_bsd_shlibs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001117 if test "$enableval" = "no"
1118then
1119 BSDLIB_CMT=#
1120 MAKEFILE_BSDLIB=/dev/null
1121 echo "Disabling BSD shared libraries"
1122else
1123 BSDLIB_CMT=
1124 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
Theodore Ts'oa4d09611997-04-29 14:28:00 +00001125 LIB_EXT=.so
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001126 echo "Enabling BSD shared libraries"
1127fi
1128
1129else
1130 MAKEFILE_BSDLIB=/dev/null
1131BSDLIB_CMT=#
1132echo "Disabling BSD shared libraries by default"
1133
1134fi
1135
1136
1137
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00001138# Check whether --enable-jfs-debug or --disable-jfs-debug was given.
1139if test "${enable_jfs_debug+set}" = set; then
1140 enableval="$enable_jfs_debug"
1141 if test "$enableval" = "no"
1142then
1143 echo "Disabling journal debugging"
1144else
1145 cat >> confdefs.h <<\EOF
1146#define JFS_DEBUG 1
1147EOF
1148
1149 echo "Enabling journal debugging"
1150fi
1151
1152else
1153 echo "Disabling journal debugging by default"
1154
1155fi
1156
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001157PACKAGE=e2fsprogs
1158VERSION="$E2FSPROGS_VERSION"
1159cat >> confdefs.h <<EOF
1160#define PACKAGE "$PACKAGE"
1161EOF
1162
1163cat >> confdefs.h <<EOF
1164#define VERSION "$VERSION"
1165EOF
1166
1167
1168
1169
Theodore Ts'o19178752000-02-11 15:55:07 +00001170ALL_LINGUAS="it nyc"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001171echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00001172echo "configure:1173: checking whether ${MAKE-make} sets \${MAKE}" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001173set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1174if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1175 echo $ac_n "(cached) $ac_c" 1>&6
1176else
1177 cat > conftestmake <<\EOF
1178all:
1179 @echo 'ac_maketemp="${MAKE}"'
1180EOF
1181# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1182eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1183if test -n "$ac_maketemp"; then
1184 eval ac_cv_prog_make_${ac_make}_set=yes
1185else
1186 eval ac_cv_prog_make_${ac_make}_set=no
1187fi
1188rm -f conftestmake
1189fi
1190if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1191 echo "$ac_t""yes" 1>&6
1192 SET_MAKE=
1193else
1194 echo "$ac_t""no" 1>&6
1195 SET_MAKE="MAKE=${MAKE-make}"
1196fi
1197
1198# Extract the first word of "ranlib", so it can be a program name with args.
1199set dummy ranlib; ac_word=$2
1200echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00001201echo "configure:1202: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001202if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1203 echo $ac_n "(cached) $ac_c" 1>&6
1204else
1205 if test -n "$RANLIB"; then
1206 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1207else
1208 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1209 ac_dummy="$PATH"
1210 for ac_dir in $ac_dummy; do
1211 test -z "$ac_dir" && ac_dir=.
1212 if test -f $ac_dir/$ac_word; then
1213 ac_cv_prog_RANLIB="ranlib"
1214 break
1215 fi
1216 done
1217 IFS="$ac_save_ifs"
1218 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1219fi
1220fi
1221RANLIB="$ac_cv_prog_RANLIB"
1222if test -n "$RANLIB"; then
1223 echo "$ac_t""$RANLIB" 1>&6
1224else
1225 echo "$ac_t""no" 1>&6
1226fi
1227
1228echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00001229echo "configure:1230: checking for POSIXized ISC" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001230if test -d /etc/conf/kconfig.d &&
1231 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1232then
1233 echo "$ac_t""yes" 1>&6
1234 ISC=yes # If later tests want to check for ISC.
1235 cat >> confdefs.h <<\EOF
1236#define _POSIX_SOURCE 1
1237EOF
1238
1239 if test "$GCC" = yes; then
1240 CC="$CC -posix"
1241 else
1242 CC="$CC -Xp"
1243 fi
1244else
1245 echo "$ac_t""no" 1>&6
1246 ISC=
1247fi
1248
1249echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00001250echo "configure:1251: checking for ANSI C header files" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001251if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1252 echo $ac_n "(cached) $ac_c" 1>&6
1253else
1254 cat > conftest.$ac_ext <<EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00001255#line 1256 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001256#include "confdefs.h"
1257#include <stdlib.h>
1258#include <stdarg.h>
1259#include <string.h>
1260#include <float.h>
1261EOF
1262ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00001263{ (eval echo configure:1264: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001264ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1265if test -z "$ac_err"; then
1266 rm -rf conftest*
1267 ac_cv_header_stdc=yes
1268else
1269 echo "$ac_err" >&5
1270 echo "configure: failed program was:" >&5
1271 cat conftest.$ac_ext >&5
1272 rm -rf conftest*
1273 ac_cv_header_stdc=no
1274fi
1275rm -f conftest*
1276
1277if test $ac_cv_header_stdc = yes; then
1278 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1279cat > conftest.$ac_ext <<EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00001280#line 1281 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001281#include "confdefs.h"
1282#include <string.h>
1283EOF
1284if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1285 egrep "memchr" >/dev/null 2>&1; then
1286 :
1287else
1288 rm -rf conftest*
1289 ac_cv_header_stdc=no
1290fi
1291rm -f conftest*
1292
1293fi
1294
1295if test $ac_cv_header_stdc = yes; then
1296 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1297cat > conftest.$ac_ext <<EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00001298#line 1299 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001299#include "confdefs.h"
1300#include <stdlib.h>
1301EOF
1302if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1303 egrep "free" >/dev/null 2>&1; then
1304 :
1305else
1306 rm -rf conftest*
1307 ac_cv_header_stdc=no
1308fi
1309rm -f conftest*
1310
1311fi
1312
1313if test $ac_cv_header_stdc = yes; then
1314 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1315if test "$cross_compiling" = yes; then
1316 :
1317else
1318 cat > conftest.$ac_ext <<EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00001319#line 1320 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001320#include "confdefs.h"
1321#include <ctype.h>
1322#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1323#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1324#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1325int main () { int i; for (i = 0; i < 256; i++)
1326if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1327exit (0); }
1328
1329EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00001330if { (eval echo configure:1331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001331then
1332 :
1333else
1334 echo "configure: failed program was:" >&5
1335 cat conftest.$ac_ext >&5
1336 rm -fr conftest*
1337 ac_cv_header_stdc=no
1338fi
1339rm -fr conftest*
1340fi
1341
1342fi
1343fi
1344
1345echo "$ac_t""$ac_cv_header_stdc" 1>&6
1346if test $ac_cv_header_stdc = yes; then
1347 cat >> confdefs.h <<\EOF
1348#define STDC_HEADERS 1
1349EOF
1350
1351fi
1352
1353echo $ac_n "checking for working const""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00001354echo "configure:1355: checking for working const" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001355if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1356 echo $ac_n "(cached) $ac_c" 1>&6
1357else
1358 cat > conftest.$ac_ext <<EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00001359#line 1360 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001360#include "confdefs.h"
1361
1362int main() {
1363
1364/* Ultrix mips cc rejects this. */
Theodore Ts'o250f79f2001-05-19 22:02:22 +00001365typedef int charset[2]; const charset x;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001366/* SunOS 4.1.1 cc rejects this. */
1367char const *const *ccp;
1368char **p;
1369/* NEC SVR4.0.2 mips cc rejects this. */
1370struct point {int x, y;};
1371static struct point const zero = {0,0};
1372/* AIX XL C 1.02.0.0 rejects this.
1373 It does not let you subtract one const X* pointer from another in an arm
1374 of an if-expression whose if-part is not a constant expression */
1375const char *g = "string";
1376ccp = &g + (g ? g-g : 0);
1377/* HPUX 7.0 cc rejects these. */
1378++ccp;
1379p = (char**) ccp;
1380ccp = (char const *const *) p;
1381{ /* SCO 3.2v4 cc rejects this. */
1382 char *t;
1383 char const *s = 0 ? (char *) 0 : (char const *) 0;
1384
1385 *t++ = 0;
1386}
1387{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1388 int x[] = {25, 17};
1389 const int *foo = &x[0];
1390 ++foo;
1391}
1392{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1393 typedef const int *iptr;
1394 iptr p = 0;
1395 ++p;
1396}
1397{ /* AIX XL C 1.02.0.0 rejects this saying
1398 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1399 struct s { int j; const int *ap[3]; };
1400 struct s *b; b->j = 5;
1401}
1402{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1403 const int foo = 10;
1404}
1405
1406; return 0; }
1407EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00001408if { (eval echo configure:1409: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001409 rm -rf conftest*
1410 ac_cv_c_const=yes
1411else
1412 echo "configure: failed program was:" >&5
1413 cat conftest.$ac_ext >&5
1414 rm -rf conftest*
1415 ac_cv_c_const=no
1416fi
1417rm -f conftest*
1418fi
1419
1420echo "$ac_t""$ac_cv_c_const" 1>&6
1421if test $ac_cv_c_const = no; then
1422 cat >> confdefs.h <<\EOF
1423#define const
1424EOF
1425
1426fi
1427
1428echo $ac_n "checking for inline""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00001429echo "configure:1430: checking for inline" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001430if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1431 echo $ac_n "(cached) $ac_c" 1>&6
1432else
1433 ac_cv_c_inline=no
1434for ac_kw in inline __inline__ __inline; do
1435 cat > conftest.$ac_ext <<EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00001436#line 1437 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001437#include "confdefs.h"
1438
1439int main() {
Theodore Ts'o250f79f2001-05-19 22:02:22 +00001440} $ac_kw foo() {
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001441; return 0; }
1442EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00001443if { (eval echo configure:1444: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001444 rm -rf conftest*
1445 ac_cv_c_inline=$ac_kw; break
1446else
1447 echo "configure: failed program was:" >&5
1448 cat conftest.$ac_ext >&5
1449fi
1450rm -f conftest*
1451done
1452
1453fi
1454
1455echo "$ac_t""$ac_cv_c_inline" 1>&6
1456case "$ac_cv_c_inline" in
1457 inline | yes) ;;
1458 no) cat >> confdefs.h <<\EOF
1459#define inline
1460EOF
1461 ;;
1462 *) cat >> confdefs.h <<EOF
1463#define inline $ac_cv_c_inline
1464EOF
1465 ;;
1466esac
1467
1468echo $ac_n "checking for off_t""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00001469echo "configure:1470: checking for off_t" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001470if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1471 echo $ac_n "(cached) $ac_c" 1>&6
1472else
1473 cat > conftest.$ac_ext <<EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00001474#line 1475 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001475#include "confdefs.h"
1476#include <sys/types.h>
1477#if STDC_HEADERS
1478#include <stdlib.h>
1479#include <stddef.h>
1480#endif
1481EOF
1482if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1483 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1484 rm -rf conftest*
1485 ac_cv_type_off_t=yes
1486else
1487 rm -rf conftest*
1488 ac_cv_type_off_t=no
1489fi
1490rm -f conftest*
1491
1492fi
1493echo "$ac_t""$ac_cv_type_off_t" 1>&6
1494if test $ac_cv_type_off_t = no; then
1495 cat >> confdefs.h <<\EOF
1496#define off_t long
1497EOF
1498
1499fi
1500
1501echo $ac_n "checking for size_t""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00001502echo "configure:1503: checking for size_t" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001503if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1504 echo $ac_n "(cached) $ac_c" 1>&6
1505else
1506 cat > conftest.$ac_ext <<EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00001507#line 1508 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001508#include "confdefs.h"
1509#include <sys/types.h>
1510#if STDC_HEADERS
1511#include <stdlib.h>
1512#include <stddef.h>
1513#endif
1514EOF
1515if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1516 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1517 rm -rf conftest*
1518 ac_cv_type_size_t=yes
1519else
1520 rm -rf conftest*
1521 ac_cv_type_size_t=no
1522fi
1523rm -f conftest*
1524
1525fi
1526echo "$ac_t""$ac_cv_type_size_t" 1>&6
1527if test $ac_cv_type_size_t = no; then
1528 cat >> confdefs.h <<\EOF
1529#define size_t unsigned
1530EOF
1531
1532fi
1533
1534# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1535# for constant arguments. Useless!
1536echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00001537echo "configure:1538: checking for working alloca.h" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001538if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1539 echo $ac_n "(cached) $ac_c" 1>&6
1540else
1541 cat > conftest.$ac_ext <<EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00001542#line 1543 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001543#include "confdefs.h"
1544#include <alloca.h>
1545int main() {
Theodore Ts'o250f79f2001-05-19 22:02:22 +00001546char *p = alloca(2 * sizeof(int));
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001547; return 0; }
1548EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00001549if { (eval echo configure:1550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001550 rm -rf conftest*
1551 ac_cv_header_alloca_h=yes
1552else
1553 echo "configure: failed program was:" >&5
1554 cat conftest.$ac_ext >&5
1555 rm -rf conftest*
1556 ac_cv_header_alloca_h=no
1557fi
1558rm -f conftest*
1559fi
1560
1561echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1562if test $ac_cv_header_alloca_h = yes; then
1563 cat >> confdefs.h <<\EOF
1564#define HAVE_ALLOCA_H 1
1565EOF
1566
1567fi
1568
1569echo $ac_n "checking for alloca""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00001570echo "configure:1571: checking for alloca" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001571if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1572 echo $ac_n "(cached) $ac_c" 1>&6
1573else
1574 cat > conftest.$ac_ext <<EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00001575#line 1576 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001576#include "confdefs.h"
1577
1578#ifdef __GNUC__
1579# define alloca __builtin_alloca
1580#else
1581# ifdef _MSC_VER
1582# include <malloc.h>
1583# define alloca _alloca
1584# else
1585# if HAVE_ALLOCA_H
1586# include <alloca.h>
1587# else
1588# ifdef _AIX
1589 #pragma alloca
1590# else
1591# ifndef alloca /* predefined by HP cc +Olibcalls */
1592char *alloca ();
1593# endif
1594# endif
1595# endif
1596# endif
1597#endif
1598
1599int main() {
1600char *p = (char *) alloca(1);
1601; return 0; }
1602EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00001603if { (eval echo configure:1604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001604 rm -rf conftest*
1605 ac_cv_func_alloca_works=yes
1606else
1607 echo "configure: failed program was:" >&5
1608 cat conftest.$ac_ext >&5
1609 rm -rf conftest*
1610 ac_cv_func_alloca_works=no
1611fi
1612rm -f conftest*
1613fi
1614
1615echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1616if test $ac_cv_func_alloca_works = yes; then
1617 cat >> confdefs.h <<\EOF
1618#define HAVE_ALLOCA 1
1619EOF
1620
1621fi
1622
1623if test $ac_cv_func_alloca_works = no; then
1624 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1625 # that cause trouble. Some versions do not even contain alloca or
1626 # contain a buggy version. If you still want to use their alloca,
1627 # use ar to extract alloca.o from them instead of compiling alloca.c.
1628 ALLOCA=alloca.${ac_objext}
1629 cat >> confdefs.h <<\EOF
1630#define C_ALLOCA 1
1631EOF
1632
1633
1634echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00001635echo "configure:1636: checking whether alloca needs Cray hooks" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001636if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1637 echo $ac_n "(cached) $ac_c" 1>&6
1638else
1639 cat > conftest.$ac_ext <<EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00001640#line 1641 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001641#include "confdefs.h"
1642#if defined(CRAY) && ! defined(CRAY2)
1643webecray
1644#else
1645wenotbecray
1646#endif
1647
1648EOF
1649if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1650 egrep "webecray" >/dev/null 2>&1; then
1651 rm -rf conftest*
1652 ac_cv_os_cray=yes
1653else
1654 rm -rf conftest*
1655 ac_cv_os_cray=no
1656fi
1657rm -f conftest*
1658
1659fi
1660
1661echo "$ac_t""$ac_cv_os_cray" 1>&6
1662if test $ac_cv_os_cray = yes; then
1663for ac_func in _getb67 GETB67 getb67; do
1664 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00001665echo "configure:1666: checking for $ac_func" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001666if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1667 echo $ac_n "(cached) $ac_c" 1>&6
1668else
1669 cat > conftest.$ac_ext <<EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00001670#line 1671 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001671#include "confdefs.h"
1672/* System header to define __stub macros and hopefully few prototypes,
1673 which can conflict with char $ac_func(); below. */
1674#include <assert.h>
1675/* Override any gcc2 internal prototype to avoid an error. */
1676/* We use char because int might match the return type of a gcc2
1677 builtin and then its argument prototype would still apply. */
1678char $ac_func();
1679
1680int main() {
1681
1682/* The GNU C library defines this for functions which it implements
1683 to always fail with ENOSYS. Some functions are actually named
1684 something starting with __ and the normal name is an alias. */
1685#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1686choke me
1687#else
1688$ac_func();
1689#endif
1690
1691; return 0; }
1692EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00001693if { (eval echo configure:1694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001694 rm -rf conftest*
1695 eval "ac_cv_func_$ac_func=yes"
1696else
1697 echo "configure: failed program was:" >&5
1698 cat conftest.$ac_ext >&5
1699 rm -rf conftest*
1700 eval "ac_cv_func_$ac_func=no"
1701fi
1702rm -f conftest*
1703fi
1704
1705if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1706 echo "$ac_t""yes" 1>&6
1707 cat >> confdefs.h <<EOF
1708#define CRAY_STACKSEG_END $ac_func
1709EOF
1710
1711 break
1712else
1713 echo "$ac_t""no" 1>&6
1714fi
1715
1716done
1717fi
1718
1719echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00001720echo "configure:1721: checking stack direction for C alloca" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001721if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1722 echo $ac_n "(cached) $ac_c" 1>&6
1723else
1724 if test "$cross_compiling" = yes; then
1725 ac_cv_c_stack_direction=0
1726else
1727 cat > conftest.$ac_ext <<EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00001728#line 1729 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001729#include "confdefs.h"
1730find_stack_direction ()
1731{
1732 static char *addr = 0;
1733 auto char dummy;
1734 if (addr == 0)
1735 {
1736 addr = &dummy;
1737 return find_stack_direction ();
1738 }
1739 else
1740 return (&dummy > addr) ? 1 : -1;
1741}
1742main ()
1743{
1744 exit (find_stack_direction() < 0);
1745}
1746EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00001747if { (eval echo configure:1748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001748then
1749 ac_cv_c_stack_direction=1
1750else
1751 echo "configure: failed program was:" >&5
1752 cat conftest.$ac_ext >&5
1753 rm -fr conftest*
1754 ac_cv_c_stack_direction=-1
1755fi
1756rm -fr conftest*
1757fi
1758
1759fi
1760
1761echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1762cat >> confdefs.h <<EOF
1763#define STACK_DIRECTION $ac_cv_c_stack_direction
1764EOF
1765
1766fi
1767
1768for ac_hdr in unistd.h
1769do
1770ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1771echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00001772echo "configure:1773: checking for $ac_hdr" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001773if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1774 echo $ac_n "(cached) $ac_c" 1>&6
1775else
1776 cat > conftest.$ac_ext <<EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00001777#line 1778 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001778#include "confdefs.h"
1779#include <$ac_hdr>
1780EOF
1781ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00001782{ (eval echo configure:1783: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001783ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1784if test -z "$ac_err"; then
1785 rm -rf conftest*
1786 eval "ac_cv_header_$ac_safe=yes"
1787else
1788 echo "$ac_err" >&5
1789 echo "configure: failed program was:" >&5
1790 cat conftest.$ac_ext >&5
1791 rm -rf conftest*
1792 eval "ac_cv_header_$ac_safe=no"
1793fi
1794rm -f conftest*
1795fi
1796if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1797 echo "$ac_t""yes" 1>&6
1798 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1799 cat >> confdefs.h <<EOF
1800#define $ac_tr_hdr 1
1801EOF
1802
1803else
1804 echo "$ac_t""no" 1>&6
1805fi
1806done
1807
1808for ac_func in getpagesize
1809do
1810echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00001811echo "configure:1812: checking for $ac_func" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001812if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1813 echo $ac_n "(cached) $ac_c" 1>&6
1814else
1815 cat > conftest.$ac_ext <<EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00001816#line 1817 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001817#include "confdefs.h"
1818/* System header to define __stub macros and hopefully few prototypes,
1819 which can conflict with char $ac_func(); below. */
1820#include <assert.h>
1821/* Override any gcc2 internal prototype to avoid an error. */
1822/* We use char because int might match the return type of a gcc2
1823 builtin and then its argument prototype would still apply. */
1824char $ac_func();
1825
1826int main() {
1827
1828/* The GNU C library defines this for functions which it implements
1829 to always fail with ENOSYS. Some functions are actually named
1830 something starting with __ and the normal name is an alias. */
1831#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1832choke me
1833#else
1834$ac_func();
1835#endif
1836
1837; return 0; }
1838EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00001839if { (eval echo configure:1840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001840 rm -rf conftest*
1841 eval "ac_cv_func_$ac_func=yes"
1842else
1843 echo "configure: failed program was:" >&5
1844 cat conftest.$ac_ext >&5
1845 rm -rf conftest*
1846 eval "ac_cv_func_$ac_func=no"
1847fi
1848rm -f conftest*
1849fi
1850
1851if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1852 echo "$ac_t""yes" 1>&6
1853 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1854 cat >> confdefs.h <<EOF
1855#define $ac_tr_func 1
1856EOF
1857
1858else
1859 echo "$ac_t""no" 1>&6
1860fi
1861done
1862
1863echo $ac_n "checking for working mmap""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00001864echo "configure:1865: checking for working mmap" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001865if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1866 echo $ac_n "(cached) $ac_c" 1>&6
1867else
1868 if test "$cross_compiling" = yes; then
1869 ac_cv_func_mmap_fixed_mapped=no
1870else
1871 cat > conftest.$ac_ext <<EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00001872#line 1873 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001873#include "confdefs.h"
1874
1875/* Thanks to Mike Haertel and Jim Avera for this test.
1876 Here is a matrix of mmap possibilities:
1877 mmap private not fixed
1878 mmap private fixed at somewhere currently unmapped
1879 mmap private fixed at somewhere already mapped
1880 mmap shared not fixed
1881 mmap shared fixed at somewhere currently unmapped
1882 mmap shared fixed at somewhere already mapped
1883 For private mappings, we should verify that changes cannot be read()
1884 back from the file, nor mmap's back from the file at a different
1885 address. (There have been systems where private was not correctly
1886 implemented like the infamous i386 svr4.0, and systems where the
1887 VM page cache was not coherent with the filesystem buffer cache
1888 like early versions of FreeBSD and possibly contemporary NetBSD.)
1889 For shared mappings, we should conversely verify that changes get
1890 propogated back to all the places they're supposed to be.
1891
1892 Grep wants private fixed already mapped.
1893 The main things grep needs to know about mmap are:
1894 * does it exist and is it safe to write into the mmap'd area
1895 * how to use it (BSD variants) */
1896#include <sys/types.h>
1897#include <fcntl.h>
1898#include <sys/mman.h>
1899
1900/* This mess was copied from the GNU getpagesize.h. */
1901#ifndef HAVE_GETPAGESIZE
Theodore Ts'o250f79f2001-05-19 22:02:22 +00001902# ifdef HAVE_UNISTD_H
1903# include <unistd.h>
1904# endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001905
1906/* Assume that all systems that can run configure have sys/param.h. */
1907# ifndef HAVE_SYS_PARAM_H
1908# define HAVE_SYS_PARAM_H 1
1909# endif
1910
1911# ifdef _SC_PAGESIZE
1912# define getpagesize() sysconf(_SC_PAGESIZE)
1913# else /* no _SC_PAGESIZE */
1914# ifdef HAVE_SYS_PARAM_H
1915# include <sys/param.h>
1916# ifdef EXEC_PAGESIZE
1917# define getpagesize() EXEC_PAGESIZE
1918# else /* no EXEC_PAGESIZE */
1919# ifdef NBPG
1920# define getpagesize() NBPG * CLSIZE
1921# ifndef CLSIZE
1922# define CLSIZE 1
1923# endif /* no CLSIZE */
1924# else /* no NBPG */
1925# ifdef NBPC
1926# define getpagesize() NBPC
1927# else /* no NBPC */
1928# ifdef PAGESIZE
1929# define getpagesize() PAGESIZE
1930# endif /* PAGESIZE */
1931# endif /* no NBPC */
1932# endif /* no NBPG */
1933# endif /* no EXEC_PAGESIZE */
1934# else /* no HAVE_SYS_PARAM_H */
1935# define getpagesize() 8192 /* punt totally */
1936# endif /* no HAVE_SYS_PARAM_H */
1937# endif /* no _SC_PAGESIZE */
1938
1939#endif /* no HAVE_GETPAGESIZE */
1940
1941#ifdef __cplusplus
1942extern "C" { void *malloc(unsigned); }
1943#else
1944char *malloc();
1945#endif
1946
1947int
1948main()
1949{
1950 char *data, *data2, *data3;
1951 int i, pagesize;
1952 int fd;
1953
1954 pagesize = getpagesize();
1955
1956 /*
1957 * First, make a file with some known garbage in it.
1958 */
Theodore Ts'o250f79f2001-05-19 22:02:22 +00001959 data = malloc(pagesize);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001960 if (!data)
1961 exit(1);
1962 for (i = 0; i < pagesize; ++i)
1963 *(data + i) = rand();
1964 umask(0);
1965 fd = creat("conftestmmap", 0600);
1966 if (fd < 0)
1967 exit(1);
1968 if (write(fd, data, pagesize) != pagesize)
1969 exit(1);
1970 close(fd);
1971
1972 /*
1973 * Next, try to mmap the file at a fixed address which
1974 * already has something else allocated at it. If we can,
1975 * also make sure that we see the same garbage.
1976 */
1977 fd = open("conftestmmap", O_RDWR);
1978 if (fd < 0)
1979 exit(1);
Theodore Ts'o250f79f2001-05-19 22:02:22 +00001980 data2 = malloc(2 * pagesize);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001981 if (!data2)
1982 exit(1);
1983 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1984 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1985 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1986 exit(1);
1987 for (i = 0; i < pagesize; ++i)
1988 if (*(data + i) != *(data2 + i))
1989 exit(1);
1990
1991 /*
1992 * Finally, make sure that changes to the mapped area
1993 * do not percolate back to the file as seen by read().
1994 * (This is a bug on some variants of i386 svr4.0.)
1995 */
1996 for (i = 0; i < pagesize; ++i)
1997 *(data2 + i) = *(data2 + i) + 1;
Theodore Ts'o250f79f2001-05-19 22:02:22 +00001998 data3 = malloc(pagesize);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001999 if (!data3)
2000 exit(1);
2001 if (read(fd, data3, pagesize) != pagesize)
2002 exit(1);
2003 for (i = 0; i < pagesize; ++i)
2004 if (*(data + i) != *(data3 + i))
2005 exit(1);
2006 close(fd);
2007 unlink("conftestmmap");
2008 exit(0);
2009}
2010
2011EOF
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002012if { (eval echo configure:2013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002013then
2014 ac_cv_func_mmap_fixed_mapped=yes
2015else
2016 echo "configure: failed program was:" >&5
2017 cat conftest.$ac_ext >&5
2018 rm -fr conftest*
2019 ac_cv_func_mmap_fixed_mapped=no
2020fi
2021rm -fr conftest*
2022fi
2023
2024fi
2025
2026echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2027if test $ac_cv_func_mmap_fixed_mapped = yes; then
2028 cat >> confdefs.h <<\EOF
2029#define HAVE_MMAP 1
2030EOF
2031
2032fi
2033
2034
2035 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2036unistd.h sys/param.h
2037do
2038ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2039echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002040echo "configure:2041: checking for $ac_hdr" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002041if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2042 echo $ac_n "(cached) $ac_c" 1>&6
2043else
2044 cat > conftest.$ac_ext <<EOF
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002045#line 2046 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002046#include "confdefs.h"
2047#include <$ac_hdr>
2048EOF
2049ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002050{ (eval echo configure:2051: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002051ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2052if test -z "$ac_err"; then
2053 rm -rf conftest*
2054 eval "ac_cv_header_$ac_safe=yes"
2055else
2056 echo "$ac_err" >&5
2057 echo "configure: failed program was:" >&5
2058 cat conftest.$ac_ext >&5
2059 rm -rf conftest*
2060 eval "ac_cv_header_$ac_safe=no"
2061fi
2062rm -f conftest*
2063fi
2064if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2065 echo "$ac_t""yes" 1>&6
2066 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2067 cat >> confdefs.h <<EOF
2068#define $ac_tr_hdr 1
2069EOF
2070
2071else
2072 echo "$ac_t""no" 1>&6
2073fi
2074done
2075
2076 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2077strdup __argz_count __argz_stringify __argz_next
2078do
2079echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002080echo "configure:2081: checking for $ac_func" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002081if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2082 echo $ac_n "(cached) $ac_c" 1>&6
2083else
2084 cat > conftest.$ac_ext <<EOF
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002085#line 2086 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002086#include "confdefs.h"
2087/* System header to define __stub macros and hopefully few prototypes,
2088 which can conflict with char $ac_func(); below. */
2089#include <assert.h>
2090/* Override any gcc2 internal prototype to avoid an error. */
2091/* We use char because int might match the return type of a gcc2
2092 builtin and then its argument prototype would still apply. */
2093char $ac_func();
2094
2095int main() {
2096
2097/* The GNU C library defines this for functions which it implements
2098 to always fail with ENOSYS. Some functions are actually named
2099 something starting with __ and the normal name is an alias. */
2100#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2101choke me
2102#else
2103$ac_func();
2104#endif
2105
2106; return 0; }
2107EOF
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002108if { (eval echo configure:2109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002109 rm -rf conftest*
2110 eval "ac_cv_func_$ac_func=yes"
2111else
2112 echo "configure: failed program was:" >&5
2113 cat conftest.$ac_ext >&5
2114 rm -rf conftest*
2115 eval "ac_cv_func_$ac_func=no"
2116fi
2117rm -f conftest*
2118fi
2119
2120if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2121 echo "$ac_t""yes" 1>&6
2122 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2123 cat >> confdefs.h <<EOF
2124#define $ac_tr_func 1
2125EOF
2126
2127else
2128 echo "$ac_t""no" 1>&6
2129fi
2130done
2131
2132
2133 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2134 for ac_func in stpcpy
2135do
2136echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002137echo "configure:2138: checking for $ac_func" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002138if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2139 echo $ac_n "(cached) $ac_c" 1>&6
2140else
2141 cat > conftest.$ac_ext <<EOF
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002142#line 2143 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002143#include "confdefs.h"
2144/* System header to define __stub macros and hopefully few prototypes,
2145 which can conflict with char $ac_func(); below. */
2146#include <assert.h>
2147/* Override any gcc2 internal prototype to avoid an error. */
2148/* We use char because int might match the return type of a gcc2
2149 builtin and then its argument prototype would still apply. */
2150char $ac_func();
2151
2152int main() {
2153
2154/* The GNU C library defines this for functions which it implements
2155 to always fail with ENOSYS. Some functions are actually named
2156 something starting with __ and the normal name is an alias. */
2157#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2158choke me
2159#else
2160$ac_func();
2161#endif
2162
2163; return 0; }
2164EOF
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002165if { (eval echo configure:2166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002166 rm -rf conftest*
2167 eval "ac_cv_func_$ac_func=yes"
2168else
2169 echo "configure: failed program was:" >&5
2170 cat conftest.$ac_ext >&5
2171 rm -rf conftest*
2172 eval "ac_cv_func_$ac_func=no"
2173fi
2174rm -f conftest*
2175fi
2176
2177if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2178 echo "$ac_t""yes" 1>&6
2179 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2180 cat >> confdefs.h <<EOF
2181#define $ac_tr_func 1
2182EOF
2183
2184else
2185 echo "$ac_t""no" 1>&6
2186fi
2187done
2188
2189 fi
2190 if test "${ac_cv_func_stpcpy}" = "yes"; then
2191 cat >> confdefs.h <<\EOF
2192#define HAVE_STPCPY 1
2193EOF
2194
2195 fi
2196
2197 if test $ac_cv_header_locale_h = yes; then
2198 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002199echo "configure:2200: checking for LC_MESSAGES" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002200if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2201 echo $ac_n "(cached) $ac_c" 1>&6
2202else
2203 cat > conftest.$ac_ext <<EOF
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002204#line 2205 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002205#include "confdefs.h"
2206#include <locale.h>
2207int main() {
2208return LC_MESSAGES
2209; return 0; }
2210EOF
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002211if { (eval echo configure:2212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002212 rm -rf conftest*
2213 am_cv_val_LC_MESSAGES=yes
2214else
2215 echo "configure: failed program was:" >&5
2216 cat conftest.$ac_ext >&5
2217 rm -rf conftest*
2218 am_cv_val_LC_MESSAGES=no
2219fi
2220rm -f conftest*
2221fi
2222
2223echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2224 if test $am_cv_val_LC_MESSAGES = yes; then
2225 cat >> confdefs.h <<\EOF
2226#define HAVE_LC_MESSAGES 1
2227EOF
2228
2229 fi
2230 fi
2231 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002232echo "configure:2233: checking whether NLS is requested" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002233 # Check whether --enable-nls or --disable-nls was given.
2234if test "${enable_nls+set}" = set; then
2235 enableval="$enable_nls"
2236 USE_NLS=$enableval
2237else
2238 USE_NLS=no
2239fi
2240
2241 echo "$ac_t""$USE_NLS" 1>&6
2242
2243
2244 USE_INCLUDED_LIBINTL=no
2245
2246 if test "$USE_NLS" = "yes"; then
2247 cat >> confdefs.h <<\EOF
2248#define ENABLE_NLS 1
2249EOF
2250
2251 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002252echo "configure:2253: checking whether included gettext is requested" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002253 # Check whether --with-included-gettext or --without-included-gettext was given.
2254if test "${with_included_gettext+set}" = set; then
2255 withval="$with_included_gettext"
2256 nls_cv_force_use_gnu_gettext=$withval
2257else
2258 nls_cv_force_use_gnu_gettext=no
2259fi
2260
2261 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2262
2263 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2264 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2265 nls_cv_header_intl=
2266 nls_cv_header_libgt=
2267 CATOBJEXT=NONE
2268
2269 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2270echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002271echo "configure:2272: checking for libintl.h" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002272if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2273 echo $ac_n "(cached) $ac_c" 1>&6
2274else
2275 cat > conftest.$ac_ext <<EOF
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002276#line 2277 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002277#include "confdefs.h"
2278#include <libintl.h>
2279EOF
2280ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002281{ (eval echo configure:2282: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002282ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2283if test -z "$ac_err"; then
2284 rm -rf conftest*
2285 eval "ac_cv_header_$ac_safe=yes"
2286else
2287 echo "$ac_err" >&5
2288 echo "configure: failed program was:" >&5
2289 cat conftest.$ac_ext >&5
2290 rm -rf conftest*
2291 eval "ac_cv_header_$ac_safe=no"
2292fi
2293rm -f conftest*
2294fi
2295if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2296 echo "$ac_t""yes" 1>&6
2297 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002298echo "configure:2299: checking for gettext in libc" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002299if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2300 echo $ac_n "(cached) $ac_c" 1>&6
2301else
2302 cat > conftest.$ac_ext <<EOF
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002303#line 2304 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002304#include "confdefs.h"
2305#include <libintl.h>
2306int main() {
2307return (int) gettext ("")
2308; return 0; }
2309EOF
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002310if { (eval echo configure:2311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002311 rm -rf conftest*
2312 gt_cv_func_gettext_libc=yes
2313else
2314 echo "configure: failed program was:" >&5
2315 cat conftest.$ac_ext >&5
2316 rm -rf conftest*
2317 gt_cv_func_gettext_libc=no
2318fi
2319rm -f conftest*
2320fi
2321
2322echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2323
2324 if test "$gt_cv_func_gettext_libc" != "yes"; then
2325 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002326echo "configure:2327: checking for bindtextdomain in -lintl" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002327ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2328if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2329 echo $ac_n "(cached) $ac_c" 1>&6
2330else
2331 ac_save_LIBS="$LIBS"
2332LIBS="-lintl $LIBS"
2333cat > conftest.$ac_ext <<EOF
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002334#line 2335 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002335#include "confdefs.h"
2336/* Override any gcc2 internal prototype to avoid an error. */
2337/* We use char because int might match the return type of a gcc2
2338 builtin and then its argument prototype would still apply. */
2339char bindtextdomain();
2340
2341int main() {
2342bindtextdomain()
2343; return 0; }
2344EOF
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002345if { (eval echo configure:2346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002346 rm -rf conftest*
2347 eval "ac_cv_lib_$ac_lib_var=yes"
2348else
2349 echo "configure: failed program was:" >&5
2350 cat conftest.$ac_ext >&5
2351 rm -rf conftest*
2352 eval "ac_cv_lib_$ac_lib_var=no"
2353fi
2354rm -f conftest*
2355LIBS="$ac_save_LIBS"
2356
2357fi
2358if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2359 echo "$ac_t""yes" 1>&6
2360 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002361echo "configure:2362: checking for gettext in libintl" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002362if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2363 echo $ac_n "(cached) $ac_c" 1>&6
2364else
2365 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002366echo "configure:2367: checking for gettext in -lintl" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002367ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
2368if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2369 echo $ac_n "(cached) $ac_c" 1>&6
2370else
2371 ac_save_LIBS="$LIBS"
2372LIBS="-lintl $LIBS"
2373cat > conftest.$ac_ext <<EOF
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002374#line 2375 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002375#include "confdefs.h"
2376/* Override any gcc2 internal prototype to avoid an error. */
2377/* We use char because int might match the return type of a gcc2
2378 builtin and then its argument prototype would still apply. */
2379char gettext();
2380
2381int main() {
2382gettext()
2383; return 0; }
2384EOF
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002385if { (eval echo configure:2386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002386 rm -rf conftest*
2387 eval "ac_cv_lib_$ac_lib_var=yes"
2388else
2389 echo "configure: failed program was:" >&5
2390 cat conftest.$ac_ext >&5
2391 rm -rf conftest*
2392 eval "ac_cv_lib_$ac_lib_var=no"
2393fi
2394rm -f conftest*
2395LIBS="$ac_save_LIBS"
2396
2397fi
2398if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2399 echo "$ac_t""yes" 1>&6
2400 gt_cv_func_gettext_libintl=yes
2401else
2402 echo "$ac_t""no" 1>&6
2403gt_cv_func_gettext_libintl=no
2404fi
2405
2406fi
2407
2408echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2409else
2410 echo "$ac_t""no" 1>&6
2411fi
2412
2413 fi
2414
2415 if test "$gt_cv_func_gettext_libc" = "yes" \
2416 || test "$gt_cv_func_gettext_libintl" = "yes"; then
2417 cat >> confdefs.h <<\EOF
2418#define HAVE_GETTEXT 1
2419EOF
2420
2421 # Extract the first word of "msgfmt", so it can be a program name with args.
2422set dummy msgfmt; ac_word=$2
2423echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002424echo "configure:2425: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002425if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2426 echo $ac_n "(cached) $ac_c" 1>&6
2427else
2428 case "$MSGFMT" in
2429 /*)
2430 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2431 ;;
2432 *)
2433 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2434 for ac_dir in $PATH; do
2435 test -z "$ac_dir" && ac_dir=.
2436 if test -f $ac_dir/$ac_word; then
2437 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2438 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2439 break
2440 fi
2441 fi
2442 done
2443 IFS="$ac_save_ifs"
2444 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
2445 ;;
2446esac
2447fi
2448MSGFMT="$ac_cv_path_MSGFMT"
2449if test -n "$MSGFMT"; then
2450 echo "$ac_t""$MSGFMT" 1>&6
2451else
2452 echo "$ac_t""no" 1>&6
2453fi
2454 if test "$MSGFMT" != "no"; then
2455 for ac_func in dcgettext
2456do
2457echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002458echo "configure:2459: checking for $ac_func" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002459if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2460 echo $ac_n "(cached) $ac_c" 1>&6
2461else
2462 cat > conftest.$ac_ext <<EOF
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002463#line 2464 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002464#include "confdefs.h"
2465/* System header to define __stub macros and hopefully few prototypes,
2466 which can conflict with char $ac_func(); below. */
2467#include <assert.h>
2468/* Override any gcc2 internal prototype to avoid an error. */
2469/* We use char because int might match the return type of a gcc2
2470 builtin and then its argument prototype would still apply. */
2471char $ac_func();
2472
2473int main() {
2474
2475/* The GNU C library defines this for functions which it implements
2476 to always fail with ENOSYS. Some functions are actually named
2477 something starting with __ and the normal name is an alias. */
2478#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2479choke me
2480#else
2481$ac_func();
2482#endif
2483
2484; return 0; }
2485EOF
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002486if { (eval echo configure:2487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002487 rm -rf conftest*
2488 eval "ac_cv_func_$ac_func=yes"
2489else
2490 echo "configure: failed program was:" >&5
2491 cat conftest.$ac_ext >&5
2492 rm -rf conftest*
2493 eval "ac_cv_func_$ac_func=no"
2494fi
2495rm -f conftest*
2496fi
2497
2498if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2499 echo "$ac_t""yes" 1>&6
2500 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2501 cat >> confdefs.h <<EOF
2502#define $ac_tr_func 1
2503EOF
2504
2505else
2506 echo "$ac_t""no" 1>&6
2507fi
2508done
2509
2510 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2511set dummy gmsgfmt; ac_word=$2
2512echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002513echo "configure:2514: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002514if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2515 echo $ac_n "(cached) $ac_c" 1>&6
2516else
2517 case "$GMSGFMT" in
2518 /*)
2519 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2520 ;;
2521 ?:/*)
2522 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2523 ;;
2524 *)
2525 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2526 ac_dummy="$PATH"
2527 for ac_dir in $ac_dummy; do
2528 test -z "$ac_dir" && ac_dir=.
2529 if test -f $ac_dir/$ac_word; then
2530 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2531 break
2532 fi
2533 done
2534 IFS="$ac_save_ifs"
2535 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2536 ;;
2537esac
2538fi
2539GMSGFMT="$ac_cv_path_GMSGFMT"
2540if test -n "$GMSGFMT"; then
2541 echo "$ac_t""$GMSGFMT" 1>&6
2542else
2543 echo "$ac_t""no" 1>&6
2544fi
2545
2546 # Extract the first word of "xgettext", so it can be a program name with args.
2547set dummy xgettext; ac_word=$2
2548echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002549echo "configure:2550: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002550if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2551 echo $ac_n "(cached) $ac_c" 1>&6
2552else
2553 case "$XGETTEXT" in
2554 /*)
2555 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2556 ;;
2557 *)
2558 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2559 for ac_dir in $PATH; do
2560 test -z "$ac_dir" && ac_dir=.
2561 if test -f $ac_dir/$ac_word; then
2562 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2563 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2564 break
2565 fi
2566 fi
2567 done
2568 IFS="$ac_save_ifs"
2569 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2570 ;;
2571esac
2572fi
2573XGETTEXT="$ac_cv_path_XGETTEXT"
2574if test -n "$XGETTEXT"; then
2575 echo "$ac_t""$XGETTEXT" 1>&6
2576else
2577 echo "$ac_t""no" 1>&6
2578fi
2579
2580 cat > conftest.$ac_ext <<EOF
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002581#line 2582 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002582#include "confdefs.h"
2583
2584int main() {
2585extern int _nl_msg_cat_cntr;
2586 return _nl_msg_cat_cntr
2587; return 0; }
2588EOF
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002589if { (eval echo configure:2590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002590 rm -rf conftest*
2591 CATOBJEXT=.gmo
2592 DATADIRNAME=share
2593else
2594 echo "configure: failed program was:" >&5
2595 cat conftest.$ac_ext >&5
2596 rm -rf conftest*
2597 CATOBJEXT=.mo
2598 DATADIRNAME=lib
2599fi
2600rm -f conftest*
2601 INSTOBJEXT=.mo
2602 fi
2603 fi
2604
2605else
2606 echo "$ac_t""no" 1>&6
2607fi
2608
2609
2610 if test "$CATOBJEXT" = "NONE"; then
2611 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002612echo "configure:2613: checking whether catgets can be used" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002613 # Check whether --with-catgets or --without-catgets was given.
2614if test "${with_catgets+set}" = set; then
2615 withval="$with_catgets"
2616 nls_cv_use_catgets=$withval
2617else
2618 nls_cv_use_catgets=no
2619fi
2620
2621 echo "$ac_t""$nls_cv_use_catgets" 1>&6
2622
2623 if test "$nls_cv_use_catgets" = "yes"; then
2624 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002625echo "configure:2626: checking for main in -li" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002626ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'`
2627if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2628 echo $ac_n "(cached) $ac_c" 1>&6
2629else
2630 ac_save_LIBS="$LIBS"
2631LIBS="-li $LIBS"
2632cat > conftest.$ac_ext <<EOF
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002633#line 2634 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002634#include "confdefs.h"
2635
2636int main() {
2637main()
2638; return 0; }
2639EOF
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002640if { (eval echo configure:2641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002641 rm -rf conftest*
2642 eval "ac_cv_lib_$ac_lib_var=yes"
2643else
2644 echo "configure: failed program was:" >&5
2645 cat conftest.$ac_ext >&5
2646 rm -rf conftest*
2647 eval "ac_cv_lib_$ac_lib_var=no"
2648fi
2649rm -f conftest*
2650LIBS="$ac_save_LIBS"
2651
2652fi
2653if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2654 echo "$ac_t""yes" 1>&6
2655 ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2656 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2657 cat >> confdefs.h <<EOF
2658#define $ac_tr_lib 1
2659EOF
2660
2661 LIBS="-li $LIBS"
2662
2663else
2664 echo "$ac_t""no" 1>&6
2665fi
2666
2667 echo $ac_n "checking for catgets""... $ac_c" 1>&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002668echo "configure:2669: checking for catgets" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002669if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
2670 echo $ac_n "(cached) $ac_c" 1>&6
2671else
2672 cat > conftest.$ac_ext <<EOF
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002673#line 2674 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002674#include "confdefs.h"
2675/* System header to define __stub macros and hopefully few prototypes,
2676 which can conflict with char catgets(); below. */
2677#include <assert.h>
2678/* Override any gcc2 internal prototype to avoid an error. */
2679/* We use char because int might match the return type of a gcc2
2680 builtin and then its argument prototype would still apply. */
2681char catgets();
2682
2683int main() {
2684
2685/* The GNU C library defines this for functions which it implements
2686 to always fail with ENOSYS. Some functions are actually named
2687 something starting with __ and the normal name is an alias. */
2688#if defined (__stub_catgets) || defined (__stub___catgets)
2689choke me
2690#else
2691catgets();
2692#endif
2693
2694; return 0; }
2695EOF
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002696if { (eval echo configure:2697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002697 rm -rf conftest*
2698 eval "ac_cv_func_catgets=yes"
2699else
2700 echo "configure: failed program was:" >&5
2701 cat conftest.$ac_ext >&5
2702 rm -rf conftest*
2703 eval "ac_cv_func_catgets=no"
2704fi
2705rm -f conftest*
2706fi
2707
2708if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
2709 echo "$ac_t""yes" 1>&6
2710 cat >> confdefs.h <<\EOF
2711#define HAVE_CATGETS 1
2712EOF
2713
2714 INTLOBJS="\$(CATOBJS)"
2715 # Extract the first word of "gencat", so it can be a program name with args.
2716set dummy gencat; ac_word=$2
2717echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002718echo "configure:2719: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002719if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
2720 echo $ac_n "(cached) $ac_c" 1>&6
2721else
2722 case "$GENCAT" in
2723 /*)
2724 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
2725 ;;
2726 ?:/*)
2727 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path.
2728 ;;
2729 *)
2730 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2731 ac_dummy="$PATH"
2732 for ac_dir in $ac_dummy; do
2733 test -z "$ac_dir" && ac_dir=.
2734 if test -f $ac_dir/$ac_word; then
2735 ac_cv_path_GENCAT="$ac_dir/$ac_word"
2736 break
2737 fi
2738 done
2739 IFS="$ac_save_ifs"
2740 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
2741 ;;
2742esac
2743fi
2744GENCAT="$ac_cv_path_GENCAT"
2745if test -n "$GENCAT"; then
2746 echo "$ac_t""$GENCAT" 1>&6
2747else
2748 echo "$ac_t""no" 1>&6
2749fi
2750 if test "$GENCAT" != "no"; then
2751 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2752set dummy gmsgfmt; ac_word=$2
2753echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002754echo "configure:2755: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002755if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2756 echo $ac_n "(cached) $ac_c" 1>&6
2757else
2758 case "$GMSGFMT" in
2759 /*)
2760 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2761 ;;
2762 ?:/*)
2763 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2764 ;;
2765 *)
2766 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2767 ac_dummy="$PATH"
2768 for ac_dir in $ac_dummy; do
2769 test -z "$ac_dir" && ac_dir=.
2770 if test -f $ac_dir/$ac_word; then
2771 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2772 break
2773 fi
2774 done
2775 IFS="$ac_save_ifs"
2776 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
2777 ;;
2778esac
2779fi
2780GMSGFMT="$ac_cv_path_GMSGFMT"
2781if test -n "$GMSGFMT"; then
2782 echo "$ac_t""$GMSGFMT" 1>&6
2783else
2784 echo "$ac_t""no" 1>&6
2785fi
2786
2787 if test "$GMSGFMT" = "no"; then
2788 # Extract the first word of "msgfmt", so it can be a program name with args.
2789set dummy msgfmt; ac_word=$2
2790echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002791echo "configure:2792: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002792if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2793 echo $ac_n "(cached) $ac_c" 1>&6
2794else
2795 case "$GMSGFMT" in
2796 /*)
2797 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2798 ;;
2799 *)
2800 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2801 for ac_dir in $PATH; do
2802 test -z "$ac_dir" && ac_dir=.
2803 if test -f $ac_dir/$ac_word; then
2804 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2805 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2806 break
2807 fi
2808 fi
2809 done
2810 IFS="$ac_save_ifs"
2811 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
2812 ;;
2813esac
2814fi
2815GMSGFMT="$ac_cv_path_GMSGFMT"
2816if test -n "$GMSGFMT"; then
2817 echo "$ac_t""$GMSGFMT" 1>&6
2818else
2819 echo "$ac_t""no" 1>&6
2820fi
2821
2822 fi
2823 # Extract the first word of "xgettext", so it can be a program name with args.
2824set dummy xgettext; ac_word=$2
2825echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002826echo "configure:2827: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002827if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2828 echo $ac_n "(cached) $ac_c" 1>&6
2829else
2830 case "$XGETTEXT" in
2831 /*)
2832 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2833 ;;
2834 *)
2835 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2836 for ac_dir in $PATH; do
2837 test -z "$ac_dir" && ac_dir=.
2838 if test -f $ac_dir/$ac_word; then
2839 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2840 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2841 break
2842 fi
2843 fi
2844 done
2845 IFS="$ac_save_ifs"
2846 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2847 ;;
2848esac
2849fi
2850XGETTEXT="$ac_cv_path_XGETTEXT"
2851if test -n "$XGETTEXT"; then
2852 echo "$ac_t""$XGETTEXT" 1>&6
2853else
2854 echo "$ac_t""no" 1>&6
2855fi
2856
2857 USE_INCLUDED_LIBINTL=yes
2858 CATOBJEXT=.cat
2859 INSTOBJEXT=.cat
2860 DATADIRNAME=lib
2861 INTLDEPS='$(top_builddir)/intl/libintl.a'
2862 INTLLIBS=$INTLDEPS
2863 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
2864 nls_cv_header_intl=intl/libintl.h
2865 nls_cv_header_libgt=intl/libgettext.h
2866 fi
2867else
2868 echo "$ac_t""no" 1>&6
2869fi
2870
2871 fi
2872 fi
2873
2874 if test "$CATOBJEXT" = "NONE"; then
2875 nls_cv_use_gnu_gettext=yes
2876 fi
2877 fi
2878
2879 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2880 INTLOBJS="\$(GETTOBJS)"
2881 # Extract the first word of "msgfmt", so it can be a program name with args.
2882set dummy msgfmt; ac_word=$2
2883echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002884echo "configure:2885: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002885if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2886 echo $ac_n "(cached) $ac_c" 1>&6
2887else
2888 case "$MSGFMT" in
2889 /*)
2890 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2891 ;;
2892 *)
2893 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2894 for ac_dir in $PATH; do
2895 test -z "$ac_dir" && ac_dir=.
2896 if test -f $ac_dir/$ac_word; then
2897 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2898 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2899 break
2900 fi
2901 fi
2902 done
2903 IFS="$ac_save_ifs"
2904 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
2905 ;;
2906esac
2907fi
2908MSGFMT="$ac_cv_path_MSGFMT"
2909if test -n "$MSGFMT"; then
2910 echo "$ac_t""$MSGFMT" 1>&6
2911else
2912 echo "$ac_t""no" 1>&6
2913fi
2914
2915 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2916set dummy gmsgfmt; ac_word=$2
2917echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002918echo "configure:2919: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002919if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2920 echo $ac_n "(cached) $ac_c" 1>&6
2921else
2922 case "$GMSGFMT" in
2923 /*)
2924 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2925 ;;
2926 ?:/*)
2927 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2928 ;;
2929 *)
2930 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2931 ac_dummy="$PATH"
2932 for ac_dir in $ac_dummy; do
2933 test -z "$ac_dir" && ac_dir=.
2934 if test -f $ac_dir/$ac_word; then
2935 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2936 break
2937 fi
2938 done
2939 IFS="$ac_save_ifs"
2940 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2941 ;;
2942esac
2943fi
2944GMSGFMT="$ac_cv_path_GMSGFMT"
2945if test -n "$GMSGFMT"; then
2946 echo "$ac_t""$GMSGFMT" 1>&6
2947else
2948 echo "$ac_t""no" 1>&6
2949fi
2950
2951 # Extract the first word of "xgettext", so it can be a program name with args.
2952set dummy xgettext; ac_word=$2
2953echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002954echo "configure:2955: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002955if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2956 echo $ac_n "(cached) $ac_c" 1>&6
2957else
2958 case "$XGETTEXT" in
2959 /*)
2960 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2961 ;;
2962 *)
2963 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2964 for ac_dir in $PATH; do
2965 test -z "$ac_dir" && ac_dir=.
2966 if test -f $ac_dir/$ac_word; then
2967 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2968 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2969 break
2970 fi
2971 fi
2972 done
2973 IFS="$ac_save_ifs"
2974 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2975 ;;
2976esac
2977fi
2978XGETTEXT="$ac_cv_path_XGETTEXT"
2979if test -n "$XGETTEXT"; then
2980 echo "$ac_t""$XGETTEXT" 1>&6
2981else
2982 echo "$ac_t""no" 1>&6
2983fi
2984
2985
2986 USE_INCLUDED_LIBINTL=yes
2987 CATOBJEXT=.gmo
2988 INSTOBJEXT=.mo
2989 DATADIRNAME=share
2990 INTLDEPS='$(top_builddir)/intl/libintl.a'
2991 INTLLIBS=$INTLDEPS
2992 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
2993 nls_cv_header_intl=intl/libintl.h
2994 nls_cv_header_libgt=intl/libgettext.h
2995 fi
2996
2997 if test "$XGETTEXT" != ":"; then
2998 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
2999 : ;
3000 else
3001 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
3002 XGETTEXT=":"
3003 fi
3004 fi
3005
3006 # We need to process the po/ directory.
3007 POSUB=po
3008 else
3009 DATADIRNAME=share
3010 nls_cv_header_intl=intl/libintl.h
3011 nls_cv_header_libgt=intl/libgettext.h
3012 fi
3013
3014
3015
3016
3017 # If this is used in GNU gettext we have to set USE_NLS to `yes'
3018 # because some of the sources are only built for this goal.
3019 if test "$PACKAGE" = gettext; then
3020 USE_NLS=yes
3021 USE_INCLUDED_LIBINTL=yes
3022 fi
3023
3024 for lang in $ALL_LINGUAS; do
3025 GMOFILES="$GMOFILES $lang.gmo"
3026 POFILES="$POFILES $lang.po"
3027 done
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042 if test "x$CATOBJEXT" != "x"; then
3043 if test "x$ALL_LINGUAS" = "x"; then
3044 LINGUAS=
3045 else
3046 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +00003047echo "configure:3048: checking for catalogs to be installed" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003048 NEW_LINGUAS=
3049 for lang in ${LINGUAS=$ALL_LINGUAS}; do
3050 case "$ALL_LINGUAS" in
3051 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
3052 esac
3053 done
3054 LINGUAS=$NEW_LINGUAS
3055 echo "$ac_t""$LINGUAS" 1>&6
3056 fi
3057
3058 if test -n "$LINGUAS"; then
3059 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
3060 fi
3061 fi
3062
3063 if test $ac_cv_header_locale_h = yes; then
3064 INCLUDE_LOCALE_H="#include <locale.h>"
3065 else
3066 INCLUDE_LOCALE_H="\
3067/* The system does not provide the header <locale.h>. Take care yourself. */"
3068 fi
3069
3070
3071 test -d intl || mkdir intl
3072 if test "$CATOBJEXT" = ".cat"; then
3073 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
3074echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +00003075echo "configure:3076: checking for linux/version.h" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003076if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3077 echo $ac_n "(cached) $ac_c" 1>&6
3078else
3079 cat > conftest.$ac_ext <<EOF
Theodore Ts'o250f79f2001-05-19 22:02:22 +00003080#line 3081 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003081#include "confdefs.h"
3082#include <linux/version.h>
3083EOF
3084ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o250f79f2001-05-19 22:02:22 +00003085{ (eval echo configure:3086: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003086ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3087if test -z "$ac_err"; then
3088 rm -rf conftest*
3089 eval "ac_cv_header_$ac_safe=yes"
3090else
3091 echo "$ac_err" >&5
3092 echo "configure: failed program was:" >&5
3093 cat conftest.$ac_ext >&5
3094 rm -rf conftest*
3095 eval "ac_cv_header_$ac_safe=no"
3096fi
3097rm -f conftest*
3098fi
3099if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3100 echo "$ac_t""yes" 1>&6
3101 msgformat=linux
3102else
3103 echo "$ac_t""no" 1>&6
3104msgformat=xopen
3105fi
3106
3107
3108 sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
3109 fi
3110 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
3111 $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
3112
3113 if test "$PACKAGE" = "gettext"; then
3114 GT_NO="#NO#"
3115 GT_YES=
3116 else
3117 GT_NO=
3118 GT_YES="#YES#"
3119 fi
3120
3121
3122
3123 MKINSTALLDIRS=
3124 if test -n "$ac_aux_dir"; then
3125 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
3126 fi
3127 if test -z "$MKINSTALLDIRS"; then
3128 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3129 fi
3130
3131
3132 l=
3133
3134
3135 test -d po || mkdir po
3136 if test "x$srcdir" != "x."; then
3137 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
3138 posrcprefix="$srcdir/"
3139 else
3140 posrcprefix="../$srcdir/"
3141 fi
3142 else
3143 posrcprefix="../"
3144 fi
3145 rm -f po/POTFILES
3146 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
3147 < $srcdir/po/POTFILES.in > po/POTFILES
3148
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003149# Check whether --enable-profile or --disable-profile was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003150if test "${enable_profile+set}" = set; then
3151 enableval="$enable_profile"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003152 if test "$enableval" = "no"
3153then
3154 PROFILE_CMT=#
3155 MAKEFILE_PROFILE=/dev/null
3156 echo "Disabling profiling libraries"
3157else
3158 PROFILE_CMT=
3159 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003160 PROFILED_LIB_EXT=_p.a
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003161 echo "Building profiling libraries"
3162fi
3163
3164else
3165 PROFILE_CMT=#
3166MAKEFILE_PROFILE=/dev/null
3167echo "Disabling profiling libraries by default"
3168
3169fi
3170
3171
3172
3173# Check whether --enable-checker or --disable-checker was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003174if test "${enable_checker+set}" = set; then
3175 enableval="$enable_checker"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003176 if test "$enableval" = "no"
3177then
3178 CHECKER_CMT=#
3179 MAKEFILE_CHECKER=/dev/null
3180 echo "Disabling checker libraries"
3181else
3182 CHECKER_CMT=
3183 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
3184 echo "Building checker libraries"
3185fi
3186
3187else
3188 CHECKER_CMT=#
3189MAKEFILE_CHECKER=/dev/null
3190echo "Disabling checker libraries by default"
3191
3192fi
3193
3194
3195
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003196
3197
3198
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003199# Check whether --enable-dynamic-e2fsck or --disable-dynamic-e2fsck was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003200if test "${enable_dynamic_e2fsck+set}" = set; then
3201 enableval="$enable_dynamic_e2fsck"
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003202 if test "$enableval" = "no"
3203then
3204 E2FSCK_TYPE=static
3205 echo "Building e2fsck statically"
3206else
3207 E2FSCK_TYPE=shared
3208 echo "Building e2fsck dynamically"
3209fi
3210
3211else
3212 E2FSCK_TYPE=static
3213echo "Building e2fsck statically by default"
3214
3215fi
3216
3217
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00003218# Check whether --enable-fsck or --disable-fsck was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003219if test "${enable_fsck+set}" = set; then
3220 enableval="$enable_fsck"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00003221 if test "$enableval" = "no"
3222then
3223 FSCK_PROG='' FSCK_MAN=''
3224 echo "Not building fsck wrapper"
3225else
3226 FSCK_PROG=fsck FSCK_MAN=fsck.8
3227 echo "Building fsck wrapper"
3228fi
3229
3230else
3231 case "$host_os" in
3232 gnu*)
3233 FSCK_PROG='' FSCK_MAN=''
3234 echo "Not building fsck wrapper by default"
3235 ;;
3236 *)
3237 FSCK_PROG=fsck FSCK_MAN=fsck.8
3238 echo "Building fsck wrapper by default"
3239esac
3240
3241fi
3242
3243
3244
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003245MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
3246
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00003247# Check whether --enable-old-bitops or --disable-old-bitops was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003248if test "${enable_old_bitops+set}" = set; then
3249 enableval="$enable_old_bitops"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00003250 if test "$enableval" = "no"
3251then
3252 echo "Using new (standard) bitmask operations"
3253else
3254 cat >> confdefs.h <<\EOF
3255#define EXT2_OLD_BITOPS 1
3256EOF
3257
3258 echo "Using old (native) bitmask operations"
3259
3260fi
3261
3262else
3263 echo "Using standard bitmask operations by default"
3264
3265fi
3266
Theodore Ts'o74becf31997-04-26 14:37:06 +00003267
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003268echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +00003269echo "configure:3270: checking whether ${MAKE-make} sets \${MAKE}" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003270set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003271if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
3272 echo $ac_n "(cached) $ac_c" 1>&6
3273else
3274 cat > conftestmake <<\EOF
3275all:
3276 @echo 'ac_maketemp="${MAKE}"'
3277EOF
3278# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3279eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
3280if test -n "$ac_maketemp"; then
3281 eval ac_cv_prog_make_${ac_make}_set=yes
3282else
3283 eval ac_cv_prog_make_${ac_make}_set=no
3284fi
3285rm -f conftestmake
3286fi
3287if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3288 echo "$ac_t""yes" 1>&6
3289 SET_MAKE=
3290else
3291 echo "$ac_t""no" 1>&6
3292 SET_MAKE="MAKE=${MAKE-make}"
3293fi
3294
3295# Extract the first word of "ln", so it can be a program name with args.
3296set dummy ln; ac_word=$2
3297echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +00003298echo "configure:3299: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003299if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then
3300 echo $ac_n "(cached) $ac_c" 1>&6
3301else
3302 case "$LN" in
3303 /*)
3304 ac_cv_path_LN="$LN" # Let the user override the test with a path.
3305 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003306 ?:/*)
3307 ac_cv_path_LN="$LN" # Let the user override the test with a dos path.
3308 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003309 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003310 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3311 ac_dummy="$PATH"
3312 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003313 test -z "$ac_dir" && ac_dir=.
3314 if test -f $ac_dir/$ac_word; then
3315 ac_cv_path_LN="$ac_dir/$ac_word"
3316 break
3317 fi
3318 done
3319 IFS="$ac_save_ifs"
3320 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
3321 ;;
3322esac
3323fi
3324LN="$ac_cv_path_LN"
3325if test -n "$LN"; then
3326 echo "$ac_t""$LN" 1>&6
3327else
3328 echo "$ac_t""no" 1>&6
3329fi
3330
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00003331echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +00003332echo "configure:3333: checking whether ln -s works" >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00003333if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
3334 echo $ac_n "(cached) $ac_c" 1>&6
3335else
3336 rm -f conftestdata
3337if ln -s X conftestdata 2>/dev/null
3338then
3339 rm -f conftestdata
3340 ac_cv_prog_LN_S="ln -s"
3341else
3342 ac_cv_prog_LN_S=ln
3343fi
3344fi
3345LN_S="$ac_cv_prog_LN_S"
3346if test "$ac_cv_prog_LN_S" = "ln -s"; then
3347 echo "$ac_t""yes" 1>&6
3348else
3349 echo "$ac_t""no" 1>&6
3350fi
3351
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003352# Extract the first word of "mv", so it can be a program name with args.
3353set dummy mv; ac_word=$2
3354echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +00003355echo "configure:3356: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003356if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
3357 echo $ac_n "(cached) $ac_c" 1>&6
3358else
3359 case "$MV" in
3360 /*)
3361 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3362 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003363 ?:/*)
3364 ac_cv_path_MV="$MV" # Let the user override the test with a dos path.
3365 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003366 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003367 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3368 ac_dummy="$PATH"
3369 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003370 test -z "$ac_dir" && ac_dir=.
3371 if test -f $ac_dir/$ac_word; then
3372 ac_cv_path_MV="$ac_dir/$ac_word"
3373 break
3374 fi
3375 done
3376 IFS="$ac_save_ifs"
3377 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3378 ;;
3379esac
3380fi
3381MV="$ac_cv_path_MV"
3382if test -n "$MV"; then
3383 echo "$ac_t""$MV" 1>&6
3384else
3385 echo "$ac_t""no" 1>&6
3386fi
3387
3388# Extract the first word of "cp", so it can be a program name with args.
3389set dummy cp; ac_word=$2
3390echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +00003391echo "configure:3392: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003392if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then
3393 echo $ac_n "(cached) $ac_c" 1>&6
3394else
3395 case "$CP" in
3396 /*)
3397 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3398 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003399 ?:/*)
3400 ac_cv_path_CP="$CP" # Let the user override the test with a dos path.
3401 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003402 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003403 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3404 ac_dummy="$PATH"
3405 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003406 test -z "$ac_dir" && ac_dir=.
3407 if test -f $ac_dir/$ac_word; then
3408 ac_cv_path_CP="$ac_dir/$ac_word"
3409 break
3410 fi
3411 done
3412 IFS="$ac_save_ifs"
3413 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3414 ;;
3415esac
3416fi
3417CP="$ac_cv_path_CP"
3418if test -n "$CP"; then
3419 echo "$ac_t""$CP" 1>&6
3420else
3421 echo "$ac_t""no" 1>&6
3422fi
3423
3424# Extract the first word of "rm", so it can be a program name with args.
3425set dummy rm; ac_word=$2
3426echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +00003427echo "configure:3428: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003428if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
3429 echo $ac_n "(cached) $ac_c" 1>&6
3430else
3431 case "$RM" in
3432 /*)
3433 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3434 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003435 ?:/*)
3436 ac_cv_path_RM="$RM" # Let the user override the test with a dos path.
3437 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003438 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003439 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3440 ac_dummy="$PATH"
3441 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003442 test -z "$ac_dir" && ac_dir=.
3443 if test -f $ac_dir/$ac_word; then
3444 ac_cv_path_RM="$ac_dir/$ac_word"
3445 break
3446 fi
3447 done
3448 IFS="$ac_save_ifs"
3449 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3450 ;;
3451esac
3452fi
3453RM="$ac_cv_path_RM"
3454if test -n "$RM"; then
3455 echo "$ac_t""$RM" 1>&6
3456else
3457 echo "$ac_t""no" 1>&6
3458fi
3459
3460# Extract the first word of "chmod", so it can be a program name with args.
3461set dummy chmod; ac_word=$2
3462echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +00003463echo "configure:3464: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003464if eval "test \"`echo '$''{'ac_cv_path_CHMOD'+set}'`\" = set"; then
3465 echo $ac_n "(cached) $ac_c" 1>&6
3466else
3467 case "$CHMOD" in
3468 /*)
3469 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
3470 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003471 ?:/*)
3472 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a dos path.
3473 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003474 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003475 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3476 ac_dummy="$PATH"
3477 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003478 test -z "$ac_dir" && ac_dir=.
3479 if test -f $ac_dir/$ac_word; then
3480 ac_cv_path_CHMOD="$ac_dir/$ac_word"
3481 break
3482 fi
3483 done
3484 IFS="$ac_save_ifs"
3485 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
3486 ;;
3487esac
3488fi
3489CHMOD="$ac_cv_path_CHMOD"
3490if test -n "$CHMOD"; then
3491 echo "$ac_t""$CHMOD" 1>&6
3492else
3493 echo "$ac_t""no" 1>&6
3494fi
3495
3496# Extract the first word of "awk", so it can be a program name with args.
3497set dummy awk; ac_word=$2
3498echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +00003499echo "configure:3500: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003500if eval "test \"`echo '$''{'ac_cv_path_AWK'+set}'`\" = set"; then
3501 echo $ac_n "(cached) $ac_c" 1>&6
3502else
3503 case "$AWK" in
3504 /*)
3505 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3506 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003507 ?:/*)
3508 ac_cv_path_AWK="$AWK" # Let the user override the test with a dos path.
3509 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003510 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003511 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3512 ac_dummy="$PATH"
3513 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003514 test -z "$ac_dir" && ac_dir=.
3515 if test -f $ac_dir/$ac_word; then
3516 ac_cv_path_AWK="$ac_dir/$ac_word"
3517 break
3518 fi
3519 done
3520 IFS="$ac_save_ifs"
3521 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3522 ;;
3523esac
3524fi
3525AWK="$ac_cv_path_AWK"
3526if test -n "$AWK"; then
3527 echo "$ac_t""$AWK" 1>&6
3528else
3529 echo "$ac_t""no" 1>&6
3530fi
3531
3532# Extract the first word of "sed", so it can be a program name with args.
3533set dummy sed; ac_word=$2
3534echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +00003535echo "configure:3536: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003536if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then
3537 echo $ac_n "(cached) $ac_c" 1>&6
3538else
3539 case "$SED" in
3540 /*)
3541 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3542 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003543 ?:/*)
3544 ac_cv_path_SED="$SED" # Let the user override the test with a dos path.
3545 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003546 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003547 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3548 ac_dummy="$PATH"
3549 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003550 test -z "$ac_dir" && ac_dir=.
3551 if test -f $ac_dir/$ac_word; then
3552 ac_cv_path_SED="$ac_dir/$ac_word"
3553 break
3554 fi
3555 done
3556 IFS="$ac_save_ifs"
3557 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3558 ;;
3559esac
3560fi
3561SED="$ac_cv_path_SED"
3562if test -n "$SED"; then
3563 echo "$ac_t""$SED" 1>&6
3564else
3565 echo "$ac_t""no" 1>&6
3566fi
3567
Theodore Ts'o9d564f71999-07-03 20:25:58 +00003568# Extract the first word of "perl", so it can be a program name with args.
3569set dummy perl; ac_word=$2
3570echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +00003571echo "configure:3572: checking for $ac_word" >&5
Theodore Ts'o9d564f71999-07-03 20:25:58 +00003572if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
3573 echo $ac_n "(cached) $ac_c" 1>&6
3574else
3575 case "$PERL" in
3576 /*)
3577 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3578 ;;
3579 ?:/*)
3580 ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
3581 ;;
3582 *)
3583 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3584 ac_dummy="$PATH"
3585 for ac_dir in $ac_dummy; do
3586 test -z "$ac_dir" && ac_dir=.
3587 if test -f $ac_dir/$ac_word; then
3588 ac_cv_path_PERL="$ac_dir/$ac_word"
3589 break
3590 fi
3591 done
3592 IFS="$ac_save_ifs"
3593 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
3594 ;;
3595esac
3596fi
3597PERL="$ac_cv_path_PERL"
3598if test -n "$PERL"; then
3599 echo "$ac_t""$PERL" 1>&6
3600else
3601 echo "$ac_t""no" 1>&6
3602fi
3603
Theodore Ts'o250f79f2001-05-19 22:02:22 +00003604# Extract the first word of "ldconfig", so it can be a program name with args.
3605set dummy ldconfig; ac_word=$2
3606echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3607echo "configure:3608: checking for $ac_word" >&5
3608if eval "test \"`echo '$''{'ac_cv_path_LDCONFIG'+set}'`\" = set"; then
3609 echo $ac_n "(cached) $ac_c" 1>&6
3610else
3611 case "$LDCONFIG" in
3612 /*)
3613 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
3614 ;;
3615 ?:/*)
3616 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a dos path.
3617 ;;
3618 *)
3619 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3620 ac_dummy="$PATH"
3621 for ac_dir in $ac_dummy; do
3622 test -z "$ac_dir" && ac_dir=.
3623 if test -f $ac_dir/$ac_word; then
3624 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
3625 break
3626 fi
3627 done
3628 IFS="$ac_save_ifs"
3629 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
3630 ;;
3631esac
3632fi
3633LDCONFIG="$ac_cv_path_LDCONFIG"
3634if test -n "$LDCONFIG"; then
3635 echo "$ac_t""$LDCONFIG" 1>&6
3636else
3637 echo "$ac_t""no" 1>&6
3638fi
3639
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003640echo $ac_n "checking build system type""... $ac_c" 1>&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +00003641echo "configure:3642: checking build system type" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003642
3643build_alias=$build
3644case "$build_alias" in
3645NONE)
3646 case $nonopt in
3647 NONE) build_alias=$host_alias ;;
3648 *) build_alias=$nonopt ;;
3649 esac ;;
3650esac
3651
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003652build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003653build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3654build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3655build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003656echo "$ac_t""$build" 1>&6
3657
3658if test $host != $build; then
3659 ac_tool_prefix=${host_alias}-
3660else
3661 ac_tool_prefix=
3662fi
3663
3664# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3665set dummy ${ac_tool_prefix}ar; ac_word=$2
3666echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +00003667echo "configure:3668: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003668if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3669 echo $ac_n "(cached) $ac_c" 1>&6
3670else
3671 if test -n "$AR"; then
3672 ac_cv_prog_AR="$AR" # Let the user override the test.
3673else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003674 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3675 ac_dummy="$PATH"
3676 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003677 test -z "$ac_dir" && ac_dir=.
3678 if test -f $ac_dir/$ac_word; then
3679 ac_cv_prog_AR="${ac_tool_prefix}ar"
3680 break
3681 fi
3682 done
3683 IFS="$ac_save_ifs"
3684fi
3685fi
3686AR="$ac_cv_prog_AR"
3687if test -n "$AR"; then
3688 echo "$ac_t""$AR" 1>&6
3689else
3690 echo "$ac_t""no" 1>&6
3691fi
3692
3693
3694if test -z "$ac_cv_prog_AR"; then
3695if test -n "$ac_tool_prefix"; then
3696 # Extract the first word of "ar", so it can be a program name with args.
3697set dummy ar; ac_word=$2
3698echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +00003699echo "configure:3700: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003700if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3701 echo $ac_n "(cached) $ac_c" 1>&6
3702else
3703 if test -n "$AR"; then
3704 ac_cv_prog_AR="$AR" # Let the user override the test.
3705else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003706 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3707 ac_dummy="$PATH"
3708 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003709 test -z "$ac_dir" && ac_dir=.
3710 if test -f $ac_dir/$ac_word; then
3711 ac_cv_prog_AR="ar"
3712 break
3713 fi
3714 done
3715 IFS="$ac_save_ifs"
3716 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
3717fi
3718fi
3719AR="$ac_cv_prog_AR"
3720if test -n "$AR"; then
3721 echo "$ac_t""$AR" 1>&6
3722else
3723 echo "$ac_t""no" 1>&6
3724fi
3725
3726else
3727 AR="ar"
3728fi
3729fi
3730
3731# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3732set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3733echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +00003734echo "configure:3735: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003735if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3736 echo $ac_n "(cached) $ac_c" 1>&6
3737else
3738 if test -n "$RANLIB"; then
3739 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3740else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003741 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3742 ac_dummy="$PATH"
3743 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003744 test -z "$ac_dir" && ac_dir=.
3745 if test -f $ac_dir/$ac_word; then
3746 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3747 break
3748 fi
3749 done
3750 IFS="$ac_save_ifs"
3751fi
3752fi
3753RANLIB="$ac_cv_prog_RANLIB"
3754if test -n "$RANLIB"; then
3755 echo "$ac_t""$RANLIB" 1>&6
3756else
3757 echo "$ac_t""no" 1>&6
3758fi
3759
3760
3761if test -z "$ac_cv_prog_RANLIB"; then
3762if test -n "$ac_tool_prefix"; then
3763 # Extract the first word of "ranlib", so it can be a program name with args.
3764set dummy ranlib; ac_word=$2
3765echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +00003766echo "configure:3767: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003767if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3768 echo $ac_n "(cached) $ac_c" 1>&6
3769else
3770 if test -n "$RANLIB"; then
3771 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3772else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003773 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3774 ac_dummy="$PATH"
3775 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003776 test -z "$ac_dir" && ac_dir=.
3777 if test -f $ac_dir/$ac_word; then
3778 ac_cv_prog_RANLIB="ranlib"
3779 break
3780 fi
3781 done
3782 IFS="$ac_save_ifs"
3783 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3784fi
3785fi
3786RANLIB="$ac_cv_prog_RANLIB"
3787if test -n "$RANLIB"; then
3788 echo "$ac_t""$RANLIB" 1>&6
3789else
3790 echo "$ac_t""no" 1>&6
3791fi
3792
3793else
3794 RANLIB=":"
3795fi
3796fi
3797
3798# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3799set dummy ${ac_tool_prefix}strip; ac_word=$2
3800echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +00003801echo "configure:3802: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003802if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
3803 echo $ac_n "(cached) $ac_c" 1>&6
3804else
3805 if test -n "$STRIP"; then
3806 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3807else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003808 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3809 ac_dummy="$PATH"
3810 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003811 test -z "$ac_dir" && ac_dir=.
3812 if test -f $ac_dir/$ac_word; then
3813 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3814 break
3815 fi
3816 done
3817 IFS="$ac_save_ifs"
3818fi
3819fi
3820STRIP="$ac_cv_prog_STRIP"
3821if test -n "$STRIP"; then
3822 echo "$ac_t""$STRIP" 1>&6
3823else
3824 echo "$ac_t""no" 1>&6
3825fi
3826
3827
3828if test -z "$ac_cv_prog_STRIP"; then
3829if test -n "$ac_tool_prefix"; then
3830 # Extract the first word of "strip", so it can be a program name with args.
3831set dummy strip; ac_word=$2
3832echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +00003833echo "configure:3834: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003834if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
3835 echo $ac_n "(cached) $ac_c" 1>&6
3836else
3837 if test -n "$STRIP"; then
3838 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3839else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003840 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3841 ac_dummy="$PATH"
3842 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003843 test -z "$ac_dir" && ac_dir=.
3844 if test -f $ac_dir/$ac_word; then
3845 ac_cv_prog_STRIP="strip"
3846 break
3847 fi
3848 done
3849 IFS="$ac_save_ifs"
3850 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
3851fi
3852fi
3853STRIP="$ac_cv_prog_STRIP"
3854if test -n "$STRIP"; then
3855 echo "$ac_t""$STRIP" 1>&6
3856else
3857 echo "$ac_t""no" 1>&6
3858fi
3859
3860else
3861 STRIP=":"
3862fi
3863fi
3864
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003865# Find a good install program. We prefer a C program (faster),
3866# so one script is as good as another. But avoid the broken or
3867# incompatible versions:
3868# SysV /etc/install, /usr/sbin/install
3869# SunOS /usr/etc/install
3870# IRIX /sbin/install
3871# AIX /bin/install
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003872# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003873# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3874# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3875# ./install, which can be erroneously created by make from ./install.sh.
3876echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +00003877echo "configure:3878: checking for a BSD compatible install" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003878if test -z "$INSTALL"; then
3879if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3880 echo $ac_n "(cached) $ac_c" 1>&6
3881else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003882 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003883 for ac_dir in $PATH; do
3884 # Account for people who put trailing slashes in PATH elements.
3885 case "$ac_dir/" in
3886 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3887 *)
3888 # OSF1 and SCO ODT 3.0 have their own names for install.
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003889 # Don't use installbsd from OSF since it installs stuff as root
3890 # by default.
3891 for ac_prog in ginstall scoinst install; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003892 if test -f $ac_dir/$ac_prog; then
3893 if test $ac_prog = install &&
3894 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3895 # AIX install. It has an incompatible calling convention.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003896 :
3897 else
3898 ac_cv_path_install="$ac_dir/$ac_prog -c"
3899 break 2
3900 fi
3901 fi
3902 done
3903 ;;
3904 esac
3905 done
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003906 IFS="$ac_save_IFS"
3907
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003908fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003909 if test "${ac_cv_path_install+set}" = set; then
3910 INSTALL="$ac_cv_path_install"
3911 else
3912 # As a last resort, use the slow shell script. We don't cache a
3913 # path for INSTALL within a source directory, because that will
3914 # break other packages using the cache if that directory is
3915 # removed, or if the path is relative.
3916 INSTALL="$ac_install_sh"
3917 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003918fi
3919echo "$ac_t""$INSTALL" 1>&6
3920
3921# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3922# It thinks the first close brace ends the variable substitution.
3923test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3924
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003925test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3926
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003927test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3928
Theodore Ts'o6c133521999-07-03 20:37:03 +00003929# See if we need a separate native compiler.
3930if test $cross_compiling = no; then
3931 BUILD_CC="$CC"
3932
3933else
3934 for ac_prog in gcc cc
3935do
3936# Extract the first word of "$ac_prog", so it can be a program name with args.
3937set dummy $ac_prog; ac_word=$2
3938echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +00003939echo "configure:3940: checking for $ac_word" >&5
Theodore Ts'o6c133521999-07-03 20:37:03 +00003940if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
3941 echo $ac_n "(cached) $ac_c" 1>&6
3942else
3943 if test -n "$BUILD_CC"; then
3944 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3945else
3946 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3947 ac_dummy="$PATH"
3948 for ac_dir in $ac_dummy; do
3949 test -z "$ac_dir" && ac_dir=.
3950 if test -f $ac_dir/$ac_word; then
3951 ac_cv_prog_BUILD_CC="$ac_prog"
3952 break
3953 fi
3954 done
3955 IFS="$ac_save_ifs"
3956fi
3957fi
3958BUILD_CC="$ac_cv_prog_BUILD_CC"
3959if test -n "$BUILD_CC"; then
3960 echo "$ac_t""$BUILD_CC" 1>&6
3961else
3962 echo "$ac_t""no" 1>&6
3963fi
3964
3965test -n "$BUILD_CC" && break
3966done
3967
3968fi
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00003969for ac_hdr in stdlib.h unistd.h stdarg.h errno.h malloc.h mntent.h paths.h dirent.h getopt.h setjmp.h signal.h termios.h linux/fd.h linux/major.h sys/disklabel.h sys/ioctl.h sys/mkdev.h sys/mount.h sys/sockio.h sys/sysmacros.h sys/time.h sys/stat.h sys/types.h net/if.h netinet/in.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003970do
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003971ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003972echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +00003973echo "configure:3974: checking for $ac_hdr" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003974if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3975 echo $ac_n "(cached) $ac_c" 1>&6
3976else
3977 cat > conftest.$ac_ext <<EOF
Theodore Ts'o250f79f2001-05-19 22:02:22 +00003978#line 3979 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003979#include "confdefs.h"
3980#include <$ac_hdr>
3981EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003982ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o250f79f2001-05-19 22:02:22 +00003983{ (eval echo configure:3984: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003984ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003985if test -z "$ac_err"; then
3986 rm -rf conftest*
3987 eval "ac_cv_header_$ac_safe=yes"
3988else
3989 echo "$ac_err" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003990 echo "configure: failed program was:" >&5
3991 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003992 rm -rf conftest*
3993 eval "ac_cv_header_$ac_safe=no"
3994fi
3995rm -f conftest*
3996fi
3997if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3998 echo "$ac_t""yes" 1>&6
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003999 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004000 cat >> confdefs.h <<EOF
4001#define $ac_tr_hdr 1
4002EOF
4003
4004else
4005 echo "$ac_t""no" 1>&6
4006fi
4007done
4008
4009echo $ac_n "checking for vprintf""... $ac_c" 1>&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004010echo "configure:4011: checking for vprintf" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004011if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
4012 echo $ac_n "(cached) $ac_c" 1>&6
4013else
4014 cat > conftest.$ac_ext <<EOF
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004015#line 4016 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004016#include "confdefs.h"
4017/* System header to define __stub macros and hopefully few prototypes,
4018 which can conflict with char vprintf(); below. */
4019#include <assert.h>
4020/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004021/* We use char because int might match the return type of a gcc2
4022 builtin and then its argument prototype would still apply. */
4023char vprintf();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004024
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004025int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004026
4027/* The GNU C library defines this for functions which it implements
4028 to always fail with ENOSYS. Some functions are actually named
4029 something starting with __ and the normal name is an alias. */
4030#if defined (__stub_vprintf) || defined (__stub___vprintf)
4031choke me
4032#else
4033vprintf();
4034#endif
4035
4036; return 0; }
4037EOF
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004038if { (eval echo configure:4039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004039 rm -rf conftest*
4040 eval "ac_cv_func_vprintf=yes"
4041else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004042 echo "configure: failed program was:" >&5
4043 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004044 rm -rf conftest*
4045 eval "ac_cv_func_vprintf=no"
4046fi
4047rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004048fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004049
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004050if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
4051 echo "$ac_t""yes" 1>&6
4052 cat >> confdefs.h <<\EOF
4053#define HAVE_VPRINTF 1
4054EOF
4055
4056else
4057 echo "$ac_t""no" 1>&6
4058fi
4059
4060if test "$ac_cv_func_vprintf" != yes; then
4061echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004062echo "configure:4063: checking for _doprnt" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004063if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
4064 echo $ac_n "(cached) $ac_c" 1>&6
4065else
4066 cat > conftest.$ac_ext <<EOF
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004067#line 4068 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004068#include "confdefs.h"
4069/* System header to define __stub macros and hopefully few prototypes,
4070 which can conflict with char _doprnt(); below. */
4071#include <assert.h>
4072/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004073/* We use char because int might match the return type of a gcc2
4074 builtin and then its argument prototype would still apply. */
4075char _doprnt();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004076
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004077int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004078
4079/* The GNU C library defines this for functions which it implements
4080 to always fail with ENOSYS. Some functions are actually named
4081 something starting with __ and the normal name is an alias. */
4082#if defined (__stub__doprnt) || defined (__stub____doprnt)
4083choke me
4084#else
4085_doprnt();
4086#endif
4087
4088; return 0; }
4089EOF
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004090if { (eval echo configure:4091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004091 rm -rf conftest*
4092 eval "ac_cv_func__doprnt=yes"
4093else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004094 echo "configure: failed program was:" >&5
4095 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004096 rm -rf conftest*
4097 eval "ac_cv_func__doprnt=no"
4098fi
4099rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004100fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004101
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004102if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
4103 echo "$ac_t""yes" 1>&6
4104 cat >> confdefs.h <<\EOF
4105#define HAVE_DOPRNT 1
4106EOF
4107
4108else
4109 echo "$ac_t""no" 1>&6
4110fi
4111
4112fi
4113
4114echo $ac_n "checking whether struct dirent has a d_namlen field""... $ac_c" 1>&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004115echo "configure:4116: checking whether struct dirent has a d_namlen field" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004116if eval "test \"`echo '$''{'e2fsprogs_cv_struct_d_namlen'+set}'`\" = set"; then
4117 echo $ac_n "(cached) $ac_c" 1>&6
4118else
4119 cat > conftest.$ac_ext <<EOF
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004120#line 4121 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004121#include "confdefs.h"
4122#include <sys/types.h>
4123#include <dirent.h>
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004124int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004125struct dirent de; de.d_namlen = 0;
4126; return 0; }
4127EOF
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004128if { (eval echo configure:4129: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004129 rm -rf conftest*
4130 e2fsprogs_cv_struct_d_namlen=yes
4131else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004132 echo "configure: failed program was:" >&5
4133 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004134 rm -rf conftest*
4135 e2fsprogs_cv_struct_d_namlen=no
4136fi
4137rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004138fi
4139
4140echo "$ac_t""$e2fsprogs_cv_struct_d_namlen" 1>&6
4141if test "$e2fsprogs_cv_struct_d_namlen" = yes; then
4142 cat >> confdefs.h <<\EOF
4143#define HAVE_DIRENT_NAMLEN 1
4144EOF
4145
4146fi
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00004147echo $ac_n "checking whether llseek declared in unistd.h""... $ac_c" 1>&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004148echo "configure:4149: checking whether llseek declared in unistd.h" >&5
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00004149if eval "test \"`echo '$''{'e2fsprogs_cv_have_llseek_prototype'+set}'`\" = set"; then
4150 echo $ac_n "(cached) $ac_c" 1>&6
4151else
4152 cat > conftest.$ac_ext <<EOF
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004153#line 4154 "configure"
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00004154#include "confdefs.h"
4155#include <unistd.h>
4156int main() {
4157extern int llseek(int);
4158; return 0; }
4159EOF
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004160if { (eval echo configure:4161: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00004161 rm -rf conftest*
4162 e2fsprogs_cv_have_llseek_prototype=no
4163else
4164 echo "configure: failed program was:" >&5
4165 cat conftest.$ac_ext >&5
4166 rm -rf conftest*
4167 e2fsprogs_cv_have_llseek_prototype=yes
4168fi
4169rm -f conftest*
4170fi
4171
4172echo "$ac_t""$e2fsprogs_cv_have_llseek_prototype" 1>&6
4173if test "$e2fsprogs_cv_have_llseek_prototype" = yes; then
4174 cat >> confdefs.h <<\EOF
4175#define HAVE_LLSEEK_PROTOTYPE 1
4176EOF
4177
4178fi
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004179echo $ac_n "checking whether lseek64 declared in unistd.h""... $ac_c" 1>&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004180echo "configure:4181: checking whether lseek64 declared in unistd.h" >&5
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004181if eval "test \"`echo '$''{'e2fsprogs_cv_have_lseek64_prototype'+set}'`\" = set"; then
4182 echo $ac_n "(cached) $ac_c" 1>&6
4183else
4184 cat > conftest.$ac_ext <<EOF
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004185#line 4186 "configure"
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004186#include "confdefs.h"
4187#define _LARGEFILE_SOURCE
4188#define _LARGEFILE64_SOURCE
4189#include <unistd.h>
4190int main() {
4191extern int lseek64(int);
4192; return 0; }
4193EOF
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004194if { (eval echo configure:4195: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004195 rm -rf conftest*
4196 e2fsprogs_cv_have_lseek64_prototype=no
4197else
4198 echo "configure: failed program was:" >&5
4199 cat conftest.$ac_ext >&5
4200 rm -rf conftest*
4201 e2fsprogs_cv_have_lseek64_prototype=yes
4202fi
4203rm -f conftest*
4204fi
4205
4206echo "$ac_t""$e2fsprogs_cv_have_lseek64_prototype" 1>&6
4207if test "$e2fsprogs_cv_have_lseek64_prototype" = yes; then
4208 cat >> confdefs.h <<\EOF
4209#define HAVE_LSEEK64_PROTOTYPE 1
4210EOF
4211
4212fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004213if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
4214 # if cross-compiling, with no cached values, just assume something common.
4215 ac_cv_sizeof_short=2
4216 ac_cv_sizeof_int=4
4217 ac_cv_sizeof_long=4
Theodore Ts'o6c133521999-07-03 20:37:03 +00004218 ac_cv_sizeof_long_long=8
4219 echo "configure: warning: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" 1>&2
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004220fi
4221echo $ac_n "checking size of short""... $ac_c" 1>&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004222echo "configure:4223: checking size of short" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004223if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
4224 echo $ac_n "(cached) $ac_c" 1>&6
4225else
4226 if test "$cross_compiling" = yes; then
4227 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4228else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004229 cat > conftest.$ac_ext <<EOF
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004230#line 4231 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004231#include "confdefs.h"
4232#include <stdio.h>
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004233#include <sys/types.h>
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004234main()
4235{
4236 FILE *f=fopen("conftestval", "w");
4237 if (!f) exit(1);
4238 fprintf(f, "%d\n", sizeof(short));
4239 exit(0);
4240}
4241EOF
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004242if { (eval echo configure:4243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004243then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004244 ac_cv_sizeof_short=`cat conftestval`
4245else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004246 echo "configure: failed program was:" >&5
4247 cat conftest.$ac_ext >&5
4248 rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004249 ac_cv_sizeof_short=0
4250fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004251rm -fr conftest*
4252fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004253
4254fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004255echo "$ac_t""$ac_cv_sizeof_short" 1>&6
4256cat >> confdefs.h <<EOF
4257#define SIZEOF_SHORT $ac_cv_sizeof_short
4258EOF
4259
4260
4261echo $ac_n "checking size of int""... $ac_c" 1>&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004262echo "configure:4263: checking size of int" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004263if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
4264 echo $ac_n "(cached) $ac_c" 1>&6
4265else
4266 if test "$cross_compiling" = yes; then
4267 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4268else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004269 cat > conftest.$ac_ext <<EOF
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004270#line 4271 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004271#include "confdefs.h"
4272#include <stdio.h>
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004273#include <sys/types.h>
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004274main()
4275{
4276 FILE *f=fopen("conftestval", "w");
4277 if (!f) exit(1);
4278 fprintf(f, "%d\n", sizeof(int));
4279 exit(0);
4280}
4281EOF
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004282if { (eval echo configure:4283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004283then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004284 ac_cv_sizeof_int=`cat conftestval`
4285else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004286 echo "configure: failed program was:" >&5
4287 cat conftest.$ac_ext >&5
4288 rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004289 ac_cv_sizeof_int=0
4290fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004291rm -fr conftest*
4292fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004293
4294fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004295echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4296cat >> confdefs.h <<EOF
4297#define SIZEOF_INT $ac_cv_sizeof_int
4298EOF
4299
4300
4301echo $ac_n "checking size of long""... $ac_c" 1>&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004302echo "configure:4303: checking size of long" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004303if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
4304 echo $ac_n "(cached) $ac_c" 1>&6
4305else
4306 if test "$cross_compiling" = yes; then
4307 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4308else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004309 cat > conftest.$ac_ext <<EOF
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004310#line 4311 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004311#include "confdefs.h"
4312#include <stdio.h>
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004313#include <sys/types.h>
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004314main()
4315{
4316 FILE *f=fopen("conftestval", "w");
4317 if (!f) exit(1);
4318 fprintf(f, "%d\n", sizeof(long));
4319 exit(0);
4320}
4321EOF
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004322if { (eval echo configure:4323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004323then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004324 ac_cv_sizeof_long=`cat conftestval`
4325else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004326 echo "configure: failed program was:" >&5
4327 cat conftest.$ac_ext >&5
4328 rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004329 ac_cv_sizeof_long=0
4330fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004331rm -fr conftest*
4332fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004333
4334fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004335echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4336cat >> confdefs.h <<EOF
4337#define SIZEOF_LONG $ac_cv_sizeof_long
4338EOF
4339
4340
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004341echo $ac_n "checking size of long long""... $ac_c" 1>&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004342echo "configure:4343: checking size of long long" >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004343if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
4344 echo $ac_n "(cached) $ac_c" 1>&6
4345else
4346 if test "$cross_compiling" = yes; then
4347 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4348else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004349 cat > conftest.$ac_ext <<EOF
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004350#line 4351 "configure"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004351#include "confdefs.h"
4352#include <stdio.h>
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004353#include <sys/types.h>
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004354main()
4355{
4356 FILE *f=fopen("conftestval", "w");
4357 if (!f) exit(1);
4358 fprintf(f, "%d\n", sizeof(long long));
4359 exit(0);
4360}
4361EOF
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004362if { (eval echo configure:4363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004363then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004364 ac_cv_sizeof_long_long=`cat conftestval`
4365else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004366 echo "configure: failed program was:" >&5
4367 cat conftest.$ac_ext >&5
4368 rm -fr conftest*
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004369 ac_cv_sizeof_long_long=0
4370fi
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004371rm -fr conftest*
4372fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004373
4374fi
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004375echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4376cat >> confdefs.h <<EOF
4377#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4378EOF
4379
4380
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004381SIZEOF_SHORT=$ac_cv_sizeof_short
4382SIZEOF_INT=$ac_cv_sizeof_int
4383SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004384SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
4385
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004386
4387
4388
4389echo $ac_n "checking whether struct stat has a st_flags field""... $ac_c" 1>&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004390echo "configure:4391: checking whether struct stat has a st_flags field" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004391if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags'+set}'`\" = set"; then
4392 echo $ac_n "(cached) $ac_c" 1>&6
4393else
4394 cat > conftest.$ac_ext <<EOF
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004395#line 4396 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004396#include "confdefs.h"
4397#include <sys/stat.h>
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004398int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004399struct stat stat; stat.st_flags = 0;
4400; return 0; }
4401EOF
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004402if { (eval echo configure:4403: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004403 rm -rf conftest*
4404 e2fsprogs_cv_struct_st_flags=yes
4405else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004406 echo "configure: failed program was:" >&5
4407 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004408 rm -rf conftest*
4409 e2fsprogs_cv_struct_st_flags=no
4410fi
4411rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004412fi
4413
4414echo "$ac_t""$e2fsprogs_cv_struct_st_flags" 1>&6
4415if test "$e2fsprogs_cv_struct_st_flags" = yes; then
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00004416 echo $ac_n "checking whether st_flags field is useful""... $ac_c" 1>&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004417echo "configure:4418: checking whether st_flags field is useful" >&5
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00004418 if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags_immut'+set}'`\" = set"; then
4419 echo $ac_n "(cached) $ac_c" 1>&6
4420else
4421 cat > conftest.$ac_ext <<EOF
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004422#line 4423 "configure"
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00004423#include "confdefs.h"
4424#include <sys/stat.h>
4425int main() {
4426struct stat stat; stat.st_flags |= UF_IMMUTABLE;
4427; return 0; }
4428EOF
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004429if { (eval echo configure:4430: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00004430 rm -rf conftest*
4431 e2fsprogs_cv_struct_st_flags_immut=yes
4432else
4433 echo "configure: failed program was:" >&5
4434 cat conftest.$ac_ext >&5
4435 rm -rf conftest*
4436 e2fsprogs_cv_struct_st_flags_immut=no
4437fi
4438rm -f conftest*
4439fi
4440
4441 echo "$ac_t""$e2fsprogs_cv_struct_st_flags_immut" 1>&6
4442 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
4443 cat >> confdefs.h <<\EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004444#define HAVE_STAT_FLAGS 1
4445EOF
4446
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00004447 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004448fi
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004449for ac_func in chflags getrusage llseek lseek64 open64 strdup getmntinfo strcasecmp srandom fchown mallinfo fdatasync
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004450do
4451echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004452echo "configure:4453: checking for $ac_func" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004453if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4454 echo $ac_n "(cached) $ac_c" 1>&6
4455else
4456 cat > conftest.$ac_ext <<EOF
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004457#line 4458 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004458#include "confdefs.h"
4459/* System header to define __stub macros and hopefully few prototypes,
4460 which can conflict with char $ac_func(); below. */
4461#include <assert.h>
4462/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004463/* We use char because int might match the return type of a gcc2
4464 builtin and then its argument prototype would still apply. */
4465char $ac_func();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004466
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004467int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004468
4469/* The GNU C library defines this for functions which it implements
4470 to always fail with ENOSYS. Some functions are actually named
4471 something starting with __ and the normal name is an alias. */
4472#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4473choke me
4474#else
4475$ac_func();
4476#endif
4477
4478; return 0; }
4479EOF
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004480if { (eval echo configure:4481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004481 rm -rf conftest*
4482 eval "ac_cv_func_$ac_func=yes"
4483else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004484 echo "configure: failed program was:" >&5
4485 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004486 rm -rf conftest*
4487 eval "ac_cv_func_$ac_func=no"
4488fi
4489rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004490fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004491
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004492if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4493 echo "$ac_t""yes" 1>&6
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004494 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004495 cat >> confdefs.h <<EOF
4496#define $ac_tr_func 1
4497EOF
4498
4499else
4500 echo "$ac_t""no" 1>&6
4501fi
4502done
4503
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004504SOCKET_LIB=''
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004505echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004506echo "configure:4507: checking for socket in -lsocket" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004507ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
4508if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004509 echo $ac_n "(cached) $ac_c" 1>&6
4510else
4511 ac_save_LIBS="$LIBS"
4512LIBS="-lsocket $LIBS"
4513cat > conftest.$ac_ext <<EOF
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004514#line 4515 "configure"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004515#include "confdefs.h"
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004516/* Override any gcc2 internal prototype to avoid an error. */
4517/* We use char because int might match the return type of a gcc2
4518 builtin and then its argument prototype would still apply. */
4519char socket();
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004520
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004521int main() {
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004522socket()
4523; return 0; }
4524EOF
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004525if { (eval echo configure:4526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004526 rm -rf conftest*
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004527 eval "ac_cv_lib_$ac_lib_var=yes"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004528else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004529 echo "configure: failed program was:" >&5
4530 cat conftest.$ac_ext >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004531 rm -rf conftest*
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004532 eval "ac_cv_lib_$ac_lib_var=no"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004533fi
4534rm -f conftest*
4535LIBS="$ac_save_LIBS"
4536
4537fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004538if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004539 echo "$ac_t""yes" 1>&6
4540 SOCKET_LIB=-lsocket
4541else
4542 echo "$ac_t""no" 1>&6
4543fi
4544
4545
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004546echo $ac_n "checking for optreset""... $ac_c" 1>&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004547echo "configure:4548: checking for optreset" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004548if eval "test \"`echo '$''{'ac_cv_have_optreset'+set}'`\" = set"; then
4549 echo $ac_n "(cached) $ac_c" 1>&6
4550else
4551 cat > conftest.$ac_ext <<EOF
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004552#line 4553 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004553#include "confdefs.h"
4554#include <unistd.h>
4555EOF
4556if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4557 egrep "optreset" >/dev/null 2>&1; then
4558 rm -rf conftest*
4559 ac_cv_have_optreset=yes
4560else
4561 rm -rf conftest*
4562 ac_cv_have_optreset=no
4563fi
4564rm -f conftest*
4565
4566fi
4567echo "$ac_t""$ac_cv_have_optreset" 1>&6
4568if test $ac_cv_have_optreset = yes; then
4569 cat >> confdefs.h <<\EOF
4570#define HAVE_OPTRESET 1
4571EOF
4572
4573fi
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +00004574case "$host_os" in
4575linux*)
4576 cat >> confdefs.h <<\EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004577#define HAVE_EXT2_IOCTLS 1
4578EOF
4579
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +00004580 ;;
4581esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004582case "$host_os" in
Theodore Ts'o6c133521999-07-03 20:37:03 +00004583linux* | gnu*)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004584 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
4585 root_prefix="";
4586 echo "On $host_os systems, root_prefix defaults to ''"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004587 fi
4588 ;;
4589esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004590case "$host_os" in
4591linux* | gnu*)
4592 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004593 prefix="/usr";
4594 echo "On $host_os systems, prefix defaults to /usr"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004595 fi
4596;;
4597esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004598if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +00004599 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004600 root_prefix="$ac_default_prefix"
4601 else
4602 root_prefix="$prefix"
4603 fi
4604fi
4605
Theodore Ts'oae851481997-04-29 18:13:24 +00004606echo $ac_n "checking whether linker accepts -static""... $ac_c" 1>&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004607echo "configure:4608: checking whether linker accepts -static" >&5
Theodore Ts'oae851481997-04-29 18:13:24 +00004608if eval "test \"`echo '$''{'ac_cv_e2fsprogs_use_static'+set}'`\" = set"; then
4609 echo $ac_n "(cached) $ac_c" 1>&6
4610else
4611 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
4612cat > conftest.$ac_ext <<EOF
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004613#line 4614 "configure"
Theodore Ts'oae851481997-04-29 18:13:24 +00004614#include "confdefs.h"
4615#include <stdio.h>
4616int main() {
4617fflush(stdout);
4618; return 0; }
4619EOF
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004620if { (eval echo configure:4621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oae851481997-04-29 18:13:24 +00004621 rm -rf conftest*
4622 ac_cv_e2fsprogs_use_static=yes
4623else
4624 echo "configure: failed program was:" >&5
4625 cat conftest.$ac_ext >&5
4626 rm -rf conftest*
4627 ac_cv_e2fsprogs_use_static=no
4628fi
4629rm -f conftest*
4630LDFLAGS=$SAVE_LDFLAGS
4631fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004632
Theodore Ts'odefde781999-01-04 07:39:19 +00004633case "$host_os" in
4634solaris2.*)
4635 ac_cv_e2fsprogs_use_static=no
4636;;
4637esac
Theodore Ts'oae851481997-04-29 18:13:24 +00004638echo "$ac_t""$ac_cv_e2fsprogs_use_static" 1>&6
Theodore Ts'o74becf31997-04-26 14:37:06 +00004639LDFLAG_STATIC=
Theodore Ts'oae851481997-04-29 18:13:24 +00004640if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004641 LDFLAG_STATIC=-static
Theodore Ts'oae851481997-04-29 18:13:24 +00004642fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004643
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004644SS_DIR=`cd ${srcdir}/lib/ss; pwd`
4645ET_DIR=`cd ${srcdir}/lib/et; pwd`
4646
4647
4648if test "$cross_compiling" = yes ; then
4649 DO_TEST_SUITE=
4650else
4651 DO_TEST_SUITE=check
4652fi
4653
4654test -d lib || mkdir lib
4655test -d include || mkdir include
4656test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +00004657test -d include/asm || mkdir include/asm
Theodore Ts'obc210071997-06-17 05:41:36 +00004658rmakefile=
4659if test -d ${srcdir}/resize ; then
4660 rmakefile=resize/Makefile
4661fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004662trap '' 1 2 15
4663cat > confcache <<\EOF
4664# This file is a shell script that caches the results of configure
4665# tests run on this system so they can be shared between configure
4666# scripts and configure runs. It is not useful on other systems.
4667# If it contains results you don't want to keep, you may remove or edit it.
4668#
4669# By default, configure uses ./config.cache as the cache file,
4670# creating it if it does not exist already. You can give configure
4671# the --cache-file=FILE option to use a different cache file; that is
4672# what configure does when it calls configure scripts in
4673# subdirectories, so they share the cache.
4674# Giving --cache-file=/dev/null disables caching, for debugging configure.
4675# config.status only pays attention to the cache file if you give it the
4676# --recheck option to rerun configure.
4677#
4678EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004679# The following way of writing the cache mishandles newlines in values,
4680# but we know of no workaround that is simple, portable, and efficient.
4681# So, don't put newlines in cache variables' values.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004682# Ultrix sh set writes to stderr and can't be redirected directly,
4683# and sets the high bit in the cache file unless we assign to the vars.
4684(set) 2>&1 |
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004685 case `(ac_space=' '; set | grep ac_space) 2>&1` in
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004686 *ac_space=\ *)
4687 # `set' does not quote correctly, so add quotes (double-quote substitution
4688 # turns \\\\ into \\, and sed turns \\ into \).
4689 sed -n \
4690 -e "s/'/'\\\\''/g" \
4691 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4692 ;;
4693 *)
4694 # `set' quotes correctly as required by POSIX, so do not add quotes.
4695 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4696 ;;
4697 esac >> confcache
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004698if cmp -s $cache_file confcache; then
4699 :
4700else
4701 if test -w $cache_file; then
4702 echo "updating cache $cache_file"
4703 cat confcache > $cache_file
4704 else
4705 echo "not updating unwritable cache $cache_file"
4706 fi
4707fi
4708rm -f confcache
4709
4710trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4711
4712test "x$prefix" = xNONE && prefix=$ac_default_prefix
4713# Let make expand exec_prefix.
4714test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4715
4716# Any assignment to VPATH causes Sun make to only execute
4717# the first set of double-colon rules, so remove it if not needed.
4718# If there is a colon in the path, we need to keep it.
4719if test "x$srcdir" = x.; then
4720 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4721fi
4722
4723trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4724
4725# Transform confdefs.h into DEFS.
4726# Protect against shell expansion while executing Makefile rules.
4727# Protect against Makefile macro expansion.
4728cat > conftest.defs <<\EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004729s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004730s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
4731s%\[%\\&%g
4732s%\]%\\&%g
4733s%\$%$$%g
4734EOF
4735DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
4736rm -f conftest.defs
4737
4738
4739# Without the "./", some shells look in PATH for config.status.
4740: ${CONFIG_STATUS=./config.status}
4741
4742echo creating $CONFIG_STATUS
4743rm -f $CONFIG_STATUS
4744cat > $CONFIG_STATUS <<EOF
4745#! /bin/sh
4746# Generated automatically by configure.
4747# Run this file to recreate the current configuration.
4748# This directory was configured as follows,
4749# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4750#
4751# $0 $ac_configure_args
4752#
4753# Compiler output produced by configure, useful for debugging
4754# configure, is in ./config.log if it exists.
4755
4756ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4757for ac_option
4758do
4759 case "\$ac_option" in
4760 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4761 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4762 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4763 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004764 echo "$CONFIG_STATUS generated by autoconf version 2.13"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004765 exit 0 ;;
4766 -help | --help | --hel | --he | --h)
4767 echo "\$ac_cs_usage"; exit 0 ;;
4768 *) echo "\$ac_cs_usage"; exit 1 ;;
4769 esac
4770done
4771
4772ac_given_srcdir=$srcdir
4773ac_given_INSTALL="$INSTALL"
4774
Theodore Ts'o44339bd1997-10-15 02:47:20 +00004775trap 'rm -fr `echo "MCONFIG Makefile util/Makefile util/subst.conf lib/et/Makefile
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004776 lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile lib/uuid/Makefile
4777 misc/Makefile e2fsck/Makefile debugfs/Makefile tests/Makefile
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004778 tests/progs/Makefile $rmakefile doc/Makefile
4779 intl/Makefile po/Makefile.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004780EOF
4781cat >> $CONFIG_STATUS <<EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004782
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004783# Protect against being on the right side of a sed subst in config.status.
4784sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4785 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004786$ac_vpsub
4787$extrasub
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004788s%@SHELL@%$SHELL%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004789s%@CFLAGS@%$CFLAGS%g
4790s%@CPPFLAGS@%$CPPFLAGS%g
4791s%@CXXFLAGS@%$CXXFLAGS%g
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004792s%@FFLAGS@%$FFLAGS%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004793s%@DEFS@%$DEFS%g
4794s%@LDFLAGS@%$LDFLAGS%g
4795s%@LIBS@%$LIBS%g
4796s%@exec_prefix@%$exec_prefix%g
4797s%@prefix@%$prefix%g
4798s%@program_transform_name@%$program_transform_name%g
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004799s%@bindir@%$bindir%g
4800s%@sbindir@%$sbindir%g
4801s%@libexecdir@%$libexecdir%g
4802s%@datadir@%$datadir%g
4803s%@sysconfdir@%$sysconfdir%g
4804s%@sharedstatedir@%$sharedstatedir%g
4805s%@localstatedir@%$localstatedir%g
4806s%@libdir@%$libdir%g
4807s%@includedir@%$includedir%g
4808s%@oldincludedir@%$oldincludedir%g
4809s%@infodir@%$infodir%g
4810s%@mandir@%$mandir%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004811/@MCONFIG@/r $MCONFIG
4812s%@MCONFIG@%%g
Theodore Ts'o74becf31997-04-26 14:37:06 +00004813s%@E2FSPROGS_YEAR@%$E2FSPROGS_YEAR%g
4814s%@E2FSPROGS_MONTH@%$E2FSPROGS_MONTH%g
4815s%@E2FSPROGS_VERSION@%$E2FSPROGS_VERSION%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004816s%@host@%$host%g
4817s%@host_alias@%$host_alias%g
4818s%@host_cpu@%$host_cpu%g
4819s%@host_vendor@%$host_vendor%g
4820s%@host_os@%$host_os%g
Theodore Ts'o74becf31997-04-26 14:37:06 +00004821s%@CC@%$CC%g
4822s%@LD@%$LD%g
4823s%@CCOPTS@%$CCOPTS%g
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004824s%@CPP@%$CPP%g
4825s%@LINUX_INCLUDE@%$LINUX_INCLUDE%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004826s%@DLL_CMT@%$DLL_CMT%g
4827/@MAKEFILE_DLL@/r $MAKEFILE_DLL
4828s%@MAKEFILE_DLL@%%g
4829s%@ELF_CMT@%$ELF_CMT%g
4830/@MAKEFILE_ELF@/r $MAKEFILE_ELF
4831s%@MAKEFILE_ELF@%%g
4832s%@BSDLIB_CMT@%$BSDLIB_CMT%g
4833/@MAKEFILE_BSDLIB@/r $MAKEFILE_BSDLIB
4834s%@MAKEFILE_BSDLIB@%%g
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004835s%@PACKAGE@%$PACKAGE%g
4836s%@VERSION@%$VERSION%g
4837s%@SET_MAKE@%$SET_MAKE%g
4838s%@RANLIB@%$RANLIB%g
4839s%@ALLOCA@%$ALLOCA%g
4840s%@USE_NLS@%$USE_NLS%g
4841s%@MSGFMT@%$MSGFMT%g
4842s%@GMSGFMT@%$GMSGFMT%g
4843s%@XGETTEXT@%$XGETTEXT%g
4844s%@GENCAT@%$GENCAT%g
4845s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
4846s%@CATALOGS@%$CATALOGS%g
4847s%@CATOBJEXT@%$CATOBJEXT%g
4848s%@DATADIRNAME@%$DATADIRNAME%g
4849s%@GMOFILES@%$GMOFILES%g
4850s%@INSTOBJEXT@%$INSTOBJEXT%g
4851s%@INTLDEPS@%$INTLDEPS%g
4852s%@INTLLIBS@%$INTLLIBS%g
4853s%@INTLOBJS@%$INTLOBJS%g
4854s%@POFILES@%$POFILES%g
4855s%@POSUB@%$POSUB%g
4856s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
4857s%@GT_NO@%$GT_NO%g
4858s%@GT_YES@%$GT_YES%g
4859s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
4860s%@l@%$l%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004861s%@PROFILE_CMT@%$PROFILE_CMT%g
4862/@MAKEFILE_PROFILE@/r $MAKEFILE_PROFILE
4863s%@MAKEFILE_PROFILE@%%g
4864s%@CHECKER_CMT@%$CHECKER_CMT%g
4865/@MAKEFILE_CHECKER@/r $MAKEFILE_CHECKER
4866s%@MAKEFILE_CHECKER@%%g
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004867s%@LIB_EXT@%$LIB_EXT%g
4868s%@STATIC_LIB_EXT@%$STATIC_LIB_EXT%g
4869s%@PROFILED_LIB_EXT@%$PROFILED_LIB_EXT%g
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004870s%@E2FSCK_TYPE@%$E2FSCK_TYPE%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004871s%@FSCK_PROG@%$FSCK_PROG%g
4872s%@FSCK_MAN@%$FSCK_MAN%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004873/@MAKEFILE_LIBRARY@/r $MAKEFILE_LIBRARY
4874s%@MAKEFILE_LIBRARY@%%g
Theodore Ts'o74becf31997-04-26 14:37:06 +00004875s%@BINARY_TYPE@%$BINARY_TYPE%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004876s%@LN@%$LN%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004877s%@LN_S@%$LN_S%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004878s%@MV@%$MV%g
4879s%@CP@%$CP%g
4880s%@RM@%$RM%g
4881s%@CHMOD@%$CHMOD%g
4882s%@AWK@%$AWK%g
4883s%@SED@%$SED%g
Theodore Ts'o9d564f71999-07-03 20:25:58 +00004884s%@PERL@%$PERL%g
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004885s%@LDCONFIG@%$LDCONFIG%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004886s%@build@%$build%g
4887s%@build_alias@%$build_alias%g
4888s%@build_cpu@%$build_cpu%g
4889s%@build_vendor@%$build_vendor%g
4890s%@build_os@%$build_os%g
4891s%@AR@%$AR%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004892s%@STRIP@%$STRIP%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004893s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004894s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004895s%@INSTALL_DATA@%$INSTALL_DATA%g
Theodore Ts'o6c133521999-07-03 20:37:03 +00004896s%@BUILD_CC@%$BUILD_CC%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004897s%@SIZEOF_SHORT@%$SIZEOF_SHORT%g
4898s%@SIZEOF_INT@%$SIZEOF_INT%g
4899s%@SIZEOF_LONG@%$SIZEOF_LONG%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004900s%@SIZEOF_LONG_LONG@%$SIZEOF_LONG_LONG%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004901s%@SOCKET_LIB@%$SOCKET_LIB%g
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004902s%@root_prefix@%$root_prefix%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004903s%@LDFLAG_STATIC@%$LDFLAG_STATIC%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004904s%@SS_DIR@%$SS_DIR%g
4905s%@ET_DIR@%$ET_DIR%g
4906s%@DO_TEST_SUITE@%$DO_TEST_SUITE%g
4907
4908CEOF
4909EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004910
4911cat >> $CONFIG_STATUS <<\EOF
4912
4913# Split the substitutions into bite-sized pieces for seds with
4914# small command number limits, like on Digital OSF/1 and HP-UX.
4915ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4916ac_file=1 # Number of current file.
4917ac_beg=1 # First line for current file.
4918ac_end=$ac_max_sed_cmds # Line after last line for current file.
4919ac_more_lines=:
4920ac_sed_cmds=""
4921while $ac_more_lines; do
4922 if test $ac_beg -gt 1; then
4923 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4924 else
4925 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4926 fi
4927 if test ! -s conftest.s$ac_file; then
4928 ac_more_lines=false
4929 rm -f conftest.s$ac_file
4930 else
4931 if test -z "$ac_sed_cmds"; then
4932 ac_sed_cmds="sed -f conftest.s$ac_file"
4933 else
4934 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4935 fi
4936 ac_file=`expr $ac_file + 1`
4937 ac_beg=$ac_end
4938 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4939 fi
4940done
4941if test -z "$ac_sed_cmds"; then
4942 ac_sed_cmds=cat
4943fi
4944EOF
4945
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004946cat >> $CONFIG_STATUS <<EOF
4947
Theodore Ts'o44339bd1997-10-15 02:47:20 +00004948CONFIG_FILES=\${CONFIG_FILES-"MCONFIG Makefile util/Makefile util/subst.conf lib/et/Makefile
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004949 lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile lib/uuid/Makefile
4950 misc/Makefile e2fsck/Makefile debugfs/Makefile tests/Makefile
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004951 tests/progs/Makefile $rmakefile doc/Makefile
4952 intl/Makefile po/Makefile.in"}
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004953EOF
4954cat >> $CONFIG_STATUS <<\EOF
4955for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004956 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004957 case "$ac_file" in
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004958 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004959 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4960 *) ac_file_in="${ac_file}.in" ;;
4961 esac
4962
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004963 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004964
4965 # Remove last slash and all that follows it. Not all systems have dirname.
4966 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4967 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4968 # The file is in a subdirectory.
4969 test ! -d "$ac_dir" && mkdir "$ac_dir"
4970 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4971 # A "../" for each directory in $ac_dir_suffix.
4972 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4973 else
4974 ac_dir_suffix= ac_dots=
4975 fi
4976
4977 case "$ac_given_srcdir" in
4978 .) srcdir=.
4979 if test -z "$ac_dots"; then top_srcdir=.
4980 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4981 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4982 *) # Relative path.
4983 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4984 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4985 esac
4986
4987 case "$ac_given_INSTALL" in
4988 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4989 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4990 esac
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004991
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004992 echo creating "$ac_file"
4993 rm -f "$ac_file"
4994 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4995 case "$ac_file" in
4996 *Makefile*) ac_comsub="1i\\
4997# $configure_input" ;;
4998 *) ac_comsub= ;;
4999 esac
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005000
5001 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 +00005002 sed -e "$ac_comsub
5003s%@configure_input@%$configure_input%g
5004s%@srcdir@%$srcdir%g
5005s%@top_srcdir@%$top_srcdir%g
5006s%@INSTALL@%$INSTALL%g
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005007" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005008fi; done
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005009rm -f conftest.s*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005010
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005011EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005012
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005013cat >> $CONFIG_STATUS <<EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005014ac_sources="$nls_cv_header_libgt"
5015ac_dests="$nls_cv_header_intl"
5016EOF
5017
5018cat >> $CONFIG_STATUS <<\EOF
5019srcdir=$ac_given_srcdir
5020while test -n "$ac_sources"; do
5021 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
5022 set $ac_sources; ac_source=$1; shift; ac_sources=$*
5023
5024 echo "linking $srcdir/$ac_source to $ac_dest"
5025
5026 if test ! -r $srcdir/$ac_source; then
5027 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
5028 fi
5029 rm -f $ac_dest
5030
5031 # Make relative symlinks.
5032 # Remove last slash and all that follows it. Not all systems have dirname.
5033 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
5034 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
5035 # The dest file is in a subdirectory.
5036 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
5037 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
5038 # A "../" for each directory in $ac_dest_dir_suffix.
5039 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
5040 else
5041 ac_dest_dir_suffix= ac_dots=
5042 fi
5043
5044 case "$srcdir" in
5045 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
5046 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
5047 esac
5048
5049 # Make a symlink if possible; otherwise try a hard link.
5050 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
5051 ln $srcdir/$ac_source $ac_dest; then :
5052 else
5053 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
5054 fi
5055done
5056EOF
5057cat >> $CONFIG_STATUS <<EOF
5058
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005059
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005060EOF
5061cat >> $CONFIG_STATUS <<\EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005062case "$CONFIG_FILES" in *po/Makefile.in*)
5063 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
5064 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005065
5066exit 0
5067EOF
5068chmod +x $CONFIG_STATUS
5069rm -fr confdefs* $ac_clean_files
5070test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
5071