blob: 7286ac332e5fb555a96d2c35f3c0eebeda326a89 [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'odb653a82001-02-08 02:18:52 +00001365typedef int charset[2]; const charset x = {0,0};
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'odb653a82001-02-08 02:18:52 +00001440} int $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'odb653a82001-02-08 02:18:52 +00001546void *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>
Theodore Ts'odb653a82001-02-08 02:18:52 +00001899#include <stdlib.h>
1900#include <sys/stat.h>
1901
1902#ifdef HAVE_UNISTD_H
1903# include <unistd.h>
1904#endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001905
1906/* This mess was copied from the GNU getpagesize.h. */
1907#ifndef HAVE_GETPAGESIZE
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001908
1909/* Assume that all systems that can run configure have sys/param.h. */
1910# ifndef HAVE_SYS_PARAM_H
1911# define HAVE_SYS_PARAM_H 1
1912# endif
1913
1914# ifdef _SC_PAGESIZE
1915# define getpagesize() sysconf(_SC_PAGESIZE)
1916# else /* no _SC_PAGESIZE */
1917# ifdef HAVE_SYS_PARAM_H
1918# include <sys/param.h>
1919# ifdef EXEC_PAGESIZE
1920# define getpagesize() EXEC_PAGESIZE
1921# else /* no EXEC_PAGESIZE */
1922# ifdef NBPG
1923# define getpagesize() NBPG * CLSIZE
1924# ifndef CLSIZE
1925# define CLSIZE 1
1926# endif /* no CLSIZE */
1927# else /* no NBPG */
1928# ifdef NBPC
1929# define getpagesize() NBPC
1930# else /* no NBPC */
1931# ifdef PAGESIZE
1932# define getpagesize() PAGESIZE
1933# endif /* PAGESIZE */
1934# endif /* no NBPC */
1935# endif /* no NBPG */
1936# endif /* no EXEC_PAGESIZE */
1937# else /* no HAVE_SYS_PARAM_H */
1938# define getpagesize() 8192 /* punt totally */
1939# endif /* no HAVE_SYS_PARAM_H */
1940# endif /* no _SC_PAGESIZE */
1941
1942#endif /* no HAVE_GETPAGESIZE */
1943
1944#ifdef __cplusplus
1945extern "C" { void *malloc(unsigned); }
1946#else
1947char *malloc();
1948#endif
1949
1950int
1951main()
1952{
1953 char *data, *data2, *data3;
1954 int i, pagesize;
1955 int fd;
1956
1957 pagesize = getpagesize();
1958
1959 /*
1960 * First, make a file with some known garbage in it.
1961 */
Theodore Ts'odb653a82001-02-08 02:18:52 +00001962 data = (char*)malloc(pagesize);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001963 if (!data)
1964 exit(1);
1965 for (i = 0; i < pagesize; ++i)
1966 *(data + i) = rand();
1967 umask(0);
1968 fd = creat("conftestmmap", 0600);
1969 if (fd < 0)
1970 exit(1);
1971 if (write(fd, data, pagesize) != pagesize)
1972 exit(1);
1973 close(fd);
1974
1975 /*
1976 * Next, try to mmap the file at a fixed address which
1977 * already has something else allocated at it. If we can,
1978 * also make sure that we see the same garbage.
1979 */
1980 fd = open("conftestmmap", O_RDWR);
1981 if (fd < 0)
1982 exit(1);
Theodore Ts'odb653a82001-02-08 02:18:52 +00001983 data2 = (char*)malloc(2 * pagesize);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001984 if (!data2)
1985 exit(1);
1986 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1987 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1988 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1989 exit(1);
1990 for (i = 0; i < pagesize; ++i)
1991 if (*(data + i) != *(data2 + i))
1992 exit(1);
1993
1994 /*
1995 * Finally, make sure that changes to the mapped area
1996 * do not percolate back to the file as seen by read().
1997 * (This is a bug on some variants of i386 svr4.0.)
1998 */
1999 for (i = 0; i < pagesize; ++i)
2000 *(data2 + i) = *(data2 + i) + 1;
Theodore Ts'odb653a82001-02-08 02:18:52 +00002001 data3 = (char*)malloc(pagesize);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002002 if (!data3)
2003 exit(1);
2004 if (read(fd, data3, pagesize) != pagesize)
2005 exit(1);
2006 for (i = 0; i < pagesize; ++i)
2007 if (*(data + i) != *(data3 + i))
2008 exit(1);
2009 close(fd);
2010 unlink("conftestmmap");
2011 exit(0);
2012}
2013
2014EOF
Theodore Ts'odb653a82001-02-08 02:18:52 +00002015if { (eval echo configure:2016: \"$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 +00002016then
2017 ac_cv_func_mmap_fixed_mapped=yes
2018else
2019 echo "configure: failed program was:" >&5
2020 cat conftest.$ac_ext >&5
2021 rm -fr conftest*
2022 ac_cv_func_mmap_fixed_mapped=no
2023fi
2024rm -fr conftest*
2025fi
2026
2027fi
2028
2029echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2030if test $ac_cv_func_mmap_fixed_mapped = yes; then
2031 cat >> confdefs.h <<\EOF
2032#define HAVE_MMAP 1
2033EOF
2034
2035fi
2036
2037
2038 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2039unistd.h sys/param.h
2040do
2041ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2042echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Theodore Ts'odb653a82001-02-08 02:18:52 +00002043echo "configure:2044: checking for $ac_hdr" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002044if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2045 echo $ac_n "(cached) $ac_c" 1>&6
2046else
2047 cat > conftest.$ac_ext <<EOF
Theodore Ts'odb653a82001-02-08 02:18:52 +00002048#line 2049 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002049#include "confdefs.h"
2050#include <$ac_hdr>
2051EOF
2052ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'odb653a82001-02-08 02:18:52 +00002053{ (eval echo configure:2054: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002054ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2055if test -z "$ac_err"; then
2056 rm -rf conftest*
2057 eval "ac_cv_header_$ac_safe=yes"
2058else
2059 echo "$ac_err" >&5
2060 echo "configure: failed program was:" >&5
2061 cat conftest.$ac_ext >&5
2062 rm -rf conftest*
2063 eval "ac_cv_header_$ac_safe=no"
2064fi
2065rm -f conftest*
2066fi
2067if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2068 echo "$ac_t""yes" 1>&6
2069 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2070 cat >> confdefs.h <<EOF
2071#define $ac_tr_hdr 1
2072EOF
2073
2074else
2075 echo "$ac_t""no" 1>&6
2076fi
2077done
2078
2079 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2080strdup __argz_count __argz_stringify __argz_next
2081do
2082echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'odb653a82001-02-08 02:18:52 +00002083echo "configure:2084: checking for $ac_func" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002084if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2085 echo $ac_n "(cached) $ac_c" 1>&6
2086else
2087 cat > conftest.$ac_ext <<EOF
Theodore Ts'odb653a82001-02-08 02:18:52 +00002088#line 2089 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002089#include "confdefs.h"
2090/* System header to define __stub macros and hopefully few prototypes,
2091 which can conflict with char $ac_func(); below. */
2092#include <assert.h>
2093/* Override any gcc2 internal prototype to avoid an error. */
2094/* We use char because int might match the return type of a gcc2
2095 builtin and then its argument prototype would still apply. */
2096char $ac_func();
2097
2098int main() {
2099
2100/* The GNU C library defines this for functions which it implements
2101 to always fail with ENOSYS. Some functions are actually named
2102 something starting with __ and the normal name is an alias. */
2103#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2104choke me
2105#else
2106$ac_func();
2107#endif
2108
2109; return 0; }
2110EOF
Theodore Ts'odb653a82001-02-08 02:18:52 +00002111if { (eval echo configure:2112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002112 rm -rf conftest*
2113 eval "ac_cv_func_$ac_func=yes"
2114else
2115 echo "configure: failed program was:" >&5
2116 cat conftest.$ac_ext >&5
2117 rm -rf conftest*
2118 eval "ac_cv_func_$ac_func=no"
2119fi
2120rm -f conftest*
2121fi
2122
2123if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2124 echo "$ac_t""yes" 1>&6
2125 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2126 cat >> confdefs.h <<EOF
2127#define $ac_tr_func 1
2128EOF
2129
2130else
2131 echo "$ac_t""no" 1>&6
2132fi
2133done
2134
2135
2136 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2137 for ac_func in stpcpy
2138do
2139echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'odb653a82001-02-08 02:18:52 +00002140echo "configure:2141: checking for $ac_func" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002141if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2142 echo $ac_n "(cached) $ac_c" 1>&6
2143else
2144 cat > conftest.$ac_ext <<EOF
Theodore Ts'odb653a82001-02-08 02:18:52 +00002145#line 2146 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002146#include "confdefs.h"
2147/* System header to define __stub macros and hopefully few prototypes,
2148 which can conflict with char $ac_func(); below. */
2149#include <assert.h>
2150/* Override any gcc2 internal prototype to avoid an error. */
2151/* We use char because int might match the return type of a gcc2
2152 builtin and then its argument prototype would still apply. */
2153char $ac_func();
2154
2155int main() {
2156
2157/* The GNU C library defines this for functions which it implements
2158 to always fail with ENOSYS. Some functions are actually named
2159 something starting with __ and the normal name is an alias. */
2160#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2161choke me
2162#else
2163$ac_func();
2164#endif
2165
2166; return 0; }
2167EOF
Theodore Ts'odb653a82001-02-08 02:18:52 +00002168if { (eval echo configure:2169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002169 rm -rf conftest*
2170 eval "ac_cv_func_$ac_func=yes"
2171else
2172 echo "configure: failed program was:" >&5
2173 cat conftest.$ac_ext >&5
2174 rm -rf conftest*
2175 eval "ac_cv_func_$ac_func=no"
2176fi
2177rm -f conftest*
2178fi
2179
2180if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2181 echo "$ac_t""yes" 1>&6
2182 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2183 cat >> confdefs.h <<EOF
2184#define $ac_tr_func 1
2185EOF
2186
2187else
2188 echo "$ac_t""no" 1>&6
2189fi
2190done
2191
2192 fi
2193 if test "${ac_cv_func_stpcpy}" = "yes"; then
2194 cat >> confdefs.h <<\EOF
2195#define HAVE_STPCPY 1
2196EOF
2197
2198 fi
2199
2200 if test $ac_cv_header_locale_h = yes; then
2201 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
Theodore Ts'odb653a82001-02-08 02:18:52 +00002202echo "configure:2203: checking for LC_MESSAGES" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002203if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2204 echo $ac_n "(cached) $ac_c" 1>&6
2205else
2206 cat > conftest.$ac_ext <<EOF
Theodore Ts'odb653a82001-02-08 02:18:52 +00002207#line 2208 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002208#include "confdefs.h"
2209#include <locale.h>
2210int main() {
2211return LC_MESSAGES
2212; return 0; }
2213EOF
Theodore Ts'odb653a82001-02-08 02:18:52 +00002214if { (eval echo configure:2215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002215 rm -rf conftest*
2216 am_cv_val_LC_MESSAGES=yes
2217else
2218 echo "configure: failed program was:" >&5
2219 cat conftest.$ac_ext >&5
2220 rm -rf conftest*
2221 am_cv_val_LC_MESSAGES=no
2222fi
2223rm -f conftest*
2224fi
2225
2226echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2227 if test $am_cv_val_LC_MESSAGES = yes; then
2228 cat >> confdefs.h <<\EOF
2229#define HAVE_LC_MESSAGES 1
2230EOF
2231
2232 fi
2233 fi
2234 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
Theodore Ts'odb653a82001-02-08 02:18:52 +00002235echo "configure:2236: checking whether NLS is requested" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002236 # Check whether --enable-nls or --disable-nls was given.
2237if test "${enable_nls+set}" = set; then
2238 enableval="$enable_nls"
2239 USE_NLS=$enableval
2240else
2241 USE_NLS=no
2242fi
2243
2244 echo "$ac_t""$USE_NLS" 1>&6
2245
2246
2247 USE_INCLUDED_LIBINTL=no
2248
2249 if test "$USE_NLS" = "yes"; then
2250 cat >> confdefs.h <<\EOF
2251#define ENABLE_NLS 1
2252EOF
2253
2254 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
Theodore Ts'odb653a82001-02-08 02:18:52 +00002255echo "configure:2256: checking whether included gettext is requested" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002256 # Check whether --with-included-gettext or --without-included-gettext was given.
2257if test "${with_included_gettext+set}" = set; then
2258 withval="$with_included_gettext"
2259 nls_cv_force_use_gnu_gettext=$withval
2260else
2261 nls_cv_force_use_gnu_gettext=no
2262fi
2263
2264 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2265
2266 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2267 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2268 nls_cv_header_intl=
2269 nls_cv_header_libgt=
2270 CATOBJEXT=NONE
2271
2272 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2273echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
Theodore Ts'odb653a82001-02-08 02:18:52 +00002274echo "configure:2275: checking for libintl.h" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002275if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2276 echo $ac_n "(cached) $ac_c" 1>&6
2277else
2278 cat > conftest.$ac_ext <<EOF
Theodore Ts'odb653a82001-02-08 02:18:52 +00002279#line 2280 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002280#include "confdefs.h"
2281#include <libintl.h>
2282EOF
2283ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'odb653a82001-02-08 02:18:52 +00002284{ (eval echo configure:2285: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002285ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2286if test -z "$ac_err"; then
2287 rm -rf conftest*
2288 eval "ac_cv_header_$ac_safe=yes"
2289else
2290 echo "$ac_err" >&5
2291 echo "configure: failed program was:" >&5
2292 cat conftest.$ac_ext >&5
2293 rm -rf conftest*
2294 eval "ac_cv_header_$ac_safe=no"
2295fi
2296rm -f conftest*
2297fi
2298if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2299 echo "$ac_t""yes" 1>&6
2300 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
Theodore Ts'odb653a82001-02-08 02:18:52 +00002301echo "configure:2302: checking for gettext in libc" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002302if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2303 echo $ac_n "(cached) $ac_c" 1>&6
2304else
2305 cat > conftest.$ac_ext <<EOF
Theodore Ts'odb653a82001-02-08 02:18:52 +00002306#line 2307 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002307#include "confdefs.h"
2308#include <libintl.h>
2309int main() {
2310return (int) gettext ("")
2311; return 0; }
2312EOF
Theodore Ts'odb653a82001-02-08 02:18:52 +00002313if { (eval echo configure:2314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002314 rm -rf conftest*
2315 gt_cv_func_gettext_libc=yes
2316else
2317 echo "configure: failed program was:" >&5
2318 cat conftest.$ac_ext >&5
2319 rm -rf conftest*
2320 gt_cv_func_gettext_libc=no
2321fi
2322rm -f conftest*
2323fi
2324
2325echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2326
2327 if test "$gt_cv_func_gettext_libc" != "yes"; then
2328 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
Theodore Ts'odb653a82001-02-08 02:18:52 +00002329echo "configure:2330: checking for bindtextdomain in -lintl" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002330ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2331if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2332 echo $ac_n "(cached) $ac_c" 1>&6
2333else
2334 ac_save_LIBS="$LIBS"
2335LIBS="-lintl $LIBS"
2336cat > conftest.$ac_ext <<EOF
Theodore Ts'odb653a82001-02-08 02:18:52 +00002337#line 2338 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002338#include "confdefs.h"
2339/* Override any gcc2 internal prototype to avoid an error. */
2340/* We use char because int might match the return type of a gcc2
2341 builtin and then its argument prototype would still apply. */
2342char bindtextdomain();
2343
2344int main() {
2345bindtextdomain()
2346; return 0; }
2347EOF
Theodore Ts'odb653a82001-02-08 02:18:52 +00002348if { (eval echo configure:2349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002349 rm -rf conftest*
2350 eval "ac_cv_lib_$ac_lib_var=yes"
2351else
2352 echo "configure: failed program was:" >&5
2353 cat conftest.$ac_ext >&5
2354 rm -rf conftest*
2355 eval "ac_cv_lib_$ac_lib_var=no"
2356fi
2357rm -f conftest*
2358LIBS="$ac_save_LIBS"
2359
2360fi
2361if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2362 echo "$ac_t""yes" 1>&6
2363 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
Theodore Ts'odb653a82001-02-08 02:18:52 +00002364echo "configure:2365: checking for gettext in libintl" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002365if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2366 echo $ac_n "(cached) $ac_c" 1>&6
2367else
2368 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
Theodore Ts'odb653a82001-02-08 02:18:52 +00002369echo "configure:2370: checking for gettext in -lintl" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002370ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
2371if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2372 echo $ac_n "(cached) $ac_c" 1>&6
2373else
2374 ac_save_LIBS="$LIBS"
2375LIBS="-lintl $LIBS"
2376cat > conftest.$ac_ext <<EOF
Theodore Ts'odb653a82001-02-08 02:18:52 +00002377#line 2378 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002378#include "confdefs.h"
2379/* Override any gcc2 internal prototype to avoid an error. */
2380/* We use char because int might match the return type of a gcc2
2381 builtin and then its argument prototype would still apply. */
2382char gettext();
2383
2384int main() {
2385gettext()
2386; return 0; }
2387EOF
Theodore Ts'odb653a82001-02-08 02:18:52 +00002388if { (eval echo configure:2389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002389 rm -rf conftest*
2390 eval "ac_cv_lib_$ac_lib_var=yes"
2391else
2392 echo "configure: failed program was:" >&5
2393 cat conftest.$ac_ext >&5
2394 rm -rf conftest*
2395 eval "ac_cv_lib_$ac_lib_var=no"
2396fi
2397rm -f conftest*
2398LIBS="$ac_save_LIBS"
2399
2400fi
2401if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2402 echo "$ac_t""yes" 1>&6
2403 gt_cv_func_gettext_libintl=yes
2404else
2405 echo "$ac_t""no" 1>&6
2406gt_cv_func_gettext_libintl=no
2407fi
2408
2409fi
2410
2411echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2412else
2413 echo "$ac_t""no" 1>&6
2414fi
2415
2416 fi
2417
2418 if test "$gt_cv_func_gettext_libc" = "yes" \
2419 || test "$gt_cv_func_gettext_libintl" = "yes"; then
2420 cat >> confdefs.h <<\EOF
2421#define HAVE_GETTEXT 1
2422EOF
2423
2424 # Extract the first word of "msgfmt", so it can be a program name with args.
2425set dummy msgfmt; ac_word=$2
2426echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'odb653a82001-02-08 02:18:52 +00002427echo "configure:2428: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002428if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2429 echo $ac_n "(cached) $ac_c" 1>&6
2430else
2431 case "$MSGFMT" in
2432 /*)
2433 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2434 ;;
2435 *)
2436 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2437 for ac_dir in $PATH; do
2438 test -z "$ac_dir" && ac_dir=.
2439 if test -f $ac_dir/$ac_word; then
2440 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2441 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2442 break
2443 fi
2444 fi
2445 done
2446 IFS="$ac_save_ifs"
2447 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
2448 ;;
2449esac
2450fi
2451MSGFMT="$ac_cv_path_MSGFMT"
2452if test -n "$MSGFMT"; then
2453 echo "$ac_t""$MSGFMT" 1>&6
2454else
2455 echo "$ac_t""no" 1>&6
2456fi
2457 if test "$MSGFMT" != "no"; then
2458 for ac_func in dcgettext
2459do
2460echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'odb653a82001-02-08 02:18:52 +00002461echo "configure:2462: checking for $ac_func" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002462if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2463 echo $ac_n "(cached) $ac_c" 1>&6
2464else
2465 cat > conftest.$ac_ext <<EOF
Theodore Ts'odb653a82001-02-08 02:18:52 +00002466#line 2467 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002467#include "confdefs.h"
2468/* System header to define __stub macros and hopefully few prototypes,
2469 which can conflict with char $ac_func(); below. */
2470#include <assert.h>
2471/* Override any gcc2 internal prototype to avoid an error. */
2472/* We use char because int might match the return type of a gcc2
2473 builtin and then its argument prototype would still apply. */
2474char $ac_func();
2475
2476int main() {
2477
2478/* The GNU C library defines this for functions which it implements
2479 to always fail with ENOSYS. Some functions are actually named
2480 something starting with __ and the normal name is an alias. */
2481#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2482choke me
2483#else
2484$ac_func();
2485#endif
2486
2487; return 0; }
2488EOF
Theodore Ts'odb653a82001-02-08 02:18:52 +00002489if { (eval echo configure:2490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002490 rm -rf conftest*
2491 eval "ac_cv_func_$ac_func=yes"
2492else
2493 echo "configure: failed program was:" >&5
2494 cat conftest.$ac_ext >&5
2495 rm -rf conftest*
2496 eval "ac_cv_func_$ac_func=no"
2497fi
2498rm -f conftest*
2499fi
2500
2501if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2502 echo "$ac_t""yes" 1>&6
2503 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2504 cat >> confdefs.h <<EOF
2505#define $ac_tr_func 1
2506EOF
2507
2508else
2509 echo "$ac_t""no" 1>&6
2510fi
2511done
2512
2513 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2514set dummy gmsgfmt; ac_word=$2
2515echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'odb653a82001-02-08 02:18:52 +00002516echo "configure:2517: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002517if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2518 echo $ac_n "(cached) $ac_c" 1>&6
2519else
2520 case "$GMSGFMT" in
2521 /*)
2522 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2523 ;;
2524 ?:/*)
2525 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2526 ;;
2527 *)
2528 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2529 ac_dummy="$PATH"
2530 for ac_dir in $ac_dummy; do
2531 test -z "$ac_dir" && ac_dir=.
2532 if test -f $ac_dir/$ac_word; then
2533 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2534 break
2535 fi
2536 done
2537 IFS="$ac_save_ifs"
2538 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2539 ;;
2540esac
2541fi
2542GMSGFMT="$ac_cv_path_GMSGFMT"
2543if test -n "$GMSGFMT"; then
2544 echo "$ac_t""$GMSGFMT" 1>&6
2545else
2546 echo "$ac_t""no" 1>&6
2547fi
2548
2549 # Extract the first word of "xgettext", so it can be a program name with args.
2550set dummy xgettext; ac_word=$2
2551echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'odb653a82001-02-08 02:18:52 +00002552echo "configure:2553: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002553if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2554 echo $ac_n "(cached) $ac_c" 1>&6
2555else
2556 case "$XGETTEXT" in
2557 /*)
2558 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2559 ;;
2560 *)
2561 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2562 for ac_dir in $PATH; do
2563 test -z "$ac_dir" && ac_dir=.
2564 if test -f $ac_dir/$ac_word; then
2565 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2566 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2567 break
2568 fi
2569 fi
2570 done
2571 IFS="$ac_save_ifs"
2572 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2573 ;;
2574esac
2575fi
2576XGETTEXT="$ac_cv_path_XGETTEXT"
2577if test -n "$XGETTEXT"; then
2578 echo "$ac_t""$XGETTEXT" 1>&6
2579else
2580 echo "$ac_t""no" 1>&6
2581fi
2582
2583 cat > conftest.$ac_ext <<EOF
Theodore Ts'odb653a82001-02-08 02:18:52 +00002584#line 2585 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002585#include "confdefs.h"
2586
2587int main() {
2588extern int _nl_msg_cat_cntr;
2589 return _nl_msg_cat_cntr
2590; return 0; }
2591EOF
Theodore Ts'odb653a82001-02-08 02:18:52 +00002592if { (eval echo configure:2593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002593 rm -rf conftest*
2594 CATOBJEXT=.gmo
2595 DATADIRNAME=share
2596else
2597 echo "configure: failed program was:" >&5
2598 cat conftest.$ac_ext >&5
2599 rm -rf conftest*
2600 CATOBJEXT=.mo
2601 DATADIRNAME=lib
2602fi
2603rm -f conftest*
2604 INSTOBJEXT=.mo
2605 fi
2606 fi
2607
2608else
2609 echo "$ac_t""no" 1>&6
2610fi
2611
2612
2613 if test "$CATOBJEXT" = "NONE"; then
2614 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
Theodore Ts'odb653a82001-02-08 02:18:52 +00002615echo "configure:2616: checking whether catgets can be used" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002616 # Check whether --with-catgets or --without-catgets was given.
2617if test "${with_catgets+set}" = set; then
2618 withval="$with_catgets"
2619 nls_cv_use_catgets=$withval
2620else
2621 nls_cv_use_catgets=no
2622fi
2623
2624 echo "$ac_t""$nls_cv_use_catgets" 1>&6
2625
2626 if test "$nls_cv_use_catgets" = "yes"; then
2627 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
Theodore Ts'odb653a82001-02-08 02:18:52 +00002628echo "configure:2629: checking for main in -li" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002629ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'`
2630if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2631 echo $ac_n "(cached) $ac_c" 1>&6
2632else
2633 ac_save_LIBS="$LIBS"
2634LIBS="-li $LIBS"
2635cat > conftest.$ac_ext <<EOF
Theodore Ts'odb653a82001-02-08 02:18:52 +00002636#line 2637 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002637#include "confdefs.h"
2638
2639int main() {
2640main()
2641; return 0; }
2642EOF
Theodore Ts'odb653a82001-02-08 02:18:52 +00002643if { (eval echo configure:2644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002644 rm -rf conftest*
2645 eval "ac_cv_lib_$ac_lib_var=yes"
2646else
2647 echo "configure: failed program was:" >&5
2648 cat conftest.$ac_ext >&5
2649 rm -rf conftest*
2650 eval "ac_cv_lib_$ac_lib_var=no"
2651fi
2652rm -f conftest*
2653LIBS="$ac_save_LIBS"
2654
2655fi
2656if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2657 echo "$ac_t""yes" 1>&6
2658 ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2659 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2660 cat >> confdefs.h <<EOF
2661#define $ac_tr_lib 1
2662EOF
2663
2664 LIBS="-li $LIBS"
2665
2666else
2667 echo "$ac_t""no" 1>&6
2668fi
2669
2670 echo $ac_n "checking for catgets""... $ac_c" 1>&6
Theodore Ts'odb653a82001-02-08 02:18:52 +00002671echo "configure:2672: checking for catgets" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002672if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
2673 echo $ac_n "(cached) $ac_c" 1>&6
2674else
2675 cat > conftest.$ac_ext <<EOF
Theodore Ts'odb653a82001-02-08 02:18:52 +00002676#line 2677 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002677#include "confdefs.h"
2678/* System header to define __stub macros and hopefully few prototypes,
2679 which can conflict with char catgets(); below. */
2680#include <assert.h>
2681/* Override any gcc2 internal prototype to avoid an error. */
2682/* We use char because int might match the return type of a gcc2
2683 builtin and then its argument prototype would still apply. */
2684char catgets();
2685
2686int main() {
2687
2688/* The GNU C library defines this for functions which it implements
2689 to always fail with ENOSYS. Some functions are actually named
2690 something starting with __ and the normal name is an alias. */
2691#if defined (__stub_catgets) || defined (__stub___catgets)
2692choke me
2693#else
2694catgets();
2695#endif
2696
2697; return 0; }
2698EOF
Theodore Ts'odb653a82001-02-08 02:18:52 +00002699if { (eval echo configure:2700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002700 rm -rf conftest*
2701 eval "ac_cv_func_catgets=yes"
2702else
2703 echo "configure: failed program was:" >&5
2704 cat conftest.$ac_ext >&5
2705 rm -rf conftest*
2706 eval "ac_cv_func_catgets=no"
2707fi
2708rm -f conftest*
2709fi
2710
2711if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
2712 echo "$ac_t""yes" 1>&6
2713 cat >> confdefs.h <<\EOF
2714#define HAVE_CATGETS 1
2715EOF
2716
2717 INTLOBJS="\$(CATOBJS)"
2718 # Extract the first word of "gencat", so it can be a program name with args.
2719set dummy gencat; ac_word=$2
2720echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'odb653a82001-02-08 02:18:52 +00002721echo "configure:2722: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002722if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
2723 echo $ac_n "(cached) $ac_c" 1>&6
2724else
2725 case "$GENCAT" in
2726 /*)
2727 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
2728 ;;
2729 ?:/*)
2730 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path.
2731 ;;
2732 *)
2733 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2734 ac_dummy="$PATH"
2735 for ac_dir in $ac_dummy; do
2736 test -z "$ac_dir" && ac_dir=.
2737 if test -f $ac_dir/$ac_word; then
2738 ac_cv_path_GENCAT="$ac_dir/$ac_word"
2739 break
2740 fi
2741 done
2742 IFS="$ac_save_ifs"
2743 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
2744 ;;
2745esac
2746fi
2747GENCAT="$ac_cv_path_GENCAT"
2748if test -n "$GENCAT"; then
2749 echo "$ac_t""$GENCAT" 1>&6
2750else
2751 echo "$ac_t""no" 1>&6
2752fi
2753 if test "$GENCAT" != "no"; then
2754 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2755set dummy gmsgfmt; ac_word=$2
2756echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'odb653a82001-02-08 02:18:52 +00002757echo "configure:2758: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002758if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2759 echo $ac_n "(cached) $ac_c" 1>&6
2760else
2761 case "$GMSGFMT" in
2762 /*)
2763 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2764 ;;
2765 ?:/*)
2766 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2767 ;;
2768 *)
2769 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2770 ac_dummy="$PATH"
2771 for ac_dir in $ac_dummy; do
2772 test -z "$ac_dir" && ac_dir=.
2773 if test -f $ac_dir/$ac_word; then
2774 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2775 break
2776 fi
2777 done
2778 IFS="$ac_save_ifs"
2779 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
2780 ;;
2781esac
2782fi
2783GMSGFMT="$ac_cv_path_GMSGFMT"
2784if test -n "$GMSGFMT"; then
2785 echo "$ac_t""$GMSGFMT" 1>&6
2786else
2787 echo "$ac_t""no" 1>&6
2788fi
2789
2790 if test "$GMSGFMT" = "no"; then
2791 # Extract the first word of "msgfmt", so it can be a program name with args.
2792set dummy msgfmt; ac_word=$2
2793echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'odb653a82001-02-08 02:18:52 +00002794echo "configure:2795: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002795if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2796 echo $ac_n "(cached) $ac_c" 1>&6
2797else
2798 case "$GMSGFMT" in
2799 /*)
2800 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2801 ;;
2802 *)
2803 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2804 for ac_dir in $PATH; do
2805 test -z "$ac_dir" && ac_dir=.
2806 if test -f $ac_dir/$ac_word; then
2807 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2808 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2809 break
2810 fi
2811 fi
2812 done
2813 IFS="$ac_save_ifs"
2814 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
2815 ;;
2816esac
2817fi
2818GMSGFMT="$ac_cv_path_GMSGFMT"
2819if test -n "$GMSGFMT"; then
2820 echo "$ac_t""$GMSGFMT" 1>&6
2821else
2822 echo "$ac_t""no" 1>&6
2823fi
2824
2825 fi
2826 # Extract the first word of "xgettext", so it can be a program name with args.
2827set dummy xgettext; ac_word=$2
2828echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'odb653a82001-02-08 02:18:52 +00002829echo "configure:2830: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002830if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2831 echo $ac_n "(cached) $ac_c" 1>&6
2832else
2833 case "$XGETTEXT" in
2834 /*)
2835 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2836 ;;
2837 *)
2838 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2839 for ac_dir in $PATH; do
2840 test -z "$ac_dir" && ac_dir=.
2841 if test -f $ac_dir/$ac_word; then
2842 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2843 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2844 break
2845 fi
2846 fi
2847 done
2848 IFS="$ac_save_ifs"
2849 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2850 ;;
2851esac
2852fi
2853XGETTEXT="$ac_cv_path_XGETTEXT"
2854if test -n "$XGETTEXT"; then
2855 echo "$ac_t""$XGETTEXT" 1>&6
2856else
2857 echo "$ac_t""no" 1>&6
2858fi
2859
2860 USE_INCLUDED_LIBINTL=yes
2861 CATOBJEXT=.cat
2862 INSTOBJEXT=.cat
2863 DATADIRNAME=lib
2864 INTLDEPS='$(top_builddir)/intl/libintl.a'
2865 INTLLIBS=$INTLDEPS
2866 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
2867 nls_cv_header_intl=intl/libintl.h
2868 nls_cv_header_libgt=intl/libgettext.h
2869 fi
2870else
2871 echo "$ac_t""no" 1>&6
2872fi
2873
2874 fi
2875 fi
2876
2877 if test "$CATOBJEXT" = "NONE"; then
2878 nls_cv_use_gnu_gettext=yes
2879 fi
2880 fi
2881
2882 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2883 INTLOBJS="\$(GETTOBJS)"
2884 # Extract the first word of "msgfmt", so it can be a program name with args.
2885set dummy msgfmt; ac_word=$2
2886echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'odb653a82001-02-08 02:18:52 +00002887echo "configure:2888: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002888if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2889 echo $ac_n "(cached) $ac_c" 1>&6
2890else
2891 case "$MSGFMT" in
2892 /*)
2893 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2894 ;;
2895 *)
2896 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2897 for ac_dir in $PATH; do
2898 test -z "$ac_dir" && ac_dir=.
2899 if test -f $ac_dir/$ac_word; then
2900 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2901 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2902 break
2903 fi
2904 fi
2905 done
2906 IFS="$ac_save_ifs"
2907 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
2908 ;;
2909esac
2910fi
2911MSGFMT="$ac_cv_path_MSGFMT"
2912if test -n "$MSGFMT"; then
2913 echo "$ac_t""$MSGFMT" 1>&6
2914else
2915 echo "$ac_t""no" 1>&6
2916fi
2917
2918 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2919set dummy gmsgfmt; ac_word=$2
2920echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'odb653a82001-02-08 02:18:52 +00002921echo "configure:2922: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002922if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2923 echo $ac_n "(cached) $ac_c" 1>&6
2924else
2925 case "$GMSGFMT" in
2926 /*)
2927 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2928 ;;
2929 ?:/*)
2930 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2931 ;;
2932 *)
2933 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2934 ac_dummy="$PATH"
2935 for ac_dir in $ac_dummy; do
2936 test -z "$ac_dir" && ac_dir=.
2937 if test -f $ac_dir/$ac_word; then
2938 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2939 break
2940 fi
2941 done
2942 IFS="$ac_save_ifs"
2943 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2944 ;;
2945esac
2946fi
2947GMSGFMT="$ac_cv_path_GMSGFMT"
2948if test -n "$GMSGFMT"; then
2949 echo "$ac_t""$GMSGFMT" 1>&6
2950else
2951 echo "$ac_t""no" 1>&6
2952fi
2953
2954 # Extract the first word of "xgettext", so it can be a program name with args.
2955set dummy xgettext; ac_word=$2
2956echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'odb653a82001-02-08 02:18:52 +00002957echo "configure:2958: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002958if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2959 echo $ac_n "(cached) $ac_c" 1>&6
2960else
2961 case "$XGETTEXT" in
2962 /*)
2963 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2964 ;;
2965 *)
2966 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2967 for ac_dir in $PATH; do
2968 test -z "$ac_dir" && ac_dir=.
2969 if test -f $ac_dir/$ac_word; then
2970 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2971 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2972 break
2973 fi
2974 fi
2975 done
2976 IFS="$ac_save_ifs"
2977 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2978 ;;
2979esac
2980fi
2981XGETTEXT="$ac_cv_path_XGETTEXT"
2982if test -n "$XGETTEXT"; then
2983 echo "$ac_t""$XGETTEXT" 1>&6
2984else
2985 echo "$ac_t""no" 1>&6
2986fi
2987
2988
2989 USE_INCLUDED_LIBINTL=yes
2990 CATOBJEXT=.gmo
2991 INSTOBJEXT=.mo
2992 DATADIRNAME=share
2993 INTLDEPS='$(top_builddir)/intl/libintl.a'
2994 INTLLIBS=$INTLDEPS
2995 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
2996 nls_cv_header_intl=intl/libintl.h
2997 nls_cv_header_libgt=intl/libgettext.h
2998 fi
2999
3000 if test "$XGETTEXT" != ":"; then
3001 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
3002 : ;
3003 else
3004 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
3005 XGETTEXT=":"
3006 fi
3007 fi
3008
3009 # We need to process the po/ directory.
3010 POSUB=po
3011 else
3012 DATADIRNAME=share
3013 nls_cv_header_intl=intl/libintl.h
3014 nls_cv_header_libgt=intl/libgettext.h
3015 fi
3016
3017
3018
3019
3020 # If this is used in GNU gettext we have to set USE_NLS to `yes'
3021 # because some of the sources are only built for this goal.
3022 if test "$PACKAGE" = gettext; then
3023 USE_NLS=yes
3024 USE_INCLUDED_LIBINTL=yes
3025 fi
3026
3027 for lang in $ALL_LINGUAS; do
3028 GMOFILES="$GMOFILES $lang.gmo"
3029 POFILES="$POFILES $lang.po"
3030 done
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045 if test "x$CATOBJEXT" != "x"; then
3046 if test "x$ALL_LINGUAS" = "x"; then
3047 LINGUAS=
3048 else
3049 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
Theodore Ts'odb653a82001-02-08 02:18:52 +00003050echo "configure:3051: checking for catalogs to be installed" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003051 NEW_LINGUAS=
3052 for lang in ${LINGUAS=$ALL_LINGUAS}; do
3053 case "$ALL_LINGUAS" in
3054 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
3055 esac
3056 done
3057 LINGUAS=$NEW_LINGUAS
3058 echo "$ac_t""$LINGUAS" 1>&6
3059 fi
3060
3061 if test -n "$LINGUAS"; then
3062 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
3063 fi
3064 fi
3065
3066 if test $ac_cv_header_locale_h = yes; then
3067 INCLUDE_LOCALE_H="#include <locale.h>"
3068 else
3069 INCLUDE_LOCALE_H="\
3070/* The system does not provide the header <locale.h>. Take care yourself. */"
3071 fi
3072
3073
3074 test -d intl || mkdir intl
3075 if test "$CATOBJEXT" = ".cat"; then
3076 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
3077echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
Theodore Ts'odb653a82001-02-08 02:18:52 +00003078echo "configure:3079: checking for linux/version.h" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003079if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3080 echo $ac_n "(cached) $ac_c" 1>&6
3081else
3082 cat > conftest.$ac_ext <<EOF
Theodore Ts'odb653a82001-02-08 02:18:52 +00003083#line 3084 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003084#include "confdefs.h"
3085#include <linux/version.h>
3086EOF
3087ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'odb653a82001-02-08 02:18:52 +00003088{ (eval echo configure:3089: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003089ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3090if test -z "$ac_err"; then
3091 rm -rf conftest*
3092 eval "ac_cv_header_$ac_safe=yes"
3093else
3094 echo "$ac_err" >&5
3095 echo "configure: failed program was:" >&5
3096 cat conftest.$ac_ext >&5
3097 rm -rf conftest*
3098 eval "ac_cv_header_$ac_safe=no"
3099fi
3100rm -f conftest*
3101fi
3102if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3103 echo "$ac_t""yes" 1>&6
3104 msgformat=linux
3105else
3106 echo "$ac_t""no" 1>&6
3107msgformat=xopen
3108fi
3109
3110
3111 sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
3112 fi
3113 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
3114 $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
3115
3116 if test "$PACKAGE" = "gettext"; then
3117 GT_NO="#NO#"
3118 GT_YES=
3119 else
3120 GT_NO=
3121 GT_YES="#YES#"
3122 fi
3123
3124
3125
3126 MKINSTALLDIRS=
3127 if test -n "$ac_aux_dir"; then
3128 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
3129 fi
3130 if test -z "$MKINSTALLDIRS"; then
3131 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3132 fi
3133
3134
3135 l=
3136
3137
3138 test -d po || mkdir po
3139 if test "x$srcdir" != "x."; then
3140 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
3141 posrcprefix="$srcdir/"
3142 else
3143 posrcprefix="../$srcdir/"
3144 fi
3145 else
3146 posrcprefix="../"
3147 fi
3148 rm -f po/POTFILES
3149 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
3150 < $srcdir/po/POTFILES.in > po/POTFILES
3151
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003152# Check whether --enable-profile or --disable-profile was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003153if test "${enable_profile+set}" = set; then
3154 enableval="$enable_profile"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003155 if test "$enableval" = "no"
3156then
3157 PROFILE_CMT=#
3158 MAKEFILE_PROFILE=/dev/null
3159 echo "Disabling profiling libraries"
3160else
3161 PROFILE_CMT=
3162 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003163 PROFILED_LIB_EXT=_p.a
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003164 echo "Building profiling libraries"
3165fi
3166
3167else
3168 PROFILE_CMT=#
3169MAKEFILE_PROFILE=/dev/null
3170echo "Disabling profiling libraries by default"
3171
3172fi
3173
3174
3175
3176# Check whether --enable-checker or --disable-checker was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003177if test "${enable_checker+set}" = set; then
3178 enableval="$enable_checker"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003179 if test "$enableval" = "no"
3180then
3181 CHECKER_CMT=#
3182 MAKEFILE_CHECKER=/dev/null
3183 echo "Disabling checker libraries"
3184else
3185 CHECKER_CMT=
3186 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
3187 echo "Building checker libraries"
3188fi
3189
3190else
3191 CHECKER_CMT=#
3192MAKEFILE_CHECKER=/dev/null
3193echo "Disabling checker libraries by default"
3194
3195fi
3196
3197
3198
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003199
3200
3201
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003202# Check whether --enable-dynamic-e2fsck or --disable-dynamic-e2fsck was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003203if test "${enable_dynamic_e2fsck+set}" = set; then
3204 enableval="$enable_dynamic_e2fsck"
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003205 if test "$enableval" = "no"
3206then
3207 E2FSCK_TYPE=static
3208 echo "Building e2fsck statically"
3209else
3210 E2FSCK_TYPE=shared
3211 echo "Building e2fsck dynamically"
3212fi
3213
3214else
3215 E2FSCK_TYPE=static
3216echo "Building e2fsck statically by default"
3217
3218fi
3219
3220
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00003221# Check whether --enable-fsck or --disable-fsck was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003222if test "${enable_fsck+set}" = set; then
3223 enableval="$enable_fsck"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00003224 if test "$enableval" = "no"
3225then
3226 FSCK_PROG='' FSCK_MAN=''
3227 echo "Not building fsck wrapper"
3228else
3229 FSCK_PROG=fsck FSCK_MAN=fsck.8
3230 echo "Building fsck wrapper"
3231fi
3232
3233else
3234 case "$host_os" in
3235 gnu*)
3236 FSCK_PROG='' FSCK_MAN=''
3237 echo "Not building fsck wrapper by default"
3238 ;;
3239 *)
3240 FSCK_PROG=fsck FSCK_MAN=fsck.8
3241 echo "Building fsck wrapper by default"
3242esac
3243
3244fi
3245
3246
3247
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003248MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
3249
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00003250# Check whether --enable-old-bitops or --disable-old-bitops was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003251if test "${enable_old_bitops+set}" = set; then
3252 enableval="$enable_old_bitops"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00003253 if test "$enableval" = "no"
3254then
3255 echo "Using new (standard) bitmask operations"
3256else
3257 cat >> confdefs.h <<\EOF
3258#define EXT2_OLD_BITOPS 1
3259EOF
3260
3261 echo "Using old (native) bitmask operations"
3262
3263fi
3264
3265else
3266 echo "Using standard bitmask operations by default"
3267
3268fi
3269
Theodore Ts'o74becf31997-04-26 14:37:06 +00003270
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003271echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
Theodore Ts'odb653a82001-02-08 02:18:52 +00003272echo "configure:3273: checking whether ${MAKE-make} sets \${MAKE}" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003273set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003274if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
3275 echo $ac_n "(cached) $ac_c" 1>&6
3276else
3277 cat > conftestmake <<\EOF
3278all:
3279 @echo 'ac_maketemp="${MAKE}"'
3280EOF
3281# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3282eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
3283if test -n "$ac_maketemp"; then
3284 eval ac_cv_prog_make_${ac_make}_set=yes
3285else
3286 eval ac_cv_prog_make_${ac_make}_set=no
3287fi
3288rm -f conftestmake
3289fi
3290if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3291 echo "$ac_t""yes" 1>&6
3292 SET_MAKE=
3293else
3294 echo "$ac_t""no" 1>&6
3295 SET_MAKE="MAKE=${MAKE-make}"
3296fi
3297
3298# Extract the first word of "ln", so it can be a program name with args.
3299set dummy ln; ac_word=$2
3300echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'odb653a82001-02-08 02:18:52 +00003301echo "configure:3302: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003302if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then
3303 echo $ac_n "(cached) $ac_c" 1>&6
3304else
3305 case "$LN" in
3306 /*)
3307 ac_cv_path_LN="$LN" # Let the user override the test with a path.
3308 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003309 ?:/*)
3310 ac_cv_path_LN="$LN" # Let the user override the test with a dos path.
3311 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003312 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003313 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3314 ac_dummy="$PATH"
3315 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003316 test -z "$ac_dir" && ac_dir=.
3317 if test -f $ac_dir/$ac_word; then
3318 ac_cv_path_LN="$ac_dir/$ac_word"
3319 break
3320 fi
3321 done
3322 IFS="$ac_save_ifs"
3323 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
3324 ;;
3325esac
3326fi
3327LN="$ac_cv_path_LN"
3328if test -n "$LN"; then
3329 echo "$ac_t""$LN" 1>&6
3330else
3331 echo "$ac_t""no" 1>&6
3332fi
3333
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00003334echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
Theodore Ts'odb653a82001-02-08 02:18:52 +00003335echo "configure:3336: checking whether ln -s works" >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00003336if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
3337 echo $ac_n "(cached) $ac_c" 1>&6
3338else
3339 rm -f conftestdata
3340if ln -s X conftestdata 2>/dev/null
3341then
3342 rm -f conftestdata
3343 ac_cv_prog_LN_S="ln -s"
3344else
3345 ac_cv_prog_LN_S=ln
3346fi
3347fi
3348LN_S="$ac_cv_prog_LN_S"
3349if test "$ac_cv_prog_LN_S" = "ln -s"; then
3350 echo "$ac_t""yes" 1>&6
3351else
3352 echo "$ac_t""no" 1>&6
3353fi
3354
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003355# Extract the first word of "mv", so it can be a program name with args.
3356set dummy mv; ac_word=$2
3357echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'odb653a82001-02-08 02:18:52 +00003358echo "configure:3359: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003359if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
3360 echo $ac_n "(cached) $ac_c" 1>&6
3361else
3362 case "$MV" in
3363 /*)
3364 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3365 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003366 ?:/*)
3367 ac_cv_path_MV="$MV" # Let the user override the test with a dos path.
3368 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003369 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003370 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3371 ac_dummy="$PATH"
3372 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003373 test -z "$ac_dir" && ac_dir=.
3374 if test -f $ac_dir/$ac_word; then
3375 ac_cv_path_MV="$ac_dir/$ac_word"
3376 break
3377 fi
3378 done
3379 IFS="$ac_save_ifs"
3380 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3381 ;;
3382esac
3383fi
3384MV="$ac_cv_path_MV"
3385if test -n "$MV"; then
3386 echo "$ac_t""$MV" 1>&6
3387else
3388 echo "$ac_t""no" 1>&6
3389fi
3390
3391# Extract the first word of "cp", so it can be a program name with args.
3392set dummy cp; ac_word=$2
3393echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'odb653a82001-02-08 02:18:52 +00003394echo "configure:3395: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003395if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then
3396 echo $ac_n "(cached) $ac_c" 1>&6
3397else
3398 case "$CP" in
3399 /*)
3400 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3401 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003402 ?:/*)
3403 ac_cv_path_CP="$CP" # Let the user override the test with a dos path.
3404 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003405 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003406 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3407 ac_dummy="$PATH"
3408 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003409 test -z "$ac_dir" && ac_dir=.
3410 if test -f $ac_dir/$ac_word; then
3411 ac_cv_path_CP="$ac_dir/$ac_word"
3412 break
3413 fi
3414 done
3415 IFS="$ac_save_ifs"
3416 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3417 ;;
3418esac
3419fi
3420CP="$ac_cv_path_CP"
3421if test -n "$CP"; then
3422 echo "$ac_t""$CP" 1>&6
3423else
3424 echo "$ac_t""no" 1>&6
3425fi
3426
3427# Extract the first word of "rm", so it can be a program name with args.
3428set dummy rm; ac_word=$2
3429echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'odb653a82001-02-08 02:18:52 +00003430echo "configure:3431: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003431if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
3432 echo $ac_n "(cached) $ac_c" 1>&6
3433else
3434 case "$RM" in
3435 /*)
3436 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3437 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003438 ?:/*)
3439 ac_cv_path_RM="$RM" # Let the user override the test with a dos path.
3440 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003441 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003442 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3443 ac_dummy="$PATH"
3444 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003445 test -z "$ac_dir" && ac_dir=.
3446 if test -f $ac_dir/$ac_word; then
3447 ac_cv_path_RM="$ac_dir/$ac_word"
3448 break
3449 fi
3450 done
3451 IFS="$ac_save_ifs"
3452 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3453 ;;
3454esac
3455fi
3456RM="$ac_cv_path_RM"
3457if test -n "$RM"; then
3458 echo "$ac_t""$RM" 1>&6
3459else
3460 echo "$ac_t""no" 1>&6
3461fi
3462
3463# Extract the first word of "chmod", so it can be a program name with args.
3464set dummy chmod; ac_word=$2
3465echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'odb653a82001-02-08 02:18:52 +00003466echo "configure:3467: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003467if eval "test \"`echo '$''{'ac_cv_path_CHMOD'+set}'`\" = set"; then
3468 echo $ac_n "(cached) $ac_c" 1>&6
3469else
3470 case "$CHMOD" in
3471 /*)
3472 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
3473 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003474 ?:/*)
3475 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a dos path.
3476 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003477 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003478 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3479 ac_dummy="$PATH"
3480 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003481 test -z "$ac_dir" && ac_dir=.
3482 if test -f $ac_dir/$ac_word; then
3483 ac_cv_path_CHMOD="$ac_dir/$ac_word"
3484 break
3485 fi
3486 done
3487 IFS="$ac_save_ifs"
3488 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
3489 ;;
3490esac
3491fi
3492CHMOD="$ac_cv_path_CHMOD"
3493if test -n "$CHMOD"; then
3494 echo "$ac_t""$CHMOD" 1>&6
3495else
3496 echo "$ac_t""no" 1>&6
3497fi
3498
3499# Extract the first word of "awk", so it can be a program name with args.
3500set dummy awk; ac_word=$2
3501echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'odb653a82001-02-08 02:18:52 +00003502echo "configure:3503: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003503if eval "test \"`echo '$''{'ac_cv_path_AWK'+set}'`\" = set"; then
3504 echo $ac_n "(cached) $ac_c" 1>&6
3505else
3506 case "$AWK" in
3507 /*)
3508 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3509 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003510 ?:/*)
3511 ac_cv_path_AWK="$AWK" # Let the user override the test with a dos path.
3512 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003513 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003514 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3515 ac_dummy="$PATH"
3516 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003517 test -z "$ac_dir" && ac_dir=.
3518 if test -f $ac_dir/$ac_word; then
3519 ac_cv_path_AWK="$ac_dir/$ac_word"
3520 break
3521 fi
3522 done
3523 IFS="$ac_save_ifs"
3524 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3525 ;;
3526esac
3527fi
3528AWK="$ac_cv_path_AWK"
3529if test -n "$AWK"; then
3530 echo "$ac_t""$AWK" 1>&6
3531else
3532 echo "$ac_t""no" 1>&6
3533fi
3534
3535# Extract the first word of "sed", so it can be a program name with args.
3536set dummy sed; ac_word=$2
3537echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'odb653a82001-02-08 02:18:52 +00003538echo "configure:3539: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003539if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then
3540 echo $ac_n "(cached) $ac_c" 1>&6
3541else
3542 case "$SED" in
3543 /*)
3544 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3545 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003546 ?:/*)
3547 ac_cv_path_SED="$SED" # Let the user override the test with a dos path.
3548 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003549 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003550 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3551 ac_dummy="$PATH"
3552 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003553 test -z "$ac_dir" && ac_dir=.
3554 if test -f $ac_dir/$ac_word; then
3555 ac_cv_path_SED="$ac_dir/$ac_word"
3556 break
3557 fi
3558 done
3559 IFS="$ac_save_ifs"
3560 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3561 ;;
3562esac
3563fi
3564SED="$ac_cv_path_SED"
3565if test -n "$SED"; then
3566 echo "$ac_t""$SED" 1>&6
3567else
3568 echo "$ac_t""no" 1>&6
3569fi
3570
Theodore Ts'o9d564f71999-07-03 20:25:58 +00003571# Extract the first word of "perl", so it can be a program name with args.
3572set dummy perl; ac_word=$2
3573echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'odb653a82001-02-08 02:18:52 +00003574echo "configure:3575: checking for $ac_word" >&5
Theodore Ts'o9d564f71999-07-03 20:25:58 +00003575if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
3576 echo $ac_n "(cached) $ac_c" 1>&6
3577else
3578 case "$PERL" in
3579 /*)
3580 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3581 ;;
3582 ?:/*)
3583 ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
3584 ;;
3585 *)
3586 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3587 ac_dummy="$PATH"
3588 for ac_dir in $ac_dummy; do
3589 test -z "$ac_dir" && ac_dir=.
3590 if test -f $ac_dir/$ac_word; then
3591 ac_cv_path_PERL="$ac_dir/$ac_word"
3592 break
3593 fi
3594 done
3595 IFS="$ac_save_ifs"
3596 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
3597 ;;
3598esac
3599fi
3600PERL="$ac_cv_path_PERL"
3601if test -n "$PERL"; then
3602 echo "$ac_t""$PERL" 1>&6
3603else
3604 echo "$ac_t""no" 1>&6
3605fi
3606
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003607echo $ac_n "checking build system type""... $ac_c" 1>&6
Theodore Ts'odb653a82001-02-08 02:18:52 +00003608echo "configure:3609: checking build system type" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003609
3610build_alias=$build
3611case "$build_alias" in
3612NONE)
3613 case $nonopt in
3614 NONE) build_alias=$host_alias ;;
3615 *) build_alias=$nonopt ;;
3616 esac ;;
3617esac
3618
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003619build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003620build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3621build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3622build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003623echo "$ac_t""$build" 1>&6
3624
3625if test $host != $build; then
3626 ac_tool_prefix=${host_alias}-
3627else
3628 ac_tool_prefix=
3629fi
3630
3631# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3632set dummy ${ac_tool_prefix}ar; ac_word=$2
3633echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'odb653a82001-02-08 02:18:52 +00003634echo "configure:3635: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003635if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3636 echo $ac_n "(cached) $ac_c" 1>&6
3637else
3638 if test -n "$AR"; then
3639 ac_cv_prog_AR="$AR" # Let the user override the test.
3640else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003641 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3642 ac_dummy="$PATH"
3643 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003644 test -z "$ac_dir" && ac_dir=.
3645 if test -f $ac_dir/$ac_word; then
3646 ac_cv_prog_AR="${ac_tool_prefix}ar"
3647 break
3648 fi
3649 done
3650 IFS="$ac_save_ifs"
3651fi
3652fi
3653AR="$ac_cv_prog_AR"
3654if test -n "$AR"; then
3655 echo "$ac_t""$AR" 1>&6
3656else
3657 echo "$ac_t""no" 1>&6
3658fi
3659
3660
3661if test -z "$ac_cv_prog_AR"; then
3662if test -n "$ac_tool_prefix"; then
3663 # Extract the first word of "ar", so it can be a program name with args.
3664set dummy ar; ac_word=$2
3665echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'odb653a82001-02-08 02:18:52 +00003666echo "configure:3667: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003667if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3668 echo $ac_n "(cached) $ac_c" 1>&6
3669else
3670 if test -n "$AR"; then
3671 ac_cv_prog_AR="$AR" # Let the user override the test.
3672else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003673 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3674 ac_dummy="$PATH"
3675 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003676 test -z "$ac_dir" && ac_dir=.
3677 if test -f $ac_dir/$ac_word; then
3678 ac_cv_prog_AR="ar"
3679 break
3680 fi
3681 done
3682 IFS="$ac_save_ifs"
3683 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
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
3693else
3694 AR="ar"
3695fi
3696fi
3697
3698# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3699set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3700echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'odb653a82001-02-08 02:18:52 +00003701echo "configure:3702: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003702if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3703 echo $ac_n "(cached) $ac_c" 1>&6
3704else
3705 if test -n "$RANLIB"; then
3706 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3707else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003708 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3709 ac_dummy="$PATH"
3710 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003711 test -z "$ac_dir" && ac_dir=.
3712 if test -f $ac_dir/$ac_word; then
3713 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3714 break
3715 fi
3716 done
3717 IFS="$ac_save_ifs"
3718fi
3719fi
3720RANLIB="$ac_cv_prog_RANLIB"
3721if test -n "$RANLIB"; then
3722 echo "$ac_t""$RANLIB" 1>&6
3723else
3724 echo "$ac_t""no" 1>&6
3725fi
3726
3727
3728if test -z "$ac_cv_prog_RANLIB"; then
3729if test -n "$ac_tool_prefix"; then
3730 # Extract the first word of "ranlib", so it can be a program name with args.
3731set dummy ranlib; ac_word=$2
3732echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'odb653a82001-02-08 02:18:52 +00003733echo "configure:3734: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003734if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3735 echo $ac_n "(cached) $ac_c" 1>&6
3736else
3737 if test -n "$RANLIB"; then
3738 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3739else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003740 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3741 ac_dummy="$PATH"
3742 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003743 test -z "$ac_dir" && ac_dir=.
3744 if test -f $ac_dir/$ac_word; then
3745 ac_cv_prog_RANLIB="ranlib"
3746 break
3747 fi
3748 done
3749 IFS="$ac_save_ifs"
3750 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
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
3760else
3761 RANLIB=":"
3762fi
3763fi
3764
3765# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3766set dummy ${ac_tool_prefix}strip; ac_word=$2
3767echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'odb653a82001-02-08 02:18:52 +00003768echo "configure:3769: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003769if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
3770 echo $ac_n "(cached) $ac_c" 1>&6
3771else
3772 if test -n "$STRIP"; then
3773 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3774else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003775 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3776 ac_dummy="$PATH"
3777 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003778 test -z "$ac_dir" && ac_dir=.
3779 if test -f $ac_dir/$ac_word; then
3780 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3781 break
3782 fi
3783 done
3784 IFS="$ac_save_ifs"
3785fi
3786fi
3787STRIP="$ac_cv_prog_STRIP"
3788if test -n "$STRIP"; then
3789 echo "$ac_t""$STRIP" 1>&6
3790else
3791 echo "$ac_t""no" 1>&6
3792fi
3793
3794
3795if test -z "$ac_cv_prog_STRIP"; then
3796if test -n "$ac_tool_prefix"; then
3797 # Extract the first word of "strip", so it can be a program name with args.
3798set dummy strip; ac_word=$2
3799echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'odb653a82001-02-08 02:18:52 +00003800echo "configure:3801: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003801if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
3802 echo $ac_n "(cached) $ac_c" 1>&6
3803else
3804 if test -n "$STRIP"; then
3805 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3806else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003807 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3808 ac_dummy="$PATH"
3809 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003810 test -z "$ac_dir" && ac_dir=.
3811 if test -f $ac_dir/$ac_word; then
3812 ac_cv_prog_STRIP="strip"
3813 break
3814 fi
3815 done
3816 IFS="$ac_save_ifs"
3817 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
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
3827else
3828 STRIP=":"
3829fi
3830fi
3831
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003832# Find a good install program. We prefer a C program (faster),
3833# so one script is as good as another. But avoid the broken or
3834# incompatible versions:
3835# SysV /etc/install, /usr/sbin/install
3836# SunOS /usr/etc/install
3837# IRIX /sbin/install
3838# AIX /bin/install
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003839# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003840# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3841# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3842# ./install, which can be erroneously created by make from ./install.sh.
3843echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
Theodore Ts'odb653a82001-02-08 02:18:52 +00003844echo "configure:3845: checking for a BSD compatible install" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003845if test -z "$INSTALL"; then
3846if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3847 echo $ac_n "(cached) $ac_c" 1>&6
3848else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003849 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003850 for ac_dir in $PATH; do
3851 # Account for people who put trailing slashes in PATH elements.
3852 case "$ac_dir/" in
3853 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3854 *)
3855 # OSF1 and SCO ODT 3.0 have their own names for install.
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003856 # Don't use installbsd from OSF since it installs stuff as root
3857 # by default.
3858 for ac_prog in ginstall scoinst install; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003859 if test -f $ac_dir/$ac_prog; then
3860 if test $ac_prog = install &&
3861 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3862 # AIX install. It has an incompatible calling convention.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003863 :
3864 else
3865 ac_cv_path_install="$ac_dir/$ac_prog -c"
3866 break 2
3867 fi
3868 fi
3869 done
3870 ;;
3871 esac
3872 done
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003873 IFS="$ac_save_IFS"
3874
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003875fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003876 if test "${ac_cv_path_install+set}" = set; then
3877 INSTALL="$ac_cv_path_install"
3878 else
3879 # As a last resort, use the slow shell script. We don't cache a
3880 # path for INSTALL within a source directory, because that will
3881 # break other packages using the cache if that directory is
3882 # removed, or if the path is relative.
3883 INSTALL="$ac_install_sh"
3884 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003885fi
3886echo "$ac_t""$INSTALL" 1>&6
3887
3888# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3889# It thinks the first close brace ends the variable substitution.
3890test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3891
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003892test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3893
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003894test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3895
Theodore Ts'o6c133521999-07-03 20:37:03 +00003896# See if we need a separate native compiler.
3897if test $cross_compiling = no; then
3898 BUILD_CC="$CC"
3899
3900else
3901 for ac_prog in gcc cc
3902do
3903# Extract the first word of "$ac_prog", so it can be a program name with args.
3904set dummy $ac_prog; ac_word=$2
3905echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'odb653a82001-02-08 02:18:52 +00003906echo "configure:3907: checking for $ac_word" >&5
Theodore Ts'o6c133521999-07-03 20:37:03 +00003907if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
3908 echo $ac_n "(cached) $ac_c" 1>&6
3909else
3910 if test -n "$BUILD_CC"; then
3911 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3912else
3913 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3914 ac_dummy="$PATH"
3915 for ac_dir in $ac_dummy; do
3916 test -z "$ac_dir" && ac_dir=.
3917 if test -f $ac_dir/$ac_word; then
3918 ac_cv_prog_BUILD_CC="$ac_prog"
3919 break
3920 fi
3921 done
3922 IFS="$ac_save_ifs"
3923fi
3924fi
3925BUILD_CC="$ac_cv_prog_BUILD_CC"
3926if test -n "$BUILD_CC"; then
3927 echo "$ac_t""$BUILD_CC" 1>&6
3928else
3929 echo "$ac_t""no" 1>&6
3930fi
3931
3932test -n "$BUILD_CC" && break
3933done
3934
3935fi
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00003936for 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 +00003937do
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003938ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003939echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Theodore Ts'odb653a82001-02-08 02:18:52 +00003940echo "configure:3941: checking for $ac_hdr" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003941if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3942 echo $ac_n "(cached) $ac_c" 1>&6
3943else
3944 cat > conftest.$ac_ext <<EOF
Theodore Ts'odb653a82001-02-08 02:18:52 +00003945#line 3946 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003946#include "confdefs.h"
3947#include <$ac_hdr>
3948EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003949ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'odb653a82001-02-08 02:18:52 +00003950{ (eval echo configure:3951: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003951ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003952if test -z "$ac_err"; then
3953 rm -rf conftest*
3954 eval "ac_cv_header_$ac_safe=yes"
3955else
3956 echo "$ac_err" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003957 echo "configure: failed program was:" >&5
3958 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003959 rm -rf conftest*
3960 eval "ac_cv_header_$ac_safe=no"
3961fi
3962rm -f conftest*
3963fi
3964if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3965 echo "$ac_t""yes" 1>&6
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003966 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003967 cat >> confdefs.h <<EOF
3968#define $ac_tr_hdr 1
3969EOF
3970
3971else
3972 echo "$ac_t""no" 1>&6
3973fi
3974done
3975
3976echo $ac_n "checking for vprintf""... $ac_c" 1>&6
Theodore Ts'odb653a82001-02-08 02:18:52 +00003977echo "configure:3978: checking for vprintf" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003978if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
3979 echo $ac_n "(cached) $ac_c" 1>&6
3980else
3981 cat > conftest.$ac_ext <<EOF
Theodore Ts'odb653a82001-02-08 02:18:52 +00003982#line 3983 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003983#include "confdefs.h"
3984/* System header to define __stub macros and hopefully few prototypes,
3985 which can conflict with char vprintf(); below. */
3986#include <assert.h>
3987/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003988/* We use char because int might match the return type of a gcc2
3989 builtin and then its argument prototype would still apply. */
3990char vprintf();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003991
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003992int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003993
3994/* The GNU C library defines this for functions which it implements
3995 to always fail with ENOSYS. Some functions are actually named
3996 something starting with __ and the normal name is an alias. */
3997#if defined (__stub_vprintf) || defined (__stub___vprintf)
3998choke me
3999#else
4000vprintf();
4001#endif
4002
4003; return 0; }
4004EOF
Theodore Ts'odb653a82001-02-08 02:18:52 +00004005if { (eval echo configure:4006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004006 rm -rf conftest*
4007 eval "ac_cv_func_vprintf=yes"
4008else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004009 echo "configure: failed program was:" >&5
4010 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004011 rm -rf conftest*
4012 eval "ac_cv_func_vprintf=no"
4013fi
4014rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004015fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004016
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004017if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
4018 echo "$ac_t""yes" 1>&6
4019 cat >> confdefs.h <<\EOF
4020#define HAVE_VPRINTF 1
4021EOF
4022
4023else
4024 echo "$ac_t""no" 1>&6
4025fi
4026
4027if test "$ac_cv_func_vprintf" != yes; then
4028echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
Theodore Ts'odb653a82001-02-08 02:18:52 +00004029echo "configure:4030: checking for _doprnt" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004030if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
4031 echo $ac_n "(cached) $ac_c" 1>&6
4032else
4033 cat > conftest.$ac_ext <<EOF
Theodore Ts'odb653a82001-02-08 02:18:52 +00004034#line 4035 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004035#include "confdefs.h"
4036/* System header to define __stub macros and hopefully few prototypes,
4037 which can conflict with char _doprnt(); below. */
4038#include <assert.h>
4039/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004040/* We use char because int might match the return type of a gcc2
4041 builtin and then its argument prototype would still apply. */
4042char _doprnt();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004043
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004044int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004045
4046/* The GNU C library defines this for functions which it implements
4047 to always fail with ENOSYS. Some functions are actually named
4048 something starting with __ and the normal name is an alias. */
4049#if defined (__stub__doprnt) || defined (__stub____doprnt)
4050choke me
4051#else
4052_doprnt();
4053#endif
4054
4055; return 0; }
4056EOF
Theodore Ts'odb653a82001-02-08 02:18:52 +00004057if { (eval echo configure:4058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004058 rm -rf conftest*
4059 eval "ac_cv_func__doprnt=yes"
4060else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004061 echo "configure: failed program was:" >&5
4062 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004063 rm -rf conftest*
4064 eval "ac_cv_func__doprnt=no"
4065fi
4066rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004067fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004068
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004069if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
4070 echo "$ac_t""yes" 1>&6
4071 cat >> confdefs.h <<\EOF
4072#define HAVE_DOPRNT 1
4073EOF
4074
4075else
4076 echo "$ac_t""no" 1>&6
4077fi
4078
4079fi
4080
4081echo $ac_n "checking whether struct dirent has a d_namlen field""... $ac_c" 1>&6
Theodore Ts'odb653a82001-02-08 02:18:52 +00004082echo "configure:4083: checking whether struct dirent has a d_namlen field" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004083if eval "test \"`echo '$''{'e2fsprogs_cv_struct_d_namlen'+set}'`\" = set"; then
4084 echo $ac_n "(cached) $ac_c" 1>&6
4085else
4086 cat > conftest.$ac_ext <<EOF
Theodore Ts'odb653a82001-02-08 02:18:52 +00004087#line 4088 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004088#include "confdefs.h"
4089#include <sys/types.h>
4090#include <dirent.h>
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004091int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004092struct dirent de; de.d_namlen = 0;
4093; return 0; }
4094EOF
Theodore Ts'odb653a82001-02-08 02:18:52 +00004095if { (eval echo configure:4096: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004096 rm -rf conftest*
4097 e2fsprogs_cv_struct_d_namlen=yes
4098else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004099 echo "configure: failed program was:" >&5
4100 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004101 rm -rf conftest*
4102 e2fsprogs_cv_struct_d_namlen=no
4103fi
4104rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004105fi
4106
4107echo "$ac_t""$e2fsprogs_cv_struct_d_namlen" 1>&6
4108if test "$e2fsprogs_cv_struct_d_namlen" = yes; then
4109 cat >> confdefs.h <<\EOF
4110#define HAVE_DIRENT_NAMLEN 1
4111EOF
4112
4113fi
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00004114echo $ac_n "checking whether llseek declared in unistd.h""... $ac_c" 1>&6
Theodore Ts'odb653a82001-02-08 02:18:52 +00004115echo "configure:4116: checking whether llseek declared in unistd.h" >&5
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00004116if eval "test \"`echo '$''{'e2fsprogs_cv_have_llseek_prototype'+set}'`\" = set"; then
4117 echo $ac_n "(cached) $ac_c" 1>&6
4118else
4119 cat > conftest.$ac_ext <<EOF
Theodore Ts'odb653a82001-02-08 02:18:52 +00004120#line 4121 "configure"
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00004121#include "confdefs.h"
4122#include <unistd.h>
4123int main() {
4124extern int llseek(int);
4125; return 0; }
4126EOF
Theodore Ts'odb653a82001-02-08 02:18:52 +00004127if { (eval echo configure:4128: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00004128 rm -rf conftest*
4129 e2fsprogs_cv_have_llseek_prototype=no
4130else
4131 echo "configure: failed program was:" >&5
4132 cat conftest.$ac_ext >&5
4133 rm -rf conftest*
4134 e2fsprogs_cv_have_llseek_prototype=yes
4135fi
4136rm -f conftest*
4137fi
4138
4139echo "$ac_t""$e2fsprogs_cv_have_llseek_prototype" 1>&6
4140if test "$e2fsprogs_cv_have_llseek_prototype" = yes; then
4141 cat >> confdefs.h <<\EOF
4142#define HAVE_LLSEEK_PROTOTYPE 1
4143EOF
4144
4145fi
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004146echo $ac_n "checking whether lseek64 declared in unistd.h""... $ac_c" 1>&6
Theodore Ts'odb653a82001-02-08 02:18:52 +00004147echo "configure:4148: checking whether lseek64 declared in unistd.h" >&5
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004148if eval "test \"`echo '$''{'e2fsprogs_cv_have_lseek64_prototype'+set}'`\" = set"; then
4149 echo $ac_n "(cached) $ac_c" 1>&6
4150else
4151 cat > conftest.$ac_ext <<EOF
Theodore Ts'odb653a82001-02-08 02:18:52 +00004152#line 4153 "configure"
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004153#include "confdefs.h"
4154#define _LARGEFILE_SOURCE
4155#define _LARGEFILE64_SOURCE
4156#include <unistd.h>
4157int main() {
4158extern int lseek64(int);
4159; return 0; }
4160EOF
Theodore Ts'odb653a82001-02-08 02:18:52 +00004161if { (eval echo configure:4162: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004162 rm -rf conftest*
4163 e2fsprogs_cv_have_lseek64_prototype=no
4164else
4165 echo "configure: failed program was:" >&5
4166 cat conftest.$ac_ext >&5
4167 rm -rf conftest*
4168 e2fsprogs_cv_have_lseek64_prototype=yes
4169fi
4170rm -f conftest*
4171fi
4172
4173echo "$ac_t""$e2fsprogs_cv_have_lseek64_prototype" 1>&6
4174if test "$e2fsprogs_cv_have_lseek64_prototype" = yes; then
4175 cat >> confdefs.h <<\EOF
4176#define HAVE_LSEEK64_PROTOTYPE 1
4177EOF
4178
4179fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004180if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
4181 # if cross-compiling, with no cached values, just assume something common.
4182 ac_cv_sizeof_short=2
4183 ac_cv_sizeof_int=4
4184 ac_cv_sizeof_long=4
Theodore Ts'o6c133521999-07-03 20:37:03 +00004185 ac_cv_sizeof_long_long=8
4186 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 +00004187fi
4188echo $ac_n "checking size of short""... $ac_c" 1>&6
Theodore Ts'odb653a82001-02-08 02:18:52 +00004189echo "configure:4190: checking size of short" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004190if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
4191 echo $ac_n "(cached) $ac_c" 1>&6
4192else
4193 if test "$cross_compiling" = yes; then
4194 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4195else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004196 cat > conftest.$ac_ext <<EOF
Theodore Ts'odb653a82001-02-08 02:18:52 +00004197#line 4198 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004198#include "confdefs.h"
4199#include <stdio.h>
4200main()
4201{
4202 FILE *f=fopen("conftestval", "w");
4203 if (!f) exit(1);
4204 fprintf(f, "%d\n", sizeof(short));
4205 exit(0);
4206}
4207EOF
Theodore Ts'odb653a82001-02-08 02:18:52 +00004208if { (eval echo configure:4209: \"$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 +00004209then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004210 ac_cv_sizeof_short=`cat conftestval`
4211else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004212 echo "configure: failed program was:" >&5
4213 cat conftest.$ac_ext >&5
4214 rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004215 ac_cv_sizeof_short=0
4216fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004217rm -fr conftest*
4218fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004219
4220fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004221echo "$ac_t""$ac_cv_sizeof_short" 1>&6
4222cat >> confdefs.h <<EOF
4223#define SIZEOF_SHORT $ac_cv_sizeof_short
4224EOF
4225
4226
4227echo $ac_n "checking size of int""... $ac_c" 1>&6
Theodore Ts'odb653a82001-02-08 02:18:52 +00004228echo "configure:4229: checking size of int" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004229if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
4230 echo $ac_n "(cached) $ac_c" 1>&6
4231else
4232 if test "$cross_compiling" = yes; then
4233 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4234else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004235 cat > conftest.$ac_ext <<EOF
Theodore Ts'odb653a82001-02-08 02:18:52 +00004236#line 4237 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004237#include "confdefs.h"
4238#include <stdio.h>
4239main()
4240{
4241 FILE *f=fopen("conftestval", "w");
4242 if (!f) exit(1);
4243 fprintf(f, "%d\n", sizeof(int));
4244 exit(0);
4245}
4246EOF
Theodore Ts'odb653a82001-02-08 02:18:52 +00004247if { (eval echo configure:4248: \"$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 +00004248then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004249 ac_cv_sizeof_int=`cat conftestval`
4250else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004251 echo "configure: failed program was:" >&5
4252 cat conftest.$ac_ext >&5
4253 rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004254 ac_cv_sizeof_int=0
4255fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004256rm -fr conftest*
4257fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004258
4259fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004260echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4261cat >> confdefs.h <<EOF
4262#define SIZEOF_INT $ac_cv_sizeof_int
4263EOF
4264
4265
4266echo $ac_n "checking size of long""... $ac_c" 1>&6
Theodore Ts'odb653a82001-02-08 02:18:52 +00004267echo "configure:4268: checking size of long" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004268if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
4269 echo $ac_n "(cached) $ac_c" 1>&6
4270else
4271 if test "$cross_compiling" = yes; then
4272 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4273else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004274 cat > conftest.$ac_ext <<EOF
Theodore Ts'odb653a82001-02-08 02:18:52 +00004275#line 4276 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004276#include "confdefs.h"
4277#include <stdio.h>
4278main()
4279{
4280 FILE *f=fopen("conftestval", "w");
4281 if (!f) exit(1);
4282 fprintf(f, "%d\n", sizeof(long));
4283 exit(0);
4284}
4285EOF
Theodore Ts'odb653a82001-02-08 02:18:52 +00004286if { (eval echo configure:4287: \"$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 +00004287then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004288 ac_cv_sizeof_long=`cat conftestval`
4289else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004290 echo "configure: failed program was:" >&5
4291 cat conftest.$ac_ext >&5
4292 rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004293 ac_cv_sizeof_long=0
4294fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004295rm -fr conftest*
4296fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004297
4298fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004299echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4300cat >> confdefs.h <<EOF
4301#define SIZEOF_LONG $ac_cv_sizeof_long
4302EOF
4303
4304
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004305echo $ac_n "checking size of long long""... $ac_c" 1>&6
Theodore Ts'odb653a82001-02-08 02:18:52 +00004306echo "configure:4307: checking size of long long" >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004307if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
4308 echo $ac_n "(cached) $ac_c" 1>&6
4309else
4310 if test "$cross_compiling" = yes; then
4311 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4312else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004313 cat > conftest.$ac_ext <<EOF
Theodore Ts'odb653a82001-02-08 02:18:52 +00004314#line 4315 "configure"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004315#include "confdefs.h"
4316#include <stdio.h>
4317main()
4318{
4319 FILE *f=fopen("conftestval", "w");
4320 if (!f) exit(1);
4321 fprintf(f, "%d\n", sizeof(long long));
4322 exit(0);
4323}
4324EOF
Theodore Ts'odb653a82001-02-08 02:18:52 +00004325if { (eval echo configure:4326: \"$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 +00004326then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004327 ac_cv_sizeof_long_long=`cat conftestval`
4328else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004329 echo "configure: failed program was:" >&5
4330 cat conftest.$ac_ext >&5
4331 rm -fr conftest*
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004332 ac_cv_sizeof_long_long=0
4333fi
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004334rm -fr conftest*
4335fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004336
4337fi
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004338echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4339cat >> confdefs.h <<EOF
4340#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4341EOF
4342
4343
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004344SIZEOF_SHORT=$ac_cv_sizeof_short
4345SIZEOF_INT=$ac_cv_sizeof_int
4346SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004347SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
4348
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004349
4350
4351
4352echo $ac_n "checking whether struct stat has a st_flags field""... $ac_c" 1>&6
Theodore Ts'odb653a82001-02-08 02:18:52 +00004353echo "configure:4354: checking whether struct stat has a st_flags field" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004354if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags'+set}'`\" = set"; then
4355 echo $ac_n "(cached) $ac_c" 1>&6
4356else
4357 cat > conftest.$ac_ext <<EOF
Theodore Ts'odb653a82001-02-08 02:18:52 +00004358#line 4359 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004359#include "confdefs.h"
4360#include <sys/stat.h>
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004361int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004362struct stat stat; stat.st_flags = 0;
4363; return 0; }
4364EOF
Theodore Ts'odb653a82001-02-08 02:18:52 +00004365if { (eval echo configure:4366: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004366 rm -rf conftest*
4367 e2fsprogs_cv_struct_st_flags=yes
4368else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004369 echo "configure: failed program was:" >&5
4370 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004371 rm -rf conftest*
4372 e2fsprogs_cv_struct_st_flags=no
4373fi
4374rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004375fi
4376
4377echo "$ac_t""$e2fsprogs_cv_struct_st_flags" 1>&6
4378if test "$e2fsprogs_cv_struct_st_flags" = yes; then
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00004379 echo $ac_n "checking whether st_flags field is useful""... $ac_c" 1>&6
Theodore Ts'odb653a82001-02-08 02:18:52 +00004380echo "configure:4381: checking whether st_flags field is useful" >&5
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00004381 if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags_immut'+set}'`\" = set"; then
4382 echo $ac_n "(cached) $ac_c" 1>&6
4383else
4384 cat > conftest.$ac_ext <<EOF
Theodore Ts'odb653a82001-02-08 02:18:52 +00004385#line 4386 "configure"
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00004386#include "confdefs.h"
4387#include <sys/stat.h>
4388int main() {
4389struct stat stat; stat.st_flags |= UF_IMMUTABLE;
4390; return 0; }
4391EOF
Theodore Ts'odb653a82001-02-08 02:18:52 +00004392if { (eval echo configure:4393: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00004393 rm -rf conftest*
4394 e2fsprogs_cv_struct_st_flags_immut=yes
4395else
4396 echo "configure: failed program was:" >&5
4397 cat conftest.$ac_ext >&5
4398 rm -rf conftest*
4399 e2fsprogs_cv_struct_st_flags_immut=no
4400fi
4401rm -f conftest*
4402fi
4403
4404 echo "$ac_t""$e2fsprogs_cv_struct_st_flags_immut" 1>&6
4405 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
4406 cat >> confdefs.h <<\EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004407#define HAVE_STAT_FLAGS 1
4408EOF
4409
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00004410 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004411fi
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004412for ac_func in chflags getrusage llseek lseek64 open64 strdup getmntinfo strcasecmp srandom fchown mallinfo fdatasync
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004413do
4414echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'odb653a82001-02-08 02:18:52 +00004415echo "configure:4416: checking for $ac_func" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004416if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4417 echo $ac_n "(cached) $ac_c" 1>&6
4418else
4419 cat > conftest.$ac_ext <<EOF
Theodore Ts'odb653a82001-02-08 02:18:52 +00004420#line 4421 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004421#include "confdefs.h"
4422/* System header to define __stub macros and hopefully few prototypes,
4423 which can conflict with char $ac_func(); below. */
4424#include <assert.h>
4425/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004426/* We use char because int might match the return type of a gcc2
4427 builtin and then its argument prototype would still apply. */
4428char $ac_func();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004429
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004430int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004431
4432/* The GNU C library defines this for functions which it implements
4433 to always fail with ENOSYS. Some functions are actually named
4434 something starting with __ and the normal name is an alias. */
4435#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4436choke me
4437#else
4438$ac_func();
4439#endif
4440
4441; return 0; }
4442EOF
Theodore Ts'odb653a82001-02-08 02:18:52 +00004443if { (eval echo configure:4444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004444 rm -rf conftest*
4445 eval "ac_cv_func_$ac_func=yes"
4446else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004447 echo "configure: failed program was:" >&5
4448 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004449 rm -rf conftest*
4450 eval "ac_cv_func_$ac_func=no"
4451fi
4452rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004453fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004454
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004455if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4456 echo "$ac_t""yes" 1>&6
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004457 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004458 cat >> confdefs.h <<EOF
4459#define $ac_tr_func 1
4460EOF
4461
4462else
4463 echo "$ac_t""no" 1>&6
4464fi
4465done
4466
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004467SOCKET_LIB=''
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004468echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
Theodore Ts'odb653a82001-02-08 02:18:52 +00004469echo "configure:4470: checking for socket in -lsocket" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004470ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
4471if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004472 echo $ac_n "(cached) $ac_c" 1>&6
4473else
4474 ac_save_LIBS="$LIBS"
4475LIBS="-lsocket $LIBS"
4476cat > conftest.$ac_ext <<EOF
Theodore Ts'odb653a82001-02-08 02:18:52 +00004477#line 4478 "configure"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004478#include "confdefs.h"
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004479/* Override any gcc2 internal prototype to avoid an error. */
4480/* We use char because int might match the return type of a gcc2
4481 builtin and then its argument prototype would still apply. */
4482char socket();
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004483
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004484int main() {
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004485socket()
4486; return 0; }
4487EOF
Theodore Ts'odb653a82001-02-08 02:18:52 +00004488if { (eval echo configure:4489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004489 rm -rf conftest*
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004490 eval "ac_cv_lib_$ac_lib_var=yes"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004491else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004492 echo "configure: failed program was:" >&5
4493 cat conftest.$ac_ext >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004494 rm -rf conftest*
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004495 eval "ac_cv_lib_$ac_lib_var=no"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004496fi
4497rm -f conftest*
4498LIBS="$ac_save_LIBS"
4499
4500fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004501if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004502 echo "$ac_t""yes" 1>&6
4503 SOCKET_LIB=-lsocket
4504else
4505 echo "$ac_t""no" 1>&6
4506fi
4507
4508
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004509echo $ac_n "checking for optreset""... $ac_c" 1>&6
Theodore Ts'odb653a82001-02-08 02:18:52 +00004510echo "configure:4511: checking for optreset" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004511if eval "test \"`echo '$''{'ac_cv_have_optreset'+set}'`\" = set"; then
4512 echo $ac_n "(cached) $ac_c" 1>&6
4513else
4514 cat > conftest.$ac_ext <<EOF
Theodore Ts'odb653a82001-02-08 02:18:52 +00004515#line 4516 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004516#include "confdefs.h"
4517#include <unistd.h>
4518EOF
4519if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4520 egrep "optreset" >/dev/null 2>&1; then
4521 rm -rf conftest*
4522 ac_cv_have_optreset=yes
4523else
4524 rm -rf conftest*
4525 ac_cv_have_optreset=no
4526fi
4527rm -f conftest*
4528
4529fi
4530echo "$ac_t""$ac_cv_have_optreset" 1>&6
4531if test $ac_cv_have_optreset = yes; then
4532 cat >> confdefs.h <<\EOF
4533#define HAVE_OPTRESET 1
4534EOF
4535
4536fi
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +00004537case "$host_os" in
4538linux*)
4539 cat >> confdefs.h <<\EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004540#define HAVE_EXT2_IOCTLS 1
4541EOF
4542
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +00004543 ;;
4544esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004545case "$host_os" in
Theodore Ts'o6c133521999-07-03 20:37:03 +00004546linux* | gnu*)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004547 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
4548 root_prefix="";
4549 echo "On $host_os systems, root_prefix defaults to ''"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004550 fi
4551 ;;
4552esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004553case "$host_os" in
4554linux* | gnu*)
4555 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004556 prefix="/usr";
4557 echo "On $host_os systems, prefix defaults to /usr"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004558 fi
4559;;
4560esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004561if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +00004562 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004563 root_prefix="$ac_default_prefix"
4564 else
4565 root_prefix="$prefix"
4566 fi
4567fi
4568
Theodore Ts'oae851481997-04-29 18:13:24 +00004569echo $ac_n "checking whether linker accepts -static""... $ac_c" 1>&6
Theodore Ts'odb653a82001-02-08 02:18:52 +00004570echo "configure:4571: checking whether linker accepts -static" >&5
Theodore Ts'oae851481997-04-29 18:13:24 +00004571if eval "test \"`echo '$''{'ac_cv_e2fsprogs_use_static'+set}'`\" = set"; then
4572 echo $ac_n "(cached) $ac_c" 1>&6
4573else
4574 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
4575cat > conftest.$ac_ext <<EOF
Theodore Ts'odb653a82001-02-08 02:18:52 +00004576#line 4577 "configure"
Theodore Ts'oae851481997-04-29 18:13:24 +00004577#include "confdefs.h"
4578#include <stdio.h>
4579int main() {
4580fflush(stdout);
4581; return 0; }
4582EOF
Theodore Ts'odb653a82001-02-08 02:18:52 +00004583if { (eval echo configure:4584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oae851481997-04-29 18:13:24 +00004584 rm -rf conftest*
4585 ac_cv_e2fsprogs_use_static=yes
4586else
4587 echo "configure: failed program was:" >&5
4588 cat conftest.$ac_ext >&5
4589 rm -rf conftest*
4590 ac_cv_e2fsprogs_use_static=no
4591fi
4592rm -f conftest*
4593LDFLAGS=$SAVE_LDFLAGS
4594fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004595
Theodore Ts'odefde781999-01-04 07:39:19 +00004596case "$host_os" in
4597solaris2.*)
4598 ac_cv_e2fsprogs_use_static=no
4599;;
4600esac
Theodore Ts'oae851481997-04-29 18:13:24 +00004601echo "$ac_t""$ac_cv_e2fsprogs_use_static" 1>&6
Theodore Ts'o74becf31997-04-26 14:37:06 +00004602LDFLAG_STATIC=
Theodore Ts'oae851481997-04-29 18:13:24 +00004603if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004604 LDFLAG_STATIC=-static
Theodore Ts'oae851481997-04-29 18:13:24 +00004605fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004606
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004607SS_DIR=`cd ${srcdir}/lib/ss; pwd`
4608ET_DIR=`cd ${srcdir}/lib/et; pwd`
4609
4610
4611if test "$cross_compiling" = yes ; then
4612 DO_TEST_SUITE=
4613else
4614 DO_TEST_SUITE=check
4615fi
4616
4617test -d lib || mkdir lib
4618test -d include || mkdir include
4619test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +00004620test -d include/asm || mkdir include/asm
Theodore Ts'obc210071997-06-17 05:41:36 +00004621rmakefile=
4622if test -d ${srcdir}/resize ; then
4623 rmakefile=resize/Makefile
4624fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004625trap '' 1 2 15
4626cat > confcache <<\EOF
4627# This file is a shell script that caches the results of configure
4628# tests run on this system so they can be shared between configure
4629# scripts and configure runs. It is not useful on other systems.
4630# If it contains results you don't want to keep, you may remove or edit it.
4631#
4632# By default, configure uses ./config.cache as the cache file,
4633# creating it if it does not exist already. You can give configure
4634# the --cache-file=FILE option to use a different cache file; that is
4635# what configure does when it calls configure scripts in
4636# subdirectories, so they share the cache.
4637# Giving --cache-file=/dev/null disables caching, for debugging configure.
4638# config.status only pays attention to the cache file if you give it the
4639# --recheck option to rerun configure.
4640#
4641EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004642# The following way of writing the cache mishandles newlines in values,
4643# but we know of no workaround that is simple, portable, and efficient.
4644# So, don't put newlines in cache variables' values.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004645# Ultrix sh set writes to stderr and can't be redirected directly,
4646# and sets the high bit in the cache file unless we assign to the vars.
4647(set) 2>&1 |
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004648 case `(ac_space=' '; set | grep ac_space) 2>&1` in
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004649 *ac_space=\ *)
4650 # `set' does not quote correctly, so add quotes (double-quote substitution
4651 # turns \\\\ into \\, and sed turns \\ into \).
4652 sed -n \
4653 -e "s/'/'\\\\''/g" \
4654 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4655 ;;
4656 *)
4657 # `set' quotes correctly as required by POSIX, so do not add quotes.
4658 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4659 ;;
4660 esac >> confcache
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004661if cmp -s $cache_file confcache; then
4662 :
4663else
4664 if test -w $cache_file; then
4665 echo "updating cache $cache_file"
4666 cat confcache > $cache_file
4667 else
4668 echo "not updating unwritable cache $cache_file"
4669 fi
4670fi
4671rm -f confcache
4672
4673trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4674
4675test "x$prefix" = xNONE && prefix=$ac_default_prefix
4676# Let make expand exec_prefix.
4677test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4678
4679# Any assignment to VPATH causes Sun make to only execute
4680# the first set of double-colon rules, so remove it if not needed.
4681# If there is a colon in the path, we need to keep it.
4682if test "x$srcdir" = x.; then
4683 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4684fi
4685
4686trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4687
4688# Transform confdefs.h into DEFS.
4689# Protect against shell expansion while executing Makefile rules.
4690# Protect against Makefile macro expansion.
4691cat > conftest.defs <<\EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004692s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004693s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
4694s%\[%\\&%g
4695s%\]%\\&%g
4696s%\$%$$%g
4697EOF
4698DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
4699rm -f conftest.defs
4700
4701
4702# Without the "./", some shells look in PATH for config.status.
4703: ${CONFIG_STATUS=./config.status}
4704
4705echo creating $CONFIG_STATUS
4706rm -f $CONFIG_STATUS
4707cat > $CONFIG_STATUS <<EOF
4708#! /bin/sh
4709# Generated automatically by configure.
4710# Run this file to recreate the current configuration.
4711# This directory was configured as follows,
4712# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4713#
4714# $0 $ac_configure_args
4715#
4716# Compiler output produced by configure, useful for debugging
4717# configure, is in ./config.log if it exists.
4718
4719ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4720for ac_option
4721do
4722 case "\$ac_option" in
4723 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4724 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4725 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4726 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004727 echo "$CONFIG_STATUS generated by autoconf version 2.13"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004728 exit 0 ;;
4729 -help | --help | --hel | --he | --h)
4730 echo "\$ac_cs_usage"; exit 0 ;;
4731 *) echo "\$ac_cs_usage"; exit 1 ;;
4732 esac
4733done
4734
4735ac_given_srcdir=$srcdir
4736ac_given_INSTALL="$INSTALL"
4737
Theodore Ts'o44339bd1997-10-15 02:47:20 +00004738trap 'rm -fr `echo "MCONFIG Makefile util/Makefile util/subst.conf lib/et/Makefile
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004739 lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile lib/uuid/Makefile
Theodore Ts'odb653a82001-02-08 02:18:52 +00004740 lib/finddev/Makefile
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004741 misc/Makefile e2fsck/Makefile debugfs/Makefile tests/Makefile
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004742 tests/progs/Makefile $rmakefile doc/Makefile
4743 intl/Makefile po/Makefile.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004744EOF
4745cat >> $CONFIG_STATUS <<EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004746
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004747# Protect against being on the right side of a sed subst in config.status.
4748sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4749 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004750$ac_vpsub
4751$extrasub
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004752s%@SHELL@%$SHELL%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004753s%@CFLAGS@%$CFLAGS%g
4754s%@CPPFLAGS@%$CPPFLAGS%g
4755s%@CXXFLAGS@%$CXXFLAGS%g
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004756s%@FFLAGS@%$FFLAGS%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004757s%@DEFS@%$DEFS%g
4758s%@LDFLAGS@%$LDFLAGS%g
4759s%@LIBS@%$LIBS%g
4760s%@exec_prefix@%$exec_prefix%g
4761s%@prefix@%$prefix%g
4762s%@program_transform_name@%$program_transform_name%g
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004763s%@bindir@%$bindir%g
4764s%@sbindir@%$sbindir%g
4765s%@libexecdir@%$libexecdir%g
4766s%@datadir@%$datadir%g
4767s%@sysconfdir@%$sysconfdir%g
4768s%@sharedstatedir@%$sharedstatedir%g
4769s%@localstatedir@%$localstatedir%g
4770s%@libdir@%$libdir%g
4771s%@includedir@%$includedir%g
4772s%@oldincludedir@%$oldincludedir%g
4773s%@infodir@%$infodir%g
4774s%@mandir@%$mandir%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004775/@MCONFIG@/r $MCONFIG
4776s%@MCONFIG@%%g
Theodore Ts'o74becf31997-04-26 14:37:06 +00004777s%@E2FSPROGS_YEAR@%$E2FSPROGS_YEAR%g
4778s%@E2FSPROGS_MONTH@%$E2FSPROGS_MONTH%g
4779s%@E2FSPROGS_VERSION@%$E2FSPROGS_VERSION%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004780s%@host@%$host%g
4781s%@host_alias@%$host_alias%g
4782s%@host_cpu@%$host_cpu%g
4783s%@host_vendor@%$host_vendor%g
4784s%@host_os@%$host_os%g
Theodore Ts'o74becf31997-04-26 14:37:06 +00004785s%@CC@%$CC%g
4786s%@LD@%$LD%g
4787s%@CCOPTS@%$CCOPTS%g
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004788s%@CPP@%$CPP%g
4789s%@LINUX_INCLUDE@%$LINUX_INCLUDE%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004790s%@DLL_CMT@%$DLL_CMT%g
4791/@MAKEFILE_DLL@/r $MAKEFILE_DLL
4792s%@MAKEFILE_DLL@%%g
4793s%@ELF_CMT@%$ELF_CMT%g
4794/@MAKEFILE_ELF@/r $MAKEFILE_ELF
4795s%@MAKEFILE_ELF@%%g
4796s%@BSDLIB_CMT@%$BSDLIB_CMT%g
4797/@MAKEFILE_BSDLIB@/r $MAKEFILE_BSDLIB
4798s%@MAKEFILE_BSDLIB@%%g
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004799s%@PACKAGE@%$PACKAGE%g
4800s%@VERSION@%$VERSION%g
4801s%@SET_MAKE@%$SET_MAKE%g
4802s%@RANLIB@%$RANLIB%g
4803s%@ALLOCA@%$ALLOCA%g
4804s%@USE_NLS@%$USE_NLS%g
4805s%@MSGFMT@%$MSGFMT%g
4806s%@GMSGFMT@%$GMSGFMT%g
4807s%@XGETTEXT@%$XGETTEXT%g
4808s%@GENCAT@%$GENCAT%g
4809s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
4810s%@CATALOGS@%$CATALOGS%g
4811s%@CATOBJEXT@%$CATOBJEXT%g
4812s%@DATADIRNAME@%$DATADIRNAME%g
4813s%@GMOFILES@%$GMOFILES%g
4814s%@INSTOBJEXT@%$INSTOBJEXT%g
4815s%@INTLDEPS@%$INTLDEPS%g
4816s%@INTLLIBS@%$INTLLIBS%g
4817s%@INTLOBJS@%$INTLOBJS%g
4818s%@POFILES@%$POFILES%g
4819s%@POSUB@%$POSUB%g
4820s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
4821s%@GT_NO@%$GT_NO%g
4822s%@GT_YES@%$GT_YES%g
4823s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
4824s%@l@%$l%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004825s%@PROFILE_CMT@%$PROFILE_CMT%g
4826/@MAKEFILE_PROFILE@/r $MAKEFILE_PROFILE
4827s%@MAKEFILE_PROFILE@%%g
4828s%@CHECKER_CMT@%$CHECKER_CMT%g
4829/@MAKEFILE_CHECKER@/r $MAKEFILE_CHECKER
4830s%@MAKEFILE_CHECKER@%%g
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004831s%@LIB_EXT@%$LIB_EXT%g
4832s%@STATIC_LIB_EXT@%$STATIC_LIB_EXT%g
4833s%@PROFILED_LIB_EXT@%$PROFILED_LIB_EXT%g
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004834s%@E2FSCK_TYPE@%$E2FSCK_TYPE%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004835s%@FSCK_PROG@%$FSCK_PROG%g
4836s%@FSCK_MAN@%$FSCK_MAN%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004837/@MAKEFILE_LIBRARY@/r $MAKEFILE_LIBRARY
4838s%@MAKEFILE_LIBRARY@%%g
Theodore Ts'o74becf31997-04-26 14:37:06 +00004839s%@BINARY_TYPE@%$BINARY_TYPE%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004840s%@LN@%$LN%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004841s%@LN_S@%$LN_S%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004842s%@MV@%$MV%g
4843s%@CP@%$CP%g
4844s%@RM@%$RM%g
4845s%@CHMOD@%$CHMOD%g
4846s%@AWK@%$AWK%g
4847s%@SED@%$SED%g
Theodore Ts'o9d564f71999-07-03 20:25:58 +00004848s%@PERL@%$PERL%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004849s%@build@%$build%g
4850s%@build_alias@%$build_alias%g
4851s%@build_cpu@%$build_cpu%g
4852s%@build_vendor@%$build_vendor%g
4853s%@build_os@%$build_os%g
4854s%@AR@%$AR%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004855s%@STRIP@%$STRIP%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004856s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004857s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004858s%@INSTALL_DATA@%$INSTALL_DATA%g
Theodore Ts'o6c133521999-07-03 20:37:03 +00004859s%@BUILD_CC@%$BUILD_CC%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004860s%@SIZEOF_SHORT@%$SIZEOF_SHORT%g
4861s%@SIZEOF_INT@%$SIZEOF_INT%g
4862s%@SIZEOF_LONG@%$SIZEOF_LONG%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004863s%@SIZEOF_LONG_LONG@%$SIZEOF_LONG_LONG%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004864s%@SOCKET_LIB@%$SOCKET_LIB%g
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004865s%@root_prefix@%$root_prefix%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004866s%@LDFLAG_STATIC@%$LDFLAG_STATIC%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004867s%@SS_DIR@%$SS_DIR%g
4868s%@ET_DIR@%$ET_DIR%g
4869s%@DO_TEST_SUITE@%$DO_TEST_SUITE%g
4870
4871CEOF
4872EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004873
4874cat >> $CONFIG_STATUS <<\EOF
4875
4876# Split the substitutions into bite-sized pieces for seds with
4877# small command number limits, like on Digital OSF/1 and HP-UX.
4878ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4879ac_file=1 # Number of current file.
4880ac_beg=1 # First line for current file.
4881ac_end=$ac_max_sed_cmds # Line after last line for current file.
4882ac_more_lines=:
4883ac_sed_cmds=""
4884while $ac_more_lines; do
4885 if test $ac_beg -gt 1; then
4886 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4887 else
4888 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4889 fi
4890 if test ! -s conftest.s$ac_file; then
4891 ac_more_lines=false
4892 rm -f conftest.s$ac_file
4893 else
4894 if test -z "$ac_sed_cmds"; then
4895 ac_sed_cmds="sed -f conftest.s$ac_file"
4896 else
4897 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4898 fi
4899 ac_file=`expr $ac_file + 1`
4900 ac_beg=$ac_end
4901 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4902 fi
4903done
4904if test -z "$ac_sed_cmds"; then
4905 ac_sed_cmds=cat
4906fi
4907EOF
4908
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004909cat >> $CONFIG_STATUS <<EOF
4910
Theodore Ts'o44339bd1997-10-15 02:47:20 +00004911CONFIG_FILES=\${CONFIG_FILES-"MCONFIG Makefile util/Makefile util/subst.conf lib/et/Makefile
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004912 lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile lib/uuid/Makefile
Theodore Ts'odb653a82001-02-08 02:18:52 +00004913 lib/finddev/Makefile
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004914 misc/Makefile e2fsck/Makefile debugfs/Makefile tests/Makefile
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004915 tests/progs/Makefile $rmakefile doc/Makefile
4916 intl/Makefile po/Makefile.in"}
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004917EOF
4918cat >> $CONFIG_STATUS <<\EOF
4919for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004920 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004921 case "$ac_file" in
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004922 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004923 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4924 *) ac_file_in="${ac_file}.in" ;;
4925 esac
4926
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004927 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004928
4929 # Remove last slash and all that follows it. Not all systems have dirname.
4930 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4931 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4932 # The file is in a subdirectory.
4933 test ! -d "$ac_dir" && mkdir "$ac_dir"
4934 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4935 # A "../" for each directory in $ac_dir_suffix.
4936 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4937 else
4938 ac_dir_suffix= ac_dots=
4939 fi
4940
4941 case "$ac_given_srcdir" in
4942 .) srcdir=.
4943 if test -z "$ac_dots"; then top_srcdir=.
4944 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4945 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4946 *) # Relative path.
4947 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4948 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4949 esac
4950
4951 case "$ac_given_INSTALL" in
4952 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4953 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4954 esac
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004955
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004956 echo creating "$ac_file"
4957 rm -f "$ac_file"
4958 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4959 case "$ac_file" in
4960 *Makefile*) ac_comsub="1i\\
4961# $configure_input" ;;
4962 *) ac_comsub= ;;
4963 esac
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004964
4965 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 +00004966 sed -e "$ac_comsub
4967s%@configure_input@%$configure_input%g
4968s%@srcdir@%$srcdir%g
4969s%@top_srcdir@%$top_srcdir%g
4970s%@INSTALL@%$INSTALL%g
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004971" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004972fi; done
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004973rm -f conftest.s*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004974
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004975EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004976
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004977cat >> $CONFIG_STATUS <<EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004978ac_sources="$nls_cv_header_libgt"
4979ac_dests="$nls_cv_header_intl"
4980EOF
4981
4982cat >> $CONFIG_STATUS <<\EOF
4983srcdir=$ac_given_srcdir
4984while test -n "$ac_sources"; do
4985 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
4986 set $ac_sources; ac_source=$1; shift; ac_sources=$*
4987
4988 echo "linking $srcdir/$ac_source to $ac_dest"
4989
4990 if test ! -r $srcdir/$ac_source; then
4991 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
4992 fi
4993 rm -f $ac_dest
4994
4995 # Make relative symlinks.
4996 # Remove last slash and all that follows it. Not all systems have dirname.
4997 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
4998 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
4999 # The dest file is in a subdirectory.
5000 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
5001 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
5002 # A "../" for each directory in $ac_dest_dir_suffix.
5003 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
5004 else
5005 ac_dest_dir_suffix= ac_dots=
5006 fi
5007
5008 case "$srcdir" in
5009 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
5010 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
5011 esac
5012
5013 # Make a symlink if possible; otherwise try a hard link.
5014 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
5015 ln $srcdir/$ac_source $ac_dest; then :
5016 else
5017 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
5018 fi
5019done
5020EOF
5021cat >> $CONFIG_STATUS <<EOF
5022
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005023
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005024EOF
5025cat >> $CONFIG_STATUS <<\EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005026case "$CONFIG_FILES" in *po/Makefile.in*)
5027 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
5028 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005029
5030exit 0
5031EOF
5032chmod +x $CONFIG_STATUS
5033rm -fr confdefs* $ac_clean_files
5034test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
5035