blob: e4de9c3440a9aed0f6c9b733b14b203fd7aac47b [file] [log] [blame]
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001#! /bin/sh
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003# Guess values for system-dependent variables and create Makefiles.
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004# Generated automatically using autoconf version 2.13
5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006#
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010# Defaults:
11ac_help=
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012ac_default_prefix=/usr/local
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013# Any additions from configure.in:
14ac_help="$ac_help
15 --with-diet-libc Use diet libc"
16ac_help="$ac_help
17 --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
25 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root"
26ac_help="$ac_help
27 --enable-compression enable EXPERIMENTAL compression support"
28ac_help="$ac_help
29 --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
33 --disable-evms don't build EVMS plugin"
34ac_help="$ac_help
35 --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.2)"
38ac_help="$ac_help
Theodore Ts'o93636bd2003-07-12 02:45:05 -040039 --enable-elf-shlibs select ELF shared libraries"
40ac_help="$ac_help
41 --enable-bsd-shlibs select BSD shared libraries"
42ac_help="$ac_help
43 --enable-profile build profiling libraries"
44ac_help="$ac_help
45 --enable-checker build checker libraries"
46ac_help="$ac_help
47 --enable-jbd-debug enable journal debugging"
48ac_help="$ac_help
49 --enable-blkid-debug enable blkid debugging"
50ac_help="$ac_help
51 --enable-testio-debug enable the use of the test I/O manager for debugging"
52ac_help="$ac_help
53 --disable-swapfs disable support of legacy byte-swapped filesystems"
54ac_help="$ac_help
55 --disable-debugfs disable support of debugfs program"
56ac_help="$ac_help
57 --disable-imager disable support of e2image program"
58ac_help="$ac_help
59 --disable-resizer disable support of e2resize program"
60ac_help="$ac_help
61 --enable-dynamic-e2fsck build e2fsck dynamically"
62ac_help="$ac_help
63 --enable-fsck build fsck wrapper program"
64ac_help="$ac_help
Theodore Ts'o5d407732004-09-18 14:53:14 -040065 --enable-e2initrd-helper build e2initrd-helper program"
66ac_help="$ac_help
Theodore Ts'o93636bd2003-07-12 02:45:05 -040067 --enable-old-bitops Use old (non-standard but native) bitmask operations"
68ac_help="$ac_help
69 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
70ac_help="$ac_help
71 --disable-rpath do not hardcode runtime library paths"
72ac_help="$ac_help
73 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
74 --without-libiconv-prefix don't search for libiconv in includedir and libdir"
75ac_help="$ac_help
76 --disable-nls do not use Native Language Support"
77ac_help="$ac_help
78 --with-included-gettext use the GNU gettext library included here"
79ac_help="$ac_help
80 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
81 --without-libintl-prefix don't search for libintl in includedir and libdir"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000082
83# Initialize some variables set by options.
84# The variables have the same names as the options, with
85# dashes changed to underlines.
Theodore Ts'o93636bd2003-07-12 02:45:05 -040086build=NONE
87cache_file=./config.cache
Theodore Ts'o50e1e101997-04-26 13:58:21 +000088exec_prefix=NONE
Theodore Ts'o93636bd2003-07-12 02:45:05 -040089host=NONE
Theodore Ts'o50e1e101997-04-26 13:58:21 +000090no_create=
Theodore Ts'o93636bd2003-07-12 02:45:05 -040091nonopt=NONE
Theodore Ts'o50e1e101997-04-26 13:58:21 +000092no_recursion=
93prefix=NONE
94program_prefix=NONE
95program_suffix=NONE
96program_transform_name=s,x,x,
97silent=
98site=
99srcdir=
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400100target=NONE
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000101verbose=
102x_includes=NONE
103x_libraries=NONE
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000104bindir='${exec_prefix}/bin'
105sbindir='${exec_prefix}/sbin'
106libexecdir='${exec_prefix}/libexec'
107datadir='${prefix}/share'
108sysconfdir='${prefix}/etc'
109sharedstatedir='${prefix}/com'
110localstatedir='${prefix}/var'
111libdir='${exec_prefix}/lib'
112includedir='${prefix}/include'
113oldincludedir='/usr/include'
114infodir='${prefix}/info'
115mandir='${prefix}/man'
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000116
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400117# Initialize some other variables.
118subdirs=
119MFLAGS= MAKEFLAGS=
120SHELL=${CONFIG_SHELL-/bin/sh}
121# Maximum number of lines to put in a shell here document.
122ac_max_here_lines=12
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000123
124ac_prev=
125for ac_option
126do
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400127
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000128 # If the previous option needs an argument, assign it.
129 if test -n "$ac_prev"; then
130 eval "$ac_prev=\$ac_option"
131 ac_prev=
132 continue
133 fi
134
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400135 case "$ac_option" in
136 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
137 *) ac_optarg= ;;
138 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000139
140 # Accept the important Cygnus configure options, so we can diagnose typos.
141
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400142 case "$ac_option" in
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000143
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000144 -bindir | --bindir | --bindi | --bind | --bin | --bi)
145 ac_prev=bindir ;;
146 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400147 bindir="$ac_optarg" ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000148
149 -build | --build | --buil | --bui | --bu)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400150 ac_prev=build ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000151 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400152 build="$ac_optarg" ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000153
154 -cache-file | --cache-file | --cache-fil | --cache-fi \
155 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
156 ac_prev=cache_file ;;
157 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
158 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400159 cache_file="$ac_optarg" ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000160
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000161 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
162 ac_prev=datadir ;;
163 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
164 | --da=*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400165 datadir="$ac_optarg" ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000166
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000167 -disable-* | --disable-*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400168 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000169 # Reject names that are not valid shell variable names.
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400170 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
171 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
172 fi
173 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
174 eval "enable_${ac_feature}=no" ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000175
176 -enable-* | --enable-*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400177 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000178 # Reject names that are not valid shell variable names.
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400179 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
180 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
181 fi
182 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
183 case "$ac_option" in
184 *=*) ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000185 *) ac_optarg=yes ;;
186 esac
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400187 eval "enable_${ac_feature}='$ac_optarg'" ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000188
189 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
190 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
191 | --exec | --exe | --ex)
192 ac_prev=exec_prefix ;;
193 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
194 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
195 | --exec=* | --exe=* | --ex=*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400196 exec_prefix="$ac_optarg" ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000197
198 -gas | --gas | --ga | --g)
199 # Obsolete; use --with-gas.
200 with_gas=yes ;;
201
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400202 -help | --help | --hel | --he)
203 # Omit some internal or obsolete options to make the list less imposing.
204 # This message is too long to be a string in the A/UX 3.1 sh.
205 cat << EOF
206Usage: configure [options] [host]
207Options: [defaults in brackets after descriptions]
208Configuration:
209 --cache-file=FILE cache test results in FILE
210 --help print this message
211 --no-create do not create output files
212 --quiet, --silent do not print \`checking...' messages
213 --version print the version of autoconf that created configure
214Directory and file names:
215 --prefix=PREFIX install architecture-independent files in PREFIX
216 [$ac_default_prefix]
217 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
218 [same as prefix]
219 --bindir=DIR user executables in DIR [EPREFIX/bin]
220 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
221 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
222 --datadir=DIR read-only architecture-independent data in DIR
223 [PREFIX/share]
224 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
225 --sharedstatedir=DIR modifiable architecture-independent data in DIR
226 [PREFIX/com]
227 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
228 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
229 --includedir=DIR C header files in DIR [PREFIX/include]
230 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
231 --infodir=DIR info documentation in DIR [PREFIX/info]
232 --mandir=DIR man documentation in DIR [PREFIX/man]
233 --srcdir=DIR find the sources in DIR [configure dir or ..]
234 --program-prefix=PREFIX prepend PREFIX to installed program names
235 --program-suffix=SUFFIX append SUFFIX to installed program names
236 --program-transform-name=PROGRAM
237 run sed PROGRAM on installed program names
238EOF
239 cat << EOF
240Host type:
241 --build=BUILD configure for building on BUILD [BUILD=HOST]
242 --host=HOST configure for HOST [guessed]
243 --target=TARGET configure for TARGET [TARGET=HOST]
244Features and packages:
245 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
246 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
247 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
248 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
249 --x-includes=DIR X include files are in DIR
250 --x-libraries=DIR X library files are in DIR
251EOF
252 if test -n "$ac_help"; then
253 echo "--enable and --with options recognized:$ac_help"
254 fi
255 exit 0 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000256
257 -host | --host | --hos | --ho)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400258 ac_prev=host ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000259 -host=* | --host=* | --hos=* | --ho=*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400260 host="$ac_optarg" ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000261
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000262 -includedir | --includedir | --includedi | --included | --include \
263 | --includ | --inclu | --incl | --inc)
264 ac_prev=includedir ;;
265 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
266 | --includ=* | --inclu=* | --incl=* | --inc=*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400267 includedir="$ac_optarg" ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000268
269 -infodir | --infodir | --infodi | --infod | --info | --inf)
270 ac_prev=infodir ;;
271 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400272 infodir="$ac_optarg" ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000273
274 -libdir | --libdir | --libdi | --libd)
275 ac_prev=libdir ;;
276 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400277 libdir="$ac_optarg" ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000278
279 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
280 | --libexe | --libex | --libe)
281 ac_prev=libexecdir ;;
282 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
283 | --libexe=* | --libex=* | --libe=*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400284 libexecdir="$ac_optarg" ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000285
286 -localstatedir | --localstatedir | --localstatedi | --localstated \
287 | --localstate | --localstat | --localsta | --localst \
288 | --locals | --local | --loca | --loc | --lo)
289 ac_prev=localstatedir ;;
290 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
291 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
292 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400293 localstatedir="$ac_optarg" ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000294
295 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
296 ac_prev=mandir ;;
297 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400298 mandir="$ac_optarg" ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000299
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000300 -nfp | --nfp | --nf)
301 # Obsolete; use --without-fp.
302 with_fp=no ;;
303
304 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
305 | --no-cr | --no-c)
306 no_create=yes ;;
307
308 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
309 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
310 no_recursion=yes ;;
311
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000312 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
313 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
314 | --oldin | --oldi | --old | --ol | --o)
315 ac_prev=oldincludedir ;;
316 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
317 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
318 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400319 oldincludedir="$ac_optarg" ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000320
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000321 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
322 ac_prev=prefix ;;
323 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400324 prefix="$ac_optarg" ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000325
326 -program-prefix | --program-prefix | --program-prefi | --program-pref \
327 | --program-pre | --program-pr | --program-p)
328 ac_prev=program_prefix ;;
329 -program-prefix=* | --program-prefix=* | --program-prefi=* \
330 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400331 program_prefix="$ac_optarg" ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000332
333 -program-suffix | --program-suffix | --program-suffi | --program-suff \
334 | --program-suf | --program-su | --program-s)
335 ac_prev=program_suffix ;;
336 -program-suffix=* | --program-suffix=* | --program-suffi=* \
337 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400338 program_suffix="$ac_optarg" ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000339
340 -program-transform-name | --program-transform-name \
341 | --program-transform-nam | --program-transform-na \
342 | --program-transform-n | --program-transform- \
343 | --program-transform | --program-transfor \
344 | --program-transfo | --program-transf \
345 | --program-trans | --program-tran \
346 | --progr-tra | --program-tr | --program-t)
347 ac_prev=program_transform_name ;;
348 -program-transform-name=* | --program-transform-name=* \
349 | --program-transform-nam=* | --program-transform-na=* \
350 | --program-transform-n=* | --program-transform-=* \
351 | --program-transform=* | --program-transfor=* \
352 | --program-transfo=* | --program-transf=* \
353 | --program-trans=* | --program-tran=* \
354 | --progr-tra=* | --program-tr=* | --program-t=*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400355 program_transform_name="$ac_optarg" ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000356
357 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
358 | -silent | --silent | --silen | --sile | --sil)
359 silent=yes ;;
360
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000361 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
362 ac_prev=sbindir ;;
363 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
364 | --sbi=* | --sb=*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400365 sbindir="$ac_optarg" ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000366
367 -sharedstatedir | --sharedstatedir | --sharedstatedi \
368 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
369 | --sharedst | --shareds | --shared | --share | --shar \
370 | --sha | --sh)
371 ac_prev=sharedstatedir ;;
372 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
373 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
374 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
375 | --sha=* | --sh=*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400376 sharedstatedir="$ac_optarg" ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000377
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000378 -site | --site | --sit)
379 ac_prev=site ;;
380 -site=* | --site=* | --sit=*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400381 site="$ac_optarg" ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000382
383 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
384 ac_prev=srcdir ;;
385 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400386 srcdir="$ac_optarg" ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000387
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000388 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
389 | --syscon | --sysco | --sysc | --sys | --sy)
390 ac_prev=sysconfdir ;;
391 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
392 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400393 sysconfdir="$ac_optarg" ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000394
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000395 -target | --target | --targe | --targ | --tar | --ta | --t)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400396 ac_prev=target ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000397 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400398 target="$ac_optarg" ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000399
400 -v | -verbose | --verbose | --verbos | --verbo | --verb)
401 verbose=yes ;;
402
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400403 -version | --version | --versio | --versi | --vers)
404 echo "configure generated by autoconf version 2.13"
405 exit 0 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000406
407 -with-* | --with-*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400408 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000409 # Reject names that are not valid shell variable names.
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400410 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
411 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
412 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000413 ac_package=`echo $ac_package| sed 's/-/_/g'`
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400414 case "$ac_option" in
415 *=*) ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000416 *) ac_optarg=yes ;;
417 esac
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400418 eval "with_${ac_package}='$ac_optarg'" ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000419
420 -without-* | --without-*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400421 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000422 # Reject names that are not valid shell variable names.
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400423 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
424 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
425 fi
426 ac_package=`echo $ac_package| sed 's/-/_/g'`
427 eval "with_${ac_package}=no" ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000428
429 --x)
430 # Obsolete; use --with-x.
431 with_x=yes ;;
432
433 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
434 | --x-incl | --x-inc | --x-in | --x-i)
435 ac_prev=x_includes ;;
436 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
437 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400438 x_includes="$ac_optarg" ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000439
440 -x-libraries | --x-libraries | --x-librarie | --x-librari \
441 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
442 ac_prev=x_libraries ;;
443 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
444 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400445 x_libraries="$ac_optarg" ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000446
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400447 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000448 ;;
449
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000450 *)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400451 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
452 echo "configure: warning: $ac_option: invalid host type" 1>&2
453 fi
454 if test "x$nonopt" != xNONE; then
455 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
456 fi
457 nonopt="$ac_option"
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000458 ;;
459
460 esac
461done
462
463if test -n "$ac_prev"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400464 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000465fi
466
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400467trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
468
469# File descriptor usage:
470# 0 standard input
471# 1 file creation
472# 2 errors and warnings
473# 3 some systems may open it to /dev/tty
474# 4 used on the Kubota Titan
475# 6 checking for... messages and results
476# 5 compiler messages saved in config.log
477if test "$silent" = yes; then
478 exec 6>/dev/null
479else
480 exec 6>&1
481fi
482exec 5>./config.log
483
484echo "\
485This file contains any messages produced by compilers while
486running configure, to aid debugging if configure makes a mistake.
487" 1>&5
488
489# Strip out --no-create and --no-recursion so they do not pile up.
490# Also quote any args containing shell metacharacters.
491ac_configure_args=
492for ac_arg
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000493do
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400494 case "$ac_arg" in
495 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
496 | --no-cr | --no-c) ;;
497 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
498 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
499 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
500 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
501 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000502 esac
503done
504
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400505# NLS nuisances.
506# Only set these to C if already set. These must not be set unconditionally
507# because not all systems understand e.g. LANG=C (notably SCO).
508# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
509# Non-C LC_CTYPE values break the ctype check.
510if test "${LANG+set}" = set; then LANG=C; export LANG; fi
511if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
512if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
513if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000514
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400515# confdefs.h avoids OS command line length limits that DEFS can exceed.
516rm -rf conftest* confdefs.h
517# AIX cpp loses on an empty file, so make sure it contains at least a newline.
518echo > confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000519
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400520# A filename unique to this package, relative to the directory that
521# configure is in, which we can look for to find out if srcdir is correct.
522ac_unique_file=version.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000523
524# Find the source files, if location was not specified.
525if test -z "$srcdir"; then
526 ac_srcdir_defaulted=yes
527 # Try the directory containing this script, then its parent.
528 ac_prog=$0
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400529 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000530 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
531 srcdir=$ac_confdir
532 if test ! -r $srcdir/$ac_unique_file; then
533 srcdir=..
534 fi
535else
536 ac_srcdir_defaulted=no
537fi
538if test ! -r $srcdir/$ac_unique_file; then
539 if test "$ac_srcdir_defaulted" = yes; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400540 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000541 else
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400542 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000543 fi
544fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400545srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000546
547# Prefer explicitly selected file to automatically selected ones.
548if test -z "$CONFIG_SITE"; then
549 if test "x$prefix" != xNONE; then
550 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
551 else
552 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
553 fi
554fi
555for ac_site_file in $CONFIG_SITE; do
556 if test -r "$ac_site_file"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400557 echo "loading site script $ac_site_file"
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000558 . "$ac_site_file"
559 fi
560done
561
562if test -r "$cache_file"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400563 echo "loading cache $cache_file"
564 . $cache_file
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000565else
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400566 echo "creating cache $cache_file"
567 > $cache_file
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000568fi
569
570ac_ext=c
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400571# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000572ac_cpp='$CPP $CPPFLAGS'
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400573ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
574ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
575cross_compiling=$ac_cv_prog_cc_cross
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000576
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400577ac_exeext=
578ac_objext=o
579if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
580 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
581 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
582 ac_n= ac_c='
583' ac_t=' '
584 else
585 ac_n=-n ac_c= ac_t=
586 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000587else
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400588 ac_n= ac_c='\c' ac_t=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000589fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400590
591# Check whether --with-gnu-ld or --without-gnu-ld was given.
592if test "${with_gnu_ld+set}" = set; then
593 withval="$with_gnu_ld"
594 test "$withval" = no || with_gnu_ld=yes
595else
596 with_gnu_ld=no
597fi
598
599ac_prog=ld
600if test "$GCC" = yes; then
601 # Check if gcc -print-prog-name=ld gives a path.
602 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -0500603echo "configure:604: checking for ld used by GCC" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400604 case $host in
605 *-*-mingw*)
606 # gcc leaves a trailing carriage return which upsets mingw
607 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
608 *)
609 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
610 esac
611 case $ac_prog in
612 # Accept absolute paths.
613 [\\/]* | [A-Za-z]:[\\/]*)
614 re_direlt='/[^/][^/]*/\.\./'
615 # Canonicalize the path of ld
616 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
617 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
618 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
619 done
620 test -z "$LD" && LD="$ac_prog"
621 ;;
622 "")
623 # If it fails, then pretend we aren't using GCC.
624 ac_prog=ld
625 ;;
626 *)
627 # If it is relative, then search for the first ld in PATH.
628 with_gnu_ld=unknown
629 ;;
630 esac
631elif test "$with_gnu_ld" = yes; then
632 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -0500633echo "configure:634: checking for GNU ld" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400634else
635 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -0500636echo "configure:637: checking for non-GNU ld" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400637fi
638if eval "test \"`echo '$''{'acl_cv_path_LD'+set}'`\" = set"; then
639 echo $ac_n "(cached) $ac_c" 1>&6
640else
641 if test -z "$LD"; then
642 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
643 for ac_dir in $PATH; do
644 test -z "$ac_dir" && ac_dir=.
645 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
646 acl_cv_path_LD="$ac_dir/$ac_prog"
647 # Check to see if the program is GNU ld. I'd rather use --version,
648 # but apparently some GNU ld's only accept -v.
649 # Break only if it was the GNU/non-GNU ld that we prefer.
650 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
651 test "$with_gnu_ld" != no && break
652 else
653 test "$with_gnu_ld" != yes && break
654 fi
655 fi
656 done
657 IFS="$ac_save_ifs"
658else
659 acl_cv_path_LD="$LD" # Let the user override the test with a path.
660fi
661fi
662
663LD="$acl_cv_path_LD"
664if test -n "$LD"; then
665 echo "$ac_t""$LD" 1>&6
666else
667 echo "$ac_t""no" 1>&6
668fi
669test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
670echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -0500671echo "configure:672: checking if the linker ($LD) is GNU ld" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400672if eval "test \"`echo '$''{'acl_cv_prog_gnu_ld'+set}'`\" = set"; then
673 echo $ac_n "(cached) $ac_c" 1>&6
674else
675 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
676if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
677 acl_cv_prog_gnu_ld=yes
678else
679 acl_cv_prog_gnu_ld=no
680fi
681fi
682
683echo "$ac_t""$acl_cv_prog_gnu_ld" 1>&6
684with_gnu_ld=$acl_cv_prog_gnu_ld
685
686
687
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +0000688
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000689MCONFIG=./MCONFIG
690
Theodore Ts'o74becf31997-04-26 14:37:06 +0000691BINARY_TYPE=bin
692E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
693 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
694DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
695 | tr \" " "`
Theodore Ts'obff0cc92003-03-23 01:37:53 -0500696E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
Theodore Ts'o74becf31997-04-26 14:37:06 +0000697MONTH=`echo $DATE | awk -F- '{print $2}'`
698YEAR=`echo $DATE | awk -F- '{print $3}'`
699
Theodore Ts'o14790ed1999-01-12 23:32:52 +0000700if expr $YEAR ">" 1900 > /dev/null ; then
701 E2FSPROGS_YEAR=$YEAR
702elif expr $YEAR ">" 90 >/dev/null ; then
Theodore Ts'o74becf31997-04-26 14:37:06 +0000703 E2FSPROGS_YEAR=19$YEAR
704else
705 E2FSPROGS_YEAR=20$YEAR
706fi
707
708case $MONTH in
709Jan) E2FSPROGS_MONTH="January" ;;
710Feb) E2FSPROGS_MONTH="February" ;;
711Mar) E2FSPROGS_MONTH="March" ;;
712Apr) E2FSPROGS_MONTH="April" ;;
713May) E2FSPROGS_MONTH="May" ;;
714Jun) E2FSPROGS_MONTH="June" ;;
715Jul) E2FSPROGS_MONTH="July" ;;
716Aug) E2FSPROGS_MONTH="August" ;;
717Sep) E2FSPROGS_MONTH="September" ;;
718Oct) E2FSPROGS_MONTH="October" ;;
719Nov) E2FSPROGS_MONTH="November" ;;
720Dec) E2FSPROGS_MONTH="December" ;;
721*) echo "Unknown month $MONTH??" ;;
722esac
723
724unset DATE MONTH YEAR
725echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION"
726echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}"
727
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400728
729
730
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000731ac_aux_dir=
732for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
733 if test -f $ac_dir/install-sh; then
734 ac_aux_dir=$ac_dir
735 ac_install_sh="$ac_aux_dir/install-sh -c"
736 break
737 elif test -f $ac_dir/install.sh; then
738 ac_aux_dir=$ac_dir
739 ac_install_sh="$ac_aux_dir/install.sh -c"
740 break
741 fi
742done
743if test -z "$ac_aux_dir"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400744 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000745fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400746ac_config_guess=$ac_aux_dir/config.guess
747ac_config_sub=$ac_aux_dir/config.sub
748ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
749
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000750
751# Make sure we can run config.sub.
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400752if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
753else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000754fi
755
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400756echo $ac_n "checking host system type""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -0500757echo "configure:758: checking host system type" >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000758
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400759host_alias=$host
760case "$host_alias" in
761NONE)
762 case $nonopt in
763 NONE)
764 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
765 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
766 fi ;;
767 *) host_alias=$nonopt ;;
768 esac ;;
769esac
770
771host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
772host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
773host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
774host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
775echo "$ac_t""$host" 1>&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000776
Theodore Ts'od21ae6c2003-05-05 09:00:24 -0400777EVMS_CMT=
Theodore Ts'od21ae6c2003-05-05 09:00:24 -0400778# Check whether --with-diet-libc or --without-diet-libc was given.
779if test "${with_diet_libc+set}" = set; then
780 withval="$with_diet_libc"
781 CC="diet cc -nostdinc"
782EVMS_CMT="#"
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400783echo "$ac_t""CC=$CC" 1>&6
784fi
Theodore Ts'o74becf31997-04-26 14:37:06 +0000785# Check whether --with-cc or --without-cc was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000786if test "${with_cc+set}" = set; then
787 withval="$with_cc"
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400788 echo "$ac_t""CC=$withval" 1>&6
Theodore Ts'o74becf31997-04-26 14:37:06 +0000789CC=$withval
790else
791 if test -z "$CC" ; then CC=cc; fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400792echo "$ac_t""CC defaults to $CC" 1>&6
793fi
794export CC
Theodore Ts'o74becf31997-04-26 14:37:06 +0000795
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400796# Extract the first word of "gcc", so it can be a program name with args.
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400797set dummy gcc; ac_word=$2
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400798echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -0500799echo "configure:800: checking for $ac_word" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400800if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
801 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000802else
803 if test -n "$CC"; then
804 ac_cv_prog_CC="$CC" # Let the user override the test.
805else
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400806 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
807 ac_dummy="$PATH"
808 for ac_dir in $ac_dummy; do
809 test -z "$ac_dir" && ac_dir=.
810 if test -f $ac_dir/$ac_word; then
811 ac_cv_prog_CC="gcc"
812 break
813 fi
814 done
815 IFS="$ac_save_ifs"
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400816fi
817fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400818CC="$ac_cv_prog_CC"
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400819if test -n "$CC"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400820 echo "$ac_t""$CC" 1>&6
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400821else
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400822 echo "$ac_t""no" 1>&6
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400823fi
824
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400825if test -z "$CC"; then
826 # Extract the first word of "cc", so it can be a program name with args.
827set dummy cc; ac_word=$2
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400828echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -0500829echo "configure:830: checking for $ac_word" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400830if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
831 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400832else
833 if test -n "$CC"; then
834 ac_cv_prog_CC="$CC" # Let the user override the test.
835else
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400836 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000837 ac_prog_rejected=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400838 ac_dummy="$PATH"
839 for ac_dir in $ac_dummy; do
840 test -z "$ac_dir" && ac_dir=.
841 if test -f $ac_dir/$ac_word; then
842 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
843 ac_prog_rejected=yes
844 continue
845 fi
846 ac_cv_prog_CC="cc"
847 break
848 fi
849 done
850 IFS="$ac_save_ifs"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000851if test $ac_prog_rejected = yes; then
852 # We found a bogon in the path, so make sure we never use it.
853 set dummy $ac_cv_prog_CC
854 shift
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400855 if test $# -gt 0; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000856 # We chose a different compiler from the bogus one.
857 # However, it has the same basename, so the bogon will be chosen
858 # first if we set CC to just the basename; use the full file name.
859 shift
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400860 set dummy "$ac_dir/$ac_word" "$@"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000861 shift
862 ac_cv_prog_CC="$@"
863 fi
864fi
865fi
866fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400867CC="$ac_cv_prog_CC"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000868if test -n "$CC"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400869 echo "$ac_t""$CC" 1>&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000870else
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400871 echo "$ac_t""no" 1>&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000872fi
873
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400874 if test -z "$CC"; then
875 case "`uname -s`" in
876 *win32* | *WIN32*)
877 # Extract the first word of "cl", so it can be a program name with args.
878set dummy cl; ac_word=$2
879echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -0500880echo "configure:881: checking for $ac_word" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400881if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
882 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000883else
884 if test -n "$CC"; then
885 ac_cv_prog_CC="$CC" # Let the user override the test.
886else
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400887 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
888 ac_dummy="$PATH"
889 for ac_dir in $ac_dummy; do
890 test -z "$ac_dir" && ac_dir=.
891 if test -f $ac_dir/$ac_word; then
892 ac_cv_prog_CC="cl"
893 break
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400894 fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400895 done
896 IFS="$ac_save_ifs"
897fi
898fi
899CC="$ac_cv_prog_CC"
900if test -n "$CC"; then
901 echo "$ac_t""$CC" 1>&6
902else
903 echo "$ac_t""no" 1>&6
904fi
905 ;;
906 esac
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000907 fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400908 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400909fi
910
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400911echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -0500912echo "configure:913: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400913
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400914ac_ext=c
915# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
916ac_cpp='$CPP $CPPFLAGS'
917ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
918ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
919cross_compiling=$ac_cv_prog_cc_cross
920
921cat > conftest.$ac_ext << EOF
922
Theodore Ts'o2b5901d2004-11-19 17:06:47 -0500923#line 924 "configure"
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400924#include "confdefs.h"
925
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400926main(){return(0);}
927EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -0500928if { (eval echo configure:929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400929 ac_cv_prog_cc_works=yes
930 # If we can't run a trivial program, we are probably using a cross compiler.
931 if (./conftest; exit) 2>/dev/null; then
932 ac_cv_prog_cc_cross=no
933 else
934 ac_cv_prog_cc_cross=yes
935 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400936else
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400937 echo "configure: failed program was:" >&5
938 cat conftest.$ac_ext >&5
939 ac_cv_prog_cc_works=no
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400940fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400941rm -fr conftest*
942ac_ext=c
943# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
944ac_cpp='$CPP $CPPFLAGS'
945ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
946ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
947cross_compiling=$ac_cv_prog_cc_cross
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400948
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400949echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
950if test $ac_cv_prog_cc_works = no; then
951 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400952fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400953echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -0500954echo "configure:955: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400955echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
956cross_compiling=$ac_cv_prog_cc_cross
957
958echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -0500959echo "configure:960: checking whether we are using GNU C" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400960if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
961 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400962else
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400963 cat > conftest.c <<EOF
964#ifdef __GNUC__
965 yes;
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000966#endif
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400967EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -0500968if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:969: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400969 ac_cv_prog_gcc=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000970else
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400971 ac_cv_prog_gcc=no
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000972fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400973fi
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000974
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400975echo "$ac_t""$ac_cv_prog_gcc" 1>&6
976
977if test $ac_cv_prog_gcc = yes; then
978 GCC=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000979else
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400980 GCC=
981fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400982
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400983ac_test_CFLAGS="${CFLAGS+set}"
984ac_save_CFLAGS="$CFLAGS"
985CFLAGS=
986echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -0500987echo "configure:988: checking whether ${CC-cc} accepts -g" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400988if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
989 echo $ac_n "(cached) $ac_c" 1>&6
990else
991 echo 'void f(){}' > conftest.c
992if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000993 ac_cv_prog_cc_g=yes
994else
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400995 ac_cv_prog_cc_g=no
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000996fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400997rm -f conftest*
998
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000999fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001000
1001echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001002if test "$ac_test_CFLAGS" = set; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001003 CFLAGS="$ac_save_CFLAGS"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001004elif test $ac_cv_prog_cc_g = yes; then
1005 if test "$GCC" = yes; then
1006 CFLAGS="-g -O2"
1007 else
1008 CFLAGS="-g"
1009 fi
1010else
1011 if test "$GCC" = yes; then
1012 CFLAGS="-O2"
1013 else
1014 CFLAGS=
1015 fi
1016fi
1017
Theodore Ts'o74becf31997-04-26 14:37:06 +00001018# Check whether --with-linker or --without-linker was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001019if test "${with_linker+set}" = set; then
1020 withval="$with_linker"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001021 echo "$ac_t""LD=$withval" 1>&6
Theodore Ts'o74becf31997-04-26 14:37:06 +00001022LD=$withval
1023else
1024 if test -z "$LD" ; then LD=$CC; fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001025echo "$ac_t""LD defaults to $LD" 1>&6
1026fi
1027export LD
Theodore Ts'o74becf31997-04-26 14:37:06 +00001028
1029# Check whether --with-ccopts or --without-ccopts was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001030if test "${with_ccopts+set}" = set; then
1031 withval="$with_ccopts"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001032 echo "$ac_t""CCOPTS is $withval" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001033CFLAGS=$withval
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001034fi
1035echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05001036echo "configure:1037: checking how to run the C preprocessor" >&5
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001037# On Suns, sometimes $CPP names a directory.
1038if test -n "$CPP" && test -d "$CPP"; then
1039 CPP=
1040fi
1041if test -z "$CPP"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001042if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1043 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001044else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001045 # This must be in double quotes, not single quotes, because CPP may get
1046 # substituted into the Makefile and "${CC-cc}" will confuse make.
1047 CPP="${CC-cc} -E"
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001048 # On the NeXT, cc -E runs the code through the compiler's parser,
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001049 # not just through cpp.
1050 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05001051#line 1052 "configure"
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001052#include "confdefs.h"
1053#include <assert.h>
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001054Syntax Error
1055EOF
1056ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05001057{ (eval echo configure:1058: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001058ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1059if test -z "$ac_err"; then
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001060 :
1061else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001062 echo "$ac_err" >&5
1063 echo "configure: failed program was:" >&5
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001064 cat conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001065 rm -rf conftest*
1066 CPP="${CC-cc} -E -traditional-cpp"
1067 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05001068#line 1069 "configure"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001069#include "confdefs.h"
1070#include <assert.h>
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001071Syntax Error
1072EOF
1073ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05001074{ (eval echo configure:1075: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001075ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1076if test -z "$ac_err"; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001077 :
1078else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001079 echo "$ac_err" >&5
1080 echo "configure: failed program was:" >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001081 cat conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001082 rm -rf conftest*
1083 CPP="${CC-cc} -nologo -E"
1084 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05001085#line 1086 "configure"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001086#include "confdefs.h"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001087#include <assert.h>
1088Syntax Error
1089EOF
1090ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05001091{ (eval echo configure:1092: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001092ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1093if test -z "$ac_err"; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001094 :
1095else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001096 echo "$ac_err" >&5
1097 echo "configure: failed program was:" >&5
1098 cat conftest.$ac_ext >&5
1099 rm -rf conftest*
1100 CPP=/lib/cpp
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001101fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001102rm -f conftest*
1103fi
1104rm -f conftest*
1105fi
1106rm -f conftest*
1107 ac_cv_prog_CPP="$CPP"
1108fi
1109 CPP="$ac_cv_prog_CPP"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001110else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001111 ac_cv_prog_CPP="$CPP"
1112fi
1113echo "$ac_t""$CPP" 1>&6
1114
1115ac_safe=`echo "linux/fs.h" | sed 'y%./+-%__p_%'`
1116echo $ac_n "checking for linux/fs.h""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05001117echo "configure:1118: checking for linux/fs.h" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001118if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1119 echo $ac_n "(cached) $ac_c" 1>&6
1120else
1121 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05001122#line 1123 "configure"
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001123#include "confdefs.h"
1124#include <linux/fs.h>
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001125EOF
1126ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05001127{ (eval echo configure:1128: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001128ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1129if test -z "$ac_err"; then
1130 rm -rf conftest*
1131 eval "ac_cv_header_$ac_safe=yes"
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001132else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001133 echo "$ac_err" >&5
1134 echo "configure: failed program was:" >&5
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001135 cat conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001136 rm -rf conftest*
1137 eval "ac_cv_header_$ac_safe=no"
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001138fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001139rm -f conftest*
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001140fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001141if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1142 echo "$ac_t""yes" 1>&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001143 linux_headers=yes
1144else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001145 echo "$ac_t""no" 1>&6
1146linux_headers=no
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001147fi
1148
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001149if test "$linux_headers" != yes; then
1150 LINUX_INCLUDE='-I$(top_builddir)/include'
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001151fi
1152
Matthias Andreeb1c92f92004-02-23 21:30:11 +01001153echo $ac_n "checking for additional special compiler flags""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05001154echo "configure:1155: checking for additional special compiler flags" >&5
Matthias Andreeb1c92f92004-02-23 21:30:11 +01001155if test "$GCC" = yes
1156then
1157 case "$host_cpu" in
1158 alpha) addcflags="-mieee" ;;
1159 esac
1160fi
1161if test "x$addcflags" != x
1162then
1163 echo "$ac_t""$addcflags" 1>&6
1164 CFLAGS="$addcflags $CFLAGS"
1165else
1166 echo "$ac_t""(none)" 1>&6
1167fi
Theodore Ts'oa4d09611997-04-29 14:28:00 +00001168LIB_EXT=.a
1169STATIC_LIB_EXT=.a
1170PROFILE_LIB_EXT=.a
Theodore Ts'o74becf31997-04-26 14:37:06 +00001171# Check whether --with-ldopts or --without-ldopts was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001172if test "${with_ldopts+set}" = set; then
1173 withval="$with_ldopts"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001174 echo "$ac_t""LDFLAGS is $withval" 1>&6
Theodore Ts'o74becf31997-04-26 14:37:06 +00001175LDFLAGS=$withval
1176else
1177 LDFLAGS=
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001178fi
Theodore Ts'o74becf31997-04-26 14:37:06 +00001179
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00001180# Check whether --with-root-prefix or --without-root-prefix was given.
1181if test "${with_root_prefix+set}" = set; then
1182 withval="$with_root_prefix"
1183 root_prefix=$withval
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001184else
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00001185 root_prefix=NONE
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001186fi
1187# Check whether --enable-compression or --disable-compression was given.
Theodore Ts'o19178752000-02-11 15:55:07 +00001188if test "${enable_compression+set}" = set; then
1189 enableval="$enable_compression"
1190 if test "$enableval" = "no"
1191then
1192 echo "Disabling compression support"
1193else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001194 cat >> confdefs.h <<\EOF
Theodore Ts'o19178752000-02-11 15:55:07 +00001195#define ENABLE_COMPRESSION 1
1196EOF
1197
1198 echo "Enabling compression support"
1199 echo "WARNING: Compression support is experimental"
1200fi
1201
1202else
1203 echo "Disabling compression support by default"
1204
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001205fi
1206
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04001207# Check whether --enable-htree or --disable-htree was given.
1208if test "${enable_htree+set}" = set; then
1209 enableval="$enable_htree"
1210 if test "$enableval" = "no"
1211then
1212 HTREE_CMT=#
1213 echo "Disabling htree directory support"
1214else
1215 HTREE_CMT=
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001216 cat >> confdefs.h <<\EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04001217#define ENABLE_HTREE 1
1218EOF
1219
1220 echo "Enabling htree directory support"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04001221fi
1222
1223else
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04001224 HTREE_CMT=
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001225cat >> confdefs.h <<\EOF
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04001226#define ENABLE_HTREE 1
1227EOF
1228
1229echo "Enabling htree directory support by default"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04001230
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001231fi
1232
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04001233
1234# Check whether --enable-htree-clear or --disable-htree-clear was given.
1235if test "${enable_htree_clear+set}" = set; then
1236 enableval="$enable_htree_clear"
1237 if test "$enableval" = "no"
1238then
1239 HTREE_CLR_CMT=#
1240 echo "Disabling htree clearing"
1241else
1242 HTREE_CLR_CMT=
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001243 cat >> confdefs.h <<\EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04001244#define ENABLE_HTREE_CLEAR 1
1245EOF
1246
1247 echo "Enabling htree clearing"
1248fi
1249
1250else
1251 HTREE_CLR_CMT=#
1252echo "Disabling htree clearing by default"
1253
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001254fi
1255
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04001256
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04001257# Check whether --enable-evms or --disable-evms was given.
1258if test "${enable_evms+set}" = set; then
1259 enableval="$enable_evms"
Theodore Ts'o5c70a502003-05-20 10:29:29 -04001260 if test "$enableval" == "no"
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04001261then
1262 EVMS_CMT="#"
1263 echo "Disabling EVMS plugin"
1264fi
1265
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001266fi
1267
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05001268EVMS_ABI_CODE=120
1269# Check whether --enable-evms-10 or --disable-evms-10 was given.
1270if test "${enable_evms_10+set}" = set; then
1271 enableval="$enable_evms_10"
1272 if test "$enableval" != "no"
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04001273then
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05001274 EVMS_ABI_CODE=100
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04001275 echo "Enabling EVMS 1.0.0 ABI"
1276fi
1277
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001278fi
1279
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05001280# Check whether --enable-evms-11 or --disable-evms-11 was given.
1281if test "${enable_evms_11+set}" = set; then
1282 enableval="$enable_evms_11"
1283 if test "$enableval" != "no"
1284then
1285 EVMS_ABI_CODE=110
1286 echo "Enabling EVMS 1.1.0 ABI"
1287fi
1288
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001289fi
1290
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05001291if test "$EVMS_ABI_CODE" = "120"
1292then
1293 echo "Using EVMS 1.2.0 ABI by default"
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04001294fi
1295
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001296# Check whether --enable-elf-shlibs or --disable-elf-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001297if test "${enable_elf_shlibs+set}" = set; then
1298 enableval="$enable_elf_shlibs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001299 if test "$enableval" = "no"
1300then
1301 ELF_CMT=#
1302 MAKEFILE_ELF=/dev/null
1303 echo "Disabling ELF shared libraries"
1304else
1305 ELF_CMT=
1306 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
Theodore Ts'of5955dd2000-10-25 02:38:39 +00001307 case "$host_os" in
1308 solaris2.*)
1309 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
1310 ;;
1311 esac
Theodore Ts'o74becf31997-04-26 14:37:06 +00001312 BINARY_TYPE=elfbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00001313 LIB_EXT=.so
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001314 echo "Enabling ELF shared libraries"
1315fi
1316
1317else
1318 MAKEFILE_ELF=/dev/null
1319ELF_CMT=#
1320echo "Disabling ELF shared libraries by default"
1321
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001322fi
1323
1324
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001325
1326# Check whether --enable-bsd-shlibs or --disable-bsd-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001327if test "${enable_bsd_shlibs+set}" = set; then
1328 enableval="$enable_bsd_shlibs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001329 if test "$enableval" = "no"
1330then
1331 BSDLIB_CMT=#
1332 MAKEFILE_BSDLIB=/dev/null
1333 echo "Disabling BSD shared libraries"
1334else
1335 BSDLIB_CMT=
1336 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
Theodore Ts'oa4d09611997-04-29 14:28:00 +00001337 LIB_EXT=.so
Theodore Ts'oe1f07222003-03-14 02:25:36 -05001338 case "$host_os" in
Theodore Ts'oaa75ecc2003-03-17 10:01:22 -05001339 darwin*)
Theodore Ts'oe1f07222003-03-14 02:25:36 -05001340 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
1341 LIB_EXT=.dylib
1342 ;;
1343 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001344 echo "Enabling BSD shared libraries"
1345fi
1346
1347else
1348 MAKEFILE_BSDLIB=/dev/null
1349BSDLIB_CMT=#
1350echo "Disabling BSD shared libraries by default"
1351
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001352fi
1353
1354
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001355
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001356# Check whether --enable-profile or --disable-profile was given.
1357if test "${enable_profile+set}" = set; then
1358 enableval="$enable_profile"
1359 if test "$enableval" = "no"
1360then
1361 PROFILE_CMT=#
1362 MAKEFILE_PROFILE=/dev/null
1363 echo "Disabling profiling libraries"
1364else
1365 PROFILE_CMT=
1366 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
1367 PROFILED_LIB_EXT=_p.a
1368 echo "Building profiling libraries"
1369fi
1370
1371else
1372 PROFILE_CMT=#
1373MAKEFILE_PROFILE=/dev/null
1374echo "Disabling profiling libraries by default"
1375
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001376fi
1377
1378
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001379
1380# Check whether --enable-checker or --disable-checker was given.
1381if test "${enable_checker+set}" = set; then
1382 enableval="$enable_checker"
1383 if test "$enableval" = "no"
1384then
1385 CHECKER_CMT=#
1386 MAKEFILE_CHECKER=/dev/null
1387 echo "Disabling checker libraries"
1388else
1389 CHECKER_CMT=
1390 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
1391 echo "Building checker libraries"
1392fi
1393
1394else
1395 CHECKER_CMT=#
1396MAKEFILE_CHECKER=/dev/null
1397echo "Disabling checker libraries by default"
1398
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001399fi
1400
1401
1402
1403
1404
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001405
Theodore Ts'o782bebf2002-11-08 18:46:45 -05001406# Check whether --enable-jbd-debug or --disable-jbd-debug was given.
1407if test "${enable_jbd_debug+set}" = set; then
1408 enableval="$enable_jbd_debug"
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00001409 if test "$enableval" = "no"
1410then
1411 echo "Disabling journal debugging"
1412else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001413 cat >> confdefs.h <<\EOF
Theodore Ts'o8cf93332001-12-16 02:23:36 -05001414#define CONFIG_JBD_DEBUG 1
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00001415EOF
1416
1417 echo "Enabling journal debugging"
1418fi
1419
1420else
1421 echo "Disabling journal debugging by default"
1422
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001423fi
1424
Theodore Ts'of0a22d02003-02-22 13:19:53 -05001425# Check whether --enable-blkid-debug or --disable-blkid-debug was given.
1426if test "${enable_blkid_debug+set}" = set; then
1427 enableval="$enable_blkid_debug"
1428 if test "$enableval" = "no"
1429then
1430 echo "Disabling blkid debugging"
1431else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001432 cat >> confdefs.h <<\EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05001433#define CONFIG_BLKID_DEBUG 1
1434EOF
1435
1436 echo "Enabling blkid debugging"
1437fi
1438
1439else
1440 echo "Disabling blkid debugging by default"
1441
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001442fi
1443
Theodore Ts'o2a29f132003-05-05 12:08:47 -04001444# Check whether --enable-testio-debug or --disable-testio-debug was given.
1445if test "${enable_testio_debug+set}" = set; then
1446 enableval="$enable_testio_debug"
1447 if test "$enableval" = "no"
1448then
1449 echo "Disabling testio debugging"
1450else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001451 cat >> confdefs.h <<\EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04001452#define CONFIG_TESTIO_DEBUG 1
1453EOF
1454
1455 echo "Enabling testio debugging"
1456fi
1457
1458else
1459 echo "Disabling testio debugging by default"
1460
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001461fi
1462
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001463# Check whether --enable-swapfs or --disable-swapfs was given.
1464if test "${enable_swapfs+set}" = set; then
1465 enableval="$enable_swapfs"
1466 if test "$enableval" = "no"
1467then
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05001468 SWAPFS_CMT=#
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001469 echo "Disabling swapfs support"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001470else
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05001471 SWAPFS_CMT=
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001472 cat >> confdefs.h <<\EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001473#define ENABLE_SWAPFS 1
1474EOF
1475
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001476 echo "Enabling swapfs support"
1477fi
1478
1479else
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05001480 SWAPFS_CMT=
1481echo "Enabling swapfs support by default"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001482cat >> confdefs.h <<\EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001483#define ENABLE_SWAPFS 1
1484EOF
1485
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001486
1487fi
1488
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05001489
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001490# Check whether --enable-debugfs or --disable-debugfs was given.
1491if test "${enable_debugfs+set}" = set; then
1492 enableval="$enable_debugfs"
1493 if test "$enableval" = "no"
1494then
1495 echo "Disabling debugfs support"
1496 DEBUGFS_CMT="#"
1497else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001498 DEBUGFS_CMT=
1499 echo "Enabling debugfs support"
1500fi
1501
1502else
1503 echo "Enabling debugfs support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001504DEBUGFS_CMT=
1505
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001506fi
1507
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001508
1509# Check whether --enable-imager or --disable-imager was given.
1510if test "${enable_imager+set}" = set; then
1511 enableval="$enable_imager"
1512 if test "$enableval" = "no"
1513then
1514 echo "Disabling e2image support"
1515 IMAGER_CMT="#"
1516else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001517 IMAGER_CMT=
1518 echo "Enabling e2image support"
1519fi
1520
1521else
1522 echo "Enabling e2image support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001523IMAGER_CMT=
1524
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001525fi
1526
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001527
1528# Check whether --enable-resizer or --disable-resizer was given.
1529if test "${enable_resizer+set}" = set; then
1530 enableval="$enable_resizer"
1531 if test "$enableval" = "no"
1532then
1533 echo "Disabling e2resize support"
1534 RESIZER_CMT="#"
1535else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001536 RESIZER_CMT=
1537 echo "Enabling e2resize support"
1538fi
1539
1540else
1541 echo "Enabling e2resize support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001542RESIZER_CMT=
1543
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001544fi
1545
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001546
1547# Check whether --enable-dynamic-e2fsck or --disable-dynamic-e2fsck was given.
1548if test "${enable_dynamic_e2fsck+set}" = set; then
1549 enableval="$enable_dynamic_e2fsck"
1550 if test "$enableval" = "no"
1551then
1552 E2FSCK_TYPE=static
1553 echo "Building e2fsck statically"
1554else
1555 E2FSCK_TYPE=shared
1556 echo "Building e2fsck dynamically"
1557fi
1558
1559else
1560 E2FSCK_TYPE=static
1561echo "Building e2fsck statically by default"
1562
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001563fi
1564
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001565
1566# Check whether --enable-fsck or --disable-fsck was given.
1567if test "${enable_fsck+set}" = set; then
1568 enableval="$enable_fsck"
1569 if test "$enableval" = "no"
1570then
1571 FSCK_PROG='' FSCK_MAN=''
1572 echo "Not building fsck wrapper"
1573else
1574 FSCK_PROG=fsck FSCK_MAN=fsck.8
1575 echo "Building fsck wrapper"
1576fi
1577
1578else
1579 case "$host_os" in
Theodore Ts'oe3632402004-05-04 19:39:54 -04001580 gnu*)
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001581 FSCK_PROG='' FSCK_MAN=''
1582 echo "Not building fsck wrapper by default"
1583 ;;
1584 *)
1585 FSCK_PROG=fsck FSCK_MAN=fsck.8
1586 echo "Building fsck wrapper by default"
1587esac
1588
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001589fi
1590
1591
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001592
Theodore Ts'o5d407732004-09-18 14:53:14 -04001593# Check whether --enable-e2initrd-helper or --disable-e2initrd-helper was given.
1594if test "${enable_e2initrd_helper+set}" = set; then
1595 enableval="$enable_e2initrd_helper"
1596 if test "$enableval" = "no"
1597then
1598 E2INITRD_PROG='' E2INITRD_MAN=''
1599 echo "Not building e2initrd helper"
1600else
1601 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
1602 echo "Building e2initrd helper"
1603fi
1604
1605else
1606 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
1607echo "Building e2initrd helper by default"
1608
1609fi
1610
1611
1612
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001613MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
1614
1615# Check whether --enable-old-bitops or --disable-old-bitops was given.
1616if test "${enable_old_bitops+set}" = set; then
1617 enableval="$enable_old_bitops"
1618 if test "$enableval" = "no"
1619then
1620 echo "Using new (standard) bitmask operations"
1621else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001622 cat >> confdefs.h <<\EOF
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001623#define EXT2_OLD_BITOPS 1
1624EOF
1625
1626 echo "Using old (native) bitmask operations"
1627
1628fi
1629
1630else
1631 echo "Using standard bitmask operations by default"
1632
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001633fi
1634
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001635PACKAGE=e2fsprogs
1636VERSION="$E2FSPROGS_VERSION"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001637cat >> confdefs.h <<EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001638#define PACKAGE "$PACKAGE"
1639EOF
1640
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001641cat >> confdefs.h <<EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001642#define VERSION "$VERSION"
1643EOF
1644
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001645
1646
1647
1648
1649 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05001650echo "configure:1651: checking for inttypes.h" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001651if eval "test \"`echo '$''{'jm_ac_cv_header_inttypes_h'+set}'`\" = set"; then
1652 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001653else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001654 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05001655#line 1656 "configure"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001656#include "confdefs.h"
1657#include <sys/types.h>
1658#include <inttypes.h>
1659int main() {
1660uintmax_t i = (uintmax_t) -1;
1661; return 0; }
1662EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05001663if { (eval echo configure:1664: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001664 rm -rf conftest*
1665 jm_ac_cv_header_inttypes_h=yes
1666else
1667 echo "configure: failed program was:" >&5
1668 cat conftest.$ac_ext >&5
1669 rm -rf conftest*
1670 jm_ac_cv_header_inttypes_h=no
1671fi
1672rm -f conftest*
1673fi
1674
1675echo "$ac_t""$jm_ac_cv_header_inttypes_h" 1>&6
1676 if test $jm_ac_cv_header_inttypes_h = yes; then
1677 cat >> confdefs.h <<EOF
1678#define HAVE_INTTYPES_H_WITH_UINTMAX 1
1679EOF
1680
1681 fi
1682
1683
1684 echo $ac_n "checking for stdint.h""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05001685echo "configure:1686: checking for stdint.h" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001686if eval "test \"`echo '$''{'jm_ac_cv_header_stdint_h'+set}'`\" = set"; then
1687 echo $ac_n "(cached) $ac_c" 1>&6
1688else
1689 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05001690#line 1691 "configure"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001691#include "confdefs.h"
1692#include <sys/types.h>
1693#include <stdint.h>
1694int main() {
1695uintmax_t i = (uintmax_t) -1;
1696; return 0; }
1697EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05001698if { (eval echo configure:1699: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001699 rm -rf conftest*
1700 jm_ac_cv_header_stdint_h=yes
1701else
1702 echo "configure: failed program was:" >&5
1703 cat conftest.$ac_ext >&5
1704 rm -rf conftest*
1705 jm_ac_cv_header_stdint_h=no
1706fi
1707rm -f conftest*
1708fi
1709
1710echo "$ac_t""$jm_ac_cv_header_stdint_h" 1>&6
1711 if test $jm_ac_cv_header_stdint_h = yes; then
1712 cat >> confdefs.h <<EOF
1713#define HAVE_STDINT_H_WITH_UINTMAX 1
1714EOF
1715
1716 fi
1717
1718
1719 echo $ac_n "checking for unsigned long long""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05001720echo "configure:1721: checking for unsigned long long" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001721if eval "test \"`echo '$''{'ac_cv_type_unsigned_long_long'+set}'`\" = set"; then
1722 echo $ac_n "(cached) $ac_c" 1>&6
1723else
1724 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05001725#line 1726 "configure"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001726#include "confdefs.h"
1727unsigned long long ull = 1; int i = 63;
1728int main() {
1729unsigned long long ullmax = (unsigned long long) -1;
1730 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
1731; return 0; }
1732EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05001733if { (eval echo configure:1734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001734 rm -rf conftest*
1735 ac_cv_type_unsigned_long_long=yes
1736else
1737 echo "configure: failed program was:" >&5
1738 cat conftest.$ac_ext >&5
1739 rm -rf conftest*
1740 ac_cv_type_unsigned_long_long=no
1741fi
1742rm -f conftest*
1743fi
1744
1745echo "$ac_t""$ac_cv_type_unsigned_long_long" 1>&6
1746 if test $ac_cv_type_unsigned_long_long = yes; then
1747 cat >> confdefs.h <<\EOF
1748#define HAVE_UNSIGNED_LONG_LONG 1
1749EOF
1750
1751 fi
1752
1753
1754 if test "X$prefix" = "XNONE"; then
1755 acl_final_prefix="$ac_default_prefix"
1756 else
1757 acl_final_prefix="$prefix"
1758 fi
1759 if test "X$exec_prefix" = "XNONE"; then
1760 acl_final_exec_prefix='${prefix}'
1761 else
1762 acl_final_exec_prefix="$exec_prefix"
1763 fi
1764 acl_save_prefix="$prefix"
1765 prefix="$acl_final_prefix"
1766 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
1767 prefix="$acl_save_prefix"
1768
1769
1770 echo $ac_n "checking for shared library run path origin""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05001771echo "configure:1772: checking for shared library run path origin" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001772if eval "test \"`echo '$''{'acl_cv_rpath'+set}'`\" = set"; then
1773 echo $ac_n "(cached) $ac_c" 1>&6
1774else
1775
1776 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
1777 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
1778 . ./conftest.sh
1779 rm -f ./conftest.sh
1780 acl_cv_rpath=done
1781
1782fi
1783
1784echo "$ac_t""$acl_cv_rpath" 1>&6
1785 wl="$acl_cv_wl"
1786 libext="$acl_cv_libext"
1787 shlibext="$acl_cv_shlibext"
1788 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
1789 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
1790 hardcode_direct="$acl_cv_hardcode_direct"
1791 hardcode_minus_L="$acl_cv_hardcode_minus_L"
1792 sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
1793 sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
1794 # Check whether --enable-rpath or --disable-rpath was given.
1795if test "${enable_rpath+set}" = set; then
1796 enableval="$enable_rpath"
1797 :
1798else
1799 enable_rpath=yes
1800fi
1801
1802
1803echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05001804echo "configure:1805: checking whether ${MAKE-make} sets \${MAKE}" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001805set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1806if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1807 echo $ac_n "(cached) $ac_c" 1>&6
1808else
1809 cat > conftestmake <<\EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001810all:
1811 @echo 'ac_maketemp="${MAKE}"'
1812EOF
1813# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001814eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001815if test -n "$ac_maketemp"; then
1816 eval ac_cv_prog_make_${ac_make}_set=yes
1817else
1818 eval ac_cv_prog_make_${ac_make}_set=no
1819fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001820rm -f conftestmake
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001821fi
1822if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001823 echo "$ac_t""yes" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001824 SET_MAKE=
1825else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001826 echo "$ac_t""no" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001827 SET_MAKE="MAKE=${MAKE-make}"
1828fi
1829
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001830# Find a good install program. We prefer a C program (faster),
1831# so one script is as good as another. But avoid the broken or
1832# incompatible versions:
1833# SysV /etc/install, /usr/sbin/install
1834# SunOS /usr/etc/install
1835# IRIX /sbin/install
1836# AIX /bin/install
1837# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1838# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1839# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1840# ./install, which can be erroneously created by make from ./install.sh.
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001841echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05001842echo "configure:1843: checking for a BSD compatible install" >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001843if test -z "$INSTALL"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001844if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1845 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001846else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001847 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001848 for ac_dir in $PATH; do
1849 # Account for people who put trailing slashes in PATH elements.
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001850 case "$ac_dir/" in
1851 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001852 *)
1853 # OSF1 and SCO ODT 3.0 have their own names for install.
1854 # Don't use installbsd from OSF since it installs stuff as root
1855 # by default.
1856 for ac_prog in ginstall scoinst install; do
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001857 if test -f $ac_dir/$ac_prog; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001858 if test $ac_prog = install &&
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001859 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001860 # AIX install. It has an incompatible calling convention.
1861 :
1862 else
1863 ac_cv_path_install="$ac_dir/$ac_prog -c"
1864 break 2
1865 fi
1866 fi
1867 done
1868 ;;
1869 esac
1870 done
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001871 IFS="$ac_save_IFS"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001872
1873fi
1874 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001875 INSTALL="$ac_cv_path_install"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001876 else
1877 # As a last resort, use the slow shell script. We don't cache a
1878 # path for INSTALL within a source directory, because that will
1879 # break other packages using the cache if that directory is
1880 # removed, or if the path is relative.
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001881 INSTALL="$ac_install_sh"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001882 fi
1883fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001884echo "$ac_t""$INSTALL" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001885
1886# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1887# It thinks the first close brace ends the variable substitution.
1888test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1889
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001890test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001891
1892test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1893
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001894
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001895 MKINSTALLDIRS=
1896 if test -n "$ac_aux_dir"; then
1897 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
1898 fi
1899 if test -z "$MKINSTALLDIRS"; then
1900 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
1901 fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001902
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001903
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001904# Extract the first word of "ranlib", so it can be a program name with args.
1905set dummy ranlib; ac_word=$2
1906echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05001907echo "configure:1908: checking for $ac_word" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001908if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1909 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001910else
1911 if test -n "$RANLIB"; then
1912 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1913else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001914 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1915 ac_dummy="$PATH"
1916 for ac_dir in $ac_dummy; do
1917 test -z "$ac_dir" && ac_dir=.
1918 if test -f $ac_dir/$ac_word; then
1919 ac_cv_prog_RANLIB="ranlib"
1920 break
1921 fi
1922 done
1923 IFS="$ac_save_ifs"
1924 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001925fi
1926fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001927RANLIB="$ac_cv_prog_RANLIB"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001928if test -n "$RANLIB"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001929 echo "$ac_t""$RANLIB" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001930else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001931 echo "$ac_t""no" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001932fi
1933
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001934
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001935 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05001936echo "configure:1937: checking for strerror in -lcposix" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001937ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1938if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1939 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001940else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001941 ac_save_LIBS="$LIBS"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001942LIBS="-lcposix $LIBS"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001943cat > conftest.$ac_ext <<EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05001944#line 1945 "configure"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001945#include "confdefs.h"
1946/* Override any gcc2 internal prototype to avoid an error. */
1947/* We use char because int might match the return type of a gcc2
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001948 builtin and then its argument prototype would still apply. */
1949char strerror();
1950
1951int main() {
1952strerror()
1953; return 0; }
1954EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05001955if { (eval echo configure:1956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001956 rm -rf conftest*
1957 eval "ac_cv_lib_$ac_lib_var=yes"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001958else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001959 echo "configure: failed program was:" >&5
1960 cat conftest.$ac_ext >&5
1961 rm -rf conftest*
1962 eval "ac_cv_lib_$ac_lib_var=no"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001963fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001964rm -f conftest*
1965LIBS="$ac_save_LIBS"
1966
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001967fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001968if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1969 echo "$ac_t""yes" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001970 LIBS="$LIBS -lcposix"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001971else
1972 echo "$ac_t""no" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001973fi
1974
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001975
1976
1977echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05001978echo "configure:1979: checking for ANSI C header files" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001979if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1980 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001981else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001982 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05001983#line 1984 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001984#include "confdefs.h"
1985#include <stdlib.h>
1986#include <stdarg.h>
1987#include <string.h>
1988#include <float.h>
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001989EOF
1990ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05001991{ (eval echo configure:1992: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001992ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1993if test -z "$ac_err"; then
1994 rm -rf conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001995 ac_cv_header_stdc=yes
1996else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001997 echo "$ac_err" >&5
1998 echo "configure: failed program was:" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001999 cat conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002000 rm -rf conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002001 ac_cv_header_stdc=no
2002fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002003rm -f conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002004
2005if test $ac_cv_header_stdc = yes; then
2006 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002007cat > conftest.$ac_ext <<EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05002008#line 2009 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002009#include "confdefs.h"
2010#include <string.h>
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002011EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002012if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2013 egrep "memchr" >/dev/null 2>&1; then
2014 :
2015else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002016 rm -rf conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002017 ac_cv_header_stdc=no
2018fi
2019rm -f conftest*
2020
2021fi
2022
2023if test $ac_cv_header_stdc = yes; then
2024 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002025cat > conftest.$ac_ext <<EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05002026#line 2027 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002027#include "confdefs.h"
2028#include <stdlib.h>
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002029EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002030if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2031 egrep "free" >/dev/null 2>&1; then
2032 :
2033else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002034 rm -rf conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002035 ac_cv_header_stdc=no
2036fi
2037rm -f conftest*
2038
2039fi
2040
2041if test $ac_cv_header_stdc = yes; then
2042 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002043if test "$cross_compiling" = yes; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002044 :
2045else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002046 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05002047#line 2048 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002048#include "confdefs.h"
2049#include <ctype.h>
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002050#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2051#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002052#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002053int main () { int i; for (i = 0; i < 256; i++)
2054if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2055exit (0); }
2056
2057EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05002058if { (eval echo configure:2059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002059then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002060 :
2061else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002062 echo "configure: failed program was:" >&5
2063 cat conftest.$ac_ext >&5
2064 rm -fr conftest*
2065 ac_cv_header_stdc=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002066fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002067rm -fr conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002068fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002069
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002070fi
2071fi
2072
2073echo "$ac_t""$ac_cv_header_stdc" 1>&6
2074if test $ac_cv_header_stdc = yes; then
2075 cat >> confdefs.h <<\EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002076#define STDC_HEADERS 1
2077EOF
2078
2079fi
2080
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002081echo $ac_n "checking for working const""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05002082echo "configure:2083: checking for working const" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002083if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2084 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002085else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002086 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05002087#line 2088 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002088#include "confdefs.h"
2089
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002090int main() {
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002091
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002092/* Ultrix mips cc rejects this. */
2093typedef int charset[2]; const charset x;
2094/* SunOS 4.1.1 cc rejects this. */
2095char const *const *ccp;
2096char **p;
2097/* NEC SVR4.0.2 mips cc rejects this. */
2098struct point {int x, y;};
2099static struct point const zero = {0,0};
2100/* AIX XL C 1.02.0.0 rejects this.
2101 It does not let you subtract one const X* pointer from another in an arm
2102 of an if-expression whose if-part is not a constant expression */
2103const char *g = "string";
2104ccp = &g + (g ? g-g : 0);
2105/* HPUX 7.0 cc rejects these. */
2106++ccp;
2107p = (char**) ccp;
2108ccp = (char const *const *) p;
2109{ /* SCO 3.2v4 cc rejects this. */
2110 char *t;
2111 char const *s = 0 ? (char *) 0 : (char const *) 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002112
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002113 *t++ = 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002114}
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002115{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2116 int x[] = {25, 17};
2117 const int *foo = &x[0];
2118 ++foo;
2119}
2120{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2121 typedef const int *iptr;
2122 iptr p = 0;
2123 ++p;
2124}
2125{ /* AIX XL C 1.02.0.0 rejects this saying
2126 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2127 struct s { int j; const int *ap[3]; };
2128 struct s *b; b->j = 5;
2129}
2130{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2131 const int foo = 10;
2132}
2133
2134; return 0; }
2135EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05002136if { (eval echo configure:2137: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002137 rm -rf conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002138 ac_cv_c_const=yes
2139else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002140 echo "configure: failed program was:" >&5
2141 cat conftest.$ac_ext >&5
2142 rm -rf conftest*
2143 ac_cv_c_const=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002144fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002145rm -f conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002146fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002147
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002148echo "$ac_t""$ac_cv_c_const" 1>&6
2149if test $ac_cv_c_const = no; then
2150 cat >> confdefs.h <<\EOF
2151#define const
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002152EOF
2153
2154fi
2155
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002156echo $ac_n "checking for inline""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05002157echo "configure:2158: checking for inline" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002158if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2159 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002160else
2161 ac_cv_c_inline=no
2162for ac_kw in inline __inline__ __inline; do
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002163 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05002164#line 2165 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002165#include "confdefs.h"
2166
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002167int main() {
2168} $ac_kw foo() {
2169; return 0; }
2170EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05002171if { (eval echo configure:2172: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002172 rm -rf conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002173 ac_cv_c_inline=$ac_kw; break
2174else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002175 echo "configure: failed program was:" >&5
2176 cat conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002177fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002178rm -f conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002179done
2180
2181fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002182
2183echo "$ac_t""$ac_cv_c_inline" 1>&6
2184case "$ac_cv_c_inline" in
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002185 inline | yes) ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002186 no) cat >> confdefs.h <<\EOF
2187#define inline
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002188EOF
2189 ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002190 *) cat >> confdefs.h <<EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002191#define inline $ac_cv_c_inline
2192EOF
2193 ;;
2194esac
2195
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002196echo $ac_n "checking for off_t""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05002197echo "configure:2198: checking for off_t" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002198if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2199 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002200else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002201 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05002202#line 2203 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002203#include "confdefs.h"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002204#include <sys/types.h>
2205#if STDC_HEADERS
2206#include <stdlib.h>
2207#include <stddef.h>
2208#endif
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002209EOF
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002210if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2211 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2212 rm -rf conftest*
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002213 ac_cv_type_off_t=yes
2214else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002215 rm -rf conftest*
2216 ac_cv_type_off_t=no
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002217fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002218rm -f conftest*
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002219
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002220fi
2221echo "$ac_t""$ac_cv_type_off_t" 1>&6
2222if test $ac_cv_type_off_t = no; then
2223 cat >> confdefs.h <<\EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002224#define off_t long
2225EOF
2226
2227fi
2228
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002229echo $ac_n "checking for size_t""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05002230echo "configure:2231: checking for size_t" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002231if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2232 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002233else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002234 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05002235#line 2236 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002236#include "confdefs.h"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002237#include <sys/types.h>
2238#if STDC_HEADERS
2239#include <stdlib.h>
2240#include <stddef.h>
2241#endif
2242EOF
2243if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2244 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2245 rm -rf conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002246 ac_cv_type_size_t=yes
2247else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002248 rm -rf conftest*
2249 ac_cv_type_size_t=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002250fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002251rm -f conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002252
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002253fi
2254echo "$ac_t""$ac_cv_type_size_t" 1>&6
2255if test $ac_cv_type_size_t = no; then
2256 cat >> confdefs.h <<\EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002257#define size_t unsigned
2258EOF
2259
2260fi
2261
2262# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2263# for constant arguments. Useless!
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002264echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05002265echo "configure:2266: checking for working alloca.h" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002266if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2267 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002268else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002269 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05002270#line 2271 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002271#include "confdefs.h"
2272#include <alloca.h>
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002273int main() {
2274char *p = alloca(2 * sizeof(int));
2275; return 0; }
2276EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05002277if { (eval echo configure:2278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002278 rm -rf conftest*
2279 ac_cv_header_alloca_h=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002280else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002281 echo "configure: failed program was:" >&5
2282 cat conftest.$ac_ext >&5
2283 rm -rf conftest*
2284 ac_cv_header_alloca_h=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002285fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002286rm -f conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002287fi
2288
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002289echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2290if test $ac_cv_header_alloca_h = yes; then
2291 cat >> confdefs.h <<\EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002292#define HAVE_ALLOCA_H 1
2293EOF
2294
2295fi
2296
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002297echo $ac_n "checking for alloca""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05002298echo "configure:2299: checking for alloca" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002299if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2300 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002301else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002302 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05002303#line 2304 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002304#include "confdefs.h"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002305
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002306#ifdef __GNUC__
2307# define alloca __builtin_alloca
2308#else
2309# ifdef _MSC_VER
2310# include <malloc.h>
2311# define alloca _alloca
2312# else
2313# if HAVE_ALLOCA_H
2314# include <alloca.h>
2315# else
2316# ifdef _AIX
2317 #pragma alloca
2318# else
2319# ifndef alloca /* predefined by HP cc +Olibcalls */
2320char *alloca ();
2321# endif
2322# endif
2323# endif
2324# endif
2325#endif
2326
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002327int main() {
2328char *p = (char *) alloca(1);
2329; return 0; }
2330EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05002331if { (eval echo configure:2332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002332 rm -rf conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002333 ac_cv_func_alloca_works=yes
2334else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002335 echo "configure: failed program was:" >&5
2336 cat conftest.$ac_ext >&5
2337 rm -rf conftest*
2338 ac_cv_func_alloca_works=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002339fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002340rm -f conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002341fi
2342
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002343echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002344if test $ac_cv_func_alloca_works = yes; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002345 cat >> confdefs.h <<\EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002346#define HAVE_ALLOCA 1
2347EOF
2348
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002349fi
2350
2351if test $ac_cv_func_alloca_works = no; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002352 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002353 # that cause trouble. Some versions do not even contain alloca or
2354 # contain a buggy version. If you still want to use their alloca,
2355 # use ar to extract alloca.o from them instead of compiling alloca.c.
2356 ALLOCA=alloca.${ac_objext}
2357 cat >> confdefs.h <<\EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002358#define C_ALLOCA 1
2359EOF
2360
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002361
2362echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05002363echo "configure:2364: checking whether alloca needs Cray hooks" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002364if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2365 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002366else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002367 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05002368#line 2369 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002369#include "confdefs.h"
2370#if defined(CRAY) && ! defined(CRAY2)
2371webecray
2372#else
2373wenotbecray
2374#endif
2375
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002376EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002377if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2378 egrep "webecray" >/dev/null 2>&1; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002379 rm -rf conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002380 ac_cv_os_cray=yes
2381else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002382 rm -rf conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002383 ac_cv_os_cray=no
2384fi
2385rm -f conftest*
2386
2387fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002388
2389echo "$ac_t""$ac_cv_os_cray" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002390if test $ac_cv_os_cray = yes; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002391for ac_func in _getb67 GETB67 getb67; do
2392 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05002393echo "configure:2394: checking for $ac_func" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002394if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2395 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002396else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002397 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05002398#line 2399 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002399#include "confdefs.h"
2400/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002401 which can conflict with char $ac_func(); below. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002402#include <assert.h>
2403/* Override any gcc2 internal prototype to avoid an error. */
2404/* We use char because int might match the return type of a gcc2
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002405 builtin and then its argument prototype would still apply. */
2406char $ac_func();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002407
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002408int main() {
2409
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002410/* The GNU C library defines this for functions which it implements
2411 to always fail with ENOSYS. Some functions are actually named
2412 something starting with __ and the normal name is an alias. */
2413#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2414choke me
2415#else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002416$ac_func();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002417#endif
2418
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002419; return 0; }
2420EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05002421if { (eval echo configure:2422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002422 rm -rf conftest*
2423 eval "ac_cv_func_$ac_func=yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002424else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002425 echo "configure: failed program was:" >&5
2426 cat conftest.$ac_ext >&5
2427 rm -rf conftest*
2428 eval "ac_cv_func_$ac_func=no"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002429fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002430rm -f conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002431fi
2432
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002433if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2434 echo "$ac_t""yes" 1>&6
2435 cat >> confdefs.h <<EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002436#define CRAY_STACKSEG_END $ac_func
2437EOF
2438
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002439 break
2440else
2441 echo "$ac_t""no" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002442fi
2443
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002444done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002445fi
2446
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002447echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05002448echo "configure:2449: checking stack direction for C alloca" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002449if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2450 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002451else
2452 if test "$cross_compiling" = yes; then
2453 ac_cv_c_stack_direction=0
2454else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002455 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05002456#line 2457 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002457#include "confdefs.h"
2458find_stack_direction ()
2459{
2460 static char *addr = 0;
2461 auto char dummy;
2462 if (addr == 0)
2463 {
2464 addr = &dummy;
2465 return find_stack_direction ();
2466 }
2467 else
2468 return (&dummy > addr) ? 1 : -1;
2469}
2470main ()
2471{
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002472 exit (find_stack_direction() < 0);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002473}
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002474EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05002475if { (eval echo configure:2476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002476then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002477 ac_cv_c_stack_direction=1
2478else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002479 echo "configure: failed program was:" >&5
2480 cat conftest.$ac_ext >&5
2481 rm -fr conftest*
2482 ac_cv_c_stack_direction=-1
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002483fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002484rm -fr conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002485fi
2486
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002487fi
2488
2489echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2490cat >> confdefs.h <<EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002491#define STACK_DIRECTION $ac_cv_c_stack_direction
2492EOF
2493
2494fi
2495
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002496for ac_hdr in unistd.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002497do
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002498ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2499echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05002500echo "configure:2501: checking for $ac_hdr" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002501if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2502 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002503else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002504 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05002505#line 2506 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002506#include "confdefs.h"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002507#include <$ac_hdr>
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002508EOF
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002509ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05002510{ (eval echo configure:2511: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002511ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2512if test -z "$ac_err"; then
2513 rm -rf conftest*
2514 eval "ac_cv_header_$ac_safe=yes"
2515else
2516 echo "$ac_err" >&5
2517 echo "configure: failed program was:" >&5
2518 cat conftest.$ac_ext >&5
2519 rm -rf conftest*
2520 eval "ac_cv_header_$ac_safe=no"
2521fi
2522rm -f conftest*
2523fi
2524if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2525 echo "$ac_t""yes" 1>&6
2526 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2527 cat >> confdefs.h <<EOF
2528#define $ac_tr_hdr 1
2529EOF
2530
2531else
2532 echo "$ac_t""no" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002533fi
2534done
2535
2536for ac_func in getpagesize
2537do
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002538echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05002539echo "configure:2540: checking for $ac_func" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002540if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2541 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002542else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002543 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05002544#line 2545 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002545#include "confdefs.h"
2546/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002547 which can conflict with char $ac_func(); below. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002548#include <assert.h>
2549/* Override any gcc2 internal prototype to avoid an error. */
2550/* We use char because int might match the return type of a gcc2
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002551 builtin and then its argument prototype would still apply. */
2552char $ac_func();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002553
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002554int main() {
2555
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002556/* The GNU C library defines this for functions which it implements
2557 to always fail with ENOSYS. Some functions are actually named
2558 something starting with __ and the normal name is an alias. */
2559#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2560choke me
2561#else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002562$ac_func();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002563#endif
2564
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002565; return 0; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002566EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05002567if { (eval echo configure:2568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002568 rm -rf conftest*
2569 eval "ac_cv_func_$ac_func=yes"
2570else
2571 echo "configure: failed program was:" >&5
2572 cat conftest.$ac_ext >&5
2573 rm -rf conftest*
2574 eval "ac_cv_func_$ac_func=no"
2575fi
2576rm -f conftest*
2577fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002578
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002579if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2580 echo "$ac_t""yes" 1>&6
2581 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2582 cat >> confdefs.h <<EOF
2583#define $ac_tr_func 1
2584EOF
2585
2586else
2587 echo "$ac_t""no" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002588fi
2589done
2590
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002591echo $ac_n "checking for working mmap""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05002592echo "configure:2593: checking for working mmap" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002593if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2594 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002595else
2596 if test "$cross_compiling" = yes; then
2597 ac_cv_func_mmap_fixed_mapped=no
2598else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002599 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05002600#line 2601 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002601#include "confdefs.h"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002602
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002603/* Thanks to Mike Haertel and Jim Avera for this test.
2604 Here is a matrix of mmap possibilities:
2605 mmap private not fixed
2606 mmap private fixed at somewhere currently unmapped
2607 mmap private fixed at somewhere already mapped
2608 mmap shared not fixed
2609 mmap shared fixed at somewhere currently unmapped
2610 mmap shared fixed at somewhere already mapped
2611 For private mappings, we should verify that changes cannot be read()
2612 back from the file, nor mmap's back from the file at a different
2613 address. (There have been systems where private was not correctly
2614 implemented like the infamous i386 svr4.0, and systems where the
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002615 VM page cache was not coherent with the filesystem buffer cache
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002616 like early versions of FreeBSD and possibly contemporary NetBSD.)
2617 For shared mappings, we should conversely verify that changes get
2618 propogated back to all the places they're supposed to be.
2619
2620 Grep wants private fixed already mapped.
2621 The main things grep needs to know about mmap are:
2622 * does it exist and is it safe to write into the mmap'd area
2623 * how to use it (BSD variants) */
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002624#include <sys/types.h>
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002625#include <fcntl.h>
2626#include <sys/mman.h>
2627
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002628/* This mess was copied from the GNU getpagesize.h. */
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002629#ifndef HAVE_GETPAGESIZE
2630# ifdef HAVE_UNISTD_H
2631# include <unistd.h>
2632# endif
2633
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002634/* Assume that all systems that can run configure have sys/param.h. */
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002635# ifndef HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002636# define HAVE_SYS_PARAM_H 1
2637# endif
2638
2639# ifdef _SC_PAGESIZE
2640# define getpagesize() sysconf(_SC_PAGESIZE)
2641# else /* no _SC_PAGESIZE */
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002642# ifdef HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002643# include <sys/param.h>
2644# ifdef EXEC_PAGESIZE
2645# define getpagesize() EXEC_PAGESIZE
2646# else /* no EXEC_PAGESIZE */
2647# ifdef NBPG
2648# define getpagesize() NBPG * CLSIZE
2649# ifndef CLSIZE
2650# define CLSIZE 1
2651# endif /* no CLSIZE */
2652# else /* no NBPG */
2653# ifdef NBPC
2654# define getpagesize() NBPC
2655# else /* no NBPC */
2656# ifdef PAGESIZE
2657# define getpagesize() PAGESIZE
2658# endif /* PAGESIZE */
2659# endif /* no NBPC */
2660# endif /* no NBPG */
2661# endif /* no EXEC_PAGESIZE */
2662# else /* no HAVE_SYS_PARAM_H */
2663# define getpagesize() 8192 /* punt totally */
2664# endif /* no HAVE_SYS_PARAM_H */
2665# endif /* no _SC_PAGESIZE */
2666
2667#endif /* no HAVE_GETPAGESIZE */
2668
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002669#ifdef __cplusplus
2670extern "C" { void *malloc(unsigned); }
2671#else
2672char *malloc();
2673#endif
2674
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002675int
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002676main()
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002677{
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002678 char *data, *data2, *data3;
2679 int i, pagesize;
2680 int fd;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002681
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002682 pagesize = getpagesize();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002683
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002684 /*
2685 * First, make a file with some known garbage in it.
2686 */
2687 data = malloc(pagesize);
2688 if (!data)
2689 exit(1);
2690 for (i = 0; i < pagesize; ++i)
2691 *(data + i) = rand();
2692 umask(0);
2693 fd = creat("conftestmmap", 0600);
2694 if (fd < 0)
2695 exit(1);
2696 if (write(fd, data, pagesize) != pagesize)
2697 exit(1);
2698 close(fd);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002699
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002700 /*
2701 * Next, try to mmap the file at a fixed address which
2702 * already has something else allocated at it. If we can,
2703 * also make sure that we see the same garbage.
2704 */
2705 fd = open("conftestmmap", O_RDWR);
2706 if (fd < 0)
2707 exit(1);
2708 data2 = malloc(2 * pagesize);
2709 if (!data2)
2710 exit(1);
2711 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2712 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2713 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2714 exit(1);
2715 for (i = 0; i < pagesize; ++i)
2716 if (*(data + i) != *(data2 + i))
2717 exit(1);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002718
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002719 /*
2720 * Finally, make sure that changes to the mapped area
2721 * do not percolate back to the file as seen by read().
2722 * (This is a bug on some variants of i386 svr4.0.)
2723 */
2724 for (i = 0; i < pagesize; ++i)
2725 *(data2 + i) = *(data2 + i) + 1;
2726 data3 = malloc(pagesize);
2727 if (!data3)
2728 exit(1);
2729 if (read(fd, data3, pagesize) != pagesize)
2730 exit(1);
2731 for (i = 0; i < pagesize; ++i)
2732 if (*(data + i) != *(data3 + i))
2733 exit(1);
2734 close(fd);
2735 unlink("conftestmmap");
2736 exit(0);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002737}
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002738
2739EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05002740if { (eval echo configure:2741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002741then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002742 ac_cv_func_mmap_fixed_mapped=yes
2743else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002744 echo "configure: failed program was:" >&5
2745 cat conftest.$ac_ext >&5
2746 rm -fr conftest*
2747 ac_cv_func_mmap_fixed_mapped=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002748fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002749rm -fr conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002750fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002751
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002752fi
2753
2754echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2755if test $ac_cv_func_mmap_fixed_mapped = yes; then
2756 cat >> confdefs.h <<\EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002757#define HAVE_MMAP 1
2758EOF
2759
2760fi
2761
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002762
2763 echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05002764echo "configure:2765: checking whether we are using the GNU C Library 2.1 or newer" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002765if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
2766 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002767else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002768 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05002769#line 2770 "configure"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002770#include "confdefs.h"
2771
2772#include <features.h>
2773#ifdef __GNU_LIBRARY__
2774 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
2775 Lucky GNU user
2776 #endif
2777#endif
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002778
2779EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002780if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2781 egrep "Lucky GNU user" >/dev/null 2>&1; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002782 rm -rf conftest*
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002783 ac_cv_gnu_library_2_1=yes
2784else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002785 rm -rf conftest*
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002786 ac_cv_gnu_library_2_1=no
2787fi
2788rm -f conftest*
2789
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002790
2791
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002792fi
2793
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002794echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
2795
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002796 GLIBC21="$ac_cv_gnu_library_2_1"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002797
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002798
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002799
2800
2801 echo $ac_n "checking whether integer division by zero raises SIGFPE""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05002802echo "configure:2803: checking whether integer division by zero raises SIGFPE" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002803if eval "test \"`echo '$''{'gt_cv_int_divbyzero_sigfpe'+set}'`\" = set"; then
2804 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002805else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002806
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002807 if test "$cross_compiling" = yes; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002808
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002809 # Guess based on the CPU.
2810 case "$host_cpu" in
2811 alpha* | i3456786 | m68k | s390*)
2812 gt_cv_int_divbyzero_sigfpe="guessing yes";;
2813 *)
2814 gt_cv_int_divbyzero_sigfpe="guessing no";;
2815 esac
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002816
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002817else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002818 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05002819#line 2820 "configure"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002820#include "confdefs.h"
2821
2822#include <stdlib.h>
2823#include <signal.h>
2824
2825static void
2826#ifdef __cplusplus
2827sigfpe_handler (int sig)
2828#else
2829sigfpe_handler (sig) int sig;
2830#endif
2831{
2832 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
2833 exit (sig != SIGFPE);
2834}
2835
2836int x = 1;
2837int y = 0;
2838int z;
2839int nan;
2840
2841int main ()
2842{
2843 signal (SIGFPE, sigfpe_handler);
2844/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
2845#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
2846 signal (SIGTRAP, sigfpe_handler);
2847#endif
2848/* Linux/SPARC yields signal SIGILL. */
2849#if defined (__sparc__) && defined (__linux__)
2850 signal (SIGILL, sigfpe_handler);
2851#endif
2852
2853 z = x / y;
2854 nan = y / y;
2855 exit (1);
2856}
2857
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002858EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05002859if { (eval echo configure:2860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002860then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002861 gt_cv_int_divbyzero_sigfpe=yes
2862else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002863 echo "configure: failed program was:" >&5
2864 cat conftest.$ac_ext >&5
2865 rm -fr conftest*
2866 gt_cv_int_divbyzero_sigfpe=no
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002867fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002868rm -fr conftest*
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002869fi
2870
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002871
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002872fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002873
2874echo "$ac_t""$gt_cv_int_divbyzero_sigfpe" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002875 case "$gt_cv_int_divbyzero_sigfpe" in
2876 *yes) value=1;;
2877 *) value=0;;
2878 esac
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002879 cat >> confdefs.h <<EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002880#define INTDIV0_RAISES_SIGFPE $value
2881EOF
2882
2883
2884
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002885
2886
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002887 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002888
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002889 test $ac_cv_type_unsigned_long_long = yes \
2890 && ac_type='unsigned long long' \
2891 || ac_type='unsigned long'
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002892 cat >> confdefs.h <<EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002893#define uintmax_t $ac_type
2894EOF
2895
2896 fi
2897
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002898
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002899 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05002900echo "configure:2901: checking for inttypes.h" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002901if eval "test \"`echo '$''{'gt_cv_header_inttypes_h'+set}'`\" = set"; then
2902 echo $ac_n "(cached) $ac_c" 1>&6
2903else
2904
2905 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05002906#line 2907 "configure"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002907#include "confdefs.h"
2908#include <sys/types.h>
2909#include <inttypes.h>
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002910int main() {
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002911
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002912; return 0; }
2913EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05002914if { (eval echo configure:2915: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002915 rm -rf conftest*
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002916 gt_cv_header_inttypes_h=yes
2917else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002918 echo "configure: failed program was:" >&5
2919 cat conftest.$ac_ext >&5
2920 rm -rf conftest*
2921 gt_cv_header_inttypes_h=no
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002922fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002923rm -f conftest*
2924
2925fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002926
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002927echo "$ac_t""$gt_cv_header_inttypes_h" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002928 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002929 cat >> confdefs.h <<EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002930#define HAVE_INTTYPES_H 1
2931EOF
2932
2933 fi
2934
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002935
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002936
2937 if test $gt_cv_header_inttypes_h = yes; then
2938 echo $ac_n "checking whether the inttypes.h PRIxNN macros are broken""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05002939echo "configure:2940: checking whether the inttypes.h PRIxNN macros are broken" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002940if eval "test \"`echo '$''{'gt_cv_inttypes_pri_broken'+set}'`\" = set"; then
2941 echo $ac_n "(cached) $ac_c" 1>&6
2942else
2943
2944 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05002945#line 2946 "configure"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002946#include "confdefs.h"
2947#include <inttypes.h>
2948#ifdef PRId32
2949char *p = PRId32;
2950#endif
2951
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002952int main() {
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002953
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002954; return 0; }
2955EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05002956if { (eval echo configure:2957: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002957 rm -rf conftest*
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002958 gt_cv_inttypes_pri_broken=no
2959else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002960 echo "configure: failed program was:" >&5
2961 cat conftest.$ac_ext >&5
2962 rm -rf conftest*
2963 gt_cv_inttypes_pri_broken=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002964fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002965rm -f conftest*
2966
2967fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002968
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002969echo "$ac_t""$gt_cv_inttypes_pri_broken" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002970 fi
2971 if test "$gt_cv_inttypes_pri_broken" = yes; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002972 cat >> confdefs.h <<EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002973#define PRI_MACROS_BROKEN 1
2974EOF
2975
2976 fi
2977
2978
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002979
2980
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002981
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002982
2983
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002984 use_additional=yes
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002985
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002986 acl_save_prefix="$prefix"
2987 prefix="$acl_final_prefix"
2988 acl_save_exec_prefix="$exec_prefix"
2989 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002990
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002991 eval additional_includedir=\"$includedir\"
2992 eval additional_libdir=\"$libdir\"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002993
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002994 exec_prefix="$acl_save_exec_prefix"
2995 prefix="$acl_save_prefix"
2996
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002997 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002998if test "${with_libiconv_prefix+set}" = set; then
2999 withval="$with_libiconv_prefix"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003000
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003001 if test "X$withval" = "Xno"; then
3002 use_additional=no
3003 else
3004 if test "X$withval" = "X"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003005
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003006 acl_save_prefix="$prefix"
3007 prefix="$acl_final_prefix"
3008 acl_save_exec_prefix="$exec_prefix"
3009 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003010
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003011 eval additional_includedir=\"$includedir\"
3012 eval additional_libdir=\"$libdir\"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003013
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003014 exec_prefix="$acl_save_exec_prefix"
3015 prefix="$acl_save_prefix"
3016
3017 else
3018 additional_includedir="$withval/include"
3019 additional_libdir="$withval/lib"
3020 fi
3021 fi
3022
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003023fi
3024
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003025 LIBICONV=
3026 LTLIBICONV=
3027 INCICONV=
3028 rpathdirs=
3029 ltrpathdirs=
3030 names_already_handled=
3031 names_next_round='iconv '
3032 while test -n "$names_next_round"; do
3033 names_this_round="$names_next_round"
3034 names_next_round=
3035 for name in $names_this_round; do
3036 already_handled=
3037 for n in $names_already_handled; do
3038 if test "$n" = "$name"; then
3039 already_handled=yes
3040 break
3041 fi
3042 done
3043 if test -z "$already_handled"; then
3044 names_already_handled="$names_already_handled $name"
3045 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
3046 eval value=\"\$HAVE_LIB$uppername\"
3047 if test -n "$value"; then
3048 if test "$value" = yes; then
3049 eval value=\"\$LIB$uppername\"
3050 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
3051 eval value=\"\$LTLIB$uppername\"
3052 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
3053 else
3054 :
3055 fi
3056 else
3057 found_dir=
3058 found_la=
3059 found_so=
3060 found_a=
3061 if test $use_additional = yes; then
3062 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
3063 found_dir="$additional_libdir"
3064 found_so="$additional_libdir/lib$name.$shlibext"
3065 if test -f "$additional_libdir/lib$name.la"; then
3066 found_la="$additional_libdir/lib$name.la"
3067 fi
3068 else
3069 if test -f "$additional_libdir/lib$name.$libext"; then
3070 found_dir="$additional_libdir"
3071 found_a="$additional_libdir/lib$name.$libext"
3072 if test -f "$additional_libdir/lib$name.la"; then
3073 found_la="$additional_libdir/lib$name.la"
3074 fi
3075 fi
3076 fi
3077 fi
3078 if test "X$found_dir" = "X"; then
3079 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003080
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003081 acl_save_prefix="$prefix"
3082 prefix="$acl_final_prefix"
3083 acl_save_exec_prefix="$exec_prefix"
3084 exec_prefix="$acl_final_exec_prefix"
3085 eval x=\"$x\"
3086 exec_prefix="$acl_save_exec_prefix"
3087 prefix="$acl_save_prefix"
3088
3089 case "$x" in
3090 -L*)
3091 dir=`echo "X$x" | sed -e 's/^X-L//'`
3092 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
3093 found_dir="$dir"
3094 found_so="$dir/lib$name.$shlibext"
3095 if test -f "$dir/lib$name.la"; then
3096 found_la="$dir/lib$name.la"
3097 fi
3098 else
3099 if test -f "$dir/lib$name.$libext"; then
3100 found_dir="$dir"
3101 found_a="$dir/lib$name.$libext"
3102 if test -f "$dir/lib$name.la"; then
3103 found_la="$dir/lib$name.la"
3104 fi
3105 fi
3106 fi
3107 ;;
3108 esac
3109 if test "X$found_dir" != "X"; then
3110 break
3111 fi
3112 done
3113 fi
3114 if test "X$found_dir" != "X"; then
3115 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
3116 if test "X$found_so" != "X"; then
3117 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
3118 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
3119 else
3120 haveit=
3121 for x in $ltrpathdirs; do
3122 if test "X$x" = "X$found_dir"; then
3123 haveit=yes
3124 break
3125 fi
3126 done
3127 if test -z "$haveit"; then
3128 ltrpathdirs="$ltrpathdirs $found_dir"
3129 fi
3130 if test "$hardcode_direct" = yes; then
3131 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
3132 else
3133 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
3134 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
3135 haveit=
3136 for x in $rpathdirs; do
3137 if test "X$x" = "X$found_dir"; then
3138 haveit=yes
3139 break
3140 fi
3141 done
3142 if test -z "$haveit"; then
3143 rpathdirs="$rpathdirs $found_dir"
3144 fi
3145 else
3146 haveit=
3147 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003148
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003149 acl_save_prefix="$prefix"
3150 prefix="$acl_final_prefix"
3151 acl_save_exec_prefix="$exec_prefix"
3152 exec_prefix="$acl_final_exec_prefix"
3153 eval x=\"$x\"
3154 exec_prefix="$acl_save_exec_prefix"
3155 prefix="$acl_save_prefix"
3156
3157 if test "X$x" = "X-L$found_dir"; then
3158 haveit=yes
3159 break
3160 fi
3161 done
3162 if test -z "$haveit"; then
3163 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
3164 fi
3165 if test "$hardcode_minus_L" != no; then
3166 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
3167 else
3168 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
3169 fi
3170 fi
3171 fi
3172 fi
3173 else
3174 if test "X$found_a" != "X"; then
3175 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
3176 else
3177 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
3178 fi
3179 fi
3180 additional_includedir=
3181 case "$found_dir" in
3182 */lib | */lib/)
3183 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
3184 additional_includedir="$basedir/include"
3185 ;;
3186 esac
3187 if test "X$additional_includedir" != "X"; then
3188 if test "X$additional_includedir" != "X/usr/include"; then
3189 haveit=
3190 if test "X$additional_includedir" = "X/usr/local/include"; then
3191 if test -n "$GCC"; then
3192 case $host_os in
3193 linux*) haveit=yes;;
3194 esac
3195 fi
3196 fi
3197 if test -z "$haveit"; then
3198 for x in $CPPFLAGS $INCICONV; do
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003199
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003200 acl_save_prefix="$prefix"
3201 prefix="$acl_final_prefix"
3202 acl_save_exec_prefix="$exec_prefix"
3203 exec_prefix="$acl_final_exec_prefix"
3204 eval x=\"$x\"
3205 exec_prefix="$acl_save_exec_prefix"
3206 prefix="$acl_save_prefix"
3207
3208 if test "X$x" = "X-I$additional_includedir"; then
3209 haveit=yes
3210 break
3211 fi
3212 done
3213 if test -z "$haveit"; then
3214 if test -d "$additional_includedir"; then
3215 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
3216 fi
3217 fi
3218 fi
3219 fi
3220 fi
3221 if test -n "$found_la"; then
3222 save_libdir="$libdir"
3223 case "$found_la" in
3224 */* | *\\*) . "$found_la" ;;
3225 *) . "./$found_la" ;;
3226 esac
3227 libdir="$save_libdir"
3228 for dep in $dependency_libs; do
3229 case "$dep" in
3230 -L*)
3231 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
3232 if test "X$additional_libdir" != "X/usr/lib"; then
3233 haveit=
3234 if test "X$additional_libdir" = "X/usr/local/lib"; then
3235 if test -n "$GCC"; then
3236 case $host_os in
3237 linux*) haveit=yes;;
3238 esac
3239 fi
3240 fi
3241 if test -z "$haveit"; then
3242 haveit=
3243 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003244
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003245 acl_save_prefix="$prefix"
3246 prefix="$acl_final_prefix"
3247 acl_save_exec_prefix="$exec_prefix"
3248 exec_prefix="$acl_final_exec_prefix"
3249 eval x=\"$x\"
3250 exec_prefix="$acl_save_exec_prefix"
3251 prefix="$acl_save_prefix"
3252
3253 if test "X$x" = "X-L$additional_libdir"; then
3254 haveit=yes
3255 break
3256 fi
3257 done
3258 if test -z "$haveit"; then
3259 if test -d "$additional_libdir"; then
3260 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
3261 fi
3262 fi
3263 haveit=
3264 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003265
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003266 acl_save_prefix="$prefix"
3267 prefix="$acl_final_prefix"
3268 acl_save_exec_prefix="$exec_prefix"
3269 exec_prefix="$acl_final_exec_prefix"
3270 eval x=\"$x\"
3271 exec_prefix="$acl_save_exec_prefix"
3272 prefix="$acl_save_prefix"
3273
3274 if test "X$x" = "X-L$additional_libdir"; then
3275 haveit=yes
3276 break
3277 fi
3278 done
3279 if test -z "$haveit"; then
3280 if test -d "$additional_libdir"; then
3281 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
3282 fi
3283 fi
3284 fi
3285 fi
3286 ;;
3287 -R*)
3288 dir=`echo "X$dep" | sed -e 's/^X-R//'`
3289 if test "$enable_rpath" != no; then
3290 haveit=
3291 for x in $rpathdirs; do
3292 if test "X$x" = "X$dir"; then
3293 haveit=yes
3294 break
3295 fi
3296 done
3297 if test -z "$haveit"; then
3298 rpathdirs="$rpathdirs $dir"
3299 fi
3300 haveit=
3301 for x in $ltrpathdirs; do
3302 if test "X$x" = "X$dir"; then
3303 haveit=yes
3304 break
3305 fi
3306 done
3307 if test -z "$haveit"; then
3308 ltrpathdirs="$ltrpathdirs $dir"
3309 fi
3310 fi
3311 ;;
3312 -l*)
3313 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
3314 ;;
3315 *.la)
3316 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
3317 ;;
3318 *)
3319 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
3320 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
3321 ;;
3322 esac
3323 done
3324 fi
3325 else
3326 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
3327 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
3328 fi
3329 fi
3330 fi
3331 done
3332 done
3333 if test "X$rpathdirs" != "X"; then
3334 if test -n "$hardcode_libdir_separator"; then
3335 alldirs=
3336 for found_dir in $rpathdirs; do
3337 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
3338 done
3339 acl_save_libdir="$libdir"
3340 libdir="$alldirs"
3341 eval flag=\"$hardcode_libdir_flag_spec\"
3342 libdir="$acl_save_libdir"
3343 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
3344 else
3345 for found_dir in $rpathdirs; do
3346 acl_save_libdir="$libdir"
3347 libdir="$found_dir"
3348 eval flag=\"$hardcode_libdir_flag_spec\"
3349 libdir="$acl_save_libdir"
3350 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
3351 done
3352 fi
3353 fi
3354 if test "X$ltrpathdirs" != "X"; then
3355 for found_dir in $ltrpathdirs; do
3356 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
3357 done
3358 fi
3359
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003360
3361
3362
3363
3364 # Extract the first word of "msgfmt", so it can be a program name with args.
3365set dummy msgfmt; ac_word=$2
3366echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05003367echo "configure:3368: checking for $ac_word" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003368if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3369 echo $ac_n "(cached) $ac_c" 1>&6
3370else
3371 case "$MSGFMT" in
3372 /*)
3373 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3374 ;;
3375 *)
3376 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3377 for ac_dir in $PATH; do
3378 test -z "$ac_dir" && ac_dir=.
3379 if test -f $ac_dir/$ac_word; then
3380 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
3381 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3382 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3383 break
3384 fi
3385 fi
3386 done
3387 IFS="$ac_save_ifs"
3388 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
3389 ;;
3390esac
3391fi
3392MSGFMT="$ac_cv_path_MSGFMT"
3393if test "$MSGFMT" != ":"; then
3394 echo "$ac_t""$MSGFMT" 1>&6
3395else
3396 echo "$ac_t""no" 1>&6
3397fi
3398
3399 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3400set dummy gmsgfmt; ac_word=$2
3401echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05003402echo "configure:3403: checking for $ac_word" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003403if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3404 echo $ac_n "(cached) $ac_c" 1>&6
3405else
3406 case "$GMSGFMT" in
3407 /*)
3408 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3409 ;;
3410 ?:/*)
3411 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3412 ;;
3413 *)
3414 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3415 ac_dummy="$PATH"
3416 for ac_dir in $ac_dummy; do
3417 test -z "$ac_dir" && ac_dir=.
3418 if test -f $ac_dir/$ac_word; then
3419 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3420 break
3421 fi
3422 done
3423 IFS="$ac_save_ifs"
3424 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3425 ;;
3426esac
3427fi
3428GMSGFMT="$ac_cv_path_GMSGFMT"
3429if test -n "$GMSGFMT"; then
3430 echo "$ac_t""$GMSGFMT" 1>&6
3431else
3432 echo "$ac_t""no" 1>&6
3433fi
3434
3435
3436 # Extract the first word of "xgettext", so it can be a program name with args.
3437set dummy xgettext; ac_word=$2
3438echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05003439echo "configure:3440: checking for $ac_word" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003440if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3441 echo $ac_n "(cached) $ac_c" 1>&6
3442else
3443 case "$XGETTEXT" in
3444 /*)
3445 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3446 ;;
3447 *)
3448 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3449 for ac_dir in $PATH; do
3450 test -z "$ac_dir" && ac_dir=.
3451 if test -f $ac_dir/$ac_word; then
3452 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
3453 (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
3454 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3455 break
3456 fi
3457 fi
3458 done
3459 IFS="$ac_save_ifs"
3460 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3461 ;;
3462esac
3463fi
3464XGETTEXT="$ac_cv_path_XGETTEXT"
3465if test "$XGETTEXT" != ":"; then
3466 echo "$ac_t""$XGETTEXT" 1>&6
3467else
3468 echo "$ac_t""no" 1>&6
3469fi
3470
3471 rm -f messages.po
3472
3473 # Extract the first word of "msgmerge", so it can be a program name with args.
3474set dummy msgmerge; ac_word=$2
3475echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05003476echo "configure:3477: checking for $ac_word" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003477if eval "test \"`echo '$''{'ac_cv_path_MSGMERGE'+set}'`\" = set"; then
3478 echo $ac_n "(cached) $ac_c" 1>&6
3479else
3480 case "$MSGMERGE" in
3481 /*)
3482 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
3483 ;;
3484 *)
3485 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3486 for ac_dir in $PATH; do
3487 test -z "$ac_dir" && ac_dir=.
3488 if test -f $ac_dir/$ac_word; then
3489 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
3490 ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
3491 break
3492 fi
3493 fi
3494 done
3495 IFS="$ac_save_ifs"
3496 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
3497 ;;
3498esac
3499fi
3500MSGMERGE="$ac_cv_path_MSGMERGE"
3501if test "$MSGMERGE" != ":"; then
3502 echo "$ac_t""$MSGMERGE" 1>&6
3503else
3504 echo "$ac_t""no" 1>&6
3505fi
3506
3507
3508 if test "$GMSGFMT" != ":"; then
3509 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
3510 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3511 : ;
3512 else
3513 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
3514 echo "$ac_t""found $GMSGFMT program is not GNU msgfmt; ignore it" 1>&6
3515 GMSGFMT=":"
3516 fi
3517 fi
3518
3519 if test "$XGETTEXT" != ":"; then
3520 if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
3521 (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3522 : ;
3523 else
3524 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
3525 XGETTEXT=":"
3526 fi
3527 rm -f messages.po
3528 fi
3529
3530
3531
3532
3533
3534 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003535stdlib.h string.h unistd.h sys/param.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003536do
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003537ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3538echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05003539echo "configure:3540: checking for $ac_hdr" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003540if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3541 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003542else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003543 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05003544#line 3545 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003545#include "confdefs.h"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003546#include <$ac_hdr>
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003547EOF
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003548ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05003549{ (eval echo configure:3550: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003550ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3551if test -z "$ac_err"; then
3552 rm -rf conftest*
3553 eval "ac_cv_header_$ac_safe=yes"
3554else
3555 echo "$ac_err" >&5
3556 echo "configure: failed program was:" >&5
3557 cat conftest.$ac_ext >&5
3558 rm -rf conftest*
3559 eval "ac_cv_header_$ac_safe=no"
3560fi
3561rm -f conftest*
3562fi
3563if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3564 echo "$ac_t""yes" 1>&6
3565 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3566 cat >> confdefs.h <<EOF
3567#define $ac_tr_hdr 1
3568EOF
3569
3570else
3571 echo "$ac_t""no" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003572fi
3573done
3574
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003575 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003576geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
3577strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003578do
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003579echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05003580echo "configure:3581: checking for $ac_func" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003581if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3582 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003583else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003584 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05003585#line 3586 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003586#include "confdefs.h"
3587/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003588 which can conflict with char $ac_func(); below. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003589#include <assert.h>
3590/* Override any gcc2 internal prototype to avoid an error. */
3591/* We use char because int might match the return type of a gcc2
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003592 builtin and then its argument prototype would still apply. */
3593char $ac_func();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003594
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003595int main() {
3596
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003597/* The GNU C library defines this for functions which it implements
3598 to always fail with ENOSYS. Some functions are actually named
3599 something starting with __ and the normal name is an alias. */
3600#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3601choke me
3602#else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003603$ac_func();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003604#endif
3605
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003606; return 0; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003607EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05003608if { (eval echo configure:3609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003609 rm -rf conftest*
3610 eval "ac_cv_func_$ac_func=yes"
3611else
3612 echo "configure: failed program was:" >&5
3613 cat conftest.$ac_ext >&5
3614 rm -rf conftest*
3615 eval "ac_cv_func_$ac_func=no"
3616fi
3617rm -f conftest*
3618fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003619
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003620if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3621 echo "$ac_t""yes" 1>&6
3622 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3623 cat >> confdefs.h <<EOF
3624#define $ac_tr_func 1
3625EOF
3626
3627else
3628 echo "$ac_t""no" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003629fi
3630done
3631
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003632
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003633
3634
3635
3636
3637
3638 am_save_CPPFLAGS="$CPPFLAGS"
3639
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003640 for element in $INCICONV; do
3641 haveit=
3642 for x in $CPPFLAGS; do
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003643
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003644 acl_save_prefix="$prefix"
3645 prefix="$acl_final_prefix"
3646 acl_save_exec_prefix="$exec_prefix"
3647 exec_prefix="$acl_final_exec_prefix"
3648 eval x=\"$x\"
3649 exec_prefix="$acl_save_exec_prefix"
3650 prefix="$acl_save_prefix"
3651
3652 if test "X$x" = "X$element"; then
3653 haveit=yes
3654 break
3655 fi
3656 done
3657 if test -z "$haveit"; then
3658 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
3659 fi
3660 done
3661
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003662
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003663 echo $ac_n "checking for iconv""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05003664echo "configure:3665: checking for iconv" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003665if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
3666 echo $ac_n "(cached) $ac_c" 1>&6
3667else
3668
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003669 am_cv_func_iconv="no, consider installing GNU libiconv"
3670 am_cv_lib_iconv=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003671 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05003672#line 3673 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003673#include "confdefs.h"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003674#include <stdlib.h>
3675#include <iconv.h>
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003676int main() {
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003677iconv_t cd = iconv_open("","");
3678 iconv(cd,NULL,NULL,NULL,NULL);
3679 iconv_close(cd);
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003680; return 0; }
3681EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05003682if { (eval echo configure:3683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003683 rm -rf conftest*
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003684 am_cv_func_iconv=yes
3685else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003686 echo "configure: failed program was:" >&5
3687 cat conftest.$ac_ext >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003688fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003689rm -f conftest*
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003690 if test "$am_cv_func_iconv" != yes; then
3691 am_save_LIBS="$LIBS"
3692 LIBS="$LIBS $LIBICONV"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003693 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05003694#line 3695 "configure"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003695#include "confdefs.h"
3696#include <stdlib.h>
3697#include <iconv.h>
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003698int main() {
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003699iconv_t cd = iconv_open("","");
3700 iconv(cd,NULL,NULL,NULL,NULL);
3701 iconv_close(cd);
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003702; return 0; }
3703EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05003704if { (eval echo configure:3705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003705 rm -rf conftest*
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003706 am_cv_lib_iconv=yes
3707 am_cv_func_iconv=yes
3708else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003709 echo "configure: failed program was:" >&5
3710 cat conftest.$ac_ext >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003711fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003712rm -f conftest*
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003713 LIBS="$am_save_LIBS"
3714 fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003715
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003716fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003717
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003718echo "$ac_t""$am_cv_func_iconv" 1>&6
3719 if test "$am_cv_func_iconv" = yes; then
3720 cat >> confdefs.h <<\EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003721#define HAVE_ICONV 1
3722EOF
3723
3724 fi
3725 if test "$am_cv_lib_iconv" = yes; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003726 echo $ac_n "checking how to link with libiconv""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05003727echo "configure:3728: checking how to link with libiconv" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003728 echo "$ac_t""$LIBICONV" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003729 else
3730 CPPFLAGS="$am_save_CPPFLAGS"
3731 LIBICONV=
3732 LTLIBICONV=
3733 fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003734
3735
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003736
3737 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003738 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05003739echo "configure:3740: checking for iconv declaration" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003740 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
3741 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003742else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003743
3744 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05003745#line 3746 "configure"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003746#include "confdefs.h"
3747
3748#include <stdlib.h>
3749#include <iconv.h>
3750extern
3751#ifdef __cplusplus
3752"C"
3753#endif
3754#if defined(__STDC__) || defined(__cplusplus)
3755size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
3756#else
3757size_t iconv();
3758#endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003759
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003760int main() {
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003761
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003762; return 0; }
3763EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05003764if { (eval echo configure:3765: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003765 rm -rf conftest*
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003766 am_cv_proto_iconv_arg1=""
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003767else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003768 echo "configure: failed program was:" >&5
3769 cat conftest.$ac_ext >&5
3770 rm -rf conftest*
3771 am_cv_proto_iconv_arg1="const"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003772fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003773rm -f conftest*
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003774 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 +00003775fi
3776
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003777 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003778 echo "$ac_t""${ac_t:-
3779 }$am_cv_proto_iconv" 1>&6
3780 cat >> confdefs.h <<EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003781#define ICONV_CONST $am_cv_proto_iconv_arg1
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003782EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003783
3784 fi
3785
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003786
3787 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05003788echo "configure:3789: checking for nl_langinfo and CODESET" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003789if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
3790 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003791else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003792 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05003793#line 3794 "configure"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003794#include "confdefs.h"
3795#include <langinfo.h>
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003796int main() {
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003797char* cs = nl_langinfo(CODESET);
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003798; return 0; }
3799EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05003800if { (eval echo configure:3801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003801 rm -rf conftest*
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003802 am_cv_langinfo_codeset=yes
3803else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003804 echo "configure: failed program was:" >&5
3805 cat conftest.$ac_ext >&5
3806 rm -rf conftest*
3807 am_cv_langinfo_codeset=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003808fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003809rm -f conftest*
3810
3811fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003812
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003813echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003814 if test $am_cv_langinfo_codeset = yes; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003815 cat >> confdefs.h <<\EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003816#define HAVE_LANGINFO_CODESET 1
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003817EOF
3818
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003819 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003820
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003821 if test $ac_cv_header_locale_h = yes; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003822
3823 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05003824echo "configure:3825: checking for LC_MESSAGES" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003825if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3826 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003827else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003828 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05003829#line 3830 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003830#include "confdefs.h"
3831#include <locale.h>
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003832int main() {
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003833return LC_MESSAGES
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003834; return 0; }
3835EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05003836if { (eval echo configure:3837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003837 rm -rf conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003838 am_cv_val_LC_MESSAGES=yes
3839else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003840 echo "configure: failed program was:" >&5
3841 cat conftest.$ac_ext >&5
3842 rm -rf conftest*
3843 am_cv_val_LC_MESSAGES=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003844fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003845rm -f conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003846fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003847
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003848echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3849 if test $am_cv_val_LC_MESSAGES = yes; then
3850 cat >> confdefs.h <<\EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003851#define HAVE_LC_MESSAGES 1
3852EOF
3853
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003854 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003855
3856 fi
3857
3858 for ac_prog in bison
3859do
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003860# Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003861set dummy $ac_prog; ac_word=$2
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003862echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05003863echo "configure:3864: checking for $ac_word" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003864if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
3865 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003866else
3867 if test -n "$INTLBISON"; then
3868 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
3869else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003870 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3871 ac_dummy="$PATH"
3872 for ac_dir in $ac_dummy; do
3873 test -z "$ac_dir" && ac_dir=.
3874 if test -f $ac_dir/$ac_word; then
3875 ac_cv_prog_INTLBISON="$ac_prog"
3876 break
3877 fi
3878 done
3879 IFS="$ac_save_ifs"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003880fi
3881fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003882INTLBISON="$ac_cv_prog_INTLBISON"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003883if test -n "$INTLBISON"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003884 echo "$ac_t""$INTLBISON" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003885else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003886 echo "$ac_t""no" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003887fi
3888
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003889test -n "$INTLBISON" && break
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003890done
3891
3892 if test -z "$INTLBISON"; then
3893 ac_verc_fail=yes
3894 else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003895 echo $ac_n "checking version of bison""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05003896echo "configure:3897: checking version of bison" >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003897 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
3898 case $ac_prog_version in
3899 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3900 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
3901 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3902 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3903 esac
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003904 echo "$ac_t""$ac_prog_version" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003905 fi
3906 if test $ac_verc_fail = yes; then
3907 INTLBISON=:
3908 fi
3909
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05003925echo "configure:3926: checking whether NLS is requested" >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003926 # Check whether --enable-nls or --disable-nls was given.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003927if test "${enable_nls+set}" = set; then
3928 enableval="$enable_nls"
3929 USE_NLS=$enableval
3930else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003931 USE_NLS=yes
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003932fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003933
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003934 echo "$ac_t""$USE_NLS" 1>&6
3935
3936
3937
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003938 BUILD_INCLUDED_LIBINTL=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003939 USE_INCLUDED_LIBINTL=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003940
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003941 LIBINTL=
3942 LTLIBINTL=
3943 POSUB=
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003944
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003945 if test "$USE_NLS" = "yes"; then
3946 gt_use_preinstalled_gnugettext=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003947
3948 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05003949echo "configure:3950: checking whether included gettext is requested" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003950 # Check whether --with-included-gettext or --without-included-gettext was given.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003951if test "${with_included_gettext+set}" = set; then
3952 withval="$with_included_gettext"
3953 nls_cv_force_use_gnu_gettext=$withval
3954else
3955 nls_cv_force_use_gnu_gettext=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003956fi
3957
3958 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003959
3960 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
3961 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003962
3963
3964
3965
3966
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003967
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003968 echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05003969echo "configure:3970: checking for GNU gettext in libc" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003970if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
3971 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003972else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003973 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05003974#line 3975 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003975#include "confdefs.h"
3976#include <libintl.h>
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003977extern int _nl_msg_cat_cntr;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003978extern int *_nl_domain_bindings;
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003979int main() {
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003980bindtextdomain ("", "");
3981return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003982; return 0; }
3983EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05003984if { (eval echo configure:3985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003985 rm -rf conftest*
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003986 gt_cv_func_gnugettext1_libc=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003987else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003988 echo "configure: failed program was:" >&5
3989 cat conftest.$ac_ext >&5
3990 rm -rf conftest*
3991 gt_cv_func_gnugettext1_libc=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003992fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003993rm -f conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003994fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003995
3996echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003997
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003998 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003999
4000
4001
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004002 use_additional=yes
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004003
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004004 acl_save_prefix="$prefix"
4005 prefix="$acl_final_prefix"
4006 acl_save_exec_prefix="$exec_prefix"
4007 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004008
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004009 eval additional_includedir=\"$includedir\"
4010 eval additional_libdir=\"$libdir\"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004011
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004012 exec_prefix="$acl_save_exec_prefix"
4013 prefix="$acl_save_prefix"
4014
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004015 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004016if test "${with_libintl_prefix+set}" = set; then
4017 withval="$with_libintl_prefix"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004018
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004019 if test "X$withval" = "Xno"; then
4020 use_additional=no
4021 else
4022 if test "X$withval" = "X"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004023
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004024 acl_save_prefix="$prefix"
4025 prefix="$acl_final_prefix"
4026 acl_save_exec_prefix="$exec_prefix"
4027 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004028
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004029 eval additional_includedir=\"$includedir\"
4030 eval additional_libdir=\"$libdir\"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004031
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004032 exec_prefix="$acl_save_exec_prefix"
4033 prefix="$acl_save_prefix"
4034
4035 else
4036 additional_includedir="$withval/include"
4037 additional_libdir="$withval/lib"
4038 fi
4039 fi
4040
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004041fi
4042
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004043 LIBINTL=
4044 LTLIBINTL=
4045 INCINTL=
4046 rpathdirs=
4047 ltrpathdirs=
4048 names_already_handled=
4049 names_next_round='intl '
4050 while test -n "$names_next_round"; do
4051 names_this_round="$names_next_round"
4052 names_next_round=
4053 for name in $names_this_round; do
4054 already_handled=
4055 for n in $names_already_handled; do
4056 if test "$n" = "$name"; then
4057 already_handled=yes
4058 break
4059 fi
4060 done
4061 if test -z "$already_handled"; then
4062 names_already_handled="$names_already_handled $name"
4063 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
4064 eval value=\"\$HAVE_LIB$uppername\"
4065 if test -n "$value"; then
4066 if test "$value" = yes; then
4067 eval value=\"\$LIB$uppername\"
4068 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
4069 eval value=\"\$LTLIB$uppername\"
4070 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
4071 else
4072 :
4073 fi
4074 else
4075 found_dir=
4076 found_la=
4077 found_so=
4078 found_a=
4079 if test $use_additional = yes; then
4080 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
4081 found_dir="$additional_libdir"
4082 found_so="$additional_libdir/lib$name.$shlibext"
4083 if test -f "$additional_libdir/lib$name.la"; then
4084 found_la="$additional_libdir/lib$name.la"
4085 fi
4086 else
4087 if test -f "$additional_libdir/lib$name.$libext"; then
4088 found_dir="$additional_libdir"
4089 found_a="$additional_libdir/lib$name.$libext"
4090 if test -f "$additional_libdir/lib$name.la"; then
4091 found_la="$additional_libdir/lib$name.la"
4092 fi
4093 fi
4094 fi
4095 fi
4096 if test "X$found_dir" = "X"; then
4097 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004098
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004099 acl_save_prefix="$prefix"
4100 prefix="$acl_final_prefix"
4101 acl_save_exec_prefix="$exec_prefix"
4102 exec_prefix="$acl_final_exec_prefix"
4103 eval x=\"$x\"
4104 exec_prefix="$acl_save_exec_prefix"
4105 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004106
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004107 case "$x" in
4108 -L*)
4109 dir=`echo "X$x" | sed -e 's/^X-L//'`
4110 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
4111 found_dir="$dir"
4112 found_so="$dir/lib$name.$shlibext"
4113 if test -f "$dir/lib$name.la"; then
4114 found_la="$dir/lib$name.la"
4115 fi
4116 else
4117 if test -f "$dir/lib$name.$libext"; then
4118 found_dir="$dir"
4119 found_a="$dir/lib$name.$libext"
4120 if test -f "$dir/lib$name.la"; then
4121 found_la="$dir/lib$name.la"
4122 fi
4123 fi
4124 fi
4125 ;;
4126 esac
4127 if test "X$found_dir" != "X"; then
4128 break
4129 fi
4130 done
4131 fi
4132 if test "X$found_dir" != "X"; then
4133 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
4134 if test "X$found_so" != "X"; then
4135 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
4136 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
4137 else
4138 haveit=
4139 for x in $ltrpathdirs; do
4140 if test "X$x" = "X$found_dir"; then
4141 haveit=yes
4142 break
4143 fi
4144 done
4145 if test -z "$haveit"; then
4146 ltrpathdirs="$ltrpathdirs $found_dir"
4147 fi
4148 if test "$hardcode_direct" = yes; then
4149 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
4150 else
4151 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
4152 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
4153 haveit=
4154 for x in $rpathdirs; do
4155 if test "X$x" = "X$found_dir"; then
4156 haveit=yes
4157 break
4158 fi
4159 done
4160 if test -z "$haveit"; then
4161 rpathdirs="$rpathdirs $found_dir"
4162 fi
4163 else
4164 haveit=
4165 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004166
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004167 acl_save_prefix="$prefix"
4168 prefix="$acl_final_prefix"
4169 acl_save_exec_prefix="$exec_prefix"
4170 exec_prefix="$acl_final_exec_prefix"
4171 eval x=\"$x\"
4172 exec_prefix="$acl_save_exec_prefix"
4173 prefix="$acl_save_prefix"
4174
4175 if test "X$x" = "X-L$found_dir"; then
4176 haveit=yes
4177 break
4178 fi
4179 done
4180 if test -z "$haveit"; then
4181 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
4182 fi
4183 if test "$hardcode_minus_L" != no; then
4184 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
4185 else
4186 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
4187 fi
4188 fi
4189 fi
4190 fi
4191 else
4192 if test "X$found_a" != "X"; then
4193 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
4194 else
4195 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
4196 fi
4197 fi
4198 additional_includedir=
4199 case "$found_dir" in
4200 */lib | */lib/)
4201 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
4202 additional_includedir="$basedir/include"
4203 ;;
4204 esac
4205 if test "X$additional_includedir" != "X"; then
4206 if test "X$additional_includedir" != "X/usr/include"; then
4207 haveit=
4208 if test "X$additional_includedir" = "X/usr/local/include"; then
4209 if test -n "$GCC"; then
4210 case $host_os in
4211 linux*) haveit=yes;;
4212 esac
4213 fi
4214 fi
4215 if test -z "$haveit"; then
4216 for x in $CPPFLAGS $INCINTL; do
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004217
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004218 acl_save_prefix="$prefix"
4219 prefix="$acl_final_prefix"
4220 acl_save_exec_prefix="$exec_prefix"
4221 exec_prefix="$acl_final_exec_prefix"
4222 eval x=\"$x\"
4223 exec_prefix="$acl_save_exec_prefix"
4224 prefix="$acl_save_prefix"
4225
4226 if test "X$x" = "X-I$additional_includedir"; then
4227 haveit=yes
4228 break
4229 fi
4230 done
4231 if test -z "$haveit"; then
4232 if test -d "$additional_includedir"; then
4233 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
4234 fi
4235 fi
4236 fi
4237 fi
4238 fi
4239 if test -n "$found_la"; then
4240 save_libdir="$libdir"
4241 case "$found_la" in
4242 */* | *\\*) . "$found_la" ;;
4243 *) . "./$found_la" ;;
4244 esac
4245 libdir="$save_libdir"
4246 for dep in $dependency_libs; do
4247 case "$dep" in
4248 -L*)
4249 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
4250 if test "X$additional_libdir" != "X/usr/lib"; then
4251 haveit=
4252 if test "X$additional_libdir" = "X/usr/local/lib"; then
4253 if test -n "$GCC"; then
4254 case $host_os in
4255 linux*) haveit=yes;;
4256 esac
4257 fi
4258 fi
4259 if test -z "$haveit"; then
4260 haveit=
4261 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004262
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004263 acl_save_prefix="$prefix"
4264 prefix="$acl_final_prefix"
4265 acl_save_exec_prefix="$exec_prefix"
4266 exec_prefix="$acl_final_exec_prefix"
4267 eval x=\"$x\"
4268 exec_prefix="$acl_save_exec_prefix"
4269 prefix="$acl_save_prefix"
4270
4271 if test "X$x" = "X-L$additional_libdir"; then
4272 haveit=yes
4273 break
4274 fi
4275 done
4276 if test -z "$haveit"; then
4277 if test -d "$additional_libdir"; then
4278 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
4279 fi
4280 fi
4281 haveit=
4282 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004283
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004284 acl_save_prefix="$prefix"
4285 prefix="$acl_final_prefix"
4286 acl_save_exec_prefix="$exec_prefix"
4287 exec_prefix="$acl_final_exec_prefix"
4288 eval x=\"$x\"
4289 exec_prefix="$acl_save_exec_prefix"
4290 prefix="$acl_save_prefix"
4291
4292 if test "X$x" = "X-L$additional_libdir"; then
4293 haveit=yes
4294 break
4295 fi
4296 done
4297 if test -z "$haveit"; then
4298 if test -d "$additional_libdir"; then
4299 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
4300 fi
4301 fi
4302 fi
4303 fi
4304 ;;
4305 -R*)
4306 dir=`echo "X$dep" | sed -e 's/^X-R//'`
4307 if test "$enable_rpath" != no; then
4308 haveit=
4309 for x in $rpathdirs; do
4310 if test "X$x" = "X$dir"; then
4311 haveit=yes
4312 break
4313 fi
4314 done
4315 if test -z "$haveit"; then
4316 rpathdirs="$rpathdirs $dir"
4317 fi
4318 haveit=
4319 for x in $ltrpathdirs; do
4320 if test "X$x" = "X$dir"; then
4321 haveit=yes
4322 break
4323 fi
4324 done
4325 if test -z "$haveit"; then
4326 ltrpathdirs="$ltrpathdirs $dir"
4327 fi
4328 fi
4329 ;;
4330 -l*)
4331 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
4332 ;;
4333 *.la)
4334 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
4335 ;;
4336 *)
4337 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
4338 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
4339 ;;
4340 esac
4341 done
4342 fi
4343 else
4344 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
4345 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
4346 fi
4347 fi
4348 fi
4349 done
4350 done
4351 if test "X$rpathdirs" != "X"; then
4352 if test -n "$hardcode_libdir_separator"; then
4353 alldirs=
4354 for found_dir in $rpathdirs; do
4355 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
4356 done
4357 acl_save_libdir="$libdir"
4358 libdir="$alldirs"
4359 eval flag=\"$hardcode_libdir_flag_spec\"
4360 libdir="$acl_save_libdir"
4361 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
4362 else
4363 for found_dir in $rpathdirs; do
4364 acl_save_libdir="$libdir"
4365 libdir="$found_dir"
4366 eval flag=\"$hardcode_libdir_flag_spec\"
4367 libdir="$acl_save_libdir"
4368 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
4369 done
4370 fi
4371 fi
4372 if test "X$ltrpathdirs" != "X"; then
4373 for found_dir in $ltrpathdirs; do
4374 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
4375 done
4376 fi
4377
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004378 echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05004379echo "configure:4380: checking for GNU gettext in libintl" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004380if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
4381 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004382else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004383 gt_save_CPPFLAGS="$CPPFLAGS"
4384 CPPFLAGS="$CPPFLAGS $INCINTL"
4385 gt_save_LIBS="$LIBS"
4386 LIBS="$LIBS $LIBINTL"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004387 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05004388#line 4389 "configure"
4389#include "confdefs.h"
4390#include <libintl.h>
4391extern int _nl_msg_cat_cntr;
4392extern
4393#ifdef __cplusplus
4394"C"
4395#endif
4396const char *_nl_expand_alias ();
4397int main() {
4398bindtextdomain ("", "");
4399return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
4400; return 0; }
4401EOF
4402if { (eval echo configure:4403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4403 rm -rf conftest*
4404 gt_cv_func_gnugettext1_libintl=yes
4405else
4406 echo "configure: failed program was:" >&5
4407 cat conftest.$ac_ext >&5
4408 rm -rf conftest*
4409 gt_cv_func_gnugettext1_libintl=no
4410fi
4411rm -f conftest*
4412 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
4413 LIBS="$LIBS $LIBICONV"
4414 cat > conftest.$ac_ext <<EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04004415#line 4416 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004416#include "confdefs.h"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004417#include <libintl.h>
4418extern int _nl_msg_cat_cntr;
4419extern
4420#ifdef __cplusplus
4421"C"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004422#endif
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004423const char *_nl_expand_alias ();
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004424int main() {
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004425bindtextdomain ("", "");
4426return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004427; return 0; }
4428EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04004429if { (eval echo configure:4430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004430 rm -rf conftest*
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004431 LIBINTL="$LIBINTL $LIBICONV"
4432 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
4433 gt_cv_func_gnugettext1_libintl=yes
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004434
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004435else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004436 echo "configure: failed program was:" >&5
4437 cat conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004438fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004439rm -f conftest*
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004440 fi
4441 CPPFLAGS="$gt_save_CPPFLAGS"
4442 LIBS="$gt_save_LIBS"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004443fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004444
4445echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004446 fi
4447
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004448 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
4449 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
4450 && test "$PACKAGE" != gettext; }; then
4451 gt_use_preinstalled_gnugettext=yes
4452 else
4453 LIBINTL=
4454 LTLIBINTL=
4455 INCINTL=
4456 fi
4457
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004458
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004459 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
4460 nls_cv_use_gnu_gettext=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004461 fi
4462 fi
4463
4464 if test "$nls_cv_use_gnu_gettext" = "yes"; then
4465 INTLOBJS="\$(GETTOBJS)"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004466 BUILD_INCLUDED_LIBINTL=yes
4467 USE_INCLUDED_LIBINTL=yes
4468 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
4469 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
4470 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004471 fi
4472
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004473 if test "$gt_use_preinstalled_gnugettext" = "yes" \
4474 || test "$nls_cv_use_gnu_gettext" = "yes"; then
4475 CATOBJEXT=.gmo
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004476 fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004477
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004478
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004479 if test "$gt_use_preinstalled_gnugettext" = "yes" \
4480 || test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004481 cat >> confdefs.h <<\EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004482#define ENABLE_NLS 1
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004483EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004484
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004485 else
4486 USE_NLS=no
4487 fi
4488 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004489
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004490 if test "$USE_NLS" = "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004491
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004492 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
4493 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004494 echo $ac_n "checking how to link with libintl""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05004495echo "configure:4496: checking how to link with libintl" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004496 echo "$ac_t""$LIBINTL" 1>&6
4497
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004498 for element in $INCINTL; do
4499 haveit=
4500 for x in $CPPFLAGS; do
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004501
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004502 acl_save_prefix="$prefix"
4503 prefix="$acl_final_prefix"
4504 acl_save_exec_prefix="$exec_prefix"
4505 exec_prefix="$acl_final_exec_prefix"
4506 eval x=\"$x\"
4507 exec_prefix="$acl_save_exec_prefix"
4508 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004509
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004510 if test "X$x" = "X$element"; then
4511 haveit=yes
4512 break
4513 fi
4514 done
4515 if test -z "$haveit"; then
4516 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
4517 fi
4518 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004519
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004520 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004521
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004522 cat >> confdefs.h <<\EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004523#define HAVE_GETTEXT 1
4524EOF
4525
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004526 cat >> confdefs.h <<\EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004527#define HAVE_DCGETTEXT 1
4528EOF
4529
4530 fi
4531
4532 POSUB=po
4533 fi
4534
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004535
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004536 if test "$PACKAGE" = gettext; then
4537 BUILD_INCLUDED_LIBINTL=yes
4538 fi
4539
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004540
4541
4542
4543
4544
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004545 nls_cv_header_intl=
4546 nls_cv_header_libgt=
4547
4548 DATADIRNAME=share
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004549
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004550
4551 INSTOBJEXT=.mo
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004552
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004553
4554 GENCAT=gencat
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004555
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004556
4557 INTL_LIBTOOL_SUFFIX_PREFIX=
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004558
4559
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004560
4561 INTLLIBS="$LIBINTL"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004562
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004563
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004564
4565
4566
4567
4568
4569echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05004570echo "configure:4571: checking whether ${MAKE-make} sets \${MAKE}" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004571set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
4572if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
4573 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004574else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004575 cat > conftestmake <<\EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004576all:
4577 @echo 'ac_maketemp="${MAKE}"'
4578EOF
4579# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004580eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004581if test -n "$ac_maketemp"; then
4582 eval ac_cv_prog_make_${ac_make}_set=yes
4583else
4584 eval ac_cv_prog_make_${ac_make}_set=no
4585fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004586rm -f conftestmake
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004587fi
4588if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004589 echo "$ac_t""yes" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004590 SET_MAKE=
4591else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004592 echo "$ac_t""no" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004593 SET_MAKE="MAKE=${MAKE-make}"
4594fi
4595
4596# Extract the first word of "ln", so it can be a program name with args.
4597set dummy ln; ac_word=$2
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004598echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05004599echo "configure:4600: checking for $ac_word" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004600if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then
4601 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004602else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004603 case "$LN" in
4604 /*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004605 ac_cv_path_LN="$LN" # Let the user override the test with a path.
4606 ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004607 ?:/*)
4608 ac_cv_path_LN="$LN" # Let the user override the test with a dos path.
4609 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004610 *)
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004611 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4612 ac_dummy="$PATH"
4613 for ac_dir in $ac_dummy; do
4614 test -z "$ac_dir" && ac_dir=.
4615 if test -f $ac_dir/$ac_word; then
4616 ac_cv_path_LN="$ac_dir/$ac_word"
4617 break
4618 fi
4619 done
4620 IFS="$ac_save_ifs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004621 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
4622 ;;
4623esac
4624fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004625LN="$ac_cv_path_LN"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004626if test -n "$LN"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004627 echo "$ac_t""$LN" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004628else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004629 echo "$ac_t""no" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004630fi
4631
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004632echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05004633echo "configure:4634: checking whether ln -s works" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004634if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
4635 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004636else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004637 rm -f conftestdata
4638if ln -s X conftestdata 2>/dev/null
4639then
4640 rm -f conftestdata
4641 ac_cv_prog_LN_S="ln -s"
4642else
4643 ac_cv_prog_LN_S=ln
4644fi
4645fi
4646LN_S="$ac_cv_prog_LN_S"
4647if test "$ac_cv_prog_LN_S" = "ln -s"; then
4648 echo "$ac_t""yes" 1>&6
4649else
4650 echo "$ac_t""no" 1>&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004651fi
4652
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004653# Extract the first word of "mv", so it can be a program name with args.
4654set dummy mv; ac_word=$2
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004655echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05004656echo "configure:4657: checking for $ac_word" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004657if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
4658 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004659else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004660 case "$MV" in
4661 /*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004662 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4663 ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004664 ?:/*)
4665 ac_cv_path_MV="$MV" # Let the user override the test with a dos path.
4666 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004667 *)
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004668 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4669 ac_dummy="$PATH"
4670 for ac_dir in $ac_dummy; do
4671 test -z "$ac_dir" && ac_dir=.
4672 if test -f $ac_dir/$ac_word; then
4673 ac_cv_path_MV="$ac_dir/$ac_word"
4674 break
4675 fi
4676 done
4677 IFS="$ac_save_ifs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004678 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4679 ;;
4680esac
4681fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004682MV="$ac_cv_path_MV"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004683if test -n "$MV"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004684 echo "$ac_t""$MV" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004685else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004686 echo "$ac_t""no" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004687fi
4688
4689# Extract the first word of "cp", so it can be a program name with args.
4690set dummy cp; ac_word=$2
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004691echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05004692echo "configure:4693: checking for $ac_word" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004693if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then
4694 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004695else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004696 case "$CP" in
4697 /*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004698 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4699 ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004700 ?:/*)
4701 ac_cv_path_CP="$CP" # Let the user override the test with a dos path.
4702 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004703 *)
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004704 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4705 ac_dummy="$PATH"
4706 for ac_dir in $ac_dummy; do
4707 test -z "$ac_dir" && ac_dir=.
4708 if test -f $ac_dir/$ac_word; then
4709 ac_cv_path_CP="$ac_dir/$ac_word"
4710 break
4711 fi
4712 done
4713 IFS="$ac_save_ifs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004714 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4715 ;;
4716esac
4717fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004718CP="$ac_cv_path_CP"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004719if test -n "$CP"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004720 echo "$ac_t""$CP" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004721else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004722 echo "$ac_t""no" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004723fi
4724
4725# Extract the first word of "rm", so it can be a program name with args.
4726set dummy rm; ac_word=$2
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004727echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05004728echo "configure:4729: checking for $ac_word" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004729if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
4730 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004731else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004732 case "$RM" in
4733 /*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004734 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4735 ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004736 ?:/*)
4737 ac_cv_path_RM="$RM" # Let the user override the test with a dos path.
4738 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004739 *)
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004740 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4741 ac_dummy="$PATH"
4742 for ac_dir in $ac_dummy; do
4743 test -z "$ac_dir" && ac_dir=.
4744 if test -f $ac_dir/$ac_word; then
4745 ac_cv_path_RM="$ac_dir/$ac_word"
4746 break
4747 fi
4748 done
4749 IFS="$ac_save_ifs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004750 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4751 ;;
4752esac
4753fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004754RM="$ac_cv_path_RM"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004755if test -n "$RM"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004756 echo "$ac_t""$RM" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004757else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004758 echo "$ac_t""no" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004759fi
4760
4761# Extract the first word of "chmod", so it can be a program name with args.
4762set dummy chmod; ac_word=$2
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004763echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05004764echo "configure:4765: checking for $ac_word" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004765if eval "test \"`echo '$''{'ac_cv_path_CHMOD'+set}'`\" = set"; then
4766 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004767else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004768 case "$CHMOD" in
4769 /*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004770 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
4771 ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004772 ?:/*)
4773 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a dos path.
4774 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004775 *)
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004776 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4777 ac_dummy="$PATH"
4778 for ac_dir in $ac_dummy; do
4779 test -z "$ac_dir" && ac_dir=.
4780 if test -f $ac_dir/$ac_word; then
4781 ac_cv_path_CHMOD="$ac_dir/$ac_word"
4782 break
4783 fi
4784 done
4785 IFS="$ac_save_ifs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004786 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
4787 ;;
4788esac
4789fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004790CHMOD="$ac_cv_path_CHMOD"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004791if test -n "$CHMOD"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004792 echo "$ac_t""$CHMOD" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004793else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004794 echo "$ac_t""no" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004795fi
4796
4797# Extract the first word of "awk", so it can be a program name with args.
4798set dummy awk; ac_word=$2
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004799echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05004800echo "configure:4801: checking for $ac_word" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004801if eval "test \"`echo '$''{'ac_cv_path_AWK'+set}'`\" = set"; then
4802 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004803else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004804 case "$AWK" in
4805 /*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004806 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4807 ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004808 ?:/*)
4809 ac_cv_path_AWK="$AWK" # Let the user override the test with a dos path.
4810 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004811 *)
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004812 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4813 ac_dummy="$PATH"
4814 for ac_dir in $ac_dummy; do
4815 test -z "$ac_dir" && ac_dir=.
4816 if test -f $ac_dir/$ac_word; then
4817 ac_cv_path_AWK="$ac_dir/$ac_word"
4818 break
4819 fi
4820 done
4821 IFS="$ac_save_ifs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004822 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
4823 ;;
4824esac
4825fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004826AWK="$ac_cv_path_AWK"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004827if test -n "$AWK"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004828 echo "$ac_t""$AWK" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004829else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004830 echo "$ac_t""no" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004831fi
4832
4833# Extract the first word of "sed", so it can be a program name with args.
4834set dummy sed; ac_word=$2
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004835echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05004836echo "configure:4837: checking for $ac_word" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004837if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then
4838 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004839else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004840 case "$SED" in
4841 /*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004842 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4843 ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004844 ?:/*)
4845 ac_cv_path_SED="$SED" # Let the user override the test with a dos path.
4846 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004847 *)
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004848 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4849 ac_dummy="$PATH"
4850 for ac_dir in $ac_dummy; do
4851 test -z "$ac_dir" && ac_dir=.
4852 if test -f $ac_dir/$ac_word; then
4853 ac_cv_path_SED="$ac_dir/$ac_word"
4854 break
4855 fi
4856 done
4857 IFS="$ac_save_ifs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004858 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4859 ;;
4860esac
4861fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004862SED="$ac_cv_path_SED"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004863if test -n "$SED"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004864 echo "$ac_t""$SED" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004865else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004866 echo "$ac_t""no" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004867fi
4868
Theodore Ts'o9d564f71999-07-03 20:25:58 +00004869# Extract the first word of "perl", so it can be a program name with args.
4870set dummy perl; ac_word=$2
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004871echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05004872echo "configure:4873: checking for $ac_word" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004873if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
4874 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +00004875else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004876 case "$PERL" in
4877 /*)
Theodore Ts'o9d564f71999-07-03 20:25:58 +00004878 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4879 ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004880 ?:/*)
4881 ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
4882 ;;
Theodore Ts'o9d564f71999-07-03 20:25:58 +00004883 *)
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004884 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4885 ac_dummy="$PATH"
4886 for ac_dir in $ac_dummy; do
4887 test -z "$ac_dir" && ac_dir=.
4888 if test -f $ac_dir/$ac_word; then
4889 ac_cv_path_PERL="$ac_dir/$ac_word"
4890 break
4891 fi
4892 done
4893 IFS="$ac_save_ifs"
Theodore Ts'o9d564f71999-07-03 20:25:58 +00004894 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
4895 ;;
4896esac
4897fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004898PERL="$ac_cv_path_PERL"
Theodore Ts'o9d564f71999-07-03 20:25:58 +00004899if test -n "$PERL"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004900 echo "$ac_t""$PERL" 1>&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +00004901else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004902 echo "$ac_t""no" 1>&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +00004903fi
4904
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004905# Extract the first word of "ldconfig", so it can be a program name with args.
4906set dummy ldconfig; ac_word=$2
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004907echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05004908echo "configure:4909: checking for $ac_word" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004909if eval "test \"`echo '$''{'ac_cv_path_LDCONFIG'+set}'`\" = set"; then
4910 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004911else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004912 case "$LDCONFIG" in
4913 /*)
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004914 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4915 ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004916 ?:/*)
4917 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a dos path.
4918 ;;
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004919 *)
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004920 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4921 ac_dummy="$PATH"
4922 for ac_dir in $ac_dummy; do
4923 test -z "$ac_dir" && ac_dir=.
4924 if test -f $ac_dir/$ac_word; then
4925 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
4926 break
4927 fi
4928 done
4929 IFS="$ac_save_ifs"
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004930 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
4931 ;;
4932esac
4933fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004934LDCONFIG="$ac_cv_path_LDCONFIG"
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004935if test -n "$LDCONFIG"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004936 echo "$ac_t""$LDCONFIG" 1>&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004937else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004938 echo "$ac_t""no" 1>&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004939fi
4940
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004941echo $ac_n "checking build system type""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05004942echo "configure:4943: checking build system type" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004943
4944build_alias=$build
4945case "$build_alias" in
4946NONE)
4947 case $nonopt in
4948 NONE) build_alias=$host_alias ;;
4949 *) build_alias=$nonopt ;;
4950 esac ;;
4951esac
4952
4953build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
4954build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4955build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4956build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4957echo "$ac_t""$build" 1>&6
4958
4959if test $host != $build; then
4960 ac_tool_prefix=${host_alias}-
4961else
4962 ac_tool_prefix=
4963fi
4964
4965# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004966set dummy ${ac_tool_prefix}ar; ac_word=$2
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004967echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05004968echo "configure:4969: checking for $ac_word" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004969if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
4970 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004971else
4972 if test -n "$AR"; then
4973 ac_cv_prog_AR="$AR" # Let the user override the test.
4974else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004975 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4976 ac_dummy="$PATH"
4977 for ac_dir in $ac_dummy; do
4978 test -z "$ac_dir" && ac_dir=.
4979 if test -f $ac_dir/$ac_word; then
4980 ac_cv_prog_AR="${ac_tool_prefix}ar"
4981 break
4982 fi
4983 done
4984 IFS="$ac_save_ifs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004985fi
4986fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004987AR="$ac_cv_prog_AR"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004988if test -n "$AR"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004989 echo "$ac_t""$AR" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004990else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004991 echo "$ac_t""no" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004992fi
4993
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004994
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004995if test -z "$ac_cv_prog_AR"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004996if test -n "$ac_tool_prefix"; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004997 # Extract the first word of "ar", so it can be a program name with args.
4998set dummy ar; ac_word=$2
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004999echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05005000echo "configure:5001: checking for $ac_word" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005001if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
5002 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005003else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005004 if test -n "$AR"; then
5005 ac_cv_prog_AR="$AR" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005006else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005007 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5008 ac_dummy="$PATH"
5009 for ac_dir in $ac_dummy; do
5010 test -z "$ac_dir" && ac_dir=.
5011 if test -f $ac_dir/$ac_word; then
5012 ac_cv_prog_AR="ar"
5013 break
5014 fi
5015 done
5016 IFS="$ac_save_ifs"
5017 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005018fi
5019fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005020AR="$ac_cv_prog_AR"
5021if test -n "$AR"; then
5022 echo "$ac_t""$AR" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005023else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005024 echo "$ac_t""no" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005025fi
5026
5027else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005028 AR="ar"
5029fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005030fi
5031
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005032# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005033set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005034echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05005035echo "configure:5036: checking for $ac_word" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005036if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
5037 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005038else
5039 if test -n "$RANLIB"; then
5040 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5041else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005042 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5043 ac_dummy="$PATH"
5044 for ac_dir in $ac_dummy; do
5045 test -z "$ac_dir" && ac_dir=.
5046 if test -f $ac_dir/$ac_word; then
5047 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5048 break
5049 fi
5050 done
5051 IFS="$ac_save_ifs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005052fi
5053fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005054RANLIB="$ac_cv_prog_RANLIB"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005055if test -n "$RANLIB"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005056 echo "$ac_t""$RANLIB" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005057else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005058 echo "$ac_t""no" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005059fi
5060
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005061
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005062if test -z "$ac_cv_prog_RANLIB"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005063if test -n "$ac_tool_prefix"; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005064 # Extract the first word of "ranlib", so it can be a program name with args.
5065set dummy ranlib; ac_word=$2
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005066echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05005067echo "configure:5068: checking for $ac_word" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005068if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
5069 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005070else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005071 if test -n "$RANLIB"; then
5072 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005073else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005074 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5075 ac_dummy="$PATH"
5076 for ac_dir in $ac_dummy; do
5077 test -z "$ac_dir" && ac_dir=.
5078 if test -f $ac_dir/$ac_word; then
5079 ac_cv_prog_RANLIB="ranlib"
5080 break
5081 fi
5082 done
5083 IFS="$ac_save_ifs"
5084 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005085fi
5086fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005087RANLIB="$ac_cv_prog_RANLIB"
5088if test -n "$RANLIB"; then
5089 echo "$ac_t""$RANLIB" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005090else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005091 echo "$ac_t""no" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005092fi
5093
5094else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005095 RANLIB=":"
5096fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005097fi
5098
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005099# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005100set dummy ${ac_tool_prefix}strip; ac_word=$2
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005101echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05005102echo "configure:5103: checking for $ac_word" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005103if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
5104 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005105else
5106 if test -n "$STRIP"; then
5107 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5108else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005109 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5110 ac_dummy="$PATH"
5111 for ac_dir in $ac_dummy; do
5112 test -z "$ac_dir" && ac_dir=.
5113 if test -f $ac_dir/$ac_word; then
5114 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5115 break
5116 fi
5117 done
5118 IFS="$ac_save_ifs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005119fi
5120fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005121STRIP="$ac_cv_prog_STRIP"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005122if test -n "$STRIP"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005123 echo "$ac_t""$STRIP" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005124else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005125 echo "$ac_t""no" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005126fi
5127
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005128
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005129if test -z "$ac_cv_prog_STRIP"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005130if test -n "$ac_tool_prefix"; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005131 # Extract the first word of "strip", so it can be a program name with args.
5132set dummy strip; ac_word=$2
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005133echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05005134echo "configure:5135: checking for $ac_word" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005135if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
5136 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005137else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005138 if test -n "$STRIP"; then
5139 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005140else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005141 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5142 ac_dummy="$PATH"
5143 for ac_dir in $ac_dummy; do
5144 test -z "$ac_dir" && ac_dir=.
5145 if test -f $ac_dir/$ac_word; then
5146 ac_cv_prog_STRIP="strip"
5147 break
5148 fi
5149 done
5150 IFS="$ac_save_ifs"
5151 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005152fi
5153fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005154STRIP="$ac_cv_prog_STRIP"
5155if test -n "$STRIP"; then
5156 echo "$ac_t""$STRIP" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005157else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005158 echo "$ac_t""no" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005159fi
5160
5161else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005162 STRIP=":"
5163fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005164fi
5165
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005166# Find a good install program. We prefer a C program (faster),
5167# so one script is as good as another. But avoid the broken or
5168# incompatible versions:
5169# SysV /etc/install, /usr/sbin/install
5170# SunOS /usr/etc/install
5171# IRIX /sbin/install
5172# AIX /bin/install
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00005173# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005174# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5175# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5176# ./install, which can be erroneously created by make from ./install.sh.
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005177echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05005178echo "configure:5179: checking for a BSD compatible install" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005179if test -z "$INSTALL"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005180if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
5181 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005182else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005183 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005184 for ac_dir in $PATH; do
5185 # Account for people who put trailing slashes in PATH elements.
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005186 case "$ac_dir/" in
5187 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005188 *)
5189 # OSF1 and SCO ODT 3.0 have their own names for install.
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00005190 # Don't use installbsd from OSF since it installs stuff as root
5191 # by default.
5192 for ac_prog in ginstall scoinst install; do
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005193 if test -f $ac_dir/$ac_prog; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005194 if test $ac_prog = install &&
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005195 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005196 # AIX install. It has an incompatible calling convention.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005197 :
5198 else
5199 ac_cv_path_install="$ac_dir/$ac_prog -c"
5200 break 2
5201 fi
5202 fi
5203 done
5204 ;;
5205 esac
5206 done
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005207 IFS="$ac_save_IFS"
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005208
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005209fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005210 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005211 INSTALL="$ac_cv_path_install"
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005212 else
5213 # As a last resort, use the slow shell script. We don't cache a
5214 # path for INSTALL within a source directory, because that will
5215 # break other packages using the cache if that directory is
5216 # removed, or if the path is relative.
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005217 INSTALL="$ac_install_sh"
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005218 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005219fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005220echo "$ac_t""$INSTALL" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005221
5222# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5223# It thinks the first close brace ends the variable substitution.
5224test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5225
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005226test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00005227
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005228test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5229
Theodore Ts'o6c133521999-07-03 20:37:03 +00005230# See if we need a separate native compiler.
5231if test $cross_compiling = no; then
5232 BUILD_CC="$CC"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005233
Theodore Ts'o6c133521999-07-03 20:37:03 +00005234else
5235 for ac_prog in gcc cc
5236do
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005237# Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'o6c133521999-07-03 20:37:03 +00005238set dummy $ac_prog; ac_word=$2
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005239echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05005240echo "configure:5241: checking for $ac_word" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005241if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
5242 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o6c133521999-07-03 20:37:03 +00005243else
5244 if test -n "$BUILD_CC"; then
5245 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
5246else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005247 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5248 ac_dummy="$PATH"
5249 for ac_dir in $ac_dummy; do
5250 test -z "$ac_dir" && ac_dir=.
5251 if test -f $ac_dir/$ac_word; then
5252 ac_cv_prog_BUILD_CC="$ac_prog"
5253 break
5254 fi
5255 done
5256 IFS="$ac_save_ifs"
Theodore Ts'o6c133521999-07-03 20:37:03 +00005257fi
5258fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005259BUILD_CC="$ac_cv_prog_BUILD_CC"
Theodore Ts'o6c133521999-07-03 20:37:03 +00005260if test -n "$BUILD_CC"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005261 echo "$ac_t""$BUILD_CC" 1>&6
Theodore Ts'o6c133521999-07-03 20:37:03 +00005262else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005263 echo "$ac_t""no" 1>&6
Theodore Ts'o6c133521999-07-03 20:37:03 +00005264fi
5265
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005266test -n "$BUILD_CC" && break
Theodore Ts'o6c133521999-07-03 20:37:03 +00005267done
5268
5269fi
Theodore Ts'o9845cf52004-09-17 19:07:03 -04005270for ac_hdr in stdlib.h unistd.h stdarg.h stdint.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/disk.h sys/disklabel.h sys/ioctl.h sys/mkdev.h sys/mount.h sys/queue.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 net/if_dl.h netinet/in.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005271do
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005272ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5273echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05005274echo "configure:5275: checking for $ac_hdr" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005275if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5276 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005277else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005278 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05005279#line 5280 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005280#include "confdefs.h"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005281#include <$ac_hdr>
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005282EOF
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005283ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05005284{ (eval echo configure:5285: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005285ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5286if test -z "$ac_err"; then
5287 rm -rf conftest*
5288 eval "ac_cv_header_$ac_safe=yes"
5289else
5290 echo "$ac_err" >&5
5291 echo "configure: failed program was:" >&5
5292 cat conftest.$ac_ext >&5
5293 rm -rf conftest*
5294 eval "ac_cv_header_$ac_safe=no"
5295fi
5296rm -f conftest*
5297fi
5298if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5299 echo "$ac_t""yes" 1>&6
5300 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5301 cat >> confdefs.h <<EOF
5302#define $ac_tr_hdr 1
5303EOF
5304
5305else
5306 echo "$ac_t""no" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005307fi
5308done
5309
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005310echo $ac_n "checking for vprintf""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05005311echo "configure:5312: checking for vprintf" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005312if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
5313 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005314else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005315 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05005316#line 5317 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005317#include "confdefs.h"
5318/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005319 which can conflict with char vprintf(); below. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005320#include <assert.h>
5321/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005322/* We use char because int might match the return type of a gcc2
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005323 builtin and then its argument prototype would still apply. */
5324char vprintf();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005325
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005326int main() {
5327
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005328/* The GNU C library defines this for functions which it implements
5329 to always fail with ENOSYS. Some functions are actually named
5330 something starting with __ and the normal name is an alias. */
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005331#if defined (__stub_vprintf) || defined (__stub___vprintf)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005332choke me
5333#else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005334vprintf();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005335#endif
5336
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005337; return 0; }
5338EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05005339if { (eval echo configure:5340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005340 rm -rf conftest*
5341 eval "ac_cv_func_vprintf=yes"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005342else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005343 echo "configure: failed program was:" >&5
5344 cat conftest.$ac_ext >&5
5345 rm -rf conftest*
5346 eval "ac_cv_func_vprintf=no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005347fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005348rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005349fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005350
5351if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
5352 echo "$ac_t""yes" 1>&6
5353 cat >> confdefs.h <<\EOF
5354#define HAVE_VPRINTF 1
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005355EOF
5356
5357else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005358 echo "$ac_t""no" 1>&6
5359fi
5360
5361if test "$ac_cv_func_vprintf" != yes; then
5362echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05005363echo "configure:5364: checking for _doprnt" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005364if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
5365 echo $ac_n "(cached) $ac_c" 1>&6
5366else
5367 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05005368#line 5369 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005369#include "confdefs.h"
5370/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005371 which can conflict with char _doprnt(); below. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005372#include <assert.h>
5373/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005374/* We use char because int might match the return type of a gcc2
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005375 builtin and then its argument prototype would still apply. */
5376char _doprnt();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005377
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005378int main() {
5379
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005380/* The GNU C library defines this for functions which it implements
5381 to always fail with ENOSYS. Some functions are actually named
5382 something starting with __ and the normal name is an alias. */
5383#if defined (__stub__doprnt) || defined (__stub____doprnt)
5384choke me
5385#else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005386_doprnt();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005387#endif
5388
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005389; return 0; }
5390EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05005391if { (eval echo configure:5392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005392 rm -rf conftest*
5393 eval "ac_cv_func__doprnt=yes"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005394else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005395 echo "configure: failed program was:" >&5
5396 cat conftest.$ac_ext >&5
5397 rm -rf conftest*
5398 eval "ac_cv_func__doprnt=no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005399fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005400rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005401fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005402
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005403if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
5404 echo "$ac_t""yes" 1>&6
5405 cat >> confdefs.h <<\EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005406#define HAVE_DOPRNT 1
5407EOF
5408
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00005409else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005410 echo "$ac_t""no" 1>&6
5411fi
5412
5413fi
5414
5415echo $ac_n "checking whether d_reclen declared in dirent""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05005416echo "configure:5417: checking whether d_reclen declared in dirent" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005417if eval "test \"`echo '$''{'e2fsprogs_cv_have_d_reclen_dirent'+set}'`\" = set"; then
5418 echo $ac_n "(cached) $ac_c" 1>&6
5419else
5420 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05005421#line 5422 "configure"
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00005422#include "confdefs.h"
Theodore Ts'offf45482003-04-13 00:44:19 -04005423#include <dirent.h>
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005424int main() {
5425struct dirent de; de.d_reclen = 0;
5426; return 0; }
5427EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05005428if { (eval echo configure:5429: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005429 rm -rf conftest*
Theodore Ts'offf45482003-04-13 00:44:19 -04005430 e2fsprogs_cv_have_d_reclen_dirent=yes
5431else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005432 echo "configure: failed program was:" >&5
5433 cat conftest.$ac_ext >&5
5434 rm -rf conftest*
5435 e2fsprogs_cv_have_d_reclen_dirent=no
Theodore Ts'offf45482003-04-13 00:44:19 -04005436fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005437rm -f conftest*
Theodore Ts'offf45482003-04-13 00:44:19 -04005438fi
5439
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005440echo "$ac_t""$e2fsprogs_cv_have_d_reclen_dirent" 1>&6
Theodore Ts'offf45482003-04-13 00:44:19 -04005441if test "$e2fsprogs_cv_have_d_reclen_dirent" = yes; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005442 cat >> confdefs.h <<\EOF
Theodore Ts'offf45482003-04-13 00:44:19 -04005443#define HAVE_RECLEN_DIRENT 1
5444EOF
5445
5446fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005447echo $ac_n "checking whether ssize_t declared""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05005448echo "configure:5449: checking whether ssize_t declared" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005449if eval "test \"`echo '$''{'e2fsprogs_cv_have_ssize_t'+set}'`\" = set"; then
5450 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'offf45482003-04-13 00:44:19 -04005451else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005452 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05005453#line 5454 "configure"
Theodore Ts'offf45482003-04-13 00:44:19 -04005454#include "confdefs.h"
5455#include <sys/types.h>
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005456int main() {
5457ssize_t a = 0;
5458; return 0; }
5459EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05005460if { (eval echo configure:5461: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005461 rm -rf conftest*
Theodore Ts'offf45482003-04-13 00:44:19 -04005462 e2fsprogs_cv_have_ssize_t=yes
5463else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005464 echo "configure: failed program was:" >&5
5465 cat conftest.$ac_ext >&5
5466 rm -rf conftest*
5467 e2fsprogs_cv_have_ssize_t=no
Theodore Ts'offf45482003-04-13 00:44:19 -04005468fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005469rm -f conftest*
Theodore Ts'offf45482003-04-13 00:44:19 -04005470fi
5471
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005472echo "$ac_t""$e2fsprogs_cv_have_ssize_t" 1>&6
Theodore Ts'offf45482003-04-13 00:44:19 -04005473if test "$e2fsprogs_cv_have_ssize_t" = yes; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005474 cat >> confdefs.h <<\EOF
Theodore Ts'offf45482003-04-13 00:44:19 -04005475#define HAVE_TYPE_SSIZE_T 1
5476EOF
5477
5478fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005479echo $ac_n "checking whether llseek declared in unistd.h""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05005480echo "configure:5481: checking whether llseek declared in unistd.h" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005481if eval "test \"`echo '$''{'e2fsprogs_cv_have_llseek_prototype'+set}'`\" = set"; then
5482 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'offf45482003-04-13 00:44:19 -04005483else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005484 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05005485#line 5486 "configure"
Theodore Ts'offf45482003-04-13 00:44:19 -04005486#include "confdefs.h"
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00005487#include <unistd.h>
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005488int main() {
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00005489extern int llseek(int);
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005490; return 0; }
5491EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05005492if { (eval echo configure:5493: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005493 rm -rf conftest*
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00005494 e2fsprogs_cv_have_llseek_prototype=no
5495else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005496 echo "configure: failed program was:" >&5
5497 cat conftest.$ac_ext >&5
5498 rm -rf conftest*
5499 e2fsprogs_cv_have_llseek_prototype=yes
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00005500fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005501rm -f conftest*
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00005502fi
5503
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005504echo "$ac_t""$e2fsprogs_cv_have_llseek_prototype" 1>&6
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00005505if test "$e2fsprogs_cv_have_llseek_prototype" = yes; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005506 cat >> confdefs.h <<\EOF
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00005507#define HAVE_LLSEEK_PROTOTYPE 1
5508EOF
5509
5510fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005511echo $ac_n "checking whether lseek64 declared in unistd.h""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05005512echo "configure:5513: checking whether lseek64 declared in unistd.h" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005513if eval "test \"`echo '$''{'e2fsprogs_cv_have_lseek64_prototype'+set}'`\" = set"; then
5514 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o6928adc2000-05-25 23:28:50 +00005515else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005516 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05005517#line 5518 "configure"
Theodore Ts'o6928adc2000-05-25 23:28:50 +00005518#include "confdefs.h"
5519#define _LARGEFILE_SOURCE
5520#define _LARGEFILE64_SOURCE
5521#include <unistd.h>
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005522int main() {
Theodore Ts'o6928adc2000-05-25 23:28:50 +00005523extern int lseek64(int);
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005524; return 0; }
5525EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05005526if { (eval echo configure:5527: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005527 rm -rf conftest*
Theodore Ts'o6928adc2000-05-25 23:28:50 +00005528 e2fsprogs_cv_have_lseek64_prototype=no
5529else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005530 echo "configure: failed program was:" >&5
5531 cat conftest.$ac_ext >&5
5532 rm -rf conftest*
5533 e2fsprogs_cv_have_lseek64_prototype=yes
Theodore Ts'o6928adc2000-05-25 23:28:50 +00005534fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005535rm -f conftest*
Theodore Ts'o6928adc2000-05-25 23:28:50 +00005536fi
5537
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005538echo "$ac_t""$e2fsprogs_cv_have_lseek64_prototype" 1>&6
Theodore Ts'o6928adc2000-05-25 23:28:50 +00005539if test "$e2fsprogs_cv_have_lseek64_prototype" = yes; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005540 cat >> confdefs.h <<\EOF
Theodore Ts'o6928adc2000-05-25 23:28:50 +00005541#define HAVE_LSEEK64_PROTOTYPE 1
5542EOF
5543
5544fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005545if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005546 # if cross-compiling, with no cached values, just assume something common.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005547 ac_cv_sizeof_short=2
5548 ac_cv_sizeof_int=4
5549 ac_cv_sizeof_long=4
Theodore Ts'o6c133521999-07-03 20:37:03 +00005550 ac_cv_sizeof_long_long=8
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005551 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 +00005552fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005553echo $ac_n "checking size of short""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05005554echo "configure:5555: checking size of short" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005555if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
5556 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005557else
5558 if test "$cross_compiling" = yes; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005559 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005560else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005561 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05005562#line 5563 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005563#include "confdefs.h"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005564#include <stdio.h>
Theodore Ts'ofde3e1b2004-02-23 23:10:41 -05005565#include <sys/types.h>
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005566main()
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005567{
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005568 FILE *f=fopen("conftestval", "w");
5569 if (!f) exit(1);
5570 fprintf(f, "%d\n", sizeof(short));
5571 exit(0);
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005572}
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005573EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05005574if { (eval echo configure:5575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005575then
5576 ac_cv_sizeof_short=`cat conftestval`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005577else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005578 echo "configure: failed program was:" >&5
5579 cat conftest.$ac_ext >&5
5580 rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005581 ac_cv_sizeof_short=0
5582fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005583rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005584fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005585
5586fi
5587echo "$ac_t""$ac_cv_sizeof_short" 1>&6
5588cat >> confdefs.h <<EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005589#define SIZEOF_SHORT $ac_cv_sizeof_short
5590EOF
5591
5592
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005593echo $ac_n "checking size of int""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05005594echo "configure:5595: checking size of int" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005595if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
5596 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005597else
5598 if test "$cross_compiling" = yes; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005599 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005600else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005601 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05005602#line 5603 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005603#include "confdefs.h"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005604#include <stdio.h>
Theodore Ts'ofde3e1b2004-02-23 23:10:41 -05005605#include <sys/types.h>
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005606main()
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005607{
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005608 FILE *f=fopen("conftestval", "w");
5609 if (!f) exit(1);
5610 fprintf(f, "%d\n", sizeof(int));
5611 exit(0);
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005612}
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005613EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05005614if { (eval echo configure:5615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005615then
5616 ac_cv_sizeof_int=`cat conftestval`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005617else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005618 echo "configure: failed program was:" >&5
5619 cat conftest.$ac_ext >&5
5620 rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005621 ac_cv_sizeof_int=0
5622fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005623rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005624fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005625
5626fi
5627echo "$ac_t""$ac_cv_sizeof_int" 1>&6
5628cat >> confdefs.h <<EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005629#define SIZEOF_INT $ac_cv_sizeof_int
5630EOF
5631
5632
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005633echo $ac_n "checking size of long""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05005634echo "configure:5635: checking size of long" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005635if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
5636 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005637else
5638 if test "$cross_compiling" = yes; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005639 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005640else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005641 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05005642#line 5643 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005643#include "confdefs.h"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005644#include <stdio.h>
Theodore Ts'ofde3e1b2004-02-23 23:10:41 -05005645#include <sys/types.h>
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005646main()
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005647{
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005648 FILE *f=fopen("conftestval", "w");
5649 if (!f) exit(1);
5650 fprintf(f, "%d\n", sizeof(long));
5651 exit(0);
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005652}
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005653EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05005654if { (eval echo configure:5655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005655then
5656 ac_cv_sizeof_long=`cat conftestval`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005657else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005658 echo "configure: failed program was:" >&5
5659 cat conftest.$ac_ext >&5
5660 rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005661 ac_cv_sizeof_long=0
5662fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005663rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005664fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005665
5666fi
5667echo "$ac_t""$ac_cv_sizeof_long" 1>&6
5668cat >> confdefs.h <<EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005669#define SIZEOF_LONG $ac_cv_sizeof_long
5670EOF
5671
5672
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005673echo $ac_n "checking size of long long""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05005674echo "configure:5675: checking size of long long" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005675if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
5676 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005677else
5678 if test "$cross_compiling" = yes; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005679 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005680else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005681 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05005682#line 5683 "configure"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005683#include "confdefs.h"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005684#include <stdio.h>
Theodore Ts'ofde3e1b2004-02-23 23:10:41 -05005685#include <sys/types.h>
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005686main()
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005687{
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005688 FILE *f=fopen("conftestval", "w");
5689 if (!f) exit(1);
5690 fprintf(f, "%d\n", sizeof(long long));
5691 exit(0);
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005692}
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005693EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05005694if { (eval echo configure:5695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005695then
5696 ac_cv_sizeof_long_long=`cat conftestval`
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005697else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005698 echo "configure: failed program was:" >&5
5699 cat conftest.$ac_ext >&5
5700 rm -fr conftest*
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005701 ac_cv_sizeof_long_long=0
5702fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005703rm -fr conftest*
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005704fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005705
5706fi
5707echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
5708cat >> confdefs.h <<EOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005709#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5710EOF
5711
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005712
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005713SIZEOF_SHORT=$ac_cv_sizeof_short
5714SIZEOF_INT=$ac_cv_sizeof_int
5715SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005716SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
5717
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005718
5719
5720
5721echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05005722echo "configure:5723: checking whether byte ordering is bigendian" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005723if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
5724 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00005725else
5726 ac_cv_c_bigendian=unknown
5727# See if sys/param.h defines the BYTE_ORDER macro.
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005728cat > conftest.$ac_ext <<EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05005729#line 5730 "configure"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00005730#include "confdefs.h"
5731#include <sys/types.h>
5732#include <sys/param.h>
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005733int main() {
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00005734
5735#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
5736 bogus endian macros
5737#endif
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005738; return 0; }
5739EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05005740if { (eval echo configure:5741: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005741 rm -rf conftest*
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00005742 # It does; now see whether it defined to BIG_ENDIAN or not.
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005743cat > conftest.$ac_ext <<EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05005744#line 5745 "configure"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00005745#include "confdefs.h"
5746#include <sys/types.h>
5747#include <sys/param.h>
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005748int main() {
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00005749
5750#if BYTE_ORDER != BIG_ENDIAN
5751 not big endian
5752#endif
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005753; return 0; }
5754EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05005755if { (eval echo configure:5756: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005756 rm -rf conftest*
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00005757 ac_cv_c_bigendian=yes
5758else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005759 echo "configure: failed program was:" >&5
5760 cat conftest.$ac_ext >&5
5761 rm -rf conftest*
5762 ac_cv_c_bigendian=no
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00005763fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005764rm -f conftest*
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00005765else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005766 echo "configure: failed program was:" >&5
5767 cat conftest.$ac_ext >&5
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00005768fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005769rm -f conftest*
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00005770if test $ac_cv_c_bigendian = unknown; then
5771if test "$cross_compiling" = yes; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005772 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00005773else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005774 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05005775#line 5776 "configure"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00005776#include "confdefs.h"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005777main () {
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00005778 /* Are we little or big endian? From Harbison&Steele. */
5779 union
5780 {
5781 long l;
5782 char c[sizeof (long)];
5783 } u;
5784 u.l = 1;
5785 exit (u.c[sizeof (long) - 1] == 1);
5786}
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005787EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05005788if { (eval echo configure:5789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005789then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00005790 ac_cv_c_bigendian=no
5791else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005792 echo "configure: failed program was:" >&5
5793 cat conftest.$ac_ext >&5
5794 rm -fr conftest*
5795 ac_cv_c_bigendian=yes
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00005796fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005797rm -fr conftest*
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00005798fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005799
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005800fi
5801fi
5802
5803echo "$ac_t""$ac_cv_c_bigendian" 1>&6
5804if test $ac_cv_c_bigendian = yes; then
5805 cat >> confdefs.h <<\EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00005806#define WORDS_BIGENDIAN 1
5807EOF
5808
5809fi
5810
Theodore Ts'o0c193f82003-08-01 14:26:23 -04005811for ac_hdr in inttypes.h
5812do
5813ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5814echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05005815echo "configure:5816: checking for $ac_hdr" >&5
Theodore Ts'o0c193f82003-08-01 14:26:23 -04005816if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5817 echo $ac_n "(cached) $ac_c" 1>&6
5818else
5819 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05005820#line 5821 "configure"
Theodore Ts'o0c193f82003-08-01 14:26:23 -04005821#include "confdefs.h"
5822#include <$ac_hdr>
5823EOF
5824ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05005825{ (eval echo configure:5826: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'o0c193f82003-08-01 14:26:23 -04005826ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5827if test -z "$ac_err"; then
5828 rm -rf conftest*
5829 eval "ac_cv_header_$ac_safe=yes"
5830else
5831 echo "$ac_err" >&5
5832 echo "configure: failed program was:" >&5
5833 cat conftest.$ac_ext >&5
5834 rm -rf conftest*
5835 eval "ac_cv_header_$ac_safe=no"
5836fi
5837rm -f conftest*
5838fi
5839if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5840 echo "$ac_t""yes" 1>&6
5841 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5842 cat >> confdefs.h <<EOF
5843#define $ac_tr_hdr 1
5844EOF
5845
5846else
5847 echo "$ac_t""no" 1>&6
5848fi
5849done
5850
5851echo $ac_n "checking for intptr_t""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05005852echo "configure:5853: checking for intptr_t" >&5
Theodore Ts'o0c193f82003-08-01 14:26:23 -04005853if eval "test \"`echo '$''{'ac_cv_type_intptr_t'+set}'`\" = set"; then
5854 echo $ac_n "(cached) $ac_c" 1>&6
5855else
5856 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05005857#line 5858 "configure"
Theodore Ts'o0c193f82003-08-01 14:26:23 -04005858#include "confdefs.h"
5859#include <sys/types.h>
5860#if STDC_HEADERS
5861#include <stdlib.h>
5862#include <stddef.h>
5863#endif
5864EOF
5865if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5866 egrep "(^|[^a-zA-Z_0-9])intptr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5867 rm -rf conftest*
5868 ac_cv_type_intptr_t=yes
5869else
5870 rm -rf conftest*
5871 ac_cv_type_intptr_t=no
5872fi
5873rm -f conftest*
5874
5875fi
5876echo "$ac_t""$ac_cv_type_intptr_t" 1>&6
5877if test $ac_cv_type_intptr_t = no; then
5878 cat >> confdefs.h <<\EOF
5879#define intptr_t long
5880EOF
5881
5882fi
5883
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005884echo $ac_n "checking whether struct stat has a st_flags field""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05005885echo "configure:5886: checking whether struct stat has a st_flags field" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005886if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags'+set}'`\" = set"; then
5887 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005888else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005889 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05005890#line 5891 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005891#include "confdefs.h"
5892#include <sys/stat.h>
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005893int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005894struct stat stat; stat.st_flags = 0;
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005895; return 0; }
5896EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05005897if { (eval echo configure:5898: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005898 rm -rf conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005899 e2fsprogs_cv_struct_st_flags=yes
5900else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005901 echo "configure: failed program was:" >&5
5902 cat conftest.$ac_ext >&5
5903 rm -rf conftest*
5904 e2fsprogs_cv_struct_st_flags=no
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005905fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005906rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005907fi
5908
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005909echo "$ac_t""$e2fsprogs_cv_struct_st_flags" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005910if test "$e2fsprogs_cv_struct_st_flags" = yes; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005911 echo $ac_n "checking whether st_flags field is useful""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05005912echo "configure:5913: checking whether st_flags field is useful" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005913 if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags_immut'+set}'`\" = set"; then
5914 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00005915else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005916 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05005917#line 5918 "configure"
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00005918#include "confdefs.h"
5919#include <sys/stat.h>
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005920int main() {
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00005921struct stat stat; stat.st_flags |= UF_IMMUTABLE;
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005922; return 0; }
5923EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05005924if { (eval echo configure:5925: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005925 rm -rf conftest*
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00005926 e2fsprogs_cv_struct_st_flags_immut=yes
5927else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005928 echo "configure: failed program was:" >&5
5929 cat conftest.$ac_ext >&5
5930 rm -rf conftest*
5931 e2fsprogs_cv_struct_st_flags_immut=no
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00005932fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005933rm -f conftest*
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00005934fi
5935
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005936 echo "$ac_t""$e2fsprogs_cv_struct_st_flags_immut" 1>&6
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00005937 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005938 cat >> confdefs.h <<\EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005939#define HAVE_STAT_FLAGS 1
5940EOF
5941
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00005942 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005943fi
Theodore Ts'o84ea6e72004-03-19 19:29:17 -05005944echo $ac_n "checking whether struct sockaddr contains sa_len""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05005945echo "configure:5946: checking whether struct sockaddr contains sa_len" >&5
Theodore Ts'o84ea6e72004-03-19 19:29:17 -05005946if eval "test \"`echo '$''{'e2fsprogs_cv_sockaddr_sa_len'+set}'`\" = set"; then
5947 echo $ac_n "(cached) $ac_c" 1>&6
5948else
5949 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05005950#line 5951 "configure"
Theodore Ts'o84ea6e72004-03-19 19:29:17 -05005951#include "confdefs.h"
5952#include <sys/types.h>
5953#include <sys/socket.h>
5954
5955int main() {
5956struct sockaddr sa;
5957sa.sa_len;
5958; return 0; }
5959EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05005960if { (eval echo configure:5961: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o84ea6e72004-03-19 19:29:17 -05005961 rm -rf conftest*
5962 e2fsprogs_cv_sockaddr_sa_len=yes
5963else
5964 echo "configure: failed program was:" >&5
5965 cat conftest.$ac_ext >&5
5966 rm -rf conftest*
5967 e2fsprogs_cv_sockaddr_sa_len=no
5968fi
5969rm -f conftest*
5970fi
5971
5972echo "$ac_t""$e2fsprogs_cv_sockaddr_sa_len" 1>&6
5973if test $e2fsprogs_cv_sockaddr_sa_len = yes; then
5974 cat >> confdefs.h <<EOF
5975#define HAVE_SA_LEN 1
5976EOF
5977
5978fi
Theodore Ts'o1c29b092003-07-12 16:01:45 -04005979for ac_func in chflags getrusage llseek lseek64 open64 getmntinfo strtoull strcasecmp srandom fchown mallinfo fdatasync strnlen strptime sysconf pathconf posix_memalign memalign valloc
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005980do
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005981echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05005982echo "configure:5983: checking for $ac_func" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005983if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5984 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005985else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005986 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05005987#line 5988 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005988#include "confdefs.h"
5989/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005990 which can conflict with char $ac_func(); below. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005991#include <assert.h>
5992/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005993/* We use char because int might match the return type of a gcc2
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005994 builtin and then its argument prototype would still apply. */
5995char $ac_func();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005996
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005997int main() {
5998
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005999/* The GNU C library defines this for functions which it implements
6000 to always fail with ENOSYS. Some functions are actually named
6001 something starting with __ and the normal name is an alias. */
6002#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6003choke me
6004#else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006005$ac_func();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006006#endif
6007
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006008; return 0; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006009EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05006010if { (eval echo configure:6011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006011 rm -rf conftest*
6012 eval "ac_cv_func_$ac_func=yes"
6013else
6014 echo "configure: failed program was:" >&5
6015 cat conftest.$ac_ext >&5
6016 rm -rf conftest*
6017 eval "ac_cv_func_$ac_func=no"
6018fi
6019rm -f conftest*
6020fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00006021
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006022if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6023 echo "$ac_t""yes" 1>&6
6024 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6025 cat >> confdefs.h <<EOF
6026#define $ac_tr_func 1
6027EOF
6028
6029else
6030 echo "$ac_t""no" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006031fi
6032done
6033
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00006034SOCKET_LIB=''
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006035echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05006036echo "configure:6037: checking for socket in -lsocket" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006037ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
6038if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6039 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00006040else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006041 ac_save_LIBS="$LIBS"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00006042LIBS="-lsocket $LIBS"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006043cat > conftest.$ac_ext <<EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05006044#line 6045 "configure"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00006045#include "confdefs.h"
Theodore Ts'o21c84b71997-04-29 16:15:03 +00006046/* Override any gcc2 internal prototype to avoid an error. */
6047/* We use char because int might match the return type of a gcc2
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006048 builtin and then its argument prototype would still apply. */
6049char socket();
6050
6051int main() {
6052socket()
6053; return 0; }
6054EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05006055if { (eval echo configure:6056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006056 rm -rf conftest*
6057 eval "ac_cv_lib_$ac_lib_var=yes"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00006058else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006059 echo "configure: failed program was:" >&5
6060 cat conftest.$ac_ext >&5
6061 rm -rf conftest*
6062 eval "ac_cv_lib_$ac_lib_var=no"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00006063fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006064rm -f conftest*
6065LIBS="$ac_save_LIBS"
6066
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00006067fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006068if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6069 echo "$ac_t""yes" 1>&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00006070 SOCKET_LIB=-lsocket
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006071else
6072 echo "$ac_t""no" 1>&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00006073fi
6074
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006075
Theodore Ts'obbac86b2003-03-16 06:27:22 -05006076DLOPEN_LIB=''
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006077echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05006078echo "configure:6079: checking for dlopen in -ldl" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006079ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
6080if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6081 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'obbac86b2003-03-16 06:27:22 -05006082else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006083 ac_save_LIBS="$LIBS"
Theodore Ts'obbac86b2003-03-16 06:27:22 -05006084LIBS="-ldl $LIBS"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006085cat > conftest.$ac_ext <<EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05006086#line 6087 "configure"
Theodore Ts'obbac86b2003-03-16 06:27:22 -05006087#include "confdefs.h"
6088/* Override any gcc2 internal prototype to avoid an error. */
6089/* We use char because int might match the return type of a gcc2
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006090 builtin and then its argument prototype would still apply. */
6091char dlopen();
6092
6093int main() {
6094dlopen()
6095; return 0; }
6096EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05006097if { (eval echo configure:6098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006098 rm -rf conftest*
6099 eval "ac_cv_lib_$ac_lib_var=yes"
Theodore Ts'obbac86b2003-03-16 06:27:22 -05006100else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006101 echo "configure: failed program was:" >&5
6102 cat conftest.$ac_ext >&5
6103 rm -rf conftest*
6104 eval "ac_cv_lib_$ac_lib_var=no"
Theodore Ts'obbac86b2003-03-16 06:27:22 -05006105fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006106rm -f conftest*
6107LIBS="$ac_save_LIBS"
6108
Theodore Ts'obbac86b2003-03-16 06:27:22 -05006109fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006110if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6111 echo "$ac_t""yes" 1>&6
Theodore Ts'obbac86b2003-03-16 06:27:22 -05006112 DLOPEN_LIB=-ldl
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006113cat >> confdefs.h <<\EOF
Theodore Ts'obbac86b2003-03-16 06:27:22 -05006114#define HAVE_DLOPEN 1
6115EOF
6116
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006117else
6118 echo "$ac_t""no" 1>&6
Theodore Ts'obbac86b2003-03-16 06:27:22 -05006119fi
6120
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006121
6122echo $ac_n "checking for optreset""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05006123echo "configure:6124: checking for optreset" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006124if eval "test \"`echo '$''{'ac_cv_have_optreset'+set}'`\" = set"; then
6125 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006126else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006127 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05006128#line 6129 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006129#include "confdefs.h"
6130#include <unistd.h>
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006131EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006132if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6133 egrep "optreset" >/dev/null 2>&1; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006134 rm -rf conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006135 ac_cv_have_optreset=yes
6136else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006137 rm -rf conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006138 ac_cv_have_optreset=no
6139fi
6140rm -f conftest*
6141
6142fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006143echo "$ac_t""$ac_cv_have_optreset" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006144if test $ac_cv_have_optreset = yes; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006145 cat >> confdefs.h <<\EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006146#define HAVE_OPTRESET 1
6147EOF
6148
6149fi
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +00006150case "$host_os" in
6151linux*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006152 cat >> confdefs.h <<\EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006153#define HAVE_EXT2_IOCTLS 1
6154EOF
6155
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +00006156 ;;
6157esac
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -04006158LINUX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -04006159CYGWIN_CMT="#"
6160UNIX_CMT=
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -04006161case "$host_os" in
6162linux*)
6163 LINUX_CMT=
6164 ;;
Theodore Ts'offf45482003-04-13 00:44:19 -04006165cygwin)
6166 CYGWIN_CMT=
6167 UNIX_CMT="#"
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04006168 EVMS_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -04006169 ;;
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04006170*)
6171 EVMS_CMT="#"
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -04006172esac
6173
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006174
6175
6176
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006177case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006178linux* | gnu* | k*bsd*-gnu)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00006179 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
6180 root_prefix="";
6181 echo "On $host_os systems, root_prefix defaults to ''"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00006182 fi
6183 ;;
6184esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00006185case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006186linux* | gnu* | k*bsd*-gnu)
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00006187 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00006188 prefix="/usr";
6189 echo "On $host_os systems, prefix defaults to /usr"
Theodore Ts'obff61a72002-05-21 22:21:38 -04006190 if test "$mandir" = '${prefix}/man' ; then
6191 echo "...and mandir defaults to /usr/share/man"
6192 mandir=/usr/share/man
6193 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006194 fi
6195;;
6196esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00006197if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +00006198 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00006199 root_prefix="$ac_default_prefix"
6200 else
6201 root_prefix="$prefix"
6202 fi
Theodore Ts'ob5ffead2002-05-11 19:17:00 -04006203 root_bindir=$bindir
6204 root_sbindir=$sbindir
6205 root_libdir=$libdir
6206 root_sysconfdir=$sysconfdir
6207else
6208 root_bindir='${root_prefix}/bin'
6209 root_sbindir='${root_prefix}/sbin'
6210 root_libdir='${root_prefix}/lib'
6211 root_sysconfdir='${root_prefix}/etc'
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00006212fi
6213
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006214
6215
6216
6217
6218echo $ac_n "checking whether linker accepts -static""... $ac_c" 1>&6
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05006219echo "configure:6220: checking whether linker accepts -static" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006220if eval "test \"`echo '$''{'ac_cv_e2fsprogs_use_static'+set}'`\" = set"; then
6221 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'oae851481997-04-29 18:13:24 +00006222else
6223 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006224cat > conftest.$ac_ext <<EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05006225#line 6226 "configure"
Theodore Ts'oae851481997-04-29 18:13:24 +00006226#include "confdefs.h"
6227#include <stdio.h>
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006228int main() {
Theodore Ts'oae851481997-04-29 18:13:24 +00006229fflush(stdout);
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006230; return 0; }
6231EOF
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05006232if { (eval echo configure:6233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006233 rm -rf conftest*
Theodore Ts'oae851481997-04-29 18:13:24 +00006234 ac_cv_e2fsprogs_use_static=yes
6235else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006236 echo "configure: failed program was:" >&5
6237 cat conftest.$ac_ext >&5
6238 rm -rf conftest*
6239 ac_cv_e2fsprogs_use_static=no
Theodore Ts'oae851481997-04-29 18:13:24 +00006240fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006241rm -f conftest*
Theodore Ts'oae851481997-04-29 18:13:24 +00006242LDFLAGS=$SAVE_LDFLAGS
6243fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006244
Theodore Ts'odefde781999-01-04 07:39:19 +00006245case "$host_os" in
6246solaris2.*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006247 ac_cv_e2fsprogs_use_static=no
Theodore Ts'odefde781999-01-04 07:39:19 +00006248;;
6249esac
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006250echo "$ac_t""$ac_cv_e2fsprogs_use_static" 1>&6
Theodore Ts'o74becf31997-04-26 14:37:06 +00006251LDFLAG_STATIC=
Theodore Ts'oae851481997-04-29 18:13:24 +00006252if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006253 LDFLAG_STATIC=-static
Theodore Ts'oae851481997-04-29 18:13:24 +00006254fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006255
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006256case "$host_os" in
6257darwin*)
6258 echo "Using Apple Darwin / GNU libintl workaround"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006259 cat >> confdefs.h <<\EOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006260#define _INTL_REDIRECT_MACROS 1
6261EOF
6262
6263 ;;
6264esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006265SS_DIR=`cd ${srcdir}/lib/ss; pwd`
6266ET_DIR=`cd ${srcdir}/lib/et; pwd`
6267
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006268
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006269if test "$cross_compiling" = yes ; then
6270 DO_TEST_SUITE=
6271else
6272 DO_TEST_SUITE=check
6273fi
6274
Theodore Ts'oc6f35b82003-05-17 16:29:27 -04006275INTL_FLAGS=
6276if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
6277 INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
6278fi
6279
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006280test -d lib || mkdir lib
6281test -d include || mkdir include
6282test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +00006283test -d include/asm || mkdir include/asm
Theodore Ts'obff0cc92003-03-23 01:37:53 -05006284for i in MCONFIG Makefile e2fsprogs.spec \
6285 util/Makefile util/subst.conf util/gen-tarball \
6286 lib/et/Makefile lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -05006287 lib/uuid/Makefile lib/uuid/uuid_types.h \
6288 lib/blkid/Makefile lib/blkid/blkid_types.h \
6289 lib/evms/Makefile misc/Makefile ext2ed/Makefile e2fsck/Makefile \
6290 debugfs/Makefile tests/Makefile tests/progs/Makefile \
6291 resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do
6292 if test -d `dirname ${srcdir}/$i` ; then
6293 outlist="$outlist $i"
6294 fi
6295done
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006296trap '' 1 2 15
6297cat > confcache <<\EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006298# This file is a shell script that caches the results of configure
6299# tests run on this system so they can be shared between configure
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006300# scripts and configure runs. It is not useful on other systems.
6301# If it contains results you don't want to keep, you may remove or edit it.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006302#
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006303# By default, configure uses ./config.cache as the cache file,
6304# creating it if it does not exist already. You can give configure
6305# the --cache-file=FILE option to use a different cache file; that is
6306# what configure does when it calls configure scripts in
6307# subdirectories, so they share the cache.
6308# Giving --cache-file=/dev/null disables caching, for debugging configure.
6309# config.status only pays attention to the cache file if you give it the
6310# --recheck option to rerun configure.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006311#
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006312EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00006313# The following way of writing the cache mishandles newlines in values,
6314# but we know of no workaround that is simple, portable, and efficient.
6315# So, don't put newlines in cache variables' values.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006316# Ultrix sh set writes to stderr and can't be redirected directly,
6317# and sets the high bit in the cache file unless we assign to the vars.
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006318(set) 2>&1 |
6319 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6320 *ac_space=\ *)
6321 # `set' does not quote correctly, so add quotes (double-quote substitution
6322 # turns \\\\ into \\, and sed turns \\ into \).
6323 sed -n \
6324 -e "s/'/'\\\\''/g" \
6325 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6326 ;;
6327 *)
6328 # `set' quotes correctly as required by POSIX, so do not add quotes.
6329 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6330 ;;
6331 esac >> confcache
6332if cmp -s $cache_file confcache; then
6333 :
6334else
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006335 if test -w $cache_file; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006336 echo "updating cache $cache_file"
6337 cat confcache > $cache_file
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006338 else
6339 echo "not updating unwritable cache $cache_file"
6340 fi
6341fi
6342rm -f confcache
6343
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006344trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6345
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006346test "x$prefix" = xNONE && prefix=$ac_default_prefix
6347# Let make expand exec_prefix.
6348test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6349
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006350# Any assignment to VPATH causes Sun make to only execute
6351# the first set of double-colon rules, so remove it if not needed.
6352# If there is a colon in the path, we need to keep it.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006353if test "x$srcdir" = x.; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006354 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006355fi
6356
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006357trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6358
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006359# Transform confdefs.h into DEFS.
6360# Protect against shell expansion while executing Makefile rules.
6361# Protect against Makefile macro expansion.
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006362cat > conftest.defs <<\EOF
6363s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
6364s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
6365s%\[%\\&%g
6366s%\]%\\&%g
6367s%\$%$$%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006368EOF
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006369DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
6370rm -f conftest.defs
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006371
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006372
6373# Without the "./", some shells look in PATH for config.status.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006374: ${CONFIG_STATUS=./config.status}
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006375
6376echo creating $CONFIG_STATUS
6377rm -f $CONFIG_STATUS
6378cat > $CONFIG_STATUS <<EOF
6379#! /bin/sh
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006380# Generated automatically by configure.
6381# Run this file to recreate the current configuration.
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006382# This directory was configured as follows,
6383# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6384#
6385# $0 $ac_configure_args
6386#
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006387# Compiler output produced by configure, useful for debugging
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006388# configure, is in ./config.log if it exists.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006389
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006390ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6391for ac_option
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006392do
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006393 case "\$ac_option" in
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006394 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006395 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6396 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6397 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6398 echo "$CONFIG_STATUS generated by autoconf version 2.13"
6399 exit 0 ;;
6400 -help | --help | --hel | --he | --h)
6401 echo "\$ac_cs_usage"; exit 0 ;;
6402 *) echo "\$ac_cs_usage"; exit 1 ;;
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006403 esac
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006404done
6405
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006406ac_given_srcdir=$srcdir
6407ac_given_INSTALL="$INSTALL"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006408
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006409trap 'rm -fr `echo "$outlist" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6410EOF
6411cat >> $CONFIG_STATUS <<EOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006412
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006413# Protect against being on the right side of a sed subst in config.status.
6414sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6415 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6416$ac_vpsub
6417$extrasub
6418s%@SHELL@%$SHELL%g
6419s%@CFLAGS@%$CFLAGS%g
6420s%@CPPFLAGS@%$CPPFLAGS%g
6421s%@CXXFLAGS@%$CXXFLAGS%g
6422s%@FFLAGS@%$FFLAGS%g
6423s%@DEFS@%$DEFS%g
6424s%@LDFLAGS@%$LDFLAGS%g
6425s%@LIBS@%$LIBS%g
6426s%@exec_prefix@%$exec_prefix%g
6427s%@prefix@%$prefix%g
6428s%@program_transform_name@%$program_transform_name%g
6429s%@bindir@%$bindir%g
6430s%@sbindir@%$sbindir%g
6431s%@libexecdir@%$libexecdir%g
6432s%@datadir@%$datadir%g
6433s%@sysconfdir@%$sysconfdir%g
6434s%@sharedstatedir@%$sharedstatedir%g
6435s%@localstatedir@%$localstatedir%g
6436s%@libdir@%$libdir%g
6437s%@includedir@%$includedir%g
6438s%@oldincludedir@%$oldincludedir%g
6439s%@infodir@%$infodir%g
6440s%@mandir@%$mandir%g
6441/@MCONFIG@/r $MCONFIG
6442s%@MCONFIG@%%g
6443s%@E2FSPROGS_YEAR@%$E2FSPROGS_YEAR%g
6444s%@E2FSPROGS_MONTH@%$E2FSPROGS_MONTH%g
6445s%@E2FSPROGS_DAY@%$E2FSPROGS_DAY%g
6446s%@E2FSPROGS_VERSION@%$E2FSPROGS_VERSION%g
6447s%@host@%$host%g
6448s%@host_alias@%$host_alias%g
6449s%@host_cpu@%$host_cpu%g
6450s%@host_vendor@%$host_vendor%g
6451s%@host_os@%$host_os%g
6452s%@CC@%$CC%g
6453s%@LD@%$LD%g
6454s%@CPP@%$CPP%g
6455s%@LINUX_INCLUDE@%$LINUX_INCLUDE%g
6456s%@HTREE_CMT@%$HTREE_CMT%g
6457s%@HTREE_CLR_CMT@%$HTREE_CLR_CMT%g
6458s%@EVMS_ABI_CODE@%$EVMS_ABI_CODE%g
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006459s%@ELF_CMT@%$ELF_CMT%g
6460/@MAKEFILE_ELF@/r $MAKEFILE_ELF
6461s%@MAKEFILE_ELF@%%g
6462s%@BSDLIB_CMT@%$BSDLIB_CMT%g
6463/@MAKEFILE_BSDLIB@/r $MAKEFILE_BSDLIB
6464s%@MAKEFILE_BSDLIB@%%g
6465s%@PROFILE_CMT@%$PROFILE_CMT%g
6466/@MAKEFILE_PROFILE@/r $MAKEFILE_PROFILE
6467s%@MAKEFILE_PROFILE@%%g
6468s%@CHECKER_CMT@%$CHECKER_CMT%g
6469/@MAKEFILE_CHECKER@/r $MAKEFILE_CHECKER
6470s%@MAKEFILE_CHECKER@%%g
6471s%@LIB_EXT@%$LIB_EXT%g
6472s%@STATIC_LIB_EXT@%$STATIC_LIB_EXT%g
6473s%@PROFILED_LIB_EXT@%$PROFILED_LIB_EXT%g
6474s%@SWAPFS_CMT@%$SWAPFS_CMT%g
6475s%@DEBUGFS_CMT@%$DEBUGFS_CMT%g
6476s%@IMAGER_CMT@%$IMAGER_CMT%g
6477s%@RESIZER_CMT@%$RESIZER_CMT%g
6478s%@E2FSCK_TYPE@%$E2FSCK_TYPE%g
6479s%@FSCK_PROG@%$FSCK_PROG%g
6480s%@FSCK_MAN@%$FSCK_MAN%g
Theodore Ts'o5d407732004-09-18 14:53:14 -04006481s%@E2INITRD_PROG@%$E2INITRD_PROG%g
6482s%@E2INITRD_MAN@%$E2INITRD_MAN%g
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006483/@MAKEFILE_LIBRARY@/r $MAKEFILE_LIBRARY
6484s%@MAKEFILE_LIBRARY@%%g
6485s%@PACKAGE@%$PACKAGE%g
6486s%@VERSION@%$VERSION%g
6487s%@SET_MAKE@%$SET_MAKE%g
6488s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6489s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6490s%@INSTALL_DATA@%$INSTALL_DATA%g
6491s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
6492s%@MSGFMT@%$MSGFMT%g
6493s%@GMSGFMT@%$GMSGFMT%g
6494s%@XGETTEXT@%$XGETTEXT%g
6495s%@MSGMERGE@%$MSGMERGE%g
6496s%@RANLIB@%$RANLIB%g
6497s%@ALLOCA@%$ALLOCA%g
6498s%@GLIBC21@%$GLIBC21%g
6499s%@LIBICONV@%$LIBICONV%g
6500s%@LTLIBICONV@%$LTLIBICONV%g
6501s%@INTLBISON@%$INTLBISON%g
6502s%@USE_NLS@%$USE_NLS%g
6503s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
6504s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
6505s%@CATOBJEXT@%$CATOBJEXT%g
6506s%@INTLOBJS@%$INTLOBJS%g
6507s%@DATADIRNAME@%$DATADIRNAME%g
6508s%@INSTOBJEXT@%$INSTOBJEXT%g
6509s%@GENCAT@%$GENCAT%g
6510s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
6511s%@INTLLIBS@%$INTLLIBS%g
6512s%@LIBINTL@%$LIBINTL%g
6513s%@LTLIBINTL@%$LTLIBINTL%g
6514s%@POSUB@%$POSUB%g
6515s%@BINARY_TYPE@%$BINARY_TYPE%g
6516s%@LN@%$LN%g
6517s%@LN_S@%$LN_S%g
6518s%@MV@%$MV%g
6519s%@CP@%$CP%g
6520s%@RM@%$RM%g
6521s%@CHMOD@%$CHMOD%g
6522s%@AWK@%$AWK%g
6523s%@SED@%$SED%g
6524s%@PERL@%$PERL%g
6525s%@LDCONFIG@%$LDCONFIG%g
6526s%@build@%$build%g
6527s%@build_alias@%$build_alias%g
6528s%@build_cpu@%$build_cpu%g
6529s%@build_vendor@%$build_vendor%g
6530s%@build_os@%$build_os%g
6531s%@AR@%$AR%g
6532s%@STRIP@%$STRIP%g
6533s%@BUILD_CC@%$BUILD_CC%g
6534s%@SIZEOF_SHORT@%$SIZEOF_SHORT%g
6535s%@SIZEOF_INT@%$SIZEOF_INT%g
6536s%@SIZEOF_LONG@%$SIZEOF_LONG%g
6537s%@SIZEOF_LONG_LONG@%$SIZEOF_LONG_LONG%g
6538s%@SOCKET_LIB@%$SOCKET_LIB%g
6539s%@DLOPEN_LIB@%$DLOPEN_LIB%g
6540s%@LINUX_CMT@%$LINUX_CMT%g
6541s%@CYGWIN_CMT@%$CYGWIN_CMT%g
6542s%@UNIX_CMT@%$UNIX_CMT%g
6543s%@EVMS_CMT@%$EVMS_CMT%g
6544s%@root_prefix@%$root_prefix%g
6545s%@root_bindir@%$root_bindir%g
6546s%@root_sbindir@%$root_sbindir%g
6547s%@root_libdir@%$root_libdir%g
6548s%@root_sysconfdir@%$root_sysconfdir%g
6549s%@LDFLAG_STATIC@%$LDFLAG_STATIC%g
6550s%@SS_DIR@%$SS_DIR%g
6551s%@ET_DIR@%$ET_DIR%g
6552s%@DO_TEST_SUITE@%$DO_TEST_SUITE%g
6553s%@INTL_FLAGS@%$INTL_FLAGS%g
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006554
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006555CEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006556EOF
6557
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006558cat >> $CONFIG_STATUS <<\EOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006559
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006560# Split the substitutions into bite-sized pieces for seds with
6561# small command number limits, like on Digital OSF/1 and HP-UX.
6562ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
6563ac_file=1 # Number of current file.
6564ac_beg=1 # First line for current file.
6565ac_end=$ac_max_sed_cmds # Line after last line for current file.
6566ac_more_lines=:
6567ac_sed_cmds=""
6568while $ac_more_lines; do
6569 if test $ac_beg -gt 1; then
6570 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
6571 else
6572 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
6573 fi
6574 if test ! -s conftest.s$ac_file; then
6575 ac_more_lines=false
6576 rm -f conftest.s$ac_file
6577 else
6578 if test -z "$ac_sed_cmds"; then
6579 ac_sed_cmds="sed -f conftest.s$ac_file"
6580 else
6581 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
6582 fi
6583 ac_file=`expr $ac_file + 1`
6584 ac_beg=$ac_end
6585 ac_end=`expr $ac_end + $ac_max_sed_cmds`
6586 fi
6587done
6588if test -z "$ac_sed_cmds"; then
6589 ac_sed_cmds=cat
6590fi
6591EOF
6592
6593cat >> $CONFIG_STATUS <<EOF
6594
6595CONFIG_FILES=\${CONFIG_FILES-"$outlist"}
6596EOF
6597cat >> $CONFIG_STATUS <<\EOF
6598for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
6599 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6600 case "$ac_file" in
6601 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6602 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6603 *) ac_file_in="${ac_file}.in" ;;
6604 esac
6605
6606 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6607
6608 # Remove last slash and all that follows it. Not all systems have dirname.
6609 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6610 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6611 # The file is in a subdirectory.
6612 test ! -d "$ac_dir" && mkdir "$ac_dir"
6613 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
6614 # A "../" for each directory in $ac_dir_suffix.
6615 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6616 else
6617 ac_dir_suffix= ac_dots=
6618 fi
6619
6620 case "$ac_given_srcdir" in
6621 .) srcdir=.
6622 if test -z "$ac_dots"; then top_srcdir=.
6623 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6624 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
6625 *) # Relative path.
6626 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6627 top_srcdir="$ac_dots$ac_given_srcdir" ;;
6628 esac
6629
6630 case "$ac_given_INSTALL" in
6631 [/$]*) INSTALL="$ac_given_INSTALL" ;;
6632 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6633 esac
6634
6635 echo creating "$ac_file"
6636 rm -f "$ac_file"
6637 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6638 case "$ac_file" in
6639 *Makefile*) ac_comsub="1i\\
6640# $configure_input" ;;
6641 *) ac_comsub= ;;
6642 esac
6643
6644 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6645 sed -e "$ac_comsub
6646s%@configure_input@%$configure_input%g
6647s%@srcdir@%$srcdir%g
6648s%@top_srcdir@%$top_srcdir%g
6649s%@INSTALL@%$INSTALL%g
6650" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
6651fi; done
6652rm -f conftest.s*
6653
6654EOF
6655cat >> $CONFIG_STATUS <<EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006656# Capture the value of obsolete ALL_LINGUAS because we need it to compute
6657 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
6658 # from automake.
6659 eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
6660 # Capture the value of LINGUAS because we need it to compute CATALOGS.
6661 LINGUAS="${LINGUAS-%UNSET%}"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006662
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006663
Theodore Ts'o21c84b71997-04-29 16:15:03 +00006664EOF
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006665cat >> $CONFIG_STATUS <<\EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006666
6667 for ac_file in $CONFIG_FILES; do
6668 # Support "outfile[:infile[:infile...]]"
6669 case "$ac_file" in
6670 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006671 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006672 # PO directories have a Makefile.in generated from Makefile.in.in.
6673 case "$ac_file" in */Makefile.in)
6674 # Adjust a relative srcdir.
6675 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
6676 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
6677 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
6678 # In autoconf-2.13 it is called $ac_given_srcdir.
6679 # In autoconf-2.50 it is called $srcdir.
6680 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
6681 case "$ac_given_srcdir" in
6682 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
6683 /*) top_srcdir="$ac_given_srcdir" ;;
6684 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
6685 esac
6686 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
6687 rm -f "$ac_dir/POTFILES"
6688 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
6689 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
6690 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
6691 # on $ac_dir but don't depend on user-specified configuration
6692 # parameters.
6693 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
6694 # The LINGUAS file contains the set of available languages.
6695 if test -n "$ALL_LINGUAS"; then
6696 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
6697 fi
6698 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
6699 # Hide the ALL_LINGUAS assigment from automake.
6700 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
6701 fi
6702 case "$ac_given_srcdir" in
6703 .) srcdirpre= ;;
6704 *) srcdirpre='$(srcdir)/' ;;
6705 esac
6706 POFILES=
6707 GMOFILES=
6708 UPDATEPOFILES=
6709 DUMMYPOFILES=
6710 for lang in $ALL_LINGUAS; do
6711 POFILES="$POFILES $srcdirpre$lang.po"
6712 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
6713 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
6714 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
6715 done
6716 # CATALOGS depends on both $ac_dir and the user's LINGUAS
6717 # environment variable.
6718 INST_LINGUAS=
6719 if test -n "$ALL_LINGUAS"; then
6720 for presentlang in $ALL_LINGUAS; do
6721 useit=no
6722 if test "%UNSET%" != "$LINGUAS"; then
6723 desiredlanguages="$LINGUAS"
6724 else
6725 desiredlanguages="$ALL_LINGUAS"
6726 fi
6727 for desiredlang in $desiredlanguages; do
6728 # Use the presentlang catalog if desiredlang is
6729 # a. equal to presentlang, or
6730 # b. a variant of presentlang (because in this case,
6731 # presentlang can be used as a fallback for messages
6732 # which are not translated in the desiredlang catalog).
6733 case "$desiredlang" in
6734 "$presentlang"*) useit=yes;;
6735 esac
6736 done
6737 if test $useit = yes; then
6738 INST_LINGUAS="$INST_LINGUAS $presentlang"
6739 fi
6740 done
6741 fi
6742 CATALOGS=
6743 if test -n "$INST_LINGUAS"; then
6744 for lang in $INST_LINGUAS; do
6745 CATALOGS="$CATALOGS $lang.gmo"
6746 done
6747 fi
6748 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
6749 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"
6750 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
6751 if test -f "$f"; then
6752 case "$f" in
6753 *.orig | *.bak | *~) ;;
6754 *) cat "$f" >> "$ac_dir/Makefile" ;;
6755 esac
6756 fi
6757 done
6758 fi
6759 ;;
6760 esac
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006761 done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006762
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006763exit 0
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006764EOF
6765chmod +x $CONFIG_STATUS
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006766rm -fr confdefs* $ac_clean_files
6767test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006768