blob: 0f2ec53114b1b03b8fcd3f247999d0eb419b2b68 [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'ob0b9c4d1997-10-20 23:36:30 +000045 --enable-gcc-wall enable GCC anal warnings (DON'T USE IN PRODUCTION)"
Theodore Ts'oa4d09611997-04-29 14:28:00 +000046ac_help="$ac_help
47 --enable-dynamic-e2fsck build e2fsck dynamically"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000048ac_help="$ac_help
49 --enable-fsck build fsck wrapper program"
50ac_help="$ac_help
51 --enable-old-bitops Use old (non-standard but native) bitmask operations"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000052
53# Initialize some variables set by options.
54# The variables have the same names as the options, with
55# dashes changed to underlines.
56build=NONE
57cache_file=./config.cache
58exec_prefix=NONE
59host=NONE
60no_create=
61nonopt=NONE
62no_recursion=
63prefix=NONE
64program_prefix=NONE
65program_suffix=NONE
66program_transform_name=s,x,x,
67silent=
68site=
69srcdir=
70target=NONE
71verbose=
72x_includes=NONE
73x_libraries=NONE
Theodore Ts'o21c84b71997-04-29 16:15:03 +000074bindir='${exec_prefix}/bin'
75sbindir='${exec_prefix}/sbin'
76libexecdir='${exec_prefix}/libexec'
77datadir='${prefix}/share'
78sysconfdir='${prefix}/etc'
79sharedstatedir='${prefix}/com'
80localstatedir='${prefix}/var'
81libdir='${exec_prefix}/lib'
82includedir='${prefix}/include'
83oldincludedir='/usr/include'
84infodir='${prefix}/info'
85mandir='${prefix}/man'
Theodore Ts'o50e1e101997-04-26 13:58:21 +000086
87# Initialize some other variables.
88subdirs=
Theodore Ts'o21c84b71997-04-29 16:15:03 +000089MFLAGS= MAKEFLAGS=
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +000090SHELL=${CONFIG_SHELL-/bin/sh}
Theodore Ts'o21c84b71997-04-29 16:15:03 +000091# Maximum number of lines to put in a shell here document.
92ac_max_here_lines=12
Theodore Ts'o50e1e101997-04-26 13:58:21 +000093
94ac_prev=
95for ac_option
96do
97
98 # If the previous option needs an argument, assign it.
99 if test -n "$ac_prev"; then
100 eval "$ac_prev=\$ac_option"
101 ac_prev=
102 continue
103 fi
104
105 case "$ac_option" in
106 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
107 *) ac_optarg= ;;
108 esac
109
110 # Accept the important Cygnus configure options, so we can diagnose typos.
111
112 case "$ac_option" in
113
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000114 -bindir | --bindir | --bindi | --bind | --bin | --bi)
115 ac_prev=bindir ;;
116 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
117 bindir="$ac_optarg" ;;
118
119 -build | --build | --buil | --bui | --bu)
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000120 ac_prev=build ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000121 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000122 build="$ac_optarg" ;;
123
124 -cache-file | --cache-file | --cache-fil | --cache-fi \
125 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
126 ac_prev=cache_file ;;
127 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
128 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
129 cache_file="$ac_optarg" ;;
130
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000131 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
132 ac_prev=datadir ;;
133 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
134 | --da=*)
135 datadir="$ac_optarg" ;;
136
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000137 -disable-* | --disable-*)
138 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
139 # Reject names that are not valid shell variable names.
140 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
141 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
142 fi
143 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
144 eval "enable_${ac_feature}=no" ;;
145
146 -enable-* | --enable-*)
147 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
148 # Reject names that are not valid shell variable names.
149 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
150 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
151 fi
152 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
153 case "$ac_option" in
154 *=*) ;;
155 *) ac_optarg=yes ;;
156 esac
157 eval "enable_${ac_feature}='$ac_optarg'" ;;
158
159 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
160 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
161 | --exec | --exe | --ex)
162 ac_prev=exec_prefix ;;
163 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
164 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
165 | --exec=* | --exe=* | --ex=*)
166 exec_prefix="$ac_optarg" ;;
167
168 -gas | --gas | --ga | --g)
169 # Obsolete; use --with-gas.
170 with_gas=yes ;;
171
172 -help | --help | --hel | --he)
173 # Omit some internal or obsolete options to make the list less imposing.
174 # This message is too long to be a string in the A/UX 3.1 sh.
175 cat << EOF
176Usage: configure [options] [host]
177Options: [defaults in brackets after descriptions]
178Configuration:
179 --cache-file=FILE cache test results in FILE
180 --help print this message
181 --no-create do not create output files
182 --quiet, --silent do not print \`checking...' messages
183 --version print the version of autoconf that created configure
184Directory and file names:
185 --prefix=PREFIX install architecture-independent files in PREFIX
186 [$ac_default_prefix]
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000187 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000188 [same as prefix]
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000189 --bindir=DIR user executables in DIR [EPREFIX/bin]
190 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
191 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
192 --datadir=DIR read-only architecture-independent data in DIR
193 [PREFIX/share]
194 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
195 --sharedstatedir=DIR modifiable architecture-independent data in DIR
196 [PREFIX/com]
197 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
198 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
199 --includedir=DIR C header files in DIR [PREFIX/include]
200 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
201 --infodir=DIR info documentation in DIR [PREFIX/info]
202 --mandir=DIR man documentation in DIR [PREFIX/man]
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000203 --srcdir=DIR find the sources in DIR [configure dir or ..]
204 --program-prefix=PREFIX prepend PREFIX to installed program names
205 --program-suffix=SUFFIX append SUFFIX to installed program names
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000206 --program-transform-name=PROGRAM
207 run sed PROGRAM on installed program names
208EOF
209 cat << EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000210Host type:
211 --build=BUILD configure for building on BUILD [BUILD=HOST]
212 --host=HOST configure for HOST [guessed]
213 --target=TARGET configure for TARGET [TARGET=HOST]
214Features and packages:
215 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
216 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
217 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
218 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
219 --x-includes=DIR X include files are in DIR
220 --x-libraries=DIR X library files are in DIR
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000221EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000222 if test -n "$ac_help"; then
223 echo "--enable and --with options recognized:$ac_help"
224 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000225 exit 0 ;;
226
227 -host | --host | --hos | --ho)
228 ac_prev=host ;;
229 -host=* | --host=* | --hos=* | --ho=*)
230 host="$ac_optarg" ;;
231
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000232 -includedir | --includedir | --includedi | --included | --include \
233 | --includ | --inclu | --incl | --inc)
234 ac_prev=includedir ;;
235 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
236 | --includ=* | --inclu=* | --incl=* | --inc=*)
237 includedir="$ac_optarg" ;;
238
239 -infodir | --infodir | --infodi | --infod | --info | --inf)
240 ac_prev=infodir ;;
241 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
242 infodir="$ac_optarg" ;;
243
244 -libdir | --libdir | --libdi | --libd)
245 ac_prev=libdir ;;
246 -libdir=* | --libdir=* | --libdi=* | --libd=*)
247 libdir="$ac_optarg" ;;
248
249 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
250 | --libexe | --libex | --libe)
251 ac_prev=libexecdir ;;
252 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
253 | --libexe=* | --libex=* | --libe=*)
254 libexecdir="$ac_optarg" ;;
255
256 -localstatedir | --localstatedir | --localstatedi | --localstated \
257 | --localstate | --localstat | --localsta | --localst \
258 | --locals | --local | --loca | --loc | --lo)
259 ac_prev=localstatedir ;;
260 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
261 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
262 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
263 localstatedir="$ac_optarg" ;;
264
265 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
266 ac_prev=mandir ;;
267 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
268 mandir="$ac_optarg" ;;
269
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000270 -nfp | --nfp | --nf)
271 # Obsolete; use --without-fp.
272 with_fp=no ;;
273
274 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
275 | --no-cr | --no-c)
276 no_create=yes ;;
277
278 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
279 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
280 no_recursion=yes ;;
281
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000282 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
283 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
284 | --oldin | --oldi | --old | --ol | --o)
285 ac_prev=oldincludedir ;;
286 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
287 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
288 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
289 oldincludedir="$ac_optarg" ;;
290
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000291 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
292 ac_prev=prefix ;;
293 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
294 prefix="$ac_optarg" ;;
295
296 -program-prefix | --program-prefix | --program-prefi | --program-pref \
297 | --program-pre | --program-pr | --program-p)
298 ac_prev=program_prefix ;;
299 -program-prefix=* | --program-prefix=* | --program-prefi=* \
300 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
301 program_prefix="$ac_optarg" ;;
302
303 -program-suffix | --program-suffix | --program-suffi | --program-suff \
304 | --program-suf | --program-su | --program-s)
305 ac_prev=program_suffix ;;
306 -program-suffix=* | --program-suffix=* | --program-suffi=* \
307 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
308 program_suffix="$ac_optarg" ;;
309
310 -program-transform-name | --program-transform-name \
311 | --program-transform-nam | --program-transform-na \
312 | --program-transform-n | --program-transform- \
313 | --program-transform | --program-transfor \
314 | --program-transfo | --program-transf \
315 | --program-trans | --program-tran \
316 | --progr-tra | --program-tr | --program-t)
317 ac_prev=program_transform_name ;;
318 -program-transform-name=* | --program-transform-name=* \
319 | --program-transform-nam=* | --program-transform-na=* \
320 | --program-transform-n=* | --program-transform-=* \
321 | --program-transform=* | --program-transfor=* \
322 | --program-transfo=* | --program-transf=* \
323 | --program-trans=* | --program-tran=* \
324 | --progr-tra=* | --program-tr=* | --program-t=*)
325 program_transform_name="$ac_optarg" ;;
326
327 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
328 | -silent | --silent | --silen | --sile | --sil)
329 silent=yes ;;
330
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000331 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
332 ac_prev=sbindir ;;
333 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
334 | --sbi=* | --sb=*)
335 sbindir="$ac_optarg" ;;
336
337 -sharedstatedir | --sharedstatedir | --sharedstatedi \
338 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
339 | --sharedst | --shareds | --shared | --share | --shar \
340 | --sha | --sh)
341 ac_prev=sharedstatedir ;;
342 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
343 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
344 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
345 | --sha=* | --sh=*)
346 sharedstatedir="$ac_optarg" ;;
347
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000348 -site | --site | --sit)
349 ac_prev=site ;;
350 -site=* | --site=* | --sit=*)
351 site="$ac_optarg" ;;
352
353 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
354 ac_prev=srcdir ;;
355 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
356 srcdir="$ac_optarg" ;;
357
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000358 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
359 | --syscon | --sysco | --sysc | --sys | --sy)
360 ac_prev=sysconfdir ;;
361 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
362 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
363 sysconfdir="$ac_optarg" ;;
364
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000365 -target | --target | --targe | --targ | --tar | --ta | --t)
366 ac_prev=target ;;
367 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
368 target="$ac_optarg" ;;
369
370 -v | -verbose | --verbose | --verbos | --verbo | --verb)
371 verbose=yes ;;
372
373 -version | --version | --versio | --versi | --vers)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000374 echo "configure generated by autoconf version 2.13"
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000375 exit 0 ;;
376
377 -with-* | --with-*)
378 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
379 # Reject names that are not valid shell variable names.
380 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
381 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
382 fi
383 ac_package=`echo $ac_package| sed 's/-/_/g'`
384 case "$ac_option" in
385 *=*) ;;
386 *) ac_optarg=yes ;;
387 esac
388 eval "with_${ac_package}='$ac_optarg'" ;;
389
390 -without-* | --without-*)
391 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
392 # Reject names that are not valid shell variable names.
393 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
394 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
395 fi
396 ac_package=`echo $ac_package| sed 's/-/_/g'`
397 eval "with_${ac_package}=no" ;;
398
399 --x)
400 # Obsolete; use --with-x.
401 with_x=yes ;;
402
403 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
404 | --x-incl | --x-inc | --x-in | --x-i)
405 ac_prev=x_includes ;;
406 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
407 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
408 x_includes="$ac_optarg" ;;
409
410 -x-libraries | --x-libraries | --x-librarie | --x-librari \
411 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
412 ac_prev=x_libraries ;;
413 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
414 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
415 x_libraries="$ac_optarg" ;;
416
417 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
418 ;;
419
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000420 *)
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000421 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
422 echo "configure: warning: $ac_option: invalid host type" 1>&2
423 fi
424 if test "x$nonopt" != xNONE; then
425 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
426 fi
427 nonopt="$ac_option"
428 ;;
429
430 esac
431done
432
433if test -n "$ac_prev"; then
434 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
435fi
436
437trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
438
439# File descriptor usage:
440# 0 standard input
441# 1 file creation
442# 2 errors and warnings
443# 3 some systems may open it to /dev/tty
444# 4 used on the Kubota Titan
445# 6 checking for... messages and results
446# 5 compiler messages saved in config.log
447if test "$silent" = yes; then
448 exec 6>/dev/null
449else
450 exec 6>&1
451fi
452exec 5>./config.log
453
454echo "\
455This file contains any messages produced by compilers while
456running configure, to aid debugging if configure makes a mistake.
457" 1>&5
458
459# Strip out --no-create and --no-recursion so they do not pile up.
460# Also quote any args containing shell metacharacters.
461ac_configure_args=
462for ac_arg
463do
464 case "$ac_arg" in
465 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
466 | --no-cr | --no-c) ;;
467 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
468 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
469 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
470 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
471 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
472 esac
473done
474
475# NLS nuisances.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000476# Only set these to C if already set. These must not be set unconditionally
477# because not all systems understand e.g. LANG=C (notably SCO).
478# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
479# Non-C LC_CTYPE values break the ctype check.
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000480if test "${LANG+set}" = set; then LANG=C; export LANG; fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000481if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
482if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
483if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000484
485# confdefs.h avoids OS command line length limits that DEFS can exceed.
486rm -rf conftest* confdefs.h
487# AIX cpp loses on an empty file, so make sure it contains at least a newline.
488echo > confdefs.h
489
490# A filename unique to this package, relative to the directory that
491# configure is in, which we can look for to find out if srcdir is correct.
492ac_unique_file=version.h
493
494# Find the source files, if location was not specified.
495if test -z "$srcdir"; then
496 ac_srcdir_defaulted=yes
497 # Try the directory containing this script, then its parent.
498 ac_prog=$0
499 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
500 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
501 srcdir=$ac_confdir
502 if test ! -r $srcdir/$ac_unique_file; then
503 srcdir=..
504 fi
505else
506 ac_srcdir_defaulted=no
507fi
508if test ! -r $srcdir/$ac_unique_file; then
509 if test "$ac_srcdir_defaulted" = yes; then
510 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
511 else
512 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
513 fi
514fi
515srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
516
517# Prefer explicitly selected file to automatically selected ones.
518if test -z "$CONFIG_SITE"; then
519 if test "x$prefix" != xNONE; then
520 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
521 else
522 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
523 fi
524fi
525for ac_site_file in $CONFIG_SITE; do
526 if test -r "$ac_site_file"; then
527 echo "loading site script $ac_site_file"
528 . "$ac_site_file"
529 fi
530done
531
532if test -r "$cache_file"; then
533 echo "loading cache $cache_file"
534 . $cache_file
535else
536 echo "creating cache $cache_file"
537 > $cache_file
538fi
539
540ac_ext=c
541# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
542ac_cpp='$CPP $CPPFLAGS'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000543ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000544ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000545cross_compiling=$ac_cv_prog_cc_cross
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000546
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000547ac_exeext=
548ac_objext=o
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000549if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
550 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
551 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
552 ac_n= ac_c='
553' ac_t=' '
554 else
555 ac_n=-n ac_c= ac_t=
556 fi
557else
558 ac_n= ac_c='\c' ac_t=
559fi
560
561
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +0000562
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000563MCONFIG=./MCONFIG
564
Theodore Ts'o74becf31997-04-26 14:37:06 +0000565BINARY_TYPE=bin
566E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
567 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
568DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
569 | tr \" " "`
570MONTH=`echo $DATE | awk -F- '{print $2}'`
571YEAR=`echo $DATE | awk -F- '{print $3}'`
572
Theodore Ts'o14790ed1999-01-12 23:32:52 +0000573if expr $YEAR ">" 1900 > /dev/null ; then
574 E2FSPROGS_YEAR=$YEAR
575elif expr $YEAR ">" 90 >/dev/null ; then
Theodore Ts'o74becf31997-04-26 14:37:06 +0000576 E2FSPROGS_YEAR=19$YEAR
577else
578 E2FSPROGS_YEAR=20$YEAR
579fi
580
581case $MONTH in
582Jan) E2FSPROGS_MONTH="January" ;;
583Feb) E2FSPROGS_MONTH="February" ;;
584Mar) E2FSPROGS_MONTH="March" ;;
585Apr) E2FSPROGS_MONTH="April" ;;
586May) E2FSPROGS_MONTH="May" ;;
587Jun) E2FSPROGS_MONTH="June" ;;
588Jul) E2FSPROGS_MONTH="July" ;;
589Aug) E2FSPROGS_MONTH="August" ;;
590Sep) E2FSPROGS_MONTH="September" ;;
591Oct) E2FSPROGS_MONTH="October" ;;
592Nov) E2FSPROGS_MONTH="November" ;;
593Dec) E2FSPROGS_MONTH="December" ;;
594*) echo "Unknown month $MONTH??" ;;
595esac
596
597unset DATE MONTH YEAR
598echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION"
599echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}"
600
601
602
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000603
604ac_aux_dir=
605for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
606 if test -f $ac_dir/install-sh; then
607 ac_aux_dir=$ac_dir
608 ac_install_sh="$ac_aux_dir/install-sh -c"
609 break
610 elif test -f $ac_dir/install.sh; then
611 ac_aux_dir=$ac_dir
612 ac_install_sh="$ac_aux_dir/install.sh -c"
613 break
614 fi
615done
616if test -z "$ac_aux_dir"; then
617 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
618fi
619ac_config_guess=$ac_aux_dir/config.guess
620ac_config_sub=$ac_aux_dir/config.sub
621ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
622
623
624# Make sure we can run config.sub.
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000625if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000626else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
627fi
628
629echo $ac_n "checking host system type""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +0000630echo "configure:631: checking host system type" >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000631
632host_alias=$host
633case "$host_alias" in
634NONE)
635 case $nonopt in
636 NONE)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000637 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000638 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
639 fi ;;
640 *) host_alias=$nonopt ;;
641 esac ;;
642esac
643
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000644host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000645host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
646host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
647host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000648echo "$ac_t""$host" 1>&6
649
Theodore Ts'o74becf31997-04-26 14:37:06 +0000650# Check whether --with-cc or --without-cc was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000651if test "${with_cc+set}" = set; then
652 withval="$with_cc"
Theodore Ts'o74becf31997-04-26 14:37:06 +0000653 echo "$ac_t""CC=$withval" 1>&6
654CC=$withval
655else
656 if test -z "$CC" ; then CC=cc; fi
657echo "$ac_t""CC defaults to $CC" 1>&6
658fi
659export CC
660
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000661# Extract the first word of "gcc", so it can be a program name with args.
662set dummy gcc; ac_word=$2
663echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +0000664echo "configure:665: checking for $ac_word" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000665if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
666 echo $ac_n "(cached) $ac_c" 1>&6
667else
668 if test -n "$CC"; then
669 ac_cv_prog_CC="$CC" # Let the user override the test.
670else
671 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
672 ac_dummy="$PATH"
673 for ac_dir in $ac_dummy; do
674 test -z "$ac_dir" && ac_dir=.
675 if test -f $ac_dir/$ac_word; then
676 ac_cv_prog_CC="gcc"
677 break
678 fi
679 done
680 IFS="$ac_save_ifs"
681fi
682fi
683CC="$ac_cv_prog_CC"
684if test -n "$CC"; then
685 echo "$ac_t""$CC" 1>&6
686else
687 echo "$ac_t""no" 1>&6
688fi
689
690if test -z "$CC"; then
691 # Extract the first word of "cc", so it can be a program name with args.
692set dummy cc; ac_word=$2
693echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +0000694echo "configure:695: checking for $ac_word" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000695if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
696 echo $ac_n "(cached) $ac_c" 1>&6
697else
698 if test -n "$CC"; then
699 ac_cv_prog_CC="$CC" # Let the user override the test.
700else
701 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
702 ac_prog_rejected=no
703 ac_dummy="$PATH"
704 for ac_dir in $ac_dummy; do
705 test -z "$ac_dir" && ac_dir=.
706 if test -f $ac_dir/$ac_word; then
707 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
708 ac_prog_rejected=yes
709 continue
710 fi
711 ac_cv_prog_CC="cc"
712 break
713 fi
714 done
715 IFS="$ac_save_ifs"
716if test $ac_prog_rejected = yes; then
717 # We found a bogon in the path, so make sure we never use it.
718 set dummy $ac_cv_prog_CC
719 shift
720 if test $# -gt 0; then
721 # We chose a different compiler from the bogus one.
722 # However, it has the same basename, so the bogon will be chosen
723 # first if we set CC to just the basename; use the full file name.
724 shift
725 set dummy "$ac_dir/$ac_word" "$@"
726 shift
727 ac_cv_prog_CC="$@"
728 fi
729fi
730fi
731fi
732CC="$ac_cv_prog_CC"
733if test -n "$CC"; then
734 echo "$ac_t""$CC" 1>&6
735else
736 echo "$ac_t""no" 1>&6
737fi
738
739 if test -z "$CC"; then
740 case "`uname -s`" in
741 *win32* | *WIN32*)
742 # Extract the first word of "cl", so it can be a program name with args.
743set dummy cl; ac_word=$2
744echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +0000745echo "configure:746: checking for $ac_word" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000746if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
747 echo $ac_n "(cached) $ac_c" 1>&6
748else
749 if test -n "$CC"; then
750 ac_cv_prog_CC="$CC" # Let the user override the test.
751else
752 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
753 ac_dummy="$PATH"
754 for ac_dir in $ac_dummy; do
755 test -z "$ac_dir" && ac_dir=.
756 if test -f $ac_dir/$ac_word; then
757 ac_cv_prog_CC="cl"
758 break
759 fi
760 done
761 IFS="$ac_save_ifs"
762fi
763fi
764CC="$ac_cv_prog_CC"
765if test -n "$CC"; then
766 echo "$ac_t""$CC" 1>&6
767else
768 echo "$ac_t""no" 1>&6
769fi
770 ;;
771 esac
772 fi
773 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
774fi
775
776echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +0000777echo "configure:778: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000778
779ac_ext=c
780# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
781ac_cpp='$CPP $CPPFLAGS'
782ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
783ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
784cross_compiling=$ac_cv_prog_cc_cross
785
786cat > conftest.$ac_ext << EOF
787
Theodore Ts'o80bfaa32000-08-18 15:08:37 +0000788#line 789 "configure"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000789#include "confdefs.h"
790
791main(){return(0);}
792EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +0000793if { (eval echo configure:794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000794 ac_cv_prog_cc_works=yes
795 # If we can't run a trivial program, we are probably using a cross compiler.
796 if (./conftest; exit) 2>/dev/null; then
797 ac_cv_prog_cc_cross=no
798 else
799 ac_cv_prog_cc_cross=yes
800 fi
801else
802 echo "configure: failed program was:" >&5
803 cat conftest.$ac_ext >&5
804 ac_cv_prog_cc_works=no
805fi
806rm -fr conftest*
807ac_ext=c
808# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
809ac_cpp='$CPP $CPPFLAGS'
810ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
811ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
812cross_compiling=$ac_cv_prog_cc_cross
813
814echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
815if test $ac_cv_prog_cc_works = no; then
816 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
817fi
818echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +0000819echo "configure:820: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000820echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
821cross_compiling=$ac_cv_prog_cc_cross
822
823echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +0000824echo "configure:825: checking whether we are using GNU C" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000825if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
826 echo $ac_n "(cached) $ac_c" 1>&6
827else
828 cat > conftest.c <<EOF
829#ifdef __GNUC__
830 yes;
831#endif
832EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +0000833if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:834: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000834 ac_cv_prog_gcc=yes
835else
836 ac_cv_prog_gcc=no
837fi
838fi
839
840echo "$ac_t""$ac_cv_prog_gcc" 1>&6
841
842if test $ac_cv_prog_gcc = yes; then
843 GCC=yes
844else
845 GCC=
846fi
847
848ac_test_CFLAGS="${CFLAGS+set}"
849ac_save_CFLAGS="$CFLAGS"
850CFLAGS=
851echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +0000852echo "configure:853: checking whether ${CC-cc} accepts -g" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000853if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
854 echo $ac_n "(cached) $ac_c" 1>&6
855else
856 echo 'void f(){}' > conftest.c
857if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
858 ac_cv_prog_cc_g=yes
859else
860 ac_cv_prog_cc_g=no
861fi
862rm -f conftest*
863
864fi
865
866echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
867if test "$ac_test_CFLAGS" = set; then
868 CFLAGS="$ac_save_CFLAGS"
869elif test $ac_cv_prog_cc_g = yes; then
870 if test "$GCC" = yes; then
871 CFLAGS="-g -O2"
872 else
873 CFLAGS="-g"
874 fi
875else
876 if test "$GCC" = yes; then
877 CFLAGS="-O2"
878 else
879 CFLAGS=
880 fi
881fi
882
Theodore Ts'o74becf31997-04-26 14:37:06 +0000883# Check whether --with-linker or --without-linker was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000884if test "${with_linker+set}" = set; then
885 withval="$with_linker"
Theodore Ts'o74becf31997-04-26 14:37:06 +0000886 echo "$ac_t""LD=$withval" 1>&6
887LD=$withval
888else
889 if test -z "$LD" ; then LD=$CC; fi
890echo "$ac_t""LD defaults to $LD" 1>&6
891fi
892export LD
893
894# Check whether --with-ccopts or --without-ccopts was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000895if test "${with_ccopts+set}" = set; then
896 withval="$with_ccopts"
Theodore Ts'o74becf31997-04-26 14:37:06 +0000897 echo "$ac_t""CCOPTS is $withval" 1>&6
898CCOPTS=$withval
899CFLAGS="$CFLAGS $withval"
900else
901 CCOPTS=
902fi
903
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000904echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +0000905echo "configure:906: checking how to run the C preprocessor" >&5
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000906# On Suns, sometimes $CPP names a directory.
907if test -n "$CPP" && test -d "$CPP"; then
908 CPP=
909fi
910if test -z "$CPP"; then
911if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
912 echo $ac_n "(cached) $ac_c" 1>&6
913else
914 # This must be in double quotes, not single quotes, because CPP may get
915 # substituted into the Makefile and "${CC-cc}" will confuse make.
916 CPP="${CC-cc} -E"
917 # On the NeXT, cc -E runs the code through the compiler's parser,
918 # not just through cpp.
919 cat > conftest.$ac_ext <<EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +0000920#line 921 "configure"
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000921#include "confdefs.h"
922#include <assert.h>
923Syntax Error
924EOF
925ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o80bfaa32000-08-18 15:08:37 +0000926{ (eval echo configure:927: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000927ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
928if test -z "$ac_err"; then
929 :
930else
931 echo "$ac_err" >&5
932 echo "configure: failed program was:" >&5
933 cat conftest.$ac_ext >&5
934 rm -rf conftest*
935 CPP="${CC-cc} -E -traditional-cpp"
936 cat > conftest.$ac_ext <<EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +0000937#line 938 "configure"
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000938#include "confdefs.h"
939#include <assert.h>
940Syntax Error
941EOF
942ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o80bfaa32000-08-18 15:08:37 +0000943{ (eval echo configure:944: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000944ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
945if test -z "$ac_err"; then
946 :
947else
948 echo "$ac_err" >&5
949 echo "configure: failed program was:" >&5
950 cat conftest.$ac_ext >&5
951 rm -rf conftest*
952 CPP="${CC-cc} -nologo -E"
953 cat > conftest.$ac_ext <<EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +0000954#line 955 "configure"
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000955#include "confdefs.h"
956#include <assert.h>
957Syntax Error
958EOF
959ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o80bfaa32000-08-18 15:08:37 +0000960{ (eval echo configure:961: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000961ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
962if test -z "$ac_err"; then
963 :
964else
965 echo "$ac_err" >&5
966 echo "configure: failed program was:" >&5
967 cat conftest.$ac_ext >&5
968 rm -rf conftest*
969 CPP=/lib/cpp
970fi
971rm -f conftest*
972fi
973rm -f conftest*
974fi
975rm -f conftest*
976 ac_cv_prog_CPP="$CPP"
977fi
978 CPP="$ac_cv_prog_CPP"
979else
980 ac_cv_prog_CPP="$CPP"
981fi
982echo "$ac_t""$CPP" 1>&6
983
984ac_safe=`echo "linux/fs.h" | sed 'y%./+-%__p_%'`
985echo $ac_n "checking for linux/fs.h""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +0000986echo "configure:987: checking for linux/fs.h" >&5
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000987if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
988 echo $ac_n "(cached) $ac_c" 1>&6
989else
990 cat > conftest.$ac_ext <<EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +0000991#line 992 "configure"
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000992#include "confdefs.h"
993#include <linux/fs.h>
994EOF
995ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o80bfaa32000-08-18 15:08:37 +0000996{ (eval echo configure:997: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000997ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
998if test -z "$ac_err"; then
999 rm -rf conftest*
1000 eval "ac_cv_header_$ac_safe=yes"
1001else
1002 echo "$ac_err" >&5
1003 echo "configure: failed program was:" >&5
1004 cat conftest.$ac_ext >&5
1005 rm -rf conftest*
1006 eval "ac_cv_header_$ac_safe=no"
1007fi
1008rm -f conftest*
1009fi
1010if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1011 echo "$ac_t""yes" 1>&6
1012 linux_headers=yes
1013else
1014 echo "$ac_t""no" 1>&6
1015linux_headers=no
1016fi
1017
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001018if test "$linux_headers" != yes; then
1019 LINUX_INCLUDE='-I$(top_builddir)/include'
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001020fi
1021
Theodore Ts'oa4d09611997-04-29 14:28:00 +00001022LIB_EXT=.a
1023STATIC_LIB_EXT=.a
1024PROFILE_LIB_EXT=.a
Theodore Ts'o74becf31997-04-26 14:37:06 +00001025# Check whether --with-ldopts or --without-ldopts was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001026if test "${with_ldopts+set}" = set; then
1027 withval="$with_ldopts"
Theodore Ts'o74becf31997-04-26 14:37:06 +00001028 echo "$ac_t""LDFLAGS is $withval" 1>&6
1029LDFLAGS=$withval
1030else
1031 LDFLAGS=
1032fi
1033
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00001034# Check whether --with-root-prefix or --without-root-prefix was given.
1035if test "${with_root_prefix+set}" = set; then
1036 withval="$with_root_prefix"
1037 root_prefix=$withval
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001038else
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00001039 root_prefix=NONE
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001040fi
Theodore Ts'o19178752000-02-11 15:55:07 +00001041# Check whether --enable-compression or --disable-compression was given.
1042if test "${enable_compression+set}" = set; then
1043 enableval="$enable_compression"
1044 if test "$enableval" = "no"
1045then
1046 echo "Disabling compression support"
1047else
1048 cat >> confdefs.h <<\EOF
1049#define ENABLE_COMPRESSION 1
1050EOF
1051
1052 echo "Enabling compression support"
1053 echo "WARNING: Compression support is experimental"
1054fi
1055
1056else
1057 echo "Disabling compression support by default"
1058
1059fi
1060
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001061# Check whether --enable-dll-shlibs or --disable-dll-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001062if test "${enable_dll_shlibs+set}" = set; then
1063 enableval="$enable_dll_shlibs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001064 if test "$enableval" = "no"
1065then
1066 DLL_CMT=#
1067 MAKEFILE_DLL=/dev/null
1068 echo "Disabling DLL shared libraries"
1069else
1070 DLL_CMT=
1071 MAKEFILE_DLL=$srcdir/lib/Makefile.dll-lib
Theodore Ts'o74becf31997-04-26 14:37:06 +00001072 BINARY_TYPE=dllbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00001073 LIB_EXT=.sa
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001074 echo "Enabling DLL shared libraries"
1075fi
1076
1077else
1078 MAKEFILE_DLL=/dev/null
1079DLL_CMT=#
1080echo "Disabling DLL shared libraries by default"
1081
1082fi
1083
1084
1085
1086# Check whether --enable-elf-shlibs or --disable-elf-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001087if test "${enable_elf_shlibs+set}" = set; then
1088 enableval="$enable_elf_shlibs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001089 if test "$enableval" = "no"
1090then
1091 ELF_CMT=#
1092 MAKEFILE_ELF=/dev/null
1093 echo "Disabling ELF shared libraries"
1094else
1095 ELF_CMT=
1096 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
Theodore Ts'of5955dd2000-10-25 02:38:39 +00001097 case "$host_os" in
1098 solaris2.*)
1099 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
1100 ;;
1101 esac
Theodore Ts'o74becf31997-04-26 14:37:06 +00001102 BINARY_TYPE=elfbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00001103 LIB_EXT=.so
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001104 echo "Enabling ELF shared libraries"
1105fi
1106
1107else
1108 MAKEFILE_ELF=/dev/null
1109ELF_CMT=#
1110echo "Disabling ELF shared libraries by default"
1111
1112fi
1113
1114
1115
1116# Check whether --enable-bsd-shlibs or --disable-bsd-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001117if test "${enable_bsd_shlibs+set}" = set; then
1118 enableval="$enable_bsd_shlibs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001119 if test "$enableval" = "no"
1120then
1121 BSDLIB_CMT=#
1122 MAKEFILE_BSDLIB=/dev/null
1123 echo "Disabling BSD shared libraries"
1124else
1125 BSDLIB_CMT=
1126 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
Theodore Ts'oa4d09611997-04-29 14:28:00 +00001127 LIB_EXT=.so
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001128 echo "Enabling BSD shared libraries"
1129fi
1130
1131else
1132 MAKEFILE_BSDLIB=/dev/null
1133BSDLIB_CMT=#
1134echo "Disabling BSD shared libraries by default"
1135
1136fi
1137
1138
1139
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00001140# Check whether --enable-jfs-debug or --disable-jfs-debug was given.
1141if test "${enable_jfs_debug+set}" = set; then
1142 enableval="$enable_jfs_debug"
1143 if test "$enableval" = "no"
1144then
1145 echo "Disabling journal debugging"
1146else
1147 cat >> confdefs.h <<\EOF
1148#define JFS_DEBUG 1
1149EOF
1150
1151 echo "Enabling journal debugging"
1152fi
1153
1154else
1155 echo "Disabling journal debugging by default"
1156
1157fi
1158
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001159PACKAGE=e2fsprogs
1160VERSION="$E2FSPROGS_VERSION"
1161cat >> confdefs.h <<EOF
1162#define PACKAGE "$PACKAGE"
1163EOF
1164
1165cat >> confdefs.h <<EOF
1166#define VERSION "$VERSION"
1167EOF
1168
1169
1170
1171
Theodore Ts'o19178752000-02-11 15:55:07 +00001172ALL_LINGUAS="it nyc"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001173echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
Theodore Ts'of5955dd2000-10-25 02:38:39 +00001174echo "configure:1175: checking whether ${MAKE-make} sets \${MAKE}" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001175set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1176if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1177 echo $ac_n "(cached) $ac_c" 1>&6
1178else
1179 cat > conftestmake <<\EOF
1180all:
1181 @echo 'ac_maketemp="${MAKE}"'
1182EOF
1183# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1184eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1185if test -n "$ac_maketemp"; then
1186 eval ac_cv_prog_make_${ac_make}_set=yes
1187else
1188 eval ac_cv_prog_make_${ac_make}_set=no
1189fi
1190rm -f conftestmake
1191fi
1192if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1193 echo "$ac_t""yes" 1>&6
1194 SET_MAKE=
1195else
1196 echo "$ac_t""no" 1>&6
1197 SET_MAKE="MAKE=${MAKE-make}"
1198fi
1199
1200# Extract the first word of "ranlib", so it can be a program name with args.
1201set dummy ranlib; ac_word=$2
1202echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'of5955dd2000-10-25 02:38:39 +00001203echo "configure:1204: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001204if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1205 echo $ac_n "(cached) $ac_c" 1>&6
1206else
1207 if test -n "$RANLIB"; then
1208 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1209else
1210 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1211 ac_dummy="$PATH"
1212 for ac_dir in $ac_dummy; do
1213 test -z "$ac_dir" && ac_dir=.
1214 if test -f $ac_dir/$ac_word; then
1215 ac_cv_prog_RANLIB="ranlib"
1216 break
1217 fi
1218 done
1219 IFS="$ac_save_ifs"
1220 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1221fi
1222fi
1223RANLIB="$ac_cv_prog_RANLIB"
1224if test -n "$RANLIB"; then
1225 echo "$ac_t""$RANLIB" 1>&6
1226else
1227 echo "$ac_t""no" 1>&6
1228fi
1229
1230echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
Theodore Ts'of5955dd2000-10-25 02:38:39 +00001231echo "configure:1232: checking for POSIXized ISC" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001232if test -d /etc/conf/kconfig.d &&
1233 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1234then
1235 echo "$ac_t""yes" 1>&6
1236 ISC=yes # If later tests want to check for ISC.
1237 cat >> confdefs.h <<\EOF
1238#define _POSIX_SOURCE 1
1239EOF
1240
1241 if test "$GCC" = yes; then
1242 CC="$CC -posix"
1243 else
1244 CC="$CC -Xp"
1245 fi
1246else
1247 echo "$ac_t""no" 1>&6
1248 ISC=
1249fi
1250
1251echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
Theodore Ts'of5955dd2000-10-25 02:38:39 +00001252echo "configure:1253: checking for ANSI C header files" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001253if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1254 echo $ac_n "(cached) $ac_c" 1>&6
1255else
1256 cat > conftest.$ac_ext <<EOF
Theodore Ts'of5955dd2000-10-25 02:38:39 +00001257#line 1258 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001258#include "confdefs.h"
1259#include <stdlib.h>
1260#include <stdarg.h>
1261#include <string.h>
1262#include <float.h>
1263EOF
1264ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'of5955dd2000-10-25 02:38:39 +00001265{ (eval echo configure:1266: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001266ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1267if test -z "$ac_err"; then
1268 rm -rf conftest*
1269 ac_cv_header_stdc=yes
1270else
1271 echo "$ac_err" >&5
1272 echo "configure: failed program was:" >&5
1273 cat conftest.$ac_ext >&5
1274 rm -rf conftest*
1275 ac_cv_header_stdc=no
1276fi
1277rm -f conftest*
1278
1279if test $ac_cv_header_stdc = yes; then
1280 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1281cat > conftest.$ac_ext <<EOF
Theodore Ts'of5955dd2000-10-25 02:38:39 +00001282#line 1283 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001283#include "confdefs.h"
1284#include <string.h>
1285EOF
1286if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1287 egrep "memchr" >/dev/null 2>&1; then
1288 :
1289else
1290 rm -rf conftest*
1291 ac_cv_header_stdc=no
1292fi
1293rm -f conftest*
1294
1295fi
1296
1297if test $ac_cv_header_stdc = yes; then
1298 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1299cat > conftest.$ac_ext <<EOF
Theodore Ts'of5955dd2000-10-25 02:38:39 +00001300#line 1301 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001301#include "confdefs.h"
1302#include <stdlib.h>
1303EOF
1304if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1305 egrep "free" >/dev/null 2>&1; then
1306 :
1307else
1308 rm -rf conftest*
1309 ac_cv_header_stdc=no
1310fi
1311rm -f conftest*
1312
1313fi
1314
1315if test $ac_cv_header_stdc = yes; then
1316 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1317if test "$cross_compiling" = yes; then
1318 :
1319else
1320 cat > conftest.$ac_ext <<EOF
Theodore Ts'of5955dd2000-10-25 02:38:39 +00001321#line 1322 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001322#include "confdefs.h"
1323#include <ctype.h>
1324#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1325#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1326#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1327int main () { int i; for (i = 0; i < 256; i++)
1328if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1329exit (0); }
1330
1331EOF
Theodore Ts'of5955dd2000-10-25 02:38:39 +00001332if { (eval echo configure:1333: \"$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 +00001333then
1334 :
1335else
1336 echo "configure: failed program was:" >&5
1337 cat conftest.$ac_ext >&5
1338 rm -fr conftest*
1339 ac_cv_header_stdc=no
1340fi
1341rm -fr conftest*
1342fi
1343
1344fi
1345fi
1346
1347echo "$ac_t""$ac_cv_header_stdc" 1>&6
1348if test $ac_cv_header_stdc = yes; then
1349 cat >> confdefs.h <<\EOF
1350#define STDC_HEADERS 1
1351EOF
1352
1353fi
1354
1355echo $ac_n "checking for working const""... $ac_c" 1>&6
Theodore Ts'of5955dd2000-10-25 02:38:39 +00001356echo "configure:1357: checking for working const" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001357if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1358 echo $ac_n "(cached) $ac_c" 1>&6
1359else
1360 cat > conftest.$ac_ext <<EOF
Theodore Ts'of5955dd2000-10-25 02:38:39 +00001361#line 1362 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001362#include "confdefs.h"
1363
1364int main() {
1365
1366/* Ultrix mips cc rejects this. */
1367typedef int charset[2]; const charset x;
1368/* SunOS 4.1.1 cc rejects this. */
1369char const *const *ccp;
1370char **p;
1371/* NEC SVR4.0.2 mips cc rejects this. */
1372struct point {int x, y;};
1373static struct point const zero = {0,0};
1374/* AIX XL C 1.02.0.0 rejects this.
1375 It does not let you subtract one const X* pointer from another in an arm
1376 of an if-expression whose if-part is not a constant expression */
1377const char *g = "string";
1378ccp = &g + (g ? g-g : 0);
1379/* HPUX 7.0 cc rejects these. */
1380++ccp;
1381p = (char**) ccp;
1382ccp = (char const *const *) p;
1383{ /* SCO 3.2v4 cc rejects this. */
1384 char *t;
1385 char const *s = 0 ? (char *) 0 : (char const *) 0;
1386
1387 *t++ = 0;
1388}
1389{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1390 int x[] = {25, 17};
1391 const int *foo = &x[0];
1392 ++foo;
1393}
1394{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1395 typedef const int *iptr;
1396 iptr p = 0;
1397 ++p;
1398}
1399{ /* AIX XL C 1.02.0.0 rejects this saying
1400 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1401 struct s { int j; const int *ap[3]; };
1402 struct s *b; b->j = 5;
1403}
1404{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1405 const int foo = 10;
1406}
1407
1408; return 0; }
1409EOF
Theodore Ts'of5955dd2000-10-25 02:38:39 +00001410if { (eval echo configure:1411: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001411 rm -rf conftest*
1412 ac_cv_c_const=yes
1413else
1414 echo "configure: failed program was:" >&5
1415 cat conftest.$ac_ext >&5
1416 rm -rf conftest*
1417 ac_cv_c_const=no
1418fi
1419rm -f conftest*
1420fi
1421
1422echo "$ac_t""$ac_cv_c_const" 1>&6
1423if test $ac_cv_c_const = no; then
1424 cat >> confdefs.h <<\EOF
1425#define const
1426EOF
1427
1428fi
1429
1430echo $ac_n "checking for inline""... $ac_c" 1>&6
Theodore Ts'of5955dd2000-10-25 02:38:39 +00001431echo "configure:1432: checking for inline" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001432if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1433 echo $ac_n "(cached) $ac_c" 1>&6
1434else
1435 ac_cv_c_inline=no
1436for ac_kw in inline __inline__ __inline; do
1437 cat > conftest.$ac_ext <<EOF
Theodore Ts'of5955dd2000-10-25 02:38:39 +00001438#line 1439 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001439#include "confdefs.h"
1440
1441int main() {
1442} $ac_kw foo() {
1443; return 0; }
1444EOF
Theodore Ts'of5955dd2000-10-25 02:38:39 +00001445if { (eval echo configure:1446: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001446 rm -rf conftest*
1447 ac_cv_c_inline=$ac_kw; break
1448else
1449 echo "configure: failed program was:" >&5
1450 cat conftest.$ac_ext >&5
1451fi
1452rm -f conftest*
1453done
1454
1455fi
1456
1457echo "$ac_t""$ac_cv_c_inline" 1>&6
1458case "$ac_cv_c_inline" in
1459 inline | yes) ;;
1460 no) cat >> confdefs.h <<\EOF
1461#define inline
1462EOF
1463 ;;
1464 *) cat >> confdefs.h <<EOF
1465#define inline $ac_cv_c_inline
1466EOF
1467 ;;
1468esac
1469
1470echo $ac_n "checking for off_t""... $ac_c" 1>&6
Theodore Ts'of5955dd2000-10-25 02:38:39 +00001471echo "configure:1472: checking for off_t" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001472if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1473 echo $ac_n "(cached) $ac_c" 1>&6
1474else
1475 cat > conftest.$ac_ext <<EOF
Theodore Ts'of5955dd2000-10-25 02:38:39 +00001476#line 1477 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001477#include "confdefs.h"
1478#include <sys/types.h>
1479#if STDC_HEADERS
1480#include <stdlib.h>
1481#include <stddef.h>
1482#endif
1483EOF
1484if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1485 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1486 rm -rf conftest*
1487 ac_cv_type_off_t=yes
1488else
1489 rm -rf conftest*
1490 ac_cv_type_off_t=no
1491fi
1492rm -f conftest*
1493
1494fi
1495echo "$ac_t""$ac_cv_type_off_t" 1>&6
1496if test $ac_cv_type_off_t = no; then
1497 cat >> confdefs.h <<\EOF
1498#define off_t long
1499EOF
1500
1501fi
1502
1503echo $ac_n "checking for size_t""... $ac_c" 1>&6
Theodore Ts'of5955dd2000-10-25 02:38:39 +00001504echo "configure:1505: checking for size_t" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001505if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1506 echo $ac_n "(cached) $ac_c" 1>&6
1507else
1508 cat > conftest.$ac_ext <<EOF
Theodore Ts'of5955dd2000-10-25 02:38:39 +00001509#line 1510 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001510#include "confdefs.h"
1511#include <sys/types.h>
1512#if STDC_HEADERS
1513#include <stdlib.h>
1514#include <stddef.h>
1515#endif
1516EOF
1517if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1518 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1519 rm -rf conftest*
1520 ac_cv_type_size_t=yes
1521else
1522 rm -rf conftest*
1523 ac_cv_type_size_t=no
1524fi
1525rm -f conftest*
1526
1527fi
1528echo "$ac_t""$ac_cv_type_size_t" 1>&6
1529if test $ac_cv_type_size_t = no; then
1530 cat >> confdefs.h <<\EOF
1531#define size_t unsigned
1532EOF
1533
1534fi
1535
1536# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1537# for constant arguments. Useless!
1538echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
Theodore Ts'of5955dd2000-10-25 02:38:39 +00001539echo "configure:1540: checking for working alloca.h" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001540if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1541 echo $ac_n "(cached) $ac_c" 1>&6
1542else
1543 cat > conftest.$ac_ext <<EOF
Theodore Ts'of5955dd2000-10-25 02:38:39 +00001544#line 1545 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001545#include "confdefs.h"
1546#include <alloca.h>
1547int main() {
1548char *p = alloca(2 * sizeof(int));
1549; return 0; }
1550EOF
Theodore Ts'of5955dd2000-10-25 02:38:39 +00001551if { (eval echo configure:1552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001552 rm -rf conftest*
1553 ac_cv_header_alloca_h=yes
1554else
1555 echo "configure: failed program was:" >&5
1556 cat conftest.$ac_ext >&5
1557 rm -rf conftest*
1558 ac_cv_header_alloca_h=no
1559fi
1560rm -f conftest*
1561fi
1562
1563echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1564if test $ac_cv_header_alloca_h = yes; then
1565 cat >> confdefs.h <<\EOF
1566#define HAVE_ALLOCA_H 1
1567EOF
1568
1569fi
1570
1571echo $ac_n "checking for alloca""... $ac_c" 1>&6
Theodore Ts'of5955dd2000-10-25 02:38:39 +00001572echo "configure:1573: checking for alloca" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001573if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1574 echo $ac_n "(cached) $ac_c" 1>&6
1575else
1576 cat > conftest.$ac_ext <<EOF
Theodore Ts'of5955dd2000-10-25 02:38:39 +00001577#line 1578 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001578#include "confdefs.h"
1579
1580#ifdef __GNUC__
1581# define alloca __builtin_alloca
1582#else
1583# ifdef _MSC_VER
1584# include <malloc.h>
1585# define alloca _alloca
1586# else
1587# if HAVE_ALLOCA_H
1588# include <alloca.h>
1589# else
1590# ifdef _AIX
1591 #pragma alloca
1592# else
1593# ifndef alloca /* predefined by HP cc +Olibcalls */
1594char *alloca ();
1595# endif
1596# endif
1597# endif
1598# endif
1599#endif
1600
1601int main() {
1602char *p = (char *) alloca(1);
1603; return 0; }
1604EOF
Theodore Ts'of5955dd2000-10-25 02:38:39 +00001605if { (eval echo configure:1606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001606 rm -rf conftest*
1607 ac_cv_func_alloca_works=yes
1608else
1609 echo "configure: failed program was:" >&5
1610 cat conftest.$ac_ext >&5
1611 rm -rf conftest*
1612 ac_cv_func_alloca_works=no
1613fi
1614rm -f conftest*
1615fi
1616
1617echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1618if test $ac_cv_func_alloca_works = yes; then
1619 cat >> confdefs.h <<\EOF
1620#define HAVE_ALLOCA 1
1621EOF
1622
1623fi
1624
1625if test $ac_cv_func_alloca_works = no; then
1626 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1627 # that cause trouble. Some versions do not even contain alloca or
1628 # contain a buggy version. If you still want to use their alloca,
1629 # use ar to extract alloca.o from them instead of compiling alloca.c.
1630 ALLOCA=alloca.${ac_objext}
1631 cat >> confdefs.h <<\EOF
1632#define C_ALLOCA 1
1633EOF
1634
1635
1636echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
Theodore Ts'of5955dd2000-10-25 02:38:39 +00001637echo "configure:1638: checking whether alloca needs Cray hooks" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001638if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1639 echo $ac_n "(cached) $ac_c" 1>&6
1640else
1641 cat > conftest.$ac_ext <<EOF
Theodore Ts'of5955dd2000-10-25 02:38:39 +00001642#line 1643 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001643#include "confdefs.h"
1644#if defined(CRAY) && ! defined(CRAY2)
1645webecray
1646#else
1647wenotbecray
1648#endif
1649
1650EOF
1651if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1652 egrep "webecray" >/dev/null 2>&1; then
1653 rm -rf conftest*
1654 ac_cv_os_cray=yes
1655else
1656 rm -rf conftest*
1657 ac_cv_os_cray=no
1658fi
1659rm -f conftest*
1660
1661fi
1662
1663echo "$ac_t""$ac_cv_os_cray" 1>&6
1664if test $ac_cv_os_cray = yes; then
1665for ac_func in _getb67 GETB67 getb67; do
1666 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'of5955dd2000-10-25 02:38:39 +00001667echo "configure:1668: checking for $ac_func" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001668if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1669 echo $ac_n "(cached) $ac_c" 1>&6
1670else
1671 cat > conftest.$ac_ext <<EOF
Theodore Ts'of5955dd2000-10-25 02:38:39 +00001672#line 1673 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001673#include "confdefs.h"
1674/* System header to define __stub macros and hopefully few prototypes,
1675 which can conflict with char $ac_func(); below. */
1676#include <assert.h>
1677/* Override any gcc2 internal prototype to avoid an error. */
1678/* We use char because int might match the return type of a gcc2
1679 builtin and then its argument prototype would still apply. */
1680char $ac_func();
1681
1682int main() {
1683
1684/* The GNU C library defines this for functions which it implements
1685 to always fail with ENOSYS. Some functions are actually named
1686 something starting with __ and the normal name is an alias. */
1687#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1688choke me
1689#else
1690$ac_func();
1691#endif
1692
1693; return 0; }
1694EOF
Theodore Ts'of5955dd2000-10-25 02:38:39 +00001695if { (eval echo configure:1696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001696 rm -rf conftest*
1697 eval "ac_cv_func_$ac_func=yes"
1698else
1699 echo "configure: failed program was:" >&5
1700 cat conftest.$ac_ext >&5
1701 rm -rf conftest*
1702 eval "ac_cv_func_$ac_func=no"
1703fi
1704rm -f conftest*
1705fi
1706
1707if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1708 echo "$ac_t""yes" 1>&6
1709 cat >> confdefs.h <<EOF
1710#define CRAY_STACKSEG_END $ac_func
1711EOF
1712
1713 break
1714else
1715 echo "$ac_t""no" 1>&6
1716fi
1717
1718done
1719fi
1720
1721echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
Theodore Ts'of5955dd2000-10-25 02:38:39 +00001722echo "configure:1723: checking stack direction for C alloca" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001723if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1724 echo $ac_n "(cached) $ac_c" 1>&6
1725else
1726 if test "$cross_compiling" = yes; then
1727 ac_cv_c_stack_direction=0
1728else
1729 cat > conftest.$ac_ext <<EOF
Theodore Ts'of5955dd2000-10-25 02:38:39 +00001730#line 1731 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001731#include "confdefs.h"
1732find_stack_direction ()
1733{
1734 static char *addr = 0;
1735 auto char dummy;
1736 if (addr == 0)
1737 {
1738 addr = &dummy;
1739 return find_stack_direction ();
1740 }
1741 else
1742 return (&dummy > addr) ? 1 : -1;
1743}
1744main ()
1745{
1746 exit (find_stack_direction() < 0);
1747}
1748EOF
Theodore Ts'of5955dd2000-10-25 02:38:39 +00001749if { (eval echo configure:1750: \"$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 +00001750then
1751 ac_cv_c_stack_direction=1
1752else
1753 echo "configure: failed program was:" >&5
1754 cat conftest.$ac_ext >&5
1755 rm -fr conftest*
1756 ac_cv_c_stack_direction=-1
1757fi
1758rm -fr conftest*
1759fi
1760
1761fi
1762
1763echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1764cat >> confdefs.h <<EOF
1765#define STACK_DIRECTION $ac_cv_c_stack_direction
1766EOF
1767
1768fi
1769
1770for ac_hdr in unistd.h
1771do
1772ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1773echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Theodore Ts'of5955dd2000-10-25 02:38:39 +00001774echo "configure:1775: checking for $ac_hdr" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001775if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1776 echo $ac_n "(cached) $ac_c" 1>&6
1777else
1778 cat > conftest.$ac_ext <<EOF
Theodore Ts'of5955dd2000-10-25 02:38:39 +00001779#line 1780 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001780#include "confdefs.h"
1781#include <$ac_hdr>
1782EOF
1783ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'of5955dd2000-10-25 02:38:39 +00001784{ (eval echo configure:1785: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001785ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1786if test -z "$ac_err"; then
1787 rm -rf conftest*
1788 eval "ac_cv_header_$ac_safe=yes"
1789else
1790 echo "$ac_err" >&5
1791 echo "configure: failed program was:" >&5
1792 cat conftest.$ac_ext >&5
1793 rm -rf conftest*
1794 eval "ac_cv_header_$ac_safe=no"
1795fi
1796rm -f conftest*
1797fi
1798if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1799 echo "$ac_t""yes" 1>&6
1800 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1801 cat >> confdefs.h <<EOF
1802#define $ac_tr_hdr 1
1803EOF
1804
1805else
1806 echo "$ac_t""no" 1>&6
1807fi
1808done
1809
1810for ac_func in getpagesize
1811do
1812echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'of5955dd2000-10-25 02:38:39 +00001813echo "configure:1814: checking for $ac_func" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001814if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1815 echo $ac_n "(cached) $ac_c" 1>&6
1816else
1817 cat > conftest.$ac_ext <<EOF
Theodore Ts'of5955dd2000-10-25 02:38:39 +00001818#line 1819 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001819#include "confdefs.h"
1820/* System header to define __stub macros and hopefully few prototypes,
1821 which can conflict with char $ac_func(); below. */
1822#include <assert.h>
1823/* Override any gcc2 internal prototype to avoid an error. */
1824/* We use char because int might match the return type of a gcc2
1825 builtin and then its argument prototype would still apply. */
1826char $ac_func();
1827
1828int main() {
1829
1830/* The GNU C library defines this for functions which it implements
1831 to always fail with ENOSYS. Some functions are actually named
1832 something starting with __ and the normal name is an alias. */
1833#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1834choke me
1835#else
1836$ac_func();
1837#endif
1838
1839; return 0; }
1840EOF
Theodore Ts'of5955dd2000-10-25 02:38:39 +00001841if { (eval echo configure:1842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001842 rm -rf conftest*
1843 eval "ac_cv_func_$ac_func=yes"
1844else
1845 echo "configure: failed program was:" >&5
1846 cat conftest.$ac_ext >&5
1847 rm -rf conftest*
1848 eval "ac_cv_func_$ac_func=no"
1849fi
1850rm -f conftest*
1851fi
1852
1853if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1854 echo "$ac_t""yes" 1>&6
1855 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1856 cat >> confdefs.h <<EOF
1857#define $ac_tr_func 1
1858EOF
1859
1860else
1861 echo "$ac_t""no" 1>&6
1862fi
1863done
1864
1865echo $ac_n "checking for working mmap""... $ac_c" 1>&6
Theodore Ts'of5955dd2000-10-25 02:38:39 +00001866echo "configure:1867: checking for working mmap" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001867if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1868 echo $ac_n "(cached) $ac_c" 1>&6
1869else
1870 if test "$cross_compiling" = yes; then
1871 ac_cv_func_mmap_fixed_mapped=no
1872else
1873 cat > conftest.$ac_ext <<EOF
Theodore Ts'of5955dd2000-10-25 02:38:39 +00001874#line 1875 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001875#include "confdefs.h"
1876
1877/* Thanks to Mike Haertel and Jim Avera for this test.
1878 Here is a matrix of mmap possibilities:
1879 mmap private not fixed
1880 mmap private fixed at somewhere currently unmapped
1881 mmap private fixed at somewhere already mapped
1882 mmap shared not fixed
1883 mmap shared fixed at somewhere currently unmapped
1884 mmap shared fixed at somewhere already mapped
1885 For private mappings, we should verify that changes cannot be read()
1886 back from the file, nor mmap's back from the file at a different
1887 address. (There have been systems where private was not correctly
1888 implemented like the infamous i386 svr4.0, and systems where the
1889 VM page cache was not coherent with the filesystem buffer cache
1890 like early versions of FreeBSD and possibly contemporary NetBSD.)
1891 For shared mappings, we should conversely verify that changes get
1892 propogated back to all the places they're supposed to be.
1893
1894 Grep wants private fixed already mapped.
1895 The main things grep needs to know about mmap are:
1896 * does it exist and is it safe to write into the mmap'd area
1897 * how to use it (BSD variants) */
1898#include <sys/types.h>
1899#include <fcntl.h>
1900#include <sys/mman.h>
1901
1902/* This mess was copied from the GNU getpagesize.h. */
1903#ifndef HAVE_GETPAGESIZE
1904# ifdef HAVE_UNISTD_H
1905# include <unistd.h>
1906# endif
1907
1908/* Assume that all systems that can run configure have sys/param.h. */
1909# ifndef HAVE_SYS_PARAM_H
1910# define HAVE_SYS_PARAM_H 1
1911# endif
1912
1913# ifdef _SC_PAGESIZE
1914# define getpagesize() sysconf(_SC_PAGESIZE)
1915# else /* no _SC_PAGESIZE */
1916# ifdef HAVE_SYS_PARAM_H
1917# include <sys/param.h>
1918# ifdef EXEC_PAGESIZE
1919# define getpagesize() EXEC_PAGESIZE
1920# else /* no EXEC_PAGESIZE */
1921# ifdef NBPG
1922# define getpagesize() NBPG * CLSIZE
1923# ifndef CLSIZE
1924# define CLSIZE 1
1925# endif /* no CLSIZE */
1926# else /* no NBPG */
1927# ifdef NBPC
1928# define getpagesize() NBPC
1929# else /* no NBPC */
1930# ifdef PAGESIZE
1931# define getpagesize() PAGESIZE
1932# endif /* PAGESIZE */
1933# endif /* no NBPC */
1934# endif /* no NBPG */
1935# endif /* no EXEC_PAGESIZE */
1936# else /* no HAVE_SYS_PARAM_H */
1937# define getpagesize() 8192 /* punt totally */
1938# endif /* no HAVE_SYS_PARAM_H */
1939# endif /* no _SC_PAGESIZE */
1940
1941#endif /* no HAVE_GETPAGESIZE */
1942
1943#ifdef __cplusplus
1944extern "C" { void *malloc(unsigned); }
1945#else
1946char *malloc();
1947#endif
1948
1949int
1950main()
1951{
1952 char *data, *data2, *data3;
1953 int i, pagesize;
1954 int fd;
1955
1956 pagesize = getpagesize();
1957
1958 /*
1959 * First, make a file with some known garbage in it.
1960 */
1961 data = malloc(pagesize);
1962 if (!data)
1963 exit(1);
1964 for (i = 0; i < pagesize; ++i)
1965 *(data + i) = rand();
1966 umask(0);
1967 fd = creat("conftestmmap", 0600);
1968 if (fd < 0)
1969 exit(1);
1970 if (write(fd, data, pagesize) != pagesize)
1971 exit(1);
1972 close(fd);
1973
1974 /*
1975 * Next, try to mmap the file at a fixed address which
1976 * already has something else allocated at it. If we can,
1977 * also make sure that we see the same garbage.
1978 */
1979 fd = open("conftestmmap", O_RDWR);
1980 if (fd < 0)
1981 exit(1);
1982 data2 = malloc(2 * pagesize);
1983 if (!data2)
1984 exit(1);
1985 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1986 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1987 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1988 exit(1);
1989 for (i = 0; i < pagesize; ++i)
1990 if (*(data + i) != *(data2 + i))
1991 exit(1);
1992
1993 /*
1994 * Finally, make sure that changes to the mapped area
1995 * do not percolate back to the file as seen by read().
1996 * (This is a bug on some variants of i386 svr4.0.)
1997 */
1998 for (i = 0; i < pagesize; ++i)
1999 *(data2 + i) = *(data2 + i) + 1;
2000 data3 = malloc(pagesize);
2001 if (!data3)
2002 exit(1);
2003 if (read(fd, data3, pagesize) != pagesize)
2004 exit(1);
2005 for (i = 0; i < pagesize; ++i)
2006 if (*(data + i) != *(data3 + i))
2007 exit(1);
2008 close(fd);
2009 unlink("conftestmmap");
2010 exit(0);
2011}
2012
2013EOF
Theodore Ts'of5955dd2000-10-25 02:38:39 +00002014if { (eval echo configure:2015: \"$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 +00002015then
2016 ac_cv_func_mmap_fixed_mapped=yes
2017else
2018 echo "configure: failed program was:" >&5
2019 cat conftest.$ac_ext >&5
2020 rm -fr conftest*
2021 ac_cv_func_mmap_fixed_mapped=no
2022fi
2023rm -fr conftest*
2024fi
2025
2026fi
2027
2028echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2029if test $ac_cv_func_mmap_fixed_mapped = yes; then
2030 cat >> confdefs.h <<\EOF
2031#define HAVE_MMAP 1
2032EOF
2033
2034fi
2035
2036
2037 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2038unistd.h sys/param.h
2039do
2040ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2041echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Theodore Ts'of5955dd2000-10-25 02:38:39 +00002042echo "configure:2043: checking for $ac_hdr" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002043if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2044 echo $ac_n "(cached) $ac_c" 1>&6
2045else
2046 cat > conftest.$ac_ext <<EOF
Theodore Ts'of5955dd2000-10-25 02:38:39 +00002047#line 2048 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002048#include "confdefs.h"
2049#include <$ac_hdr>
2050EOF
2051ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'of5955dd2000-10-25 02:38:39 +00002052{ (eval echo configure:2053: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002053ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2054if test -z "$ac_err"; then
2055 rm -rf conftest*
2056 eval "ac_cv_header_$ac_safe=yes"
2057else
2058 echo "$ac_err" >&5
2059 echo "configure: failed program was:" >&5
2060 cat conftest.$ac_ext >&5
2061 rm -rf conftest*
2062 eval "ac_cv_header_$ac_safe=no"
2063fi
2064rm -f conftest*
2065fi
2066if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2067 echo "$ac_t""yes" 1>&6
2068 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2069 cat >> confdefs.h <<EOF
2070#define $ac_tr_hdr 1
2071EOF
2072
2073else
2074 echo "$ac_t""no" 1>&6
2075fi
2076done
2077
2078 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2079strdup __argz_count __argz_stringify __argz_next
2080do
2081echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'of5955dd2000-10-25 02:38:39 +00002082echo "configure:2083: checking for $ac_func" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002083if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2084 echo $ac_n "(cached) $ac_c" 1>&6
2085else
2086 cat > conftest.$ac_ext <<EOF
Theodore Ts'of5955dd2000-10-25 02:38:39 +00002087#line 2088 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002088#include "confdefs.h"
2089/* System header to define __stub macros and hopefully few prototypes,
2090 which can conflict with char $ac_func(); below. */
2091#include <assert.h>
2092/* Override any gcc2 internal prototype to avoid an error. */
2093/* We use char because int might match the return type of a gcc2
2094 builtin and then its argument prototype would still apply. */
2095char $ac_func();
2096
2097int main() {
2098
2099/* The GNU C library defines this for functions which it implements
2100 to always fail with ENOSYS. Some functions are actually named
2101 something starting with __ and the normal name is an alias. */
2102#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2103choke me
2104#else
2105$ac_func();
2106#endif
2107
2108; return 0; }
2109EOF
Theodore Ts'of5955dd2000-10-25 02:38:39 +00002110if { (eval echo configure:2111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002111 rm -rf conftest*
2112 eval "ac_cv_func_$ac_func=yes"
2113else
2114 echo "configure: failed program was:" >&5
2115 cat conftest.$ac_ext >&5
2116 rm -rf conftest*
2117 eval "ac_cv_func_$ac_func=no"
2118fi
2119rm -f conftest*
2120fi
2121
2122if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2123 echo "$ac_t""yes" 1>&6
2124 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2125 cat >> confdefs.h <<EOF
2126#define $ac_tr_func 1
2127EOF
2128
2129else
2130 echo "$ac_t""no" 1>&6
2131fi
2132done
2133
2134
2135 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2136 for ac_func in stpcpy
2137do
2138echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'of5955dd2000-10-25 02:38:39 +00002139echo "configure:2140: checking for $ac_func" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002140if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2141 echo $ac_n "(cached) $ac_c" 1>&6
2142else
2143 cat > conftest.$ac_ext <<EOF
Theodore Ts'of5955dd2000-10-25 02:38:39 +00002144#line 2145 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002145#include "confdefs.h"
2146/* System header to define __stub macros and hopefully few prototypes,
2147 which can conflict with char $ac_func(); below. */
2148#include <assert.h>
2149/* Override any gcc2 internal prototype to avoid an error. */
2150/* We use char because int might match the return type of a gcc2
2151 builtin and then its argument prototype would still apply. */
2152char $ac_func();
2153
2154int main() {
2155
2156/* The GNU C library defines this for functions which it implements
2157 to always fail with ENOSYS. Some functions are actually named
2158 something starting with __ and the normal name is an alias. */
2159#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2160choke me
2161#else
2162$ac_func();
2163#endif
2164
2165; return 0; }
2166EOF
Theodore Ts'of5955dd2000-10-25 02:38:39 +00002167if { (eval echo configure:2168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002168 rm -rf conftest*
2169 eval "ac_cv_func_$ac_func=yes"
2170else
2171 echo "configure: failed program was:" >&5
2172 cat conftest.$ac_ext >&5
2173 rm -rf conftest*
2174 eval "ac_cv_func_$ac_func=no"
2175fi
2176rm -f conftest*
2177fi
2178
2179if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2180 echo "$ac_t""yes" 1>&6
2181 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2182 cat >> confdefs.h <<EOF
2183#define $ac_tr_func 1
2184EOF
2185
2186else
2187 echo "$ac_t""no" 1>&6
2188fi
2189done
2190
2191 fi
2192 if test "${ac_cv_func_stpcpy}" = "yes"; then
2193 cat >> confdefs.h <<\EOF
2194#define HAVE_STPCPY 1
2195EOF
2196
2197 fi
2198
2199 if test $ac_cv_header_locale_h = yes; then
2200 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
Theodore Ts'of5955dd2000-10-25 02:38:39 +00002201echo "configure:2202: checking for LC_MESSAGES" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002202if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2203 echo $ac_n "(cached) $ac_c" 1>&6
2204else
2205 cat > conftest.$ac_ext <<EOF
Theodore Ts'of5955dd2000-10-25 02:38:39 +00002206#line 2207 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002207#include "confdefs.h"
2208#include <locale.h>
2209int main() {
2210return LC_MESSAGES
2211; return 0; }
2212EOF
Theodore Ts'of5955dd2000-10-25 02:38:39 +00002213if { (eval echo configure:2214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002214 rm -rf conftest*
2215 am_cv_val_LC_MESSAGES=yes
2216else
2217 echo "configure: failed program was:" >&5
2218 cat conftest.$ac_ext >&5
2219 rm -rf conftest*
2220 am_cv_val_LC_MESSAGES=no
2221fi
2222rm -f conftest*
2223fi
2224
2225echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2226 if test $am_cv_val_LC_MESSAGES = yes; then
2227 cat >> confdefs.h <<\EOF
2228#define HAVE_LC_MESSAGES 1
2229EOF
2230
2231 fi
2232 fi
2233 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
Theodore Ts'of5955dd2000-10-25 02:38:39 +00002234echo "configure:2235: checking whether NLS is requested" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002235 # Check whether --enable-nls or --disable-nls was given.
2236if test "${enable_nls+set}" = set; then
2237 enableval="$enable_nls"
2238 USE_NLS=$enableval
2239else
2240 USE_NLS=no
2241fi
2242
2243 echo "$ac_t""$USE_NLS" 1>&6
2244
2245
2246 USE_INCLUDED_LIBINTL=no
2247
2248 if test "$USE_NLS" = "yes"; then
2249 cat >> confdefs.h <<\EOF
2250#define ENABLE_NLS 1
2251EOF
2252
2253 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
Theodore Ts'of5955dd2000-10-25 02:38:39 +00002254echo "configure:2255: checking whether included gettext is requested" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002255 # Check whether --with-included-gettext or --without-included-gettext was given.
2256if test "${with_included_gettext+set}" = set; then
2257 withval="$with_included_gettext"
2258 nls_cv_force_use_gnu_gettext=$withval
2259else
2260 nls_cv_force_use_gnu_gettext=no
2261fi
2262
2263 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2264
2265 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2266 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2267 nls_cv_header_intl=
2268 nls_cv_header_libgt=
2269 CATOBJEXT=NONE
2270
2271 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2272echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
Theodore Ts'of5955dd2000-10-25 02:38:39 +00002273echo "configure:2274: checking for libintl.h" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002274if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2275 echo $ac_n "(cached) $ac_c" 1>&6
2276else
2277 cat > conftest.$ac_ext <<EOF
Theodore Ts'of5955dd2000-10-25 02:38:39 +00002278#line 2279 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002279#include "confdefs.h"
2280#include <libintl.h>
2281EOF
2282ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'of5955dd2000-10-25 02:38:39 +00002283{ (eval echo configure:2284: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002284ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2285if test -z "$ac_err"; then
2286 rm -rf conftest*
2287 eval "ac_cv_header_$ac_safe=yes"
2288else
2289 echo "$ac_err" >&5
2290 echo "configure: failed program was:" >&5
2291 cat conftest.$ac_ext >&5
2292 rm -rf conftest*
2293 eval "ac_cv_header_$ac_safe=no"
2294fi
2295rm -f conftest*
2296fi
2297if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2298 echo "$ac_t""yes" 1>&6
2299 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
Theodore Ts'of5955dd2000-10-25 02:38:39 +00002300echo "configure:2301: checking for gettext in libc" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002301if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2302 echo $ac_n "(cached) $ac_c" 1>&6
2303else
2304 cat > conftest.$ac_ext <<EOF
Theodore Ts'of5955dd2000-10-25 02:38:39 +00002305#line 2306 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002306#include "confdefs.h"
2307#include <libintl.h>
2308int main() {
2309return (int) gettext ("")
2310; return 0; }
2311EOF
Theodore Ts'of5955dd2000-10-25 02:38:39 +00002312if { (eval echo configure:2313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002313 rm -rf conftest*
2314 gt_cv_func_gettext_libc=yes
2315else
2316 echo "configure: failed program was:" >&5
2317 cat conftest.$ac_ext >&5
2318 rm -rf conftest*
2319 gt_cv_func_gettext_libc=no
2320fi
2321rm -f conftest*
2322fi
2323
2324echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2325
2326 if test "$gt_cv_func_gettext_libc" != "yes"; then
2327 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
Theodore Ts'of5955dd2000-10-25 02:38:39 +00002328echo "configure:2329: checking for bindtextdomain in -lintl" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002329ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2330if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2331 echo $ac_n "(cached) $ac_c" 1>&6
2332else
2333 ac_save_LIBS="$LIBS"
2334LIBS="-lintl $LIBS"
2335cat > conftest.$ac_ext <<EOF
Theodore Ts'of5955dd2000-10-25 02:38:39 +00002336#line 2337 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002337#include "confdefs.h"
2338/* Override any gcc2 internal prototype to avoid an error. */
2339/* We use char because int might match the return type of a gcc2
2340 builtin and then its argument prototype would still apply. */
2341char bindtextdomain();
2342
2343int main() {
2344bindtextdomain()
2345; return 0; }
2346EOF
Theodore Ts'of5955dd2000-10-25 02:38:39 +00002347if { (eval echo configure:2348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002348 rm -rf conftest*
2349 eval "ac_cv_lib_$ac_lib_var=yes"
2350else
2351 echo "configure: failed program was:" >&5
2352 cat conftest.$ac_ext >&5
2353 rm -rf conftest*
2354 eval "ac_cv_lib_$ac_lib_var=no"
2355fi
2356rm -f conftest*
2357LIBS="$ac_save_LIBS"
2358
2359fi
2360if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2361 echo "$ac_t""yes" 1>&6
2362 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
Theodore Ts'of5955dd2000-10-25 02:38:39 +00002363echo "configure:2364: checking for gettext in libintl" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002364if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2365 echo $ac_n "(cached) $ac_c" 1>&6
2366else
2367 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
Theodore Ts'of5955dd2000-10-25 02:38:39 +00002368echo "configure:2369: checking for gettext in -lintl" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002369ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
2370if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2371 echo $ac_n "(cached) $ac_c" 1>&6
2372else
2373 ac_save_LIBS="$LIBS"
2374LIBS="-lintl $LIBS"
2375cat > conftest.$ac_ext <<EOF
Theodore Ts'of5955dd2000-10-25 02:38:39 +00002376#line 2377 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002377#include "confdefs.h"
2378/* Override any gcc2 internal prototype to avoid an error. */
2379/* We use char because int might match the return type of a gcc2
2380 builtin and then its argument prototype would still apply. */
2381char gettext();
2382
2383int main() {
2384gettext()
2385; return 0; }
2386EOF
Theodore Ts'of5955dd2000-10-25 02:38:39 +00002387if { (eval echo configure:2388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002388 rm -rf conftest*
2389 eval "ac_cv_lib_$ac_lib_var=yes"
2390else
2391 echo "configure: failed program was:" >&5
2392 cat conftest.$ac_ext >&5
2393 rm -rf conftest*
2394 eval "ac_cv_lib_$ac_lib_var=no"
2395fi
2396rm -f conftest*
2397LIBS="$ac_save_LIBS"
2398
2399fi
2400if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2401 echo "$ac_t""yes" 1>&6
2402 gt_cv_func_gettext_libintl=yes
2403else
2404 echo "$ac_t""no" 1>&6
2405gt_cv_func_gettext_libintl=no
2406fi
2407
2408fi
2409
2410echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2411else
2412 echo "$ac_t""no" 1>&6
2413fi
2414
2415 fi
2416
2417 if test "$gt_cv_func_gettext_libc" = "yes" \
2418 || test "$gt_cv_func_gettext_libintl" = "yes"; then
2419 cat >> confdefs.h <<\EOF
2420#define HAVE_GETTEXT 1
2421EOF
2422
2423 # Extract the first word of "msgfmt", so it can be a program name with args.
2424set dummy msgfmt; ac_word=$2
2425echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'of5955dd2000-10-25 02:38:39 +00002426echo "configure:2427: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002427if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2428 echo $ac_n "(cached) $ac_c" 1>&6
2429else
2430 case "$MSGFMT" in
2431 /*)
2432 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2433 ;;
2434 *)
2435 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2436 for ac_dir in $PATH; do
2437 test -z "$ac_dir" && ac_dir=.
2438 if test -f $ac_dir/$ac_word; then
2439 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2440 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2441 break
2442 fi
2443 fi
2444 done
2445 IFS="$ac_save_ifs"
2446 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
2447 ;;
2448esac
2449fi
2450MSGFMT="$ac_cv_path_MSGFMT"
2451if test -n "$MSGFMT"; then
2452 echo "$ac_t""$MSGFMT" 1>&6
2453else
2454 echo "$ac_t""no" 1>&6
2455fi
2456 if test "$MSGFMT" != "no"; then
2457 for ac_func in dcgettext
2458do
2459echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'of5955dd2000-10-25 02:38:39 +00002460echo "configure:2461: checking for $ac_func" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002461if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2462 echo $ac_n "(cached) $ac_c" 1>&6
2463else
2464 cat > conftest.$ac_ext <<EOF
Theodore Ts'of5955dd2000-10-25 02:38:39 +00002465#line 2466 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002466#include "confdefs.h"
2467/* System header to define __stub macros and hopefully few prototypes,
2468 which can conflict with char $ac_func(); below. */
2469#include <assert.h>
2470/* Override any gcc2 internal prototype to avoid an error. */
2471/* We use char because int might match the return type of a gcc2
2472 builtin and then its argument prototype would still apply. */
2473char $ac_func();
2474
2475int main() {
2476
2477/* The GNU C library defines this for functions which it implements
2478 to always fail with ENOSYS. Some functions are actually named
2479 something starting with __ and the normal name is an alias. */
2480#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2481choke me
2482#else
2483$ac_func();
2484#endif
2485
2486; return 0; }
2487EOF
Theodore Ts'of5955dd2000-10-25 02:38:39 +00002488if { (eval echo configure:2489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002489 rm -rf conftest*
2490 eval "ac_cv_func_$ac_func=yes"
2491else
2492 echo "configure: failed program was:" >&5
2493 cat conftest.$ac_ext >&5
2494 rm -rf conftest*
2495 eval "ac_cv_func_$ac_func=no"
2496fi
2497rm -f conftest*
2498fi
2499
2500if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2501 echo "$ac_t""yes" 1>&6
2502 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2503 cat >> confdefs.h <<EOF
2504#define $ac_tr_func 1
2505EOF
2506
2507else
2508 echo "$ac_t""no" 1>&6
2509fi
2510done
2511
2512 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2513set dummy gmsgfmt; ac_word=$2
2514echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'of5955dd2000-10-25 02:38:39 +00002515echo "configure:2516: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002516if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2517 echo $ac_n "(cached) $ac_c" 1>&6
2518else
2519 case "$GMSGFMT" in
2520 /*)
2521 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2522 ;;
2523 ?:/*)
2524 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2525 ;;
2526 *)
2527 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2528 ac_dummy="$PATH"
2529 for ac_dir in $ac_dummy; do
2530 test -z "$ac_dir" && ac_dir=.
2531 if test -f $ac_dir/$ac_word; then
2532 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2533 break
2534 fi
2535 done
2536 IFS="$ac_save_ifs"
2537 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2538 ;;
2539esac
2540fi
2541GMSGFMT="$ac_cv_path_GMSGFMT"
2542if test -n "$GMSGFMT"; then
2543 echo "$ac_t""$GMSGFMT" 1>&6
2544else
2545 echo "$ac_t""no" 1>&6
2546fi
2547
2548 # Extract the first word of "xgettext", so it can be a program name with args.
2549set dummy xgettext; ac_word=$2
2550echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'of5955dd2000-10-25 02:38:39 +00002551echo "configure:2552: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002552if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2553 echo $ac_n "(cached) $ac_c" 1>&6
2554else
2555 case "$XGETTEXT" in
2556 /*)
2557 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2558 ;;
2559 *)
2560 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2561 for ac_dir in $PATH; do
2562 test -z "$ac_dir" && ac_dir=.
2563 if test -f $ac_dir/$ac_word; then
2564 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2565 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2566 break
2567 fi
2568 fi
2569 done
2570 IFS="$ac_save_ifs"
2571 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2572 ;;
2573esac
2574fi
2575XGETTEXT="$ac_cv_path_XGETTEXT"
2576if test -n "$XGETTEXT"; then
2577 echo "$ac_t""$XGETTEXT" 1>&6
2578else
2579 echo "$ac_t""no" 1>&6
2580fi
2581
2582 cat > conftest.$ac_ext <<EOF
Theodore Ts'of5955dd2000-10-25 02:38:39 +00002583#line 2584 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002584#include "confdefs.h"
2585
2586int main() {
2587extern int _nl_msg_cat_cntr;
2588 return _nl_msg_cat_cntr
2589; return 0; }
2590EOF
Theodore Ts'of5955dd2000-10-25 02:38:39 +00002591if { (eval echo configure:2592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002592 rm -rf conftest*
2593 CATOBJEXT=.gmo
2594 DATADIRNAME=share
2595else
2596 echo "configure: failed program was:" >&5
2597 cat conftest.$ac_ext >&5
2598 rm -rf conftest*
2599 CATOBJEXT=.mo
2600 DATADIRNAME=lib
2601fi
2602rm -f conftest*
2603 INSTOBJEXT=.mo
2604 fi
2605 fi
2606
2607else
2608 echo "$ac_t""no" 1>&6
2609fi
2610
2611
2612 if test "$CATOBJEXT" = "NONE"; then
2613 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
Theodore Ts'of5955dd2000-10-25 02:38:39 +00002614echo "configure:2615: checking whether catgets can be used" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002615 # Check whether --with-catgets or --without-catgets was given.
2616if test "${with_catgets+set}" = set; then
2617 withval="$with_catgets"
2618 nls_cv_use_catgets=$withval
2619else
2620 nls_cv_use_catgets=no
2621fi
2622
2623 echo "$ac_t""$nls_cv_use_catgets" 1>&6
2624
2625 if test "$nls_cv_use_catgets" = "yes"; then
2626 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
Theodore Ts'of5955dd2000-10-25 02:38:39 +00002627echo "configure:2628: checking for main in -li" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002628ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'`
2629if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2630 echo $ac_n "(cached) $ac_c" 1>&6
2631else
2632 ac_save_LIBS="$LIBS"
2633LIBS="-li $LIBS"
2634cat > conftest.$ac_ext <<EOF
Theodore Ts'of5955dd2000-10-25 02:38:39 +00002635#line 2636 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002636#include "confdefs.h"
2637
2638int main() {
2639main()
2640; return 0; }
2641EOF
Theodore Ts'of5955dd2000-10-25 02:38:39 +00002642if { (eval echo configure:2643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002643 rm -rf conftest*
2644 eval "ac_cv_lib_$ac_lib_var=yes"
2645else
2646 echo "configure: failed program was:" >&5
2647 cat conftest.$ac_ext >&5
2648 rm -rf conftest*
2649 eval "ac_cv_lib_$ac_lib_var=no"
2650fi
2651rm -f conftest*
2652LIBS="$ac_save_LIBS"
2653
2654fi
2655if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2656 echo "$ac_t""yes" 1>&6
2657 ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2658 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2659 cat >> confdefs.h <<EOF
2660#define $ac_tr_lib 1
2661EOF
2662
2663 LIBS="-li $LIBS"
2664
2665else
2666 echo "$ac_t""no" 1>&6
2667fi
2668
2669 echo $ac_n "checking for catgets""... $ac_c" 1>&6
Theodore Ts'of5955dd2000-10-25 02:38:39 +00002670echo "configure:2671: checking for catgets" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002671if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
2672 echo $ac_n "(cached) $ac_c" 1>&6
2673else
2674 cat > conftest.$ac_ext <<EOF
Theodore Ts'of5955dd2000-10-25 02:38:39 +00002675#line 2676 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002676#include "confdefs.h"
2677/* System header to define __stub macros and hopefully few prototypes,
2678 which can conflict with char catgets(); below. */
2679#include <assert.h>
2680/* Override any gcc2 internal prototype to avoid an error. */
2681/* We use char because int might match the return type of a gcc2
2682 builtin and then its argument prototype would still apply. */
2683char catgets();
2684
2685int main() {
2686
2687/* The GNU C library defines this for functions which it implements
2688 to always fail with ENOSYS. Some functions are actually named
2689 something starting with __ and the normal name is an alias. */
2690#if defined (__stub_catgets) || defined (__stub___catgets)
2691choke me
2692#else
2693catgets();
2694#endif
2695
2696; return 0; }
2697EOF
Theodore Ts'of5955dd2000-10-25 02:38:39 +00002698if { (eval echo configure:2699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002699 rm -rf conftest*
2700 eval "ac_cv_func_catgets=yes"
2701else
2702 echo "configure: failed program was:" >&5
2703 cat conftest.$ac_ext >&5
2704 rm -rf conftest*
2705 eval "ac_cv_func_catgets=no"
2706fi
2707rm -f conftest*
2708fi
2709
2710if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
2711 echo "$ac_t""yes" 1>&6
2712 cat >> confdefs.h <<\EOF
2713#define HAVE_CATGETS 1
2714EOF
2715
2716 INTLOBJS="\$(CATOBJS)"
2717 # Extract the first word of "gencat", so it can be a program name with args.
2718set dummy gencat; ac_word=$2
2719echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'of5955dd2000-10-25 02:38:39 +00002720echo "configure:2721: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002721if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
2722 echo $ac_n "(cached) $ac_c" 1>&6
2723else
2724 case "$GENCAT" in
2725 /*)
2726 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
2727 ;;
2728 ?:/*)
2729 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path.
2730 ;;
2731 *)
2732 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2733 ac_dummy="$PATH"
2734 for ac_dir in $ac_dummy; do
2735 test -z "$ac_dir" && ac_dir=.
2736 if test -f $ac_dir/$ac_word; then
2737 ac_cv_path_GENCAT="$ac_dir/$ac_word"
2738 break
2739 fi
2740 done
2741 IFS="$ac_save_ifs"
2742 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
2743 ;;
2744esac
2745fi
2746GENCAT="$ac_cv_path_GENCAT"
2747if test -n "$GENCAT"; then
2748 echo "$ac_t""$GENCAT" 1>&6
2749else
2750 echo "$ac_t""no" 1>&6
2751fi
2752 if test "$GENCAT" != "no"; then
2753 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2754set dummy gmsgfmt; ac_word=$2
2755echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'of5955dd2000-10-25 02:38:39 +00002756echo "configure:2757: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002757if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2758 echo $ac_n "(cached) $ac_c" 1>&6
2759else
2760 case "$GMSGFMT" in
2761 /*)
2762 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2763 ;;
2764 ?:/*)
2765 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2766 ;;
2767 *)
2768 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2769 ac_dummy="$PATH"
2770 for ac_dir in $ac_dummy; do
2771 test -z "$ac_dir" && ac_dir=.
2772 if test -f $ac_dir/$ac_word; then
2773 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2774 break
2775 fi
2776 done
2777 IFS="$ac_save_ifs"
2778 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
2779 ;;
2780esac
2781fi
2782GMSGFMT="$ac_cv_path_GMSGFMT"
2783if test -n "$GMSGFMT"; then
2784 echo "$ac_t""$GMSGFMT" 1>&6
2785else
2786 echo "$ac_t""no" 1>&6
2787fi
2788
2789 if test "$GMSGFMT" = "no"; then
2790 # Extract the first word of "msgfmt", so it can be a program name with args.
2791set dummy msgfmt; ac_word=$2
2792echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'of5955dd2000-10-25 02:38:39 +00002793echo "configure:2794: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002794if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2795 echo $ac_n "(cached) $ac_c" 1>&6
2796else
2797 case "$GMSGFMT" in
2798 /*)
2799 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2800 ;;
2801 *)
2802 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2803 for ac_dir in $PATH; do
2804 test -z "$ac_dir" && ac_dir=.
2805 if test -f $ac_dir/$ac_word; then
2806 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2807 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2808 break
2809 fi
2810 fi
2811 done
2812 IFS="$ac_save_ifs"
2813 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
2814 ;;
2815esac
2816fi
2817GMSGFMT="$ac_cv_path_GMSGFMT"
2818if test -n "$GMSGFMT"; then
2819 echo "$ac_t""$GMSGFMT" 1>&6
2820else
2821 echo "$ac_t""no" 1>&6
2822fi
2823
2824 fi
2825 # Extract the first word of "xgettext", so it can be a program name with args.
2826set dummy xgettext; ac_word=$2
2827echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'of5955dd2000-10-25 02:38:39 +00002828echo "configure:2829: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002829if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2830 echo $ac_n "(cached) $ac_c" 1>&6
2831else
2832 case "$XGETTEXT" in
2833 /*)
2834 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2835 ;;
2836 *)
2837 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2838 for ac_dir in $PATH; do
2839 test -z "$ac_dir" && ac_dir=.
2840 if test -f $ac_dir/$ac_word; then
2841 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2842 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2843 break
2844 fi
2845 fi
2846 done
2847 IFS="$ac_save_ifs"
2848 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2849 ;;
2850esac
2851fi
2852XGETTEXT="$ac_cv_path_XGETTEXT"
2853if test -n "$XGETTEXT"; then
2854 echo "$ac_t""$XGETTEXT" 1>&6
2855else
2856 echo "$ac_t""no" 1>&6
2857fi
2858
2859 USE_INCLUDED_LIBINTL=yes
2860 CATOBJEXT=.cat
2861 INSTOBJEXT=.cat
2862 DATADIRNAME=lib
2863 INTLDEPS='$(top_builddir)/intl/libintl.a'
2864 INTLLIBS=$INTLDEPS
2865 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
2866 nls_cv_header_intl=intl/libintl.h
2867 nls_cv_header_libgt=intl/libgettext.h
2868 fi
2869else
2870 echo "$ac_t""no" 1>&6
2871fi
2872
2873 fi
2874 fi
2875
2876 if test "$CATOBJEXT" = "NONE"; then
2877 nls_cv_use_gnu_gettext=yes
2878 fi
2879 fi
2880
2881 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2882 INTLOBJS="\$(GETTOBJS)"
2883 # Extract the first word of "msgfmt", so it can be a program name with args.
2884set dummy msgfmt; ac_word=$2
2885echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'of5955dd2000-10-25 02:38:39 +00002886echo "configure:2887: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002887if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2888 echo $ac_n "(cached) $ac_c" 1>&6
2889else
2890 case "$MSGFMT" in
2891 /*)
2892 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2893 ;;
2894 *)
2895 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2896 for ac_dir in $PATH; do
2897 test -z "$ac_dir" && ac_dir=.
2898 if test -f $ac_dir/$ac_word; then
2899 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2900 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2901 break
2902 fi
2903 fi
2904 done
2905 IFS="$ac_save_ifs"
2906 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
2907 ;;
2908esac
2909fi
2910MSGFMT="$ac_cv_path_MSGFMT"
2911if test -n "$MSGFMT"; then
2912 echo "$ac_t""$MSGFMT" 1>&6
2913else
2914 echo "$ac_t""no" 1>&6
2915fi
2916
2917 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2918set dummy gmsgfmt; ac_word=$2
2919echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'of5955dd2000-10-25 02:38:39 +00002920echo "configure:2921: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002921if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2922 echo $ac_n "(cached) $ac_c" 1>&6
2923else
2924 case "$GMSGFMT" in
2925 /*)
2926 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2927 ;;
2928 ?:/*)
2929 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2930 ;;
2931 *)
2932 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2933 ac_dummy="$PATH"
2934 for ac_dir in $ac_dummy; do
2935 test -z "$ac_dir" && ac_dir=.
2936 if test -f $ac_dir/$ac_word; then
2937 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2938 break
2939 fi
2940 done
2941 IFS="$ac_save_ifs"
2942 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2943 ;;
2944esac
2945fi
2946GMSGFMT="$ac_cv_path_GMSGFMT"
2947if test -n "$GMSGFMT"; then
2948 echo "$ac_t""$GMSGFMT" 1>&6
2949else
2950 echo "$ac_t""no" 1>&6
2951fi
2952
2953 # Extract the first word of "xgettext", so it can be a program name with args.
2954set dummy xgettext; ac_word=$2
2955echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'of5955dd2000-10-25 02:38:39 +00002956echo "configure:2957: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002957if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2958 echo $ac_n "(cached) $ac_c" 1>&6
2959else
2960 case "$XGETTEXT" in
2961 /*)
2962 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2963 ;;
2964 *)
2965 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2966 for ac_dir in $PATH; do
2967 test -z "$ac_dir" && ac_dir=.
2968 if test -f $ac_dir/$ac_word; then
2969 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2970 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2971 break
2972 fi
2973 fi
2974 done
2975 IFS="$ac_save_ifs"
2976 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2977 ;;
2978esac
2979fi
2980XGETTEXT="$ac_cv_path_XGETTEXT"
2981if test -n "$XGETTEXT"; then
2982 echo "$ac_t""$XGETTEXT" 1>&6
2983else
2984 echo "$ac_t""no" 1>&6
2985fi
2986
2987
2988 USE_INCLUDED_LIBINTL=yes
2989 CATOBJEXT=.gmo
2990 INSTOBJEXT=.mo
2991 DATADIRNAME=share
2992 INTLDEPS='$(top_builddir)/intl/libintl.a'
2993 INTLLIBS=$INTLDEPS
2994 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
2995 nls_cv_header_intl=intl/libintl.h
2996 nls_cv_header_libgt=intl/libgettext.h
2997 fi
2998
2999 if test "$XGETTEXT" != ":"; then
3000 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
3001 : ;
3002 else
3003 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
3004 XGETTEXT=":"
3005 fi
3006 fi
3007
3008 # We need to process the po/ directory.
3009 POSUB=po
3010 else
3011 DATADIRNAME=share
3012 nls_cv_header_intl=intl/libintl.h
3013 nls_cv_header_libgt=intl/libgettext.h
3014 fi
3015
3016
3017
3018
3019 # If this is used in GNU gettext we have to set USE_NLS to `yes'
3020 # because some of the sources are only built for this goal.
3021 if test "$PACKAGE" = gettext; then
3022 USE_NLS=yes
3023 USE_INCLUDED_LIBINTL=yes
3024 fi
3025
3026 for lang in $ALL_LINGUAS; do
3027 GMOFILES="$GMOFILES $lang.gmo"
3028 POFILES="$POFILES $lang.po"
3029 done
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044 if test "x$CATOBJEXT" != "x"; then
3045 if test "x$ALL_LINGUAS" = "x"; then
3046 LINGUAS=
3047 else
3048 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
Theodore Ts'of5955dd2000-10-25 02:38:39 +00003049echo "configure:3050: checking for catalogs to be installed" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003050 NEW_LINGUAS=
3051 for lang in ${LINGUAS=$ALL_LINGUAS}; do
3052 case "$ALL_LINGUAS" in
3053 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
3054 esac
3055 done
3056 LINGUAS=$NEW_LINGUAS
3057 echo "$ac_t""$LINGUAS" 1>&6
3058 fi
3059
3060 if test -n "$LINGUAS"; then
3061 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
3062 fi
3063 fi
3064
3065 if test $ac_cv_header_locale_h = yes; then
3066 INCLUDE_LOCALE_H="#include <locale.h>"
3067 else
3068 INCLUDE_LOCALE_H="\
3069/* The system does not provide the header <locale.h>. Take care yourself. */"
3070 fi
3071
3072
3073 test -d intl || mkdir intl
3074 if test "$CATOBJEXT" = ".cat"; then
3075 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
3076echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
Theodore Ts'of5955dd2000-10-25 02:38:39 +00003077echo "configure:3078: checking for linux/version.h" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003078if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3079 echo $ac_n "(cached) $ac_c" 1>&6
3080else
3081 cat > conftest.$ac_ext <<EOF
Theodore Ts'of5955dd2000-10-25 02:38:39 +00003082#line 3083 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003083#include "confdefs.h"
3084#include <linux/version.h>
3085EOF
3086ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'of5955dd2000-10-25 02:38:39 +00003087{ (eval echo configure:3088: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003088ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3089if test -z "$ac_err"; then
3090 rm -rf conftest*
3091 eval "ac_cv_header_$ac_safe=yes"
3092else
3093 echo "$ac_err" >&5
3094 echo "configure: failed program was:" >&5
3095 cat conftest.$ac_ext >&5
3096 rm -rf conftest*
3097 eval "ac_cv_header_$ac_safe=no"
3098fi
3099rm -f conftest*
3100fi
3101if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3102 echo "$ac_t""yes" 1>&6
3103 msgformat=linux
3104else
3105 echo "$ac_t""no" 1>&6
3106msgformat=xopen
3107fi
3108
3109
3110 sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
3111 fi
3112 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
3113 $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
3114
3115 if test "$PACKAGE" = "gettext"; then
3116 GT_NO="#NO#"
3117 GT_YES=
3118 else
3119 GT_NO=
3120 GT_YES="#YES#"
3121 fi
3122
3123
3124
3125 MKINSTALLDIRS=
3126 if test -n "$ac_aux_dir"; then
3127 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
3128 fi
3129 if test -z "$MKINSTALLDIRS"; then
3130 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3131 fi
3132
3133
3134 l=
3135
3136
3137 test -d po || mkdir po
3138 if test "x$srcdir" != "x."; then
3139 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
3140 posrcprefix="$srcdir/"
3141 else
3142 posrcprefix="../$srcdir/"
3143 fi
3144 else
3145 posrcprefix="../"
3146 fi
3147 rm -f po/POTFILES
3148 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
3149 < $srcdir/po/POTFILES.in > po/POTFILES
3150
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003151# Check whether --enable-profile or --disable-profile was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003152if test "${enable_profile+set}" = set; then
3153 enableval="$enable_profile"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003154 if test "$enableval" = "no"
3155then
3156 PROFILE_CMT=#
3157 MAKEFILE_PROFILE=/dev/null
3158 echo "Disabling profiling libraries"
3159else
3160 PROFILE_CMT=
3161 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003162 PROFILED_LIB_EXT=_p.a
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003163 echo "Building profiling libraries"
3164fi
3165
3166else
3167 PROFILE_CMT=#
3168MAKEFILE_PROFILE=/dev/null
3169echo "Disabling profiling libraries by default"
3170
3171fi
3172
3173
3174
3175# Check whether --enable-checker or --disable-checker was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003176if test "${enable_checker+set}" = set; then
3177 enableval="$enable_checker"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003178 if test "$enableval" = "no"
3179then
3180 CHECKER_CMT=#
3181 MAKEFILE_CHECKER=/dev/null
3182 echo "Disabling checker libraries"
3183else
3184 CHECKER_CMT=
3185 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
3186 echo "Building checker libraries"
3187fi
3188
3189else
3190 CHECKER_CMT=#
3191MAKEFILE_CHECKER=/dev/null
3192echo "Disabling checker libraries by default"
3193
3194fi
3195
3196
3197
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003198
3199
3200
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003201# Check whether --enable-gcc-wall or --disable-gcc-wall was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003202if test "${enable_gcc_wall+set}" = set; then
3203 enableval="$enable_gcc_wall"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003204 if test "$enableval" = "no"
3205then
3206 W=#
3207 echo "Disabling GCC warnings"
3208else
3209 W=
3210 echo "Enabling GCC warnings"
3211fi
3212
3213else
3214 W=#
3215echo "Disabling GCC warnings by default"
3216
3217fi
3218
3219
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003220# Check whether --enable-dynamic-e2fsck or --disable-dynamic-e2fsck was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003221if test "${enable_dynamic_e2fsck+set}" = set; then
3222 enableval="$enable_dynamic_e2fsck"
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003223 if test "$enableval" = "no"
3224then
3225 E2FSCK_TYPE=static
3226 echo "Building e2fsck statically"
3227else
3228 E2FSCK_TYPE=shared
3229 echo "Building e2fsck dynamically"
3230fi
3231
3232else
3233 E2FSCK_TYPE=static
3234echo "Building e2fsck statically by default"
3235
3236fi
3237
3238
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00003239# Check whether --enable-fsck or --disable-fsck was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003240if test "${enable_fsck+set}" = set; then
3241 enableval="$enable_fsck"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00003242 if test "$enableval" = "no"
3243then
3244 FSCK_PROG='' FSCK_MAN=''
3245 echo "Not building fsck wrapper"
3246else
3247 FSCK_PROG=fsck FSCK_MAN=fsck.8
3248 echo "Building fsck wrapper"
3249fi
3250
3251else
3252 case "$host_os" in
3253 gnu*)
3254 FSCK_PROG='' FSCK_MAN=''
3255 echo "Not building fsck wrapper by default"
3256 ;;
3257 *)
3258 FSCK_PROG=fsck FSCK_MAN=fsck.8
3259 echo "Building fsck wrapper by default"
3260esac
3261
3262fi
3263
3264
3265
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003266MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
3267
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00003268# Check whether --enable-old-bitops or --disable-old-bitops was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003269if test "${enable_old_bitops+set}" = set; then
3270 enableval="$enable_old_bitops"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00003271 if test "$enableval" = "no"
3272then
3273 echo "Using new (standard) bitmask operations"
3274else
3275 cat >> confdefs.h <<\EOF
3276#define EXT2_OLD_BITOPS 1
3277EOF
3278
3279 echo "Using old (native) bitmask operations"
3280
3281fi
3282
3283else
3284 echo "Using standard bitmask operations by default"
3285
3286fi
3287
Theodore Ts'o74becf31997-04-26 14:37:06 +00003288
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003289echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
Theodore Ts'of5955dd2000-10-25 02:38:39 +00003290echo "configure:3291: checking whether ${MAKE-make} sets \${MAKE}" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003291set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003292if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
3293 echo $ac_n "(cached) $ac_c" 1>&6
3294else
3295 cat > conftestmake <<\EOF
3296all:
3297 @echo 'ac_maketemp="${MAKE}"'
3298EOF
3299# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3300eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
3301if test -n "$ac_maketemp"; then
3302 eval ac_cv_prog_make_${ac_make}_set=yes
3303else
3304 eval ac_cv_prog_make_${ac_make}_set=no
3305fi
3306rm -f conftestmake
3307fi
3308if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3309 echo "$ac_t""yes" 1>&6
3310 SET_MAKE=
3311else
3312 echo "$ac_t""no" 1>&6
3313 SET_MAKE="MAKE=${MAKE-make}"
3314fi
3315
3316# Extract the first word of "ln", so it can be a program name with args.
3317set dummy ln; ac_word=$2
3318echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'of5955dd2000-10-25 02:38:39 +00003319echo "configure:3320: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003320if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then
3321 echo $ac_n "(cached) $ac_c" 1>&6
3322else
3323 case "$LN" in
3324 /*)
3325 ac_cv_path_LN="$LN" # Let the user override the test with a path.
3326 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003327 ?:/*)
3328 ac_cv_path_LN="$LN" # Let the user override the test with a dos path.
3329 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003330 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003331 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3332 ac_dummy="$PATH"
3333 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003334 test -z "$ac_dir" && ac_dir=.
3335 if test -f $ac_dir/$ac_word; then
3336 ac_cv_path_LN="$ac_dir/$ac_word"
3337 break
3338 fi
3339 done
3340 IFS="$ac_save_ifs"
3341 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
3342 ;;
3343esac
3344fi
3345LN="$ac_cv_path_LN"
3346if test -n "$LN"; then
3347 echo "$ac_t""$LN" 1>&6
3348else
3349 echo "$ac_t""no" 1>&6
3350fi
3351
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00003352echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
Theodore Ts'of5955dd2000-10-25 02:38:39 +00003353echo "configure:3354: checking whether ln -s works" >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00003354if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
3355 echo $ac_n "(cached) $ac_c" 1>&6
3356else
3357 rm -f conftestdata
3358if ln -s X conftestdata 2>/dev/null
3359then
3360 rm -f conftestdata
3361 ac_cv_prog_LN_S="ln -s"
3362else
3363 ac_cv_prog_LN_S=ln
3364fi
3365fi
3366LN_S="$ac_cv_prog_LN_S"
3367if test "$ac_cv_prog_LN_S" = "ln -s"; then
3368 echo "$ac_t""yes" 1>&6
3369else
3370 echo "$ac_t""no" 1>&6
3371fi
3372
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003373# Extract the first word of "mv", so it can be a program name with args.
3374set dummy mv; ac_word=$2
3375echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'of5955dd2000-10-25 02:38:39 +00003376echo "configure:3377: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003377if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
3378 echo $ac_n "(cached) $ac_c" 1>&6
3379else
3380 case "$MV" in
3381 /*)
3382 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3383 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003384 ?:/*)
3385 ac_cv_path_MV="$MV" # Let the user override the test with a dos path.
3386 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003387 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003388 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3389 ac_dummy="$PATH"
3390 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003391 test -z "$ac_dir" && ac_dir=.
3392 if test -f $ac_dir/$ac_word; then
3393 ac_cv_path_MV="$ac_dir/$ac_word"
3394 break
3395 fi
3396 done
3397 IFS="$ac_save_ifs"
3398 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3399 ;;
3400esac
3401fi
3402MV="$ac_cv_path_MV"
3403if test -n "$MV"; then
3404 echo "$ac_t""$MV" 1>&6
3405else
3406 echo "$ac_t""no" 1>&6
3407fi
3408
3409# Extract the first word of "cp", so it can be a program name with args.
3410set dummy cp; ac_word=$2
3411echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'of5955dd2000-10-25 02:38:39 +00003412echo "configure:3413: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003413if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then
3414 echo $ac_n "(cached) $ac_c" 1>&6
3415else
3416 case "$CP" in
3417 /*)
3418 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3419 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003420 ?:/*)
3421 ac_cv_path_CP="$CP" # Let the user override the test with a dos path.
3422 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003423 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003424 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3425 ac_dummy="$PATH"
3426 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003427 test -z "$ac_dir" && ac_dir=.
3428 if test -f $ac_dir/$ac_word; then
3429 ac_cv_path_CP="$ac_dir/$ac_word"
3430 break
3431 fi
3432 done
3433 IFS="$ac_save_ifs"
3434 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3435 ;;
3436esac
3437fi
3438CP="$ac_cv_path_CP"
3439if test -n "$CP"; then
3440 echo "$ac_t""$CP" 1>&6
3441else
3442 echo "$ac_t""no" 1>&6
3443fi
3444
3445# Extract the first word of "rm", so it can be a program name with args.
3446set dummy rm; ac_word=$2
3447echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'of5955dd2000-10-25 02:38:39 +00003448echo "configure:3449: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003449if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
3450 echo $ac_n "(cached) $ac_c" 1>&6
3451else
3452 case "$RM" in
3453 /*)
3454 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3455 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003456 ?:/*)
3457 ac_cv_path_RM="$RM" # Let the user override the test with a dos path.
3458 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003459 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003460 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3461 ac_dummy="$PATH"
3462 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003463 test -z "$ac_dir" && ac_dir=.
3464 if test -f $ac_dir/$ac_word; then
3465 ac_cv_path_RM="$ac_dir/$ac_word"
3466 break
3467 fi
3468 done
3469 IFS="$ac_save_ifs"
3470 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3471 ;;
3472esac
3473fi
3474RM="$ac_cv_path_RM"
3475if test -n "$RM"; then
3476 echo "$ac_t""$RM" 1>&6
3477else
3478 echo "$ac_t""no" 1>&6
3479fi
3480
3481# Extract the first word of "chmod", so it can be a program name with args.
3482set dummy chmod; ac_word=$2
3483echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'of5955dd2000-10-25 02:38:39 +00003484echo "configure:3485: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003485if eval "test \"`echo '$''{'ac_cv_path_CHMOD'+set}'`\" = set"; then
3486 echo $ac_n "(cached) $ac_c" 1>&6
3487else
3488 case "$CHMOD" in
3489 /*)
3490 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
3491 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003492 ?:/*)
3493 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a dos path.
3494 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003495 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003496 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3497 ac_dummy="$PATH"
3498 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003499 test -z "$ac_dir" && ac_dir=.
3500 if test -f $ac_dir/$ac_word; then
3501 ac_cv_path_CHMOD="$ac_dir/$ac_word"
3502 break
3503 fi
3504 done
3505 IFS="$ac_save_ifs"
3506 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
3507 ;;
3508esac
3509fi
3510CHMOD="$ac_cv_path_CHMOD"
3511if test -n "$CHMOD"; then
3512 echo "$ac_t""$CHMOD" 1>&6
3513else
3514 echo "$ac_t""no" 1>&6
3515fi
3516
3517# Extract the first word of "awk", so it can be a program name with args.
3518set dummy awk; ac_word=$2
3519echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'of5955dd2000-10-25 02:38:39 +00003520echo "configure:3521: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003521if eval "test \"`echo '$''{'ac_cv_path_AWK'+set}'`\" = set"; then
3522 echo $ac_n "(cached) $ac_c" 1>&6
3523else
3524 case "$AWK" in
3525 /*)
3526 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3527 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003528 ?:/*)
3529 ac_cv_path_AWK="$AWK" # Let the user override the test with a dos path.
3530 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003531 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003532 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3533 ac_dummy="$PATH"
3534 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003535 test -z "$ac_dir" && ac_dir=.
3536 if test -f $ac_dir/$ac_word; then
3537 ac_cv_path_AWK="$ac_dir/$ac_word"
3538 break
3539 fi
3540 done
3541 IFS="$ac_save_ifs"
3542 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3543 ;;
3544esac
3545fi
3546AWK="$ac_cv_path_AWK"
3547if test -n "$AWK"; then
3548 echo "$ac_t""$AWK" 1>&6
3549else
3550 echo "$ac_t""no" 1>&6
3551fi
3552
3553# Extract the first word of "sed", so it can be a program name with args.
3554set dummy sed; ac_word=$2
3555echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'of5955dd2000-10-25 02:38:39 +00003556echo "configure:3557: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003557if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then
3558 echo $ac_n "(cached) $ac_c" 1>&6
3559else
3560 case "$SED" in
3561 /*)
3562 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3563 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003564 ?:/*)
3565 ac_cv_path_SED="$SED" # Let the user override the test with a dos path.
3566 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003567 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003568 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3569 ac_dummy="$PATH"
3570 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003571 test -z "$ac_dir" && ac_dir=.
3572 if test -f $ac_dir/$ac_word; then
3573 ac_cv_path_SED="$ac_dir/$ac_word"
3574 break
3575 fi
3576 done
3577 IFS="$ac_save_ifs"
3578 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3579 ;;
3580esac
3581fi
3582SED="$ac_cv_path_SED"
3583if test -n "$SED"; then
3584 echo "$ac_t""$SED" 1>&6
3585else
3586 echo "$ac_t""no" 1>&6
3587fi
3588
Theodore Ts'o9d564f71999-07-03 20:25:58 +00003589# Extract the first word of "perl", so it can be a program name with args.
3590set dummy perl; ac_word=$2
3591echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'of5955dd2000-10-25 02:38:39 +00003592echo "configure:3593: checking for $ac_word" >&5
Theodore Ts'o9d564f71999-07-03 20:25:58 +00003593if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
3594 echo $ac_n "(cached) $ac_c" 1>&6
3595else
3596 case "$PERL" in
3597 /*)
3598 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3599 ;;
3600 ?:/*)
3601 ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
3602 ;;
3603 *)
3604 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3605 ac_dummy="$PATH"
3606 for ac_dir in $ac_dummy; do
3607 test -z "$ac_dir" && ac_dir=.
3608 if test -f $ac_dir/$ac_word; then
3609 ac_cv_path_PERL="$ac_dir/$ac_word"
3610 break
3611 fi
3612 done
3613 IFS="$ac_save_ifs"
3614 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
3615 ;;
3616esac
3617fi
3618PERL="$ac_cv_path_PERL"
3619if test -n "$PERL"; then
3620 echo "$ac_t""$PERL" 1>&6
3621else
3622 echo "$ac_t""no" 1>&6
3623fi
3624
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003625echo $ac_n "checking build system type""... $ac_c" 1>&6
Theodore Ts'of5955dd2000-10-25 02:38:39 +00003626echo "configure:3627: checking build system type" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003627
3628build_alias=$build
3629case "$build_alias" in
3630NONE)
3631 case $nonopt in
3632 NONE) build_alias=$host_alias ;;
3633 *) build_alias=$nonopt ;;
3634 esac ;;
3635esac
3636
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003637build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003638build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3639build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3640build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003641echo "$ac_t""$build" 1>&6
3642
3643if test $host != $build; then
3644 ac_tool_prefix=${host_alias}-
3645else
3646 ac_tool_prefix=
3647fi
3648
3649# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3650set dummy ${ac_tool_prefix}ar; ac_word=$2
3651echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'of5955dd2000-10-25 02:38:39 +00003652echo "configure:3653: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003653if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3654 echo $ac_n "(cached) $ac_c" 1>&6
3655else
3656 if test -n "$AR"; then
3657 ac_cv_prog_AR="$AR" # Let the user override the test.
3658else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003659 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3660 ac_dummy="$PATH"
3661 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003662 test -z "$ac_dir" && ac_dir=.
3663 if test -f $ac_dir/$ac_word; then
3664 ac_cv_prog_AR="${ac_tool_prefix}ar"
3665 break
3666 fi
3667 done
3668 IFS="$ac_save_ifs"
3669fi
3670fi
3671AR="$ac_cv_prog_AR"
3672if test -n "$AR"; then
3673 echo "$ac_t""$AR" 1>&6
3674else
3675 echo "$ac_t""no" 1>&6
3676fi
3677
3678
3679if test -z "$ac_cv_prog_AR"; then
3680if test -n "$ac_tool_prefix"; then
3681 # Extract the first word of "ar", so it can be a program name with args.
3682set dummy ar; ac_word=$2
3683echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'of5955dd2000-10-25 02:38:39 +00003684echo "configure:3685: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003685if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3686 echo $ac_n "(cached) $ac_c" 1>&6
3687else
3688 if test -n "$AR"; then
3689 ac_cv_prog_AR="$AR" # Let the user override the test.
3690else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003691 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3692 ac_dummy="$PATH"
3693 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003694 test -z "$ac_dir" && ac_dir=.
3695 if test -f $ac_dir/$ac_word; then
3696 ac_cv_prog_AR="ar"
3697 break
3698 fi
3699 done
3700 IFS="$ac_save_ifs"
3701 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
3702fi
3703fi
3704AR="$ac_cv_prog_AR"
3705if test -n "$AR"; then
3706 echo "$ac_t""$AR" 1>&6
3707else
3708 echo "$ac_t""no" 1>&6
3709fi
3710
3711else
3712 AR="ar"
3713fi
3714fi
3715
3716# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3717set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3718echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'of5955dd2000-10-25 02:38:39 +00003719echo "configure:3720: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003720if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3721 echo $ac_n "(cached) $ac_c" 1>&6
3722else
3723 if test -n "$RANLIB"; then
3724 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3725else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003726 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3727 ac_dummy="$PATH"
3728 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003729 test -z "$ac_dir" && ac_dir=.
3730 if test -f $ac_dir/$ac_word; then
3731 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3732 break
3733 fi
3734 done
3735 IFS="$ac_save_ifs"
3736fi
3737fi
3738RANLIB="$ac_cv_prog_RANLIB"
3739if test -n "$RANLIB"; then
3740 echo "$ac_t""$RANLIB" 1>&6
3741else
3742 echo "$ac_t""no" 1>&6
3743fi
3744
3745
3746if test -z "$ac_cv_prog_RANLIB"; then
3747if test -n "$ac_tool_prefix"; then
3748 # Extract the first word of "ranlib", so it can be a program name with args.
3749set dummy ranlib; ac_word=$2
3750echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'of5955dd2000-10-25 02:38:39 +00003751echo "configure:3752: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003752if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3753 echo $ac_n "(cached) $ac_c" 1>&6
3754else
3755 if test -n "$RANLIB"; then
3756 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3757else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003758 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3759 ac_dummy="$PATH"
3760 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003761 test -z "$ac_dir" && ac_dir=.
3762 if test -f $ac_dir/$ac_word; then
3763 ac_cv_prog_RANLIB="ranlib"
3764 break
3765 fi
3766 done
3767 IFS="$ac_save_ifs"
3768 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3769fi
3770fi
3771RANLIB="$ac_cv_prog_RANLIB"
3772if test -n "$RANLIB"; then
3773 echo "$ac_t""$RANLIB" 1>&6
3774else
3775 echo "$ac_t""no" 1>&6
3776fi
3777
3778else
3779 RANLIB=":"
3780fi
3781fi
3782
3783# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3784set dummy ${ac_tool_prefix}strip; ac_word=$2
3785echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'of5955dd2000-10-25 02:38:39 +00003786echo "configure:3787: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003787if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
3788 echo $ac_n "(cached) $ac_c" 1>&6
3789else
3790 if test -n "$STRIP"; then
3791 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3792else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003793 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3794 ac_dummy="$PATH"
3795 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003796 test -z "$ac_dir" && ac_dir=.
3797 if test -f $ac_dir/$ac_word; then
3798 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3799 break
3800 fi
3801 done
3802 IFS="$ac_save_ifs"
3803fi
3804fi
3805STRIP="$ac_cv_prog_STRIP"
3806if test -n "$STRIP"; then
3807 echo "$ac_t""$STRIP" 1>&6
3808else
3809 echo "$ac_t""no" 1>&6
3810fi
3811
3812
3813if test -z "$ac_cv_prog_STRIP"; then
3814if test -n "$ac_tool_prefix"; then
3815 # Extract the first word of "strip", so it can be a program name with args.
3816set dummy strip; ac_word=$2
3817echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'of5955dd2000-10-25 02:38:39 +00003818echo "configure:3819: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003819if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
3820 echo $ac_n "(cached) $ac_c" 1>&6
3821else
3822 if test -n "$STRIP"; then
3823 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3824else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003825 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3826 ac_dummy="$PATH"
3827 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003828 test -z "$ac_dir" && ac_dir=.
3829 if test -f $ac_dir/$ac_word; then
3830 ac_cv_prog_STRIP="strip"
3831 break
3832 fi
3833 done
3834 IFS="$ac_save_ifs"
3835 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
3836fi
3837fi
3838STRIP="$ac_cv_prog_STRIP"
3839if test -n "$STRIP"; then
3840 echo "$ac_t""$STRIP" 1>&6
3841else
3842 echo "$ac_t""no" 1>&6
3843fi
3844
3845else
3846 STRIP=":"
3847fi
3848fi
3849
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003850# Find a good install program. We prefer a C program (faster),
3851# so one script is as good as another. But avoid the broken or
3852# incompatible versions:
3853# SysV /etc/install, /usr/sbin/install
3854# SunOS /usr/etc/install
3855# IRIX /sbin/install
3856# AIX /bin/install
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003857# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003858# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3859# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3860# ./install, which can be erroneously created by make from ./install.sh.
3861echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
Theodore Ts'of5955dd2000-10-25 02:38:39 +00003862echo "configure:3863: checking for a BSD compatible install" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003863if test -z "$INSTALL"; then
3864if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3865 echo $ac_n "(cached) $ac_c" 1>&6
3866else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003867 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003868 for ac_dir in $PATH; do
3869 # Account for people who put trailing slashes in PATH elements.
3870 case "$ac_dir/" in
3871 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3872 *)
3873 # OSF1 and SCO ODT 3.0 have their own names for install.
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003874 # Don't use installbsd from OSF since it installs stuff as root
3875 # by default.
3876 for ac_prog in ginstall scoinst install; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003877 if test -f $ac_dir/$ac_prog; then
3878 if test $ac_prog = install &&
3879 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3880 # AIX install. It has an incompatible calling convention.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003881 :
3882 else
3883 ac_cv_path_install="$ac_dir/$ac_prog -c"
3884 break 2
3885 fi
3886 fi
3887 done
3888 ;;
3889 esac
3890 done
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003891 IFS="$ac_save_IFS"
3892
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003893fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003894 if test "${ac_cv_path_install+set}" = set; then
3895 INSTALL="$ac_cv_path_install"
3896 else
3897 # As a last resort, use the slow shell script. We don't cache a
3898 # path for INSTALL within a source directory, because that will
3899 # break other packages using the cache if that directory is
3900 # removed, or if the path is relative.
3901 INSTALL="$ac_install_sh"
3902 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003903fi
3904echo "$ac_t""$INSTALL" 1>&6
3905
3906# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3907# It thinks the first close brace ends the variable substitution.
3908test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3909
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003910test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3911
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003912test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3913
Theodore Ts'o6c133521999-07-03 20:37:03 +00003914# See if we need a separate native compiler.
3915if test $cross_compiling = no; then
3916 BUILD_CC="$CC"
3917
3918else
3919 for ac_prog in gcc cc
3920do
3921# Extract the first word of "$ac_prog", so it can be a program name with args.
3922set dummy $ac_prog; ac_word=$2
3923echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'of5955dd2000-10-25 02:38:39 +00003924echo "configure:3925: checking for $ac_word" >&5
Theodore Ts'o6c133521999-07-03 20:37:03 +00003925if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
3926 echo $ac_n "(cached) $ac_c" 1>&6
3927else
3928 if test -n "$BUILD_CC"; then
3929 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3930else
3931 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3932 ac_dummy="$PATH"
3933 for ac_dir in $ac_dummy; do
3934 test -z "$ac_dir" && ac_dir=.
3935 if test -f $ac_dir/$ac_word; then
3936 ac_cv_prog_BUILD_CC="$ac_prog"
3937 break
3938 fi
3939 done
3940 IFS="$ac_save_ifs"
3941fi
3942fi
3943BUILD_CC="$ac_cv_prog_BUILD_CC"
3944if test -n "$BUILD_CC"; then
3945 echo "$ac_t""$BUILD_CC" 1>&6
3946else
3947 echo "$ac_t""no" 1>&6
3948fi
3949
3950test -n "$BUILD_CC" && break
3951done
3952
3953fi
Theodore Ts'oa2980712000-08-14 14:30:50 +00003954for 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/mount.h sys/sockio.h sys/time.h sys/stat.h sys/types.h net/if.h netinet/in.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003955do
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003956ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003957echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Theodore Ts'of5955dd2000-10-25 02:38:39 +00003958echo "configure:3959: checking for $ac_hdr" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003959if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3960 echo $ac_n "(cached) $ac_c" 1>&6
3961else
3962 cat > conftest.$ac_ext <<EOF
Theodore Ts'of5955dd2000-10-25 02:38:39 +00003963#line 3964 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003964#include "confdefs.h"
3965#include <$ac_hdr>
3966EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003967ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'of5955dd2000-10-25 02:38:39 +00003968{ (eval echo configure:3969: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003969ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003970if test -z "$ac_err"; then
3971 rm -rf conftest*
3972 eval "ac_cv_header_$ac_safe=yes"
3973else
3974 echo "$ac_err" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003975 echo "configure: failed program was:" >&5
3976 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003977 rm -rf conftest*
3978 eval "ac_cv_header_$ac_safe=no"
3979fi
3980rm -f conftest*
3981fi
3982if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3983 echo "$ac_t""yes" 1>&6
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003984 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003985 cat >> confdefs.h <<EOF
3986#define $ac_tr_hdr 1
3987EOF
3988
3989else
3990 echo "$ac_t""no" 1>&6
3991fi
3992done
3993
3994echo $ac_n "checking for vprintf""... $ac_c" 1>&6
Theodore Ts'of5955dd2000-10-25 02:38:39 +00003995echo "configure:3996: checking for vprintf" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003996if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
3997 echo $ac_n "(cached) $ac_c" 1>&6
3998else
3999 cat > conftest.$ac_ext <<EOF
Theodore Ts'of5955dd2000-10-25 02:38:39 +00004000#line 4001 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004001#include "confdefs.h"
4002/* System header to define __stub macros and hopefully few prototypes,
4003 which can conflict with char vprintf(); below. */
4004#include <assert.h>
4005/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004006/* We use char because int might match the return type of a gcc2
4007 builtin and then its argument prototype would still apply. */
4008char vprintf();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004009
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004010int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004011
4012/* The GNU C library defines this for functions which it implements
4013 to always fail with ENOSYS. Some functions are actually named
4014 something starting with __ and the normal name is an alias. */
4015#if defined (__stub_vprintf) || defined (__stub___vprintf)
4016choke me
4017#else
4018vprintf();
4019#endif
4020
4021; return 0; }
4022EOF
Theodore Ts'of5955dd2000-10-25 02:38:39 +00004023if { (eval echo configure:4024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004024 rm -rf conftest*
4025 eval "ac_cv_func_vprintf=yes"
4026else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004027 echo "configure: failed program was:" >&5
4028 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004029 rm -rf conftest*
4030 eval "ac_cv_func_vprintf=no"
4031fi
4032rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004033fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004034
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004035if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
4036 echo "$ac_t""yes" 1>&6
4037 cat >> confdefs.h <<\EOF
4038#define HAVE_VPRINTF 1
4039EOF
4040
4041else
4042 echo "$ac_t""no" 1>&6
4043fi
4044
4045if test "$ac_cv_func_vprintf" != yes; then
4046echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
Theodore Ts'of5955dd2000-10-25 02:38:39 +00004047echo "configure:4048: checking for _doprnt" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004048if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
4049 echo $ac_n "(cached) $ac_c" 1>&6
4050else
4051 cat > conftest.$ac_ext <<EOF
Theodore Ts'of5955dd2000-10-25 02:38:39 +00004052#line 4053 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004053#include "confdefs.h"
4054/* System header to define __stub macros and hopefully few prototypes,
4055 which can conflict with char _doprnt(); below. */
4056#include <assert.h>
4057/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004058/* We use char because int might match the return type of a gcc2
4059 builtin and then its argument prototype would still apply. */
4060char _doprnt();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004061
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004062int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004063
4064/* The GNU C library defines this for functions which it implements
4065 to always fail with ENOSYS. Some functions are actually named
4066 something starting with __ and the normal name is an alias. */
4067#if defined (__stub__doprnt) || defined (__stub____doprnt)
4068choke me
4069#else
4070_doprnt();
4071#endif
4072
4073; return 0; }
4074EOF
Theodore Ts'of5955dd2000-10-25 02:38:39 +00004075if { (eval echo configure:4076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004076 rm -rf conftest*
4077 eval "ac_cv_func__doprnt=yes"
4078else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004079 echo "configure: failed program was:" >&5
4080 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004081 rm -rf conftest*
4082 eval "ac_cv_func__doprnt=no"
4083fi
4084rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004085fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004086
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004087if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
4088 echo "$ac_t""yes" 1>&6
4089 cat >> confdefs.h <<\EOF
4090#define HAVE_DOPRNT 1
4091EOF
4092
4093else
4094 echo "$ac_t""no" 1>&6
4095fi
4096
4097fi
4098
4099echo $ac_n "checking whether struct dirent has a d_namlen field""... $ac_c" 1>&6
Theodore Ts'of5955dd2000-10-25 02:38:39 +00004100echo "configure:4101: checking whether struct dirent has a d_namlen field" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004101if eval "test \"`echo '$''{'e2fsprogs_cv_struct_d_namlen'+set}'`\" = set"; then
4102 echo $ac_n "(cached) $ac_c" 1>&6
4103else
4104 cat > conftest.$ac_ext <<EOF
Theodore Ts'of5955dd2000-10-25 02:38:39 +00004105#line 4106 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004106#include "confdefs.h"
4107#include <sys/types.h>
4108#include <dirent.h>
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004109int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004110struct dirent de; de.d_namlen = 0;
4111; return 0; }
4112EOF
Theodore Ts'of5955dd2000-10-25 02:38:39 +00004113if { (eval echo configure:4114: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004114 rm -rf conftest*
4115 e2fsprogs_cv_struct_d_namlen=yes
4116else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004117 echo "configure: failed program was:" >&5
4118 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004119 rm -rf conftest*
4120 e2fsprogs_cv_struct_d_namlen=no
4121fi
4122rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004123fi
4124
4125echo "$ac_t""$e2fsprogs_cv_struct_d_namlen" 1>&6
4126if test "$e2fsprogs_cv_struct_d_namlen" = yes; then
4127 cat >> confdefs.h <<\EOF
4128#define HAVE_DIRENT_NAMLEN 1
4129EOF
4130
4131fi
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00004132echo $ac_n "checking whether llseek declared in unistd.h""... $ac_c" 1>&6
Theodore Ts'of5955dd2000-10-25 02:38:39 +00004133echo "configure:4134: checking whether llseek declared in unistd.h" >&5
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00004134if eval "test \"`echo '$''{'e2fsprogs_cv_have_llseek_prototype'+set}'`\" = set"; then
4135 echo $ac_n "(cached) $ac_c" 1>&6
4136else
4137 cat > conftest.$ac_ext <<EOF
Theodore Ts'of5955dd2000-10-25 02:38:39 +00004138#line 4139 "configure"
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00004139#include "confdefs.h"
4140#include <unistd.h>
4141int main() {
4142extern int llseek(int);
4143; return 0; }
4144EOF
Theodore Ts'of5955dd2000-10-25 02:38:39 +00004145if { (eval echo configure:4146: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00004146 rm -rf conftest*
4147 e2fsprogs_cv_have_llseek_prototype=no
4148else
4149 echo "configure: failed program was:" >&5
4150 cat conftest.$ac_ext >&5
4151 rm -rf conftest*
4152 e2fsprogs_cv_have_llseek_prototype=yes
4153fi
4154rm -f conftest*
4155fi
4156
4157echo "$ac_t""$e2fsprogs_cv_have_llseek_prototype" 1>&6
4158if test "$e2fsprogs_cv_have_llseek_prototype" = yes; then
4159 cat >> confdefs.h <<\EOF
4160#define HAVE_LLSEEK_PROTOTYPE 1
4161EOF
4162
4163fi
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004164echo $ac_n "checking whether lseek64 declared in unistd.h""... $ac_c" 1>&6
Theodore Ts'of5955dd2000-10-25 02:38:39 +00004165echo "configure:4166: checking whether lseek64 declared in unistd.h" >&5
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004166if eval "test \"`echo '$''{'e2fsprogs_cv_have_lseek64_prototype'+set}'`\" = set"; then
4167 echo $ac_n "(cached) $ac_c" 1>&6
4168else
4169 cat > conftest.$ac_ext <<EOF
Theodore Ts'of5955dd2000-10-25 02:38:39 +00004170#line 4171 "configure"
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004171#include "confdefs.h"
4172#define _LARGEFILE_SOURCE
4173#define _LARGEFILE64_SOURCE
4174#include <unistd.h>
4175int main() {
4176extern int lseek64(int);
4177; return 0; }
4178EOF
Theodore Ts'of5955dd2000-10-25 02:38:39 +00004179if { (eval echo configure:4180: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004180 rm -rf conftest*
4181 e2fsprogs_cv_have_lseek64_prototype=no
4182else
4183 echo "configure: failed program was:" >&5
4184 cat conftest.$ac_ext >&5
4185 rm -rf conftest*
4186 e2fsprogs_cv_have_lseek64_prototype=yes
4187fi
4188rm -f conftest*
4189fi
4190
4191echo "$ac_t""$e2fsprogs_cv_have_lseek64_prototype" 1>&6
4192if test "$e2fsprogs_cv_have_lseek64_prototype" = yes; then
4193 cat >> confdefs.h <<\EOF
4194#define HAVE_LSEEK64_PROTOTYPE 1
4195EOF
4196
4197fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004198if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
4199 # if cross-compiling, with no cached values, just assume something common.
4200 ac_cv_sizeof_short=2
4201 ac_cv_sizeof_int=4
4202 ac_cv_sizeof_long=4
Theodore Ts'o6c133521999-07-03 20:37:03 +00004203 ac_cv_sizeof_long_long=8
4204 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 +00004205fi
4206echo $ac_n "checking size of short""... $ac_c" 1>&6
Theodore Ts'of5955dd2000-10-25 02:38:39 +00004207echo "configure:4208: checking size of short" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004208if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
4209 echo $ac_n "(cached) $ac_c" 1>&6
4210else
4211 if test "$cross_compiling" = yes; then
4212 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4213else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004214 cat > conftest.$ac_ext <<EOF
Theodore Ts'of5955dd2000-10-25 02:38:39 +00004215#line 4216 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004216#include "confdefs.h"
4217#include <stdio.h>
4218main()
4219{
4220 FILE *f=fopen("conftestval", "w");
4221 if (!f) exit(1);
4222 fprintf(f, "%d\n", sizeof(short));
4223 exit(0);
4224}
4225EOF
Theodore Ts'of5955dd2000-10-25 02:38:39 +00004226if { (eval echo configure:4227: \"$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 +00004227then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004228 ac_cv_sizeof_short=`cat conftestval`
4229else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004230 echo "configure: failed program was:" >&5
4231 cat conftest.$ac_ext >&5
4232 rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004233 ac_cv_sizeof_short=0
4234fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004235rm -fr conftest*
4236fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004237
4238fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004239echo "$ac_t""$ac_cv_sizeof_short" 1>&6
4240cat >> confdefs.h <<EOF
4241#define SIZEOF_SHORT $ac_cv_sizeof_short
4242EOF
4243
4244
4245echo $ac_n "checking size of int""... $ac_c" 1>&6
Theodore Ts'of5955dd2000-10-25 02:38:39 +00004246echo "configure:4247: checking size of int" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004247if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
4248 echo $ac_n "(cached) $ac_c" 1>&6
4249else
4250 if test "$cross_compiling" = yes; then
4251 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4252else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004253 cat > conftest.$ac_ext <<EOF
Theodore Ts'of5955dd2000-10-25 02:38:39 +00004254#line 4255 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004255#include "confdefs.h"
4256#include <stdio.h>
4257main()
4258{
4259 FILE *f=fopen("conftestval", "w");
4260 if (!f) exit(1);
4261 fprintf(f, "%d\n", sizeof(int));
4262 exit(0);
4263}
4264EOF
Theodore Ts'of5955dd2000-10-25 02:38:39 +00004265if { (eval echo configure:4266: \"$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 +00004266then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004267 ac_cv_sizeof_int=`cat conftestval`
4268else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004269 echo "configure: failed program was:" >&5
4270 cat conftest.$ac_ext >&5
4271 rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004272 ac_cv_sizeof_int=0
4273fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004274rm -fr conftest*
4275fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004276
4277fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004278echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4279cat >> confdefs.h <<EOF
4280#define SIZEOF_INT $ac_cv_sizeof_int
4281EOF
4282
4283
4284echo $ac_n "checking size of long""... $ac_c" 1>&6
Theodore Ts'of5955dd2000-10-25 02:38:39 +00004285echo "configure:4286: checking size of long" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004286if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
4287 echo $ac_n "(cached) $ac_c" 1>&6
4288else
4289 if test "$cross_compiling" = yes; then
4290 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4291else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004292 cat > conftest.$ac_ext <<EOF
Theodore Ts'of5955dd2000-10-25 02:38:39 +00004293#line 4294 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004294#include "confdefs.h"
4295#include <stdio.h>
4296main()
4297{
4298 FILE *f=fopen("conftestval", "w");
4299 if (!f) exit(1);
4300 fprintf(f, "%d\n", sizeof(long));
4301 exit(0);
4302}
4303EOF
Theodore Ts'of5955dd2000-10-25 02:38:39 +00004304if { (eval echo configure:4305: \"$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 +00004305then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004306 ac_cv_sizeof_long=`cat conftestval`
4307else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004308 echo "configure: failed program was:" >&5
4309 cat conftest.$ac_ext >&5
4310 rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004311 ac_cv_sizeof_long=0
4312fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004313rm -fr conftest*
4314fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004315
4316fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004317echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4318cat >> confdefs.h <<EOF
4319#define SIZEOF_LONG $ac_cv_sizeof_long
4320EOF
4321
4322
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004323echo $ac_n "checking size of long long""... $ac_c" 1>&6
Theodore Ts'of5955dd2000-10-25 02:38:39 +00004324echo "configure:4325: checking size of long long" >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004325if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
4326 echo $ac_n "(cached) $ac_c" 1>&6
4327else
4328 if test "$cross_compiling" = yes; then
4329 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4330else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004331 cat > conftest.$ac_ext <<EOF
Theodore Ts'of5955dd2000-10-25 02:38:39 +00004332#line 4333 "configure"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004333#include "confdefs.h"
4334#include <stdio.h>
4335main()
4336{
4337 FILE *f=fopen("conftestval", "w");
4338 if (!f) exit(1);
4339 fprintf(f, "%d\n", sizeof(long long));
4340 exit(0);
4341}
4342EOF
Theodore Ts'of5955dd2000-10-25 02:38:39 +00004343if { (eval echo configure:4344: \"$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 +00004344then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004345 ac_cv_sizeof_long_long=`cat conftestval`
4346else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004347 echo "configure: failed program was:" >&5
4348 cat conftest.$ac_ext >&5
4349 rm -fr conftest*
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004350 ac_cv_sizeof_long_long=0
4351fi
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004352rm -fr conftest*
4353fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004354
4355fi
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004356echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4357cat >> confdefs.h <<EOF
4358#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4359EOF
4360
4361
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004362SIZEOF_SHORT=$ac_cv_sizeof_short
4363SIZEOF_INT=$ac_cv_sizeof_int
4364SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004365SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
4366
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004367
4368
4369
4370echo $ac_n "checking whether struct stat has a st_flags field""... $ac_c" 1>&6
Theodore Ts'of5955dd2000-10-25 02:38:39 +00004371echo "configure:4372: checking whether struct stat has a st_flags field" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004372if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags'+set}'`\" = set"; then
4373 echo $ac_n "(cached) $ac_c" 1>&6
4374else
4375 cat > conftest.$ac_ext <<EOF
Theodore Ts'of5955dd2000-10-25 02:38:39 +00004376#line 4377 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004377#include "confdefs.h"
4378#include <sys/stat.h>
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004379int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004380struct stat stat; stat.st_flags = 0;
4381; return 0; }
4382EOF
Theodore Ts'of5955dd2000-10-25 02:38:39 +00004383if { (eval echo configure:4384: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004384 rm -rf conftest*
4385 e2fsprogs_cv_struct_st_flags=yes
4386else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004387 echo "configure: failed program was:" >&5
4388 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004389 rm -rf conftest*
4390 e2fsprogs_cv_struct_st_flags=no
4391fi
4392rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004393fi
4394
4395echo "$ac_t""$e2fsprogs_cv_struct_st_flags" 1>&6
4396if test "$e2fsprogs_cv_struct_st_flags" = yes; then
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00004397 echo $ac_n "checking whether st_flags field is useful""... $ac_c" 1>&6
Theodore Ts'of5955dd2000-10-25 02:38:39 +00004398echo "configure:4399: checking whether st_flags field is useful" >&5
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00004399 if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags_immut'+set}'`\" = set"; then
4400 echo $ac_n "(cached) $ac_c" 1>&6
4401else
4402 cat > conftest.$ac_ext <<EOF
Theodore Ts'of5955dd2000-10-25 02:38:39 +00004403#line 4404 "configure"
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00004404#include "confdefs.h"
4405#include <sys/stat.h>
4406int main() {
4407struct stat stat; stat.st_flags |= UF_IMMUTABLE;
4408; return 0; }
4409EOF
Theodore Ts'of5955dd2000-10-25 02:38:39 +00004410if { (eval echo configure:4411: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00004411 rm -rf conftest*
4412 e2fsprogs_cv_struct_st_flags_immut=yes
4413else
4414 echo "configure: failed program was:" >&5
4415 cat conftest.$ac_ext >&5
4416 rm -rf conftest*
4417 e2fsprogs_cv_struct_st_flags_immut=no
4418fi
4419rm -f conftest*
4420fi
4421
4422 echo "$ac_t""$e2fsprogs_cv_struct_st_flags_immut" 1>&6
4423 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
4424 cat >> confdefs.h <<\EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004425#define HAVE_STAT_FLAGS 1
4426EOF
4427
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00004428 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004429fi
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004430for ac_func in chflags getrusage llseek lseek64 open64 strdup getmntinfo strcasecmp srandom fchown mallinfo fdatasync
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004431do
4432echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'of5955dd2000-10-25 02:38:39 +00004433echo "configure:4434: checking for $ac_func" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004434if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4435 echo $ac_n "(cached) $ac_c" 1>&6
4436else
4437 cat > conftest.$ac_ext <<EOF
Theodore Ts'of5955dd2000-10-25 02:38:39 +00004438#line 4439 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004439#include "confdefs.h"
4440/* System header to define __stub macros and hopefully few prototypes,
4441 which can conflict with char $ac_func(); below. */
4442#include <assert.h>
4443/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004444/* We use char because int might match the return type of a gcc2
4445 builtin and then its argument prototype would still apply. */
4446char $ac_func();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004447
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004448int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004449
4450/* The GNU C library defines this for functions which it implements
4451 to always fail with ENOSYS. Some functions are actually named
4452 something starting with __ and the normal name is an alias. */
4453#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4454choke me
4455#else
4456$ac_func();
4457#endif
4458
4459; return 0; }
4460EOF
Theodore Ts'of5955dd2000-10-25 02:38:39 +00004461if { (eval echo configure:4462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004462 rm -rf conftest*
4463 eval "ac_cv_func_$ac_func=yes"
4464else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004465 echo "configure: failed program was:" >&5
4466 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004467 rm -rf conftest*
4468 eval "ac_cv_func_$ac_func=no"
4469fi
4470rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004471fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004472
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004473if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4474 echo "$ac_t""yes" 1>&6
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004475 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004476 cat >> confdefs.h <<EOF
4477#define $ac_tr_func 1
4478EOF
4479
4480else
4481 echo "$ac_t""no" 1>&6
4482fi
4483done
4484
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004485echo $ac_n "checking ino_t defined by sys/types.h""... $ac_c" 1>&6
Theodore Ts'of5955dd2000-10-25 02:38:39 +00004486echo "configure:4487: checking ino_t defined by sys/types.h" >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004487if eval "test \"`echo '$''{'e2fsprogs_cv_ino_t'+set}'`\" = set"; then
4488 echo $ac_n "(cached) $ac_c" 1>&6
4489else
4490 cat > conftest.$ac_ext <<EOF
Theodore Ts'of5955dd2000-10-25 02:38:39 +00004491#line 4492 "configure"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004492#include "confdefs.h"
4493#include <sys/types.h>
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004494int main() {
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004495ino_t ino; ino = 0;
4496; return 0; }
4497EOF
Theodore Ts'of5955dd2000-10-25 02:38:39 +00004498if { (eval echo configure:4499: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004499 rm -rf conftest*
4500 e2fsprogs_cv_ino_t=yes
4501else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004502 echo "configure: failed program was:" >&5
4503 cat conftest.$ac_ext >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004504 rm -rf conftest*
4505 e2fsprogs_cv_ino_t=no
4506fi
4507rm -f conftest*
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004508fi
4509
4510echo "$ac_t""$e2fsprogs_cv_ino_t" 1>&6
4511if test "$e2fsprogs_cv_ino_t" = yes; then
4512 cat >> confdefs.h <<\EOF
4513#define HAVE_INO_T 1
4514EOF
4515
4516fi
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004517SOCKET_LIB=''
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004518echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
Theodore Ts'of5955dd2000-10-25 02:38:39 +00004519echo "configure:4520: checking for socket in -lsocket" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004520ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
4521if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004522 echo $ac_n "(cached) $ac_c" 1>&6
4523else
4524 ac_save_LIBS="$LIBS"
4525LIBS="-lsocket $LIBS"
4526cat > conftest.$ac_ext <<EOF
Theodore Ts'of5955dd2000-10-25 02:38:39 +00004527#line 4528 "configure"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004528#include "confdefs.h"
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004529/* Override any gcc2 internal prototype to avoid an error. */
4530/* We use char because int might match the return type of a gcc2
4531 builtin and then its argument prototype would still apply. */
4532char socket();
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004533
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004534int main() {
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004535socket()
4536; return 0; }
4537EOF
Theodore Ts'of5955dd2000-10-25 02:38:39 +00004538if { (eval echo configure:4539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004539 rm -rf conftest*
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004540 eval "ac_cv_lib_$ac_lib_var=yes"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004541else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004542 echo "configure: failed program was:" >&5
4543 cat conftest.$ac_ext >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004544 rm -rf conftest*
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004545 eval "ac_cv_lib_$ac_lib_var=no"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004546fi
4547rm -f conftest*
4548LIBS="$ac_save_LIBS"
4549
4550fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004551if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004552 echo "$ac_t""yes" 1>&6
4553 SOCKET_LIB=-lsocket
4554else
4555 echo "$ac_t""no" 1>&6
4556fi
4557
4558
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004559echo $ac_n "checking for optreset""... $ac_c" 1>&6
Theodore Ts'of5955dd2000-10-25 02:38:39 +00004560echo "configure:4561: checking for optreset" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004561if eval "test \"`echo '$''{'ac_cv_have_optreset'+set}'`\" = set"; then
4562 echo $ac_n "(cached) $ac_c" 1>&6
4563else
4564 cat > conftest.$ac_ext <<EOF
Theodore Ts'of5955dd2000-10-25 02:38:39 +00004565#line 4566 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004566#include "confdefs.h"
4567#include <unistd.h>
4568EOF
4569if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4570 egrep "optreset" >/dev/null 2>&1; then
4571 rm -rf conftest*
4572 ac_cv_have_optreset=yes
4573else
4574 rm -rf conftest*
4575 ac_cv_have_optreset=no
4576fi
4577rm -f conftest*
4578
4579fi
4580echo "$ac_t""$ac_cv_have_optreset" 1>&6
4581if test $ac_cv_have_optreset = yes; then
4582 cat >> confdefs.h <<\EOF
4583#define HAVE_OPTRESET 1
4584EOF
4585
4586fi
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +00004587case "$host_os" in
4588linux*)
4589 cat >> confdefs.h <<\EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004590#define HAVE_EXT2_IOCTLS 1
4591EOF
4592
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +00004593 ;;
4594esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004595case "$host_os" in
Theodore Ts'o6c133521999-07-03 20:37:03 +00004596linux* | gnu*)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004597 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
4598 root_prefix="";
4599 echo "On $host_os systems, root_prefix defaults to ''"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004600 fi
4601 ;;
4602esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004603case "$host_os" in
4604linux* | gnu*)
4605 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004606 prefix="/usr";
4607 echo "On $host_os systems, prefix defaults to /usr"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004608 fi
4609;;
4610esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004611if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +00004612 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004613 root_prefix="$ac_default_prefix"
4614 else
4615 root_prefix="$prefix"
4616 fi
4617fi
4618
Theodore Ts'oae851481997-04-29 18:13:24 +00004619echo $ac_n "checking whether linker accepts -static""... $ac_c" 1>&6
Theodore Ts'of5955dd2000-10-25 02:38:39 +00004620echo "configure:4621: checking whether linker accepts -static" >&5
Theodore Ts'oae851481997-04-29 18:13:24 +00004621if eval "test \"`echo '$''{'ac_cv_e2fsprogs_use_static'+set}'`\" = set"; then
4622 echo $ac_n "(cached) $ac_c" 1>&6
4623else
4624 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
4625cat > conftest.$ac_ext <<EOF
Theodore Ts'of5955dd2000-10-25 02:38:39 +00004626#line 4627 "configure"
Theodore Ts'oae851481997-04-29 18:13:24 +00004627#include "confdefs.h"
4628#include <stdio.h>
4629int main() {
4630fflush(stdout);
4631; return 0; }
4632EOF
Theodore Ts'of5955dd2000-10-25 02:38:39 +00004633if { (eval echo configure:4634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oae851481997-04-29 18:13:24 +00004634 rm -rf conftest*
4635 ac_cv_e2fsprogs_use_static=yes
4636else
4637 echo "configure: failed program was:" >&5
4638 cat conftest.$ac_ext >&5
4639 rm -rf conftest*
4640 ac_cv_e2fsprogs_use_static=no
4641fi
4642rm -f conftest*
4643LDFLAGS=$SAVE_LDFLAGS
4644fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004645
Theodore Ts'odefde781999-01-04 07:39:19 +00004646case "$host_os" in
4647solaris2.*)
4648 ac_cv_e2fsprogs_use_static=no
4649;;
4650esac
Theodore Ts'oae851481997-04-29 18:13:24 +00004651echo "$ac_t""$ac_cv_e2fsprogs_use_static" 1>&6
Theodore Ts'o74becf31997-04-26 14:37:06 +00004652LDFLAG_STATIC=
Theodore Ts'oae851481997-04-29 18:13:24 +00004653if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004654 LDFLAG_STATIC=-static
Theodore Ts'oae851481997-04-29 18:13:24 +00004655fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004656
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004657SS_DIR=`cd ${srcdir}/lib/ss; pwd`
4658ET_DIR=`cd ${srcdir}/lib/et; pwd`
4659
4660
4661if test "$cross_compiling" = yes ; then
4662 DO_TEST_SUITE=
4663else
4664 DO_TEST_SUITE=check
4665fi
4666
4667test -d lib || mkdir lib
4668test -d include || mkdir include
4669test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +00004670test -d include/asm || mkdir include/asm
Theodore Ts'obc210071997-06-17 05:41:36 +00004671rmakefile=
4672if test -d ${srcdir}/resize ; then
4673 rmakefile=resize/Makefile
4674fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004675trap '' 1 2 15
4676cat > confcache <<\EOF
4677# This file is a shell script that caches the results of configure
4678# tests run on this system so they can be shared between configure
4679# scripts and configure runs. It is not useful on other systems.
4680# If it contains results you don't want to keep, you may remove or edit it.
4681#
4682# By default, configure uses ./config.cache as the cache file,
4683# creating it if it does not exist already. You can give configure
4684# the --cache-file=FILE option to use a different cache file; that is
4685# what configure does when it calls configure scripts in
4686# subdirectories, so they share the cache.
4687# Giving --cache-file=/dev/null disables caching, for debugging configure.
4688# config.status only pays attention to the cache file if you give it the
4689# --recheck option to rerun configure.
4690#
4691EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004692# The following way of writing the cache mishandles newlines in values,
4693# but we know of no workaround that is simple, portable, and efficient.
4694# So, don't put newlines in cache variables' values.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004695# Ultrix sh set writes to stderr and can't be redirected directly,
4696# and sets the high bit in the cache file unless we assign to the vars.
4697(set) 2>&1 |
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004698 case `(ac_space=' '; set | grep ac_space) 2>&1` in
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004699 *ac_space=\ *)
4700 # `set' does not quote correctly, so add quotes (double-quote substitution
4701 # turns \\\\ into \\, and sed turns \\ into \).
4702 sed -n \
4703 -e "s/'/'\\\\''/g" \
4704 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4705 ;;
4706 *)
4707 # `set' quotes correctly as required by POSIX, so do not add quotes.
4708 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4709 ;;
4710 esac >> confcache
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004711if cmp -s $cache_file confcache; then
4712 :
4713else
4714 if test -w $cache_file; then
4715 echo "updating cache $cache_file"
4716 cat confcache > $cache_file
4717 else
4718 echo "not updating unwritable cache $cache_file"
4719 fi
4720fi
4721rm -f confcache
4722
4723trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4724
4725test "x$prefix" = xNONE && prefix=$ac_default_prefix
4726# Let make expand exec_prefix.
4727test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4728
4729# Any assignment to VPATH causes Sun make to only execute
4730# the first set of double-colon rules, so remove it if not needed.
4731# If there is a colon in the path, we need to keep it.
4732if test "x$srcdir" = x.; then
4733 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4734fi
4735
4736trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4737
4738# Transform confdefs.h into DEFS.
4739# Protect against shell expansion while executing Makefile rules.
4740# Protect against Makefile macro expansion.
4741cat > conftest.defs <<\EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004742s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004743s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
4744s%\[%\\&%g
4745s%\]%\\&%g
4746s%\$%$$%g
4747EOF
4748DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
4749rm -f conftest.defs
4750
4751
4752# Without the "./", some shells look in PATH for config.status.
4753: ${CONFIG_STATUS=./config.status}
4754
4755echo creating $CONFIG_STATUS
4756rm -f $CONFIG_STATUS
4757cat > $CONFIG_STATUS <<EOF
4758#! /bin/sh
4759# Generated automatically by configure.
4760# Run this file to recreate the current configuration.
4761# This directory was configured as follows,
4762# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4763#
4764# $0 $ac_configure_args
4765#
4766# Compiler output produced by configure, useful for debugging
4767# configure, is in ./config.log if it exists.
4768
4769ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4770for ac_option
4771do
4772 case "\$ac_option" in
4773 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4774 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4775 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4776 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004777 echo "$CONFIG_STATUS generated by autoconf version 2.13"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004778 exit 0 ;;
4779 -help | --help | --hel | --he | --h)
4780 echo "\$ac_cs_usage"; exit 0 ;;
4781 *) echo "\$ac_cs_usage"; exit 1 ;;
4782 esac
4783done
4784
4785ac_given_srcdir=$srcdir
4786ac_given_INSTALL="$INSTALL"
4787
Theodore Ts'o44339bd1997-10-15 02:47:20 +00004788trap 'rm -fr `echo "MCONFIG Makefile util/Makefile util/subst.conf lib/et/Makefile
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004789 lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile lib/uuid/Makefile
4790 misc/Makefile e2fsck/Makefile debugfs/Makefile tests/Makefile
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004791 tests/progs/Makefile $rmakefile doc/Makefile
4792 intl/Makefile po/Makefile.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004793EOF
4794cat >> $CONFIG_STATUS <<EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004795
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004796# Protect against being on the right side of a sed subst in config.status.
4797sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4798 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004799$ac_vpsub
4800$extrasub
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004801s%@SHELL@%$SHELL%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004802s%@CFLAGS@%$CFLAGS%g
4803s%@CPPFLAGS@%$CPPFLAGS%g
4804s%@CXXFLAGS@%$CXXFLAGS%g
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004805s%@FFLAGS@%$FFLAGS%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004806s%@DEFS@%$DEFS%g
4807s%@LDFLAGS@%$LDFLAGS%g
4808s%@LIBS@%$LIBS%g
4809s%@exec_prefix@%$exec_prefix%g
4810s%@prefix@%$prefix%g
4811s%@program_transform_name@%$program_transform_name%g
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004812s%@bindir@%$bindir%g
4813s%@sbindir@%$sbindir%g
4814s%@libexecdir@%$libexecdir%g
4815s%@datadir@%$datadir%g
4816s%@sysconfdir@%$sysconfdir%g
4817s%@sharedstatedir@%$sharedstatedir%g
4818s%@localstatedir@%$localstatedir%g
4819s%@libdir@%$libdir%g
4820s%@includedir@%$includedir%g
4821s%@oldincludedir@%$oldincludedir%g
4822s%@infodir@%$infodir%g
4823s%@mandir@%$mandir%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004824/@MCONFIG@/r $MCONFIG
4825s%@MCONFIG@%%g
Theodore Ts'o74becf31997-04-26 14:37:06 +00004826s%@E2FSPROGS_YEAR@%$E2FSPROGS_YEAR%g
4827s%@E2FSPROGS_MONTH@%$E2FSPROGS_MONTH%g
4828s%@E2FSPROGS_VERSION@%$E2FSPROGS_VERSION%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004829s%@host@%$host%g
4830s%@host_alias@%$host_alias%g
4831s%@host_cpu@%$host_cpu%g
4832s%@host_vendor@%$host_vendor%g
4833s%@host_os@%$host_os%g
Theodore Ts'o74becf31997-04-26 14:37:06 +00004834s%@CC@%$CC%g
4835s%@LD@%$LD%g
4836s%@CCOPTS@%$CCOPTS%g
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004837s%@CPP@%$CPP%g
4838s%@LINUX_INCLUDE@%$LINUX_INCLUDE%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004839s%@DLL_CMT@%$DLL_CMT%g
4840/@MAKEFILE_DLL@/r $MAKEFILE_DLL
4841s%@MAKEFILE_DLL@%%g
4842s%@ELF_CMT@%$ELF_CMT%g
4843/@MAKEFILE_ELF@/r $MAKEFILE_ELF
4844s%@MAKEFILE_ELF@%%g
4845s%@BSDLIB_CMT@%$BSDLIB_CMT%g
4846/@MAKEFILE_BSDLIB@/r $MAKEFILE_BSDLIB
4847s%@MAKEFILE_BSDLIB@%%g
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004848s%@PACKAGE@%$PACKAGE%g
4849s%@VERSION@%$VERSION%g
4850s%@SET_MAKE@%$SET_MAKE%g
4851s%@RANLIB@%$RANLIB%g
4852s%@ALLOCA@%$ALLOCA%g
4853s%@USE_NLS@%$USE_NLS%g
4854s%@MSGFMT@%$MSGFMT%g
4855s%@GMSGFMT@%$GMSGFMT%g
4856s%@XGETTEXT@%$XGETTEXT%g
4857s%@GENCAT@%$GENCAT%g
4858s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
4859s%@CATALOGS@%$CATALOGS%g
4860s%@CATOBJEXT@%$CATOBJEXT%g
4861s%@DATADIRNAME@%$DATADIRNAME%g
4862s%@GMOFILES@%$GMOFILES%g
4863s%@INSTOBJEXT@%$INSTOBJEXT%g
4864s%@INTLDEPS@%$INTLDEPS%g
4865s%@INTLLIBS@%$INTLLIBS%g
4866s%@INTLOBJS@%$INTLOBJS%g
4867s%@POFILES@%$POFILES%g
4868s%@POSUB@%$POSUB%g
4869s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
4870s%@GT_NO@%$GT_NO%g
4871s%@GT_YES@%$GT_YES%g
4872s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
4873s%@l@%$l%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004874s%@PROFILE_CMT@%$PROFILE_CMT%g
4875/@MAKEFILE_PROFILE@/r $MAKEFILE_PROFILE
4876s%@MAKEFILE_PROFILE@%%g
4877s%@CHECKER_CMT@%$CHECKER_CMT%g
4878/@MAKEFILE_CHECKER@/r $MAKEFILE_CHECKER
4879s%@MAKEFILE_CHECKER@%%g
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004880s%@LIB_EXT@%$LIB_EXT%g
4881s%@STATIC_LIB_EXT@%$STATIC_LIB_EXT%g
4882s%@PROFILED_LIB_EXT@%$PROFILED_LIB_EXT%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004883s%@W@%$W%g
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004884s%@E2FSCK_TYPE@%$E2FSCK_TYPE%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004885s%@FSCK_PROG@%$FSCK_PROG%g
4886s%@FSCK_MAN@%$FSCK_MAN%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004887/@MAKEFILE_LIBRARY@/r $MAKEFILE_LIBRARY
4888s%@MAKEFILE_LIBRARY@%%g
Theodore Ts'o74becf31997-04-26 14:37:06 +00004889s%@BINARY_TYPE@%$BINARY_TYPE%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004890s%@LN@%$LN%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004891s%@LN_S@%$LN_S%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004892s%@MV@%$MV%g
4893s%@CP@%$CP%g
4894s%@RM@%$RM%g
4895s%@CHMOD@%$CHMOD%g
4896s%@AWK@%$AWK%g
4897s%@SED@%$SED%g
Theodore Ts'o9d564f71999-07-03 20:25:58 +00004898s%@PERL@%$PERL%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004899s%@build@%$build%g
4900s%@build_alias@%$build_alias%g
4901s%@build_cpu@%$build_cpu%g
4902s%@build_vendor@%$build_vendor%g
4903s%@build_os@%$build_os%g
4904s%@AR@%$AR%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004905s%@STRIP@%$STRIP%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004906s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004907s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004908s%@INSTALL_DATA@%$INSTALL_DATA%g
Theodore Ts'o6c133521999-07-03 20:37:03 +00004909s%@BUILD_CC@%$BUILD_CC%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004910s%@SIZEOF_SHORT@%$SIZEOF_SHORT%g
4911s%@SIZEOF_INT@%$SIZEOF_INT%g
4912s%@SIZEOF_LONG@%$SIZEOF_LONG%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004913s%@SIZEOF_LONG_LONG@%$SIZEOF_LONG_LONG%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004914s%@SOCKET_LIB@%$SOCKET_LIB%g
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004915s%@root_prefix@%$root_prefix%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004916s%@LDFLAG_STATIC@%$LDFLAG_STATIC%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004917s%@SS_DIR@%$SS_DIR%g
4918s%@ET_DIR@%$ET_DIR%g
4919s%@DO_TEST_SUITE@%$DO_TEST_SUITE%g
4920
4921CEOF
4922EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004923
4924cat >> $CONFIG_STATUS <<\EOF
4925
4926# Split the substitutions into bite-sized pieces for seds with
4927# small command number limits, like on Digital OSF/1 and HP-UX.
4928ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4929ac_file=1 # Number of current file.
4930ac_beg=1 # First line for current file.
4931ac_end=$ac_max_sed_cmds # Line after last line for current file.
4932ac_more_lines=:
4933ac_sed_cmds=""
4934while $ac_more_lines; do
4935 if test $ac_beg -gt 1; then
4936 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4937 else
4938 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4939 fi
4940 if test ! -s conftest.s$ac_file; then
4941 ac_more_lines=false
4942 rm -f conftest.s$ac_file
4943 else
4944 if test -z "$ac_sed_cmds"; then
4945 ac_sed_cmds="sed -f conftest.s$ac_file"
4946 else
4947 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4948 fi
4949 ac_file=`expr $ac_file + 1`
4950 ac_beg=$ac_end
4951 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4952 fi
4953done
4954if test -z "$ac_sed_cmds"; then
4955 ac_sed_cmds=cat
4956fi
4957EOF
4958
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004959cat >> $CONFIG_STATUS <<EOF
4960
Theodore Ts'o44339bd1997-10-15 02:47:20 +00004961CONFIG_FILES=\${CONFIG_FILES-"MCONFIG Makefile util/Makefile util/subst.conf lib/et/Makefile
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004962 lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile lib/uuid/Makefile
4963 misc/Makefile e2fsck/Makefile debugfs/Makefile tests/Makefile
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004964 tests/progs/Makefile $rmakefile doc/Makefile
4965 intl/Makefile po/Makefile.in"}
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004966EOF
4967cat >> $CONFIG_STATUS <<\EOF
4968for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004969 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004970 case "$ac_file" in
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004971 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004972 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4973 *) ac_file_in="${ac_file}.in" ;;
4974 esac
4975
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004976 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004977
4978 # Remove last slash and all that follows it. Not all systems have dirname.
4979 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4980 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4981 # The file is in a subdirectory.
4982 test ! -d "$ac_dir" && mkdir "$ac_dir"
4983 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4984 # A "../" for each directory in $ac_dir_suffix.
4985 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4986 else
4987 ac_dir_suffix= ac_dots=
4988 fi
4989
4990 case "$ac_given_srcdir" in
4991 .) srcdir=.
4992 if test -z "$ac_dots"; then top_srcdir=.
4993 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4994 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4995 *) # Relative path.
4996 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4997 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4998 esac
4999
5000 case "$ac_given_INSTALL" in
5001 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5002 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5003 esac
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005004
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005005 echo creating "$ac_file"
5006 rm -f "$ac_file"
5007 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5008 case "$ac_file" in
5009 *Makefile*) ac_comsub="1i\\
5010# $configure_input" ;;
5011 *) ac_comsub= ;;
5012 esac
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005013
5014 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 +00005015 sed -e "$ac_comsub
5016s%@configure_input@%$configure_input%g
5017s%@srcdir@%$srcdir%g
5018s%@top_srcdir@%$top_srcdir%g
5019s%@INSTALL@%$INSTALL%g
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005020" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005021fi; done
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005022rm -f conftest.s*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005023
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005024EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005025
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005026cat >> $CONFIG_STATUS <<EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005027ac_sources="$nls_cv_header_libgt"
5028ac_dests="$nls_cv_header_intl"
5029EOF
5030
5031cat >> $CONFIG_STATUS <<\EOF
5032srcdir=$ac_given_srcdir
5033while test -n "$ac_sources"; do
5034 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
5035 set $ac_sources; ac_source=$1; shift; ac_sources=$*
5036
5037 echo "linking $srcdir/$ac_source to $ac_dest"
5038
5039 if test ! -r $srcdir/$ac_source; then
5040 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
5041 fi
5042 rm -f $ac_dest
5043
5044 # Make relative symlinks.
5045 # Remove last slash and all that follows it. Not all systems have dirname.
5046 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
5047 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
5048 # The dest file is in a subdirectory.
5049 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
5050 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
5051 # A "../" for each directory in $ac_dest_dir_suffix.
5052 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
5053 else
5054 ac_dest_dir_suffix= ac_dots=
5055 fi
5056
5057 case "$srcdir" in
5058 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
5059 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
5060 esac
5061
5062 # Make a symlink if possible; otherwise try a hard link.
5063 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
5064 ln $srcdir/$ac_source $ac_dest; then :
5065 else
5066 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
5067 fi
5068done
5069EOF
5070cat >> $CONFIG_STATUS <<EOF
5071
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005072
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005073EOF
5074cat >> $CONFIG_STATUS <<\EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005075case "$CONFIG_FILES" in *po/Makefile.in*)
5076 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
5077 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005078
5079exit 0
5080EOF
5081chmod +x $CONFIG_STATUS
5082rm -fr confdefs* $ac_clean_files
5083test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
5084