blob: ae185d8bf9c17c04f5a59b29f86db6fb1d7e0845 [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'od21ae6c2003-05-05 09:00:24 -040015 --with-diet-libc Use diet libc"
16ac_help="$ac_help
Theodore Ts'o74becf31997-04-26 14:37:06 +000017 --with-cc=COMPILER select compiler to use"
18ac_help="$ac_help
19 --with-linker=LINKER select linker to use"
20ac_help="$ac_help
21 --with-ccopts=CCOPTS select compiler command line options"
22ac_help="$ac_help
23 --with-ldopts=LDOPTS select linker command line options"
24ac_help="$ac_help
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000025 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000026ac_help="$ac_help
Theodore Ts'o19178752000-02-11 15:55:07 +000027 --enable-compression enable EXPERIMENTAL compression support"
28ac_help="$ac_help
Theodore Ts'o8fdc9982002-06-25 23:26:34 -040029 --enable-htree enable EXPERIMENTAL htree directory support"
30ac_help="$ac_help
31 --enable-htree-clear clear htree because we don't trust e2fsck"
32ac_help="$ac_help
Theodore Ts'od21ae6c2003-05-05 09:00:24 -040033 --disable-evms don't build EVMS plugin"
34ac_help="$ac_help
Theodore Ts'oa9d799a2002-11-08 13:50:51 -050035 --enable-evms-10 use EVMS 1.0 ABI (instead of EVMS 1.2)"
36ac_help="$ac_help
37 --enable-evms-11 use EVMS 1.1 ABI (instead of EVMS 1.1)"
Theodore Ts'off6dbcc2002-05-24 22:44:42 -040038ac_help="$ac_help
Theodore Ts'oa4d09611997-04-29 14:28:00 +000039 --enable-dll-shlibs select DLL libraries"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000040ac_help="$ac_help
Theodore Ts'oa4d09611997-04-29 14:28:00 +000041 --enable-elf-shlibs select ELF shared libraries"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000042ac_help="$ac_help
Theodore Ts'oa4d09611997-04-29 14:28:00 +000043 --enable-bsd-shlibs select BSD shared libraries"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000044ac_help="$ac_help
Theodore Ts'ocdf186e2001-06-13 22:16:47 +000045 --enable-profile build profiling libraries"
46ac_help="$ac_help
47 --enable-checker build checker libraries"
48ac_help="$ac_help
Theodore Ts'o782bebf2002-11-08 18:46:45 -050049 --enable-jbd-debug enable journal debugging"
Theodore Ts'o80bfaa32000-08-18 15:08:37 +000050ac_help="$ac_help
Theodore Ts'od21ae6c2003-05-05 09:00:24 -040051 --enable-blkid-debug enable blkid debugging"
Theodore Ts'of0a22d02003-02-22 13:19:53 -050052ac_help="$ac_help
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000053 --disable-swapfs disable support of legacy byte-swapped filesystems"
54ac_help="$ac_help
Theodore Ts'ocdf186e2001-06-13 22:16:47 +000055 --disable-debugfs disable support of debugfs program"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000056ac_help="$ac_help
Theodore Ts'ocdf186e2001-06-13 22:16:47 +000057 --disable-imager disable support of e2image program"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000058ac_help="$ac_help
Theodore Ts'ocdf186e2001-06-13 22:16:47 +000059 --disable-resizer disable support of e2resize program"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000060ac_help="$ac_help
Theodore Ts'oa4d09611997-04-29 14:28:00 +000061 --enable-dynamic-e2fsck build e2fsck dynamically"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000062ac_help="$ac_help
63 --enable-fsck build fsck wrapper program"
64ac_help="$ac_help
65 --enable-old-bitops Use old (non-standard but native) bitmask operations"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +000066ac_help="$ac_help
Theodore Ts'oa04eba32003-05-03 16:35:17 -040067 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
68ac_help="$ac_help
69 --disable-rpath do not hardcode runtime library paths"
70ac_help="$ac_help
71 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
72 --without-libiconv-prefix don't search for libiconv in includedir and libdir"
73ac_help="$ac_help
74 --disable-nls do not use Native Language Support"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +000075ac_help="$ac_help
76 --with-included-gettext use the GNU gettext library included here"
77ac_help="$ac_help
Theodore Ts'oa04eba32003-05-03 16:35:17 -040078 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
79 --without-libintl-prefix don't search for libintl in includedir and libdir"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000080
81# Initialize some variables set by options.
82# The variables have the same names as the options, with
83# dashes changed to underlines.
84build=NONE
85cache_file=./config.cache
86exec_prefix=NONE
87host=NONE
88no_create=
89nonopt=NONE
90no_recursion=
91prefix=NONE
92program_prefix=NONE
93program_suffix=NONE
94program_transform_name=s,x,x,
95silent=
96site=
97srcdir=
98target=NONE
99verbose=
100x_includes=NONE
101x_libraries=NONE
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000102bindir='${exec_prefix}/bin'
103sbindir='${exec_prefix}/sbin'
104libexecdir='${exec_prefix}/libexec'
105datadir='${prefix}/share'
106sysconfdir='${prefix}/etc'
107sharedstatedir='${prefix}/com'
108localstatedir='${prefix}/var'
109libdir='${exec_prefix}/lib'
110includedir='${prefix}/include'
111oldincludedir='/usr/include'
112infodir='${prefix}/info'
113mandir='${prefix}/man'
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000114
115# Initialize some other variables.
116subdirs=
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000117MFLAGS= MAKEFLAGS=
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000118SHELL=${CONFIG_SHELL-/bin/sh}
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000119# Maximum number of lines to put in a shell here document.
120ac_max_here_lines=12
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000121
122ac_prev=
123for ac_option
124do
125
126 # If the previous option needs an argument, assign it.
127 if test -n "$ac_prev"; then
128 eval "$ac_prev=\$ac_option"
129 ac_prev=
130 continue
131 fi
132
133 case "$ac_option" in
134 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
135 *) ac_optarg= ;;
136 esac
137
138 # Accept the important Cygnus configure options, so we can diagnose typos.
139
140 case "$ac_option" in
141
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000142 -bindir | --bindir | --bindi | --bind | --bin | --bi)
143 ac_prev=bindir ;;
144 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
145 bindir="$ac_optarg" ;;
146
147 -build | --build | --buil | --bui | --bu)
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000148 ac_prev=build ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000149 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000150 build="$ac_optarg" ;;
151
152 -cache-file | --cache-file | --cache-fil | --cache-fi \
153 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
154 ac_prev=cache_file ;;
155 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
156 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
157 cache_file="$ac_optarg" ;;
158
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000159 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
160 ac_prev=datadir ;;
161 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
162 | --da=*)
163 datadir="$ac_optarg" ;;
164
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000165 -disable-* | --disable-*)
166 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
167 # Reject names that are not valid shell variable names.
168 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
169 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
170 fi
171 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
172 eval "enable_${ac_feature}=no" ;;
173
174 -enable-* | --enable-*)
175 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
176 # Reject names that are not valid shell variable names.
177 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
178 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
179 fi
180 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
181 case "$ac_option" in
182 *=*) ;;
183 *) ac_optarg=yes ;;
184 esac
185 eval "enable_${ac_feature}='$ac_optarg'" ;;
186
187 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
188 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
189 | --exec | --exe | --ex)
190 ac_prev=exec_prefix ;;
191 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
192 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
193 | --exec=* | --exe=* | --ex=*)
194 exec_prefix="$ac_optarg" ;;
195
196 -gas | --gas | --ga | --g)
197 # Obsolete; use --with-gas.
198 with_gas=yes ;;
199
200 -help | --help | --hel | --he)
201 # Omit some internal or obsolete options to make the list less imposing.
202 # This message is too long to be a string in the A/UX 3.1 sh.
203 cat << EOF
204Usage: configure [options] [host]
205Options: [defaults in brackets after descriptions]
206Configuration:
207 --cache-file=FILE cache test results in FILE
208 --help print this message
209 --no-create do not create output files
210 --quiet, --silent do not print \`checking...' messages
211 --version print the version of autoconf that created configure
212Directory and file names:
213 --prefix=PREFIX install architecture-independent files in PREFIX
214 [$ac_default_prefix]
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000215 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000216 [same as prefix]
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000217 --bindir=DIR user executables in DIR [EPREFIX/bin]
218 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
219 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
220 --datadir=DIR read-only architecture-independent data in DIR
221 [PREFIX/share]
222 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
223 --sharedstatedir=DIR modifiable architecture-independent data in DIR
224 [PREFIX/com]
225 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
226 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
227 --includedir=DIR C header files in DIR [PREFIX/include]
228 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
229 --infodir=DIR info documentation in DIR [PREFIX/info]
230 --mandir=DIR man documentation in DIR [PREFIX/man]
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000231 --srcdir=DIR find the sources in DIR [configure dir or ..]
232 --program-prefix=PREFIX prepend PREFIX to installed program names
233 --program-suffix=SUFFIX append SUFFIX to installed program names
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000234 --program-transform-name=PROGRAM
235 run sed PROGRAM on installed program names
236EOF
237 cat << EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000238Host type:
239 --build=BUILD configure for building on BUILD [BUILD=HOST]
240 --host=HOST configure for HOST [guessed]
241 --target=TARGET configure for TARGET [TARGET=HOST]
242Features and packages:
243 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
244 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
245 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
246 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
247 --x-includes=DIR X include files are in DIR
248 --x-libraries=DIR X library files are in DIR
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000249EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000250 if test -n "$ac_help"; then
251 echo "--enable and --with options recognized:$ac_help"
252 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000253 exit 0 ;;
254
255 -host | --host | --hos | --ho)
256 ac_prev=host ;;
257 -host=* | --host=* | --hos=* | --ho=*)
258 host="$ac_optarg" ;;
259
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000260 -includedir | --includedir | --includedi | --included | --include \
261 | --includ | --inclu | --incl | --inc)
262 ac_prev=includedir ;;
263 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
264 | --includ=* | --inclu=* | --incl=* | --inc=*)
265 includedir="$ac_optarg" ;;
266
267 -infodir | --infodir | --infodi | --infod | --info | --inf)
268 ac_prev=infodir ;;
269 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
270 infodir="$ac_optarg" ;;
271
272 -libdir | --libdir | --libdi | --libd)
273 ac_prev=libdir ;;
274 -libdir=* | --libdir=* | --libdi=* | --libd=*)
275 libdir="$ac_optarg" ;;
276
277 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
278 | --libexe | --libex | --libe)
279 ac_prev=libexecdir ;;
280 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
281 | --libexe=* | --libex=* | --libe=*)
282 libexecdir="$ac_optarg" ;;
283
284 -localstatedir | --localstatedir | --localstatedi | --localstated \
285 | --localstate | --localstat | --localsta | --localst \
286 | --locals | --local | --loca | --loc | --lo)
287 ac_prev=localstatedir ;;
288 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
289 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
290 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
291 localstatedir="$ac_optarg" ;;
292
293 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
294 ac_prev=mandir ;;
295 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
296 mandir="$ac_optarg" ;;
297
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000298 -nfp | --nfp | --nf)
299 # Obsolete; use --without-fp.
300 with_fp=no ;;
301
302 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
303 | --no-cr | --no-c)
304 no_create=yes ;;
305
306 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
307 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
308 no_recursion=yes ;;
309
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000310 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
311 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
312 | --oldin | --oldi | --old | --ol | --o)
313 ac_prev=oldincludedir ;;
314 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
315 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
316 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
317 oldincludedir="$ac_optarg" ;;
318
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000319 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
320 ac_prev=prefix ;;
321 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
322 prefix="$ac_optarg" ;;
323
324 -program-prefix | --program-prefix | --program-prefi | --program-pref \
325 | --program-pre | --program-pr | --program-p)
326 ac_prev=program_prefix ;;
327 -program-prefix=* | --program-prefix=* | --program-prefi=* \
328 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
329 program_prefix="$ac_optarg" ;;
330
331 -program-suffix | --program-suffix | --program-suffi | --program-suff \
332 | --program-suf | --program-su | --program-s)
333 ac_prev=program_suffix ;;
334 -program-suffix=* | --program-suffix=* | --program-suffi=* \
335 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
336 program_suffix="$ac_optarg" ;;
337
338 -program-transform-name | --program-transform-name \
339 | --program-transform-nam | --program-transform-na \
340 | --program-transform-n | --program-transform- \
341 | --program-transform | --program-transfor \
342 | --program-transfo | --program-transf \
343 | --program-trans | --program-tran \
344 | --progr-tra | --program-tr | --program-t)
345 ac_prev=program_transform_name ;;
346 -program-transform-name=* | --program-transform-name=* \
347 | --program-transform-nam=* | --program-transform-na=* \
348 | --program-transform-n=* | --program-transform-=* \
349 | --program-transform=* | --program-transfor=* \
350 | --program-transfo=* | --program-transf=* \
351 | --program-trans=* | --program-tran=* \
352 | --progr-tra=* | --program-tr=* | --program-t=*)
353 program_transform_name="$ac_optarg" ;;
354
355 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
356 | -silent | --silent | --silen | --sile | --sil)
357 silent=yes ;;
358
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000359 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
360 ac_prev=sbindir ;;
361 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
362 | --sbi=* | --sb=*)
363 sbindir="$ac_optarg" ;;
364
365 -sharedstatedir | --sharedstatedir | --sharedstatedi \
366 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
367 | --sharedst | --shareds | --shared | --share | --shar \
368 | --sha | --sh)
369 ac_prev=sharedstatedir ;;
370 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
371 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
372 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
373 | --sha=* | --sh=*)
374 sharedstatedir="$ac_optarg" ;;
375
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000376 -site | --site | --sit)
377 ac_prev=site ;;
378 -site=* | --site=* | --sit=*)
379 site="$ac_optarg" ;;
380
381 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
382 ac_prev=srcdir ;;
383 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
384 srcdir="$ac_optarg" ;;
385
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000386 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
387 | --syscon | --sysco | --sysc | --sys | --sy)
388 ac_prev=sysconfdir ;;
389 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
390 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
391 sysconfdir="$ac_optarg" ;;
392
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000393 -target | --target | --targe | --targ | --tar | --ta | --t)
394 ac_prev=target ;;
395 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
396 target="$ac_optarg" ;;
397
398 -v | -verbose | --verbose | --verbos | --verbo | --verb)
399 verbose=yes ;;
400
401 -version | --version | --versio | --versi | --vers)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000402 echo "configure generated by autoconf version 2.13"
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000403 exit 0 ;;
404
405 -with-* | --with-*)
406 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
407 # Reject names that are not valid shell variable names.
408 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
409 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
410 fi
411 ac_package=`echo $ac_package| sed 's/-/_/g'`
412 case "$ac_option" in
413 *=*) ;;
414 *) ac_optarg=yes ;;
415 esac
416 eval "with_${ac_package}='$ac_optarg'" ;;
417
418 -without-* | --without-*)
419 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
420 # Reject names that are not valid shell variable names.
421 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
422 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
423 fi
424 ac_package=`echo $ac_package| sed 's/-/_/g'`
425 eval "with_${ac_package}=no" ;;
426
427 --x)
428 # Obsolete; use --with-x.
429 with_x=yes ;;
430
431 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
432 | --x-incl | --x-inc | --x-in | --x-i)
433 ac_prev=x_includes ;;
434 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
435 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
436 x_includes="$ac_optarg" ;;
437
438 -x-libraries | --x-libraries | --x-librarie | --x-librari \
439 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
440 ac_prev=x_libraries ;;
441 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
442 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
443 x_libraries="$ac_optarg" ;;
444
445 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
446 ;;
447
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000448 *)
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000449 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
450 echo "configure: warning: $ac_option: invalid host type" 1>&2
451 fi
452 if test "x$nonopt" != xNONE; then
453 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
454 fi
455 nonopt="$ac_option"
456 ;;
457
458 esac
459done
460
461if test -n "$ac_prev"; then
462 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
463fi
464
465trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
466
467# File descriptor usage:
468# 0 standard input
469# 1 file creation
470# 2 errors and warnings
471# 3 some systems may open it to /dev/tty
472# 4 used on the Kubota Titan
473# 6 checking for... messages and results
474# 5 compiler messages saved in config.log
475if test "$silent" = yes; then
476 exec 6>/dev/null
477else
478 exec 6>&1
479fi
480exec 5>./config.log
481
482echo "\
483This file contains any messages produced by compilers while
484running configure, to aid debugging if configure makes a mistake.
485" 1>&5
486
487# Strip out --no-create and --no-recursion so they do not pile up.
488# Also quote any args containing shell metacharacters.
489ac_configure_args=
490for ac_arg
491do
492 case "$ac_arg" in
493 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
494 | --no-cr | --no-c) ;;
495 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
496 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
497 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
498 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
499 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
500 esac
501done
502
503# NLS nuisances.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000504# Only set these to C if already set. These must not be set unconditionally
505# because not all systems understand e.g. LANG=C (notably SCO).
506# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
507# Non-C LC_CTYPE values break the ctype check.
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000508if test "${LANG+set}" = set; then LANG=C; export LANG; fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000509if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
510if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
511if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000512
513# confdefs.h avoids OS command line length limits that DEFS can exceed.
514rm -rf conftest* confdefs.h
515# AIX cpp loses on an empty file, so make sure it contains at least a newline.
516echo > confdefs.h
517
518# A filename unique to this package, relative to the directory that
519# configure is in, which we can look for to find out if srcdir is correct.
520ac_unique_file=version.h
521
522# Find the source files, if location was not specified.
523if test -z "$srcdir"; then
524 ac_srcdir_defaulted=yes
525 # Try the directory containing this script, then its parent.
526 ac_prog=$0
527 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
528 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
529 srcdir=$ac_confdir
530 if test ! -r $srcdir/$ac_unique_file; then
531 srcdir=..
532 fi
533else
534 ac_srcdir_defaulted=no
535fi
536if test ! -r $srcdir/$ac_unique_file; then
537 if test "$ac_srcdir_defaulted" = yes; then
538 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
539 else
540 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
541 fi
542fi
543srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
544
545# Prefer explicitly selected file to automatically selected ones.
546if test -z "$CONFIG_SITE"; then
547 if test "x$prefix" != xNONE; then
548 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
549 else
550 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
551 fi
552fi
553for ac_site_file in $CONFIG_SITE; do
554 if test -r "$ac_site_file"; then
555 echo "loading site script $ac_site_file"
556 . "$ac_site_file"
557 fi
558done
559
560if test -r "$cache_file"; then
561 echo "loading cache $cache_file"
562 . $cache_file
563else
564 echo "creating cache $cache_file"
565 > $cache_file
566fi
567
568ac_ext=c
569# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
570ac_cpp='$CPP $CPPFLAGS'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000571ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000572ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000573cross_compiling=$ac_cv_prog_cc_cross
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000574
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000575ac_exeext=
576ac_objext=o
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000577if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
578 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
579 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
580 ac_n= ac_c='
581' ac_t=' '
582 else
583 ac_n=-n ac_c= ac_t=
584 fi
585else
586 ac_n= ac_c='\c' ac_t=
587fi
588
Theodore Ts'oa04eba32003-05-03 16:35:17 -0400589# Check whether --with-gnu-ld or --without-gnu-ld was given.
590if test "${with_gnu_ld+set}" = set; then
591 withval="$with_gnu_ld"
592 test "$withval" = no || with_gnu_ld=yes
593else
594 with_gnu_ld=no
595fi
596
597ac_prog=ld
598if test "$GCC" = yes; then
599 # Check if gcc -print-prog-name=ld gives a path.
600 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -0400601echo "configure:602: checking for ld used by GCC" >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -0400602 case $host in
603 *-*-mingw*)
604 # gcc leaves a trailing carriage return which upsets mingw
605 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
606 *)
607 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
608 esac
609 case $ac_prog in
610 # Accept absolute paths.
611 [\\/]* | [A-Za-z]:[\\/]*)
612 re_direlt='/[^/][^/]*/\.\./'
613 # Canonicalize the path of ld
614 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
615 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
616 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
617 done
618 test -z "$LD" && LD="$ac_prog"
619 ;;
620 "")
621 # If it fails, then pretend we aren't using GCC.
622 ac_prog=ld
623 ;;
624 *)
625 # If it is relative, then search for the first ld in PATH.
626 with_gnu_ld=unknown
627 ;;
628 esac
629elif test "$with_gnu_ld" = yes; then
630 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -0400631echo "configure:632: checking for GNU ld" >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -0400632else
633 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -0400634echo "configure:635: checking for non-GNU ld" >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -0400635fi
636if eval "test \"`echo '$''{'acl_cv_path_LD'+set}'`\" = set"; then
637 echo $ac_n "(cached) $ac_c" 1>&6
638else
639 if test -z "$LD"; then
640 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
641 for ac_dir in $PATH; do
642 test -z "$ac_dir" && ac_dir=.
643 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
644 acl_cv_path_LD="$ac_dir/$ac_prog"
645 # Check to see if the program is GNU ld. I'd rather use --version,
646 # but apparently some GNU ld's only accept -v.
647 # Break only if it was the GNU/non-GNU ld that we prefer.
648 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
649 test "$with_gnu_ld" != no && break
650 else
651 test "$with_gnu_ld" != yes && break
652 fi
653 fi
654 done
655 IFS="$ac_save_ifs"
656else
657 acl_cv_path_LD="$LD" # Let the user override the test with a path.
658fi
659fi
660
661LD="$acl_cv_path_LD"
662if test -n "$LD"; then
663 echo "$ac_t""$LD" 1>&6
664else
665 echo "$ac_t""no" 1>&6
666fi
667test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
668echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -0400669echo "configure:670: checking if the linker ($LD) is GNU ld" >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -0400670if eval "test \"`echo '$''{'acl_cv_prog_gnu_ld'+set}'`\" = set"; then
671 echo $ac_n "(cached) $ac_c" 1>&6
672else
673 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
674if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
675 acl_cv_prog_gnu_ld=yes
676else
677 acl_cv_prog_gnu_ld=no
678fi
679fi
680
681echo "$ac_t""$acl_cv_prog_gnu_ld" 1>&6
682with_gnu_ld=$acl_cv_prog_gnu_ld
683
684
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000685
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +0000686
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000687MCONFIG=./MCONFIG
688
Theodore Ts'o74becf31997-04-26 14:37:06 +0000689BINARY_TYPE=bin
690E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
691 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
692DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
693 | tr \" " "`
Theodore Ts'obff0cc92003-03-23 01:37:53 -0500694E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
Theodore Ts'o74becf31997-04-26 14:37:06 +0000695MONTH=`echo $DATE | awk -F- '{print $2}'`
696YEAR=`echo $DATE | awk -F- '{print $3}'`
697
Theodore Ts'o14790ed1999-01-12 23:32:52 +0000698if expr $YEAR ">" 1900 > /dev/null ; then
699 E2FSPROGS_YEAR=$YEAR
700elif expr $YEAR ">" 90 >/dev/null ; then
Theodore Ts'o74becf31997-04-26 14:37:06 +0000701 E2FSPROGS_YEAR=19$YEAR
702else
703 E2FSPROGS_YEAR=20$YEAR
704fi
705
706case $MONTH in
707Jan) E2FSPROGS_MONTH="January" ;;
708Feb) E2FSPROGS_MONTH="February" ;;
709Mar) E2FSPROGS_MONTH="March" ;;
710Apr) E2FSPROGS_MONTH="April" ;;
711May) E2FSPROGS_MONTH="May" ;;
712Jun) E2FSPROGS_MONTH="June" ;;
713Jul) E2FSPROGS_MONTH="July" ;;
714Aug) E2FSPROGS_MONTH="August" ;;
715Sep) E2FSPROGS_MONTH="September" ;;
716Oct) E2FSPROGS_MONTH="October" ;;
717Nov) E2FSPROGS_MONTH="November" ;;
718Dec) E2FSPROGS_MONTH="December" ;;
719*) echo "Unknown month $MONTH??" ;;
720esac
721
722unset DATE MONTH YEAR
723echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION"
724echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}"
725
726
727
Theodore Ts'obff0cc92003-03-23 01:37:53 -0500728
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000729ac_aux_dir=
730for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
731 if test -f $ac_dir/install-sh; then
732 ac_aux_dir=$ac_dir
733 ac_install_sh="$ac_aux_dir/install-sh -c"
734 break
735 elif test -f $ac_dir/install.sh; then
736 ac_aux_dir=$ac_dir
737 ac_install_sh="$ac_aux_dir/install.sh -c"
738 break
739 fi
740done
741if test -z "$ac_aux_dir"; then
742 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
743fi
744ac_config_guess=$ac_aux_dir/config.guess
745ac_config_sub=$ac_aux_dir/config.sub
746ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
747
748
749# Make sure we can run config.sub.
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000750if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000751else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
752fi
753
754echo $ac_n "checking host system type""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -0400755echo "configure:756: checking host system type" >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000756
757host_alias=$host
758case "$host_alias" in
759NONE)
760 case $nonopt in
761 NONE)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000762 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000763 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
764 fi ;;
765 *) host_alias=$nonopt ;;
766 esac ;;
767esac
768
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000769host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000770host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
771host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
772host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000773echo "$ac_t""$host" 1>&6
774
Theodore Ts'od21ae6c2003-05-05 09:00:24 -0400775EVMS_CMT=
776
777# Check whether --with-diet-libc or --without-diet-libc was given.
778if test "${with_diet_libc+set}" = set; then
779 withval="$with_diet_libc"
780 CC="diet cc -nostdinc"
781EVMS_CMT="#"
782echo "$ac_t""CC=$CC" 1>&6
783fi
Theodore Ts'o74becf31997-04-26 14:37:06 +0000784# Check whether --with-cc or --without-cc was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000785if test "${with_cc+set}" = set; then
786 withval="$with_cc"
Theodore Ts'o74becf31997-04-26 14:37:06 +0000787 echo "$ac_t""CC=$withval" 1>&6
788CC=$withval
789else
790 if test -z "$CC" ; then CC=cc; fi
791echo "$ac_t""CC defaults to $CC" 1>&6
792fi
793export CC
794
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000795# Extract the first word of "gcc", so it can be a program name with args.
796set dummy gcc; ac_word=$2
797echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -0400798echo "configure:799: checking for $ac_word" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000799if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
800 echo $ac_n "(cached) $ac_c" 1>&6
801else
802 if test -n "$CC"; then
803 ac_cv_prog_CC="$CC" # Let the user override the test.
804else
805 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
806 ac_dummy="$PATH"
807 for ac_dir in $ac_dummy; do
808 test -z "$ac_dir" && ac_dir=.
809 if test -f $ac_dir/$ac_word; then
810 ac_cv_prog_CC="gcc"
811 break
812 fi
813 done
814 IFS="$ac_save_ifs"
815fi
816fi
817CC="$ac_cv_prog_CC"
818if test -n "$CC"; then
819 echo "$ac_t""$CC" 1>&6
820else
821 echo "$ac_t""no" 1>&6
822fi
823
824if test -z "$CC"; then
825 # Extract the first word of "cc", so it can be a program name with args.
826set dummy cc; ac_word=$2
827echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -0400828echo "configure:829: checking for $ac_word" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000829if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
830 echo $ac_n "(cached) $ac_c" 1>&6
831else
832 if test -n "$CC"; then
833 ac_cv_prog_CC="$CC" # Let the user override the test.
834else
835 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
836 ac_prog_rejected=no
837 ac_dummy="$PATH"
838 for ac_dir in $ac_dummy; do
839 test -z "$ac_dir" && ac_dir=.
840 if test -f $ac_dir/$ac_word; then
841 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
842 ac_prog_rejected=yes
843 continue
844 fi
845 ac_cv_prog_CC="cc"
846 break
847 fi
848 done
849 IFS="$ac_save_ifs"
850if test $ac_prog_rejected = yes; then
851 # We found a bogon in the path, so make sure we never use it.
852 set dummy $ac_cv_prog_CC
853 shift
854 if test $# -gt 0; then
855 # We chose a different compiler from the bogus one.
856 # However, it has the same basename, so the bogon will be chosen
857 # first if we set CC to just the basename; use the full file name.
858 shift
859 set dummy "$ac_dir/$ac_word" "$@"
860 shift
861 ac_cv_prog_CC="$@"
862 fi
863fi
864fi
865fi
866CC="$ac_cv_prog_CC"
867if test -n "$CC"; then
868 echo "$ac_t""$CC" 1>&6
869else
870 echo "$ac_t""no" 1>&6
871fi
872
873 if test -z "$CC"; then
874 case "`uname -s`" in
875 *win32* | *WIN32*)
876 # Extract the first word of "cl", so it can be a program name with args.
877set dummy cl; ac_word=$2
878echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -0400879echo "configure:880: checking for $ac_word" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000880if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
881 echo $ac_n "(cached) $ac_c" 1>&6
882else
883 if test -n "$CC"; then
884 ac_cv_prog_CC="$CC" # Let the user override the test.
885else
886 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
887 ac_dummy="$PATH"
888 for ac_dir in $ac_dummy; do
889 test -z "$ac_dir" && ac_dir=.
890 if test -f $ac_dir/$ac_word; then
891 ac_cv_prog_CC="cl"
892 break
893 fi
894 done
895 IFS="$ac_save_ifs"
896fi
897fi
898CC="$ac_cv_prog_CC"
899if test -n "$CC"; then
900 echo "$ac_t""$CC" 1>&6
901else
902 echo "$ac_t""no" 1>&6
903fi
904 ;;
905 esac
906 fi
907 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
908fi
909
910echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -0400911echo "configure:912: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000912
913ac_ext=c
914# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
915ac_cpp='$CPP $CPPFLAGS'
916ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
917ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
918cross_compiling=$ac_cv_prog_cc_cross
919
920cat > conftest.$ac_ext << EOF
921
Theodore Ts'od21ae6c2003-05-05 09:00:24 -0400922#line 923 "configure"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000923#include "confdefs.h"
924
925main(){return(0);}
926EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -0400927if { (eval echo configure:928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000928 ac_cv_prog_cc_works=yes
929 # If we can't run a trivial program, we are probably using a cross compiler.
930 if (./conftest; exit) 2>/dev/null; then
931 ac_cv_prog_cc_cross=no
932 else
933 ac_cv_prog_cc_cross=yes
934 fi
935else
936 echo "configure: failed program was:" >&5
937 cat conftest.$ac_ext >&5
938 ac_cv_prog_cc_works=no
939fi
940rm -fr conftest*
941ac_ext=c
942# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
943ac_cpp='$CPP $CPPFLAGS'
944ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
945ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
946cross_compiling=$ac_cv_prog_cc_cross
947
948echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
949if test $ac_cv_prog_cc_works = no; then
950 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
951fi
952echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -0400953echo "configure:954: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000954echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
955cross_compiling=$ac_cv_prog_cc_cross
956
957echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -0400958echo "configure:959: checking whether we are using GNU C" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000959if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
960 echo $ac_n "(cached) $ac_c" 1>&6
961else
962 cat > conftest.c <<EOF
963#ifdef __GNUC__
964 yes;
965#endif
966EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -0400967if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:968: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000968 ac_cv_prog_gcc=yes
969else
970 ac_cv_prog_gcc=no
971fi
972fi
973
974echo "$ac_t""$ac_cv_prog_gcc" 1>&6
975
976if test $ac_cv_prog_gcc = yes; then
977 GCC=yes
978else
979 GCC=
980fi
981
982ac_test_CFLAGS="${CFLAGS+set}"
983ac_save_CFLAGS="$CFLAGS"
984CFLAGS=
985echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -0400986echo "configure:987: checking whether ${CC-cc} accepts -g" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000987if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
988 echo $ac_n "(cached) $ac_c" 1>&6
989else
990 echo 'void f(){}' > conftest.c
991if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
992 ac_cv_prog_cc_g=yes
993else
994 ac_cv_prog_cc_g=no
995fi
996rm -f conftest*
997
998fi
999
1000echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1001if test "$ac_test_CFLAGS" = set; then
1002 CFLAGS="$ac_save_CFLAGS"
1003elif test $ac_cv_prog_cc_g = yes; then
1004 if test "$GCC" = yes; then
1005 CFLAGS="-g -O2"
1006 else
1007 CFLAGS="-g"
1008 fi
1009else
1010 if test "$GCC" = yes; then
1011 CFLAGS="-O2"
1012 else
1013 CFLAGS=
1014 fi
1015fi
1016
Theodore Ts'o74becf31997-04-26 14:37:06 +00001017# Check whether --with-linker or --without-linker was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001018if test "${with_linker+set}" = set; then
1019 withval="$with_linker"
Theodore Ts'o74becf31997-04-26 14:37:06 +00001020 echo "$ac_t""LD=$withval" 1>&6
1021LD=$withval
1022else
1023 if test -z "$LD" ; then LD=$CC; fi
1024echo "$ac_t""LD defaults to $LD" 1>&6
1025fi
1026export LD
1027
1028# Check whether --with-ccopts or --without-ccopts was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001029if test "${with_ccopts+set}" = set; then
1030 withval="$with_ccopts"
Theodore Ts'o74becf31997-04-26 14:37:06 +00001031 echo "$ac_t""CCOPTS is $withval" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001032CFLAGS=$withval
Theodore Ts'o74becf31997-04-26 14:37:06 +00001033fi
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001034echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04001035echo "configure:1036: checking how to run the C preprocessor" >&5
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001036# On Suns, sometimes $CPP names a directory.
1037if test -n "$CPP" && test -d "$CPP"; then
1038 CPP=
1039fi
1040if test -z "$CPP"; then
1041if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1042 echo $ac_n "(cached) $ac_c" 1>&6
1043else
1044 # This must be in double quotes, not single quotes, because CPP may get
1045 # substituted into the Makefile and "${CC-cc}" will confuse make.
1046 CPP="${CC-cc} -E"
1047 # On the NeXT, cc -E runs the code through the compiler's parser,
1048 # not just through cpp.
1049 cat > conftest.$ac_ext <<EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04001050#line 1051 "configure"
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001051#include "confdefs.h"
1052#include <assert.h>
1053Syntax Error
1054EOF
1055ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04001056{ (eval echo configure:1057: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001057ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1058if test -z "$ac_err"; then
1059 :
1060else
1061 echo "$ac_err" >&5
1062 echo "configure: failed program was:" >&5
1063 cat conftest.$ac_ext >&5
1064 rm -rf conftest*
1065 CPP="${CC-cc} -E -traditional-cpp"
1066 cat > conftest.$ac_ext <<EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04001067#line 1068 "configure"
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001068#include "confdefs.h"
1069#include <assert.h>
1070Syntax Error
1071EOF
1072ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04001073{ (eval echo configure:1074: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001074ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1075if test -z "$ac_err"; then
1076 :
1077else
1078 echo "$ac_err" >&5
1079 echo "configure: failed program was:" >&5
1080 cat conftest.$ac_ext >&5
1081 rm -rf conftest*
1082 CPP="${CC-cc} -nologo -E"
1083 cat > conftest.$ac_ext <<EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04001084#line 1085 "configure"
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001085#include "confdefs.h"
1086#include <assert.h>
1087Syntax Error
1088EOF
1089ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04001090{ (eval echo configure:1091: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001091ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1092if test -z "$ac_err"; then
1093 :
1094else
1095 echo "$ac_err" >&5
1096 echo "configure: failed program was:" >&5
1097 cat conftest.$ac_ext >&5
1098 rm -rf conftest*
1099 CPP=/lib/cpp
1100fi
1101rm -f conftest*
1102fi
1103rm -f conftest*
1104fi
1105rm -f conftest*
1106 ac_cv_prog_CPP="$CPP"
1107fi
1108 CPP="$ac_cv_prog_CPP"
1109else
1110 ac_cv_prog_CPP="$CPP"
1111fi
1112echo "$ac_t""$CPP" 1>&6
1113
1114ac_safe=`echo "linux/fs.h" | sed 'y%./+-%__p_%'`
1115echo $ac_n "checking for linux/fs.h""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04001116echo "configure:1117: checking for linux/fs.h" >&5
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001117if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1118 echo $ac_n "(cached) $ac_c" 1>&6
1119else
1120 cat > conftest.$ac_ext <<EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04001121#line 1122 "configure"
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001122#include "confdefs.h"
1123#include <linux/fs.h>
1124EOF
1125ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04001126{ (eval echo configure:1127: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001127ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1128if test -z "$ac_err"; then
1129 rm -rf conftest*
1130 eval "ac_cv_header_$ac_safe=yes"
1131else
1132 echo "$ac_err" >&5
1133 echo "configure: failed program was:" >&5
1134 cat conftest.$ac_ext >&5
1135 rm -rf conftest*
1136 eval "ac_cv_header_$ac_safe=no"
1137fi
1138rm -f conftest*
1139fi
1140if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1141 echo "$ac_t""yes" 1>&6
1142 linux_headers=yes
1143else
1144 echo "$ac_t""no" 1>&6
1145linux_headers=no
1146fi
1147
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001148if test "$linux_headers" != yes; then
1149 LINUX_INCLUDE='-I$(top_builddir)/include'
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001150fi
1151
Theodore Ts'oa4d09611997-04-29 14:28:00 +00001152LIB_EXT=.a
1153STATIC_LIB_EXT=.a
1154PROFILE_LIB_EXT=.a
Theodore Ts'o74becf31997-04-26 14:37:06 +00001155# Check whether --with-ldopts or --without-ldopts was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001156if test "${with_ldopts+set}" = set; then
1157 withval="$with_ldopts"
Theodore Ts'o74becf31997-04-26 14:37:06 +00001158 echo "$ac_t""LDFLAGS is $withval" 1>&6
1159LDFLAGS=$withval
1160else
1161 LDFLAGS=
1162fi
1163
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00001164# Check whether --with-root-prefix or --without-root-prefix was given.
1165if test "${with_root_prefix+set}" = set; then
1166 withval="$with_root_prefix"
1167 root_prefix=$withval
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001168else
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00001169 root_prefix=NONE
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001170fi
Theodore Ts'o19178752000-02-11 15:55:07 +00001171# Check whether --enable-compression or --disable-compression was given.
1172if test "${enable_compression+set}" = set; then
1173 enableval="$enable_compression"
1174 if test "$enableval" = "no"
1175then
1176 echo "Disabling compression support"
1177else
1178 cat >> confdefs.h <<\EOF
1179#define ENABLE_COMPRESSION 1
1180EOF
1181
1182 echo "Enabling compression support"
1183 echo "WARNING: Compression support is experimental"
1184fi
1185
1186else
1187 echo "Disabling compression support by default"
1188
1189fi
1190
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04001191# Check whether --enable-htree or --disable-htree was given.
1192if test "${enable_htree+set}" = set; then
1193 enableval="$enable_htree"
1194 if test "$enableval" = "no"
1195then
1196 HTREE_CMT=#
1197 echo "Disabling htree directory support"
1198else
1199 HTREE_CMT=
1200 cat >> confdefs.h <<\EOF
1201#define ENABLE_HTREE 1
1202EOF
1203
1204 echo "Enabling htree directory support"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04001205fi
1206
1207else
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04001208 HTREE_CMT=
1209cat >> confdefs.h <<\EOF
1210#define ENABLE_HTREE 1
1211EOF
1212
1213echo "Enabling htree directory support by default"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04001214
1215fi
1216
1217
1218# Check whether --enable-htree-clear or --disable-htree-clear was given.
1219if test "${enable_htree_clear+set}" = set; then
1220 enableval="$enable_htree_clear"
1221 if test "$enableval" = "no"
1222then
1223 HTREE_CLR_CMT=#
1224 echo "Disabling htree clearing"
1225else
1226 HTREE_CLR_CMT=
1227 cat >> confdefs.h <<\EOF
1228#define ENABLE_HTREE_CLEAR 1
1229EOF
1230
1231 echo "Enabling htree clearing"
1232fi
1233
1234else
1235 HTREE_CLR_CMT=#
1236echo "Disabling htree clearing by default"
1237
1238fi
1239
1240
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04001241# Check whether --enable-evms or --disable-evms was given.
1242if test "${enable_evms+set}" = set; then
1243 enableval="$enable_evms"
1244 if test "$enableval" != "no"
1245then
1246 EVMS_CMT="#"
1247 echo "Disabling EVMS plugin"
1248fi
1249
1250fi
1251
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05001252EVMS_ABI_CODE=120
1253# Check whether --enable-evms-10 or --disable-evms-10 was given.
1254if test "${enable_evms_10+set}" = set; then
1255 enableval="$enable_evms_10"
1256 if test "$enableval" != "no"
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04001257then
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05001258 EVMS_ABI_CODE=100
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04001259 echo "Enabling EVMS 1.0.0 ABI"
1260fi
1261
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05001262fi
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04001263
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05001264# Check whether --enable-evms-11 or --disable-evms-11 was given.
1265if test "${enable_evms_11+set}" = set; then
1266 enableval="$enable_evms_11"
1267 if test "$enableval" != "no"
1268then
1269 EVMS_ABI_CODE=110
1270 echo "Enabling EVMS 1.1.0 ABI"
1271fi
1272
1273fi
1274
1275if test "$EVMS_ABI_CODE" = "120"
1276then
1277 echo "Using EVMS 1.2.0 ABI by default"
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04001278fi
1279
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001280# Check whether --enable-dll-shlibs or --disable-dll-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001281if test "${enable_dll_shlibs+set}" = set; then
1282 enableval="$enable_dll_shlibs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001283 if test "$enableval" = "no"
1284then
1285 DLL_CMT=#
1286 MAKEFILE_DLL=/dev/null
1287 echo "Disabling DLL shared libraries"
1288else
1289 DLL_CMT=
1290 MAKEFILE_DLL=$srcdir/lib/Makefile.dll-lib
Theodore Ts'o74becf31997-04-26 14:37:06 +00001291 BINARY_TYPE=dllbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00001292 LIB_EXT=.sa
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001293 echo "Enabling DLL shared libraries"
1294fi
1295
1296else
1297 MAKEFILE_DLL=/dev/null
1298DLL_CMT=#
1299echo "Disabling DLL shared libraries by default"
1300
1301fi
1302
1303
1304
1305# Check whether --enable-elf-shlibs or --disable-elf-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001306if test "${enable_elf_shlibs+set}" = set; then
1307 enableval="$enable_elf_shlibs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001308 if test "$enableval" = "no"
1309then
1310 ELF_CMT=#
1311 MAKEFILE_ELF=/dev/null
1312 echo "Disabling ELF shared libraries"
1313else
1314 ELF_CMT=
1315 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
Theodore Ts'of5955dd2000-10-25 02:38:39 +00001316 case "$host_os" in
1317 solaris2.*)
1318 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
1319 ;;
1320 esac
Theodore Ts'o74becf31997-04-26 14:37:06 +00001321 BINARY_TYPE=elfbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00001322 LIB_EXT=.so
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001323 echo "Enabling ELF shared libraries"
1324fi
1325
1326else
1327 MAKEFILE_ELF=/dev/null
1328ELF_CMT=#
1329echo "Disabling ELF shared libraries by default"
1330
1331fi
1332
1333
1334
1335# Check whether --enable-bsd-shlibs or --disable-bsd-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001336if test "${enable_bsd_shlibs+set}" = set; then
1337 enableval="$enable_bsd_shlibs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001338 if test "$enableval" = "no"
1339then
1340 BSDLIB_CMT=#
1341 MAKEFILE_BSDLIB=/dev/null
1342 echo "Disabling BSD shared libraries"
1343else
1344 BSDLIB_CMT=
1345 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
Theodore Ts'oa4d09611997-04-29 14:28:00 +00001346 LIB_EXT=.so
Theodore Ts'oe1f07222003-03-14 02:25:36 -05001347 case "$host_os" in
Theodore Ts'oaa75ecc2003-03-17 10:01:22 -05001348 darwin*)
Theodore Ts'oe1f07222003-03-14 02:25:36 -05001349 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
1350 LIB_EXT=.dylib
1351 ;;
1352 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001353 echo "Enabling BSD shared libraries"
1354fi
1355
1356else
1357 MAKEFILE_BSDLIB=/dev/null
1358BSDLIB_CMT=#
1359echo "Disabling BSD shared libraries by default"
1360
1361fi
1362
1363
1364
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001365# Check whether --enable-profile or --disable-profile was given.
1366if test "${enable_profile+set}" = set; then
1367 enableval="$enable_profile"
1368 if test "$enableval" = "no"
1369then
1370 PROFILE_CMT=#
1371 MAKEFILE_PROFILE=/dev/null
1372 echo "Disabling profiling libraries"
1373else
1374 PROFILE_CMT=
1375 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
1376 PROFILED_LIB_EXT=_p.a
1377 echo "Building profiling libraries"
1378fi
1379
1380else
1381 PROFILE_CMT=#
1382MAKEFILE_PROFILE=/dev/null
1383echo "Disabling profiling libraries by default"
1384
1385fi
1386
1387
1388
1389# Check whether --enable-checker or --disable-checker was given.
1390if test "${enable_checker+set}" = set; then
1391 enableval="$enable_checker"
1392 if test "$enableval" = "no"
1393then
1394 CHECKER_CMT=#
1395 MAKEFILE_CHECKER=/dev/null
1396 echo "Disabling checker libraries"
1397else
1398 CHECKER_CMT=
1399 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
1400 echo "Building checker libraries"
1401fi
1402
1403else
1404 CHECKER_CMT=#
1405MAKEFILE_CHECKER=/dev/null
1406echo "Disabling checker libraries by default"
1407
1408fi
1409
1410
1411
1412
1413
1414
Theodore Ts'o782bebf2002-11-08 18:46:45 -05001415# Check whether --enable-jbd-debug or --disable-jbd-debug was given.
1416if test "${enable_jbd_debug+set}" = set; then
1417 enableval="$enable_jbd_debug"
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00001418 if test "$enableval" = "no"
1419then
1420 echo "Disabling journal debugging"
1421else
1422 cat >> confdefs.h <<\EOF
Theodore Ts'o8cf93332001-12-16 02:23:36 -05001423#define CONFIG_JBD_DEBUG 1
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00001424EOF
1425
1426 echo "Enabling journal debugging"
1427fi
1428
1429else
1430 echo "Disabling journal debugging by default"
1431
1432fi
1433
Theodore Ts'of0a22d02003-02-22 13:19:53 -05001434# Check whether --enable-blkid-debug or --disable-blkid-debug was given.
1435if test "${enable_blkid_debug+set}" = set; then
1436 enableval="$enable_blkid_debug"
1437 if test "$enableval" = "no"
1438then
1439 echo "Disabling blkid debugging"
1440else
1441 cat >> confdefs.h <<\EOF
1442#define CONFIG_BLKID_DEBUG 1
1443EOF
1444
1445 echo "Enabling blkid debugging"
1446fi
1447
1448else
1449 echo "Disabling blkid debugging by default"
1450
1451fi
1452
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001453# Check whether --enable-swapfs or --disable-swapfs was given.
1454if test "${enable_swapfs+set}" = set; then
1455 enableval="$enable_swapfs"
1456 if test "$enableval" = "no"
1457then
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05001458 SWAPFS_CMT=#
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001459 echo "Disabling swapfs support"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001460else
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05001461 SWAPFS_CMT=
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001462 cat >> confdefs.h <<\EOF
1463#define ENABLE_SWAPFS 1
1464EOF
1465
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001466 echo "Enabling swapfs support"
1467fi
1468
1469else
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05001470 SWAPFS_CMT=
1471echo "Enabling swapfs support by default"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001472cat >> confdefs.h <<\EOF
1473#define ENABLE_SWAPFS 1
1474EOF
1475
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001476
1477fi
1478
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05001479
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001480# Check whether --enable-debugfs or --disable-debugfs was given.
1481if test "${enable_debugfs+set}" = set; then
1482 enableval="$enable_debugfs"
1483 if test "$enableval" = "no"
1484then
1485 echo "Disabling debugfs support"
1486 DEBUGFS_CMT="#"
1487else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001488 DEBUGFS_CMT=
1489 echo "Enabling debugfs support"
1490fi
1491
1492else
1493 echo "Enabling debugfs support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001494DEBUGFS_CMT=
1495
1496fi
1497
1498
1499# Check whether --enable-imager or --disable-imager was given.
1500if test "${enable_imager+set}" = set; then
1501 enableval="$enable_imager"
1502 if test "$enableval" = "no"
1503then
1504 echo "Disabling e2image support"
1505 IMAGER_CMT="#"
1506else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001507 IMAGER_CMT=
1508 echo "Enabling e2image support"
1509fi
1510
1511else
1512 echo "Enabling e2image support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001513IMAGER_CMT=
1514
1515fi
1516
1517
1518# Check whether --enable-resizer or --disable-resizer was given.
1519if test "${enable_resizer+set}" = set; then
1520 enableval="$enable_resizer"
1521 if test "$enableval" = "no"
1522then
1523 echo "Disabling e2resize support"
1524 RESIZER_CMT="#"
1525else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001526 RESIZER_CMT=
1527 echo "Enabling e2resize support"
1528fi
1529
1530else
1531 echo "Enabling e2resize support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001532RESIZER_CMT=
1533
1534fi
1535
1536
1537# Check whether --enable-dynamic-e2fsck or --disable-dynamic-e2fsck was given.
1538if test "${enable_dynamic_e2fsck+set}" = set; then
1539 enableval="$enable_dynamic_e2fsck"
1540 if test "$enableval" = "no"
1541then
1542 E2FSCK_TYPE=static
1543 echo "Building e2fsck statically"
1544else
1545 E2FSCK_TYPE=shared
1546 echo "Building e2fsck dynamically"
1547fi
1548
1549else
1550 E2FSCK_TYPE=static
1551echo "Building e2fsck statically by default"
1552
1553fi
1554
1555
1556# Check whether --enable-fsck or --disable-fsck was given.
1557if test "${enable_fsck+set}" = set; then
1558 enableval="$enable_fsck"
1559 if test "$enableval" = "no"
1560then
1561 FSCK_PROG='' FSCK_MAN=''
1562 echo "Not building fsck wrapper"
1563else
1564 FSCK_PROG=fsck FSCK_MAN=fsck.8
1565 echo "Building fsck wrapper"
1566fi
1567
1568else
1569 case "$host_os" in
1570 gnu*)
1571 FSCK_PROG='' FSCK_MAN=''
1572 echo "Not building fsck wrapper by default"
1573 ;;
1574 *)
1575 FSCK_PROG=fsck FSCK_MAN=fsck.8
1576 echo "Building fsck wrapper by default"
1577esac
1578
1579fi
1580
1581
1582
1583MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
1584
1585# Check whether --enable-old-bitops or --disable-old-bitops was given.
1586if test "${enable_old_bitops+set}" = set; then
1587 enableval="$enable_old_bitops"
1588 if test "$enableval" = "no"
1589then
1590 echo "Using new (standard) bitmask operations"
1591else
1592 cat >> confdefs.h <<\EOF
1593#define EXT2_OLD_BITOPS 1
1594EOF
1595
1596 echo "Using old (native) bitmask operations"
1597
1598fi
1599
1600else
1601 echo "Using standard bitmask operations by default"
1602
1603fi
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001604
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001605PACKAGE=e2fsprogs
1606VERSION="$E2FSPROGS_VERSION"
1607cat >> confdefs.h <<EOF
1608#define PACKAGE "$PACKAGE"
1609EOF
1610
1611cat >> confdefs.h <<EOF
1612#define VERSION "$VERSION"
1613EOF
1614
1615
1616
1617
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001618
1619 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04001620echo "configure:1621: checking for inttypes.h" >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001621if eval "test \"`echo '$''{'jm_ac_cv_header_inttypes_h'+set}'`\" = set"; then
1622 echo $ac_n "(cached) $ac_c" 1>&6
1623else
1624 cat > conftest.$ac_ext <<EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04001625#line 1626 "configure"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001626#include "confdefs.h"
1627#include <sys/types.h>
1628#include <inttypes.h>
1629int main() {
1630uintmax_t i = (uintmax_t) -1;
1631; return 0; }
1632EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04001633if { (eval echo configure:1634: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001634 rm -rf conftest*
1635 jm_ac_cv_header_inttypes_h=yes
1636else
1637 echo "configure: failed program was:" >&5
1638 cat conftest.$ac_ext >&5
1639 rm -rf conftest*
1640 jm_ac_cv_header_inttypes_h=no
1641fi
1642rm -f conftest*
1643fi
1644
1645echo "$ac_t""$jm_ac_cv_header_inttypes_h" 1>&6
1646 if test $jm_ac_cv_header_inttypes_h = yes; then
1647 cat >> confdefs.h <<EOF
1648#define HAVE_INTTYPES_H_WITH_UINTMAX 1
1649EOF
1650
1651 fi
1652
1653
1654 echo $ac_n "checking for stdint.h""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04001655echo "configure:1656: checking for stdint.h" >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001656if eval "test \"`echo '$''{'jm_ac_cv_header_stdint_h'+set}'`\" = set"; then
1657 echo $ac_n "(cached) $ac_c" 1>&6
1658else
1659 cat > conftest.$ac_ext <<EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04001660#line 1661 "configure"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001661#include "confdefs.h"
1662#include <sys/types.h>
1663#include <stdint.h>
1664int main() {
1665uintmax_t i = (uintmax_t) -1;
1666; return 0; }
1667EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04001668if { (eval echo configure:1669: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001669 rm -rf conftest*
1670 jm_ac_cv_header_stdint_h=yes
1671else
1672 echo "configure: failed program was:" >&5
1673 cat conftest.$ac_ext >&5
1674 rm -rf conftest*
1675 jm_ac_cv_header_stdint_h=no
1676fi
1677rm -f conftest*
1678fi
1679
1680echo "$ac_t""$jm_ac_cv_header_stdint_h" 1>&6
1681 if test $jm_ac_cv_header_stdint_h = yes; then
1682 cat >> confdefs.h <<EOF
1683#define HAVE_STDINT_H_WITH_UINTMAX 1
1684EOF
1685
1686 fi
1687
1688
1689 echo $ac_n "checking for unsigned long long""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04001690echo "configure:1691: checking for unsigned long long" >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001691if eval "test \"`echo '$''{'ac_cv_type_unsigned_long_long'+set}'`\" = set"; then
1692 echo $ac_n "(cached) $ac_c" 1>&6
1693else
1694 cat > conftest.$ac_ext <<EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04001695#line 1696 "configure"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001696#include "confdefs.h"
1697unsigned long long ull = 1; int i = 63;
1698int main() {
1699unsigned long long ullmax = (unsigned long long) -1;
1700 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
1701; return 0; }
1702EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04001703if { (eval echo configure:1704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001704 rm -rf conftest*
1705 ac_cv_type_unsigned_long_long=yes
1706else
1707 echo "configure: failed program was:" >&5
1708 cat conftest.$ac_ext >&5
1709 rm -rf conftest*
1710 ac_cv_type_unsigned_long_long=no
1711fi
1712rm -f conftest*
1713fi
1714
1715echo "$ac_t""$ac_cv_type_unsigned_long_long" 1>&6
1716 if test $ac_cv_type_unsigned_long_long = yes; then
1717 cat >> confdefs.h <<\EOF
1718#define HAVE_UNSIGNED_LONG_LONG 1
1719EOF
1720
1721 fi
1722
1723
1724 if test "X$prefix" = "XNONE"; then
1725 acl_final_prefix="$ac_default_prefix"
1726 else
1727 acl_final_prefix="$prefix"
1728 fi
1729 if test "X$exec_prefix" = "XNONE"; then
1730 acl_final_exec_prefix='${prefix}'
1731 else
1732 acl_final_exec_prefix="$exec_prefix"
1733 fi
1734 acl_save_prefix="$prefix"
1735 prefix="$acl_final_prefix"
1736 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
1737 prefix="$acl_save_prefix"
1738
1739
1740 echo $ac_n "checking for shared library run path origin""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04001741echo "configure:1742: checking for shared library run path origin" >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001742if eval "test \"`echo '$''{'acl_cv_rpath'+set}'`\" = set"; then
1743 echo $ac_n "(cached) $ac_c" 1>&6
1744else
1745
1746 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
1747 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
1748 . ./conftest.sh
1749 rm -f ./conftest.sh
1750 acl_cv_rpath=done
1751
1752fi
1753
1754echo "$ac_t""$acl_cv_rpath" 1>&6
1755 wl="$acl_cv_wl"
1756 libext="$acl_cv_libext"
1757 shlibext="$acl_cv_shlibext"
1758 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
1759 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
1760 hardcode_direct="$acl_cv_hardcode_direct"
1761 hardcode_minus_L="$acl_cv_hardcode_minus_L"
1762 sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
1763 sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
1764 # Check whether --enable-rpath or --disable-rpath was given.
1765if test "${enable_rpath+set}" = set; then
1766 enableval="$enable_rpath"
1767 :
1768else
1769 enable_rpath=yes
1770fi
1771
1772
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001773echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04001774echo "configure:1775: checking whether ${MAKE-make} sets \${MAKE}" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001775set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1776if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1777 echo $ac_n "(cached) $ac_c" 1>&6
1778else
1779 cat > conftestmake <<\EOF
1780all:
1781 @echo 'ac_maketemp="${MAKE}"'
1782EOF
1783# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1784eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1785if test -n "$ac_maketemp"; then
1786 eval ac_cv_prog_make_${ac_make}_set=yes
1787else
1788 eval ac_cv_prog_make_${ac_make}_set=no
1789fi
1790rm -f conftestmake
1791fi
1792if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1793 echo "$ac_t""yes" 1>&6
1794 SET_MAKE=
1795else
1796 echo "$ac_t""no" 1>&6
1797 SET_MAKE="MAKE=${MAKE-make}"
1798fi
1799
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001800# Find a good install program. We prefer a C program (faster),
1801# so one script is as good as another. But avoid the broken or
1802# incompatible versions:
1803# SysV /etc/install, /usr/sbin/install
1804# SunOS /usr/etc/install
1805# IRIX /sbin/install
1806# AIX /bin/install
1807# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1808# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1809# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1810# ./install, which can be erroneously created by make from ./install.sh.
1811echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04001812echo "configure:1813: checking for a BSD compatible install" >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001813if test -z "$INSTALL"; then
1814if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1815 echo $ac_n "(cached) $ac_c" 1>&6
1816else
1817 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1818 for ac_dir in $PATH; do
1819 # Account for people who put trailing slashes in PATH elements.
1820 case "$ac_dir/" in
1821 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1822 *)
1823 # OSF1 and SCO ODT 3.0 have their own names for install.
1824 # Don't use installbsd from OSF since it installs stuff as root
1825 # by default.
1826 for ac_prog in ginstall scoinst install; do
1827 if test -f $ac_dir/$ac_prog; then
1828 if test $ac_prog = install &&
1829 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1830 # AIX install. It has an incompatible calling convention.
1831 :
1832 else
1833 ac_cv_path_install="$ac_dir/$ac_prog -c"
1834 break 2
1835 fi
1836 fi
1837 done
1838 ;;
1839 esac
1840 done
1841 IFS="$ac_save_IFS"
1842
1843fi
1844 if test "${ac_cv_path_install+set}" = set; then
1845 INSTALL="$ac_cv_path_install"
1846 else
1847 # As a last resort, use the slow shell script. We don't cache a
1848 # path for INSTALL within a source directory, because that will
1849 # break other packages using the cache if that directory is
1850 # removed, or if the path is relative.
1851 INSTALL="$ac_install_sh"
1852 fi
1853fi
1854echo "$ac_t""$INSTALL" 1>&6
1855
1856# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1857# It thinks the first close brace ends the variable substitution.
1858test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1859
1860test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1861
1862test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1863
1864
1865 MKINSTALLDIRS=
1866 if test -n "$ac_aux_dir"; then
1867 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
1868 fi
1869 if test -z "$MKINSTALLDIRS"; then
1870 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
1871 fi
1872
1873
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001874# Extract the first word of "ranlib", so it can be a program name with args.
1875set dummy ranlib; ac_word=$2
1876echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04001877echo "configure:1878: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001878if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1879 echo $ac_n "(cached) $ac_c" 1>&6
1880else
1881 if test -n "$RANLIB"; then
1882 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1883else
1884 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1885 ac_dummy="$PATH"
1886 for ac_dir in $ac_dummy; do
1887 test -z "$ac_dir" && ac_dir=.
1888 if test -f $ac_dir/$ac_word; then
1889 ac_cv_prog_RANLIB="ranlib"
1890 break
1891 fi
1892 done
1893 IFS="$ac_save_ifs"
1894 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1895fi
1896fi
1897RANLIB="$ac_cv_prog_RANLIB"
1898if test -n "$RANLIB"; then
1899 echo "$ac_t""$RANLIB" 1>&6
1900else
1901 echo "$ac_t""no" 1>&6
1902fi
1903
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001904
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001905 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04001906echo "configure:1907: checking for strerror in -lcposix" >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001907ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1908if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1909 echo $ac_n "(cached) $ac_c" 1>&6
1910else
1911 ac_save_LIBS="$LIBS"
1912LIBS="-lcposix $LIBS"
1913cat > conftest.$ac_ext <<EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04001914#line 1915 "configure"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001915#include "confdefs.h"
1916/* Override any gcc2 internal prototype to avoid an error. */
1917/* We use char because int might match the return type of a gcc2
1918 builtin and then its argument prototype would still apply. */
1919char strerror();
1920
1921int main() {
1922strerror()
1923; return 0; }
1924EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04001925if { (eval echo configure:1926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001926 rm -rf conftest*
1927 eval "ac_cv_lib_$ac_lib_var=yes"
1928else
1929 echo "configure: failed program was:" >&5
1930 cat conftest.$ac_ext >&5
1931 rm -rf conftest*
1932 eval "ac_cv_lib_$ac_lib_var=no"
1933fi
1934rm -f conftest*
1935LIBS="$ac_save_LIBS"
1936
1937fi
1938if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1939 echo "$ac_t""yes" 1>&6
1940 LIBS="$LIBS -lcposix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001941else
1942 echo "$ac_t""no" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001943fi
1944
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001945
1946
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001947echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04001948echo "configure:1949: checking for ANSI C header files" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001949if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1950 echo $ac_n "(cached) $ac_c" 1>&6
1951else
1952 cat > conftest.$ac_ext <<EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04001953#line 1954 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001954#include "confdefs.h"
1955#include <stdlib.h>
1956#include <stdarg.h>
1957#include <string.h>
1958#include <float.h>
1959EOF
1960ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04001961{ (eval echo configure:1962: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001962ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1963if test -z "$ac_err"; then
1964 rm -rf conftest*
1965 ac_cv_header_stdc=yes
1966else
1967 echo "$ac_err" >&5
1968 echo "configure: failed program was:" >&5
1969 cat conftest.$ac_ext >&5
1970 rm -rf conftest*
1971 ac_cv_header_stdc=no
1972fi
1973rm -f conftest*
1974
1975if test $ac_cv_header_stdc = yes; then
1976 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1977cat > conftest.$ac_ext <<EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04001978#line 1979 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001979#include "confdefs.h"
1980#include <string.h>
1981EOF
1982if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1983 egrep "memchr" >/dev/null 2>&1; then
1984 :
1985else
1986 rm -rf conftest*
1987 ac_cv_header_stdc=no
1988fi
1989rm -f conftest*
1990
1991fi
1992
1993if test $ac_cv_header_stdc = yes; then
1994 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1995cat > conftest.$ac_ext <<EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04001996#line 1997 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001997#include "confdefs.h"
1998#include <stdlib.h>
1999EOF
2000if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2001 egrep "free" >/dev/null 2>&1; then
2002 :
2003else
2004 rm -rf conftest*
2005 ac_cv_header_stdc=no
2006fi
2007rm -f conftest*
2008
2009fi
2010
2011if test $ac_cv_header_stdc = yes; then
2012 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2013if test "$cross_compiling" = yes; then
2014 :
2015else
2016 cat > conftest.$ac_ext <<EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04002017#line 2018 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002018#include "confdefs.h"
2019#include <ctype.h>
2020#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2021#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2022#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2023int main () { int i; for (i = 0; i < 256; i++)
2024if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2025exit (0); }
2026
2027EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04002028if { (eval echo configure:2029: \"$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 +00002029then
2030 :
2031else
2032 echo "configure: failed program was:" >&5
2033 cat conftest.$ac_ext >&5
2034 rm -fr conftest*
2035 ac_cv_header_stdc=no
2036fi
2037rm -fr conftest*
2038fi
2039
2040fi
2041fi
2042
2043echo "$ac_t""$ac_cv_header_stdc" 1>&6
2044if test $ac_cv_header_stdc = yes; then
2045 cat >> confdefs.h <<\EOF
2046#define STDC_HEADERS 1
2047EOF
2048
2049fi
2050
2051echo $ac_n "checking for working const""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04002052echo "configure:2053: checking for working const" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002053if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2054 echo $ac_n "(cached) $ac_c" 1>&6
2055else
2056 cat > conftest.$ac_ext <<EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04002057#line 2058 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002058#include "confdefs.h"
2059
2060int main() {
2061
2062/* Ultrix mips cc rejects this. */
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002063typedef int charset[2]; const charset x;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002064/* SunOS 4.1.1 cc rejects this. */
2065char const *const *ccp;
2066char **p;
2067/* NEC SVR4.0.2 mips cc rejects this. */
2068struct point {int x, y;};
2069static struct point const zero = {0,0};
2070/* AIX XL C 1.02.0.0 rejects this.
2071 It does not let you subtract one const X* pointer from another in an arm
2072 of an if-expression whose if-part is not a constant expression */
2073const char *g = "string";
2074ccp = &g + (g ? g-g : 0);
2075/* HPUX 7.0 cc rejects these. */
2076++ccp;
2077p = (char**) ccp;
2078ccp = (char const *const *) p;
2079{ /* SCO 3.2v4 cc rejects this. */
2080 char *t;
2081 char const *s = 0 ? (char *) 0 : (char const *) 0;
2082
2083 *t++ = 0;
2084}
2085{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2086 int x[] = {25, 17};
2087 const int *foo = &x[0];
2088 ++foo;
2089}
2090{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2091 typedef const int *iptr;
2092 iptr p = 0;
2093 ++p;
2094}
2095{ /* AIX XL C 1.02.0.0 rejects this saying
2096 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2097 struct s { int j; const int *ap[3]; };
2098 struct s *b; b->j = 5;
2099}
2100{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2101 const int foo = 10;
2102}
2103
2104; return 0; }
2105EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04002106if { (eval echo configure:2107: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002107 rm -rf conftest*
2108 ac_cv_c_const=yes
2109else
2110 echo "configure: failed program was:" >&5
2111 cat conftest.$ac_ext >&5
2112 rm -rf conftest*
2113 ac_cv_c_const=no
2114fi
2115rm -f conftest*
2116fi
2117
2118echo "$ac_t""$ac_cv_c_const" 1>&6
2119if test $ac_cv_c_const = no; then
2120 cat >> confdefs.h <<\EOF
2121#define const
2122EOF
2123
2124fi
2125
2126echo $ac_n "checking for inline""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04002127echo "configure:2128: checking for inline" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002128if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2129 echo $ac_n "(cached) $ac_c" 1>&6
2130else
2131 ac_cv_c_inline=no
2132for ac_kw in inline __inline__ __inline; do
2133 cat > conftest.$ac_ext <<EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04002134#line 2135 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002135#include "confdefs.h"
2136
2137int main() {
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002138} $ac_kw foo() {
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002139; return 0; }
2140EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04002141if { (eval echo configure:2142: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002142 rm -rf conftest*
2143 ac_cv_c_inline=$ac_kw; break
2144else
2145 echo "configure: failed program was:" >&5
2146 cat conftest.$ac_ext >&5
2147fi
2148rm -f conftest*
2149done
2150
2151fi
2152
2153echo "$ac_t""$ac_cv_c_inline" 1>&6
2154case "$ac_cv_c_inline" in
2155 inline | yes) ;;
2156 no) cat >> confdefs.h <<\EOF
2157#define inline
2158EOF
2159 ;;
2160 *) cat >> confdefs.h <<EOF
2161#define inline $ac_cv_c_inline
2162EOF
2163 ;;
2164esac
2165
2166echo $ac_n "checking for off_t""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04002167echo "configure:2168: checking for off_t" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002168if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2169 echo $ac_n "(cached) $ac_c" 1>&6
2170else
2171 cat > conftest.$ac_ext <<EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04002172#line 2173 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002173#include "confdefs.h"
2174#include <sys/types.h>
2175#if STDC_HEADERS
2176#include <stdlib.h>
2177#include <stddef.h>
2178#endif
2179EOF
2180if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2181 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2182 rm -rf conftest*
2183 ac_cv_type_off_t=yes
2184else
2185 rm -rf conftest*
2186 ac_cv_type_off_t=no
2187fi
2188rm -f conftest*
2189
2190fi
2191echo "$ac_t""$ac_cv_type_off_t" 1>&6
2192if test $ac_cv_type_off_t = no; then
2193 cat >> confdefs.h <<\EOF
2194#define off_t long
2195EOF
2196
2197fi
2198
2199echo $ac_n "checking for size_t""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04002200echo "configure:2201: checking for size_t" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002201if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2202 echo $ac_n "(cached) $ac_c" 1>&6
2203else
2204 cat > conftest.$ac_ext <<EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04002205#line 2206 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002206#include "confdefs.h"
2207#include <sys/types.h>
2208#if STDC_HEADERS
2209#include <stdlib.h>
2210#include <stddef.h>
2211#endif
2212EOF
2213if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2214 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2215 rm -rf conftest*
2216 ac_cv_type_size_t=yes
2217else
2218 rm -rf conftest*
2219 ac_cv_type_size_t=no
2220fi
2221rm -f conftest*
2222
2223fi
2224echo "$ac_t""$ac_cv_type_size_t" 1>&6
2225if test $ac_cv_type_size_t = no; then
2226 cat >> confdefs.h <<\EOF
2227#define size_t unsigned
2228EOF
2229
2230fi
2231
2232# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2233# for constant arguments. Useless!
2234echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04002235echo "configure:2236: checking for working alloca.h" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002236if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2237 echo $ac_n "(cached) $ac_c" 1>&6
2238else
2239 cat > conftest.$ac_ext <<EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04002240#line 2241 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002241#include "confdefs.h"
2242#include <alloca.h>
2243int main() {
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002244char *p = alloca(2 * sizeof(int));
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002245; return 0; }
2246EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04002247if { (eval echo configure:2248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002248 rm -rf conftest*
2249 ac_cv_header_alloca_h=yes
2250else
2251 echo "configure: failed program was:" >&5
2252 cat conftest.$ac_ext >&5
2253 rm -rf conftest*
2254 ac_cv_header_alloca_h=no
2255fi
2256rm -f conftest*
2257fi
2258
2259echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2260if test $ac_cv_header_alloca_h = yes; then
2261 cat >> confdefs.h <<\EOF
2262#define HAVE_ALLOCA_H 1
2263EOF
2264
2265fi
2266
2267echo $ac_n "checking for alloca""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04002268echo "configure:2269: checking for alloca" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002269if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2270 echo $ac_n "(cached) $ac_c" 1>&6
2271else
2272 cat > conftest.$ac_ext <<EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04002273#line 2274 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002274#include "confdefs.h"
2275
2276#ifdef __GNUC__
2277# define alloca __builtin_alloca
2278#else
2279# ifdef _MSC_VER
2280# include <malloc.h>
2281# define alloca _alloca
2282# else
2283# if HAVE_ALLOCA_H
2284# include <alloca.h>
2285# else
2286# ifdef _AIX
2287 #pragma alloca
2288# else
2289# ifndef alloca /* predefined by HP cc +Olibcalls */
2290char *alloca ();
2291# endif
2292# endif
2293# endif
2294# endif
2295#endif
2296
2297int main() {
2298char *p = (char *) alloca(1);
2299; return 0; }
2300EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04002301if { (eval echo configure:2302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002302 rm -rf conftest*
2303 ac_cv_func_alloca_works=yes
2304else
2305 echo "configure: failed program was:" >&5
2306 cat conftest.$ac_ext >&5
2307 rm -rf conftest*
2308 ac_cv_func_alloca_works=no
2309fi
2310rm -f conftest*
2311fi
2312
2313echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2314if test $ac_cv_func_alloca_works = yes; then
2315 cat >> confdefs.h <<\EOF
2316#define HAVE_ALLOCA 1
2317EOF
2318
2319fi
2320
2321if test $ac_cv_func_alloca_works = no; then
2322 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2323 # that cause trouble. Some versions do not even contain alloca or
2324 # contain a buggy version. If you still want to use their alloca,
2325 # use ar to extract alloca.o from them instead of compiling alloca.c.
2326 ALLOCA=alloca.${ac_objext}
2327 cat >> confdefs.h <<\EOF
2328#define C_ALLOCA 1
2329EOF
2330
2331
2332echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04002333echo "configure:2334: checking whether alloca needs Cray hooks" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002334if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2335 echo $ac_n "(cached) $ac_c" 1>&6
2336else
2337 cat > conftest.$ac_ext <<EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04002338#line 2339 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002339#include "confdefs.h"
2340#if defined(CRAY) && ! defined(CRAY2)
2341webecray
2342#else
2343wenotbecray
2344#endif
2345
2346EOF
2347if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2348 egrep "webecray" >/dev/null 2>&1; then
2349 rm -rf conftest*
2350 ac_cv_os_cray=yes
2351else
2352 rm -rf conftest*
2353 ac_cv_os_cray=no
2354fi
2355rm -f conftest*
2356
2357fi
2358
2359echo "$ac_t""$ac_cv_os_cray" 1>&6
2360if test $ac_cv_os_cray = yes; then
2361for ac_func in _getb67 GETB67 getb67; do
2362 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04002363echo "configure:2364: checking for $ac_func" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002364if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2365 echo $ac_n "(cached) $ac_c" 1>&6
2366else
2367 cat > conftest.$ac_ext <<EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04002368#line 2369 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002369#include "confdefs.h"
2370/* System header to define __stub macros and hopefully few prototypes,
2371 which can conflict with char $ac_func(); below. */
2372#include <assert.h>
2373/* Override any gcc2 internal prototype to avoid an error. */
2374/* We use char because int might match the return type of a gcc2
2375 builtin and then its argument prototype would still apply. */
2376char $ac_func();
2377
2378int main() {
2379
2380/* The GNU C library defines this for functions which it implements
2381 to always fail with ENOSYS. Some functions are actually named
2382 something starting with __ and the normal name is an alias. */
2383#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2384choke me
2385#else
2386$ac_func();
2387#endif
2388
2389; return 0; }
2390EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04002391if { (eval echo configure:2392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002392 rm -rf conftest*
2393 eval "ac_cv_func_$ac_func=yes"
2394else
2395 echo "configure: failed program was:" >&5
2396 cat conftest.$ac_ext >&5
2397 rm -rf conftest*
2398 eval "ac_cv_func_$ac_func=no"
2399fi
2400rm -f conftest*
2401fi
2402
2403if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2404 echo "$ac_t""yes" 1>&6
2405 cat >> confdefs.h <<EOF
2406#define CRAY_STACKSEG_END $ac_func
2407EOF
2408
2409 break
2410else
2411 echo "$ac_t""no" 1>&6
2412fi
2413
2414done
2415fi
2416
2417echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04002418echo "configure:2419: checking stack direction for C alloca" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002419if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2420 echo $ac_n "(cached) $ac_c" 1>&6
2421else
2422 if test "$cross_compiling" = yes; then
2423 ac_cv_c_stack_direction=0
2424else
2425 cat > conftest.$ac_ext <<EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04002426#line 2427 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002427#include "confdefs.h"
2428find_stack_direction ()
2429{
2430 static char *addr = 0;
2431 auto char dummy;
2432 if (addr == 0)
2433 {
2434 addr = &dummy;
2435 return find_stack_direction ();
2436 }
2437 else
2438 return (&dummy > addr) ? 1 : -1;
2439}
2440main ()
2441{
2442 exit (find_stack_direction() < 0);
2443}
2444EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04002445if { (eval echo configure:2446: \"$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 +00002446then
2447 ac_cv_c_stack_direction=1
2448else
2449 echo "configure: failed program was:" >&5
2450 cat conftest.$ac_ext >&5
2451 rm -fr conftest*
2452 ac_cv_c_stack_direction=-1
2453fi
2454rm -fr conftest*
2455fi
2456
2457fi
2458
2459echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2460cat >> confdefs.h <<EOF
2461#define STACK_DIRECTION $ac_cv_c_stack_direction
2462EOF
2463
2464fi
2465
2466for ac_hdr in unistd.h
2467do
2468ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2469echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04002470echo "configure:2471: checking for $ac_hdr" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002471if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2472 echo $ac_n "(cached) $ac_c" 1>&6
2473else
2474 cat > conftest.$ac_ext <<EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04002475#line 2476 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002476#include "confdefs.h"
2477#include <$ac_hdr>
2478EOF
2479ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04002480{ (eval echo configure:2481: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002481ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2482if test -z "$ac_err"; then
2483 rm -rf conftest*
2484 eval "ac_cv_header_$ac_safe=yes"
2485else
2486 echo "$ac_err" >&5
2487 echo "configure: failed program was:" >&5
2488 cat conftest.$ac_ext >&5
2489 rm -rf conftest*
2490 eval "ac_cv_header_$ac_safe=no"
2491fi
2492rm -f conftest*
2493fi
2494if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2495 echo "$ac_t""yes" 1>&6
2496 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2497 cat >> confdefs.h <<EOF
2498#define $ac_tr_hdr 1
2499EOF
2500
2501else
2502 echo "$ac_t""no" 1>&6
2503fi
2504done
2505
2506for ac_func in getpagesize
2507do
2508echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04002509echo "configure:2510: checking for $ac_func" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002510if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2511 echo $ac_n "(cached) $ac_c" 1>&6
2512else
2513 cat > conftest.$ac_ext <<EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04002514#line 2515 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002515#include "confdefs.h"
2516/* System header to define __stub macros and hopefully few prototypes,
2517 which can conflict with char $ac_func(); below. */
2518#include <assert.h>
2519/* Override any gcc2 internal prototype to avoid an error. */
2520/* We use char because int might match the return type of a gcc2
2521 builtin and then its argument prototype would still apply. */
2522char $ac_func();
2523
2524int main() {
2525
2526/* The GNU C library defines this for functions which it implements
2527 to always fail with ENOSYS. Some functions are actually named
2528 something starting with __ and the normal name is an alias. */
2529#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2530choke me
2531#else
2532$ac_func();
2533#endif
2534
2535; return 0; }
2536EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04002537if { (eval echo configure:2538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002538 rm -rf conftest*
2539 eval "ac_cv_func_$ac_func=yes"
2540else
2541 echo "configure: failed program was:" >&5
2542 cat conftest.$ac_ext >&5
2543 rm -rf conftest*
2544 eval "ac_cv_func_$ac_func=no"
2545fi
2546rm -f conftest*
2547fi
2548
2549if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2550 echo "$ac_t""yes" 1>&6
2551 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2552 cat >> confdefs.h <<EOF
2553#define $ac_tr_func 1
2554EOF
2555
2556else
2557 echo "$ac_t""no" 1>&6
2558fi
2559done
2560
2561echo $ac_n "checking for working mmap""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04002562echo "configure:2563: checking for working mmap" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002563if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2564 echo $ac_n "(cached) $ac_c" 1>&6
2565else
2566 if test "$cross_compiling" = yes; then
2567 ac_cv_func_mmap_fixed_mapped=no
2568else
2569 cat > conftest.$ac_ext <<EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04002570#line 2571 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002571#include "confdefs.h"
2572
2573/* Thanks to Mike Haertel and Jim Avera for this test.
2574 Here is a matrix of mmap possibilities:
2575 mmap private not fixed
2576 mmap private fixed at somewhere currently unmapped
2577 mmap private fixed at somewhere already mapped
2578 mmap shared not fixed
2579 mmap shared fixed at somewhere currently unmapped
2580 mmap shared fixed at somewhere already mapped
2581 For private mappings, we should verify that changes cannot be read()
2582 back from the file, nor mmap's back from the file at a different
2583 address. (There have been systems where private was not correctly
2584 implemented like the infamous i386 svr4.0, and systems where the
2585 VM page cache was not coherent with the filesystem buffer cache
2586 like early versions of FreeBSD and possibly contemporary NetBSD.)
2587 For shared mappings, we should conversely verify that changes get
2588 propogated back to all the places they're supposed to be.
2589
2590 Grep wants private fixed already mapped.
2591 The main things grep needs to know about mmap are:
2592 * does it exist and is it safe to write into the mmap'd area
2593 * how to use it (BSD variants) */
2594#include <sys/types.h>
2595#include <fcntl.h>
2596#include <sys/mman.h>
2597
2598/* This mess was copied from the GNU getpagesize.h. */
2599#ifndef HAVE_GETPAGESIZE
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002600# ifdef HAVE_UNISTD_H
2601# include <unistd.h>
2602# endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002603
2604/* Assume that all systems that can run configure have sys/param.h. */
2605# ifndef HAVE_SYS_PARAM_H
2606# define HAVE_SYS_PARAM_H 1
2607# endif
2608
2609# ifdef _SC_PAGESIZE
2610# define getpagesize() sysconf(_SC_PAGESIZE)
2611# else /* no _SC_PAGESIZE */
2612# ifdef HAVE_SYS_PARAM_H
2613# include <sys/param.h>
2614# ifdef EXEC_PAGESIZE
2615# define getpagesize() EXEC_PAGESIZE
2616# else /* no EXEC_PAGESIZE */
2617# ifdef NBPG
2618# define getpagesize() NBPG * CLSIZE
2619# ifndef CLSIZE
2620# define CLSIZE 1
2621# endif /* no CLSIZE */
2622# else /* no NBPG */
2623# ifdef NBPC
2624# define getpagesize() NBPC
2625# else /* no NBPC */
2626# ifdef PAGESIZE
2627# define getpagesize() PAGESIZE
2628# endif /* PAGESIZE */
2629# endif /* no NBPC */
2630# endif /* no NBPG */
2631# endif /* no EXEC_PAGESIZE */
2632# else /* no HAVE_SYS_PARAM_H */
2633# define getpagesize() 8192 /* punt totally */
2634# endif /* no HAVE_SYS_PARAM_H */
2635# endif /* no _SC_PAGESIZE */
2636
2637#endif /* no HAVE_GETPAGESIZE */
2638
2639#ifdef __cplusplus
2640extern "C" { void *malloc(unsigned); }
2641#else
2642char *malloc();
2643#endif
2644
2645int
2646main()
2647{
2648 char *data, *data2, *data3;
2649 int i, pagesize;
2650 int fd;
2651
2652 pagesize = getpagesize();
2653
2654 /*
2655 * First, make a file with some known garbage in it.
2656 */
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002657 data = malloc(pagesize);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002658 if (!data)
2659 exit(1);
2660 for (i = 0; i < pagesize; ++i)
2661 *(data + i) = rand();
2662 umask(0);
2663 fd = creat("conftestmmap", 0600);
2664 if (fd < 0)
2665 exit(1);
2666 if (write(fd, data, pagesize) != pagesize)
2667 exit(1);
2668 close(fd);
2669
2670 /*
2671 * Next, try to mmap the file at a fixed address which
2672 * already has something else allocated at it. If we can,
2673 * also make sure that we see the same garbage.
2674 */
2675 fd = open("conftestmmap", O_RDWR);
2676 if (fd < 0)
2677 exit(1);
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002678 data2 = malloc(2 * pagesize);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002679 if (!data2)
2680 exit(1);
2681 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2682 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2683 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2684 exit(1);
2685 for (i = 0; i < pagesize; ++i)
2686 if (*(data + i) != *(data2 + i))
2687 exit(1);
2688
2689 /*
2690 * Finally, make sure that changes to the mapped area
2691 * do not percolate back to the file as seen by read().
2692 * (This is a bug on some variants of i386 svr4.0.)
2693 */
2694 for (i = 0; i < pagesize; ++i)
2695 *(data2 + i) = *(data2 + i) + 1;
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002696 data3 = malloc(pagesize);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002697 if (!data3)
2698 exit(1);
2699 if (read(fd, data3, pagesize) != pagesize)
2700 exit(1);
2701 for (i = 0; i < pagesize; ++i)
2702 if (*(data + i) != *(data3 + i))
2703 exit(1);
2704 close(fd);
2705 unlink("conftestmmap");
2706 exit(0);
2707}
2708
2709EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04002710if { (eval echo configure:2711: \"$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 +00002711then
2712 ac_cv_func_mmap_fixed_mapped=yes
2713else
2714 echo "configure: failed program was:" >&5
2715 cat conftest.$ac_ext >&5
2716 rm -fr conftest*
2717 ac_cv_func_mmap_fixed_mapped=no
2718fi
2719rm -fr conftest*
2720fi
2721
2722fi
2723
2724echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2725if test $ac_cv_func_mmap_fixed_mapped = yes; then
2726 cat >> confdefs.h <<\EOF
2727#define HAVE_MMAP 1
2728EOF
2729
2730fi
2731
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002732
2733 echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04002734echo "configure:2735: checking whether we are using the GNU C Library 2.1 or newer" >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002735if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
2736 echo $ac_n "(cached) $ac_c" 1>&6
2737else
2738 cat > conftest.$ac_ext <<EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04002739#line 2740 "configure"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002740#include "confdefs.h"
2741
2742#include <features.h>
2743#ifdef __GNU_LIBRARY__
2744 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
2745 Lucky GNU user
2746 #endif
2747#endif
2748
2749EOF
2750if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2751 egrep "Lucky GNU user" >/dev/null 2>&1; then
2752 rm -rf conftest*
2753 ac_cv_gnu_library_2_1=yes
2754else
2755 rm -rf conftest*
2756 ac_cv_gnu_library_2_1=no
2757fi
2758rm -f conftest*
2759
2760
2761
2762fi
2763
2764echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
2765
2766 GLIBC21="$ac_cv_gnu_library_2_1"
2767
2768
2769
2770
2771 echo $ac_n "checking whether integer division by zero raises SIGFPE""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04002772echo "configure:2773: checking whether integer division by zero raises SIGFPE" >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002773if eval "test \"`echo '$''{'gt_cv_int_divbyzero_sigfpe'+set}'`\" = set"; then
2774 echo $ac_n "(cached) $ac_c" 1>&6
2775else
2776
2777 if test "$cross_compiling" = yes; then
2778
2779 # Guess based on the CPU.
2780 case "$host_cpu" in
2781 alpha* | i3456786 | m68k | s390*)
2782 gt_cv_int_divbyzero_sigfpe="guessing yes";;
2783 *)
2784 gt_cv_int_divbyzero_sigfpe="guessing no";;
2785 esac
2786
2787else
2788 cat > conftest.$ac_ext <<EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04002789#line 2790 "configure"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002790#include "confdefs.h"
2791
2792#include <stdlib.h>
2793#include <signal.h>
2794
2795static void
2796#ifdef __cplusplus
2797sigfpe_handler (int sig)
2798#else
2799sigfpe_handler (sig) int sig;
2800#endif
2801{
2802 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
2803 exit (sig != SIGFPE);
2804}
2805
2806int x = 1;
2807int y = 0;
2808int z;
2809int nan;
2810
2811int main ()
2812{
2813 signal (SIGFPE, sigfpe_handler);
2814/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
2815#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
2816 signal (SIGTRAP, sigfpe_handler);
2817#endif
2818/* Linux/SPARC yields signal SIGILL. */
2819#if defined (__sparc__) && defined (__linux__)
2820 signal (SIGILL, sigfpe_handler);
2821#endif
2822
2823 z = x / y;
2824 nan = y / y;
2825 exit (1);
2826}
2827
2828EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04002829if { (eval echo configure:2830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002830then
2831 gt_cv_int_divbyzero_sigfpe=yes
2832else
2833 echo "configure: failed program was:" >&5
2834 cat conftest.$ac_ext >&5
2835 rm -fr conftest*
2836 gt_cv_int_divbyzero_sigfpe=no
2837fi
2838rm -fr conftest*
2839fi
2840
2841
2842fi
2843
2844echo "$ac_t""$gt_cv_int_divbyzero_sigfpe" 1>&6
2845 case "$gt_cv_int_divbyzero_sigfpe" in
2846 *yes) value=1;;
2847 *) value=0;;
2848 esac
2849 cat >> confdefs.h <<EOF
2850#define INTDIV0_RAISES_SIGFPE $value
2851EOF
2852
2853
2854
2855
2856
2857 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
2858
2859 test $ac_cv_type_unsigned_long_long = yes \
2860 && ac_type='unsigned long long' \
2861 || ac_type='unsigned long'
2862 cat >> confdefs.h <<EOF
2863#define uintmax_t $ac_type
2864EOF
2865
2866 fi
2867
2868
2869 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04002870echo "configure:2871: checking for inttypes.h" >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002871if eval "test \"`echo '$''{'gt_cv_header_inttypes_h'+set}'`\" = set"; then
2872 echo $ac_n "(cached) $ac_c" 1>&6
2873else
2874
2875 cat > conftest.$ac_ext <<EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04002876#line 2877 "configure"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002877#include "confdefs.h"
2878#include <sys/types.h>
2879#include <inttypes.h>
2880int main() {
2881
2882; return 0; }
2883EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04002884if { (eval echo configure:2885: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002885 rm -rf conftest*
2886 gt_cv_header_inttypes_h=yes
2887else
2888 echo "configure: failed program was:" >&5
2889 cat conftest.$ac_ext >&5
2890 rm -rf conftest*
2891 gt_cv_header_inttypes_h=no
2892fi
2893rm -f conftest*
2894
2895fi
2896
2897echo "$ac_t""$gt_cv_header_inttypes_h" 1>&6
2898 if test $gt_cv_header_inttypes_h = yes; then
2899 cat >> confdefs.h <<EOF
2900#define HAVE_INTTYPES_H 1
2901EOF
2902
2903 fi
2904
2905
2906
2907 if test $gt_cv_header_inttypes_h = yes; then
2908 echo $ac_n "checking whether the inttypes.h PRIxNN macros are broken""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04002909echo "configure:2910: checking whether the inttypes.h PRIxNN macros are broken" >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002910if eval "test \"`echo '$''{'gt_cv_inttypes_pri_broken'+set}'`\" = set"; then
2911 echo $ac_n "(cached) $ac_c" 1>&6
2912else
2913
2914 cat > conftest.$ac_ext <<EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04002915#line 2916 "configure"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002916#include "confdefs.h"
2917#include <inttypes.h>
2918#ifdef PRId32
2919char *p = PRId32;
2920#endif
2921
2922int main() {
2923
2924; return 0; }
2925EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04002926if { (eval echo configure:2927: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002927 rm -rf conftest*
2928 gt_cv_inttypes_pri_broken=no
2929else
2930 echo "configure: failed program was:" >&5
2931 cat conftest.$ac_ext >&5
2932 rm -rf conftest*
2933 gt_cv_inttypes_pri_broken=yes
2934fi
2935rm -f conftest*
2936
2937fi
2938
2939echo "$ac_t""$gt_cv_inttypes_pri_broken" 1>&6
2940 fi
2941 if test "$gt_cv_inttypes_pri_broken" = yes; then
2942 cat >> confdefs.h <<EOF
2943#define PRI_MACROS_BROKEN 1
2944EOF
2945
2946 fi
2947
2948
2949
2950
2951
2952
2953
2954 use_additional=yes
2955
2956 acl_save_prefix="$prefix"
2957 prefix="$acl_final_prefix"
2958 acl_save_exec_prefix="$exec_prefix"
2959 exec_prefix="$acl_final_exec_prefix"
2960
2961 eval additional_includedir=\"$includedir\"
2962 eval additional_libdir=\"$libdir\"
2963
2964 exec_prefix="$acl_save_exec_prefix"
2965 prefix="$acl_save_prefix"
2966
2967 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
2968if test "${with_libiconv_prefix+set}" = set; then
2969 withval="$with_libiconv_prefix"
2970
2971 if test "X$withval" = "Xno"; then
2972 use_additional=no
2973 else
2974 if test "X$withval" = "X"; then
2975
2976 acl_save_prefix="$prefix"
2977 prefix="$acl_final_prefix"
2978 acl_save_exec_prefix="$exec_prefix"
2979 exec_prefix="$acl_final_exec_prefix"
2980
2981 eval additional_includedir=\"$includedir\"
2982 eval additional_libdir=\"$libdir\"
2983
2984 exec_prefix="$acl_save_exec_prefix"
2985 prefix="$acl_save_prefix"
2986
2987 else
2988 additional_includedir="$withval/include"
2989 additional_libdir="$withval/lib"
2990 fi
2991 fi
2992
2993fi
2994
2995 LIBICONV=
2996 LTLIBICONV=
2997 INCICONV=
2998 rpathdirs=
2999 ltrpathdirs=
3000 names_already_handled=
3001 names_next_round='iconv '
3002 while test -n "$names_next_round"; do
3003 names_this_round="$names_next_round"
3004 names_next_round=
3005 for name in $names_this_round; do
3006 already_handled=
3007 for n in $names_already_handled; do
3008 if test "$n" = "$name"; then
3009 already_handled=yes
3010 break
3011 fi
3012 done
3013 if test -z "$already_handled"; then
3014 names_already_handled="$names_already_handled $name"
3015 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
3016 eval value=\"\$HAVE_LIB$uppername\"
3017 if test -n "$value"; then
3018 if test "$value" = yes; then
3019 eval value=\"\$LIB$uppername\"
3020 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
3021 eval value=\"\$LTLIB$uppername\"
3022 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
3023 else
3024 :
3025 fi
3026 else
3027 found_dir=
3028 found_la=
3029 found_so=
3030 found_a=
3031 if test $use_additional = yes; then
3032 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
3033 found_dir="$additional_libdir"
3034 found_so="$additional_libdir/lib$name.$shlibext"
3035 if test -f "$additional_libdir/lib$name.la"; then
3036 found_la="$additional_libdir/lib$name.la"
3037 fi
3038 else
3039 if test -f "$additional_libdir/lib$name.$libext"; then
3040 found_dir="$additional_libdir"
3041 found_a="$additional_libdir/lib$name.$libext"
3042 if test -f "$additional_libdir/lib$name.la"; then
3043 found_la="$additional_libdir/lib$name.la"
3044 fi
3045 fi
3046 fi
3047 fi
3048 if test "X$found_dir" = "X"; then
3049 for x in $LDFLAGS $LTLIBICONV; do
3050
3051 acl_save_prefix="$prefix"
3052 prefix="$acl_final_prefix"
3053 acl_save_exec_prefix="$exec_prefix"
3054 exec_prefix="$acl_final_exec_prefix"
3055 eval x=\"$x\"
3056 exec_prefix="$acl_save_exec_prefix"
3057 prefix="$acl_save_prefix"
3058
3059 case "$x" in
3060 -L*)
3061 dir=`echo "X$x" | sed -e 's/^X-L//'`
3062 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
3063 found_dir="$dir"
3064 found_so="$dir/lib$name.$shlibext"
3065 if test -f "$dir/lib$name.la"; then
3066 found_la="$dir/lib$name.la"
3067 fi
3068 else
3069 if test -f "$dir/lib$name.$libext"; then
3070 found_dir="$dir"
3071 found_a="$dir/lib$name.$libext"
3072 if test -f "$dir/lib$name.la"; then
3073 found_la="$dir/lib$name.la"
3074 fi
3075 fi
3076 fi
3077 ;;
3078 esac
3079 if test "X$found_dir" != "X"; then
3080 break
3081 fi
3082 done
3083 fi
3084 if test "X$found_dir" != "X"; then
3085 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
3086 if test "X$found_so" != "X"; then
3087 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
3088 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
3089 else
3090 haveit=
3091 for x in $ltrpathdirs; do
3092 if test "X$x" = "X$found_dir"; then
3093 haveit=yes
3094 break
3095 fi
3096 done
3097 if test -z "$haveit"; then
3098 ltrpathdirs="$ltrpathdirs $found_dir"
3099 fi
3100 if test "$hardcode_direct" = yes; then
3101 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
3102 else
3103 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
3104 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
3105 haveit=
3106 for x in $rpathdirs; do
3107 if test "X$x" = "X$found_dir"; then
3108 haveit=yes
3109 break
3110 fi
3111 done
3112 if test -z "$haveit"; then
3113 rpathdirs="$rpathdirs $found_dir"
3114 fi
3115 else
3116 haveit=
3117 for x in $LDFLAGS $LIBICONV; do
3118
3119 acl_save_prefix="$prefix"
3120 prefix="$acl_final_prefix"
3121 acl_save_exec_prefix="$exec_prefix"
3122 exec_prefix="$acl_final_exec_prefix"
3123 eval x=\"$x\"
3124 exec_prefix="$acl_save_exec_prefix"
3125 prefix="$acl_save_prefix"
3126
3127 if test "X$x" = "X-L$found_dir"; then
3128 haveit=yes
3129 break
3130 fi
3131 done
3132 if test -z "$haveit"; then
3133 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
3134 fi
3135 if test "$hardcode_minus_L" != no; then
3136 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
3137 else
3138 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
3139 fi
3140 fi
3141 fi
3142 fi
3143 else
3144 if test "X$found_a" != "X"; then
3145 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
3146 else
3147 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
3148 fi
3149 fi
3150 additional_includedir=
3151 case "$found_dir" in
3152 */lib | */lib/)
3153 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
3154 additional_includedir="$basedir/include"
3155 ;;
3156 esac
3157 if test "X$additional_includedir" != "X"; then
3158 if test "X$additional_includedir" != "X/usr/include"; then
3159 haveit=
3160 if test "X$additional_includedir" = "X/usr/local/include"; then
3161 if test -n "$GCC"; then
3162 case $host_os in
3163 linux*) haveit=yes;;
3164 esac
3165 fi
3166 fi
3167 if test -z "$haveit"; then
3168 for x in $CPPFLAGS $INCICONV; do
3169
3170 acl_save_prefix="$prefix"
3171 prefix="$acl_final_prefix"
3172 acl_save_exec_prefix="$exec_prefix"
3173 exec_prefix="$acl_final_exec_prefix"
3174 eval x=\"$x\"
3175 exec_prefix="$acl_save_exec_prefix"
3176 prefix="$acl_save_prefix"
3177
3178 if test "X$x" = "X-I$additional_includedir"; then
3179 haveit=yes
3180 break
3181 fi
3182 done
3183 if test -z "$haveit"; then
3184 if test -d "$additional_includedir"; then
3185 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
3186 fi
3187 fi
3188 fi
3189 fi
3190 fi
3191 if test -n "$found_la"; then
3192 save_libdir="$libdir"
3193 case "$found_la" in
3194 */* | *\\*) . "$found_la" ;;
3195 *) . "./$found_la" ;;
3196 esac
3197 libdir="$save_libdir"
3198 for dep in $dependency_libs; do
3199 case "$dep" in
3200 -L*)
3201 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
3202 if test "X$additional_libdir" != "X/usr/lib"; then
3203 haveit=
3204 if test "X$additional_libdir" = "X/usr/local/lib"; then
3205 if test -n "$GCC"; then
3206 case $host_os in
3207 linux*) haveit=yes;;
3208 esac
3209 fi
3210 fi
3211 if test -z "$haveit"; then
3212 haveit=
3213 for x in $LDFLAGS $LIBICONV; do
3214
3215 acl_save_prefix="$prefix"
3216 prefix="$acl_final_prefix"
3217 acl_save_exec_prefix="$exec_prefix"
3218 exec_prefix="$acl_final_exec_prefix"
3219 eval x=\"$x\"
3220 exec_prefix="$acl_save_exec_prefix"
3221 prefix="$acl_save_prefix"
3222
3223 if test "X$x" = "X-L$additional_libdir"; then
3224 haveit=yes
3225 break
3226 fi
3227 done
3228 if test -z "$haveit"; then
3229 if test -d "$additional_libdir"; then
3230 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
3231 fi
3232 fi
3233 haveit=
3234 for x in $LDFLAGS $LTLIBICONV; do
3235
3236 acl_save_prefix="$prefix"
3237 prefix="$acl_final_prefix"
3238 acl_save_exec_prefix="$exec_prefix"
3239 exec_prefix="$acl_final_exec_prefix"
3240 eval x=\"$x\"
3241 exec_prefix="$acl_save_exec_prefix"
3242 prefix="$acl_save_prefix"
3243
3244 if test "X$x" = "X-L$additional_libdir"; then
3245 haveit=yes
3246 break
3247 fi
3248 done
3249 if test -z "$haveit"; then
3250 if test -d "$additional_libdir"; then
3251 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
3252 fi
3253 fi
3254 fi
3255 fi
3256 ;;
3257 -R*)
3258 dir=`echo "X$dep" | sed -e 's/^X-R//'`
3259 if test "$enable_rpath" != no; then
3260 haveit=
3261 for x in $rpathdirs; do
3262 if test "X$x" = "X$dir"; then
3263 haveit=yes
3264 break
3265 fi
3266 done
3267 if test -z "$haveit"; then
3268 rpathdirs="$rpathdirs $dir"
3269 fi
3270 haveit=
3271 for x in $ltrpathdirs; do
3272 if test "X$x" = "X$dir"; then
3273 haveit=yes
3274 break
3275 fi
3276 done
3277 if test -z "$haveit"; then
3278 ltrpathdirs="$ltrpathdirs $dir"
3279 fi
3280 fi
3281 ;;
3282 -l*)
3283 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
3284 ;;
3285 *.la)
3286 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
3287 ;;
3288 *)
3289 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
3290 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
3291 ;;
3292 esac
3293 done
3294 fi
3295 else
3296 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
3297 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
3298 fi
3299 fi
3300 fi
3301 done
3302 done
3303 if test "X$rpathdirs" != "X"; then
3304 if test -n "$hardcode_libdir_separator"; then
3305 alldirs=
3306 for found_dir in $rpathdirs; do
3307 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
3308 done
3309 acl_save_libdir="$libdir"
3310 libdir="$alldirs"
3311 eval flag=\"$hardcode_libdir_flag_spec\"
3312 libdir="$acl_save_libdir"
3313 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
3314 else
3315 for found_dir in $rpathdirs; do
3316 acl_save_libdir="$libdir"
3317 libdir="$found_dir"
3318 eval flag=\"$hardcode_libdir_flag_spec\"
3319 libdir="$acl_save_libdir"
3320 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
3321 done
3322 fi
3323 fi
3324 if test "X$ltrpathdirs" != "X"; then
3325 for found_dir in $ltrpathdirs; do
3326 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
3327 done
3328 fi
3329
3330
3331
3332
3333
3334 # Extract the first word of "msgfmt", so it can be a program name with args.
3335set dummy msgfmt; ac_word=$2
3336echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04003337echo "configure:3338: checking for $ac_word" >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003338if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3339 echo $ac_n "(cached) $ac_c" 1>&6
3340else
3341 case "$MSGFMT" in
3342 /*)
3343 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3344 ;;
3345 *)
3346 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3347 for ac_dir in $PATH; do
3348 test -z "$ac_dir" && ac_dir=.
3349 if test -f $ac_dir/$ac_word; then
3350 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
3351 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3352 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3353 break
3354 fi
3355 fi
3356 done
3357 IFS="$ac_save_ifs"
3358 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
3359 ;;
3360esac
3361fi
3362MSGFMT="$ac_cv_path_MSGFMT"
3363if test "$MSGFMT" != ":"; then
3364 echo "$ac_t""$MSGFMT" 1>&6
3365else
3366 echo "$ac_t""no" 1>&6
3367fi
3368
3369 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3370set dummy gmsgfmt; ac_word=$2
3371echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04003372echo "configure:3373: checking for $ac_word" >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003373if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3374 echo $ac_n "(cached) $ac_c" 1>&6
3375else
3376 case "$GMSGFMT" in
3377 /*)
3378 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3379 ;;
3380 ?:/*)
3381 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3382 ;;
3383 *)
3384 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3385 ac_dummy="$PATH"
3386 for ac_dir in $ac_dummy; do
3387 test -z "$ac_dir" && ac_dir=.
3388 if test -f $ac_dir/$ac_word; then
3389 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3390 break
3391 fi
3392 done
3393 IFS="$ac_save_ifs"
3394 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3395 ;;
3396esac
3397fi
3398GMSGFMT="$ac_cv_path_GMSGFMT"
3399if test -n "$GMSGFMT"; then
3400 echo "$ac_t""$GMSGFMT" 1>&6
3401else
3402 echo "$ac_t""no" 1>&6
3403fi
3404
3405
3406 # Extract the first word of "xgettext", so it can be a program name with args.
3407set dummy xgettext; ac_word=$2
3408echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04003409echo "configure:3410: checking for $ac_word" >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003410if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3411 echo $ac_n "(cached) $ac_c" 1>&6
3412else
3413 case "$XGETTEXT" in
3414 /*)
3415 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3416 ;;
3417 *)
3418 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3419 for ac_dir in $PATH; do
3420 test -z "$ac_dir" && ac_dir=.
3421 if test -f $ac_dir/$ac_word; then
3422 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
3423 (if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3424 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3425 break
3426 fi
3427 fi
3428 done
3429 IFS="$ac_save_ifs"
3430 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3431 ;;
3432esac
3433fi
3434XGETTEXT="$ac_cv_path_XGETTEXT"
3435if test "$XGETTEXT" != ":"; then
3436 echo "$ac_t""$XGETTEXT" 1>&6
3437else
3438 echo "$ac_t""no" 1>&6
3439fi
3440
3441 rm -f messages.po
3442
3443 # Extract the first word of "msgmerge", so it can be a program name with args.
3444set dummy msgmerge; ac_word=$2
3445echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04003446echo "configure:3447: checking for $ac_word" >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003447if eval "test \"`echo '$''{'ac_cv_path_MSGMERGE'+set}'`\" = set"; then
3448 echo $ac_n "(cached) $ac_c" 1>&6
3449else
3450 case "$MSGMERGE" in
3451 /*)
3452 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
3453 ;;
3454 *)
3455 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3456 for ac_dir in $PATH; do
3457 test -z "$ac_dir" && ac_dir=.
3458 if test -f $ac_dir/$ac_word; then
3459 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
3460 ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
3461 break
3462 fi
3463 fi
3464 done
3465 IFS="$ac_save_ifs"
3466 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
3467 ;;
3468esac
3469fi
3470MSGMERGE="$ac_cv_path_MSGMERGE"
3471if test "$MSGMERGE" != ":"; then
3472 echo "$ac_t""$MSGMERGE" 1>&6
3473else
3474 echo "$ac_t""no" 1>&6
3475fi
3476
3477
3478 if test "$GMSGFMT" != ":"; then
3479 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
3480 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3481 : ;
3482 else
3483 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
3484 echo "$ac_t""found $GMSGFMT program is not GNU msgfmt; ignore it" 1>&6
3485 GMSGFMT=":"
3486 fi
3487 fi
3488
3489 if test "$XGETTEXT" != ":"; then
3490 if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
3491 (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3492 : ;
3493 else
3494 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
3495 XGETTEXT=":"
3496 fi
3497 rm -f messages.po
3498 fi
3499
3500
3501
3502
3503
3504 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
3505stdlib.h string.h unistd.h sys/param.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003506do
3507ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3508echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04003509echo "configure:3510: checking for $ac_hdr" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003510if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3511 echo $ac_n "(cached) $ac_c" 1>&6
3512else
3513 cat > conftest.$ac_ext <<EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04003514#line 3515 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003515#include "confdefs.h"
3516#include <$ac_hdr>
3517EOF
3518ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04003519{ (eval echo configure:3520: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003520ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3521if test -z "$ac_err"; then
3522 rm -rf conftest*
3523 eval "ac_cv_header_$ac_safe=yes"
3524else
3525 echo "$ac_err" >&5
3526 echo "configure: failed program was:" >&5
3527 cat conftest.$ac_ext >&5
3528 rm -rf conftest*
3529 eval "ac_cv_header_$ac_safe=no"
3530fi
3531rm -f conftest*
3532fi
3533if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3534 echo "$ac_t""yes" 1>&6
3535 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3536 cat >> confdefs.h <<EOF
3537#define $ac_tr_hdr 1
3538EOF
3539
3540else
3541 echo "$ac_t""no" 1>&6
3542fi
3543done
3544
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003545 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
3546geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
3547strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003548do
3549echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04003550echo "configure:3551: checking for $ac_func" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003551if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3552 echo $ac_n "(cached) $ac_c" 1>&6
3553else
3554 cat > conftest.$ac_ext <<EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04003555#line 3556 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003556#include "confdefs.h"
3557/* System header to define __stub macros and hopefully few prototypes,
3558 which can conflict with char $ac_func(); below. */
3559#include <assert.h>
3560/* Override any gcc2 internal prototype to avoid an error. */
3561/* We use char because int might match the return type of a gcc2
3562 builtin and then its argument prototype would still apply. */
3563char $ac_func();
3564
3565int main() {
3566
3567/* The GNU C library defines this for functions which it implements
3568 to always fail with ENOSYS. Some functions are actually named
3569 something starting with __ and the normal name is an alias. */
3570#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3571choke me
3572#else
3573$ac_func();
3574#endif
3575
3576; return 0; }
3577EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04003578if { (eval echo configure:3579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003579 rm -rf conftest*
3580 eval "ac_cv_func_$ac_func=yes"
3581else
3582 echo "configure: failed program was:" >&5
3583 cat conftest.$ac_ext >&5
3584 rm -rf conftest*
3585 eval "ac_cv_func_$ac_func=no"
3586fi
3587rm -f conftest*
3588fi
3589
3590if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3591 echo "$ac_t""yes" 1>&6
3592 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3593 cat >> confdefs.h <<EOF
3594#define $ac_tr_func 1
3595EOF
3596
3597else
3598 echo "$ac_t""no" 1>&6
3599fi
3600done
3601
3602
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003603
3604
3605
3606
3607
3608 am_save_CPPFLAGS="$CPPFLAGS"
3609
3610 for element in $INCICONV; do
3611 haveit=
3612 for x in $CPPFLAGS; do
3613
3614 acl_save_prefix="$prefix"
3615 prefix="$acl_final_prefix"
3616 acl_save_exec_prefix="$exec_prefix"
3617 exec_prefix="$acl_final_exec_prefix"
3618 eval x=\"$x\"
3619 exec_prefix="$acl_save_exec_prefix"
3620 prefix="$acl_save_prefix"
3621
3622 if test "X$x" = "X$element"; then
3623 haveit=yes
3624 break
3625 fi
3626 done
3627 if test -z "$haveit"; then
3628 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
3629 fi
3630 done
3631
3632
3633 echo $ac_n "checking for iconv""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04003634echo "configure:3635: checking for iconv" >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003635if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003636 echo $ac_n "(cached) $ac_c" 1>&6
3637else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003638
3639 am_cv_func_iconv="no, consider installing GNU libiconv"
3640 am_cv_lib_iconv=no
3641 cat > conftest.$ac_ext <<EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04003642#line 3643 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003643#include "confdefs.h"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003644#include <stdlib.h>
3645#include <iconv.h>
3646int main() {
3647iconv_t cd = iconv_open("","");
3648 iconv(cd,NULL,NULL,NULL,NULL);
3649 iconv_close(cd);
3650; return 0; }
3651EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04003652if { (eval echo configure:3653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003653 rm -rf conftest*
3654 am_cv_func_iconv=yes
3655else
3656 echo "configure: failed program was:" >&5
3657 cat conftest.$ac_ext >&5
3658fi
3659rm -f conftest*
3660 if test "$am_cv_func_iconv" != yes; then
3661 am_save_LIBS="$LIBS"
3662 LIBS="$LIBS $LIBICONV"
3663 cat > conftest.$ac_ext <<EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04003664#line 3665 "configure"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003665#include "confdefs.h"
3666#include <stdlib.h>
3667#include <iconv.h>
3668int main() {
3669iconv_t cd = iconv_open("","");
3670 iconv(cd,NULL,NULL,NULL,NULL);
3671 iconv_close(cd);
3672; return 0; }
3673EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04003674if { (eval echo configure:3675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003675 rm -rf conftest*
3676 am_cv_lib_iconv=yes
3677 am_cv_func_iconv=yes
3678else
3679 echo "configure: failed program was:" >&5
3680 cat conftest.$ac_ext >&5
3681fi
3682rm -f conftest*
3683 LIBS="$am_save_LIBS"
3684 fi
3685
3686fi
3687
3688echo "$ac_t""$am_cv_func_iconv" 1>&6
3689 if test "$am_cv_func_iconv" = yes; then
3690 cat >> confdefs.h <<\EOF
3691#define HAVE_ICONV 1
3692EOF
3693
3694 fi
3695 if test "$am_cv_lib_iconv" = yes; then
3696 echo $ac_n "checking how to link with libiconv""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04003697echo "configure:3698: checking how to link with libiconv" >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003698 echo "$ac_t""$LIBICONV" 1>&6
3699 else
3700 CPPFLAGS="$am_save_CPPFLAGS"
3701 LIBICONV=
3702 LTLIBICONV=
3703 fi
3704
3705
3706
3707 if test "$am_cv_func_iconv" = yes; then
3708 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04003709echo "configure:3710: checking for iconv declaration" >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003710 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
3711 echo $ac_n "(cached) $ac_c" 1>&6
3712else
3713
3714 cat > conftest.$ac_ext <<EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04003715#line 3716 "configure"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003716#include "confdefs.h"
3717
3718#include <stdlib.h>
3719#include <iconv.h>
3720extern
3721#ifdef __cplusplus
3722"C"
3723#endif
3724#if defined(__STDC__) || defined(__cplusplus)
3725size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
3726#else
3727size_t iconv();
3728#endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003729
3730int main() {
3731
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003732; return 0; }
3733EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04003734if { (eval echo configure:3735: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003735 rm -rf conftest*
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003736 am_cv_proto_iconv_arg1=""
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003737else
3738 echo "configure: failed program was:" >&5
3739 cat conftest.$ac_ext >&5
3740 rm -rf conftest*
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003741 am_cv_proto_iconv_arg1="const"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003742fi
3743rm -f conftest*
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003744 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003745fi
3746
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003747 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
3748 echo "$ac_t""${ac_t:-
3749 }$am_cv_proto_iconv" 1>&6
3750 cat >> confdefs.h <<EOF
3751#define ICONV_CONST $am_cv_proto_iconv_arg1
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003752EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003753
3754 fi
3755
3756
3757 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04003758echo "configure:3759: checking for nl_langinfo and CODESET" >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003759if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
3760 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003761else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003762 cat > conftest.$ac_ext <<EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04003763#line 3764 "configure"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003764#include "confdefs.h"
3765#include <langinfo.h>
3766int main() {
3767char* cs = nl_langinfo(CODESET);
3768; return 0; }
3769EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04003770if { (eval echo configure:3771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003771 rm -rf conftest*
3772 am_cv_langinfo_codeset=yes
3773else
3774 echo "configure: failed program was:" >&5
3775 cat conftest.$ac_ext >&5
3776 rm -rf conftest*
3777 am_cv_langinfo_codeset=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003778fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003779rm -f conftest*
3780
3781fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003782
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003783echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
3784 if test $am_cv_langinfo_codeset = yes; then
3785 cat >> confdefs.h <<\EOF
3786#define HAVE_LANGINFO_CODESET 1
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003787EOF
3788
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003789 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003790
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003791 if test $ac_cv_header_locale_h = yes; then
3792
3793 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04003794echo "configure:3795: checking for LC_MESSAGES" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003795if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3796 echo $ac_n "(cached) $ac_c" 1>&6
3797else
3798 cat > conftest.$ac_ext <<EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04003799#line 3800 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003800#include "confdefs.h"
3801#include <locale.h>
3802int main() {
3803return LC_MESSAGES
3804; return 0; }
3805EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04003806if { (eval echo configure:3807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003807 rm -rf conftest*
3808 am_cv_val_LC_MESSAGES=yes
3809else
3810 echo "configure: failed program was:" >&5
3811 cat conftest.$ac_ext >&5
3812 rm -rf conftest*
3813 am_cv_val_LC_MESSAGES=no
3814fi
3815rm -f conftest*
3816fi
3817
3818echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003819 if test $am_cv_val_LC_MESSAGES = yes; then
3820 cat >> confdefs.h <<\EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003821#define HAVE_LC_MESSAGES 1
3822EOF
3823
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003824 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003825
3826 fi
3827
3828 for ac_prog in bison
3829do
3830# Extract the first word of "$ac_prog", so it can be a program name with args.
3831set dummy $ac_prog; ac_word=$2
3832echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04003833echo "configure:3834: checking for $ac_word" >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003834if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
3835 echo $ac_n "(cached) $ac_c" 1>&6
3836else
3837 if test -n "$INTLBISON"; then
3838 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
3839else
3840 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3841 ac_dummy="$PATH"
3842 for ac_dir in $ac_dummy; do
3843 test -z "$ac_dir" && ac_dir=.
3844 if test -f $ac_dir/$ac_word; then
3845 ac_cv_prog_INTLBISON="$ac_prog"
3846 break
3847 fi
3848 done
3849 IFS="$ac_save_ifs"
3850fi
3851fi
3852INTLBISON="$ac_cv_prog_INTLBISON"
3853if test -n "$INTLBISON"; then
3854 echo "$ac_t""$INTLBISON" 1>&6
3855else
3856 echo "$ac_t""no" 1>&6
3857fi
3858
3859test -n "$INTLBISON" && break
3860done
3861
3862 if test -z "$INTLBISON"; then
3863 ac_verc_fail=yes
3864 else
3865 echo $ac_n "checking version of bison""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04003866echo "configure:3867: checking version of bison" >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003867 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
3868 case $ac_prog_version in
3869 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3870 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
3871 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3872 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3873 esac
3874 echo "$ac_t""$ac_prog_version" 1>&6
3875 fi
3876 if test $ac_verc_fail = yes; then
3877 INTLBISON=:
3878 fi
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04003895echo "configure:3896: checking whether NLS is requested" >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003896 # Check whether --enable-nls or --disable-nls was given.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003897if test "${enable_nls+set}" = set; then
3898 enableval="$enable_nls"
3899 USE_NLS=$enableval
3900else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003901 USE_NLS=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003902fi
3903
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003904 echo "$ac_t""$USE_NLS" 1>&6
3905
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003906
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003907
3908 BUILD_INCLUDED_LIBINTL=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003909 USE_INCLUDED_LIBINTL=no
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003910
3911 LIBINTL=
3912 LTLIBINTL=
3913 POSUB=
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003914
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003915 if test "$USE_NLS" = "yes"; then
3916 gt_use_preinstalled_gnugettext=no
3917
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003918 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04003919echo "configure:3920: checking whether included gettext is requested" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003920 # Check whether --with-included-gettext or --without-included-gettext was given.
3921if test "${with_included_gettext+set}" = set; then
3922 withval="$with_included_gettext"
3923 nls_cv_force_use_gnu_gettext=$withval
3924else
3925 nls_cv_force_use_gnu_gettext=no
3926fi
3927
3928 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3929
3930 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
3931 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003932
3933
3934
3935
3936
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003937
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003938 echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04003939echo "configure:3940: checking for GNU gettext in libc" >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003940if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003941 echo $ac_n "(cached) $ac_c" 1>&6
3942else
3943 cat > conftest.$ac_ext <<EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04003944#line 3945 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003945#include "confdefs.h"
3946#include <libintl.h>
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003947extern int _nl_msg_cat_cntr;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003948extern int *_nl_domain_bindings;
3949int main() {
3950bindtextdomain ("", "");
3951return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003952; return 0; }
3953EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04003954if { (eval echo configure:3955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003955 rm -rf conftest*
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003956 gt_cv_func_gnugettext1_libc=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003957else
3958 echo "configure: failed program was:" >&5
3959 cat conftest.$ac_ext >&5
3960 rm -rf conftest*
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003961 gt_cv_func_gnugettext1_libc=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003962fi
3963rm -f conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003964fi
3965
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003966echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003967
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003968 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
3969
3970
3971
3972 use_additional=yes
3973
3974 acl_save_prefix="$prefix"
3975 prefix="$acl_final_prefix"
3976 acl_save_exec_prefix="$exec_prefix"
3977 exec_prefix="$acl_final_exec_prefix"
3978
3979 eval additional_includedir=\"$includedir\"
3980 eval additional_libdir=\"$libdir\"
3981
3982 exec_prefix="$acl_save_exec_prefix"
3983 prefix="$acl_save_prefix"
3984
3985 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
3986if test "${with_libintl_prefix+set}" = set; then
3987 withval="$with_libintl_prefix"
3988
3989 if test "X$withval" = "Xno"; then
3990 use_additional=no
3991 else
3992 if test "X$withval" = "X"; then
3993
3994 acl_save_prefix="$prefix"
3995 prefix="$acl_final_prefix"
3996 acl_save_exec_prefix="$exec_prefix"
3997 exec_prefix="$acl_final_exec_prefix"
3998
3999 eval additional_includedir=\"$includedir\"
4000 eval additional_libdir=\"$libdir\"
4001
4002 exec_prefix="$acl_save_exec_prefix"
4003 prefix="$acl_save_prefix"
4004
4005 else
4006 additional_includedir="$withval/include"
4007 additional_libdir="$withval/lib"
4008 fi
4009 fi
4010
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004011fi
4012
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004013 LIBINTL=
4014 LTLIBINTL=
4015 INCINTL=
4016 rpathdirs=
4017 ltrpathdirs=
4018 names_already_handled=
4019 names_next_round='intl '
4020 while test -n "$names_next_round"; do
4021 names_this_round="$names_next_round"
4022 names_next_round=
4023 for name in $names_this_round; do
4024 already_handled=
4025 for n in $names_already_handled; do
4026 if test "$n" = "$name"; then
4027 already_handled=yes
4028 break
4029 fi
4030 done
4031 if test -z "$already_handled"; then
4032 names_already_handled="$names_already_handled $name"
4033 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
4034 eval value=\"\$HAVE_LIB$uppername\"
4035 if test -n "$value"; then
4036 if test "$value" = yes; then
4037 eval value=\"\$LIB$uppername\"
4038 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
4039 eval value=\"\$LTLIB$uppername\"
4040 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
4041 else
4042 :
4043 fi
4044 else
4045 found_dir=
4046 found_la=
4047 found_so=
4048 found_a=
4049 if test $use_additional = yes; then
4050 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
4051 found_dir="$additional_libdir"
4052 found_so="$additional_libdir/lib$name.$shlibext"
4053 if test -f "$additional_libdir/lib$name.la"; then
4054 found_la="$additional_libdir/lib$name.la"
4055 fi
4056 else
4057 if test -f "$additional_libdir/lib$name.$libext"; then
4058 found_dir="$additional_libdir"
4059 found_a="$additional_libdir/lib$name.$libext"
4060 if test -f "$additional_libdir/lib$name.la"; then
4061 found_la="$additional_libdir/lib$name.la"
4062 fi
4063 fi
4064 fi
4065 fi
4066 if test "X$found_dir" = "X"; then
4067 for x in $LDFLAGS $LTLIBINTL; do
4068
4069 acl_save_prefix="$prefix"
4070 prefix="$acl_final_prefix"
4071 acl_save_exec_prefix="$exec_prefix"
4072 exec_prefix="$acl_final_exec_prefix"
4073 eval x=\"$x\"
4074 exec_prefix="$acl_save_exec_prefix"
4075 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004076
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004077 case "$x" in
4078 -L*)
4079 dir=`echo "X$x" | sed -e 's/^X-L//'`
4080 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
4081 found_dir="$dir"
4082 found_so="$dir/lib$name.$shlibext"
4083 if test -f "$dir/lib$name.la"; then
4084 found_la="$dir/lib$name.la"
4085 fi
4086 else
4087 if test -f "$dir/lib$name.$libext"; then
4088 found_dir="$dir"
4089 found_a="$dir/lib$name.$libext"
4090 if test -f "$dir/lib$name.la"; then
4091 found_la="$dir/lib$name.la"
4092 fi
4093 fi
4094 fi
4095 ;;
4096 esac
4097 if test "X$found_dir" != "X"; then
4098 break
4099 fi
4100 done
4101 fi
4102 if test "X$found_dir" != "X"; then
4103 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
4104 if test "X$found_so" != "X"; then
4105 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
4106 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
4107 else
4108 haveit=
4109 for x in $ltrpathdirs; do
4110 if test "X$x" = "X$found_dir"; then
4111 haveit=yes
4112 break
4113 fi
4114 done
4115 if test -z "$haveit"; then
4116 ltrpathdirs="$ltrpathdirs $found_dir"
4117 fi
4118 if test "$hardcode_direct" = yes; then
4119 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
4120 else
4121 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
4122 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
4123 haveit=
4124 for x in $rpathdirs; do
4125 if test "X$x" = "X$found_dir"; then
4126 haveit=yes
4127 break
4128 fi
4129 done
4130 if test -z "$haveit"; then
4131 rpathdirs="$rpathdirs $found_dir"
4132 fi
4133 else
4134 haveit=
4135 for x in $LDFLAGS $LIBINTL; do
4136
4137 acl_save_prefix="$prefix"
4138 prefix="$acl_final_prefix"
4139 acl_save_exec_prefix="$exec_prefix"
4140 exec_prefix="$acl_final_exec_prefix"
4141 eval x=\"$x\"
4142 exec_prefix="$acl_save_exec_prefix"
4143 prefix="$acl_save_prefix"
4144
4145 if test "X$x" = "X-L$found_dir"; then
4146 haveit=yes
4147 break
4148 fi
4149 done
4150 if test -z "$haveit"; then
4151 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
4152 fi
4153 if test "$hardcode_minus_L" != no; then
4154 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
4155 else
4156 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
4157 fi
4158 fi
4159 fi
4160 fi
4161 else
4162 if test "X$found_a" != "X"; then
4163 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
4164 else
4165 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
4166 fi
4167 fi
4168 additional_includedir=
4169 case "$found_dir" in
4170 */lib | */lib/)
4171 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
4172 additional_includedir="$basedir/include"
4173 ;;
4174 esac
4175 if test "X$additional_includedir" != "X"; then
4176 if test "X$additional_includedir" != "X/usr/include"; then
4177 haveit=
4178 if test "X$additional_includedir" = "X/usr/local/include"; then
4179 if test -n "$GCC"; then
4180 case $host_os in
4181 linux*) haveit=yes;;
4182 esac
4183 fi
4184 fi
4185 if test -z "$haveit"; then
4186 for x in $CPPFLAGS $INCINTL; do
4187
4188 acl_save_prefix="$prefix"
4189 prefix="$acl_final_prefix"
4190 acl_save_exec_prefix="$exec_prefix"
4191 exec_prefix="$acl_final_exec_prefix"
4192 eval x=\"$x\"
4193 exec_prefix="$acl_save_exec_prefix"
4194 prefix="$acl_save_prefix"
4195
4196 if test "X$x" = "X-I$additional_includedir"; then
4197 haveit=yes
4198 break
4199 fi
4200 done
4201 if test -z "$haveit"; then
4202 if test -d "$additional_includedir"; then
4203 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
4204 fi
4205 fi
4206 fi
4207 fi
4208 fi
4209 if test -n "$found_la"; then
4210 save_libdir="$libdir"
4211 case "$found_la" in
4212 */* | *\\*) . "$found_la" ;;
4213 *) . "./$found_la" ;;
4214 esac
4215 libdir="$save_libdir"
4216 for dep in $dependency_libs; do
4217 case "$dep" in
4218 -L*)
4219 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
4220 if test "X$additional_libdir" != "X/usr/lib"; then
4221 haveit=
4222 if test "X$additional_libdir" = "X/usr/local/lib"; then
4223 if test -n "$GCC"; then
4224 case $host_os in
4225 linux*) haveit=yes;;
4226 esac
4227 fi
4228 fi
4229 if test -z "$haveit"; then
4230 haveit=
4231 for x in $LDFLAGS $LIBINTL; do
4232
4233 acl_save_prefix="$prefix"
4234 prefix="$acl_final_prefix"
4235 acl_save_exec_prefix="$exec_prefix"
4236 exec_prefix="$acl_final_exec_prefix"
4237 eval x=\"$x\"
4238 exec_prefix="$acl_save_exec_prefix"
4239 prefix="$acl_save_prefix"
4240
4241 if test "X$x" = "X-L$additional_libdir"; then
4242 haveit=yes
4243 break
4244 fi
4245 done
4246 if test -z "$haveit"; then
4247 if test -d "$additional_libdir"; then
4248 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
4249 fi
4250 fi
4251 haveit=
4252 for x in $LDFLAGS $LTLIBINTL; do
4253
4254 acl_save_prefix="$prefix"
4255 prefix="$acl_final_prefix"
4256 acl_save_exec_prefix="$exec_prefix"
4257 exec_prefix="$acl_final_exec_prefix"
4258 eval x=\"$x\"
4259 exec_prefix="$acl_save_exec_prefix"
4260 prefix="$acl_save_prefix"
4261
4262 if test "X$x" = "X-L$additional_libdir"; then
4263 haveit=yes
4264 break
4265 fi
4266 done
4267 if test -z "$haveit"; then
4268 if test -d "$additional_libdir"; then
4269 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
4270 fi
4271 fi
4272 fi
4273 fi
4274 ;;
4275 -R*)
4276 dir=`echo "X$dep" | sed -e 's/^X-R//'`
4277 if test "$enable_rpath" != no; then
4278 haveit=
4279 for x in $rpathdirs; do
4280 if test "X$x" = "X$dir"; then
4281 haveit=yes
4282 break
4283 fi
4284 done
4285 if test -z "$haveit"; then
4286 rpathdirs="$rpathdirs $dir"
4287 fi
4288 haveit=
4289 for x in $ltrpathdirs; do
4290 if test "X$x" = "X$dir"; then
4291 haveit=yes
4292 break
4293 fi
4294 done
4295 if test -z "$haveit"; then
4296 ltrpathdirs="$ltrpathdirs $dir"
4297 fi
4298 fi
4299 ;;
4300 -l*)
4301 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
4302 ;;
4303 *.la)
4304 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
4305 ;;
4306 *)
4307 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
4308 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
4309 ;;
4310 esac
4311 done
4312 fi
4313 else
4314 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
4315 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
4316 fi
4317 fi
4318 fi
4319 done
4320 done
4321 if test "X$rpathdirs" != "X"; then
4322 if test -n "$hardcode_libdir_separator"; then
4323 alldirs=
4324 for found_dir in $rpathdirs; do
4325 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
4326 done
4327 acl_save_libdir="$libdir"
4328 libdir="$alldirs"
4329 eval flag=\"$hardcode_libdir_flag_spec\"
4330 libdir="$acl_save_libdir"
4331 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
4332 else
4333 for found_dir in $rpathdirs; do
4334 acl_save_libdir="$libdir"
4335 libdir="$found_dir"
4336 eval flag=\"$hardcode_libdir_flag_spec\"
4337 libdir="$acl_save_libdir"
4338 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
4339 done
4340 fi
4341 fi
4342 if test "X$ltrpathdirs" != "X"; then
4343 for found_dir in $ltrpathdirs; do
4344 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
4345 done
4346 fi
4347
4348 echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04004349echo "configure:4350: checking for GNU gettext in libintl" >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004350if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004351 echo $ac_n "(cached) $ac_c" 1>&6
4352else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004353 gt_save_CPPFLAGS="$CPPFLAGS"
4354 CPPFLAGS="$CPPFLAGS $INCINTL"
4355 gt_save_LIBS="$LIBS"
4356 LIBS="$LIBS $LIBINTL"
4357 cat > conftest.$ac_ext <<EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04004358#line 4359 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004359#include "confdefs.h"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004360#include <libintl.h>
4361extern int _nl_msg_cat_cntr;
4362extern
4363#ifdef __cplusplus
4364"C"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004365#endif
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004366const char *_nl_expand_alias ();
4367int main() {
4368bindtextdomain ("", "");
4369return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004370; return 0; }
4371EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04004372if { (eval echo configure:4373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004373 rm -rf conftest*
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004374 gt_cv_func_gnugettext1_libintl=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004375else
4376 echo "configure: failed program was:" >&5
4377 cat conftest.$ac_ext >&5
4378 rm -rf conftest*
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004379 gt_cv_func_gnugettext1_libintl=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004380fi
4381rm -f conftest*
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004382 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
4383 LIBS="$LIBS $LIBICONV"
4384 cat > conftest.$ac_ext <<EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04004385#line 4386 "configure"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004386#include "confdefs.h"
4387#include <libintl.h>
4388extern int _nl_msg_cat_cntr;
4389extern
4390#ifdef __cplusplus
4391"C"
4392#endif
4393const char *_nl_expand_alias ();
4394int main() {
4395bindtextdomain ("", "");
4396return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
4397; return 0; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004398EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04004399if { (eval echo configure:4400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004400 rm -rf conftest*
4401 LIBINTL="$LIBINTL $LIBICONV"
4402 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
4403 gt_cv_func_gnugettext1_libintl=yes
4404
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004405else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004406 echo "configure: failed program was:" >&5
4407 cat conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004408fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004409rm -f conftest*
4410 fi
4411 CPPFLAGS="$gt_save_CPPFLAGS"
4412 LIBS="$gt_save_LIBS"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004413fi
4414
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004415echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004416 fi
4417
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004418 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
4419 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
4420 && test "$PACKAGE" != gettext; }; then
4421 gt_use_preinstalled_gnugettext=yes
4422 else
4423 LIBINTL=
4424 LTLIBINTL=
4425 INCINTL=
4426 fi
4427
4428
4429 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
4430 nls_cv_use_gnu_gettext=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004431 fi
4432 fi
4433
4434 if test "$nls_cv_use_gnu_gettext" = "yes"; then
4435 INTLOBJS="\$(GETTOBJS)"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004436 BUILD_INCLUDED_LIBINTL=yes
4437 USE_INCLUDED_LIBINTL=yes
4438 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
4439 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
4440 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004441 fi
4442
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004443 if test "$gt_use_preinstalled_gnugettext" = "yes" \
4444 || test "$nls_cv_use_gnu_gettext" = "yes"; then
4445 CATOBJEXT=.gmo
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004446 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004447
4448
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004449 if test "$gt_use_preinstalled_gnugettext" = "yes" \
4450 || test "$nls_cv_use_gnu_gettext" = "yes"; then
4451 cat >> confdefs.h <<\EOF
4452#define ENABLE_NLS 1
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004453EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004454
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004455 else
4456 USE_NLS=no
4457 fi
4458 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004459
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004460 if test "$USE_NLS" = "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004461
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004462 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
4463 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
4464 echo $ac_n "checking how to link with libintl""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04004465echo "configure:4466: checking how to link with libintl" >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004466 echo "$ac_t""$LIBINTL" 1>&6
4467
4468 for element in $INCINTL; do
4469 haveit=
4470 for x in $CPPFLAGS; do
4471
4472 acl_save_prefix="$prefix"
4473 prefix="$acl_final_prefix"
4474 acl_save_exec_prefix="$exec_prefix"
4475 exec_prefix="$acl_final_exec_prefix"
4476 eval x=\"$x\"
4477 exec_prefix="$acl_save_exec_prefix"
4478 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004479
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004480 if test "X$x" = "X$element"; then
4481 haveit=yes
4482 break
4483 fi
4484 done
4485 if test -z "$haveit"; then
4486 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
4487 fi
4488 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004489
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004490 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004491
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004492 cat >> confdefs.h <<\EOF
4493#define HAVE_GETTEXT 1
4494EOF
4495
4496 cat >> confdefs.h <<\EOF
4497#define HAVE_DCGETTEXT 1
4498EOF
4499
4500 fi
4501
4502 POSUB=po
4503 fi
4504
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004505
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004506 if test "$PACKAGE" = gettext; then
4507 BUILD_INCLUDED_LIBINTL=yes
4508 fi
4509
4510
4511
4512
4513
4514
4515 nls_cv_header_intl=
4516 nls_cv_header_libgt=
4517
4518 DATADIRNAME=share
4519
4520
4521 INSTOBJEXT=.mo
4522
4523
4524 GENCAT=gencat
4525
4526
4527 INTL_LIBTOOL_SUFFIX_PREFIX=
4528
4529
4530
4531 INTLLIBS="$LIBINTL"
4532
4533
4534
4535
4536
4537
Theodore Ts'o74becf31997-04-26 14:37:06 +00004538
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004539echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04004540echo "configure:4541: checking whether ${MAKE-make} sets \${MAKE}" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004541set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004542if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
4543 echo $ac_n "(cached) $ac_c" 1>&6
4544else
4545 cat > conftestmake <<\EOF
4546all:
4547 @echo 'ac_maketemp="${MAKE}"'
4548EOF
4549# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4550eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
4551if test -n "$ac_maketemp"; then
4552 eval ac_cv_prog_make_${ac_make}_set=yes
4553else
4554 eval ac_cv_prog_make_${ac_make}_set=no
4555fi
4556rm -f conftestmake
4557fi
4558if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4559 echo "$ac_t""yes" 1>&6
4560 SET_MAKE=
4561else
4562 echo "$ac_t""no" 1>&6
4563 SET_MAKE="MAKE=${MAKE-make}"
4564fi
4565
4566# Extract the first word of "ln", so it can be a program name with args.
4567set dummy ln; ac_word=$2
4568echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04004569echo "configure:4570: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004570if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then
4571 echo $ac_n "(cached) $ac_c" 1>&6
4572else
4573 case "$LN" in
4574 /*)
4575 ac_cv_path_LN="$LN" # Let the user override the test with a path.
4576 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004577 ?:/*)
4578 ac_cv_path_LN="$LN" # Let the user override the test with a dos path.
4579 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004580 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004581 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4582 ac_dummy="$PATH"
4583 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004584 test -z "$ac_dir" && ac_dir=.
4585 if test -f $ac_dir/$ac_word; then
4586 ac_cv_path_LN="$ac_dir/$ac_word"
4587 break
4588 fi
4589 done
4590 IFS="$ac_save_ifs"
4591 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
4592 ;;
4593esac
4594fi
4595LN="$ac_cv_path_LN"
4596if test -n "$LN"; then
4597 echo "$ac_t""$LN" 1>&6
4598else
4599 echo "$ac_t""no" 1>&6
4600fi
4601
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004602echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04004603echo "configure:4604: checking whether ln -s works" >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004604if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
4605 echo $ac_n "(cached) $ac_c" 1>&6
4606else
4607 rm -f conftestdata
4608if ln -s X conftestdata 2>/dev/null
4609then
4610 rm -f conftestdata
4611 ac_cv_prog_LN_S="ln -s"
4612else
4613 ac_cv_prog_LN_S=ln
4614fi
4615fi
4616LN_S="$ac_cv_prog_LN_S"
4617if test "$ac_cv_prog_LN_S" = "ln -s"; then
4618 echo "$ac_t""yes" 1>&6
4619else
4620 echo "$ac_t""no" 1>&6
4621fi
4622
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004623# Extract the first word of "mv", so it can be a program name with args.
4624set dummy mv; ac_word=$2
4625echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04004626echo "configure:4627: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004627if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
4628 echo $ac_n "(cached) $ac_c" 1>&6
4629else
4630 case "$MV" in
4631 /*)
4632 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4633 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004634 ?:/*)
4635 ac_cv_path_MV="$MV" # Let the user override the test with a dos path.
4636 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004637 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004638 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4639 ac_dummy="$PATH"
4640 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004641 test -z "$ac_dir" && ac_dir=.
4642 if test -f $ac_dir/$ac_word; then
4643 ac_cv_path_MV="$ac_dir/$ac_word"
4644 break
4645 fi
4646 done
4647 IFS="$ac_save_ifs"
4648 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4649 ;;
4650esac
4651fi
4652MV="$ac_cv_path_MV"
4653if test -n "$MV"; then
4654 echo "$ac_t""$MV" 1>&6
4655else
4656 echo "$ac_t""no" 1>&6
4657fi
4658
4659# Extract the first word of "cp", so it can be a program name with args.
4660set dummy cp; ac_word=$2
4661echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04004662echo "configure:4663: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004663if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then
4664 echo $ac_n "(cached) $ac_c" 1>&6
4665else
4666 case "$CP" in
4667 /*)
4668 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4669 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004670 ?:/*)
4671 ac_cv_path_CP="$CP" # Let the user override the test with a dos path.
4672 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004673 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004674 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4675 ac_dummy="$PATH"
4676 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004677 test -z "$ac_dir" && ac_dir=.
4678 if test -f $ac_dir/$ac_word; then
4679 ac_cv_path_CP="$ac_dir/$ac_word"
4680 break
4681 fi
4682 done
4683 IFS="$ac_save_ifs"
4684 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4685 ;;
4686esac
4687fi
4688CP="$ac_cv_path_CP"
4689if test -n "$CP"; then
4690 echo "$ac_t""$CP" 1>&6
4691else
4692 echo "$ac_t""no" 1>&6
4693fi
4694
4695# Extract the first word of "rm", so it can be a program name with args.
4696set dummy rm; ac_word=$2
4697echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04004698echo "configure:4699: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004699if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
4700 echo $ac_n "(cached) $ac_c" 1>&6
4701else
4702 case "$RM" in
4703 /*)
4704 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4705 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004706 ?:/*)
4707 ac_cv_path_RM="$RM" # Let the user override the test with a dos path.
4708 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004709 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004710 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4711 ac_dummy="$PATH"
4712 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004713 test -z "$ac_dir" && ac_dir=.
4714 if test -f $ac_dir/$ac_word; then
4715 ac_cv_path_RM="$ac_dir/$ac_word"
4716 break
4717 fi
4718 done
4719 IFS="$ac_save_ifs"
4720 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4721 ;;
4722esac
4723fi
4724RM="$ac_cv_path_RM"
4725if test -n "$RM"; then
4726 echo "$ac_t""$RM" 1>&6
4727else
4728 echo "$ac_t""no" 1>&6
4729fi
4730
4731# Extract the first word of "chmod", so it can be a program name with args.
4732set dummy chmod; ac_word=$2
4733echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04004734echo "configure:4735: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004735if eval "test \"`echo '$''{'ac_cv_path_CHMOD'+set}'`\" = set"; then
4736 echo $ac_n "(cached) $ac_c" 1>&6
4737else
4738 case "$CHMOD" in
4739 /*)
4740 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
4741 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004742 ?:/*)
4743 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a dos path.
4744 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004745 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004746 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4747 ac_dummy="$PATH"
4748 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004749 test -z "$ac_dir" && ac_dir=.
4750 if test -f $ac_dir/$ac_word; then
4751 ac_cv_path_CHMOD="$ac_dir/$ac_word"
4752 break
4753 fi
4754 done
4755 IFS="$ac_save_ifs"
4756 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
4757 ;;
4758esac
4759fi
4760CHMOD="$ac_cv_path_CHMOD"
4761if test -n "$CHMOD"; then
4762 echo "$ac_t""$CHMOD" 1>&6
4763else
4764 echo "$ac_t""no" 1>&6
4765fi
4766
4767# Extract the first word of "awk", so it can be a program name with args.
4768set dummy awk; ac_word=$2
4769echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04004770echo "configure:4771: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004771if eval "test \"`echo '$''{'ac_cv_path_AWK'+set}'`\" = set"; then
4772 echo $ac_n "(cached) $ac_c" 1>&6
4773else
4774 case "$AWK" in
4775 /*)
4776 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4777 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004778 ?:/*)
4779 ac_cv_path_AWK="$AWK" # Let the user override the test with a dos path.
4780 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004781 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004782 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4783 ac_dummy="$PATH"
4784 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004785 test -z "$ac_dir" && ac_dir=.
4786 if test -f $ac_dir/$ac_word; then
4787 ac_cv_path_AWK="$ac_dir/$ac_word"
4788 break
4789 fi
4790 done
4791 IFS="$ac_save_ifs"
4792 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
4793 ;;
4794esac
4795fi
4796AWK="$ac_cv_path_AWK"
4797if test -n "$AWK"; then
4798 echo "$ac_t""$AWK" 1>&6
4799else
4800 echo "$ac_t""no" 1>&6
4801fi
4802
4803# Extract the first word of "sed", so it can be a program name with args.
4804set dummy sed; ac_word=$2
4805echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04004806echo "configure:4807: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004807if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then
4808 echo $ac_n "(cached) $ac_c" 1>&6
4809else
4810 case "$SED" in
4811 /*)
4812 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4813 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004814 ?:/*)
4815 ac_cv_path_SED="$SED" # Let the user override the test with a dos path.
4816 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004817 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004818 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4819 ac_dummy="$PATH"
4820 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004821 test -z "$ac_dir" && ac_dir=.
4822 if test -f $ac_dir/$ac_word; then
4823 ac_cv_path_SED="$ac_dir/$ac_word"
4824 break
4825 fi
4826 done
4827 IFS="$ac_save_ifs"
4828 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4829 ;;
4830esac
4831fi
4832SED="$ac_cv_path_SED"
4833if test -n "$SED"; then
4834 echo "$ac_t""$SED" 1>&6
4835else
4836 echo "$ac_t""no" 1>&6
4837fi
4838
Theodore Ts'o9d564f71999-07-03 20:25:58 +00004839# Extract the first word of "perl", so it can be a program name with args.
4840set dummy perl; ac_word=$2
4841echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04004842echo "configure:4843: checking for $ac_word" >&5
Theodore Ts'o9d564f71999-07-03 20:25:58 +00004843if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
4844 echo $ac_n "(cached) $ac_c" 1>&6
4845else
4846 case "$PERL" in
4847 /*)
4848 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4849 ;;
4850 ?:/*)
4851 ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
4852 ;;
4853 *)
4854 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4855 ac_dummy="$PATH"
4856 for ac_dir in $ac_dummy; do
4857 test -z "$ac_dir" && ac_dir=.
4858 if test -f $ac_dir/$ac_word; then
4859 ac_cv_path_PERL="$ac_dir/$ac_word"
4860 break
4861 fi
4862 done
4863 IFS="$ac_save_ifs"
4864 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
4865 ;;
4866esac
4867fi
4868PERL="$ac_cv_path_PERL"
4869if test -n "$PERL"; then
4870 echo "$ac_t""$PERL" 1>&6
4871else
4872 echo "$ac_t""no" 1>&6
4873fi
4874
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004875# Extract the first word of "ldconfig", so it can be a program name with args.
4876set dummy ldconfig; ac_word=$2
4877echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04004878echo "configure:4879: checking for $ac_word" >&5
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004879if eval "test \"`echo '$''{'ac_cv_path_LDCONFIG'+set}'`\" = set"; then
4880 echo $ac_n "(cached) $ac_c" 1>&6
4881else
4882 case "$LDCONFIG" in
4883 /*)
4884 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4885 ;;
4886 ?:/*)
4887 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a dos path.
4888 ;;
4889 *)
4890 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4891 ac_dummy="$PATH"
4892 for ac_dir in $ac_dummy; do
4893 test -z "$ac_dir" && ac_dir=.
4894 if test -f $ac_dir/$ac_word; then
4895 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
4896 break
4897 fi
4898 done
4899 IFS="$ac_save_ifs"
4900 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
4901 ;;
4902esac
4903fi
4904LDCONFIG="$ac_cv_path_LDCONFIG"
4905if test -n "$LDCONFIG"; then
4906 echo "$ac_t""$LDCONFIG" 1>&6
4907else
4908 echo "$ac_t""no" 1>&6
4909fi
4910
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004911echo $ac_n "checking build system type""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04004912echo "configure:4913: checking build system type" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004913
4914build_alias=$build
4915case "$build_alias" in
4916NONE)
4917 case $nonopt in
4918 NONE) build_alias=$host_alias ;;
4919 *) build_alias=$nonopt ;;
4920 esac ;;
4921esac
4922
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004923build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004924build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4925build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4926build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004927echo "$ac_t""$build" 1>&6
4928
4929if test $host != $build; then
4930 ac_tool_prefix=${host_alias}-
4931else
4932 ac_tool_prefix=
4933fi
4934
4935# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4936set dummy ${ac_tool_prefix}ar; ac_word=$2
4937echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04004938echo "configure:4939: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004939if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
4940 echo $ac_n "(cached) $ac_c" 1>&6
4941else
4942 if test -n "$AR"; then
4943 ac_cv_prog_AR="$AR" # Let the user override the test.
4944else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004945 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4946 ac_dummy="$PATH"
4947 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004948 test -z "$ac_dir" && ac_dir=.
4949 if test -f $ac_dir/$ac_word; then
4950 ac_cv_prog_AR="${ac_tool_prefix}ar"
4951 break
4952 fi
4953 done
4954 IFS="$ac_save_ifs"
4955fi
4956fi
4957AR="$ac_cv_prog_AR"
4958if test -n "$AR"; then
4959 echo "$ac_t""$AR" 1>&6
4960else
4961 echo "$ac_t""no" 1>&6
4962fi
4963
4964
4965if test -z "$ac_cv_prog_AR"; then
4966if test -n "$ac_tool_prefix"; then
4967 # Extract the first word of "ar", so it can be a program name with args.
4968set dummy ar; ac_word=$2
4969echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04004970echo "configure:4971: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004971if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
4972 echo $ac_n "(cached) $ac_c" 1>&6
4973else
4974 if test -n "$AR"; then
4975 ac_cv_prog_AR="$AR" # Let the user override the test.
4976else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004977 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4978 ac_dummy="$PATH"
4979 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004980 test -z "$ac_dir" && ac_dir=.
4981 if test -f $ac_dir/$ac_word; then
4982 ac_cv_prog_AR="ar"
4983 break
4984 fi
4985 done
4986 IFS="$ac_save_ifs"
4987 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
4988fi
4989fi
4990AR="$ac_cv_prog_AR"
4991if test -n "$AR"; then
4992 echo "$ac_t""$AR" 1>&6
4993else
4994 echo "$ac_t""no" 1>&6
4995fi
4996
4997else
4998 AR="ar"
4999fi
5000fi
5001
5002# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5003set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5004echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04005005echo "configure:5006: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005006if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
5007 echo $ac_n "(cached) $ac_c" 1>&6
5008else
5009 if test -n "$RANLIB"; then
5010 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5011else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00005012 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5013 ac_dummy="$PATH"
5014 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005015 test -z "$ac_dir" && ac_dir=.
5016 if test -f $ac_dir/$ac_word; then
5017 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5018 break
5019 fi
5020 done
5021 IFS="$ac_save_ifs"
5022fi
5023fi
5024RANLIB="$ac_cv_prog_RANLIB"
5025if test -n "$RANLIB"; then
5026 echo "$ac_t""$RANLIB" 1>&6
5027else
5028 echo "$ac_t""no" 1>&6
5029fi
5030
5031
5032if test -z "$ac_cv_prog_RANLIB"; then
5033if test -n "$ac_tool_prefix"; then
5034 # Extract the first word of "ranlib", so it can be a program name with args.
5035set dummy ranlib; ac_word=$2
5036echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04005037echo "configure:5038: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005038if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
5039 echo $ac_n "(cached) $ac_c" 1>&6
5040else
5041 if test -n "$RANLIB"; then
5042 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5043else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00005044 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5045 ac_dummy="$PATH"
5046 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005047 test -z "$ac_dir" && ac_dir=.
5048 if test -f $ac_dir/$ac_word; then
5049 ac_cv_prog_RANLIB="ranlib"
5050 break
5051 fi
5052 done
5053 IFS="$ac_save_ifs"
5054 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
5055fi
5056fi
5057RANLIB="$ac_cv_prog_RANLIB"
5058if test -n "$RANLIB"; then
5059 echo "$ac_t""$RANLIB" 1>&6
5060else
5061 echo "$ac_t""no" 1>&6
5062fi
5063
5064else
5065 RANLIB=":"
5066fi
5067fi
5068
5069# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5070set dummy ${ac_tool_prefix}strip; ac_word=$2
5071echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04005072echo "configure:5073: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005073if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
5074 echo $ac_n "(cached) $ac_c" 1>&6
5075else
5076 if test -n "$STRIP"; then
5077 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5078else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00005079 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5080 ac_dummy="$PATH"
5081 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005082 test -z "$ac_dir" && ac_dir=.
5083 if test -f $ac_dir/$ac_word; then
5084 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5085 break
5086 fi
5087 done
5088 IFS="$ac_save_ifs"
5089fi
5090fi
5091STRIP="$ac_cv_prog_STRIP"
5092if test -n "$STRIP"; then
5093 echo "$ac_t""$STRIP" 1>&6
5094else
5095 echo "$ac_t""no" 1>&6
5096fi
5097
5098
5099if test -z "$ac_cv_prog_STRIP"; then
5100if test -n "$ac_tool_prefix"; then
5101 # Extract the first word of "strip", so it can be a program name with args.
5102set dummy strip; ac_word=$2
5103echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04005104echo "configure:5105: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005105if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
5106 echo $ac_n "(cached) $ac_c" 1>&6
5107else
5108 if test -n "$STRIP"; then
5109 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5110else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00005111 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5112 ac_dummy="$PATH"
5113 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005114 test -z "$ac_dir" && ac_dir=.
5115 if test -f $ac_dir/$ac_word; then
5116 ac_cv_prog_STRIP="strip"
5117 break
5118 fi
5119 done
5120 IFS="$ac_save_ifs"
5121 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
5122fi
5123fi
5124STRIP="$ac_cv_prog_STRIP"
5125if test -n "$STRIP"; then
5126 echo "$ac_t""$STRIP" 1>&6
5127else
5128 echo "$ac_t""no" 1>&6
5129fi
5130
5131else
5132 STRIP=":"
5133fi
5134fi
5135
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005136# Find a good install program. We prefer a C program (faster),
5137# so one script is as good as another. But avoid the broken or
5138# incompatible versions:
5139# SysV /etc/install, /usr/sbin/install
5140# SunOS /usr/etc/install
5141# IRIX /sbin/install
5142# AIX /bin/install
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00005143# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005144# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5145# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5146# ./install, which can be erroneously created by make from ./install.sh.
5147echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04005148echo "configure:5149: checking for a BSD compatible install" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005149if test -z "$INSTALL"; then
5150if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
5151 echo $ac_n "(cached) $ac_c" 1>&6
5152else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00005153 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005154 for ac_dir in $PATH; do
5155 # Account for people who put trailing slashes in PATH elements.
5156 case "$ac_dir/" in
5157 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
5158 *)
5159 # OSF1 and SCO ODT 3.0 have their own names for install.
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00005160 # Don't use installbsd from OSF since it installs stuff as root
5161 # by default.
5162 for ac_prog in ginstall scoinst install; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005163 if test -f $ac_dir/$ac_prog; then
5164 if test $ac_prog = install &&
5165 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
5166 # AIX install. It has an incompatible calling convention.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005167 :
5168 else
5169 ac_cv_path_install="$ac_dir/$ac_prog -c"
5170 break 2
5171 fi
5172 fi
5173 done
5174 ;;
5175 esac
5176 done
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005177 IFS="$ac_save_IFS"
5178
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005179fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005180 if test "${ac_cv_path_install+set}" = set; then
5181 INSTALL="$ac_cv_path_install"
5182 else
5183 # As a last resort, use the slow shell script. We don't cache a
5184 # path for INSTALL within a source directory, because that will
5185 # break other packages using the cache if that directory is
5186 # removed, or if the path is relative.
5187 INSTALL="$ac_install_sh"
5188 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005189fi
5190echo "$ac_t""$INSTALL" 1>&6
5191
5192# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5193# It thinks the first close brace ends the variable substitution.
5194test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5195
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00005196test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
5197
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005198test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5199
Theodore Ts'o6c133521999-07-03 20:37:03 +00005200# See if we need a separate native compiler.
5201if test $cross_compiling = no; then
5202 BUILD_CC="$CC"
5203
5204else
5205 for ac_prog in gcc cc
5206do
5207# Extract the first word of "$ac_prog", so it can be a program name with args.
5208set dummy $ac_prog; ac_word=$2
5209echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04005210echo "configure:5211: checking for $ac_word" >&5
Theodore Ts'o6c133521999-07-03 20:37:03 +00005211if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
5212 echo $ac_n "(cached) $ac_c" 1>&6
5213else
5214 if test -n "$BUILD_CC"; then
5215 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
5216else
5217 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5218 ac_dummy="$PATH"
5219 for ac_dir in $ac_dummy; do
5220 test -z "$ac_dir" && ac_dir=.
5221 if test -f $ac_dir/$ac_word; then
5222 ac_cv_prog_BUILD_CC="$ac_prog"
5223 break
5224 fi
5225 done
5226 IFS="$ac_save_ifs"
5227fi
5228fi
5229BUILD_CC="$ac_cv_prog_BUILD_CC"
5230if test -n "$BUILD_CC"; then
5231 echo "$ac_t""$BUILD_CC" 1>&6
5232else
5233 echo "$ac_t""no" 1>&6
5234fi
5235
5236test -n "$BUILD_CC" && break
5237done
5238
5239fi
Theodore Ts'offf45482003-04-13 00:44:19 -04005240for ac_hdr in stdlib.h unistd.h stdarg.h errno.h malloc.h mntent.h paths.h dirent.h getopt.h setjmp.h signal.h termios.h linux/fd.h linux/major.h sys/disklabel.h sys/ioctl.h sys/mkdev.h sys/mount.h sys/sockio.h sys/socket.h sys/sysmacros.h sys/time.h sys/stat.h sys/types.h sys/wait.h sys/resource.h net/if.h netinet/in.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005241do
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005242ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005243echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04005244echo "configure:5245: checking for $ac_hdr" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005245if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5246 echo $ac_n "(cached) $ac_c" 1>&6
5247else
5248 cat > conftest.$ac_ext <<EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04005249#line 5250 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005250#include "confdefs.h"
5251#include <$ac_hdr>
5252EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005253ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04005254{ (eval echo configure:5255: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00005255ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005256if test -z "$ac_err"; then
5257 rm -rf conftest*
5258 eval "ac_cv_header_$ac_safe=yes"
5259else
5260 echo "$ac_err" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005261 echo "configure: failed program was:" >&5
5262 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005263 rm -rf conftest*
5264 eval "ac_cv_header_$ac_safe=no"
5265fi
5266rm -f conftest*
5267fi
5268if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5269 echo "$ac_t""yes" 1>&6
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005270 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005271 cat >> confdefs.h <<EOF
5272#define $ac_tr_hdr 1
5273EOF
5274
5275else
5276 echo "$ac_t""no" 1>&6
5277fi
5278done
5279
5280echo $ac_n "checking for vprintf""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04005281echo "configure:5282: checking for vprintf" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005282if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
5283 echo $ac_n "(cached) $ac_c" 1>&6
5284else
5285 cat > conftest.$ac_ext <<EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04005286#line 5287 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005287#include "confdefs.h"
5288/* System header to define __stub macros and hopefully few prototypes,
5289 which can conflict with char vprintf(); below. */
5290#include <assert.h>
5291/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005292/* We use char because int might match the return type of a gcc2
5293 builtin and then its argument prototype would still apply. */
5294char vprintf();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005295
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005296int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005297
5298/* The GNU C library defines this for functions which it implements
5299 to always fail with ENOSYS. Some functions are actually named
5300 something starting with __ and the normal name is an alias. */
5301#if defined (__stub_vprintf) || defined (__stub___vprintf)
5302choke me
5303#else
5304vprintf();
5305#endif
5306
5307; return 0; }
5308EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04005309if { (eval echo configure:5310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005310 rm -rf conftest*
5311 eval "ac_cv_func_vprintf=yes"
5312else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005313 echo "configure: failed program was:" >&5
5314 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005315 rm -rf conftest*
5316 eval "ac_cv_func_vprintf=no"
5317fi
5318rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005319fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005320
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005321if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
5322 echo "$ac_t""yes" 1>&6
5323 cat >> confdefs.h <<\EOF
5324#define HAVE_VPRINTF 1
5325EOF
5326
5327else
5328 echo "$ac_t""no" 1>&6
5329fi
5330
5331if test "$ac_cv_func_vprintf" != yes; then
5332echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04005333echo "configure:5334: checking for _doprnt" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005334if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
5335 echo $ac_n "(cached) $ac_c" 1>&6
5336else
5337 cat > conftest.$ac_ext <<EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04005338#line 5339 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005339#include "confdefs.h"
5340/* System header to define __stub macros and hopefully few prototypes,
5341 which can conflict with char _doprnt(); below. */
5342#include <assert.h>
5343/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005344/* We use char because int might match the return type of a gcc2
5345 builtin and then its argument prototype would still apply. */
5346char _doprnt();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005347
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005348int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005349
5350/* The GNU C library defines this for functions which it implements
5351 to always fail with ENOSYS. Some functions are actually named
5352 something starting with __ and the normal name is an alias. */
5353#if defined (__stub__doprnt) || defined (__stub____doprnt)
5354choke me
5355#else
5356_doprnt();
5357#endif
5358
5359; return 0; }
5360EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04005361if { (eval echo configure:5362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005362 rm -rf conftest*
5363 eval "ac_cv_func__doprnt=yes"
5364else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005365 echo "configure: failed program was:" >&5
5366 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005367 rm -rf conftest*
5368 eval "ac_cv_func__doprnt=no"
5369fi
5370rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005371fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005372
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005373if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
5374 echo "$ac_t""yes" 1>&6
5375 cat >> confdefs.h <<\EOF
5376#define HAVE_DOPRNT 1
5377EOF
5378
5379else
5380 echo "$ac_t""no" 1>&6
5381fi
5382
5383fi
5384
Theodore Ts'offf45482003-04-13 00:44:19 -04005385echo $ac_n "checking whether d_reclen declared in dirent""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04005386echo "configure:5387: checking whether d_reclen declared in dirent" >&5
Theodore Ts'offf45482003-04-13 00:44:19 -04005387if eval "test \"`echo '$''{'e2fsprogs_cv_have_d_reclen_dirent'+set}'`\" = set"; then
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00005388 echo $ac_n "(cached) $ac_c" 1>&6
5389else
5390 cat > conftest.$ac_ext <<EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04005391#line 5392 "configure"
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00005392#include "confdefs.h"
Theodore Ts'offf45482003-04-13 00:44:19 -04005393#include <dirent.h>
5394int main() {
5395struct dirent de; de.d_reclen = 0;
5396; return 0; }
5397EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04005398if { (eval echo configure:5399: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'offf45482003-04-13 00:44:19 -04005399 rm -rf conftest*
5400 e2fsprogs_cv_have_d_reclen_dirent=yes
5401else
5402 echo "configure: failed program was:" >&5
5403 cat conftest.$ac_ext >&5
5404 rm -rf conftest*
5405 e2fsprogs_cv_have_d_reclen_dirent=no
5406fi
5407rm -f conftest*
5408fi
5409
5410echo "$ac_t""$e2fsprogs_cv_have_d_reclen_dirent" 1>&6
5411if test "$e2fsprogs_cv_have_d_reclen_dirent" = yes; then
5412 cat >> confdefs.h <<\EOF
5413#define HAVE_RECLEN_DIRENT 1
5414EOF
5415
5416fi
5417echo $ac_n "checking whether ssize_t declared""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04005418echo "configure:5419: checking whether ssize_t declared" >&5
Theodore Ts'offf45482003-04-13 00:44:19 -04005419if eval "test \"`echo '$''{'e2fsprogs_cv_have_ssize_t'+set}'`\" = set"; then
5420 echo $ac_n "(cached) $ac_c" 1>&6
5421else
5422 cat > conftest.$ac_ext <<EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04005423#line 5424 "configure"
Theodore Ts'offf45482003-04-13 00:44:19 -04005424#include "confdefs.h"
5425#include <sys/types.h>
5426int main() {
5427ssize_t a = 0;
5428; return 0; }
5429EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04005430if { (eval echo configure:5431: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'offf45482003-04-13 00:44:19 -04005431 rm -rf conftest*
5432 e2fsprogs_cv_have_ssize_t=yes
5433else
5434 echo "configure: failed program was:" >&5
5435 cat conftest.$ac_ext >&5
5436 rm -rf conftest*
5437 e2fsprogs_cv_have_ssize_t=no
5438fi
5439rm -f conftest*
5440fi
5441
5442echo "$ac_t""$e2fsprogs_cv_have_ssize_t" 1>&6
5443if test "$e2fsprogs_cv_have_ssize_t" = yes; then
5444 cat >> confdefs.h <<\EOF
5445#define HAVE_TYPE_SSIZE_T 1
5446EOF
5447
5448fi
5449echo $ac_n "checking whether llseek declared in unistd.h""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04005450echo "configure:5451: checking whether llseek declared in unistd.h" >&5
Theodore Ts'offf45482003-04-13 00:44:19 -04005451if eval "test \"`echo '$''{'e2fsprogs_cv_have_llseek_prototype'+set}'`\" = set"; then
5452 echo $ac_n "(cached) $ac_c" 1>&6
5453else
5454 cat > conftest.$ac_ext <<EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04005455#line 5456 "configure"
Theodore Ts'offf45482003-04-13 00:44:19 -04005456#include "confdefs.h"
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00005457#include <unistd.h>
5458int main() {
5459extern int llseek(int);
5460; return 0; }
5461EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04005462if { (eval echo configure:5463: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00005463 rm -rf conftest*
5464 e2fsprogs_cv_have_llseek_prototype=no
5465else
5466 echo "configure: failed program was:" >&5
5467 cat conftest.$ac_ext >&5
5468 rm -rf conftest*
5469 e2fsprogs_cv_have_llseek_prototype=yes
5470fi
5471rm -f conftest*
5472fi
5473
5474echo "$ac_t""$e2fsprogs_cv_have_llseek_prototype" 1>&6
5475if test "$e2fsprogs_cv_have_llseek_prototype" = yes; then
5476 cat >> confdefs.h <<\EOF
5477#define HAVE_LLSEEK_PROTOTYPE 1
5478EOF
5479
5480fi
Theodore Ts'o6928adc2000-05-25 23:28:50 +00005481echo $ac_n "checking whether lseek64 declared in unistd.h""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04005482echo "configure:5483: checking whether lseek64 declared in unistd.h" >&5
Theodore Ts'o6928adc2000-05-25 23:28:50 +00005483if eval "test \"`echo '$''{'e2fsprogs_cv_have_lseek64_prototype'+set}'`\" = set"; then
5484 echo $ac_n "(cached) $ac_c" 1>&6
5485else
5486 cat > conftest.$ac_ext <<EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04005487#line 5488 "configure"
Theodore Ts'o6928adc2000-05-25 23:28:50 +00005488#include "confdefs.h"
5489#define _LARGEFILE_SOURCE
5490#define _LARGEFILE64_SOURCE
5491#include <unistd.h>
5492int main() {
5493extern int lseek64(int);
5494; return 0; }
5495EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04005496if { (eval echo configure:5497: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o6928adc2000-05-25 23:28:50 +00005497 rm -rf conftest*
5498 e2fsprogs_cv_have_lseek64_prototype=no
5499else
5500 echo "configure: failed program was:" >&5
5501 cat conftest.$ac_ext >&5
5502 rm -rf conftest*
5503 e2fsprogs_cv_have_lseek64_prototype=yes
5504fi
5505rm -f conftest*
5506fi
5507
5508echo "$ac_t""$e2fsprogs_cv_have_lseek64_prototype" 1>&6
5509if test "$e2fsprogs_cv_have_lseek64_prototype" = yes; then
5510 cat >> confdefs.h <<\EOF
5511#define HAVE_LSEEK64_PROTOTYPE 1
5512EOF
5513
5514fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005515if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
5516 # if cross-compiling, with no cached values, just assume something common.
5517 ac_cv_sizeof_short=2
5518 ac_cv_sizeof_int=4
5519 ac_cv_sizeof_long=4
Theodore Ts'o6c133521999-07-03 20:37:03 +00005520 ac_cv_sizeof_long_long=8
5521 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 +00005522fi
5523echo $ac_n "checking size of short""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04005524echo "configure:5525: checking size of short" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005525if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
5526 echo $ac_n "(cached) $ac_c" 1>&6
5527else
5528 if test "$cross_compiling" = yes; then
5529 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
5530else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005531 cat > conftest.$ac_ext <<EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04005532#line 5533 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005533#include "confdefs.h"
5534#include <stdio.h>
Theodore Ts'o250f79f2001-05-19 22:02:22 +00005535#include <sys/types.h>
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005536main()
5537{
5538 FILE *f=fopen("conftestval", "w");
5539 if (!f) exit(1);
5540 fprintf(f, "%d\n", sizeof(short));
5541 exit(0);
5542}
5543EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04005544if { (eval echo configure:5545: \"$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 +00005545then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005546 ac_cv_sizeof_short=`cat conftestval`
5547else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005548 echo "configure: failed program was:" >&5
5549 cat conftest.$ac_ext >&5
5550 rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005551 ac_cv_sizeof_short=0
5552fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005553rm -fr conftest*
5554fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005555
5556fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005557echo "$ac_t""$ac_cv_sizeof_short" 1>&6
5558cat >> confdefs.h <<EOF
5559#define SIZEOF_SHORT $ac_cv_sizeof_short
5560EOF
5561
5562
5563echo $ac_n "checking size of int""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04005564echo "configure:5565: checking size of int" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005565if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
5566 echo $ac_n "(cached) $ac_c" 1>&6
5567else
5568 if test "$cross_compiling" = yes; then
5569 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
5570else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005571 cat > conftest.$ac_ext <<EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04005572#line 5573 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005573#include "confdefs.h"
5574#include <stdio.h>
Theodore Ts'o250f79f2001-05-19 22:02:22 +00005575#include <sys/types.h>
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005576main()
5577{
5578 FILE *f=fopen("conftestval", "w");
5579 if (!f) exit(1);
5580 fprintf(f, "%d\n", sizeof(int));
5581 exit(0);
5582}
5583EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04005584if { (eval echo configure:5585: \"$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 +00005585then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005586 ac_cv_sizeof_int=`cat conftestval`
5587else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005588 echo "configure: failed program was:" >&5
5589 cat conftest.$ac_ext >&5
5590 rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005591 ac_cv_sizeof_int=0
5592fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005593rm -fr conftest*
5594fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005595
5596fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005597echo "$ac_t""$ac_cv_sizeof_int" 1>&6
5598cat >> confdefs.h <<EOF
5599#define SIZEOF_INT $ac_cv_sizeof_int
5600EOF
5601
5602
5603echo $ac_n "checking size of long""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04005604echo "configure:5605: checking size of long" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005605if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
5606 echo $ac_n "(cached) $ac_c" 1>&6
5607else
5608 if test "$cross_compiling" = yes; then
5609 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
5610else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005611 cat > conftest.$ac_ext <<EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04005612#line 5613 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005613#include "confdefs.h"
5614#include <stdio.h>
Theodore Ts'o250f79f2001-05-19 22:02:22 +00005615#include <sys/types.h>
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005616main()
5617{
5618 FILE *f=fopen("conftestval", "w");
5619 if (!f) exit(1);
5620 fprintf(f, "%d\n", sizeof(long));
5621 exit(0);
5622}
5623EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04005624if { (eval echo configure:5625: \"$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 +00005625then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005626 ac_cv_sizeof_long=`cat conftestval`
5627else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005628 echo "configure: failed program was:" >&5
5629 cat conftest.$ac_ext >&5
5630 rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005631 ac_cv_sizeof_long=0
5632fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005633rm -fr conftest*
5634fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005635
5636fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005637echo "$ac_t""$ac_cv_sizeof_long" 1>&6
5638cat >> confdefs.h <<EOF
5639#define SIZEOF_LONG $ac_cv_sizeof_long
5640EOF
5641
5642
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005643echo $ac_n "checking size of long long""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04005644echo "configure:5645: checking size of long long" >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005645if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
5646 echo $ac_n "(cached) $ac_c" 1>&6
5647else
5648 if test "$cross_compiling" = yes; then
5649 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
5650else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005651 cat > conftest.$ac_ext <<EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04005652#line 5653 "configure"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005653#include "confdefs.h"
5654#include <stdio.h>
Theodore Ts'o250f79f2001-05-19 22:02:22 +00005655#include <sys/types.h>
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005656main()
5657{
5658 FILE *f=fopen("conftestval", "w");
5659 if (!f) exit(1);
5660 fprintf(f, "%d\n", sizeof(long long));
5661 exit(0);
5662}
5663EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04005664if { (eval echo configure:5665: \"$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 +00005665then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005666 ac_cv_sizeof_long_long=`cat conftestval`
5667else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005668 echo "configure: failed program was:" >&5
5669 cat conftest.$ac_ext >&5
5670 rm -fr conftest*
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005671 ac_cv_sizeof_long_long=0
5672fi
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005673rm -fr conftest*
5674fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005675
5676fi
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005677echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
5678cat >> confdefs.h <<EOF
5679#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5680EOF
5681
5682
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005683SIZEOF_SHORT=$ac_cv_sizeof_short
5684SIZEOF_INT=$ac_cv_sizeof_int
5685SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005686SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
5687
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005688
5689
5690
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00005691echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04005692echo "configure:5693: checking whether byte ordering is bigendian" >&5
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00005693if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
5694 echo $ac_n "(cached) $ac_c" 1>&6
5695else
5696 ac_cv_c_bigendian=unknown
5697# See if sys/param.h defines the BYTE_ORDER macro.
5698cat > conftest.$ac_ext <<EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04005699#line 5700 "configure"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00005700#include "confdefs.h"
5701#include <sys/types.h>
5702#include <sys/param.h>
5703int main() {
5704
5705#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
5706 bogus endian macros
5707#endif
5708; return 0; }
5709EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04005710if { (eval echo configure:5711: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00005711 rm -rf conftest*
5712 # It does; now see whether it defined to BIG_ENDIAN or not.
5713cat > conftest.$ac_ext <<EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04005714#line 5715 "configure"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00005715#include "confdefs.h"
5716#include <sys/types.h>
5717#include <sys/param.h>
5718int main() {
5719
5720#if BYTE_ORDER != BIG_ENDIAN
5721 not big endian
5722#endif
5723; return 0; }
5724EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04005725if { (eval echo configure:5726: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00005726 rm -rf conftest*
5727 ac_cv_c_bigendian=yes
5728else
5729 echo "configure: failed program was:" >&5
5730 cat conftest.$ac_ext >&5
5731 rm -rf conftest*
5732 ac_cv_c_bigendian=no
5733fi
5734rm -f conftest*
5735else
5736 echo "configure: failed program was:" >&5
5737 cat conftest.$ac_ext >&5
5738fi
5739rm -f conftest*
5740if test $ac_cv_c_bigendian = unknown; then
5741if test "$cross_compiling" = yes; then
5742 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
5743else
5744 cat > conftest.$ac_ext <<EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04005745#line 5746 "configure"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00005746#include "confdefs.h"
5747main () {
5748 /* Are we little or big endian? From Harbison&Steele. */
5749 union
5750 {
5751 long l;
5752 char c[sizeof (long)];
5753 } u;
5754 u.l = 1;
5755 exit (u.c[sizeof (long) - 1] == 1);
5756}
5757EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04005758if { (eval echo configure:5759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00005759then
5760 ac_cv_c_bigendian=no
5761else
5762 echo "configure: failed program was:" >&5
5763 cat conftest.$ac_ext >&5
5764 rm -fr conftest*
5765 ac_cv_c_bigendian=yes
5766fi
5767rm -fr conftest*
5768fi
5769
5770fi
5771fi
5772
5773echo "$ac_t""$ac_cv_c_bigendian" 1>&6
5774if test $ac_cv_c_bigendian = yes; then
5775 cat >> confdefs.h <<\EOF
5776#define WORDS_BIGENDIAN 1
5777EOF
5778
5779fi
5780
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005781echo $ac_n "checking whether struct stat has a st_flags field""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04005782echo "configure:5783: checking whether struct stat has a st_flags field" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005783if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags'+set}'`\" = set"; then
5784 echo $ac_n "(cached) $ac_c" 1>&6
5785else
5786 cat > conftest.$ac_ext <<EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04005787#line 5788 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005788#include "confdefs.h"
5789#include <sys/stat.h>
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005790int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005791struct stat stat; stat.st_flags = 0;
5792; return 0; }
5793EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04005794if { (eval echo configure:5795: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005795 rm -rf conftest*
5796 e2fsprogs_cv_struct_st_flags=yes
5797else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005798 echo "configure: failed program was:" >&5
5799 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005800 rm -rf conftest*
5801 e2fsprogs_cv_struct_st_flags=no
5802fi
5803rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005804fi
5805
5806echo "$ac_t""$e2fsprogs_cv_struct_st_flags" 1>&6
5807if test "$e2fsprogs_cv_struct_st_flags" = yes; then
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00005808 echo $ac_n "checking whether st_flags field is useful""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04005809echo "configure:5810: checking whether st_flags field is useful" >&5
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00005810 if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags_immut'+set}'`\" = set"; then
5811 echo $ac_n "(cached) $ac_c" 1>&6
5812else
5813 cat > conftest.$ac_ext <<EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04005814#line 5815 "configure"
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00005815#include "confdefs.h"
5816#include <sys/stat.h>
5817int main() {
5818struct stat stat; stat.st_flags |= UF_IMMUTABLE;
5819; return 0; }
5820EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04005821if { (eval echo configure:5822: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00005822 rm -rf conftest*
5823 e2fsprogs_cv_struct_st_flags_immut=yes
5824else
5825 echo "configure: failed program was:" >&5
5826 cat conftest.$ac_ext >&5
5827 rm -rf conftest*
5828 e2fsprogs_cv_struct_st_flags_immut=no
5829fi
5830rm -f conftest*
5831fi
5832
5833 echo "$ac_t""$e2fsprogs_cv_struct_st_flags_immut" 1>&6
5834 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
5835 cat >> confdefs.h <<\EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005836#define HAVE_STAT_FLAGS 1
5837EOF
5838
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00005839 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005840fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005841for ac_func in chflags getrusage llseek lseek64 open64 getmntinfo strtoull strcasecmp srandom fchown mallinfo fdatasync strnlen strptime sysconf pathconf
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005842do
5843echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04005844echo "configure:5845: checking for $ac_func" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005845if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5846 echo $ac_n "(cached) $ac_c" 1>&6
5847else
5848 cat > conftest.$ac_ext <<EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04005849#line 5850 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005850#include "confdefs.h"
5851/* System header to define __stub macros and hopefully few prototypes,
5852 which can conflict with char $ac_func(); below. */
5853#include <assert.h>
5854/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005855/* We use char because int might match the return type of a gcc2
5856 builtin and then its argument prototype would still apply. */
5857char $ac_func();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005858
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005859int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005860
5861/* The GNU C library defines this for functions which it implements
5862 to always fail with ENOSYS. Some functions are actually named
5863 something starting with __ and the normal name is an alias. */
5864#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5865choke me
5866#else
5867$ac_func();
5868#endif
5869
5870; return 0; }
5871EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04005872if { (eval echo configure:5873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005873 rm -rf conftest*
5874 eval "ac_cv_func_$ac_func=yes"
5875else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005876 echo "configure: failed program was:" >&5
5877 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005878 rm -rf conftest*
5879 eval "ac_cv_func_$ac_func=no"
5880fi
5881rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005882fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005883
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005884if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5885 echo "$ac_t""yes" 1>&6
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005886 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005887 cat >> confdefs.h <<EOF
5888#define $ac_tr_func 1
5889EOF
5890
5891else
5892 echo "$ac_t""no" 1>&6
5893fi
5894done
5895
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005896SOCKET_LIB=''
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005897echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04005898echo "configure:5899: checking for socket in -lsocket" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005899ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
5900if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005901 echo $ac_n "(cached) $ac_c" 1>&6
5902else
5903 ac_save_LIBS="$LIBS"
5904LIBS="-lsocket $LIBS"
5905cat > conftest.$ac_ext <<EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04005906#line 5907 "configure"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005907#include "confdefs.h"
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005908/* Override any gcc2 internal prototype to avoid an error. */
5909/* We use char because int might match the return type of a gcc2
5910 builtin and then its argument prototype would still apply. */
5911char socket();
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005912
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005913int main() {
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005914socket()
5915; return 0; }
5916EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04005917if { (eval echo configure:5918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005918 rm -rf conftest*
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005919 eval "ac_cv_lib_$ac_lib_var=yes"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005920else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005921 echo "configure: failed program was:" >&5
5922 cat conftest.$ac_ext >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005923 rm -rf conftest*
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005924 eval "ac_cv_lib_$ac_lib_var=no"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005925fi
5926rm -f conftest*
5927LIBS="$ac_save_LIBS"
5928
5929fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005930if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005931 echo "$ac_t""yes" 1>&6
5932 SOCKET_LIB=-lsocket
5933else
5934 echo "$ac_t""no" 1>&6
5935fi
5936
5937
Theodore Ts'obbac86b2003-03-16 06:27:22 -05005938DLOPEN_LIB=''
5939echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04005940echo "configure:5941: checking for dlopen in -ldl" >&5
Theodore Ts'obbac86b2003-03-16 06:27:22 -05005941ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
5942if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5943 echo $ac_n "(cached) $ac_c" 1>&6
5944else
5945 ac_save_LIBS="$LIBS"
5946LIBS="-ldl $LIBS"
5947cat > conftest.$ac_ext <<EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04005948#line 5949 "configure"
Theodore Ts'obbac86b2003-03-16 06:27:22 -05005949#include "confdefs.h"
5950/* Override any gcc2 internal prototype to avoid an error. */
5951/* We use char because int might match the return type of a gcc2
5952 builtin and then its argument prototype would still apply. */
5953char dlopen();
5954
5955int main() {
5956dlopen()
5957; return 0; }
5958EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04005959if { (eval echo configure:5960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'obbac86b2003-03-16 06:27:22 -05005960 rm -rf conftest*
5961 eval "ac_cv_lib_$ac_lib_var=yes"
5962else
5963 echo "configure: failed program was:" >&5
5964 cat conftest.$ac_ext >&5
5965 rm -rf conftest*
5966 eval "ac_cv_lib_$ac_lib_var=no"
5967fi
5968rm -f conftest*
5969LIBS="$ac_save_LIBS"
5970
5971fi
5972if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5973 echo "$ac_t""yes" 1>&6
5974 DLOPEN_LIB=-ldl
5975cat >> confdefs.h <<\EOF
5976#define HAVE_DLOPEN 1
5977EOF
5978
5979else
5980 echo "$ac_t""no" 1>&6
5981fi
5982
5983
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005984echo $ac_n "checking for optreset""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04005985echo "configure:5986: checking for optreset" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005986if eval "test \"`echo '$''{'ac_cv_have_optreset'+set}'`\" = set"; then
5987 echo $ac_n "(cached) $ac_c" 1>&6
5988else
5989 cat > conftest.$ac_ext <<EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04005990#line 5991 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005991#include "confdefs.h"
5992#include <unistd.h>
5993EOF
5994if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5995 egrep "optreset" >/dev/null 2>&1; then
5996 rm -rf conftest*
5997 ac_cv_have_optreset=yes
5998else
5999 rm -rf conftest*
6000 ac_cv_have_optreset=no
6001fi
6002rm -f conftest*
6003
6004fi
6005echo "$ac_t""$ac_cv_have_optreset" 1>&6
6006if test $ac_cv_have_optreset = yes; then
6007 cat >> confdefs.h <<\EOF
6008#define HAVE_OPTRESET 1
6009EOF
6010
6011fi
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +00006012case "$host_os" in
6013linux*)
6014 cat >> confdefs.h <<\EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006015#define HAVE_EXT2_IOCTLS 1
6016EOF
6017
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +00006018 ;;
6019esac
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -04006020LINUX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -04006021CYGWIN_CMT="#"
6022UNIX_CMT=
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -04006023case "$host_os" in
6024linux*)
6025 LINUX_CMT=
6026 ;;
Theodore Ts'offf45482003-04-13 00:44:19 -04006027cygwin)
6028 CYGWIN_CMT=
6029 UNIX_CMT="#"
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04006030 EVMS_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -04006031 ;;
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04006032*)
6033 EVMS_CMT="#"
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -04006034esac
6035
Theodore Ts'offf45482003-04-13 00:44:19 -04006036
6037
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006038case "$host_os" in
Theodore Ts'o6c133521999-07-03 20:37:03 +00006039linux* | gnu*)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00006040 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
6041 root_prefix="";
6042 echo "On $host_os systems, root_prefix defaults to ''"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00006043 fi
6044 ;;
6045esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00006046case "$host_os" in
6047linux* | gnu*)
6048 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00006049 prefix="/usr";
6050 echo "On $host_os systems, prefix defaults to /usr"
Theodore Ts'obff61a72002-05-21 22:21:38 -04006051 if test "$mandir" = '${prefix}/man' ; then
6052 echo "...and mandir defaults to /usr/share/man"
6053 mandir=/usr/share/man
6054 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006055 fi
6056;;
6057esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00006058if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +00006059 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00006060 root_prefix="$ac_default_prefix"
6061 else
6062 root_prefix="$prefix"
6063 fi
Theodore Ts'ob5ffead2002-05-11 19:17:00 -04006064 root_bindir=$bindir
6065 root_sbindir=$sbindir
6066 root_libdir=$libdir
6067 root_sysconfdir=$sysconfdir
6068else
6069 root_bindir='${root_prefix}/bin'
6070 root_sbindir='${root_prefix}/sbin'
6071 root_libdir='${root_prefix}/lib'
6072 root_sysconfdir='${root_prefix}/etc'
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00006073fi
6074
Theodore Ts'ob5ffead2002-05-11 19:17:00 -04006075
6076
6077
6078
Theodore Ts'oae851481997-04-29 18:13:24 +00006079echo $ac_n "checking whether linker accepts -static""... $ac_c" 1>&6
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04006080echo "configure:6081: checking whether linker accepts -static" >&5
Theodore Ts'oae851481997-04-29 18:13:24 +00006081if eval "test \"`echo '$''{'ac_cv_e2fsprogs_use_static'+set}'`\" = set"; then
6082 echo $ac_n "(cached) $ac_c" 1>&6
6083else
6084 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
6085cat > conftest.$ac_ext <<EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04006086#line 6087 "configure"
Theodore Ts'oae851481997-04-29 18:13:24 +00006087#include "confdefs.h"
6088#include <stdio.h>
6089int main() {
6090fflush(stdout);
6091; return 0; }
6092EOF
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04006093if { (eval echo configure:6094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oae851481997-04-29 18:13:24 +00006094 rm -rf conftest*
6095 ac_cv_e2fsprogs_use_static=yes
6096else
6097 echo "configure: failed program was:" >&5
6098 cat conftest.$ac_ext >&5
6099 rm -rf conftest*
6100 ac_cv_e2fsprogs_use_static=no
6101fi
6102rm -f conftest*
6103LDFLAGS=$SAVE_LDFLAGS
6104fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006105
Theodore Ts'odefde781999-01-04 07:39:19 +00006106case "$host_os" in
6107solaris2.*)
6108 ac_cv_e2fsprogs_use_static=no
6109;;
6110esac
Theodore Ts'oae851481997-04-29 18:13:24 +00006111echo "$ac_t""$ac_cv_e2fsprogs_use_static" 1>&6
Theodore Ts'o74becf31997-04-26 14:37:06 +00006112LDFLAG_STATIC=
Theodore Ts'oae851481997-04-29 18:13:24 +00006113if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006114 LDFLAG_STATIC=-static
Theodore Ts'oae851481997-04-29 18:13:24 +00006115fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006116
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006117SS_DIR=`cd ${srcdir}/lib/ss; pwd`
6118ET_DIR=`cd ${srcdir}/lib/et; pwd`
6119
6120
6121if test "$cross_compiling" = yes ; then
6122 DO_TEST_SUITE=
6123else
6124 DO_TEST_SUITE=check
6125fi
6126
6127test -d lib || mkdir lib
6128test -d include || mkdir include
6129test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +00006130test -d include/asm || mkdir include/asm
Theodore Ts'obff0cc92003-03-23 01:37:53 -05006131for i in MCONFIG Makefile e2fsprogs.spec \
6132 util/Makefile util/subst.conf util/gen-tarball \
6133 lib/et/Makefile lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -05006134 lib/uuid/Makefile lib/uuid/uuid_types.h \
6135 lib/blkid/Makefile lib/blkid/blkid_types.h \
6136 lib/evms/Makefile misc/Makefile ext2ed/Makefile e2fsck/Makefile \
6137 debugfs/Makefile tests/Makefile tests/progs/Makefile \
6138 resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do
6139 if test -d `dirname ${srcdir}/$i` ; then
6140 outlist="$outlist $i"
6141 fi
6142done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006143trap '' 1 2 15
6144cat > confcache <<\EOF
6145# This file is a shell script that caches the results of configure
6146# tests run on this system so they can be shared between configure
6147# scripts and configure runs. It is not useful on other systems.
6148# If it contains results you don't want to keep, you may remove or edit it.
6149#
6150# By default, configure uses ./config.cache as the cache file,
6151# creating it if it does not exist already. You can give configure
6152# the --cache-file=FILE option to use a different cache file; that is
6153# what configure does when it calls configure scripts in
6154# subdirectories, so they share the cache.
6155# Giving --cache-file=/dev/null disables caching, for debugging configure.
6156# config.status only pays attention to the cache file if you give it the
6157# --recheck option to rerun configure.
6158#
6159EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00006160# The following way of writing the cache mishandles newlines in values,
6161# but we know of no workaround that is simple, portable, and efficient.
6162# So, don't put newlines in cache variables' values.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006163# Ultrix sh set writes to stderr and can't be redirected directly,
6164# and sets the high bit in the cache file unless we assign to the vars.
6165(set) 2>&1 |
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00006166 case `(ac_space=' '; set | grep ac_space) 2>&1` in
Theodore Ts'o21c84b71997-04-29 16:15:03 +00006167 *ac_space=\ *)
6168 # `set' does not quote correctly, so add quotes (double-quote substitution
6169 # turns \\\\ into \\, and sed turns \\ into \).
6170 sed -n \
6171 -e "s/'/'\\\\''/g" \
6172 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6173 ;;
6174 *)
6175 # `set' quotes correctly as required by POSIX, so do not add quotes.
6176 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6177 ;;
6178 esac >> confcache
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006179if cmp -s $cache_file confcache; then
6180 :
6181else
6182 if test -w $cache_file; then
6183 echo "updating cache $cache_file"
6184 cat confcache > $cache_file
6185 else
6186 echo "not updating unwritable cache $cache_file"
6187 fi
6188fi
6189rm -f confcache
6190
6191trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6192
6193test "x$prefix" = xNONE && prefix=$ac_default_prefix
6194# Let make expand exec_prefix.
6195test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6196
6197# Any assignment to VPATH causes Sun make to only execute
6198# the first set of double-colon rules, so remove it if not needed.
6199# If there is a colon in the path, we need to keep it.
6200if test "x$srcdir" = x.; then
6201 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6202fi
6203
6204trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6205
6206# Transform confdefs.h into DEFS.
6207# Protect against shell expansion while executing Makefile rules.
6208# Protect against Makefile macro expansion.
6209cat > conftest.defs <<\EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00006210s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006211s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
6212s%\[%\\&%g
6213s%\]%\\&%g
6214s%\$%$$%g
6215EOF
6216DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
6217rm -f conftest.defs
6218
6219
6220# Without the "./", some shells look in PATH for config.status.
6221: ${CONFIG_STATUS=./config.status}
6222
6223echo creating $CONFIG_STATUS
6224rm -f $CONFIG_STATUS
6225cat > $CONFIG_STATUS <<EOF
6226#! /bin/sh
6227# Generated automatically by configure.
6228# Run this file to recreate the current configuration.
6229# This directory was configured as follows,
6230# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6231#
6232# $0 $ac_configure_args
6233#
6234# Compiler output produced by configure, useful for debugging
6235# configure, is in ./config.log if it exists.
6236
6237ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6238for ac_option
6239do
6240 case "\$ac_option" in
6241 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6242 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6243 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6244 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00006245 echo "$CONFIG_STATUS generated by autoconf version 2.13"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006246 exit 0 ;;
6247 -help | --help | --hel | --he | --h)
6248 echo "\$ac_cs_usage"; exit 0 ;;
6249 *) echo "\$ac_cs_usage"; exit 1 ;;
6250 esac
6251done
6252
6253ac_given_srcdir=$srcdir
6254ac_given_INSTALL="$INSTALL"
6255
Theodore Ts'o94ba8c72003-03-02 02:07:14 -05006256trap 'rm -fr `echo "$outlist" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
Theodore Ts'o21c84b71997-04-29 16:15:03 +00006257EOF
6258cat >> $CONFIG_STATUS <<EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006259
Theodore Ts'o21c84b71997-04-29 16:15:03 +00006260# Protect against being on the right side of a sed subst in config.status.
6261sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6262 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006263$ac_vpsub
6264$extrasub
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00006265s%@SHELL@%$SHELL%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006266s%@CFLAGS@%$CFLAGS%g
6267s%@CPPFLAGS@%$CPPFLAGS%g
6268s%@CXXFLAGS@%$CXXFLAGS%g
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00006269s%@FFLAGS@%$FFLAGS%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006270s%@DEFS@%$DEFS%g
6271s%@LDFLAGS@%$LDFLAGS%g
6272s%@LIBS@%$LIBS%g
6273s%@exec_prefix@%$exec_prefix%g
6274s%@prefix@%$prefix%g
6275s%@program_transform_name@%$program_transform_name%g
Theodore Ts'o21c84b71997-04-29 16:15:03 +00006276s%@bindir@%$bindir%g
6277s%@sbindir@%$sbindir%g
6278s%@libexecdir@%$libexecdir%g
6279s%@datadir@%$datadir%g
6280s%@sysconfdir@%$sysconfdir%g
6281s%@sharedstatedir@%$sharedstatedir%g
6282s%@localstatedir@%$localstatedir%g
6283s%@libdir@%$libdir%g
6284s%@includedir@%$includedir%g
6285s%@oldincludedir@%$oldincludedir%g
6286s%@infodir@%$infodir%g
6287s%@mandir@%$mandir%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006288/@MCONFIG@/r $MCONFIG
6289s%@MCONFIG@%%g
Theodore Ts'o74becf31997-04-26 14:37:06 +00006290s%@E2FSPROGS_YEAR@%$E2FSPROGS_YEAR%g
6291s%@E2FSPROGS_MONTH@%$E2FSPROGS_MONTH%g
Theodore Ts'obff0cc92003-03-23 01:37:53 -05006292s%@E2FSPROGS_DAY@%$E2FSPROGS_DAY%g
Theodore Ts'o74becf31997-04-26 14:37:06 +00006293s%@E2FSPROGS_VERSION@%$E2FSPROGS_VERSION%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00006294s%@host@%$host%g
6295s%@host_alias@%$host_alias%g
6296s%@host_cpu@%$host_cpu%g
6297s%@host_vendor@%$host_vendor%g
6298s%@host_os@%$host_os%g
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04006299s%@EVMS_CMT@%$EVMS_CMT%g
Theodore Ts'o74becf31997-04-26 14:37:06 +00006300s%@CC@%$CC%g
6301s%@LD@%$LD%g
Theodore Ts'of8bd9801999-10-26 04:19:45 +00006302s%@CPP@%$CPP%g
6303s%@LINUX_INCLUDE@%$LINUX_INCLUDE%g
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04006304s%@HTREE_CMT@%$HTREE_CMT%g
6305s%@HTREE_CLR_CMT@%$HTREE_CLR_CMT%g
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05006306s%@EVMS_ABI_CODE@%$EVMS_ABI_CODE%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006307s%@DLL_CMT@%$DLL_CMT%g
6308/@MAKEFILE_DLL@/r $MAKEFILE_DLL
6309s%@MAKEFILE_DLL@%%g
6310s%@ELF_CMT@%$ELF_CMT%g
6311/@MAKEFILE_ELF@/r $MAKEFILE_ELF
6312s%@MAKEFILE_ELF@%%g
6313s%@BSDLIB_CMT@%$BSDLIB_CMT%g
6314/@MAKEFILE_BSDLIB@/r $MAKEFILE_BSDLIB
6315s%@MAKEFILE_BSDLIB@%%g
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00006316s%@PROFILE_CMT@%$PROFILE_CMT%g
6317/@MAKEFILE_PROFILE@/r $MAKEFILE_PROFILE
6318s%@MAKEFILE_PROFILE@%%g
6319s%@CHECKER_CMT@%$CHECKER_CMT%g
6320/@MAKEFILE_CHECKER@/r $MAKEFILE_CHECKER
6321s%@MAKEFILE_CHECKER@%%g
6322s%@LIB_EXT@%$LIB_EXT%g
6323s%@STATIC_LIB_EXT@%$STATIC_LIB_EXT%g
6324s%@PROFILED_LIB_EXT@%$PROFILED_LIB_EXT%g
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05006325s%@SWAPFS_CMT@%$SWAPFS_CMT%g
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00006326s%@DEBUGFS_CMT@%$DEBUGFS_CMT%g
6327s%@IMAGER_CMT@%$IMAGER_CMT%g
6328s%@RESIZER_CMT@%$RESIZER_CMT%g
6329s%@E2FSCK_TYPE@%$E2FSCK_TYPE%g
6330s%@FSCK_PROG@%$FSCK_PROG%g
6331s%@FSCK_MAN@%$FSCK_MAN%g
6332/@MAKEFILE_LIBRARY@/r $MAKEFILE_LIBRARY
6333s%@MAKEFILE_LIBRARY@%%g
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006334s%@PACKAGE@%$PACKAGE%g
6335s%@VERSION@%$VERSION%g
6336s%@SET_MAKE@%$SET_MAKE%g
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006337s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6338s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6339s%@INSTALL_DATA@%$INSTALL_DATA%g
6340s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006341s%@MSGFMT@%$MSGFMT%g
6342s%@GMSGFMT@%$GMSGFMT%g
6343s%@XGETTEXT@%$XGETTEXT%g
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006344s%@MSGMERGE@%$MSGMERGE%g
6345s%@RANLIB@%$RANLIB%g
6346s%@ALLOCA@%$ALLOCA%g
6347s%@GLIBC21@%$GLIBC21%g
6348s%@LIBICONV@%$LIBICONV%g
6349s%@LTLIBICONV@%$LTLIBICONV%g
6350s%@INTLBISON@%$INTLBISON%g
6351s%@USE_NLS@%$USE_NLS%g
6352s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006353s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006354s%@CATOBJEXT@%$CATOBJEXT%g
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006355s%@INTLOBJS@%$INTLOBJS%g
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006356s%@DATADIRNAME@%$DATADIRNAME%g
6357s%@INSTOBJEXT@%$INSTOBJEXT%g
6358s%@GENCAT@%$GENCAT%g
6359s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
6360s%@INTLLIBS@%$INTLLIBS%g
6361s%@LIBINTL@%$LIBINTL%g
6362s%@LTLIBINTL@%$LTLIBINTL%g
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006363s%@POSUB@%$POSUB%g
Theodore Ts'o74becf31997-04-26 14:37:06 +00006364s%@BINARY_TYPE@%$BINARY_TYPE%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006365s%@LN@%$LN%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00006366s%@LN_S@%$LN_S%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006367s%@MV@%$MV%g
6368s%@CP@%$CP%g
6369s%@RM@%$RM%g
6370s%@CHMOD@%$CHMOD%g
6371s%@AWK@%$AWK%g
6372s%@SED@%$SED%g
Theodore Ts'o9d564f71999-07-03 20:25:58 +00006373s%@PERL@%$PERL%g
Theodore Ts'o250f79f2001-05-19 22:02:22 +00006374s%@LDCONFIG@%$LDCONFIG%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006375s%@build@%$build%g
6376s%@build_alias@%$build_alias%g
6377s%@build_cpu@%$build_cpu%g
6378s%@build_vendor@%$build_vendor%g
6379s%@build_os@%$build_os%g
6380s%@AR@%$AR%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006381s%@STRIP@%$STRIP%g
Theodore Ts'o6c133521999-07-03 20:37:03 +00006382s%@BUILD_CC@%$BUILD_CC%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006383s%@SIZEOF_SHORT@%$SIZEOF_SHORT%g
6384s%@SIZEOF_INT@%$SIZEOF_INT%g
6385s%@SIZEOF_LONG@%$SIZEOF_LONG%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00006386s%@SIZEOF_LONG_LONG@%$SIZEOF_LONG_LONG%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00006387s%@SOCKET_LIB@%$SOCKET_LIB%g
Theodore Ts'obbac86b2003-03-16 06:27:22 -05006388s%@DLOPEN_LIB@%$DLOPEN_LIB%g
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -04006389s%@LINUX_CMT@%$LINUX_CMT%g
Theodore Ts'offf45482003-04-13 00:44:19 -04006390s%@CYGWIN_CMT@%$CYGWIN_CMT%g
6391s%@UNIX_CMT@%$UNIX_CMT%g
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00006392s%@root_prefix@%$root_prefix%g
Theodore Ts'ob5ffead2002-05-11 19:17:00 -04006393s%@root_bindir@%$root_bindir%g
6394s%@root_sbindir@%$root_sbindir%g
6395s%@root_libdir@%$root_libdir%g
6396s%@root_sysconfdir@%$root_sysconfdir%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00006397s%@LDFLAG_STATIC@%$LDFLAG_STATIC%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006398s%@SS_DIR@%$SS_DIR%g
6399s%@ET_DIR@%$ET_DIR%g
6400s%@DO_TEST_SUITE@%$DO_TEST_SUITE%g
6401
6402CEOF
6403EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00006404
6405cat >> $CONFIG_STATUS <<\EOF
6406
6407# Split the substitutions into bite-sized pieces for seds with
6408# small command number limits, like on Digital OSF/1 and HP-UX.
6409ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
6410ac_file=1 # Number of current file.
6411ac_beg=1 # First line for current file.
6412ac_end=$ac_max_sed_cmds # Line after last line for current file.
6413ac_more_lines=:
6414ac_sed_cmds=""
6415while $ac_more_lines; do
6416 if test $ac_beg -gt 1; then
6417 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
6418 else
6419 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
6420 fi
6421 if test ! -s conftest.s$ac_file; then
6422 ac_more_lines=false
6423 rm -f conftest.s$ac_file
6424 else
6425 if test -z "$ac_sed_cmds"; then
6426 ac_sed_cmds="sed -f conftest.s$ac_file"
6427 else
6428 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
6429 fi
6430 ac_file=`expr $ac_file + 1`
6431 ac_beg=$ac_end
6432 ac_end=`expr $ac_end + $ac_max_sed_cmds`
6433 fi
6434done
6435if test -z "$ac_sed_cmds"; then
6436 ac_sed_cmds=cat
6437fi
6438EOF
6439
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006440cat >> $CONFIG_STATUS <<EOF
6441
Theodore Ts'o94ba8c72003-03-02 02:07:14 -05006442CONFIG_FILES=\${CONFIG_FILES-"$outlist"}
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006443EOF
6444cat >> $CONFIG_STATUS <<\EOF
6445for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
Theodore Ts'o21c84b71997-04-29 16:15:03 +00006446 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006447 case "$ac_file" in
Theodore Ts'o21c84b71997-04-29 16:15:03 +00006448 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006449 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6450 *) ac_file_in="${ac_file}.in" ;;
6451 esac
6452
Theodore Ts'o21c84b71997-04-29 16:15:03 +00006453 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006454
6455 # Remove last slash and all that follows it. Not all systems have dirname.
6456 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6457 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6458 # The file is in a subdirectory.
6459 test ! -d "$ac_dir" && mkdir "$ac_dir"
6460 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
6461 # A "../" for each directory in $ac_dir_suffix.
6462 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6463 else
6464 ac_dir_suffix= ac_dots=
6465 fi
6466
6467 case "$ac_given_srcdir" in
6468 .) srcdir=.
6469 if test -z "$ac_dots"; then top_srcdir=.
6470 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6471 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
6472 *) # Relative path.
6473 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6474 top_srcdir="$ac_dots$ac_given_srcdir" ;;
6475 esac
6476
6477 case "$ac_given_INSTALL" in
6478 [/$]*) INSTALL="$ac_given_INSTALL" ;;
6479 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6480 esac
Theodore Ts'o21c84b71997-04-29 16:15:03 +00006481
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006482 echo creating "$ac_file"
6483 rm -f "$ac_file"
6484 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6485 case "$ac_file" in
6486 *Makefile*) ac_comsub="1i\\
6487# $configure_input" ;;
6488 *) ac_comsub= ;;
6489 esac
Theodore Ts'o21c84b71997-04-29 16:15:03 +00006490
6491 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 +00006492 sed -e "$ac_comsub
6493s%@configure_input@%$configure_input%g
6494s%@srcdir@%$srcdir%g
6495s%@top_srcdir@%$top_srcdir%g
6496s%@INSTALL@%$INSTALL%g
Theodore Ts'o21c84b71997-04-29 16:15:03 +00006497" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006498fi; done
Theodore Ts'o21c84b71997-04-29 16:15:03 +00006499rm -f conftest.s*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006500
Theodore Ts'o21c84b71997-04-29 16:15:03 +00006501EOF
6502cat >> $CONFIG_STATUS <<EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006503# Capture the value of obsolete ALL_LINGUAS because we need it to compute
6504 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
6505 # from automake.
6506 eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
6507 # Capture the value of LINGUAS because we need it to compute CATALOGS.
6508 LINGUAS="${LINGUAS-%UNSET%}"
6509
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006510
Theodore Ts'o21c84b71997-04-29 16:15:03 +00006511EOF
6512cat >> $CONFIG_STATUS <<\EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006513
6514 for ac_file in $CONFIG_FILES; do
6515 # Support "outfile[:infile[:infile...]]"
6516 case "$ac_file" in
6517 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006518 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006519 # PO directories have a Makefile.in generated from Makefile.in.in.
6520 case "$ac_file" in */Makefile.in)
6521 # Adjust a relative srcdir.
6522 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
6523 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
6524 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
6525 # In autoconf-2.13 it is called $ac_given_srcdir.
6526 # In autoconf-2.50 it is called $srcdir.
6527 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
6528 case "$ac_given_srcdir" in
6529 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
6530 /*) top_srcdir="$ac_given_srcdir" ;;
6531 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
6532 esac
6533 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
6534 rm -f "$ac_dir/POTFILES"
6535 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
6536 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
6537 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
6538 # on $ac_dir but don't depend on user-specified configuration
6539 # parameters.
6540 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
6541 # The LINGUAS file contains the set of available languages.
6542 if test -n "$ALL_LINGUAS"; then
6543 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
6544 fi
6545 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
6546 # Hide the ALL_LINGUAS assigment from automake.
6547 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
6548 fi
6549 case "$ac_given_srcdir" in
6550 .) srcdirpre= ;;
6551 *) srcdirpre='$(srcdir)/' ;;
6552 esac
6553 POFILES=
6554 GMOFILES=
6555 UPDATEPOFILES=
6556 DUMMYPOFILES=
6557 for lang in $ALL_LINGUAS; do
6558 POFILES="$POFILES $srcdirpre$lang.po"
6559 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
6560 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
6561 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
6562 done
6563 # CATALOGS depends on both $ac_dir and the user's LINGUAS
6564 # environment variable.
6565 INST_LINGUAS=
6566 if test -n "$ALL_LINGUAS"; then
6567 for presentlang in $ALL_LINGUAS; do
6568 useit=no
6569 if test "%UNSET%" != "$LINGUAS"; then
6570 desiredlanguages="$LINGUAS"
6571 else
6572 desiredlanguages="$ALL_LINGUAS"
6573 fi
6574 for desiredlang in $desiredlanguages; do
6575 # Use the presentlang catalog if desiredlang is
6576 # a. equal to presentlang, or
6577 # b. a variant of presentlang (because in this case,
6578 # presentlang can be used as a fallback for messages
6579 # which are not translated in the desiredlang catalog).
6580 case "$desiredlang" in
6581 "$presentlang"*) useit=yes;;
6582 esac
6583 done
6584 if test $useit = yes; then
6585 INST_LINGUAS="$INST_LINGUAS $presentlang"
6586 fi
6587 done
6588 fi
6589 CATALOGS=
6590 if test -n "$INST_LINGUAS"; then
6591 for lang in $INST_LINGUAS; do
6592 CATALOGS="$CATALOGS $lang.gmo"
6593 done
6594 fi
6595 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
6596 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
6597 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
6598 if test -f "$f"; then
6599 case "$f" in
6600 *.orig | *.bak | *~) ;;
6601 *) cat "$f" >> "$ac_dir/Makefile" ;;
6602 esac
6603 fi
6604 done
6605 fi
6606 ;;
6607 esac
6608 done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006609
6610exit 0
6611EOF
6612chmod +x $CONFIG_STATUS
6613rm -fr confdefs* $ac_clean_files
6614test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
6615