blob: 80a69b20dbda5e87ef049b2fe34b9daa1f277c93 [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
Theodore Ts'o93636bd2003-07-12 02:45:05 -040033 --enable-elf-shlibs select ELF shared libraries"
34ac_help="$ac_help
35 --enable-bsd-shlibs select BSD shared libraries"
36ac_help="$ac_help
37 --enable-profile build profiling libraries"
38ac_help="$ac_help
39 --enable-checker build checker libraries"
40ac_help="$ac_help
41 --enable-jbd-debug enable journal debugging"
42ac_help="$ac_help
43 --enable-blkid-debug enable blkid debugging"
44ac_help="$ac_help
45 --enable-testio-debug enable the use of the test I/O manager for debugging"
46ac_help="$ac_help
47 --disable-swapfs disable support of legacy byte-swapped filesystems"
48ac_help="$ac_help
49 --disable-debugfs disable support of debugfs program"
50ac_help="$ac_help
51 --disable-imager disable support of e2image program"
52ac_help="$ac_help
53 --disable-resizer disable support of e2resize program"
54ac_help="$ac_help
55 --enable-dynamic-e2fsck build e2fsck dynamically"
56ac_help="$ac_help
57 --enable-fsck build fsck wrapper program"
58ac_help="$ac_help
Theodore Ts'o5d407732004-09-18 14:53:14 -040059 --enable-e2initrd-helper build e2initrd-helper program"
60ac_help="$ac_help
Theodore Ts'o93636bd2003-07-12 02:45:05 -040061 --enable-old-bitops Use old (non-standard but native) bitmask operations"
62ac_help="$ac_help
63 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
64ac_help="$ac_help
65 --disable-rpath do not hardcode runtime library paths"
66ac_help="$ac_help
67 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
68 --without-libiconv-prefix don't search for libiconv in includedir and libdir"
69ac_help="$ac_help
70 --disable-nls do not use Native Language Support"
71ac_help="$ac_help
72 --with-included-gettext use the GNU gettext library included here"
73ac_help="$ac_help
74 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
75 --without-libintl-prefix don't search for libintl in includedir and libdir"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000076
77# Initialize some variables set by options.
78# The variables have the same names as the options, with
79# dashes changed to underlines.
Theodore Ts'o93636bd2003-07-12 02:45:05 -040080build=NONE
81cache_file=./config.cache
Theodore Ts'o50e1e101997-04-26 13:58:21 +000082exec_prefix=NONE
Theodore Ts'o93636bd2003-07-12 02:45:05 -040083host=NONE
Theodore Ts'o50e1e101997-04-26 13:58:21 +000084no_create=
Theodore Ts'o93636bd2003-07-12 02:45:05 -040085nonopt=NONE
Theodore Ts'o50e1e101997-04-26 13:58:21 +000086no_recursion=
87prefix=NONE
88program_prefix=NONE
89program_suffix=NONE
90program_transform_name=s,x,x,
91silent=
92site=
93srcdir=
Theodore Ts'o93636bd2003-07-12 02:45:05 -040094target=NONE
Theodore Ts'o50e1e101997-04-26 13:58:21 +000095verbose=
96x_includes=NONE
97x_libraries=NONE
Theodore Ts'o21c84b71997-04-29 16:15:03 +000098bindir='${exec_prefix}/bin'
99sbindir='${exec_prefix}/sbin'
100libexecdir='${exec_prefix}/libexec'
101datadir='${prefix}/share'
102sysconfdir='${prefix}/etc'
103sharedstatedir='${prefix}/com'
104localstatedir='${prefix}/var'
105libdir='${exec_prefix}/lib'
106includedir='${prefix}/include'
107oldincludedir='/usr/include'
108infodir='${prefix}/info'
109mandir='${prefix}/man'
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000110
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400111# Initialize some other variables.
112subdirs=
113MFLAGS= MAKEFLAGS=
114SHELL=${CONFIG_SHELL-/bin/sh}
115# Maximum number of lines to put in a shell here document.
116ac_max_here_lines=12
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000117
118ac_prev=
119for ac_option
120do
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400121
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000122 # If the previous option needs an argument, assign it.
123 if test -n "$ac_prev"; then
124 eval "$ac_prev=\$ac_option"
125 ac_prev=
126 continue
127 fi
128
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400129 case "$ac_option" in
130 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
131 *) ac_optarg= ;;
132 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000133
134 # Accept the important Cygnus configure options, so we can diagnose typos.
135
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400136 case "$ac_option" in
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000137
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000138 -bindir | --bindir | --bindi | --bind | --bin | --bi)
139 ac_prev=bindir ;;
140 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400141 bindir="$ac_optarg" ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000142
143 -build | --build | --buil | --bui | --bu)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400144 ac_prev=build ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000145 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400146 build="$ac_optarg" ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000147
148 -cache-file | --cache-file | --cache-fil | --cache-fi \
149 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
150 ac_prev=cache_file ;;
151 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
152 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400153 cache_file="$ac_optarg" ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000154
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000155 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
156 ac_prev=datadir ;;
157 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
158 | --da=*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400159 datadir="$ac_optarg" ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000160
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000161 -disable-* | --disable-*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400162 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000163 # Reject names that are not valid shell variable names.
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400164 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
165 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
166 fi
167 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
168 eval "enable_${ac_feature}=no" ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000169
170 -enable-* | --enable-*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400171 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000172 # Reject names that are not valid shell variable names.
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400173 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
174 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
175 fi
176 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
177 case "$ac_option" in
178 *=*) ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000179 *) ac_optarg=yes ;;
180 esac
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400181 eval "enable_${ac_feature}='$ac_optarg'" ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000182
183 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
184 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
185 | --exec | --exe | --ex)
186 ac_prev=exec_prefix ;;
187 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
188 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
189 | --exec=* | --exe=* | --ex=*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400190 exec_prefix="$ac_optarg" ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000191
192 -gas | --gas | --ga | --g)
193 # Obsolete; use --with-gas.
194 with_gas=yes ;;
195
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400196 -help | --help | --hel | --he)
197 # Omit some internal or obsolete options to make the list less imposing.
198 # This message is too long to be a string in the A/UX 3.1 sh.
199 cat << EOF
200Usage: configure [options] [host]
201Options: [defaults in brackets after descriptions]
202Configuration:
203 --cache-file=FILE cache test results in FILE
204 --help print this message
205 --no-create do not create output files
206 --quiet, --silent do not print \`checking...' messages
207 --version print the version of autoconf that created configure
208Directory and file names:
209 --prefix=PREFIX install architecture-independent files in PREFIX
210 [$ac_default_prefix]
211 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
212 [same as prefix]
213 --bindir=DIR user executables in DIR [EPREFIX/bin]
214 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
215 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
216 --datadir=DIR read-only architecture-independent data in DIR
217 [PREFIX/share]
218 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
219 --sharedstatedir=DIR modifiable architecture-independent data in DIR
220 [PREFIX/com]
221 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
222 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
223 --includedir=DIR C header files in DIR [PREFIX/include]
224 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
225 --infodir=DIR info documentation in DIR [PREFIX/info]
226 --mandir=DIR man documentation in DIR [PREFIX/man]
227 --srcdir=DIR find the sources in DIR [configure dir or ..]
228 --program-prefix=PREFIX prepend PREFIX to installed program names
229 --program-suffix=SUFFIX append SUFFIX to installed program names
230 --program-transform-name=PROGRAM
231 run sed PROGRAM on installed program names
232EOF
233 cat << EOF
234Host type:
235 --build=BUILD configure for building on BUILD [BUILD=HOST]
236 --host=HOST configure for HOST [guessed]
237 --target=TARGET configure for TARGET [TARGET=HOST]
238Features and packages:
239 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
240 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
241 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
242 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
243 --x-includes=DIR X include files are in DIR
244 --x-libraries=DIR X library files are in DIR
245EOF
246 if test -n "$ac_help"; then
247 echo "--enable and --with options recognized:$ac_help"
248 fi
249 exit 0 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000250
251 -host | --host | --hos | --ho)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400252 ac_prev=host ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000253 -host=* | --host=* | --hos=* | --ho=*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400254 host="$ac_optarg" ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000255
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000256 -includedir | --includedir | --includedi | --included | --include \
257 | --includ | --inclu | --incl | --inc)
258 ac_prev=includedir ;;
259 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
260 | --includ=* | --inclu=* | --incl=* | --inc=*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400261 includedir="$ac_optarg" ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000262
263 -infodir | --infodir | --infodi | --infod | --info | --inf)
264 ac_prev=infodir ;;
265 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400266 infodir="$ac_optarg" ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000267
268 -libdir | --libdir | --libdi | --libd)
269 ac_prev=libdir ;;
270 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400271 libdir="$ac_optarg" ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000272
273 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
274 | --libexe | --libex | --libe)
275 ac_prev=libexecdir ;;
276 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
277 | --libexe=* | --libex=* | --libe=*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400278 libexecdir="$ac_optarg" ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000279
280 -localstatedir | --localstatedir | --localstatedi | --localstated \
281 | --localstate | --localstat | --localsta | --localst \
282 | --locals | --local | --loca | --loc | --lo)
283 ac_prev=localstatedir ;;
284 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
285 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
286 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400287 localstatedir="$ac_optarg" ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000288
289 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
290 ac_prev=mandir ;;
291 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400292 mandir="$ac_optarg" ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000293
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000294 -nfp | --nfp | --nf)
295 # Obsolete; use --without-fp.
296 with_fp=no ;;
297
298 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
299 | --no-cr | --no-c)
300 no_create=yes ;;
301
302 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
303 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
304 no_recursion=yes ;;
305
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000306 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
307 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
308 | --oldin | --oldi | --old | --ol | --o)
309 ac_prev=oldincludedir ;;
310 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
311 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
312 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400313 oldincludedir="$ac_optarg" ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000314
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000315 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
316 ac_prev=prefix ;;
317 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400318 prefix="$ac_optarg" ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000319
320 -program-prefix | --program-prefix | --program-prefi | --program-pref \
321 | --program-pre | --program-pr | --program-p)
322 ac_prev=program_prefix ;;
323 -program-prefix=* | --program-prefix=* | --program-prefi=* \
324 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400325 program_prefix="$ac_optarg" ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000326
327 -program-suffix | --program-suffix | --program-suffi | --program-suff \
328 | --program-suf | --program-su | --program-s)
329 ac_prev=program_suffix ;;
330 -program-suffix=* | --program-suffix=* | --program-suffi=* \
331 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400332 program_suffix="$ac_optarg" ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000333
334 -program-transform-name | --program-transform-name \
335 | --program-transform-nam | --program-transform-na \
336 | --program-transform-n | --program-transform- \
337 | --program-transform | --program-transfor \
338 | --program-transfo | --program-transf \
339 | --program-trans | --program-tran \
340 | --progr-tra | --program-tr | --program-t)
341 ac_prev=program_transform_name ;;
342 -program-transform-name=* | --program-transform-name=* \
343 | --program-transform-nam=* | --program-transform-na=* \
344 | --program-transform-n=* | --program-transform-=* \
345 | --program-transform=* | --program-transfor=* \
346 | --program-transfo=* | --program-transf=* \
347 | --program-trans=* | --program-tran=* \
348 | --progr-tra=* | --program-tr=* | --program-t=*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400349 program_transform_name="$ac_optarg" ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000350
351 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
352 | -silent | --silent | --silen | --sile | --sil)
353 silent=yes ;;
354
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000355 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
356 ac_prev=sbindir ;;
357 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
358 | --sbi=* | --sb=*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400359 sbindir="$ac_optarg" ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000360
361 -sharedstatedir | --sharedstatedir | --sharedstatedi \
362 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
363 | --sharedst | --shareds | --shared | --share | --shar \
364 | --sha | --sh)
365 ac_prev=sharedstatedir ;;
366 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
367 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
368 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
369 | --sha=* | --sh=*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400370 sharedstatedir="$ac_optarg" ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000371
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000372 -site | --site | --sit)
373 ac_prev=site ;;
374 -site=* | --site=* | --sit=*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400375 site="$ac_optarg" ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000376
377 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
378 ac_prev=srcdir ;;
379 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400380 srcdir="$ac_optarg" ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000381
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000382 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
383 | --syscon | --sysco | --sysc | --sys | --sy)
384 ac_prev=sysconfdir ;;
385 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
386 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400387 sysconfdir="$ac_optarg" ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000388
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000389 -target | --target | --targe | --targ | --tar | --ta | --t)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400390 ac_prev=target ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000391 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400392 target="$ac_optarg" ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000393
394 -v | -verbose | --verbose | --verbos | --verbo | --verb)
395 verbose=yes ;;
396
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400397 -version | --version | --versio | --versi | --vers)
398 echo "configure generated by autoconf version 2.13"
399 exit 0 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000400
401 -with-* | --with-*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400402 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000403 # Reject names that are not valid shell variable names.
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400404 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
405 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
406 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000407 ac_package=`echo $ac_package| sed 's/-/_/g'`
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400408 case "$ac_option" in
409 *=*) ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000410 *) ac_optarg=yes ;;
411 esac
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400412 eval "with_${ac_package}='$ac_optarg'" ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000413
414 -without-* | --without-*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400415 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000416 # Reject names that are not valid shell variable names.
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400417 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
418 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
419 fi
420 ac_package=`echo $ac_package| sed 's/-/_/g'`
421 eval "with_${ac_package}=no" ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000422
423 --x)
424 # Obsolete; use --with-x.
425 with_x=yes ;;
426
427 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
428 | --x-incl | --x-inc | --x-in | --x-i)
429 ac_prev=x_includes ;;
430 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
431 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400432 x_includes="$ac_optarg" ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000433
434 -x-libraries | --x-libraries | --x-librarie | --x-librari \
435 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
436 ac_prev=x_libraries ;;
437 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
438 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400439 x_libraries="$ac_optarg" ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000440
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400441 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000442 ;;
443
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000444 *)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400445 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
446 echo "configure: warning: $ac_option: invalid host type" 1>&2
447 fi
448 if test "x$nonopt" != xNONE; then
449 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
450 fi
451 nonopt="$ac_option"
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000452 ;;
453
454 esac
455done
456
457if test -n "$ac_prev"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400458 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000459fi
460
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400461trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
462
463# File descriptor usage:
464# 0 standard input
465# 1 file creation
466# 2 errors and warnings
467# 3 some systems may open it to /dev/tty
468# 4 used on the Kubota Titan
469# 6 checking for... messages and results
470# 5 compiler messages saved in config.log
471if test "$silent" = yes; then
472 exec 6>/dev/null
473else
474 exec 6>&1
475fi
476exec 5>./config.log
477
478echo "\
479This file contains any messages produced by compilers while
480running configure, to aid debugging if configure makes a mistake.
481" 1>&5
482
483# Strip out --no-create and --no-recursion so they do not pile up.
484# Also quote any args containing shell metacharacters.
485ac_configure_args=
486for ac_arg
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000487do
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400488 case "$ac_arg" in
489 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
490 | --no-cr | --no-c) ;;
491 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
493 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
494 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
495 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000496 esac
497done
498
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400499# NLS nuisances.
500# Only set these to C if already set. These must not be set unconditionally
501# because not all systems understand e.g. LANG=C (notably SCO).
502# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
503# Non-C LC_CTYPE values break the ctype check.
504if test "${LANG+set}" = set; then LANG=C; export LANG; fi
505if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
506if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
507if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000508
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400509# confdefs.h avoids OS command line length limits that DEFS can exceed.
510rm -rf conftest* confdefs.h
511# AIX cpp loses on an empty file, so make sure it contains at least a newline.
512echo > confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000513
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400514# A filename unique to this package, relative to the directory that
515# configure is in, which we can look for to find out if srcdir is correct.
516ac_unique_file=version.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000517
518# Find the source files, if location was not specified.
519if test -z "$srcdir"; then
520 ac_srcdir_defaulted=yes
521 # Try the directory containing this script, then its parent.
522 ac_prog=$0
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400523 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000524 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
525 srcdir=$ac_confdir
526 if test ! -r $srcdir/$ac_unique_file; then
527 srcdir=..
528 fi
529else
530 ac_srcdir_defaulted=no
531fi
532if test ! -r $srcdir/$ac_unique_file; then
533 if test "$ac_srcdir_defaulted" = yes; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400534 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000535 else
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400536 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000537 fi
538fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400539srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000540
541# Prefer explicitly selected file to automatically selected ones.
542if test -z "$CONFIG_SITE"; then
543 if test "x$prefix" != xNONE; then
544 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
545 else
546 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
547 fi
548fi
549for ac_site_file in $CONFIG_SITE; do
550 if test -r "$ac_site_file"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400551 echo "loading site script $ac_site_file"
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000552 . "$ac_site_file"
553 fi
554done
555
556if test -r "$cache_file"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400557 echo "loading cache $cache_file"
558 . $cache_file
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000559else
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400560 echo "creating cache $cache_file"
561 > $cache_file
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000562fi
563
564ac_ext=c
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400565# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000566ac_cpp='$CPP $CPPFLAGS'
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400567ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
568ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
569cross_compiling=$ac_cv_prog_cc_cross
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000570
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400571ac_exeext=
572ac_objext=o
573if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
574 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
575 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
576 ac_n= ac_c='
577' ac_t=' '
578 else
579 ac_n=-n ac_c= ac_t=
580 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000581else
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400582 ac_n= ac_c='\c' ac_t=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000583fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400584
585# Check whether --with-gnu-ld or --without-gnu-ld was given.
586if test "${with_gnu_ld+set}" = set; then
587 withval="$with_gnu_ld"
588 test "$withval" = no || with_gnu_ld=yes
589else
590 with_gnu_ld=no
591fi
592
593ac_prog=ld
594if test "$GCC" = yes; then
595 # Check if gcc -print-prog-name=ld gives a path.
596 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -0500597echo "configure:598: checking for ld used by GCC" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400598 case $host in
599 *-*-mingw*)
600 # gcc leaves a trailing carriage return which upsets mingw
601 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
602 *)
603 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
604 esac
605 case $ac_prog in
606 # Accept absolute paths.
607 [\\/]* | [A-Za-z]:[\\/]*)
608 re_direlt='/[^/][^/]*/\.\./'
609 # Canonicalize the path of ld
610 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
611 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
612 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
613 done
614 test -z "$LD" && LD="$ac_prog"
615 ;;
616 "")
617 # If it fails, then pretend we aren't using GCC.
618 ac_prog=ld
619 ;;
620 *)
621 # If it is relative, then search for the first ld in PATH.
622 with_gnu_ld=unknown
623 ;;
624 esac
625elif test "$with_gnu_ld" = yes; then
626 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -0500627echo "configure:628: checking for GNU ld" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400628else
629 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -0500630echo "configure:631: checking for non-GNU ld" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400631fi
632if eval "test \"`echo '$''{'acl_cv_path_LD'+set}'`\" = set"; then
633 echo $ac_n "(cached) $ac_c" 1>&6
634else
635 if test -z "$LD"; then
636 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
637 for ac_dir in $PATH; do
638 test -z "$ac_dir" && ac_dir=.
639 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
640 acl_cv_path_LD="$ac_dir/$ac_prog"
641 # Check to see if the program is GNU ld. I'd rather use --version,
642 # but apparently some GNU ld's only accept -v.
643 # Break only if it was the GNU/non-GNU ld that we prefer.
644 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
645 test "$with_gnu_ld" != no && break
646 else
647 test "$with_gnu_ld" != yes && break
648 fi
649 fi
650 done
651 IFS="$ac_save_ifs"
652else
653 acl_cv_path_LD="$LD" # Let the user override the test with a path.
654fi
655fi
656
657LD="$acl_cv_path_LD"
658if test -n "$LD"; then
659 echo "$ac_t""$LD" 1>&6
660else
661 echo "$ac_t""no" 1>&6
662fi
663test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
664echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -0500665echo "configure:666: checking if the linker ($LD) is GNU ld" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400666if eval "test \"`echo '$''{'acl_cv_prog_gnu_ld'+set}'`\" = set"; then
667 echo $ac_n "(cached) $ac_c" 1>&6
668else
669 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
670if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
671 acl_cv_prog_gnu_ld=yes
672else
673 acl_cv_prog_gnu_ld=no
674fi
675fi
676
677echo "$ac_t""$acl_cv_prog_gnu_ld" 1>&6
678with_gnu_ld=$acl_cv_prog_gnu_ld
679
680
681
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +0000682
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000683MCONFIG=./MCONFIG
684
Theodore Ts'o74becf31997-04-26 14:37:06 +0000685BINARY_TYPE=bin
686E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
687 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
688DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
689 | tr \" " "`
Theodore Ts'obff0cc92003-03-23 01:37:53 -0500690E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
Theodore Ts'o74becf31997-04-26 14:37:06 +0000691MONTH=`echo $DATE | awk -F- '{print $2}'`
692YEAR=`echo $DATE | awk -F- '{print $3}'`
693
Theodore Ts'o14790ed1999-01-12 23:32:52 +0000694if expr $YEAR ">" 1900 > /dev/null ; then
695 E2FSPROGS_YEAR=$YEAR
696elif expr $YEAR ">" 90 >/dev/null ; then
Theodore Ts'o74becf31997-04-26 14:37:06 +0000697 E2FSPROGS_YEAR=19$YEAR
698else
699 E2FSPROGS_YEAR=20$YEAR
700fi
701
702case $MONTH in
703Jan) E2FSPROGS_MONTH="January" ;;
704Feb) E2FSPROGS_MONTH="February" ;;
705Mar) E2FSPROGS_MONTH="March" ;;
706Apr) E2FSPROGS_MONTH="April" ;;
707May) E2FSPROGS_MONTH="May" ;;
708Jun) E2FSPROGS_MONTH="June" ;;
709Jul) E2FSPROGS_MONTH="July" ;;
710Aug) E2FSPROGS_MONTH="August" ;;
711Sep) E2FSPROGS_MONTH="September" ;;
712Oct) E2FSPROGS_MONTH="October" ;;
713Nov) E2FSPROGS_MONTH="November" ;;
714Dec) E2FSPROGS_MONTH="December" ;;
715*) echo "Unknown month $MONTH??" ;;
716esac
717
718unset DATE MONTH YEAR
719echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION"
720echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}"
721
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400722
723
724
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000725ac_aux_dir=
726for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
727 if test -f $ac_dir/install-sh; then
728 ac_aux_dir=$ac_dir
729 ac_install_sh="$ac_aux_dir/install-sh -c"
730 break
731 elif test -f $ac_dir/install.sh; then
732 ac_aux_dir=$ac_dir
733 ac_install_sh="$ac_aux_dir/install.sh -c"
734 break
735 fi
736done
737if test -z "$ac_aux_dir"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400738 { 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 +0000739fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400740ac_config_guess=$ac_aux_dir/config.guess
741ac_config_sub=$ac_aux_dir/config.sub
742ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
743
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000744
745# Make sure we can run config.sub.
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400746if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
747else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000748fi
749
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400750echo $ac_n "checking host system type""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -0500751echo "configure:752: checking host system type" >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000752
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400753host_alias=$host
754case "$host_alias" in
755NONE)
756 case $nonopt in
757 NONE)
758 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
759 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
760 fi ;;
761 *) host_alias=$nonopt ;;
762 esac ;;
763esac
764
765host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
766host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
767host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
768host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
769echo "$ac_t""$host" 1>&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000770
Theodore Ts'od21ae6c2003-05-05 09:00:24 -0400771# Check whether --with-diet-libc or --without-diet-libc was given.
772if test "${with_diet_libc+set}" = set; then
773 withval="$with_diet_libc"
774 CC="diet cc -nostdinc"
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400775echo "$ac_t""CC=$CC" 1>&6
776fi
Theodore Ts'o74becf31997-04-26 14:37:06 +0000777# Check whether --with-cc or --without-cc was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000778if test "${with_cc+set}" = set; then
779 withval="$with_cc"
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400780 echo "$ac_t""CC=$withval" 1>&6
Theodore Ts'o74becf31997-04-26 14:37:06 +0000781CC=$withval
782else
783 if test -z "$CC" ; then CC=cc; fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400784echo "$ac_t""CC defaults to $CC" 1>&6
785fi
786export CC
Theodore Ts'o74becf31997-04-26 14:37:06 +0000787
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400788# Extract the first word of "gcc", so it can be a program name with args.
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400789set dummy gcc; ac_word=$2
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400790echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -0500791echo "configure:792: checking for $ac_word" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400792if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
793 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000794else
795 if test -n "$CC"; then
796 ac_cv_prog_CC="$CC" # Let the user override the test.
797else
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400798 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
799 ac_dummy="$PATH"
800 for ac_dir in $ac_dummy; do
801 test -z "$ac_dir" && ac_dir=.
802 if test -f $ac_dir/$ac_word; then
803 ac_cv_prog_CC="gcc"
804 break
805 fi
806 done
807 IFS="$ac_save_ifs"
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400808fi
809fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400810CC="$ac_cv_prog_CC"
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400811if test -n "$CC"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400812 echo "$ac_t""$CC" 1>&6
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400813else
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400814 echo "$ac_t""no" 1>&6
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400815fi
816
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400817if test -z "$CC"; then
818 # Extract the first word of "cc", so it can be a program name with args.
819set dummy cc; ac_word=$2
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400820echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -0500821echo "configure:822: checking for $ac_word" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400822if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
823 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400824else
825 if test -n "$CC"; then
826 ac_cv_prog_CC="$CC" # Let the user override the test.
827else
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400828 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000829 ac_prog_rejected=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400830 ac_dummy="$PATH"
831 for ac_dir in $ac_dummy; do
832 test -z "$ac_dir" && ac_dir=.
833 if test -f $ac_dir/$ac_word; then
834 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
835 ac_prog_rejected=yes
836 continue
837 fi
838 ac_cv_prog_CC="cc"
839 break
840 fi
841 done
842 IFS="$ac_save_ifs"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000843if test $ac_prog_rejected = yes; then
844 # We found a bogon in the path, so make sure we never use it.
845 set dummy $ac_cv_prog_CC
846 shift
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400847 if test $# -gt 0; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000848 # We chose a different compiler from the bogus one.
849 # However, it has the same basename, so the bogon will be chosen
850 # first if we set CC to just the basename; use the full file name.
851 shift
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400852 set dummy "$ac_dir/$ac_word" "$@"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000853 shift
854 ac_cv_prog_CC="$@"
855 fi
856fi
857fi
858fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400859CC="$ac_cv_prog_CC"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000860if test -n "$CC"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400861 echo "$ac_t""$CC" 1>&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000862else
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400863 echo "$ac_t""no" 1>&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000864fi
865
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400866 if test -z "$CC"; then
867 case "`uname -s`" in
868 *win32* | *WIN32*)
869 # Extract the first word of "cl", so it can be a program name with args.
870set dummy cl; ac_word=$2
871echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -0500872echo "configure:873: checking for $ac_word" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400873if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
874 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000875else
876 if test -n "$CC"; then
877 ac_cv_prog_CC="$CC" # Let the user override the test.
878else
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400879 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
880 ac_dummy="$PATH"
881 for ac_dir in $ac_dummy; do
882 test -z "$ac_dir" && ac_dir=.
883 if test -f $ac_dir/$ac_word; then
884 ac_cv_prog_CC="cl"
885 break
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400886 fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400887 done
888 IFS="$ac_save_ifs"
889fi
890fi
891CC="$ac_cv_prog_CC"
892if test -n "$CC"; then
893 echo "$ac_t""$CC" 1>&6
894else
895 echo "$ac_t""no" 1>&6
896fi
897 ;;
898 esac
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000899 fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400900 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400901fi
902
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400903echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -0500904echo "configure:905: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400905
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400906ac_ext=c
907# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
908ac_cpp='$CPP $CPPFLAGS'
909ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
910ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
911cross_compiling=$ac_cv_prog_cc_cross
912
913cat > conftest.$ac_ext << EOF
914
Theodore Ts'o921f4ad2004-11-19 17:25:27 -0500915#line 916 "configure"
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400916#include "confdefs.h"
917
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400918main(){return(0);}
919EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -0500920if { (eval echo configure:921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400921 ac_cv_prog_cc_works=yes
922 # If we can't run a trivial program, we are probably using a cross compiler.
923 if (./conftest; exit) 2>/dev/null; then
924 ac_cv_prog_cc_cross=no
925 else
926 ac_cv_prog_cc_cross=yes
927 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400928else
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400929 echo "configure: failed program was:" >&5
930 cat conftest.$ac_ext >&5
931 ac_cv_prog_cc_works=no
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400932fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400933rm -fr conftest*
934ac_ext=c
935# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
936ac_cpp='$CPP $CPPFLAGS'
937ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
938ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
939cross_compiling=$ac_cv_prog_cc_cross
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400940
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400941echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
942if test $ac_cv_prog_cc_works = no; then
943 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400944fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400945echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -0500946echo "configure:947: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400947echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
948cross_compiling=$ac_cv_prog_cc_cross
949
950echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -0500951echo "configure:952: checking whether we are using GNU C" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400952if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
953 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400954else
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400955 cat > conftest.c <<EOF
956#ifdef __GNUC__
957 yes;
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000958#endif
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400959EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -0500960if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:961: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400961 ac_cv_prog_gcc=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000962else
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400963 ac_cv_prog_gcc=no
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000964fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400965fi
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000966
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400967echo "$ac_t""$ac_cv_prog_gcc" 1>&6
968
969if test $ac_cv_prog_gcc = yes; then
970 GCC=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000971else
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400972 GCC=
973fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400974
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400975ac_test_CFLAGS="${CFLAGS+set}"
976ac_save_CFLAGS="$CFLAGS"
977CFLAGS=
978echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -0500979echo "configure:980: checking whether ${CC-cc} accepts -g" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400980if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
981 echo $ac_n "(cached) $ac_c" 1>&6
982else
983 echo 'void f(){}' > conftest.c
984if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000985 ac_cv_prog_cc_g=yes
986else
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400987 ac_cv_prog_cc_g=no
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000988fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400989rm -f conftest*
990
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000991fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400992
993echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000994if test "$ac_test_CFLAGS" = set; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400995 CFLAGS="$ac_save_CFLAGS"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000996elif test $ac_cv_prog_cc_g = yes; then
997 if test "$GCC" = yes; then
998 CFLAGS="-g -O2"
999 else
1000 CFLAGS="-g"
1001 fi
1002else
1003 if test "$GCC" = yes; then
1004 CFLAGS="-O2"
1005 else
1006 CFLAGS=
1007 fi
1008fi
1009
Theodore Ts'o74becf31997-04-26 14:37:06 +00001010# Check whether --with-linker or --without-linker was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001011if test "${with_linker+set}" = set; then
1012 withval="$with_linker"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001013 echo "$ac_t""LD=$withval" 1>&6
Theodore Ts'o74becf31997-04-26 14:37:06 +00001014LD=$withval
1015else
1016 if test -z "$LD" ; then LD=$CC; fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001017echo "$ac_t""LD defaults to $LD" 1>&6
1018fi
1019export LD
Theodore Ts'o74becf31997-04-26 14:37:06 +00001020
1021# Check whether --with-ccopts or --without-ccopts was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001022if test "${with_ccopts+set}" = set; then
1023 withval="$with_ccopts"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001024 echo "$ac_t""CCOPTS is $withval" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001025CFLAGS=$withval
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001026fi
1027echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05001028echo "configure:1029: checking how to run the C preprocessor" >&5
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001029# On Suns, sometimes $CPP names a directory.
1030if test -n "$CPP" && test -d "$CPP"; then
1031 CPP=
1032fi
1033if test -z "$CPP"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001034if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1035 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001036else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001037 # This must be in double quotes, not single quotes, because CPP may get
1038 # substituted into the Makefile and "${CC-cc}" will confuse make.
1039 CPP="${CC-cc} -E"
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001040 # On the NeXT, cc -E runs the code through the compiler's parser,
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001041 # not just through cpp.
1042 cat > conftest.$ac_ext <<EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05001043#line 1044 "configure"
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001044#include "confdefs.h"
1045#include <assert.h>
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001046Syntax Error
1047EOF
1048ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05001049{ (eval echo configure:1050: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001050ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1051if test -z "$ac_err"; then
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001052 :
1053else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001054 echo "$ac_err" >&5
1055 echo "configure: failed program was:" >&5
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001056 cat conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001057 rm -rf conftest*
1058 CPP="${CC-cc} -E -traditional-cpp"
1059 cat > conftest.$ac_ext <<EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05001060#line 1061 "configure"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001061#include "confdefs.h"
1062#include <assert.h>
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001063Syntax Error
1064EOF
1065ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05001066{ (eval echo configure:1067: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001067ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1068if test -z "$ac_err"; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001069 :
1070else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001071 echo "$ac_err" >&5
1072 echo "configure: failed program was:" >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001073 cat conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001074 rm -rf conftest*
1075 CPP="${CC-cc} -nologo -E"
1076 cat > conftest.$ac_ext <<EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05001077#line 1078 "configure"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001078#include "confdefs.h"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001079#include <assert.h>
1080Syntax Error
1081EOF
1082ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05001083{ (eval echo configure:1084: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001084ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1085if test -z "$ac_err"; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001086 :
1087else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001088 echo "$ac_err" >&5
1089 echo "configure: failed program was:" >&5
1090 cat conftest.$ac_ext >&5
1091 rm -rf conftest*
1092 CPP=/lib/cpp
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001093fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001094rm -f conftest*
1095fi
1096rm -f conftest*
1097fi
1098rm -f conftest*
1099 ac_cv_prog_CPP="$CPP"
1100fi
1101 CPP="$ac_cv_prog_CPP"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001102else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001103 ac_cv_prog_CPP="$CPP"
1104fi
1105echo "$ac_t""$CPP" 1>&6
1106
1107ac_safe=`echo "linux/fs.h" | sed 'y%./+-%__p_%'`
1108echo $ac_n "checking for linux/fs.h""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05001109echo "configure:1110: checking for linux/fs.h" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001110if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1111 echo $ac_n "(cached) $ac_c" 1>&6
1112else
1113 cat > conftest.$ac_ext <<EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05001114#line 1115 "configure"
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001115#include "confdefs.h"
1116#include <linux/fs.h>
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001117EOF
1118ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05001119{ (eval echo configure:1120: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001120ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1121if test -z "$ac_err"; then
1122 rm -rf conftest*
1123 eval "ac_cv_header_$ac_safe=yes"
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001124else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001125 echo "$ac_err" >&5
1126 echo "configure: failed program was:" >&5
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001127 cat conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001128 rm -rf conftest*
1129 eval "ac_cv_header_$ac_safe=no"
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001130fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001131rm -f conftest*
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001132fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001133if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1134 echo "$ac_t""yes" 1>&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001135 linux_headers=yes
1136else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001137 echo "$ac_t""no" 1>&6
1138linux_headers=no
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001139fi
1140
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001141if test "$linux_headers" != yes; then
1142 LINUX_INCLUDE='-I$(top_builddir)/include'
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001143fi
1144
Matthias Andreeb1c92f92004-02-23 21:30:11 +01001145echo $ac_n "checking for additional special compiler flags""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05001146echo "configure:1147: checking for additional special compiler flags" >&5
Matthias Andreeb1c92f92004-02-23 21:30:11 +01001147if test "$GCC" = yes
1148then
1149 case "$host_cpu" in
1150 alpha) addcflags="-mieee" ;;
1151 esac
1152fi
1153if test "x$addcflags" != x
1154then
1155 echo "$ac_t""$addcflags" 1>&6
1156 CFLAGS="$addcflags $CFLAGS"
1157else
1158 echo "$ac_t""(none)" 1>&6
1159fi
Theodore Ts'oa4d09611997-04-29 14:28:00 +00001160LIB_EXT=.a
1161STATIC_LIB_EXT=.a
1162PROFILE_LIB_EXT=.a
Theodore Ts'o74becf31997-04-26 14:37:06 +00001163# Check whether --with-ldopts or --without-ldopts was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001164if test "${with_ldopts+set}" = set; then
1165 withval="$with_ldopts"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001166 echo "$ac_t""LDFLAGS is $withval" 1>&6
Theodore Ts'o74becf31997-04-26 14:37:06 +00001167LDFLAGS=$withval
1168else
1169 LDFLAGS=
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001170fi
Theodore Ts'o74becf31997-04-26 14:37:06 +00001171
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00001172# Check whether --with-root-prefix or --without-root-prefix was given.
1173if test "${with_root_prefix+set}" = set; then
1174 withval="$with_root_prefix"
1175 root_prefix=$withval
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001176else
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00001177 root_prefix=NONE
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001178fi
1179# Check whether --enable-compression or --disable-compression was given.
Theodore Ts'o19178752000-02-11 15:55:07 +00001180if test "${enable_compression+set}" = set; then
1181 enableval="$enable_compression"
1182 if test "$enableval" = "no"
1183then
1184 echo "Disabling compression support"
1185else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001186 cat >> confdefs.h <<\EOF
Theodore Ts'o19178752000-02-11 15:55:07 +00001187#define ENABLE_COMPRESSION 1
1188EOF
1189
1190 echo "Enabling compression support"
1191 echo "WARNING: Compression support is experimental"
1192fi
1193
1194else
1195 echo "Disabling compression support by default"
1196
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001197fi
1198
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04001199# Check whether --enable-htree or --disable-htree was given.
1200if test "${enable_htree+set}" = set; then
1201 enableval="$enable_htree"
1202 if test "$enableval" = "no"
1203then
1204 HTREE_CMT=#
1205 echo "Disabling htree directory support"
1206else
1207 HTREE_CMT=
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001208 cat >> confdefs.h <<\EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04001209#define ENABLE_HTREE 1
1210EOF
1211
1212 echo "Enabling htree directory support"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04001213fi
1214
1215else
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04001216 HTREE_CMT=
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001217cat >> confdefs.h <<\EOF
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04001218#define ENABLE_HTREE 1
1219EOF
1220
1221echo "Enabling htree directory support by default"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04001222
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001223fi
1224
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04001225
1226# Check whether --enable-htree-clear or --disable-htree-clear was given.
1227if test "${enable_htree_clear+set}" = set; then
1228 enableval="$enable_htree_clear"
1229 if test "$enableval" = "no"
1230then
1231 HTREE_CLR_CMT=#
1232 echo "Disabling htree clearing"
1233else
1234 HTREE_CLR_CMT=
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001235 cat >> confdefs.h <<\EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04001236#define ENABLE_HTREE_CLEAR 1
1237EOF
1238
1239 echo "Enabling htree clearing"
1240fi
1241
1242else
1243 HTREE_CLR_CMT=#
1244echo "Disabling htree clearing by default"
1245
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001246fi
1247
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04001248
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001249# Check whether --enable-elf-shlibs or --disable-elf-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001250if test "${enable_elf_shlibs+set}" = set; then
1251 enableval="$enable_elf_shlibs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001252 if test "$enableval" = "no"
1253then
1254 ELF_CMT=#
1255 MAKEFILE_ELF=/dev/null
1256 echo "Disabling ELF shared libraries"
1257else
1258 ELF_CMT=
1259 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
Theodore Ts'of5955dd2000-10-25 02:38:39 +00001260 case "$host_os" in
1261 solaris2.*)
1262 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
1263 ;;
1264 esac
Theodore Ts'o74becf31997-04-26 14:37:06 +00001265 BINARY_TYPE=elfbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00001266 LIB_EXT=.so
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001267 echo "Enabling ELF shared libraries"
1268fi
1269
1270else
1271 MAKEFILE_ELF=/dev/null
1272ELF_CMT=#
1273echo "Disabling ELF shared libraries by default"
1274
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001275fi
1276
1277
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001278
1279# Check whether --enable-bsd-shlibs or --disable-bsd-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001280if test "${enable_bsd_shlibs+set}" = set; then
1281 enableval="$enable_bsd_shlibs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001282 if test "$enableval" = "no"
1283then
1284 BSDLIB_CMT=#
1285 MAKEFILE_BSDLIB=/dev/null
1286 echo "Disabling BSD shared libraries"
1287else
1288 BSDLIB_CMT=
1289 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
Theodore Ts'oa4d09611997-04-29 14:28:00 +00001290 LIB_EXT=.so
Theodore Ts'oe1f07222003-03-14 02:25:36 -05001291 case "$host_os" in
Theodore Ts'oaa75ecc2003-03-17 10:01:22 -05001292 darwin*)
Theodore Ts'oe1f07222003-03-14 02:25:36 -05001293 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
1294 LIB_EXT=.dylib
1295 ;;
1296 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001297 echo "Enabling BSD shared libraries"
1298fi
1299
1300else
1301 MAKEFILE_BSDLIB=/dev/null
1302BSDLIB_CMT=#
1303echo "Disabling BSD shared libraries by default"
1304
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001305fi
1306
1307
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001308
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001309# Check whether --enable-profile or --disable-profile was given.
1310if test "${enable_profile+set}" = set; then
1311 enableval="$enable_profile"
1312 if test "$enableval" = "no"
1313then
1314 PROFILE_CMT=#
1315 MAKEFILE_PROFILE=/dev/null
1316 echo "Disabling profiling libraries"
1317else
1318 PROFILE_CMT=
1319 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
1320 PROFILED_LIB_EXT=_p.a
1321 echo "Building profiling libraries"
1322fi
1323
1324else
1325 PROFILE_CMT=#
1326MAKEFILE_PROFILE=/dev/null
1327echo "Disabling profiling libraries by default"
1328
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001329fi
1330
1331
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001332
1333# Check whether --enable-checker or --disable-checker was given.
1334if test "${enable_checker+set}" = set; then
1335 enableval="$enable_checker"
1336 if test "$enableval" = "no"
1337then
1338 CHECKER_CMT=#
1339 MAKEFILE_CHECKER=/dev/null
1340 echo "Disabling checker libraries"
1341else
1342 CHECKER_CMT=
1343 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
1344 echo "Building checker libraries"
1345fi
1346
1347else
1348 CHECKER_CMT=#
1349MAKEFILE_CHECKER=/dev/null
1350echo "Disabling checker libraries by default"
1351
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001352fi
1353
1354
1355
1356
1357
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001358
Theodore Ts'o782bebf2002-11-08 18:46:45 -05001359# Check whether --enable-jbd-debug or --disable-jbd-debug was given.
1360if test "${enable_jbd_debug+set}" = set; then
1361 enableval="$enable_jbd_debug"
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00001362 if test "$enableval" = "no"
1363then
1364 echo "Disabling journal debugging"
1365else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001366 cat >> confdefs.h <<\EOF
Theodore Ts'o8cf93332001-12-16 02:23:36 -05001367#define CONFIG_JBD_DEBUG 1
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00001368EOF
1369
1370 echo "Enabling journal debugging"
1371fi
1372
1373else
1374 echo "Disabling journal debugging by default"
1375
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001376fi
1377
Theodore Ts'of0a22d02003-02-22 13:19:53 -05001378# Check whether --enable-blkid-debug or --disable-blkid-debug was given.
1379if test "${enable_blkid_debug+set}" = set; then
1380 enableval="$enable_blkid_debug"
1381 if test "$enableval" = "no"
1382then
1383 echo "Disabling blkid debugging"
1384else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001385 cat >> confdefs.h <<\EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05001386#define CONFIG_BLKID_DEBUG 1
1387EOF
1388
1389 echo "Enabling blkid debugging"
1390fi
1391
1392else
1393 echo "Disabling blkid debugging by default"
1394
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001395fi
1396
Theodore Ts'o2a29f132003-05-05 12:08:47 -04001397# Check whether --enable-testio-debug or --disable-testio-debug was given.
1398if test "${enable_testio_debug+set}" = set; then
1399 enableval="$enable_testio_debug"
1400 if test "$enableval" = "no"
1401then
1402 echo "Disabling testio debugging"
1403else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001404 cat >> confdefs.h <<\EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04001405#define CONFIG_TESTIO_DEBUG 1
1406EOF
1407
1408 echo "Enabling testio debugging"
1409fi
1410
1411else
1412 echo "Disabling testio debugging by default"
1413
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001414fi
1415
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001416# Check whether --enable-swapfs or --disable-swapfs was given.
1417if test "${enable_swapfs+set}" = set; then
1418 enableval="$enable_swapfs"
1419 if test "$enableval" = "no"
1420then
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05001421 SWAPFS_CMT=#
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001422 echo "Disabling swapfs support"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001423else
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05001424 SWAPFS_CMT=
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001425 cat >> confdefs.h <<\EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001426#define ENABLE_SWAPFS 1
1427EOF
1428
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001429 echo "Enabling swapfs support"
1430fi
1431
1432else
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05001433 SWAPFS_CMT=
1434echo "Enabling swapfs support by default"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001435cat >> confdefs.h <<\EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001436#define ENABLE_SWAPFS 1
1437EOF
1438
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001439
1440fi
1441
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05001442
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001443# Check whether --enable-debugfs or --disable-debugfs was given.
1444if test "${enable_debugfs+set}" = set; then
1445 enableval="$enable_debugfs"
1446 if test "$enableval" = "no"
1447then
1448 echo "Disabling debugfs support"
1449 DEBUGFS_CMT="#"
1450else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001451 DEBUGFS_CMT=
1452 echo "Enabling debugfs support"
1453fi
1454
1455else
1456 echo "Enabling debugfs support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001457DEBUGFS_CMT=
1458
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001459fi
1460
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001461
1462# Check whether --enable-imager or --disable-imager was given.
1463if test "${enable_imager+set}" = set; then
1464 enableval="$enable_imager"
1465 if test "$enableval" = "no"
1466then
1467 echo "Disabling e2image support"
1468 IMAGER_CMT="#"
1469else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001470 IMAGER_CMT=
1471 echo "Enabling e2image support"
1472fi
1473
1474else
1475 echo "Enabling e2image support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001476IMAGER_CMT=
1477
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001478fi
1479
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001480
1481# Check whether --enable-resizer or --disable-resizer was given.
1482if test "${enable_resizer+set}" = set; then
1483 enableval="$enable_resizer"
1484 if test "$enableval" = "no"
1485then
1486 echo "Disabling e2resize support"
1487 RESIZER_CMT="#"
1488else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001489 RESIZER_CMT=
1490 echo "Enabling e2resize support"
1491fi
1492
1493else
1494 echo "Enabling e2resize support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001495RESIZER_CMT=
1496
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001497fi
1498
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001499
1500# Check whether --enable-dynamic-e2fsck or --disable-dynamic-e2fsck was given.
1501if test "${enable_dynamic_e2fsck+set}" = set; then
1502 enableval="$enable_dynamic_e2fsck"
1503 if test "$enableval" = "no"
1504then
1505 E2FSCK_TYPE=static
1506 echo "Building e2fsck statically"
1507else
1508 E2FSCK_TYPE=shared
1509 echo "Building e2fsck dynamically"
1510fi
1511
1512else
1513 E2FSCK_TYPE=static
1514echo "Building e2fsck statically by default"
1515
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001516fi
1517
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001518
1519# Check whether --enable-fsck or --disable-fsck was given.
1520if test "${enable_fsck+set}" = set; then
1521 enableval="$enable_fsck"
1522 if test "$enableval" = "no"
1523then
1524 FSCK_PROG='' FSCK_MAN=''
1525 echo "Not building fsck wrapper"
1526else
1527 FSCK_PROG=fsck FSCK_MAN=fsck.8
1528 echo "Building fsck wrapper"
1529fi
1530
1531else
1532 case "$host_os" in
Theodore Ts'oe3632402004-05-04 19:39:54 -04001533 gnu*)
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001534 FSCK_PROG='' FSCK_MAN=''
1535 echo "Not building fsck wrapper by default"
1536 ;;
1537 *)
1538 FSCK_PROG=fsck FSCK_MAN=fsck.8
1539 echo "Building fsck wrapper by default"
1540esac
1541
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001542fi
1543
1544
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001545
Theodore Ts'o5d407732004-09-18 14:53:14 -04001546# Check whether --enable-e2initrd-helper or --disable-e2initrd-helper was given.
1547if test "${enable_e2initrd_helper+set}" = set; then
1548 enableval="$enable_e2initrd_helper"
1549 if test "$enableval" = "no"
1550then
1551 E2INITRD_PROG='' E2INITRD_MAN=''
1552 echo "Not building e2initrd helper"
1553else
1554 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
1555 echo "Building e2initrd helper"
1556fi
1557
1558else
1559 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
1560echo "Building e2initrd helper by default"
1561
1562fi
1563
1564
1565
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001566MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
1567
1568# Check whether --enable-old-bitops or --disable-old-bitops was given.
1569if test "${enable_old_bitops+set}" = set; then
1570 enableval="$enable_old_bitops"
1571 if test "$enableval" = "no"
1572then
1573 echo "Using new (standard) bitmask operations"
1574else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001575 cat >> confdefs.h <<\EOF
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001576#define EXT2_OLD_BITOPS 1
1577EOF
1578
1579 echo "Using old (native) bitmask operations"
1580
1581fi
1582
1583else
1584 echo "Using standard bitmask operations by default"
1585
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001586fi
1587
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001588PACKAGE=e2fsprogs
1589VERSION="$E2FSPROGS_VERSION"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001590cat >> confdefs.h <<EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001591#define PACKAGE "$PACKAGE"
1592EOF
1593
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001594cat >> confdefs.h <<EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001595#define VERSION "$VERSION"
1596EOF
1597
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001598
1599
1600
1601
1602 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05001603echo "configure:1604: checking for inttypes.h" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001604if eval "test \"`echo '$''{'jm_ac_cv_header_inttypes_h'+set}'`\" = set"; then
1605 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001606else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001607 cat > conftest.$ac_ext <<EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05001608#line 1609 "configure"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001609#include "confdefs.h"
1610#include <sys/types.h>
1611#include <inttypes.h>
1612int main() {
1613uintmax_t i = (uintmax_t) -1;
1614; return 0; }
1615EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05001616if { (eval echo configure:1617: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001617 rm -rf conftest*
1618 jm_ac_cv_header_inttypes_h=yes
1619else
1620 echo "configure: failed program was:" >&5
1621 cat conftest.$ac_ext >&5
1622 rm -rf conftest*
1623 jm_ac_cv_header_inttypes_h=no
1624fi
1625rm -f conftest*
1626fi
1627
1628echo "$ac_t""$jm_ac_cv_header_inttypes_h" 1>&6
1629 if test $jm_ac_cv_header_inttypes_h = yes; then
1630 cat >> confdefs.h <<EOF
1631#define HAVE_INTTYPES_H_WITH_UINTMAX 1
1632EOF
1633
1634 fi
1635
1636
1637 echo $ac_n "checking for stdint.h""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05001638echo "configure:1639: checking for stdint.h" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001639if eval "test \"`echo '$''{'jm_ac_cv_header_stdint_h'+set}'`\" = set"; then
1640 echo $ac_n "(cached) $ac_c" 1>&6
1641else
1642 cat > conftest.$ac_ext <<EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05001643#line 1644 "configure"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001644#include "confdefs.h"
1645#include <sys/types.h>
1646#include <stdint.h>
1647int main() {
1648uintmax_t i = (uintmax_t) -1;
1649; return 0; }
1650EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05001651if { (eval echo configure:1652: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001652 rm -rf conftest*
1653 jm_ac_cv_header_stdint_h=yes
1654else
1655 echo "configure: failed program was:" >&5
1656 cat conftest.$ac_ext >&5
1657 rm -rf conftest*
1658 jm_ac_cv_header_stdint_h=no
1659fi
1660rm -f conftest*
1661fi
1662
1663echo "$ac_t""$jm_ac_cv_header_stdint_h" 1>&6
1664 if test $jm_ac_cv_header_stdint_h = yes; then
1665 cat >> confdefs.h <<EOF
1666#define HAVE_STDINT_H_WITH_UINTMAX 1
1667EOF
1668
1669 fi
1670
1671
1672 echo $ac_n "checking for unsigned long long""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05001673echo "configure:1674: checking for unsigned long long" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001674if eval "test \"`echo '$''{'ac_cv_type_unsigned_long_long'+set}'`\" = set"; then
1675 echo $ac_n "(cached) $ac_c" 1>&6
1676else
1677 cat > conftest.$ac_ext <<EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05001678#line 1679 "configure"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001679#include "confdefs.h"
1680unsigned long long ull = 1; int i = 63;
1681int main() {
1682unsigned long long ullmax = (unsigned long long) -1;
1683 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
1684; return 0; }
1685EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05001686if { (eval echo configure:1687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001687 rm -rf conftest*
1688 ac_cv_type_unsigned_long_long=yes
1689else
1690 echo "configure: failed program was:" >&5
1691 cat conftest.$ac_ext >&5
1692 rm -rf conftest*
1693 ac_cv_type_unsigned_long_long=no
1694fi
1695rm -f conftest*
1696fi
1697
1698echo "$ac_t""$ac_cv_type_unsigned_long_long" 1>&6
1699 if test $ac_cv_type_unsigned_long_long = yes; then
1700 cat >> confdefs.h <<\EOF
1701#define HAVE_UNSIGNED_LONG_LONG 1
1702EOF
1703
1704 fi
1705
1706
1707 if test "X$prefix" = "XNONE"; then
1708 acl_final_prefix="$ac_default_prefix"
1709 else
1710 acl_final_prefix="$prefix"
1711 fi
1712 if test "X$exec_prefix" = "XNONE"; then
1713 acl_final_exec_prefix='${prefix}'
1714 else
1715 acl_final_exec_prefix="$exec_prefix"
1716 fi
1717 acl_save_prefix="$prefix"
1718 prefix="$acl_final_prefix"
1719 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
1720 prefix="$acl_save_prefix"
1721
1722
1723 echo $ac_n "checking for shared library run path origin""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05001724echo "configure:1725: checking for shared library run path origin" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001725if eval "test \"`echo '$''{'acl_cv_rpath'+set}'`\" = set"; then
1726 echo $ac_n "(cached) $ac_c" 1>&6
1727else
1728
1729 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
1730 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
1731 . ./conftest.sh
1732 rm -f ./conftest.sh
1733 acl_cv_rpath=done
1734
1735fi
1736
1737echo "$ac_t""$acl_cv_rpath" 1>&6
1738 wl="$acl_cv_wl"
1739 libext="$acl_cv_libext"
1740 shlibext="$acl_cv_shlibext"
1741 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
1742 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
1743 hardcode_direct="$acl_cv_hardcode_direct"
1744 hardcode_minus_L="$acl_cv_hardcode_minus_L"
1745 sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
1746 sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
1747 # Check whether --enable-rpath or --disable-rpath was given.
1748if test "${enable_rpath+set}" = set; then
1749 enableval="$enable_rpath"
1750 :
1751else
1752 enable_rpath=yes
1753fi
1754
1755
1756echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05001757echo "configure:1758: checking whether ${MAKE-make} sets \${MAKE}" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001758set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1759if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1760 echo $ac_n "(cached) $ac_c" 1>&6
1761else
1762 cat > conftestmake <<\EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001763all:
1764 @echo 'ac_maketemp="${MAKE}"'
1765EOF
1766# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001767eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001768if test -n "$ac_maketemp"; then
1769 eval ac_cv_prog_make_${ac_make}_set=yes
1770else
1771 eval ac_cv_prog_make_${ac_make}_set=no
1772fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001773rm -f conftestmake
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001774fi
1775if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001776 echo "$ac_t""yes" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001777 SET_MAKE=
1778else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001779 echo "$ac_t""no" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001780 SET_MAKE="MAKE=${MAKE-make}"
1781fi
1782
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001783# Find a good install program. We prefer a C program (faster),
1784# so one script is as good as another. But avoid the broken or
1785# incompatible versions:
1786# SysV /etc/install, /usr/sbin/install
1787# SunOS /usr/etc/install
1788# IRIX /sbin/install
1789# AIX /bin/install
1790# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1791# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1792# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1793# ./install, which can be erroneously created by make from ./install.sh.
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001794echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05001795echo "configure:1796: checking for a BSD compatible install" >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001796if test -z "$INSTALL"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001797if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1798 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001799else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001800 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001801 for ac_dir in $PATH; do
1802 # Account for people who put trailing slashes in PATH elements.
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001803 case "$ac_dir/" in
1804 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001805 *)
1806 # OSF1 and SCO ODT 3.0 have their own names for install.
1807 # Don't use installbsd from OSF since it installs stuff as root
1808 # by default.
1809 for ac_prog in ginstall scoinst install; do
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001810 if test -f $ac_dir/$ac_prog; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001811 if test $ac_prog = install &&
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001812 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001813 # AIX install. It has an incompatible calling convention.
1814 :
1815 else
1816 ac_cv_path_install="$ac_dir/$ac_prog -c"
1817 break 2
1818 fi
1819 fi
1820 done
1821 ;;
1822 esac
1823 done
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001824 IFS="$ac_save_IFS"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001825
1826fi
1827 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001828 INSTALL="$ac_cv_path_install"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001829 else
1830 # As a last resort, use the slow shell script. We don't cache a
1831 # path for INSTALL within a source directory, because that will
1832 # break other packages using the cache if that directory is
1833 # removed, or if the path is relative.
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001834 INSTALL="$ac_install_sh"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001835 fi
1836fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001837echo "$ac_t""$INSTALL" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001838
1839# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1840# It thinks the first close brace ends the variable substitution.
1841test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1842
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001843test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001844
1845test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1846
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001847
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001848 MKINSTALLDIRS=
1849 if test -n "$ac_aux_dir"; then
1850 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
1851 fi
1852 if test -z "$MKINSTALLDIRS"; then
1853 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
1854 fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001855
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001856
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001857# Extract the first word of "ranlib", so it can be a program name with args.
1858set dummy ranlib; ac_word=$2
1859echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05001860echo "configure:1861: checking for $ac_word" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001861if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1862 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001863else
1864 if test -n "$RANLIB"; then
1865 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1866else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001867 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1868 ac_dummy="$PATH"
1869 for ac_dir in $ac_dummy; do
1870 test -z "$ac_dir" && ac_dir=.
1871 if test -f $ac_dir/$ac_word; then
1872 ac_cv_prog_RANLIB="ranlib"
1873 break
1874 fi
1875 done
1876 IFS="$ac_save_ifs"
1877 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001878fi
1879fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001880RANLIB="$ac_cv_prog_RANLIB"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001881if test -n "$RANLIB"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001882 echo "$ac_t""$RANLIB" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001883else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001884 echo "$ac_t""no" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001885fi
1886
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001887
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001888 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05001889echo "configure:1890: checking for strerror in -lcposix" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001890ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1891if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1892 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001893else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001894 ac_save_LIBS="$LIBS"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001895LIBS="-lcposix $LIBS"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001896cat > conftest.$ac_ext <<EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05001897#line 1898 "configure"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001898#include "confdefs.h"
1899/* Override any gcc2 internal prototype to avoid an error. */
1900/* We use char because int might match the return type of a gcc2
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001901 builtin and then its argument prototype would still apply. */
1902char strerror();
1903
1904int main() {
1905strerror()
1906; return 0; }
1907EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05001908if { (eval echo configure:1909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001909 rm -rf conftest*
1910 eval "ac_cv_lib_$ac_lib_var=yes"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001911else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001912 echo "configure: failed program was:" >&5
1913 cat conftest.$ac_ext >&5
1914 rm -rf conftest*
1915 eval "ac_cv_lib_$ac_lib_var=no"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001916fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001917rm -f conftest*
1918LIBS="$ac_save_LIBS"
1919
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001920fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001921if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1922 echo "$ac_t""yes" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001923 LIBS="$LIBS -lcposix"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001924else
1925 echo "$ac_t""no" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001926fi
1927
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001928
1929
1930echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05001931echo "configure:1932: checking for ANSI C header files" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001932if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1933 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001934else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001935 cat > conftest.$ac_ext <<EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05001936#line 1937 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001937#include "confdefs.h"
1938#include <stdlib.h>
1939#include <stdarg.h>
1940#include <string.h>
1941#include <float.h>
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001942EOF
1943ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05001944{ (eval echo configure:1945: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001945ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1946if test -z "$ac_err"; then
1947 rm -rf conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001948 ac_cv_header_stdc=yes
1949else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001950 echo "$ac_err" >&5
1951 echo "configure: failed program was:" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001952 cat conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001953 rm -rf conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001954 ac_cv_header_stdc=no
1955fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001956rm -f conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001957
1958if test $ac_cv_header_stdc = yes; then
1959 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001960cat > conftest.$ac_ext <<EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05001961#line 1962 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001962#include "confdefs.h"
1963#include <string.h>
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001964EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001965if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1966 egrep "memchr" >/dev/null 2>&1; then
1967 :
1968else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001969 rm -rf conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001970 ac_cv_header_stdc=no
1971fi
1972rm -f conftest*
1973
1974fi
1975
1976if test $ac_cv_header_stdc = yes; then
1977 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001978cat > conftest.$ac_ext <<EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05001979#line 1980 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001980#include "confdefs.h"
1981#include <stdlib.h>
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001982EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001983if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1984 egrep "free" >/dev/null 2>&1; then
1985 :
1986else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001987 rm -rf conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001988 ac_cv_header_stdc=no
1989fi
1990rm -f conftest*
1991
1992fi
1993
1994if test $ac_cv_header_stdc = yes; then
1995 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001996if test "$cross_compiling" = yes; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001997 :
1998else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001999 cat > conftest.$ac_ext <<EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05002000#line 2001 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002001#include "confdefs.h"
2002#include <ctype.h>
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002003#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2004#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002005#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002006int main () { int i; for (i = 0; i < 256; i++)
2007if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2008exit (0); }
2009
2010EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05002011if { (eval echo configure:2012: \"$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 -04002012then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002013 :
2014else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002015 echo "configure: failed program was:" >&5
2016 cat conftest.$ac_ext >&5
2017 rm -fr conftest*
2018 ac_cv_header_stdc=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002019fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002020rm -fr conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002021fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002022
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002023fi
2024fi
2025
2026echo "$ac_t""$ac_cv_header_stdc" 1>&6
2027if test $ac_cv_header_stdc = yes; then
2028 cat >> confdefs.h <<\EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002029#define STDC_HEADERS 1
2030EOF
2031
2032fi
2033
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002034echo $ac_n "checking for working const""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05002035echo "configure:2036: checking for working const" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002036if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2037 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002038else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002039 cat > conftest.$ac_ext <<EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05002040#line 2041 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002041#include "confdefs.h"
2042
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002043int main() {
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002044
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002045/* Ultrix mips cc rejects this. */
2046typedef int charset[2]; const charset x;
2047/* SunOS 4.1.1 cc rejects this. */
2048char const *const *ccp;
2049char **p;
2050/* NEC SVR4.0.2 mips cc rejects this. */
2051struct point {int x, y;};
2052static struct point const zero = {0,0};
2053/* AIX XL C 1.02.0.0 rejects this.
2054 It does not let you subtract one const X* pointer from another in an arm
2055 of an if-expression whose if-part is not a constant expression */
2056const char *g = "string";
2057ccp = &g + (g ? g-g : 0);
2058/* HPUX 7.0 cc rejects these. */
2059++ccp;
2060p = (char**) ccp;
2061ccp = (char const *const *) p;
2062{ /* SCO 3.2v4 cc rejects this. */
2063 char *t;
2064 char const *s = 0 ? (char *) 0 : (char const *) 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002065
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002066 *t++ = 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002067}
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002068{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2069 int x[] = {25, 17};
2070 const int *foo = &x[0];
2071 ++foo;
2072}
2073{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2074 typedef const int *iptr;
2075 iptr p = 0;
2076 ++p;
2077}
2078{ /* AIX XL C 1.02.0.0 rejects this saying
2079 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2080 struct s { int j; const int *ap[3]; };
2081 struct s *b; b->j = 5;
2082}
2083{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2084 const int foo = 10;
2085}
2086
2087; return 0; }
2088EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05002089if { (eval echo configure:2090: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002090 rm -rf conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002091 ac_cv_c_const=yes
2092else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002093 echo "configure: failed program was:" >&5
2094 cat conftest.$ac_ext >&5
2095 rm -rf conftest*
2096 ac_cv_c_const=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002097fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002098rm -f conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002099fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002100
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002101echo "$ac_t""$ac_cv_c_const" 1>&6
2102if test $ac_cv_c_const = no; then
2103 cat >> confdefs.h <<\EOF
2104#define const
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002105EOF
2106
2107fi
2108
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002109echo $ac_n "checking for inline""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05002110echo "configure:2111: checking for inline" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002111if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2112 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002113else
2114 ac_cv_c_inline=no
2115for ac_kw in inline __inline__ __inline; do
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002116 cat > conftest.$ac_ext <<EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05002117#line 2118 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002118#include "confdefs.h"
2119
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002120int main() {
2121} $ac_kw foo() {
2122; return 0; }
2123EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05002124if { (eval echo configure:2125: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002125 rm -rf conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002126 ac_cv_c_inline=$ac_kw; break
2127else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002128 echo "configure: failed program was:" >&5
2129 cat conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002130fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002131rm -f conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002132done
2133
2134fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002135
2136echo "$ac_t""$ac_cv_c_inline" 1>&6
2137case "$ac_cv_c_inline" in
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002138 inline | yes) ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002139 no) cat >> confdefs.h <<\EOF
2140#define inline
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002141EOF
2142 ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002143 *) cat >> confdefs.h <<EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002144#define inline $ac_cv_c_inline
2145EOF
2146 ;;
2147esac
2148
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002149echo $ac_n "checking for off_t""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05002150echo "configure:2151: checking for off_t" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002151if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2152 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002153else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002154 cat > conftest.$ac_ext <<EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05002155#line 2156 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002156#include "confdefs.h"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002157#include <sys/types.h>
2158#if STDC_HEADERS
2159#include <stdlib.h>
2160#include <stddef.h>
2161#endif
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002162EOF
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002163if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2164 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2165 rm -rf conftest*
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002166 ac_cv_type_off_t=yes
2167else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002168 rm -rf conftest*
2169 ac_cv_type_off_t=no
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002170fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002171rm -f conftest*
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002172
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002173fi
2174echo "$ac_t""$ac_cv_type_off_t" 1>&6
2175if test $ac_cv_type_off_t = no; then
2176 cat >> confdefs.h <<\EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002177#define off_t long
2178EOF
2179
2180fi
2181
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002182echo $ac_n "checking for size_t""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05002183echo "configure:2184: checking for size_t" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002184if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2185 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002186else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002187 cat > conftest.$ac_ext <<EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05002188#line 2189 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002189#include "confdefs.h"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002190#include <sys/types.h>
2191#if STDC_HEADERS
2192#include <stdlib.h>
2193#include <stddef.h>
2194#endif
2195EOF
2196if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2197 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2198 rm -rf conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002199 ac_cv_type_size_t=yes
2200else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002201 rm -rf conftest*
2202 ac_cv_type_size_t=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002203fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002204rm -f conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002205
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002206fi
2207echo "$ac_t""$ac_cv_type_size_t" 1>&6
2208if test $ac_cv_type_size_t = no; then
2209 cat >> confdefs.h <<\EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002210#define size_t unsigned
2211EOF
2212
2213fi
2214
2215# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2216# for constant arguments. Useless!
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002217echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05002218echo "configure:2219: checking for working alloca.h" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002219if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2220 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002221else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002222 cat > conftest.$ac_ext <<EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05002223#line 2224 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002224#include "confdefs.h"
2225#include <alloca.h>
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002226int main() {
2227char *p = alloca(2 * sizeof(int));
2228; return 0; }
2229EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05002230if { (eval echo configure:2231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002231 rm -rf conftest*
2232 ac_cv_header_alloca_h=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002233else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002234 echo "configure: failed program was:" >&5
2235 cat conftest.$ac_ext >&5
2236 rm -rf conftest*
2237 ac_cv_header_alloca_h=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002238fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002239rm -f conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002240fi
2241
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002242echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2243if test $ac_cv_header_alloca_h = yes; then
2244 cat >> confdefs.h <<\EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002245#define HAVE_ALLOCA_H 1
2246EOF
2247
2248fi
2249
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002250echo $ac_n "checking for alloca""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05002251echo "configure:2252: checking for alloca" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002252if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2253 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002254else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002255 cat > conftest.$ac_ext <<EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05002256#line 2257 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002257#include "confdefs.h"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002258
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002259#ifdef __GNUC__
2260# define alloca __builtin_alloca
2261#else
2262# ifdef _MSC_VER
2263# include <malloc.h>
2264# define alloca _alloca
2265# else
2266# if HAVE_ALLOCA_H
2267# include <alloca.h>
2268# else
2269# ifdef _AIX
2270 #pragma alloca
2271# else
2272# ifndef alloca /* predefined by HP cc +Olibcalls */
2273char *alloca ();
2274# endif
2275# endif
2276# endif
2277# endif
2278#endif
2279
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002280int main() {
2281char *p = (char *) alloca(1);
2282; return 0; }
2283EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05002284if { (eval echo configure:2285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002285 rm -rf conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002286 ac_cv_func_alloca_works=yes
2287else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002288 echo "configure: failed program was:" >&5
2289 cat conftest.$ac_ext >&5
2290 rm -rf conftest*
2291 ac_cv_func_alloca_works=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002292fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002293rm -f conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002294fi
2295
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002296echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002297if test $ac_cv_func_alloca_works = yes; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002298 cat >> confdefs.h <<\EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002299#define HAVE_ALLOCA 1
2300EOF
2301
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002302fi
2303
2304if test $ac_cv_func_alloca_works = no; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002305 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002306 # that cause trouble. Some versions do not even contain alloca or
2307 # contain a buggy version. If you still want to use their alloca,
2308 # use ar to extract alloca.o from them instead of compiling alloca.c.
2309 ALLOCA=alloca.${ac_objext}
2310 cat >> confdefs.h <<\EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002311#define C_ALLOCA 1
2312EOF
2313
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002314
2315echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05002316echo "configure:2317: checking whether alloca needs Cray hooks" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002317if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2318 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002319else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002320 cat > conftest.$ac_ext <<EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05002321#line 2322 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002322#include "confdefs.h"
2323#if defined(CRAY) && ! defined(CRAY2)
2324webecray
2325#else
2326wenotbecray
2327#endif
2328
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002329EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002330if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2331 egrep "webecray" >/dev/null 2>&1; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002332 rm -rf conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002333 ac_cv_os_cray=yes
2334else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002335 rm -rf conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002336 ac_cv_os_cray=no
2337fi
2338rm -f conftest*
2339
2340fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002341
2342echo "$ac_t""$ac_cv_os_cray" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002343if test $ac_cv_os_cray = yes; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002344for ac_func in _getb67 GETB67 getb67; do
2345 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05002346echo "configure:2347: checking for $ac_func" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002347if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2348 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002349else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002350 cat > conftest.$ac_ext <<EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05002351#line 2352 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002352#include "confdefs.h"
2353/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002354 which can conflict with char $ac_func(); below. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002355#include <assert.h>
2356/* Override any gcc2 internal prototype to avoid an error. */
2357/* We use char because int might match the return type of a gcc2
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002358 builtin and then its argument prototype would still apply. */
2359char $ac_func();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002360
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002361int main() {
2362
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002363/* The GNU C library defines this for functions which it implements
2364 to always fail with ENOSYS. Some functions are actually named
2365 something starting with __ and the normal name is an alias. */
2366#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2367choke me
2368#else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002369$ac_func();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002370#endif
2371
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002372; return 0; }
2373EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05002374if { (eval echo configure:2375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002375 rm -rf conftest*
2376 eval "ac_cv_func_$ac_func=yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002377else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002378 echo "configure: failed program was:" >&5
2379 cat conftest.$ac_ext >&5
2380 rm -rf conftest*
2381 eval "ac_cv_func_$ac_func=no"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002382fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002383rm -f conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002384fi
2385
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002386if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2387 echo "$ac_t""yes" 1>&6
2388 cat >> confdefs.h <<EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002389#define CRAY_STACKSEG_END $ac_func
2390EOF
2391
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002392 break
2393else
2394 echo "$ac_t""no" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002395fi
2396
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002397done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002398fi
2399
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002400echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05002401echo "configure:2402: checking stack direction for C alloca" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002402if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2403 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002404else
2405 if test "$cross_compiling" = yes; then
2406 ac_cv_c_stack_direction=0
2407else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002408 cat > conftest.$ac_ext <<EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05002409#line 2410 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002410#include "confdefs.h"
2411find_stack_direction ()
2412{
2413 static char *addr = 0;
2414 auto char dummy;
2415 if (addr == 0)
2416 {
2417 addr = &dummy;
2418 return find_stack_direction ();
2419 }
2420 else
2421 return (&dummy > addr) ? 1 : -1;
2422}
2423main ()
2424{
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002425 exit (find_stack_direction() < 0);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002426}
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002427EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05002428if { (eval echo configure:2429: \"$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 -04002429then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002430 ac_cv_c_stack_direction=1
2431else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002432 echo "configure: failed program was:" >&5
2433 cat conftest.$ac_ext >&5
2434 rm -fr conftest*
2435 ac_cv_c_stack_direction=-1
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002436fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002437rm -fr conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002438fi
2439
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002440fi
2441
2442echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2443cat >> confdefs.h <<EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002444#define STACK_DIRECTION $ac_cv_c_stack_direction
2445EOF
2446
2447fi
2448
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002449for ac_hdr in unistd.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002450do
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002451ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2452echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05002453echo "configure:2454: checking for $ac_hdr" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002454if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2455 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002456else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002457 cat > conftest.$ac_ext <<EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05002458#line 2459 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002459#include "confdefs.h"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002460#include <$ac_hdr>
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002461EOF
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002462ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05002463{ (eval echo configure:2464: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002464ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2465if test -z "$ac_err"; then
2466 rm -rf conftest*
2467 eval "ac_cv_header_$ac_safe=yes"
2468else
2469 echo "$ac_err" >&5
2470 echo "configure: failed program was:" >&5
2471 cat conftest.$ac_ext >&5
2472 rm -rf conftest*
2473 eval "ac_cv_header_$ac_safe=no"
2474fi
2475rm -f conftest*
2476fi
2477if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2478 echo "$ac_t""yes" 1>&6
2479 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2480 cat >> confdefs.h <<EOF
2481#define $ac_tr_hdr 1
2482EOF
2483
2484else
2485 echo "$ac_t""no" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002486fi
2487done
2488
2489for ac_func in getpagesize
2490do
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002491echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05002492echo "configure:2493: checking for $ac_func" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002493if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2494 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002495else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002496 cat > conftest.$ac_ext <<EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05002497#line 2498 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002498#include "confdefs.h"
2499/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002500 which can conflict with char $ac_func(); below. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002501#include <assert.h>
2502/* Override any gcc2 internal prototype to avoid an error. */
2503/* We use char because int might match the return type of a gcc2
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002504 builtin and then its argument prototype would still apply. */
2505char $ac_func();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002506
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002507int main() {
2508
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002509/* The GNU C library defines this for functions which it implements
2510 to always fail with ENOSYS. Some functions are actually named
2511 something starting with __ and the normal name is an alias. */
2512#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2513choke me
2514#else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002515$ac_func();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002516#endif
2517
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002518; return 0; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002519EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05002520if { (eval echo configure:2521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002521 rm -rf conftest*
2522 eval "ac_cv_func_$ac_func=yes"
2523else
2524 echo "configure: failed program was:" >&5
2525 cat conftest.$ac_ext >&5
2526 rm -rf conftest*
2527 eval "ac_cv_func_$ac_func=no"
2528fi
2529rm -f conftest*
2530fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002531
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002532if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2533 echo "$ac_t""yes" 1>&6
2534 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2535 cat >> confdefs.h <<EOF
2536#define $ac_tr_func 1
2537EOF
2538
2539else
2540 echo "$ac_t""no" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002541fi
2542done
2543
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002544echo $ac_n "checking for working mmap""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05002545echo "configure:2546: checking for working mmap" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002546if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2547 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002548else
2549 if test "$cross_compiling" = yes; then
2550 ac_cv_func_mmap_fixed_mapped=no
2551else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002552 cat > conftest.$ac_ext <<EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05002553#line 2554 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002554#include "confdefs.h"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002555
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002556/* Thanks to Mike Haertel and Jim Avera for this test.
2557 Here is a matrix of mmap possibilities:
2558 mmap private not fixed
2559 mmap private fixed at somewhere currently unmapped
2560 mmap private fixed at somewhere already mapped
2561 mmap shared not fixed
2562 mmap shared fixed at somewhere currently unmapped
2563 mmap shared fixed at somewhere already mapped
2564 For private mappings, we should verify that changes cannot be read()
2565 back from the file, nor mmap's back from the file at a different
2566 address. (There have been systems where private was not correctly
2567 implemented like the infamous i386 svr4.0, and systems where the
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002568 VM page cache was not coherent with the filesystem buffer cache
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002569 like early versions of FreeBSD and possibly contemporary NetBSD.)
2570 For shared mappings, we should conversely verify that changes get
2571 propogated back to all the places they're supposed to be.
2572
2573 Grep wants private fixed already mapped.
2574 The main things grep needs to know about mmap are:
2575 * does it exist and is it safe to write into the mmap'd area
2576 * how to use it (BSD variants) */
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002577#include <sys/types.h>
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002578#include <fcntl.h>
2579#include <sys/mman.h>
2580
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002581/* This mess was copied from the GNU getpagesize.h. */
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002582#ifndef HAVE_GETPAGESIZE
2583# ifdef HAVE_UNISTD_H
2584# include <unistd.h>
2585# endif
2586
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002587/* Assume that all systems that can run configure have sys/param.h. */
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002588# ifndef HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002589# define HAVE_SYS_PARAM_H 1
2590# endif
2591
2592# ifdef _SC_PAGESIZE
2593# define getpagesize() sysconf(_SC_PAGESIZE)
2594# else /* no _SC_PAGESIZE */
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002595# ifdef HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002596# include <sys/param.h>
2597# ifdef EXEC_PAGESIZE
2598# define getpagesize() EXEC_PAGESIZE
2599# else /* no EXEC_PAGESIZE */
2600# ifdef NBPG
2601# define getpagesize() NBPG * CLSIZE
2602# ifndef CLSIZE
2603# define CLSIZE 1
2604# endif /* no CLSIZE */
2605# else /* no NBPG */
2606# ifdef NBPC
2607# define getpagesize() NBPC
2608# else /* no NBPC */
2609# ifdef PAGESIZE
2610# define getpagesize() PAGESIZE
2611# endif /* PAGESIZE */
2612# endif /* no NBPC */
2613# endif /* no NBPG */
2614# endif /* no EXEC_PAGESIZE */
2615# else /* no HAVE_SYS_PARAM_H */
2616# define getpagesize() 8192 /* punt totally */
2617# endif /* no HAVE_SYS_PARAM_H */
2618# endif /* no _SC_PAGESIZE */
2619
2620#endif /* no HAVE_GETPAGESIZE */
2621
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002622#ifdef __cplusplus
2623extern "C" { void *malloc(unsigned); }
2624#else
2625char *malloc();
2626#endif
2627
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002628int
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002629main()
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002630{
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002631 char *data, *data2, *data3;
2632 int i, pagesize;
2633 int fd;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002634
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002635 pagesize = getpagesize();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002636
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002637 /*
2638 * First, make a file with some known garbage in it.
2639 */
2640 data = malloc(pagesize);
2641 if (!data)
2642 exit(1);
2643 for (i = 0; i < pagesize; ++i)
2644 *(data + i) = rand();
2645 umask(0);
2646 fd = creat("conftestmmap", 0600);
2647 if (fd < 0)
2648 exit(1);
2649 if (write(fd, data, pagesize) != pagesize)
2650 exit(1);
2651 close(fd);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002652
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002653 /*
2654 * Next, try to mmap the file at a fixed address which
2655 * already has something else allocated at it. If we can,
2656 * also make sure that we see the same garbage.
2657 */
2658 fd = open("conftestmmap", O_RDWR);
2659 if (fd < 0)
2660 exit(1);
2661 data2 = malloc(2 * pagesize);
2662 if (!data2)
2663 exit(1);
2664 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2665 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2666 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2667 exit(1);
2668 for (i = 0; i < pagesize; ++i)
2669 if (*(data + i) != *(data2 + i))
2670 exit(1);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002671
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002672 /*
2673 * Finally, make sure that changes to the mapped area
2674 * do not percolate back to the file as seen by read().
2675 * (This is a bug on some variants of i386 svr4.0.)
2676 */
2677 for (i = 0; i < pagesize; ++i)
2678 *(data2 + i) = *(data2 + i) + 1;
2679 data3 = malloc(pagesize);
2680 if (!data3)
2681 exit(1);
2682 if (read(fd, data3, pagesize) != pagesize)
2683 exit(1);
2684 for (i = 0; i < pagesize; ++i)
2685 if (*(data + i) != *(data3 + i))
2686 exit(1);
2687 close(fd);
2688 unlink("conftestmmap");
2689 exit(0);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002690}
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002691
2692EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05002693if { (eval echo configure:2694: \"$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 -04002694then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002695 ac_cv_func_mmap_fixed_mapped=yes
2696else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002697 echo "configure: failed program was:" >&5
2698 cat conftest.$ac_ext >&5
2699 rm -fr conftest*
2700 ac_cv_func_mmap_fixed_mapped=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002701fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002702rm -fr conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002703fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002704
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002705fi
2706
2707echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2708if test $ac_cv_func_mmap_fixed_mapped = yes; then
2709 cat >> confdefs.h <<\EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002710#define HAVE_MMAP 1
2711EOF
2712
2713fi
2714
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002715
2716 echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05002717echo "configure:2718: checking whether we are using the GNU C Library 2.1 or newer" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002718if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
2719 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002720else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002721 cat > conftest.$ac_ext <<EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05002722#line 2723 "configure"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002723#include "confdefs.h"
2724
2725#include <features.h>
2726#ifdef __GNU_LIBRARY__
2727 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
2728 Lucky GNU user
2729 #endif
2730#endif
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002731
2732EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002733if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2734 egrep "Lucky GNU user" >/dev/null 2>&1; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002735 rm -rf conftest*
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002736 ac_cv_gnu_library_2_1=yes
2737else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002738 rm -rf conftest*
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002739 ac_cv_gnu_library_2_1=no
2740fi
2741rm -f conftest*
2742
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002743
2744
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002745fi
2746
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002747echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
2748
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002749 GLIBC21="$ac_cv_gnu_library_2_1"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002750
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002751
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002752
2753
2754 echo $ac_n "checking whether integer division by zero raises SIGFPE""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05002755echo "configure:2756: checking whether integer division by zero raises SIGFPE" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002756if eval "test \"`echo '$''{'gt_cv_int_divbyzero_sigfpe'+set}'`\" = set"; then
2757 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002758else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002759
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002760 if test "$cross_compiling" = yes; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002761
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002762 # Guess based on the CPU.
2763 case "$host_cpu" in
2764 alpha* | i3456786 | m68k | s390*)
2765 gt_cv_int_divbyzero_sigfpe="guessing yes";;
2766 *)
2767 gt_cv_int_divbyzero_sigfpe="guessing no";;
2768 esac
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002769
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002770else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002771 cat > conftest.$ac_ext <<EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05002772#line 2773 "configure"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002773#include "confdefs.h"
2774
2775#include <stdlib.h>
2776#include <signal.h>
2777
2778static void
2779#ifdef __cplusplus
2780sigfpe_handler (int sig)
2781#else
2782sigfpe_handler (sig) int sig;
2783#endif
2784{
2785 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
2786 exit (sig != SIGFPE);
2787}
2788
2789int x = 1;
2790int y = 0;
2791int z;
2792int nan;
2793
2794int main ()
2795{
2796 signal (SIGFPE, sigfpe_handler);
2797/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
2798#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
2799 signal (SIGTRAP, sigfpe_handler);
2800#endif
2801/* Linux/SPARC yields signal SIGILL. */
2802#if defined (__sparc__) && defined (__linux__)
2803 signal (SIGILL, sigfpe_handler);
2804#endif
2805
2806 z = x / y;
2807 nan = y / y;
2808 exit (1);
2809}
2810
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002811EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05002812if { (eval echo configure:2813: \"$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 -04002813then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002814 gt_cv_int_divbyzero_sigfpe=yes
2815else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002816 echo "configure: failed program was:" >&5
2817 cat conftest.$ac_ext >&5
2818 rm -fr conftest*
2819 gt_cv_int_divbyzero_sigfpe=no
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002820fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002821rm -fr conftest*
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002822fi
2823
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002824
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002825fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002826
2827echo "$ac_t""$gt_cv_int_divbyzero_sigfpe" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002828 case "$gt_cv_int_divbyzero_sigfpe" in
2829 *yes) value=1;;
2830 *) value=0;;
2831 esac
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002832 cat >> confdefs.h <<EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002833#define INTDIV0_RAISES_SIGFPE $value
2834EOF
2835
2836
2837
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002838
2839
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002840 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 -04002841
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002842 test $ac_cv_type_unsigned_long_long = yes \
2843 && ac_type='unsigned long long' \
2844 || ac_type='unsigned long'
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002845 cat >> confdefs.h <<EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002846#define uintmax_t $ac_type
2847EOF
2848
2849 fi
2850
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002851
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002852 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05002853echo "configure:2854: checking for inttypes.h" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002854if eval "test \"`echo '$''{'gt_cv_header_inttypes_h'+set}'`\" = set"; then
2855 echo $ac_n "(cached) $ac_c" 1>&6
2856else
2857
2858 cat > conftest.$ac_ext <<EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05002859#line 2860 "configure"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002860#include "confdefs.h"
2861#include <sys/types.h>
2862#include <inttypes.h>
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002863int main() {
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002864
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002865; return 0; }
2866EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05002867if { (eval echo configure:2868: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002868 rm -rf conftest*
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002869 gt_cv_header_inttypes_h=yes
2870else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002871 echo "configure: failed program was:" >&5
2872 cat conftest.$ac_ext >&5
2873 rm -rf conftest*
2874 gt_cv_header_inttypes_h=no
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002875fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002876rm -f conftest*
2877
2878fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002879
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002880echo "$ac_t""$gt_cv_header_inttypes_h" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002881 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002882 cat >> confdefs.h <<EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002883#define HAVE_INTTYPES_H 1
2884EOF
2885
2886 fi
2887
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002888
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002889
2890 if test $gt_cv_header_inttypes_h = yes; then
2891 echo $ac_n "checking whether the inttypes.h PRIxNN macros are broken""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05002892echo "configure:2893: checking whether the inttypes.h PRIxNN macros are broken" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002893if eval "test \"`echo '$''{'gt_cv_inttypes_pri_broken'+set}'`\" = set"; then
2894 echo $ac_n "(cached) $ac_c" 1>&6
2895else
2896
2897 cat > conftest.$ac_ext <<EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05002898#line 2899 "configure"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002899#include "confdefs.h"
2900#include <inttypes.h>
2901#ifdef PRId32
2902char *p = PRId32;
2903#endif
2904
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002905int main() {
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002906
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002907; return 0; }
2908EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05002909if { (eval echo configure:2910: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002910 rm -rf conftest*
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002911 gt_cv_inttypes_pri_broken=no
2912else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002913 echo "configure: failed program was:" >&5
2914 cat conftest.$ac_ext >&5
2915 rm -rf conftest*
2916 gt_cv_inttypes_pri_broken=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002917fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002918rm -f conftest*
2919
2920fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002921
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002922echo "$ac_t""$gt_cv_inttypes_pri_broken" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002923 fi
2924 if test "$gt_cv_inttypes_pri_broken" = yes; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002925 cat >> confdefs.h <<EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002926#define PRI_MACROS_BROKEN 1
2927EOF
2928
2929 fi
2930
2931
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002932
2933
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002934
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002935
2936
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002937 use_additional=yes
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002938
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002939 acl_save_prefix="$prefix"
2940 prefix="$acl_final_prefix"
2941 acl_save_exec_prefix="$exec_prefix"
2942 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002943
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002944 eval additional_includedir=\"$includedir\"
2945 eval additional_libdir=\"$libdir\"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002946
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002947 exec_prefix="$acl_save_exec_prefix"
2948 prefix="$acl_save_prefix"
2949
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002950 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002951if test "${with_libiconv_prefix+set}" = set; then
2952 withval="$with_libiconv_prefix"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002953
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002954 if test "X$withval" = "Xno"; then
2955 use_additional=no
2956 else
2957 if test "X$withval" = "X"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002958
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002959 acl_save_prefix="$prefix"
2960 prefix="$acl_final_prefix"
2961 acl_save_exec_prefix="$exec_prefix"
2962 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002963
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002964 eval additional_includedir=\"$includedir\"
2965 eval additional_libdir=\"$libdir\"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002966
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002967 exec_prefix="$acl_save_exec_prefix"
2968 prefix="$acl_save_prefix"
2969
2970 else
2971 additional_includedir="$withval/include"
2972 additional_libdir="$withval/lib"
2973 fi
2974 fi
2975
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002976fi
2977
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002978 LIBICONV=
2979 LTLIBICONV=
2980 INCICONV=
2981 rpathdirs=
2982 ltrpathdirs=
2983 names_already_handled=
2984 names_next_round='iconv '
2985 while test -n "$names_next_round"; do
2986 names_this_round="$names_next_round"
2987 names_next_round=
2988 for name in $names_this_round; do
2989 already_handled=
2990 for n in $names_already_handled; do
2991 if test "$n" = "$name"; then
2992 already_handled=yes
2993 break
2994 fi
2995 done
2996 if test -z "$already_handled"; then
2997 names_already_handled="$names_already_handled $name"
2998 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
2999 eval value=\"\$HAVE_LIB$uppername\"
3000 if test -n "$value"; then
3001 if test "$value" = yes; then
3002 eval value=\"\$LIB$uppername\"
3003 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
3004 eval value=\"\$LTLIB$uppername\"
3005 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
3006 else
3007 :
3008 fi
3009 else
3010 found_dir=
3011 found_la=
3012 found_so=
3013 found_a=
3014 if test $use_additional = yes; then
3015 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
3016 found_dir="$additional_libdir"
3017 found_so="$additional_libdir/lib$name.$shlibext"
3018 if test -f "$additional_libdir/lib$name.la"; then
3019 found_la="$additional_libdir/lib$name.la"
3020 fi
3021 else
3022 if test -f "$additional_libdir/lib$name.$libext"; then
3023 found_dir="$additional_libdir"
3024 found_a="$additional_libdir/lib$name.$libext"
3025 if test -f "$additional_libdir/lib$name.la"; then
3026 found_la="$additional_libdir/lib$name.la"
3027 fi
3028 fi
3029 fi
3030 fi
3031 if test "X$found_dir" = "X"; then
3032 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003033
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003034 acl_save_prefix="$prefix"
3035 prefix="$acl_final_prefix"
3036 acl_save_exec_prefix="$exec_prefix"
3037 exec_prefix="$acl_final_exec_prefix"
3038 eval x=\"$x\"
3039 exec_prefix="$acl_save_exec_prefix"
3040 prefix="$acl_save_prefix"
3041
3042 case "$x" in
3043 -L*)
3044 dir=`echo "X$x" | sed -e 's/^X-L//'`
3045 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
3046 found_dir="$dir"
3047 found_so="$dir/lib$name.$shlibext"
3048 if test -f "$dir/lib$name.la"; then
3049 found_la="$dir/lib$name.la"
3050 fi
3051 else
3052 if test -f "$dir/lib$name.$libext"; then
3053 found_dir="$dir"
3054 found_a="$dir/lib$name.$libext"
3055 if test -f "$dir/lib$name.la"; then
3056 found_la="$dir/lib$name.la"
3057 fi
3058 fi
3059 fi
3060 ;;
3061 esac
3062 if test "X$found_dir" != "X"; then
3063 break
3064 fi
3065 done
3066 fi
3067 if test "X$found_dir" != "X"; then
3068 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
3069 if test "X$found_so" != "X"; then
3070 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
3071 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
3072 else
3073 haveit=
3074 for x in $ltrpathdirs; do
3075 if test "X$x" = "X$found_dir"; then
3076 haveit=yes
3077 break
3078 fi
3079 done
3080 if test -z "$haveit"; then
3081 ltrpathdirs="$ltrpathdirs $found_dir"
3082 fi
3083 if test "$hardcode_direct" = yes; then
3084 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
3085 else
3086 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
3087 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
3088 haveit=
3089 for x in $rpathdirs; do
3090 if test "X$x" = "X$found_dir"; then
3091 haveit=yes
3092 break
3093 fi
3094 done
3095 if test -z "$haveit"; then
3096 rpathdirs="$rpathdirs $found_dir"
3097 fi
3098 else
3099 haveit=
3100 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003101
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003102 acl_save_prefix="$prefix"
3103 prefix="$acl_final_prefix"
3104 acl_save_exec_prefix="$exec_prefix"
3105 exec_prefix="$acl_final_exec_prefix"
3106 eval x=\"$x\"
3107 exec_prefix="$acl_save_exec_prefix"
3108 prefix="$acl_save_prefix"
3109
3110 if test "X$x" = "X-L$found_dir"; then
3111 haveit=yes
3112 break
3113 fi
3114 done
3115 if test -z "$haveit"; then
3116 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
3117 fi
3118 if test "$hardcode_minus_L" != no; then
3119 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
3120 else
3121 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
3122 fi
3123 fi
3124 fi
3125 fi
3126 else
3127 if test "X$found_a" != "X"; then
3128 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
3129 else
3130 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
3131 fi
3132 fi
3133 additional_includedir=
3134 case "$found_dir" in
3135 */lib | */lib/)
3136 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
3137 additional_includedir="$basedir/include"
3138 ;;
3139 esac
3140 if test "X$additional_includedir" != "X"; then
3141 if test "X$additional_includedir" != "X/usr/include"; then
3142 haveit=
3143 if test "X$additional_includedir" = "X/usr/local/include"; then
3144 if test -n "$GCC"; then
3145 case $host_os in
3146 linux*) haveit=yes;;
3147 esac
3148 fi
3149 fi
3150 if test -z "$haveit"; then
3151 for x in $CPPFLAGS $INCICONV; do
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003152
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003153 acl_save_prefix="$prefix"
3154 prefix="$acl_final_prefix"
3155 acl_save_exec_prefix="$exec_prefix"
3156 exec_prefix="$acl_final_exec_prefix"
3157 eval x=\"$x\"
3158 exec_prefix="$acl_save_exec_prefix"
3159 prefix="$acl_save_prefix"
3160
3161 if test "X$x" = "X-I$additional_includedir"; then
3162 haveit=yes
3163 break
3164 fi
3165 done
3166 if test -z "$haveit"; then
3167 if test -d "$additional_includedir"; then
3168 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
3169 fi
3170 fi
3171 fi
3172 fi
3173 fi
3174 if test -n "$found_la"; then
3175 save_libdir="$libdir"
3176 case "$found_la" in
3177 */* | *\\*) . "$found_la" ;;
3178 *) . "./$found_la" ;;
3179 esac
3180 libdir="$save_libdir"
3181 for dep in $dependency_libs; do
3182 case "$dep" in
3183 -L*)
3184 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
3185 if test "X$additional_libdir" != "X/usr/lib"; then
3186 haveit=
3187 if test "X$additional_libdir" = "X/usr/local/lib"; then
3188 if test -n "$GCC"; then
3189 case $host_os in
3190 linux*) haveit=yes;;
3191 esac
3192 fi
3193 fi
3194 if test -z "$haveit"; then
3195 haveit=
3196 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003197
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003198 acl_save_prefix="$prefix"
3199 prefix="$acl_final_prefix"
3200 acl_save_exec_prefix="$exec_prefix"
3201 exec_prefix="$acl_final_exec_prefix"
3202 eval x=\"$x\"
3203 exec_prefix="$acl_save_exec_prefix"
3204 prefix="$acl_save_prefix"
3205
3206 if test "X$x" = "X-L$additional_libdir"; then
3207 haveit=yes
3208 break
3209 fi
3210 done
3211 if test -z "$haveit"; then
3212 if test -d "$additional_libdir"; then
3213 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
3214 fi
3215 fi
3216 haveit=
3217 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003218
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003219 acl_save_prefix="$prefix"
3220 prefix="$acl_final_prefix"
3221 acl_save_exec_prefix="$exec_prefix"
3222 exec_prefix="$acl_final_exec_prefix"
3223 eval x=\"$x\"
3224 exec_prefix="$acl_save_exec_prefix"
3225 prefix="$acl_save_prefix"
3226
3227 if test "X$x" = "X-L$additional_libdir"; then
3228 haveit=yes
3229 break
3230 fi
3231 done
3232 if test -z "$haveit"; then
3233 if test -d "$additional_libdir"; then
3234 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
3235 fi
3236 fi
3237 fi
3238 fi
3239 ;;
3240 -R*)
3241 dir=`echo "X$dep" | sed -e 's/^X-R//'`
3242 if test "$enable_rpath" != no; then
3243 haveit=
3244 for x in $rpathdirs; do
3245 if test "X$x" = "X$dir"; then
3246 haveit=yes
3247 break
3248 fi
3249 done
3250 if test -z "$haveit"; then
3251 rpathdirs="$rpathdirs $dir"
3252 fi
3253 haveit=
3254 for x in $ltrpathdirs; do
3255 if test "X$x" = "X$dir"; then
3256 haveit=yes
3257 break
3258 fi
3259 done
3260 if test -z "$haveit"; then
3261 ltrpathdirs="$ltrpathdirs $dir"
3262 fi
3263 fi
3264 ;;
3265 -l*)
3266 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
3267 ;;
3268 *.la)
3269 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
3270 ;;
3271 *)
3272 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
3273 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
3274 ;;
3275 esac
3276 done
3277 fi
3278 else
3279 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
3280 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
3281 fi
3282 fi
3283 fi
3284 done
3285 done
3286 if test "X$rpathdirs" != "X"; then
3287 if test -n "$hardcode_libdir_separator"; then
3288 alldirs=
3289 for found_dir in $rpathdirs; do
3290 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
3291 done
3292 acl_save_libdir="$libdir"
3293 libdir="$alldirs"
3294 eval flag=\"$hardcode_libdir_flag_spec\"
3295 libdir="$acl_save_libdir"
3296 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
3297 else
3298 for found_dir in $rpathdirs; do
3299 acl_save_libdir="$libdir"
3300 libdir="$found_dir"
3301 eval flag=\"$hardcode_libdir_flag_spec\"
3302 libdir="$acl_save_libdir"
3303 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
3304 done
3305 fi
3306 fi
3307 if test "X$ltrpathdirs" != "X"; then
3308 for found_dir in $ltrpathdirs; do
3309 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
3310 done
3311 fi
3312
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003313
3314
3315
3316
3317 # Extract the first word of "msgfmt", so it can be a program name with args.
3318set dummy msgfmt; ac_word=$2
3319echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05003320echo "configure:3321: checking for $ac_word" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003321if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3322 echo $ac_n "(cached) $ac_c" 1>&6
3323else
3324 case "$MSGFMT" in
3325 /*)
3326 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3327 ;;
3328 *)
3329 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3330 for ac_dir in $PATH; do
3331 test -z "$ac_dir" && ac_dir=.
3332 if test -f $ac_dir/$ac_word; then
3333 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
3334 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3335 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3336 break
3337 fi
3338 fi
3339 done
3340 IFS="$ac_save_ifs"
3341 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
3342 ;;
3343esac
3344fi
3345MSGFMT="$ac_cv_path_MSGFMT"
3346if test "$MSGFMT" != ":"; then
3347 echo "$ac_t""$MSGFMT" 1>&6
3348else
3349 echo "$ac_t""no" 1>&6
3350fi
3351
3352 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3353set dummy gmsgfmt; ac_word=$2
3354echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05003355echo "configure:3356: checking for $ac_word" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003356if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3357 echo $ac_n "(cached) $ac_c" 1>&6
3358else
3359 case "$GMSGFMT" in
3360 /*)
3361 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3362 ;;
3363 ?:/*)
3364 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3365 ;;
3366 *)
3367 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3368 ac_dummy="$PATH"
3369 for ac_dir in $ac_dummy; do
3370 test -z "$ac_dir" && ac_dir=.
3371 if test -f $ac_dir/$ac_word; then
3372 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3373 break
3374 fi
3375 done
3376 IFS="$ac_save_ifs"
3377 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3378 ;;
3379esac
3380fi
3381GMSGFMT="$ac_cv_path_GMSGFMT"
3382if test -n "$GMSGFMT"; then
3383 echo "$ac_t""$GMSGFMT" 1>&6
3384else
3385 echo "$ac_t""no" 1>&6
3386fi
3387
3388
3389 # Extract the first word of "xgettext", so it can be a program name with args.
3390set dummy xgettext; ac_word=$2
3391echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05003392echo "configure:3393: checking for $ac_word" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003393if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3394 echo $ac_n "(cached) $ac_c" 1>&6
3395else
3396 case "$XGETTEXT" in
3397 /*)
3398 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3399 ;;
3400 *)
3401 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3402 for ac_dir in $PATH; do
3403 test -z "$ac_dir" && ac_dir=.
3404 if test -f $ac_dir/$ac_word; then
3405 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
3406 (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
3407 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3408 break
3409 fi
3410 fi
3411 done
3412 IFS="$ac_save_ifs"
3413 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3414 ;;
3415esac
3416fi
3417XGETTEXT="$ac_cv_path_XGETTEXT"
3418if test "$XGETTEXT" != ":"; then
3419 echo "$ac_t""$XGETTEXT" 1>&6
3420else
3421 echo "$ac_t""no" 1>&6
3422fi
3423
3424 rm -f messages.po
3425
3426 # Extract the first word of "msgmerge", so it can be a program name with args.
3427set dummy msgmerge; ac_word=$2
3428echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05003429echo "configure:3430: checking for $ac_word" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003430if eval "test \"`echo '$''{'ac_cv_path_MSGMERGE'+set}'`\" = set"; then
3431 echo $ac_n "(cached) $ac_c" 1>&6
3432else
3433 case "$MSGMERGE" in
3434 /*)
3435 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
3436 ;;
3437 *)
3438 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3439 for ac_dir in $PATH; do
3440 test -z "$ac_dir" && ac_dir=.
3441 if test -f $ac_dir/$ac_word; then
3442 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
3443 ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
3444 break
3445 fi
3446 fi
3447 done
3448 IFS="$ac_save_ifs"
3449 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
3450 ;;
3451esac
3452fi
3453MSGMERGE="$ac_cv_path_MSGMERGE"
3454if test "$MSGMERGE" != ":"; then
3455 echo "$ac_t""$MSGMERGE" 1>&6
3456else
3457 echo "$ac_t""no" 1>&6
3458fi
3459
3460
3461 if test "$GMSGFMT" != ":"; then
3462 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
3463 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3464 : ;
3465 else
3466 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
3467 echo "$ac_t""found $GMSGFMT program is not GNU msgfmt; ignore it" 1>&6
3468 GMSGFMT=":"
3469 fi
3470 fi
3471
3472 if test "$XGETTEXT" != ":"; then
3473 if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
3474 (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3475 : ;
3476 else
3477 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
3478 XGETTEXT=":"
3479 fi
3480 rm -f messages.po
3481 fi
3482
3483
3484
3485
3486
3487 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 -04003488stdlib.h string.h unistd.h sys/param.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003489do
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003490ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3491echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05003492echo "configure:3493: checking for $ac_hdr" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003493if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3494 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003495else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003496 cat > conftest.$ac_ext <<EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05003497#line 3498 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003498#include "confdefs.h"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003499#include <$ac_hdr>
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003500EOF
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003501ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05003502{ (eval echo configure:3503: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003503ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3504if test -z "$ac_err"; then
3505 rm -rf conftest*
3506 eval "ac_cv_header_$ac_safe=yes"
3507else
3508 echo "$ac_err" >&5
3509 echo "configure: failed program was:" >&5
3510 cat conftest.$ac_ext >&5
3511 rm -rf conftest*
3512 eval "ac_cv_header_$ac_safe=no"
3513fi
3514rm -f conftest*
3515fi
3516if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3517 echo "$ac_t""yes" 1>&6
3518 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3519 cat >> confdefs.h <<EOF
3520#define $ac_tr_hdr 1
3521EOF
3522
3523else
3524 echo "$ac_t""no" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003525fi
3526done
3527
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003528 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003529geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
3530strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003531do
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003532echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05003533echo "configure:3534: checking for $ac_func" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003534if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3535 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003536else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003537 cat > conftest.$ac_ext <<EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05003538#line 3539 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003539#include "confdefs.h"
3540/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003541 which can conflict with char $ac_func(); below. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003542#include <assert.h>
3543/* Override any gcc2 internal prototype to avoid an error. */
3544/* We use char because int might match the return type of a gcc2
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003545 builtin and then its argument prototype would still apply. */
3546char $ac_func();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003547
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003548int main() {
3549
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003550/* The GNU C library defines this for functions which it implements
3551 to always fail with ENOSYS. Some functions are actually named
3552 something starting with __ and the normal name is an alias. */
3553#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3554choke me
3555#else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003556$ac_func();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003557#endif
3558
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003559; return 0; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003560EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05003561if { (eval echo configure:3562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003562 rm -rf conftest*
3563 eval "ac_cv_func_$ac_func=yes"
3564else
3565 echo "configure: failed program was:" >&5
3566 cat conftest.$ac_ext >&5
3567 rm -rf conftest*
3568 eval "ac_cv_func_$ac_func=no"
3569fi
3570rm -f conftest*
3571fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003572
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003573if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3574 echo "$ac_t""yes" 1>&6
3575 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3576 cat >> confdefs.h <<EOF
3577#define $ac_tr_func 1
3578EOF
3579
3580else
3581 echo "$ac_t""no" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003582fi
3583done
3584
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003585
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003586
3587
3588
3589
3590
3591 am_save_CPPFLAGS="$CPPFLAGS"
3592
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003593 for element in $INCICONV; do
3594 haveit=
3595 for x in $CPPFLAGS; do
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003596
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003597 acl_save_prefix="$prefix"
3598 prefix="$acl_final_prefix"
3599 acl_save_exec_prefix="$exec_prefix"
3600 exec_prefix="$acl_final_exec_prefix"
3601 eval x=\"$x\"
3602 exec_prefix="$acl_save_exec_prefix"
3603 prefix="$acl_save_prefix"
3604
3605 if test "X$x" = "X$element"; then
3606 haveit=yes
3607 break
3608 fi
3609 done
3610 if test -z "$haveit"; then
3611 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
3612 fi
3613 done
3614
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003615
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003616 echo $ac_n "checking for iconv""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05003617echo "configure:3618: checking for iconv" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003618if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
3619 echo $ac_n "(cached) $ac_c" 1>&6
3620else
3621
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003622 am_cv_func_iconv="no, consider installing GNU libiconv"
3623 am_cv_lib_iconv=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003624 cat > conftest.$ac_ext <<EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05003625#line 3626 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003626#include "confdefs.h"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003627#include <stdlib.h>
3628#include <iconv.h>
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003629int main() {
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003630iconv_t cd = iconv_open("","");
3631 iconv(cd,NULL,NULL,NULL,NULL);
3632 iconv_close(cd);
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003633; return 0; }
3634EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05003635if { (eval echo configure:3636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003636 rm -rf conftest*
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003637 am_cv_func_iconv=yes
3638else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003639 echo "configure: failed program was:" >&5
3640 cat conftest.$ac_ext >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003641fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003642rm -f conftest*
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003643 if test "$am_cv_func_iconv" != yes; then
3644 am_save_LIBS="$LIBS"
3645 LIBS="$LIBS $LIBICONV"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003646 cat > conftest.$ac_ext <<EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05003647#line 3648 "configure"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003648#include "confdefs.h"
3649#include <stdlib.h>
3650#include <iconv.h>
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003651int main() {
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003652iconv_t cd = iconv_open("","");
3653 iconv(cd,NULL,NULL,NULL,NULL);
3654 iconv_close(cd);
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003655; return 0; }
3656EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05003657if { (eval echo configure:3658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003658 rm -rf conftest*
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003659 am_cv_lib_iconv=yes
3660 am_cv_func_iconv=yes
3661else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003662 echo "configure: failed program was:" >&5
3663 cat conftest.$ac_ext >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003664fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003665rm -f conftest*
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003666 LIBS="$am_save_LIBS"
3667 fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003668
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003669fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003670
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003671echo "$ac_t""$am_cv_func_iconv" 1>&6
3672 if test "$am_cv_func_iconv" = yes; then
3673 cat >> confdefs.h <<\EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003674#define HAVE_ICONV 1
3675EOF
3676
3677 fi
3678 if test "$am_cv_lib_iconv" = yes; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003679 echo $ac_n "checking how to link with libiconv""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05003680echo "configure:3681: checking how to link with libiconv" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003681 echo "$ac_t""$LIBICONV" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003682 else
3683 CPPFLAGS="$am_save_CPPFLAGS"
3684 LIBICONV=
3685 LTLIBICONV=
3686 fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003687
3688
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003689
3690 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003691 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05003692echo "configure:3693: checking for iconv declaration" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003693 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
3694 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003695else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003696
3697 cat > conftest.$ac_ext <<EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05003698#line 3699 "configure"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003699#include "confdefs.h"
3700
3701#include <stdlib.h>
3702#include <iconv.h>
3703extern
3704#ifdef __cplusplus
3705"C"
3706#endif
3707#if defined(__STDC__) || defined(__cplusplus)
3708size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
3709#else
3710size_t iconv();
3711#endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003712
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003713int main() {
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003714
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003715; return 0; }
3716EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05003717if { (eval echo configure:3718: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003718 rm -rf conftest*
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003719 am_cv_proto_iconv_arg1=""
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003720else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003721 echo "configure: failed program was:" >&5
3722 cat conftest.$ac_ext >&5
3723 rm -rf conftest*
3724 am_cv_proto_iconv_arg1="const"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003725fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003726rm -f conftest*
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003727 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 +00003728fi
3729
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003730 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003731 echo "$ac_t""${ac_t:-
3732 }$am_cv_proto_iconv" 1>&6
3733 cat >> confdefs.h <<EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003734#define ICONV_CONST $am_cv_proto_iconv_arg1
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003735EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003736
3737 fi
3738
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003739
3740 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05003741echo "configure:3742: checking for nl_langinfo and CODESET" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003742if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
3743 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003744else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003745 cat > conftest.$ac_ext <<EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05003746#line 3747 "configure"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003747#include "confdefs.h"
3748#include <langinfo.h>
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003749int main() {
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003750char* cs = nl_langinfo(CODESET);
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003751; return 0; }
3752EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05003753if { (eval echo configure:3754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003754 rm -rf conftest*
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003755 am_cv_langinfo_codeset=yes
3756else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003757 echo "configure: failed program was:" >&5
3758 cat conftest.$ac_ext >&5
3759 rm -rf conftest*
3760 am_cv_langinfo_codeset=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003761fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003762rm -f conftest*
3763
3764fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003765
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003766echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003767 if test $am_cv_langinfo_codeset = yes; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003768 cat >> confdefs.h <<\EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003769#define HAVE_LANGINFO_CODESET 1
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003770EOF
3771
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003772 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003773
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003774 if test $ac_cv_header_locale_h = yes; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003775
3776 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05003777echo "configure:3778: checking for LC_MESSAGES" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003778if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3779 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003780else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003781 cat > conftest.$ac_ext <<EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05003782#line 3783 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003783#include "confdefs.h"
3784#include <locale.h>
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003785int main() {
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003786return LC_MESSAGES
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003787; return 0; }
3788EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05003789if { (eval echo configure:3790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003790 rm -rf conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003791 am_cv_val_LC_MESSAGES=yes
3792else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003793 echo "configure: failed program was:" >&5
3794 cat conftest.$ac_ext >&5
3795 rm -rf conftest*
3796 am_cv_val_LC_MESSAGES=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003797fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003798rm -f conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003799fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003800
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003801echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3802 if test $am_cv_val_LC_MESSAGES = yes; then
3803 cat >> confdefs.h <<\EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003804#define HAVE_LC_MESSAGES 1
3805EOF
3806
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003807 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003808
3809 fi
3810
3811 for ac_prog in bison
3812do
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003813# Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003814set dummy $ac_prog; ac_word=$2
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003815echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05003816echo "configure:3817: checking for $ac_word" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003817if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
3818 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003819else
3820 if test -n "$INTLBISON"; then
3821 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
3822else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003823 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3824 ac_dummy="$PATH"
3825 for ac_dir in $ac_dummy; do
3826 test -z "$ac_dir" && ac_dir=.
3827 if test -f $ac_dir/$ac_word; then
3828 ac_cv_prog_INTLBISON="$ac_prog"
3829 break
3830 fi
3831 done
3832 IFS="$ac_save_ifs"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003833fi
3834fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003835INTLBISON="$ac_cv_prog_INTLBISON"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003836if test -n "$INTLBISON"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003837 echo "$ac_t""$INTLBISON" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003838else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003839 echo "$ac_t""no" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003840fi
3841
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003842test -n "$INTLBISON" && break
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003843done
3844
3845 if test -z "$INTLBISON"; then
3846 ac_verc_fail=yes
3847 else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003848 echo $ac_n "checking version of bison""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05003849echo "configure:3850: checking version of bison" >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003850 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
3851 case $ac_prog_version in
3852 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3853 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
3854 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3855 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3856 esac
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003857 echo "$ac_t""$ac_prog_version" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003858 fi
3859 if test $ac_verc_fail = yes; then
3860 INTLBISON=:
3861 fi
3862
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05003878echo "configure:3879: checking whether NLS is requested" >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003879 # Check whether --enable-nls or --disable-nls was given.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003880if test "${enable_nls+set}" = set; then
3881 enableval="$enable_nls"
3882 USE_NLS=$enableval
3883else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003884 USE_NLS=yes
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003885fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003886
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003887 echo "$ac_t""$USE_NLS" 1>&6
3888
3889
3890
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003891 BUILD_INCLUDED_LIBINTL=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003892 USE_INCLUDED_LIBINTL=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003893
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003894 LIBINTL=
3895 LTLIBINTL=
3896 POSUB=
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003897
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003898 if test "$USE_NLS" = "yes"; then
3899 gt_use_preinstalled_gnugettext=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003900
3901 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05003902echo "configure:3903: checking whether included gettext is requested" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003903 # Check whether --with-included-gettext or --without-included-gettext was given.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003904if test "${with_included_gettext+set}" = set; then
3905 withval="$with_included_gettext"
3906 nls_cv_force_use_gnu_gettext=$withval
3907else
3908 nls_cv_force_use_gnu_gettext=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003909fi
3910
3911 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003912
3913 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
3914 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003915
3916
3917
3918
3919
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003920
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003921 echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05003922echo "configure:3923: checking for GNU gettext in libc" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003923if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
3924 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003925else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003926 cat > conftest.$ac_ext <<EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05003927#line 3928 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003928#include "confdefs.h"
3929#include <libintl.h>
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003930extern int _nl_msg_cat_cntr;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003931extern int *_nl_domain_bindings;
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003932int main() {
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003933bindtextdomain ("", "");
3934return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003935; return 0; }
3936EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05003937if { (eval echo configure:3938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003938 rm -rf conftest*
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003939 gt_cv_func_gnugettext1_libc=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003940else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003941 echo "configure: failed program was:" >&5
3942 cat conftest.$ac_ext >&5
3943 rm -rf conftest*
3944 gt_cv_func_gnugettext1_libc=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003945fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003946rm -f conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003947fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003948
3949echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003950
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003951 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003952
3953
3954
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003955 use_additional=yes
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003956
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003957 acl_save_prefix="$prefix"
3958 prefix="$acl_final_prefix"
3959 acl_save_exec_prefix="$exec_prefix"
3960 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003961
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003962 eval additional_includedir=\"$includedir\"
3963 eval additional_libdir=\"$libdir\"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003964
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003965 exec_prefix="$acl_save_exec_prefix"
3966 prefix="$acl_save_prefix"
3967
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003968 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003969if test "${with_libintl_prefix+set}" = set; then
3970 withval="$with_libintl_prefix"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003971
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003972 if test "X$withval" = "Xno"; then
3973 use_additional=no
3974 else
3975 if test "X$withval" = "X"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003976
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003977 acl_save_prefix="$prefix"
3978 prefix="$acl_final_prefix"
3979 acl_save_exec_prefix="$exec_prefix"
3980 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003981
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003982 eval additional_includedir=\"$includedir\"
3983 eval additional_libdir=\"$libdir\"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003984
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003985 exec_prefix="$acl_save_exec_prefix"
3986 prefix="$acl_save_prefix"
3987
3988 else
3989 additional_includedir="$withval/include"
3990 additional_libdir="$withval/lib"
3991 fi
3992 fi
3993
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003994fi
3995
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003996 LIBINTL=
3997 LTLIBINTL=
3998 INCINTL=
3999 rpathdirs=
4000 ltrpathdirs=
4001 names_already_handled=
4002 names_next_round='intl '
4003 while test -n "$names_next_round"; do
4004 names_this_round="$names_next_round"
4005 names_next_round=
4006 for name in $names_this_round; do
4007 already_handled=
4008 for n in $names_already_handled; do
4009 if test "$n" = "$name"; then
4010 already_handled=yes
4011 break
4012 fi
4013 done
4014 if test -z "$already_handled"; then
4015 names_already_handled="$names_already_handled $name"
4016 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
4017 eval value=\"\$HAVE_LIB$uppername\"
4018 if test -n "$value"; then
4019 if test "$value" = yes; then
4020 eval value=\"\$LIB$uppername\"
4021 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
4022 eval value=\"\$LTLIB$uppername\"
4023 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
4024 else
4025 :
4026 fi
4027 else
4028 found_dir=
4029 found_la=
4030 found_so=
4031 found_a=
4032 if test $use_additional = yes; then
4033 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
4034 found_dir="$additional_libdir"
4035 found_so="$additional_libdir/lib$name.$shlibext"
4036 if test -f "$additional_libdir/lib$name.la"; then
4037 found_la="$additional_libdir/lib$name.la"
4038 fi
4039 else
4040 if test -f "$additional_libdir/lib$name.$libext"; then
4041 found_dir="$additional_libdir"
4042 found_a="$additional_libdir/lib$name.$libext"
4043 if test -f "$additional_libdir/lib$name.la"; then
4044 found_la="$additional_libdir/lib$name.la"
4045 fi
4046 fi
4047 fi
4048 fi
4049 if test "X$found_dir" = "X"; then
4050 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004051
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004052 acl_save_prefix="$prefix"
4053 prefix="$acl_final_prefix"
4054 acl_save_exec_prefix="$exec_prefix"
4055 exec_prefix="$acl_final_exec_prefix"
4056 eval x=\"$x\"
4057 exec_prefix="$acl_save_exec_prefix"
4058 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004059
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004060 case "$x" in
4061 -L*)
4062 dir=`echo "X$x" | sed -e 's/^X-L//'`
4063 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
4064 found_dir="$dir"
4065 found_so="$dir/lib$name.$shlibext"
4066 if test -f "$dir/lib$name.la"; then
4067 found_la="$dir/lib$name.la"
4068 fi
4069 else
4070 if test -f "$dir/lib$name.$libext"; then
4071 found_dir="$dir"
4072 found_a="$dir/lib$name.$libext"
4073 if test -f "$dir/lib$name.la"; then
4074 found_la="$dir/lib$name.la"
4075 fi
4076 fi
4077 fi
4078 ;;
4079 esac
4080 if test "X$found_dir" != "X"; then
4081 break
4082 fi
4083 done
4084 fi
4085 if test "X$found_dir" != "X"; then
4086 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
4087 if test "X$found_so" != "X"; then
4088 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
4089 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
4090 else
4091 haveit=
4092 for x in $ltrpathdirs; do
4093 if test "X$x" = "X$found_dir"; then
4094 haveit=yes
4095 break
4096 fi
4097 done
4098 if test -z "$haveit"; then
4099 ltrpathdirs="$ltrpathdirs $found_dir"
4100 fi
4101 if test "$hardcode_direct" = yes; then
4102 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
4103 else
4104 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
4105 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
4106 haveit=
4107 for x in $rpathdirs; do
4108 if test "X$x" = "X$found_dir"; then
4109 haveit=yes
4110 break
4111 fi
4112 done
4113 if test -z "$haveit"; then
4114 rpathdirs="$rpathdirs $found_dir"
4115 fi
4116 else
4117 haveit=
4118 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004119
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004120 acl_save_prefix="$prefix"
4121 prefix="$acl_final_prefix"
4122 acl_save_exec_prefix="$exec_prefix"
4123 exec_prefix="$acl_final_exec_prefix"
4124 eval x=\"$x\"
4125 exec_prefix="$acl_save_exec_prefix"
4126 prefix="$acl_save_prefix"
4127
4128 if test "X$x" = "X-L$found_dir"; then
4129 haveit=yes
4130 break
4131 fi
4132 done
4133 if test -z "$haveit"; then
4134 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
4135 fi
4136 if test "$hardcode_minus_L" != no; then
4137 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
4138 else
4139 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
4140 fi
4141 fi
4142 fi
4143 fi
4144 else
4145 if test "X$found_a" != "X"; then
4146 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
4147 else
4148 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
4149 fi
4150 fi
4151 additional_includedir=
4152 case "$found_dir" in
4153 */lib | */lib/)
4154 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
4155 additional_includedir="$basedir/include"
4156 ;;
4157 esac
4158 if test "X$additional_includedir" != "X"; then
4159 if test "X$additional_includedir" != "X/usr/include"; then
4160 haveit=
4161 if test "X$additional_includedir" = "X/usr/local/include"; then
4162 if test -n "$GCC"; then
4163 case $host_os in
4164 linux*) haveit=yes;;
4165 esac
4166 fi
4167 fi
4168 if test -z "$haveit"; then
4169 for x in $CPPFLAGS $INCINTL; do
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004170
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004171 acl_save_prefix="$prefix"
4172 prefix="$acl_final_prefix"
4173 acl_save_exec_prefix="$exec_prefix"
4174 exec_prefix="$acl_final_exec_prefix"
4175 eval x=\"$x\"
4176 exec_prefix="$acl_save_exec_prefix"
4177 prefix="$acl_save_prefix"
4178
4179 if test "X$x" = "X-I$additional_includedir"; then
4180 haveit=yes
4181 break
4182 fi
4183 done
4184 if test -z "$haveit"; then
4185 if test -d "$additional_includedir"; then
4186 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
4187 fi
4188 fi
4189 fi
4190 fi
4191 fi
4192 if test -n "$found_la"; then
4193 save_libdir="$libdir"
4194 case "$found_la" in
4195 */* | *\\*) . "$found_la" ;;
4196 *) . "./$found_la" ;;
4197 esac
4198 libdir="$save_libdir"
4199 for dep in $dependency_libs; do
4200 case "$dep" in
4201 -L*)
4202 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
4203 if test "X$additional_libdir" != "X/usr/lib"; then
4204 haveit=
4205 if test "X$additional_libdir" = "X/usr/local/lib"; then
4206 if test -n "$GCC"; then
4207 case $host_os in
4208 linux*) haveit=yes;;
4209 esac
4210 fi
4211 fi
4212 if test -z "$haveit"; then
4213 haveit=
4214 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004215
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004216 acl_save_prefix="$prefix"
4217 prefix="$acl_final_prefix"
4218 acl_save_exec_prefix="$exec_prefix"
4219 exec_prefix="$acl_final_exec_prefix"
4220 eval x=\"$x\"
4221 exec_prefix="$acl_save_exec_prefix"
4222 prefix="$acl_save_prefix"
4223
4224 if test "X$x" = "X-L$additional_libdir"; then
4225 haveit=yes
4226 break
4227 fi
4228 done
4229 if test -z "$haveit"; then
4230 if test -d "$additional_libdir"; then
4231 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
4232 fi
4233 fi
4234 haveit=
4235 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004236
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004237 acl_save_prefix="$prefix"
4238 prefix="$acl_final_prefix"
4239 acl_save_exec_prefix="$exec_prefix"
4240 exec_prefix="$acl_final_exec_prefix"
4241 eval x=\"$x\"
4242 exec_prefix="$acl_save_exec_prefix"
4243 prefix="$acl_save_prefix"
4244
4245 if test "X$x" = "X-L$additional_libdir"; then
4246 haveit=yes
4247 break
4248 fi
4249 done
4250 if test -z "$haveit"; then
4251 if test -d "$additional_libdir"; then
4252 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
4253 fi
4254 fi
4255 fi
4256 fi
4257 ;;
4258 -R*)
4259 dir=`echo "X$dep" | sed -e 's/^X-R//'`
4260 if test "$enable_rpath" != no; then
4261 haveit=
4262 for x in $rpathdirs; do
4263 if test "X$x" = "X$dir"; then
4264 haveit=yes
4265 break
4266 fi
4267 done
4268 if test -z "$haveit"; then
4269 rpathdirs="$rpathdirs $dir"
4270 fi
4271 haveit=
4272 for x in $ltrpathdirs; do
4273 if test "X$x" = "X$dir"; then
4274 haveit=yes
4275 break
4276 fi
4277 done
4278 if test -z "$haveit"; then
4279 ltrpathdirs="$ltrpathdirs $dir"
4280 fi
4281 fi
4282 ;;
4283 -l*)
4284 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
4285 ;;
4286 *.la)
4287 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
4288 ;;
4289 *)
4290 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
4291 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
4292 ;;
4293 esac
4294 done
4295 fi
4296 else
4297 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
4298 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
4299 fi
4300 fi
4301 fi
4302 done
4303 done
4304 if test "X$rpathdirs" != "X"; then
4305 if test -n "$hardcode_libdir_separator"; then
4306 alldirs=
4307 for found_dir in $rpathdirs; do
4308 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
4309 done
4310 acl_save_libdir="$libdir"
4311 libdir="$alldirs"
4312 eval flag=\"$hardcode_libdir_flag_spec\"
4313 libdir="$acl_save_libdir"
4314 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
4315 else
4316 for found_dir in $rpathdirs; do
4317 acl_save_libdir="$libdir"
4318 libdir="$found_dir"
4319 eval flag=\"$hardcode_libdir_flag_spec\"
4320 libdir="$acl_save_libdir"
4321 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
4322 done
4323 fi
4324 fi
4325 if test "X$ltrpathdirs" != "X"; then
4326 for found_dir in $ltrpathdirs; do
4327 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
4328 done
4329 fi
4330
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004331 echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05004332echo "configure:4333: checking for GNU gettext in libintl" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004333if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
4334 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004335else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004336 gt_save_CPPFLAGS="$CPPFLAGS"
4337 CPPFLAGS="$CPPFLAGS $INCINTL"
4338 gt_save_LIBS="$LIBS"
4339 LIBS="$LIBS $LIBINTL"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004340 cat > conftest.$ac_ext <<EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05004341#line 4342 "configure"
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05004342#include "confdefs.h"
4343#include <libintl.h>
4344extern int _nl_msg_cat_cntr;
4345extern
4346#ifdef __cplusplus
4347"C"
4348#endif
4349const char *_nl_expand_alias ();
4350int main() {
4351bindtextdomain ("", "");
4352return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
4353; return 0; }
4354EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05004355if { (eval echo configure:4356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05004356 rm -rf conftest*
4357 gt_cv_func_gnugettext1_libintl=yes
4358else
4359 echo "configure: failed program was:" >&5
4360 cat conftest.$ac_ext >&5
4361 rm -rf conftest*
4362 gt_cv_func_gnugettext1_libintl=no
4363fi
4364rm -f conftest*
4365 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
4366 LIBS="$LIBS $LIBICONV"
4367 cat > conftest.$ac_ext <<EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05004368#line 4369 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004369#include "confdefs.h"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004370#include <libintl.h>
4371extern int _nl_msg_cat_cntr;
4372extern
4373#ifdef __cplusplus
4374"C"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004375#endif
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004376const char *_nl_expand_alias ();
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004377int main() {
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004378bindtextdomain ("", "");
4379return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004380; return 0; }
4381EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05004382if { (eval echo configure:4383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004383 rm -rf conftest*
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004384 LIBINTL="$LIBINTL $LIBICONV"
4385 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
4386 gt_cv_func_gnugettext1_libintl=yes
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004387
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004388else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004389 echo "configure: failed program was:" >&5
4390 cat conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004391fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004392rm -f conftest*
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004393 fi
4394 CPPFLAGS="$gt_save_CPPFLAGS"
4395 LIBS="$gt_save_LIBS"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004396fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004397
4398echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004399 fi
4400
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004401 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
4402 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
4403 && test "$PACKAGE" != gettext; }; then
4404 gt_use_preinstalled_gnugettext=yes
4405 else
4406 LIBINTL=
4407 LTLIBINTL=
4408 INCINTL=
4409 fi
4410
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004411
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004412 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
4413 nls_cv_use_gnu_gettext=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004414 fi
4415 fi
4416
4417 if test "$nls_cv_use_gnu_gettext" = "yes"; then
4418 INTLOBJS="\$(GETTOBJS)"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004419 BUILD_INCLUDED_LIBINTL=yes
4420 USE_INCLUDED_LIBINTL=yes
4421 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
4422 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
4423 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004424 fi
4425
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004426 if test "$gt_use_preinstalled_gnugettext" = "yes" \
4427 || test "$nls_cv_use_gnu_gettext" = "yes"; then
4428 CATOBJEXT=.gmo
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004429 fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004430
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004431
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004432 if test "$gt_use_preinstalled_gnugettext" = "yes" \
4433 || test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004434 cat >> confdefs.h <<\EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004435#define ENABLE_NLS 1
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004436EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004437
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004438 else
4439 USE_NLS=no
4440 fi
4441 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004442
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004443 if test "$USE_NLS" = "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004444
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004445 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
4446 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004447 echo $ac_n "checking how to link with libintl""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05004448echo "configure:4449: checking how to link with libintl" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004449 echo "$ac_t""$LIBINTL" 1>&6
4450
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004451 for element in $INCINTL; do
4452 haveit=
4453 for x in $CPPFLAGS; do
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004454
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004455 acl_save_prefix="$prefix"
4456 prefix="$acl_final_prefix"
4457 acl_save_exec_prefix="$exec_prefix"
4458 exec_prefix="$acl_final_exec_prefix"
4459 eval x=\"$x\"
4460 exec_prefix="$acl_save_exec_prefix"
4461 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004462
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004463 if test "X$x" = "X$element"; then
4464 haveit=yes
4465 break
4466 fi
4467 done
4468 if test -z "$haveit"; then
4469 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
4470 fi
4471 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004472
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004473 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004474
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004475 cat >> confdefs.h <<\EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004476#define HAVE_GETTEXT 1
4477EOF
4478
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004479 cat >> confdefs.h <<\EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004480#define HAVE_DCGETTEXT 1
4481EOF
4482
4483 fi
4484
4485 POSUB=po
4486 fi
4487
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004488
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004489 if test "$PACKAGE" = gettext; then
4490 BUILD_INCLUDED_LIBINTL=yes
4491 fi
4492
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004493
4494
4495
4496
4497
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004498 nls_cv_header_intl=
4499 nls_cv_header_libgt=
4500
4501 DATADIRNAME=share
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004502
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004503
4504 INSTOBJEXT=.mo
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004505
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004506
4507 GENCAT=gencat
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004508
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004509
4510 INTL_LIBTOOL_SUFFIX_PREFIX=
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004511
4512
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004513
4514 INTLLIBS="$LIBINTL"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004515
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004516
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004517
4518
4519
4520
4521
4522echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05004523echo "configure:4524: checking whether ${MAKE-make} sets \${MAKE}" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004524set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
4525if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
4526 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004527else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004528 cat > conftestmake <<\EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004529all:
4530 @echo 'ac_maketemp="${MAKE}"'
4531EOF
4532# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004533eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004534if test -n "$ac_maketemp"; then
4535 eval ac_cv_prog_make_${ac_make}_set=yes
4536else
4537 eval ac_cv_prog_make_${ac_make}_set=no
4538fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004539rm -f conftestmake
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004540fi
4541if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004542 echo "$ac_t""yes" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004543 SET_MAKE=
4544else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004545 echo "$ac_t""no" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004546 SET_MAKE="MAKE=${MAKE-make}"
4547fi
4548
4549# Extract the first word of "ln", so it can be a program name with args.
4550set dummy ln; ac_word=$2
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004551echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05004552echo "configure:4553: checking for $ac_word" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004553if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then
4554 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004555else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004556 case "$LN" in
4557 /*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004558 ac_cv_path_LN="$LN" # Let the user override the test with a path.
4559 ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004560 ?:/*)
4561 ac_cv_path_LN="$LN" # Let the user override the test with a dos path.
4562 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004563 *)
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004564 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4565 ac_dummy="$PATH"
4566 for ac_dir in $ac_dummy; do
4567 test -z "$ac_dir" && ac_dir=.
4568 if test -f $ac_dir/$ac_word; then
4569 ac_cv_path_LN="$ac_dir/$ac_word"
4570 break
4571 fi
4572 done
4573 IFS="$ac_save_ifs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004574 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
4575 ;;
4576esac
4577fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004578LN="$ac_cv_path_LN"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004579if test -n "$LN"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004580 echo "$ac_t""$LN" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004581else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004582 echo "$ac_t""no" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004583fi
4584
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004585echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05004586echo "configure:4587: checking whether ln -s works" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004587if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
4588 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004589else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004590 rm -f conftestdata
4591if ln -s X conftestdata 2>/dev/null
4592then
4593 rm -f conftestdata
4594 ac_cv_prog_LN_S="ln -s"
4595else
4596 ac_cv_prog_LN_S=ln
4597fi
4598fi
4599LN_S="$ac_cv_prog_LN_S"
4600if test "$ac_cv_prog_LN_S" = "ln -s"; then
4601 echo "$ac_t""yes" 1>&6
4602else
4603 echo "$ac_t""no" 1>&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004604fi
4605
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004606# Extract the first word of "mv", so it can be a program name with args.
4607set dummy mv; ac_word=$2
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004608echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05004609echo "configure:4610: checking for $ac_word" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004610if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
4611 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004612else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004613 case "$MV" in
4614 /*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004615 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4616 ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004617 ?:/*)
4618 ac_cv_path_MV="$MV" # Let the user override the test with a dos path.
4619 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004620 *)
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004621 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4622 ac_dummy="$PATH"
4623 for ac_dir in $ac_dummy; do
4624 test -z "$ac_dir" && ac_dir=.
4625 if test -f $ac_dir/$ac_word; then
4626 ac_cv_path_MV="$ac_dir/$ac_word"
4627 break
4628 fi
4629 done
4630 IFS="$ac_save_ifs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004631 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4632 ;;
4633esac
4634fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004635MV="$ac_cv_path_MV"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004636if test -n "$MV"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004637 echo "$ac_t""$MV" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004638else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004639 echo "$ac_t""no" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004640fi
4641
4642# Extract the first word of "cp", so it can be a program name with args.
4643set dummy cp; ac_word=$2
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004644echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05004645echo "configure:4646: checking for $ac_word" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004646if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then
4647 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004648else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004649 case "$CP" in
4650 /*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004651 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4652 ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004653 ?:/*)
4654 ac_cv_path_CP="$CP" # Let the user override the test with a dos path.
4655 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004656 *)
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004657 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4658 ac_dummy="$PATH"
4659 for ac_dir in $ac_dummy; do
4660 test -z "$ac_dir" && ac_dir=.
4661 if test -f $ac_dir/$ac_word; then
4662 ac_cv_path_CP="$ac_dir/$ac_word"
4663 break
4664 fi
4665 done
4666 IFS="$ac_save_ifs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004667 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4668 ;;
4669esac
4670fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004671CP="$ac_cv_path_CP"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004672if test -n "$CP"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004673 echo "$ac_t""$CP" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004674else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004675 echo "$ac_t""no" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004676fi
4677
4678# Extract the first word of "rm", so it can be a program name with args.
4679set dummy rm; ac_word=$2
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004680echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05004681echo "configure:4682: checking for $ac_word" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004682if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
4683 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004684else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004685 case "$RM" in
4686 /*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004687 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4688 ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004689 ?:/*)
4690 ac_cv_path_RM="$RM" # Let the user override the test with a dos path.
4691 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004692 *)
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004693 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4694 ac_dummy="$PATH"
4695 for ac_dir in $ac_dummy; do
4696 test -z "$ac_dir" && ac_dir=.
4697 if test -f $ac_dir/$ac_word; then
4698 ac_cv_path_RM="$ac_dir/$ac_word"
4699 break
4700 fi
4701 done
4702 IFS="$ac_save_ifs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004703 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4704 ;;
4705esac
4706fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004707RM="$ac_cv_path_RM"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004708if test -n "$RM"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004709 echo "$ac_t""$RM" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004710else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004711 echo "$ac_t""no" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004712fi
4713
4714# Extract the first word of "chmod", so it can be a program name with args.
4715set dummy chmod; ac_word=$2
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004716echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05004717echo "configure:4718: checking for $ac_word" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004718if eval "test \"`echo '$''{'ac_cv_path_CHMOD'+set}'`\" = set"; then
4719 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004720else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004721 case "$CHMOD" in
4722 /*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004723 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
4724 ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004725 ?:/*)
4726 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a dos path.
4727 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004728 *)
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004729 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4730 ac_dummy="$PATH"
4731 for ac_dir in $ac_dummy; do
4732 test -z "$ac_dir" && ac_dir=.
4733 if test -f $ac_dir/$ac_word; then
4734 ac_cv_path_CHMOD="$ac_dir/$ac_word"
4735 break
4736 fi
4737 done
4738 IFS="$ac_save_ifs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004739 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
4740 ;;
4741esac
4742fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004743CHMOD="$ac_cv_path_CHMOD"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004744if test -n "$CHMOD"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004745 echo "$ac_t""$CHMOD" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004746else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004747 echo "$ac_t""no" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004748fi
4749
4750# Extract the first word of "awk", so it can be a program name with args.
4751set dummy awk; ac_word=$2
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004752echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05004753echo "configure:4754: checking for $ac_word" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004754if eval "test \"`echo '$''{'ac_cv_path_AWK'+set}'`\" = set"; then
4755 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004756else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004757 case "$AWK" in
4758 /*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004759 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4760 ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004761 ?:/*)
4762 ac_cv_path_AWK="$AWK" # Let the user override the test with a dos path.
4763 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004764 *)
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004765 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4766 ac_dummy="$PATH"
4767 for ac_dir in $ac_dummy; do
4768 test -z "$ac_dir" && ac_dir=.
4769 if test -f $ac_dir/$ac_word; then
4770 ac_cv_path_AWK="$ac_dir/$ac_word"
4771 break
4772 fi
4773 done
4774 IFS="$ac_save_ifs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004775 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
4776 ;;
4777esac
4778fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004779AWK="$ac_cv_path_AWK"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004780if test -n "$AWK"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004781 echo "$ac_t""$AWK" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004782else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004783 echo "$ac_t""no" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004784fi
4785
4786# Extract the first word of "sed", so it can be a program name with args.
4787set dummy sed; ac_word=$2
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004788echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05004789echo "configure:4790: checking for $ac_word" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004790if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then
4791 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004792else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004793 case "$SED" in
4794 /*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004795 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4796 ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004797 ?:/*)
4798 ac_cv_path_SED="$SED" # Let the user override the test with a dos path.
4799 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004800 *)
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004801 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4802 ac_dummy="$PATH"
4803 for ac_dir in $ac_dummy; do
4804 test -z "$ac_dir" && ac_dir=.
4805 if test -f $ac_dir/$ac_word; then
4806 ac_cv_path_SED="$ac_dir/$ac_word"
4807 break
4808 fi
4809 done
4810 IFS="$ac_save_ifs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004811 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4812 ;;
4813esac
4814fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004815SED="$ac_cv_path_SED"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004816if test -n "$SED"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004817 echo "$ac_t""$SED" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004818else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004819 echo "$ac_t""no" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004820fi
4821
Theodore Ts'o9d564f71999-07-03 20:25:58 +00004822# Extract the first word of "perl", so it can be a program name with args.
4823set dummy perl; ac_word=$2
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004824echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05004825echo "configure:4826: checking for $ac_word" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004826if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
4827 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +00004828else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004829 case "$PERL" in
4830 /*)
Theodore Ts'o9d564f71999-07-03 20:25:58 +00004831 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4832 ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004833 ?:/*)
4834 ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
4835 ;;
Theodore Ts'o9d564f71999-07-03 20:25:58 +00004836 *)
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004837 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4838 ac_dummy="$PATH"
4839 for ac_dir in $ac_dummy; do
4840 test -z "$ac_dir" && ac_dir=.
4841 if test -f $ac_dir/$ac_word; then
4842 ac_cv_path_PERL="$ac_dir/$ac_word"
4843 break
4844 fi
4845 done
4846 IFS="$ac_save_ifs"
Theodore Ts'o9d564f71999-07-03 20:25:58 +00004847 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
4848 ;;
4849esac
4850fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004851PERL="$ac_cv_path_PERL"
Theodore Ts'o9d564f71999-07-03 20:25:58 +00004852if test -n "$PERL"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004853 echo "$ac_t""$PERL" 1>&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +00004854else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004855 echo "$ac_t""no" 1>&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +00004856fi
4857
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004858# Extract the first word of "ldconfig", so it can be a program name with args.
4859set dummy ldconfig; ac_word=$2
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004860echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05004861echo "configure:4862: checking for $ac_word" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004862if eval "test \"`echo '$''{'ac_cv_path_LDCONFIG'+set}'`\" = set"; then
4863 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004864else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004865 case "$LDCONFIG" in
4866 /*)
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004867 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4868 ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004869 ?:/*)
4870 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a dos path.
4871 ;;
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004872 *)
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004873 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4874 ac_dummy="$PATH"
4875 for ac_dir in $ac_dummy; do
4876 test -z "$ac_dir" && ac_dir=.
4877 if test -f $ac_dir/$ac_word; then
4878 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
4879 break
4880 fi
4881 done
4882 IFS="$ac_save_ifs"
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004883 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
4884 ;;
4885esac
4886fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004887LDCONFIG="$ac_cv_path_LDCONFIG"
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004888if test -n "$LDCONFIG"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004889 echo "$ac_t""$LDCONFIG" 1>&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004890else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004891 echo "$ac_t""no" 1>&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004892fi
4893
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004894echo $ac_n "checking build system type""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05004895echo "configure:4896: checking build system type" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004896
4897build_alias=$build
4898case "$build_alias" in
4899NONE)
4900 case $nonopt in
4901 NONE) build_alias=$host_alias ;;
4902 *) build_alias=$nonopt ;;
4903 esac ;;
4904esac
4905
4906build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
4907build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4908build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4909build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4910echo "$ac_t""$build" 1>&6
4911
4912if test $host != $build; then
4913 ac_tool_prefix=${host_alias}-
4914else
4915 ac_tool_prefix=
4916fi
4917
4918# 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 +00004919set dummy ${ac_tool_prefix}ar; ac_word=$2
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004920echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05004921echo "configure:4922: checking for $ac_word" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004922if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
4923 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004924else
4925 if test -n "$AR"; then
4926 ac_cv_prog_AR="$AR" # Let the user override the test.
4927else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004928 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4929 ac_dummy="$PATH"
4930 for ac_dir in $ac_dummy; do
4931 test -z "$ac_dir" && ac_dir=.
4932 if test -f $ac_dir/$ac_word; then
4933 ac_cv_prog_AR="${ac_tool_prefix}ar"
4934 break
4935 fi
4936 done
4937 IFS="$ac_save_ifs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004938fi
4939fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004940AR="$ac_cv_prog_AR"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004941if test -n "$AR"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004942 echo "$ac_t""$AR" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004943else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004944 echo "$ac_t""no" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004945fi
4946
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004947
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004948if test -z "$ac_cv_prog_AR"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004949if test -n "$ac_tool_prefix"; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004950 # Extract the first word of "ar", so it can be a program name with args.
4951set dummy ar; ac_word=$2
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004952echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05004953echo "configure:4954: checking for $ac_word" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004954if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
4955 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004956else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004957 if test -n "$AR"; then
4958 ac_cv_prog_AR="$AR" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004959else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004960 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4961 ac_dummy="$PATH"
4962 for ac_dir in $ac_dummy; do
4963 test -z "$ac_dir" && ac_dir=.
4964 if test -f $ac_dir/$ac_word; then
4965 ac_cv_prog_AR="ar"
4966 break
4967 fi
4968 done
4969 IFS="$ac_save_ifs"
4970 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004971fi
4972fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004973AR="$ac_cv_prog_AR"
4974if test -n "$AR"; then
4975 echo "$ac_t""$AR" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004976else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004977 echo "$ac_t""no" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004978fi
4979
4980else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004981 AR="ar"
4982fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004983fi
4984
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004985# 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 +00004986set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004987echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05004988echo "configure:4989: checking for $ac_word" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004989if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
4990 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004991else
4992 if test -n "$RANLIB"; then
4993 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4994else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004995 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4996 ac_dummy="$PATH"
4997 for ac_dir in $ac_dummy; do
4998 test -z "$ac_dir" && ac_dir=.
4999 if test -f $ac_dir/$ac_word; then
5000 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5001 break
5002 fi
5003 done
5004 IFS="$ac_save_ifs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005005fi
5006fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005007RANLIB="$ac_cv_prog_RANLIB"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005008if test -n "$RANLIB"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005009 echo "$ac_t""$RANLIB" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005010else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005011 echo "$ac_t""no" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005012fi
5013
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005014
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005015if test -z "$ac_cv_prog_RANLIB"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005016if test -n "$ac_tool_prefix"; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005017 # Extract the first word of "ranlib", so it can be a program name with args.
5018set dummy ranlib; ac_word=$2
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005019echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05005020echo "configure:5021: checking for $ac_word" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005021if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
5022 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005023else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005024 if test -n "$RANLIB"; then
5025 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005026else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005027 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5028 ac_dummy="$PATH"
5029 for ac_dir in $ac_dummy; do
5030 test -z "$ac_dir" && ac_dir=.
5031 if test -f $ac_dir/$ac_word; then
5032 ac_cv_prog_RANLIB="ranlib"
5033 break
5034 fi
5035 done
5036 IFS="$ac_save_ifs"
5037 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005038fi
5039fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005040RANLIB="$ac_cv_prog_RANLIB"
5041if test -n "$RANLIB"; then
5042 echo "$ac_t""$RANLIB" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005043else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005044 echo "$ac_t""no" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005045fi
5046
5047else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005048 RANLIB=":"
5049fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005050fi
5051
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005052# 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 +00005053set dummy ${ac_tool_prefix}strip; ac_word=$2
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005054echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05005055echo "configure:5056: checking for $ac_word" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005056if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
5057 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005058else
5059 if test -n "$STRIP"; then
5060 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5061else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005062 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5063 ac_dummy="$PATH"
5064 for ac_dir in $ac_dummy; do
5065 test -z "$ac_dir" && ac_dir=.
5066 if test -f $ac_dir/$ac_word; then
5067 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5068 break
5069 fi
5070 done
5071 IFS="$ac_save_ifs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005072fi
5073fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005074STRIP="$ac_cv_prog_STRIP"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005075if test -n "$STRIP"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005076 echo "$ac_t""$STRIP" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005077else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005078 echo "$ac_t""no" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005079fi
5080
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005081
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005082if test -z "$ac_cv_prog_STRIP"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005083if test -n "$ac_tool_prefix"; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005084 # Extract the first word of "strip", so it can be a program name with args.
5085set dummy strip; ac_word=$2
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005086echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05005087echo "configure:5088: checking for $ac_word" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005088if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
5089 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005090else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005091 if test -n "$STRIP"; then
5092 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005093else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005094 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5095 ac_dummy="$PATH"
5096 for ac_dir in $ac_dummy; do
5097 test -z "$ac_dir" && ac_dir=.
5098 if test -f $ac_dir/$ac_word; then
5099 ac_cv_prog_STRIP="strip"
5100 break
5101 fi
5102 done
5103 IFS="$ac_save_ifs"
5104 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005105fi
5106fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005107STRIP="$ac_cv_prog_STRIP"
5108if test -n "$STRIP"; then
5109 echo "$ac_t""$STRIP" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005110else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005111 echo "$ac_t""no" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005112fi
5113
5114else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005115 STRIP=":"
5116fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005117fi
5118
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005119# Find a good install program. We prefer a C program (faster),
5120# so one script is as good as another. But avoid the broken or
5121# incompatible versions:
5122# SysV /etc/install, /usr/sbin/install
5123# SunOS /usr/etc/install
5124# IRIX /sbin/install
5125# AIX /bin/install
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00005126# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005127# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5128# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5129# ./install, which can be erroneously created by make from ./install.sh.
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005130echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05005131echo "configure:5132: checking for a BSD compatible install" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005132if test -z "$INSTALL"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005133if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
5134 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005135else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005136 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005137 for ac_dir in $PATH; do
5138 # Account for people who put trailing slashes in PATH elements.
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005139 case "$ac_dir/" in
5140 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005141 *)
5142 # OSF1 and SCO ODT 3.0 have their own names for install.
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00005143 # Don't use installbsd from OSF since it installs stuff as root
5144 # by default.
5145 for ac_prog in ginstall scoinst install; do
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005146 if test -f $ac_dir/$ac_prog; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005147 if test $ac_prog = install &&
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005148 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005149 # AIX install. It has an incompatible calling convention.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005150 :
5151 else
5152 ac_cv_path_install="$ac_dir/$ac_prog -c"
5153 break 2
5154 fi
5155 fi
5156 done
5157 ;;
5158 esac
5159 done
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005160 IFS="$ac_save_IFS"
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005161
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005162fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005163 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005164 INSTALL="$ac_cv_path_install"
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005165 else
5166 # As a last resort, use the slow shell script. We don't cache a
5167 # path for INSTALL within a source directory, because that will
5168 # break other packages using the cache if that directory is
5169 # removed, or if the path is relative.
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005170 INSTALL="$ac_install_sh"
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005171 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005172fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005173echo "$ac_t""$INSTALL" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005174
5175# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5176# It thinks the first close brace ends the variable substitution.
5177test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5178
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005179test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00005180
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005181test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5182
Theodore Ts'o6c133521999-07-03 20:37:03 +00005183# See if we need a separate native compiler.
5184if test $cross_compiling = no; then
5185 BUILD_CC="$CC"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005186
Theodore Ts'o6c133521999-07-03 20:37:03 +00005187else
5188 for ac_prog in gcc cc
5189do
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005190# Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'o6c133521999-07-03 20:37:03 +00005191set dummy $ac_prog; ac_word=$2
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005192echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05005193echo "configure:5194: checking for $ac_word" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005194if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
5195 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o6c133521999-07-03 20:37:03 +00005196else
5197 if test -n "$BUILD_CC"; then
5198 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
5199else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005200 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5201 ac_dummy="$PATH"
5202 for ac_dir in $ac_dummy; do
5203 test -z "$ac_dir" && ac_dir=.
5204 if test -f $ac_dir/$ac_word; then
5205 ac_cv_prog_BUILD_CC="$ac_prog"
5206 break
5207 fi
5208 done
5209 IFS="$ac_save_ifs"
Theodore Ts'o6c133521999-07-03 20:37:03 +00005210fi
5211fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005212BUILD_CC="$ac_cv_prog_BUILD_CC"
Theodore Ts'o6c133521999-07-03 20:37:03 +00005213if test -n "$BUILD_CC"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005214 echo "$ac_t""$BUILD_CC" 1>&6
Theodore Ts'o6c133521999-07-03 20:37:03 +00005215else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005216 echo "$ac_t""no" 1>&6
Theodore Ts'o6c133521999-07-03 20:37:03 +00005217fi
5218
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005219test -n "$BUILD_CC" && break
Theodore Ts'o6c133521999-07-03 20:37:03 +00005220done
5221
5222fi
Theodore Ts'o9845cf52004-09-17 19:07:03 -04005223for 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 +00005224do
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005225ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5226echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05005227echo "configure:5228: checking for $ac_hdr" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005228if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5229 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005230else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005231 cat > conftest.$ac_ext <<EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05005232#line 5233 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005233#include "confdefs.h"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005234#include <$ac_hdr>
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005235EOF
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005236ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05005237{ (eval echo configure:5238: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005238ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5239if test -z "$ac_err"; then
5240 rm -rf conftest*
5241 eval "ac_cv_header_$ac_safe=yes"
5242else
5243 echo "$ac_err" >&5
5244 echo "configure: failed program was:" >&5
5245 cat conftest.$ac_ext >&5
5246 rm -rf conftest*
5247 eval "ac_cv_header_$ac_safe=no"
5248fi
5249rm -f conftest*
5250fi
5251if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5252 echo "$ac_t""yes" 1>&6
5253 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5254 cat >> confdefs.h <<EOF
5255#define $ac_tr_hdr 1
5256EOF
5257
5258else
5259 echo "$ac_t""no" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005260fi
5261done
5262
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005263echo $ac_n "checking for vprintf""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05005264echo "configure:5265: checking for vprintf" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005265if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
5266 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005267else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005268 cat > conftest.$ac_ext <<EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05005269#line 5270 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005270#include "confdefs.h"
5271/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005272 which can conflict with char vprintf(); below. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005273#include <assert.h>
5274/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005275/* We use char because int might match the return type of a gcc2
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005276 builtin and then its argument prototype would still apply. */
5277char vprintf();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005278
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005279int main() {
5280
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005281/* The GNU C library defines this for functions which it implements
5282 to always fail with ENOSYS. Some functions are actually named
5283 something starting with __ and the normal name is an alias. */
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005284#if defined (__stub_vprintf) || defined (__stub___vprintf)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005285choke me
5286#else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005287vprintf();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005288#endif
5289
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005290; return 0; }
5291EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05005292if { (eval echo configure:5293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005293 rm -rf conftest*
5294 eval "ac_cv_func_vprintf=yes"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005295else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005296 echo "configure: failed program was:" >&5
5297 cat conftest.$ac_ext >&5
5298 rm -rf conftest*
5299 eval "ac_cv_func_vprintf=no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005300fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005301rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005302fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005303
5304if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
5305 echo "$ac_t""yes" 1>&6
5306 cat >> confdefs.h <<\EOF
5307#define HAVE_VPRINTF 1
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005308EOF
5309
5310else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005311 echo "$ac_t""no" 1>&6
5312fi
5313
5314if test "$ac_cv_func_vprintf" != yes; then
5315echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05005316echo "configure:5317: checking for _doprnt" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005317if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
5318 echo $ac_n "(cached) $ac_c" 1>&6
5319else
5320 cat > conftest.$ac_ext <<EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05005321#line 5322 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005322#include "confdefs.h"
5323/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005324 which can conflict with char _doprnt(); below. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005325#include <assert.h>
5326/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005327/* We use char because int might match the return type of a gcc2
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005328 builtin and then its argument prototype would still apply. */
5329char _doprnt();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005330
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005331int main() {
5332
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005333/* The GNU C library defines this for functions which it implements
5334 to always fail with ENOSYS. Some functions are actually named
5335 something starting with __ and the normal name is an alias. */
5336#if defined (__stub__doprnt) || defined (__stub____doprnt)
5337choke me
5338#else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005339_doprnt();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005340#endif
5341
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005342; return 0; }
5343EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05005344if { (eval echo configure:5345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005345 rm -rf conftest*
5346 eval "ac_cv_func__doprnt=yes"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005347else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005348 echo "configure: failed program was:" >&5
5349 cat conftest.$ac_ext >&5
5350 rm -rf conftest*
5351 eval "ac_cv_func__doprnt=no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005352fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005353rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005354fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005355
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005356if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
5357 echo "$ac_t""yes" 1>&6
5358 cat >> confdefs.h <<\EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005359#define HAVE_DOPRNT 1
5360EOF
5361
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00005362else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005363 echo "$ac_t""no" 1>&6
5364fi
5365
5366fi
5367
5368echo $ac_n "checking whether d_reclen declared in dirent""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05005369echo "configure:5370: checking whether d_reclen declared in dirent" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005370if eval "test \"`echo '$''{'e2fsprogs_cv_have_d_reclen_dirent'+set}'`\" = set"; then
5371 echo $ac_n "(cached) $ac_c" 1>&6
5372else
5373 cat > conftest.$ac_ext <<EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05005374#line 5375 "configure"
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00005375#include "confdefs.h"
Theodore Ts'offf45482003-04-13 00:44:19 -04005376#include <dirent.h>
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005377int main() {
5378struct dirent de; de.d_reclen = 0;
5379; return 0; }
5380EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05005381if { (eval echo configure:5382: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005382 rm -rf conftest*
Theodore Ts'offf45482003-04-13 00:44:19 -04005383 e2fsprogs_cv_have_d_reclen_dirent=yes
5384else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005385 echo "configure: failed program was:" >&5
5386 cat conftest.$ac_ext >&5
5387 rm -rf conftest*
5388 e2fsprogs_cv_have_d_reclen_dirent=no
Theodore Ts'offf45482003-04-13 00:44:19 -04005389fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005390rm -f conftest*
Theodore Ts'offf45482003-04-13 00:44:19 -04005391fi
5392
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005393echo "$ac_t""$e2fsprogs_cv_have_d_reclen_dirent" 1>&6
Theodore Ts'offf45482003-04-13 00:44:19 -04005394if test "$e2fsprogs_cv_have_d_reclen_dirent" = yes; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005395 cat >> confdefs.h <<\EOF
Theodore Ts'offf45482003-04-13 00:44:19 -04005396#define HAVE_RECLEN_DIRENT 1
5397EOF
5398
5399fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005400echo $ac_n "checking whether ssize_t declared""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05005401echo "configure:5402: checking whether ssize_t declared" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005402if eval "test \"`echo '$''{'e2fsprogs_cv_have_ssize_t'+set}'`\" = set"; then
5403 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'offf45482003-04-13 00:44:19 -04005404else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005405 cat > conftest.$ac_ext <<EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05005406#line 5407 "configure"
Theodore Ts'offf45482003-04-13 00:44:19 -04005407#include "confdefs.h"
5408#include <sys/types.h>
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005409int main() {
5410ssize_t a = 0;
5411; return 0; }
5412EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05005413if { (eval echo configure:5414: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005414 rm -rf conftest*
Theodore Ts'offf45482003-04-13 00:44:19 -04005415 e2fsprogs_cv_have_ssize_t=yes
5416else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005417 echo "configure: failed program was:" >&5
5418 cat conftest.$ac_ext >&5
5419 rm -rf conftest*
5420 e2fsprogs_cv_have_ssize_t=no
Theodore Ts'offf45482003-04-13 00:44:19 -04005421fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005422rm -f conftest*
Theodore Ts'offf45482003-04-13 00:44:19 -04005423fi
5424
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005425echo "$ac_t""$e2fsprogs_cv_have_ssize_t" 1>&6
Theodore Ts'offf45482003-04-13 00:44:19 -04005426if test "$e2fsprogs_cv_have_ssize_t" = yes; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005427 cat >> confdefs.h <<\EOF
Theodore Ts'offf45482003-04-13 00:44:19 -04005428#define HAVE_TYPE_SSIZE_T 1
5429EOF
5430
5431fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005432echo $ac_n "checking whether llseek declared in unistd.h""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05005433echo "configure:5434: checking whether llseek declared in unistd.h" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005434if eval "test \"`echo '$''{'e2fsprogs_cv_have_llseek_prototype'+set}'`\" = set"; then
5435 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'offf45482003-04-13 00:44:19 -04005436else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005437 cat > conftest.$ac_ext <<EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05005438#line 5439 "configure"
Theodore Ts'offf45482003-04-13 00:44:19 -04005439#include "confdefs.h"
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00005440#include <unistd.h>
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005441int main() {
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00005442extern int llseek(int);
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005443; return 0; }
5444EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05005445if { (eval echo configure:5446: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005446 rm -rf conftest*
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00005447 e2fsprogs_cv_have_llseek_prototype=no
5448else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005449 echo "configure: failed program was:" >&5
5450 cat conftest.$ac_ext >&5
5451 rm -rf conftest*
5452 e2fsprogs_cv_have_llseek_prototype=yes
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00005453fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005454rm -f conftest*
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00005455fi
5456
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005457echo "$ac_t""$e2fsprogs_cv_have_llseek_prototype" 1>&6
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00005458if test "$e2fsprogs_cv_have_llseek_prototype" = yes; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005459 cat >> confdefs.h <<\EOF
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00005460#define HAVE_LLSEEK_PROTOTYPE 1
5461EOF
5462
5463fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005464echo $ac_n "checking whether lseek64 declared in unistd.h""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05005465echo "configure:5466: checking whether lseek64 declared in unistd.h" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005466if eval "test \"`echo '$''{'e2fsprogs_cv_have_lseek64_prototype'+set}'`\" = set"; then
5467 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o6928adc2000-05-25 23:28:50 +00005468else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005469 cat > conftest.$ac_ext <<EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05005470#line 5471 "configure"
Theodore Ts'o6928adc2000-05-25 23:28:50 +00005471#include "confdefs.h"
5472#define _LARGEFILE_SOURCE
5473#define _LARGEFILE64_SOURCE
5474#include <unistd.h>
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005475int main() {
Theodore Ts'o6928adc2000-05-25 23:28:50 +00005476extern int lseek64(int);
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005477; return 0; }
5478EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05005479if { (eval echo configure:5480: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005480 rm -rf conftest*
Theodore Ts'o6928adc2000-05-25 23:28:50 +00005481 e2fsprogs_cv_have_lseek64_prototype=no
5482else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005483 echo "configure: failed program was:" >&5
5484 cat conftest.$ac_ext >&5
5485 rm -rf conftest*
5486 e2fsprogs_cv_have_lseek64_prototype=yes
Theodore Ts'o6928adc2000-05-25 23:28:50 +00005487fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005488rm -f conftest*
Theodore Ts'o6928adc2000-05-25 23:28:50 +00005489fi
5490
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005491echo "$ac_t""$e2fsprogs_cv_have_lseek64_prototype" 1>&6
Theodore Ts'o6928adc2000-05-25 23:28:50 +00005492if test "$e2fsprogs_cv_have_lseek64_prototype" = yes; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005493 cat >> confdefs.h <<\EOF
Theodore Ts'o6928adc2000-05-25 23:28:50 +00005494#define HAVE_LSEEK64_PROTOTYPE 1
5495EOF
5496
5497fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005498if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005499 # if cross-compiling, with no cached values, just assume something common.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005500 ac_cv_sizeof_short=2
5501 ac_cv_sizeof_int=4
5502 ac_cv_sizeof_long=4
Theodore Ts'o6c133521999-07-03 20:37:03 +00005503 ac_cv_sizeof_long_long=8
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005504 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 +00005505fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005506echo $ac_n "checking size of short""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05005507echo "configure:5508: checking size of short" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005508if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
5509 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005510else
5511 if test "$cross_compiling" = yes; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005512 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005513else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005514 cat > conftest.$ac_ext <<EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05005515#line 5516 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005516#include "confdefs.h"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005517#include <stdio.h>
Theodore Ts'ofde3e1b2004-02-23 23:10:41 -05005518#include <sys/types.h>
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005519main()
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005520{
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005521 FILE *f=fopen("conftestval", "w");
5522 if (!f) exit(1);
5523 fprintf(f, "%d\n", sizeof(short));
5524 exit(0);
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005525}
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005526EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05005527if { (eval echo configure:5528: \"$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 -04005528then
5529 ac_cv_sizeof_short=`cat conftestval`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005530else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005531 echo "configure: failed program was:" >&5
5532 cat conftest.$ac_ext >&5
5533 rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005534 ac_cv_sizeof_short=0
5535fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005536rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005537fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005538
5539fi
5540echo "$ac_t""$ac_cv_sizeof_short" 1>&6
5541cat >> confdefs.h <<EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005542#define SIZEOF_SHORT $ac_cv_sizeof_short
5543EOF
5544
5545
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005546echo $ac_n "checking size of int""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05005547echo "configure:5548: checking size of int" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005548if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
5549 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005550else
5551 if test "$cross_compiling" = yes; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005552 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005553else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005554 cat > conftest.$ac_ext <<EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05005555#line 5556 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005556#include "confdefs.h"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005557#include <stdio.h>
Theodore Ts'ofde3e1b2004-02-23 23:10:41 -05005558#include <sys/types.h>
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005559main()
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005560{
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005561 FILE *f=fopen("conftestval", "w");
5562 if (!f) exit(1);
5563 fprintf(f, "%d\n", sizeof(int));
5564 exit(0);
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005565}
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005566EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05005567if { (eval echo configure:5568: \"$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 -04005568then
5569 ac_cv_sizeof_int=`cat conftestval`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005570else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005571 echo "configure: failed program was:" >&5
5572 cat conftest.$ac_ext >&5
5573 rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005574 ac_cv_sizeof_int=0
5575fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005576rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005577fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005578
5579fi
5580echo "$ac_t""$ac_cv_sizeof_int" 1>&6
5581cat >> confdefs.h <<EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005582#define SIZEOF_INT $ac_cv_sizeof_int
5583EOF
5584
5585
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005586echo $ac_n "checking size of long""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05005587echo "configure:5588: checking size of long" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005588if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
5589 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005590else
5591 if test "$cross_compiling" = yes; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005592 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005593else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005594 cat > conftest.$ac_ext <<EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05005595#line 5596 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005596#include "confdefs.h"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005597#include <stdio.h>
Theodore Ts'ofde3e1b2004-02-23 23:10:41 -05005598#include <sys/types.h>
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005599main()
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005600{
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005601 FILE *f=fopen("conftestval", "w");
5602 if (!f) exit(1);
5603 fprintf(f, "%d\n", sizeof(long));
5604 exit(0);
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005605}
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005606EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05005607if { (eval echo configure:5608: \"$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 -04005608then
5609 ac_cv_sizeof_long=`cat conftestval`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005610else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005611 echo "configure: failed program was:" >&5
5612 cat conftest.$ac_ext >&5
5613 rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005614 ac_cv_sizeof_long=0
5615fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005616rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005617fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005618
5619fi
5620echo "$ac_t""$ac_cv_sizeof_long" 1>&6
5621cat >> confdefs.h <<EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005622#define SIZEOF_LONG $ac_cv_sizeof_long
5623EOF
5624
5625
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005626echo $ac_n "checking size of long long""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05005627echo "configure:5628: checking size of long long" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005628if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
5629 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005630else
5631 if test "$cross_compiling" = yes; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005632 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005633else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005634 cat > conftest.$ac_ext <<EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05005635#line 5636 "configure"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005636#include "confdefs.h"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005637#include <stdio.h>
Theodore Ts'ofde3e1b2004-02-23 23:10:41 -05005638#include <sys/types.h>
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005639main()
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005640{
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005641 FILE *f=fopen("conftestval", "w");
5642 if (!f) exit(1);
5643 fprintf(f, "%d\n", sizeof(long long));
5644 exit(0);
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005645}
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005646EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05005647if { (eval echo configure:5648: \"$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 -04005648then
5649 ac_cv_sizeof_long_long=`cat conftestval`
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005650else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005651 echo "configure: failed program was:" >&5
5652 cat conftest.$ac_ext >&5
5653 rm -fr conftest*
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005654 ac_cv_sizeof_long_long=0
5655fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005656rm -fr conftest*
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005657fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005658
5659fi
5660echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
5661cat >> confdefs.h <<EOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005662#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5663EOF
5664
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005665
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005666SIZEOF_SHORT=$ac_cv_sizeof_short
5667SIZEOF_INT=$ac_cv_sizeof_int
5668SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005669SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
5670
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005671
5672
5673
5674echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05005675echo "configure:5676: checking whether byte ordering is bigendian" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005676if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
5677 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00005678else
5679 ac_cv_c_bigendian=unknown
5680# See if sys/param.h defines the BYTE_ORDER macro.
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005681cat > conftest.$ac_ext <<EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05005682#line 5683 "configure"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00005683#include "confdefs.h"
5684#include <sys/types.h>
5685#include <sys/param.h>
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005686int main() {
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00005687
5688#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
5689 bogus endian macros
5690#endif
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005691; return 0; }
5692EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05005693if { (eval echo configure:5694: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005694 rm -rf conftest*
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00005695 # It does; now see whether it defined to BIG_ENDIAN or not.
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005696cat > conftest.$ac_ext <<EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05005697#line 5698 "configure"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00005698#include "confdefs.h"
5699#include <sys/types.h>
5700#include <sys/param.h>
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005701int main() {
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00005702
5703#if BYTE_ORDER != BIG_ENDIAN
5704 not big endian
5705#endif
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005706; return 0; }
5707EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05005708if { (eval echo configure:5709: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005709 rm -rf conftest*
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00005710 ac_cv_c_bigendian=yes
5711else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005712 echo "configure: failed program was:" >&5
5713 cat conftest.$ac_ext >&5
5714 rm -rf conftest*
5715 ac_cv_c_bigendian=no
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00005716fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005717rm -f conftest*
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00005718else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005719 echo "configure: failed program was:" >&5
5720 cat conftest.$ac_ext >&5
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00005721fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005722rm -f conftest*
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00005723if test $ac_cv_c_bigendian = unknown; then
5724if test "$cross_compiling" = yes; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005725 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00005726else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005727 cat > conftest.$ac_ext <<EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05005728#line 5729 "configure"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00005729#include "confdefs.h"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005730main () {
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00005731 /* Are we little or big endian? From Harbison&Steele. */
5732 union
5733 {
5734 long l;
5735 char c[sizeof (long)];
5736 } u;
5737 u.l = 1;
5738 exit (u.c[sizeof (long) - 1] == 1);
5739}
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005740EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05005741if { (eval echo configure:5742: \"$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 -04005742then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00005743 ac_cv_c_bigendian=no
5744else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005745 echo "configure: failed program was:" >&5
5746 cat conftest.$ac_ext >&5
5747 rm -fr conftest*
5748 ac_cv_c_bigendian=yes
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00005749fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005750rm -fr conftest*
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00005751fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005752
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005753fi
5754fi
5755
5756echo "$ac_t""$ac_cv_c_bigendian" 1>&6
5757if test $ac_cv_c_bigendian = yes; then
5758 cat >> confdefs.h <<\EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00005759#define WORDS_BIGENDIAN 1
5760EOF
5761
5762fi
5763
Theodore Ts'o0c193f82003-08-01 14:26:23 -04005764for ac_hdr in inttypes.h
5765do
5766ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5767echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05005768echo "configure:5769: checking for $ac_hdr" >&5
Theodore Ts'o0c193f82003-08-01 14:26:23 -04005769if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5770 echo $ac_n "(cached) $ac_c" 1>&6
5771else
5772 cat > conftest.$ac_ext <<EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05005773#line 5774 "configure"
Theodore Ts'o0c193f82003-08-01 14:26:23 -04005774#include "confdefs.h"
5775#include <$ac_hdr>
5776EOF
5777ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05005778{ (eval echo configure:5779: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'o0c193f82003-08-01 14:26:23 -04005779ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5780if test -z "$ac_err"; then
5781 rm -rf conftest*
5782 eval "ac_cv_header_$ac_safe=yes"
5783else
5784 echo "$ac_err" >&5
5785 echo "configure: failed program was:" >&5
5786 cat conftest.$ac_ext >&5
5787 rm -rf conftest*
5788 eval "ac_cv_header_$ac_safe=no"
5789fi
5790rm -f conftest*
5791fi
5792if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5793 echo "$ac_t""yes" 1>&6
5794 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5795 cat >> confdefs.h <<EOF
5796#define $ac_tr_hdr 1
5797EOF
5798
5799else
5800 echo "$ac_t""no" 1>&6
5801fi
5802done
5803
5804echo $ac_n "checking for intptr_t""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05005805echo "configure:5806: checking for intptr_t" >&5
Theodore Ts'o0c193f82003-08-01 14:26:23 -04005806if eval "test \"`echo '$''{'ac_cv_type_intptr_t'+set}'`\" = set"; then
5807 echo $ac_n "(cached) $ac_c" 1>&6
5808else
5809 cat > conftest.$ac_ext <<EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05005810#line 5811 "configure"
Theodore Ts'o0c193f82003-08-01 14:26:23 -04005811#include "confdefs.h"
5812#include <sys/types.h>
5813#if STDC_HEADERS
5814#include <stdlib.h>
5815#include <stddef.h>
5816#endif
5817EOF
5818if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5819 egrep "(^|[^a-zA-Z_0-9])intptr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5820 rm -rf conftest*
5821 ac_cv_type_intptr_t=yes
5822else
5823 rm -rf conftest*
5824 ac_cv_type_intptr_t=no
5825fi
5826rm -f conftest*
5827
5828fi
5829echo "$ac_t""$ac_cv_type_intptr_t" 1>&6
5830if test $ac_cv_type_intptr_t = no; then
5831 cat >> confdefs.h <<\EOF
5832#define intptr_t long
5833EOF
5834
5835fi
5836
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005837echo $ac_n "checking whether struct stat has a st_flags field""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05005838echo "configure:5839: checking whether struct stat has a st_flags field" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005839if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags'+set}'`\" = set"; then
5840 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005841else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005842 cat > conftest.$ac_ext <<EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05005843#line 5844 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005844#include "confdefs.h"
5845#include <sys/stat.h>
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005846int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005847struct stat stat; stat.st_flags = 0;
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005848; return 0; }
5849EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05005850if { (eval echo configure:5851: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005851 rm -rf conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005852 e2fsprogs_cv_struct_st_flags=yes
5853else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005854 echo "configure: failed program was:" >&5
5855 cat conftest.$ac_ext >&5
5856 rm -rf conftest*
5857 e2fsprogs_cv_struct_st_flags=no
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005858fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005859rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005860fi
5861
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005862echo "$ac_t""$e2fsprogs_cv_struct_st_flags" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005863if test "$e2fsprogs_cv_struct_st_flags" = yes; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005864 echo $ac_n "checking whether st_flags field is useful""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05005865echo "configure:5866: checking whether st_flags field is useful" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005866 if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags_immut'+set}'`\" = set"; then
5867 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00005868else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005869 cat > conftest.$ac_ext <<EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05005870#line 5871 "configure"
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00005871#include "confdefs.h"
5872#include <sys/stat.h>
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005873int main() {
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00005874struct stat stat; stat.st_flags |= UF_IMMUTABLE;
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005875; return 0; }
5876EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05005877if { (eval echo configure:5878: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005878 rm -rf conftest*
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00005879 e2fsprogs_cv_struct_st_flags_immut=yes
5880else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005881 echo "configure: failed program was:" >&5
5882 cat conftest.$ac_ext >&5
5883 rm -rf conftest*
5884 e2fsprogs_cv_struct_st_flags_immut=no
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00005885fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005886rm -f conftest*
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00005887fi
5888
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005889 echo "$ac_t""$e2fsprogs_cv_struct_st_flags_immut" 1>&6
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00005890 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005891 cat >> confdefs.h <<\EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005892#define HAVE_STAT_FLAGS 1
5893EOF
5894
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00005895 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005896fi
Theodore Ts'o84ea6e72004-03-19 19:29:17 -05005897echo $ac_n "checking whether struct sockaddr contains sa_len""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05005898echo "configure:5899: checking whether struct sockaddr contains sa_len" >&5
Theodore Ts'o84ea6e72004-03-19 19:29:17 -05005899if eval "test \"`echo '$''{'e2fsprogs_cv_sockaddr_sa_len'+set}'`\" = set"; then
5900 echo $ac_n "(cached) $ac_c" 1>&6
5901else
5902 cat > conftest.$ac_ext <<EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05005903#line 5904 "configure"
Theodore Ts'o84ea6e72004-03-19 19:29:17 -05005904#include "confdefs.h"
5905#include <sys/types.h>
5906#include <sys/socket.h>
5907
5908int main() {
5909struct sockaddr sa;
5910sa.sa_len;
5911; return 0; }
5912EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05005913if { (eval echo configure:5914: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o84ea6e72004-03-19 19:29:17 -05005914 rm -rf conftest*
5915 e2fsprogs_cv_sockaddr_sa_len=yes
5916else
5917 echo "configure: failed program was:" >&5
5918 cat conftest.$ac_ext >&5
5919 rm -rf conftest*
5920 e2fsprogs_cv_sockaddr_sa_len=no
5921fi
5922rm -f conftest*
5923fi
5924
5925echo "$ac_t""$e2fsprogs_cv_sockaddr_sa_len" 1>&6
5926if test $e2fsprogs_cv_sockaddr_sa_len = yes; then
5927 cat >> confdefs.h <<EOF
5928#define HAVE_SA_LEN 1
5929EOF
5930
5931fi
Theodore Ts'o1c29b092003-07-12 16:01:45 -04005932for 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 +00005933do
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005934echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05005935echo "configure:5936: checking for $ac_func" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005936if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5937 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005938else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005939 cat > conftest.$ac_ext <<EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05005940#line 5941 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005941#include "confdefs.h"
5942/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005943 which can conflict with char $ac_func(); below. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005944#include <assert.h>
5945/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005946/* We use char because int might match the return type of a gcc2
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005947 builtin and then its argument prototype would still apply. */
5948char $ac_func();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005949
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005950int main() {
5951
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005952/* The GNU C library defines this for functions which it implements
5953 to always fail with ENOSYS. Some functions are actually named
5954 something starting with __ and the normal name is an alias. */
5955#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5956choke me
5957#else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005958$ac_func();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005959#endif
5960
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005961; return 0; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005962EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05005963if { (eval echo configure:5964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005964 rm -rf conftest*
5965 eval "ac_cv_func_$ac_func=yes"
5966else
5967 echo "configure: failed program was:" >&5
5968 cat conftest.$ac_ext >&5
5969 rm -rf conftest*
5970 eval "ac_cv_func_$ac_func=no"
5971fi
5972rm -f conftest*
5973fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005974
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005975if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5976 echo "$ac_t""yes" 1>&6
5977 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5978 cat >> confdefs.h <<EOF
5979#define $ac_tr_func 1
5980EOF
5981
5982else
5983 echo "$ac_t""no" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005984fi
5985done
5986
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005987SOCKET_LIB=''
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005988echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05005989echo "configure:5990: checking for socket in -lsocket" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005990ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
5991if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5992 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005993else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005994 ac_save_LIBS="$LIBS"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005995LIBS="-lsocket $LIBS"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005996cat > conftest.$ac_ext <<EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05005997#line 5998 "configure"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005998#include "confdefs.h"
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005999/* Override any gcc2 internal prototype to avoid an error. */
6000/* We use char because int might match the return type of a gcc2
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006001 builtin and then its argument prototype would still apply. */
6002char socket();
6003
6004int main() {
6005socket()
6006; return 0; }
6007EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05006008if { (eval echo configure:6009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006009 rm -rf conftest*
6010 eval "ac_cv_lib_$ac_lib_var=yes"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00006011else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006012 echo "configure: failed program was:" >&5
6013 cat conftest.$ac_ext >&5
6014 rm -rf conftest*
6015 eval "ac_cv_lib_$ac_lib_var=no"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00006016fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006017rm -f conftest*
6018LIBS="$ac_save_LIBS"
6019
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00006020fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006021if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6022 echo "$ac_t""yes" 1>&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00006023 SOCKET_LIB=-lsocket
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006024else
6025 echo "$ac_t""no" 1>&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00006026fi
6027
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006028
Theodore Ts'obbac86b2003-03-16 06:27:22 -05006029DLOPEN_LIB=''
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006030echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05006031echo "configure:6032: checking for dlopen in -ldl" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006032ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
6033if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6034 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'obbac86b2003-03-16 06:27:22 -05006035else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006036 ac_save_LIBS="$LIBS"
Theodore Ts'obbac86b2003-03-16 06:27:22 -05006037LIBS="-ldl $LIBS"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006038cat > conftest.$ac_ext <<EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05006039#line 6040 "configure"
Theodore Ts'obbac86b2003-03-16 06:27:22 -05006040#include "confdefs.h"
6041/* Override any gcc2 internal prototype to avoid an error. */
6042/* We use char because int might match the return type of a gcc2
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006043 builtin and then its argument prototype would still apply. */
6044char dlopen();
6045
6046int main() {
6047dlopen()
6048; return 0; }
6049EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05006050if { (eval echo configure:6051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006051 rm -rf conftest*
6052 eval "ac_cv_lib_$ac_lib_var=yes"
Theodore Ts'obbac86b2003-03-16 06:27:22 -05006053else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006054 echo "configure: failed program was:" >&5
6055 cat conftest.$ac_ext >&5
6056 rm -rf conftest*
6057 eval "ac_cv_lib_$ac_lib_var=no"
Theodore Ts'obbac86b2003-03-16 06:27:22 -05006058fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006059rm -f conftest*
6060LIBS="$ac_save_LIBS"
6061
Theodore Ts'obbac86b2003-03-16 06:27:22 -05006062fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006063if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6064 echo "$ac_t""yes" 1>&6
Theodore Ts'obbac86b2003-03-16 06:27:22 -05006065 DLOPEN_LIB=-ldl
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006066cat >> confdefs.h <<\EOF
Theodore Ts'obbac86b2003-03-16 06:27:22 -05006067#define HAVE_DLOPEN 1
6068EOF
6069
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006070else
6071 echo "$ac_t""no" 1>&6
Theodore Ts'obbac86b2003-03-16 06:27:22 -05006072fi
6073
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006074
6075echo $ac_n "checking for optreset""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05006076echo "configure:6077: checking for optreset" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006077if eval "test \"`echo '$''{'ac_cv_have_optreset'+set}'`\" = set"; then
6078 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006079else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006080 cat > conftest.$ac_ext <<EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05006081#line 6082 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006082#include "confdefs.h"
6083#include <unistd.h>
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006084EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006085if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6086 egrep "optreset" >/dev/null 2>&1; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006087 rm -rf conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006088 ac_cv_have_optreset=yes
6089else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006090 rm -rf conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006091 ac_cv_have_optreset=no
6092fi
6093rm -f conftest*
6094
6095fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006096echo "$ac_t""$ac_cv_have_optreset" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006097if test $ac_cv_have_optreset = yes; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006098 cat >> confdefs.h <<\EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006099#define HAVE_OPTRESET 1
6100EOF
6101
6102fi
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +00006103case "$host_os" in
6104linux*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006105 cat >> confdefs.h <<\EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006106#define HAVE_EXT2_IOCTLS 1
6107EOF
6108
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +00006109 ;;
6110esac
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -04006111LINUX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -04006112CYGWIN_CMT="#"
6113UNIX_CMT=
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -04006114case "$host_os" in
6115linux*)
6116 LINUX_CMT=
6117 ;;
Theodore Ts'offf45482003-04-13 00:44:19 -04006118cygwin)
6119 CYGWIN_CMT=
6120 UNIX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -04006121 ;;
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -04006122esac
6123
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006124
6125
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006126case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006127linux* | gnu* | k*bsd*-gnu)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00006128 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
6129 root_prefix="";
6130 echo "On $host_os systems, root_prefix defaults to ''"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00006131 fi
6132 ;;
6133esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00006134case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006135linux* | gnu* | k*bsd*-gnu)
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00006136 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00006137 prefix="/usr";
6138 echo "On $host_os systems, prefix defaults to /usr"
Theodore Ts'obff61a72002-05-21 22:21:38 -04006139 if test "$mandir" = '${prefix}/man' ; then
6140 echo "...and mandir defaults to /usr/share/man"
6141 mandir=/usr/share/man
6142 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006143 fi
6144;;
6145esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00006146if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +00006147 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00006148 root_prefix="$ac_default_prefix"
6149 else
6150 root_prefix="$prefix"
6151 fi
Theodore Ts'ob5ffead2002-05-11 19:17:00 -04006152 root_bindir=$bindir
6153 root_sbindir=$sbindir
6154 root_libdir=$libdir
6155 root_sysconfdir=$sysconfdir
6156else
6157 root_bindir='${root_prefix}/bin'
6158 root_sbindir='${root_prefix}/sbin'
6159 root_libdir='${root_prefix}/lib'
6160 root_sysconfdir='${root_prefix}/etc'
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00006161fi
6162
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006163
6164
6165
6166
6167echo $ac_n "checking whether linker accepts -static""... $ac_c" 1>&6
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05006168echo "configure:6169: checking whether linker accepts -static" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006169if eval "test \"`echo '$''{'ac_cv_e2fsprogs_use_static'+set}'`\" = set"; then
6170 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'oae851481997-04-29 18:13:24 +00006171else
6172 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006173cat > conftest.$ac_ext <<EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05006174#line 6175 "configure"
Theodore Ts'oae851481997-04-29 18:13:24 +00006175#include "confdefs.h"
6176#include <stdio.h>
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006177int main() {
Theodore Ts'oae851481997-04-29 18:13:24 +00006178fflush(stdout);
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006179; return 0; }
6180EOF
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05006181if { (eval echo configure:6182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006182 rm -rf conftest*
Theodore Ts'oae851481997-04-29 18:13:24 +00006183 ac_cv_e2fsprogs_use_static=yes
6184else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006185 echo "configure: failed program was:" >&5
6186 cat conftest.$ac_ext >&5
6187 rm -rf conftest*
6188 ac_cv_e2fsprogs_use_static=no
Theodore Ts'oae851481997-04-29 18:13:24 +00006189fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006190rm -f conftest*
Theodore Ts'oae851481997-04-29 18:13:24 +00006191LDFLAGS=$SAVE_LDFLAGS
6192fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006193
Theodore Ts'odefde781999-01-04 07:39:19 +00006194case "$host_os" in
6195solaris2.*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006196 ac_cv_e2fsprogs_use_static=no
Theodore Ts'odefde781999-01-04 07:39:19 +00006197;;
6198esac
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006199echo "$ac_t""$ac_cv_e2fsprogs_use_static" 1>&6
Theodore Ts'o74becf31997-04-26 14:37:06 +00006200LDFLAG_STATIC=
Theodore Ts'oae851481997-04-29 18:13:24 +00006201if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006202 LDFLAG_STATIC=-static
Theodore Ts'oae851481997-04-29 18:13:24 +00006203fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006204
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006205case "$host_os" in
6206darwin*)
6207 echo "Using Apple Darwin / GNU libintl workaround"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006208 cat >> confdefs.h <<\EOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006209#define _INTL_REDIRECT_MACROS 1
6210EOF
6211
6212 ;;
6213esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006214SS_DIR=`cd ${srcdir}/lib/ss; pwd`
6215ET_DIR=`cd ${srcdir}/lib/et; pwd`
6216
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006217
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006218if test "$cross_compiling" = yes ; then
6219 DO_TEST_SUITE=
6220else
6221 DO_TEST_SUITE=check
6222fi
6223
Theodore Ts'oc6f35b82003-05-17 16:29:27 -04006224INTL_FLAGS=
6225if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
6226 INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
6227fi
6228
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006229test -d lib || mkdir lib
6230test -d include || mkdir include
6231test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +00006232test -d include/asm || mkdir include/asm
Theodore Ts'obff0cc92003-03-23 01:37:53 -05006233for i in MCONFIG Makefile e2fsprogs.spec \
6234 util/Makefile util/subst.conf util/gen-tarball \
6235 lib/et/Makefile lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -05006236 lib/uuid/Makefile lib/uuid/uuid_types.h \
6237 lib/blkid/Makefile lib/blkid/blkid_types.h \
Theodore Ts'o921f4ad2004-11-19 17:25:27 -05006238 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -05006239 debugfs/Makefile tests/Makefile tests/progs/Makefile \
6240 resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do
6241 if test -d `dirname ${srcdir}/$i` ; then
6242 outlist="$outlist $i"
6243 fi
6244done
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006245trap '' 1 2 15
6246cat > confcache <<\EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006247# This file is a shell script that caches the results of configure
6248# tests run on this system so they can be shared between configure
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006249# scripts and configure runs. It is not useful on other systems.
6250# If it contains results you don't want to keep, you may remove or edit it.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006251#
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006252# By default, configure uses ./config.cache as the cache file,
6253# creating it if it does not exist already. You can give configure
6254# the --cache-file=FILE option to use a different cache file; that is
6255# what configure does when it calls configure scripts in
6256# subdirectories, so they share the cache.
6257# Giving --cache-file=/dev/null disables caching, for debugging configure.
6258# config.status only pays attention to the cache file if you give it the
6259# --recheck option to rerun configure.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006260#
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006261EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00006262# The following way of writing the cache mishandles newlines in values,
6263# but we know of no workaround that is simple, portable, and efficient.
6264# So, don't put newlines in cache variables' values.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006265# Ultrix sh set writes to stderr and can't be redirected directly,
6266# and sets the high bit in the cache file unless we assign to the vars.
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006267(set) 2>&1 |
6268 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6269 *ac_space=\ *)
6270 # `set' does not quote correctly, so add quotes (double-quote substitution
6271 # turns \\\\ into \\, and sed turns \\ into \).
6272 sed -n \
6273 -e "s/'/'\\\\''/g" \
6274 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6275 ;;
6276 *)
6277 # `set' quotes correctly as required by POSIX, so do not add quotes.
6278 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6279 ;;
6280 esac >> confcache
6281if cmp -s $cache_file confcache; then
6282 :
6283else
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006284 if test -w $cache_file; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006285 echo "updating cache $cache_file"
6286 cat confcache > $cache_file
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006287 else
6288 echo "not updating unwritable cache $cache_file"
6289 fi
6290fi
6291rm -f confcache
6292
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006293trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6294
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006295test "x$prefix" = xNONE && prefix=$ac_default_prefix
6296# Let make expand exec_prefix.
6297test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6298
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006299# Any assignment to VPATH causes Sun make to only execute
6300# the first set of double-colon rules, so remove it if not needed.
6301# If there is a colon in the path, we need to keep it.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006302if test "x$srcdir" = x.; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006303 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006304fi
6305
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006306trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6307
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006308# Transform confdefs.h into DEFS.
6309# Protect against shell expansion while executing Makefile rules.
6310# Protect against Makefile macro expansion.
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006311cat > conftest.defs <<\EOF
6312s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
6313s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
6314s%\[%\\&%g
6315s%\]%\\&%g
6316s%\$%$$%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006317EOF
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006318DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
6319rm -f conftest.defs
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006320
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006321
6322# Without the "./", some shells look in PATH for config.status.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006323: ${CONFIG_STATUS=./config.status}
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006324
6325echo creating $CONFIG_STATUS
6326rm -f $CONFIG_STATUS
6327cat > $CONFIG_STATUS <<EOF
6328#! /bin/sh
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006329# Generated automatically by configure.
6330# Run this file to recreate the current configuration.
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006331# This directory was configured as follows,
6332# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6333#
6334# $0 $ac_configure_args
6335#
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006336# Compiler output produced by configure, useful for debugging
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006337# configure, is in ./config.log if it exists.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006338
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006339ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6340for ac_option
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006341do
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006342 case "\$ac_option" in
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006343 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006344 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6345 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6346 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6347 echo "$CONFIG_STATUS generated by autoconf version 2.13"
6348 exit 0 ;;
6349 -help | --help | --hel | --he | --h)
6350 echo "\$ac_cs_usage"; exit 0 ;;
6351 *) echo "\$ac_cs_usage"; exit 1 ;;
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006352 esac
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006353done
6354
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006355ac_given_srcdir=$srcdir
6356ac_given_INSTALL="$INSTALL"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006357
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006358trap 'rm -fr `echo "$outlist" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6359EOF
6360cat >> $CONFIG_STATUS <<EOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006361
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006362# Protect against being on the right side of a sed subst in config.status.
6363sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6364 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6365$ac_vpsub
6366$extrasub
6367s%@SHELL@%$SHELL%g
6368s%@CFLAGS@%$CFLAGS%g
6369s%@CPPFLAGS@%$CPPFLAGS%g
6370s%@CXXFLAGS@%$CXXFLAGS%g
6371s%@FFLAGS@%$FFLAGS%g
6372s%@DEFS@%$DEFS%g
6373s%@LDFLAGS@%$LDFLAGS%g
6374s%@LIBS@%$LIBS%g
6375s%@exec_prefix@%$exec_prefix%g
6376s%@prefix@%$prefix%g
6377s%@program_transform_name@%$program_transform_name%g
6378s%@bindir@%$bindir%g
6379s%@sbindir@%$sbindir%g
6380s%@libexecdir@%$libexecdir%g
6381s%@datadir@%$datadir%g
6382s%@sysconfdir@%$sysconfdir%g
6383s%@sharedstatedir@%$sharedstatedir%g
6384s%@localstatedir@%$localstatedir%g
6385s%@libdir@%$libdir%g
6386s%@includedir@%$includedir%g
6387s%@oldincludedir@%$oldincludedir%g
6388s%@infodir@%$infodir%g
6389s%@mandir@%$mandir%g
6390/@MCONFIG@/r $MCONFIG
6391s%@MCONFIG@%%g
6392s%@E2FSPROGS_YEAR@%$E2FSPROGS_YEAR%g
6393s%@E2FSPROGS_MONTH@%$E2FSPROGS_MONTH%g
6394s%@E2FSPROGS_DAY@%$E2FSPROGS_DAY%g
6395s%@E2FSPROGS_VERSION@%$E2FSPROGS_VERSION%g
6396s%@host@%$host%g
6397s%@host_alias@%$host_alias%g
6398s%@host_cpu@%$host_cpu%g
6399s%@host_vendor@%$host_vendor%g
6400s%@host_os@%$host_os%g
6401s%@CC@%$CC%g
6402s%@LD@%$LD%g
6403s%@CPP@%$CPP%g
6404s%@LINUX_INCLUDE@%$LINUX_INCLUDE%g
6405s%@HTREE_CMT@%$HTREE_CMT%g
6406s%@HTREE_CLR_CMT@%$HTREE_CLR_CMT%g
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006407s%@ELF_CMT@%$ELF_CMT%g
6408/@MAKEFILE_ELF@/r $MAKEFILE_ELF
6409s%@MAKEFILE_ELF@%%g
6410s%@BSDLIB_CMT@%$BSDLIB_CMT%g
6411/@MAKEFILE_BSDLIB@/r $MAKEFILE_BSDLIB
6412s%@MAKEFILE_BSDLIB@%%g
6413s%@PROFILE_CMT@%$PROFILE_CMT%g
6414/@MAKEFILE_PROFILE@/r $MAKEFILE_PROFILE
6415s%@MAKEFILE_PROFILE@%%g
6416s%@CHECKER_CMT@%$CHECKER_CMT%g
6417/@MAKEFILE_CHECKER@/r $MAKEFILE_CHECKER
6418s%@MAKEFILE_CHECKER@%%g
6419s%@LIB_EXT@%$LIB_EXT%g
6420s%@STATIC_LIB_EXT@%$STATIC_LIB_EXT%g
6421s%@PROFILED_LIB_EXT@%$PROFILED_LIB_EXT%g
6422s%@SWAPFS_CMT@%$SWAPFS_CMT%g
6423s%@DEBUGFS_CMT@%$DEBUGFS_CMT%g
6424s%@IMAGER_CMT@%$IMAGER_CMT%g
6425s%@RESIZER_CMT@%$RESIZER_CMT%g
6426s%@E2FSCK_TYPE@%$E2FSCK_TYPE%g
6427s%@FSCK_PROG@%$FSCK_PROG%g
6428s%@FSCK_MAN@%$FSCK_MAN%g
Theodore Ts'o5d407732004-09-18 14:53:14 -04006429s%@E2INITRD_PROG@%$E2INITRD_PROG%g
6430s%@E2INITRD_MAN@%$E2INITRD_MAN%g
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006431/@MAKEFILE_LIBRARY@/r $MAKEFILE_LIBRARY
6432s%@MAKEFILE_LIBRARY@%%g
6433s%@PACKAGE@%$PACKAGE%g
6434s%@VERSION@%$VERSION%g
6435s%@SET_MAKE@%$SET_MAKE%g
6436s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6437s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6438s%@INSTALL_DATA@%$INSTALL_DATA%g
6439s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
6440s%@MSGFMT@%$MSGFMT%g
6441s%@GMSGFMT@%$GMSGFMT%g
6442s%@XGETTEXT@%$XGETTEXT%g
6443s%@MSGMERGE@%$MSGMERGE%g
6444s%@RANLIB@%$RANLIB%g
6445s%@ALLOCA@%$ALLOCA%g
6446s%@GLIBC21@%$GLIBC21%g
6447s%@LIBICONV@%$LIBICONV%g
6448s%@LTLIBICONV@%$LTLIBICONV%g
6449s%@INTLBISON@%$INTLBISON%g
6450s%@USE_NLS@%$USE_NLS%g
6451s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
6452s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
6453s%@CATOBJEXT@%$CATOBJEXT%g
6454s%@INTLOBJS@%$INTLOBJS%g
6455s%@DATADIRNAME@%$DATADIRNAME%g
6456s%@INSTOBJEXT@%$INSTOBJEXT%g
6457s%@GENCAT@%$GENCAT%g
6458s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
6459s%@INTLLIBS@%$INTLLIBS%g
6460s%@LIBINTL@%$LIBINTL%g
6461s%@LTLIBINTL@%$LTLIBINTL%g
6462s%@POSUB@%$POSUB%g
6463s%@BINARY_TYPE@%$BINARY_TYPE%g
6464s%@LN@%$LN%g
6465s%@LN_S@%$LN_S%g
6466s%@MV@%$MV%g
6467s%@CP@%$CP%g
6468s%@RM@%$RM%g
6469s%@CHMOD@%$CHMOD%g
6470s%@AWK@%$AWK%g
6471s%@SED@%$SED%g
6472s%@PERL@%$PERL%g
6473s%@LDCONFIG@%$LDCONFIG%g
6474s%@build@%$build%g
6475s%@build_alias@%$build_alias%g
6476s%@build_cpu@%$build_cpu%g
6477s%@build_vendor@%$build_vendor%g
6478s%@build_os@%$build_os%g
6479s%@AR@%$AR%g
6480s%@STRIP@%$STRIP%g
6481s%@BUILD_CC@%$BUILD_CC%g
6482s%@SIZEOF_SHORT@%$SIZEOF_SHORT%g
6483s%@SIZEOF_INT@%$SIZEOF_INT%g
6484s%@SIZEOF_LONG@%$SIZEOF_LONG%g
6485s%@SIZEOF_LONG_LONG@%$SIZEOF_LONG_LONG%g
6486s%@SOCKET_LIB@%$SOCKET_LIB%g
6487s%@DLOPEN_LIB@%$DLOPEN_LIB%g
6488s%@LINUX_CMT@%$LINUX_CMT%g
6489s%@CYGWIN_CMT@%$CYGWIN_CMT%g
6490s%@UNIX_CMT@%$UNIX_CMT%g
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006491s%@root_prefix@%$root_prefix%g
6492s%@root_bindir@%$root_bindir%g
6493s%@root_sbindir@%$root_sbindir%g
6494s%@root_libdir@%$root_libdir%g
6495s%@root_sysconfdir@%$root_sysconfdir%g
6496s%@LDFLAG_STATIC@%$LDFLAG_STATIC%g
6497s%@SS_DIR@%$SS_DIR%g
6498s%@ET_DIR@%$ET_DIR%g
6499s%@DO_TEST_SUITE@%$DO_TEST_SUITE%g
6500s%@INTL_FLAGS@%$INTL_FLAGS%g
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006501
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006502CEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006503EOF
6504
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006505cat >> $CONFIG_STATUS <<\EOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006506
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006507# Split the substitutions into bite-sized pieces for seds with
6508# small command number limits, like on Digital OSF/1 and HP-UX.
6509ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
6510ac_file=1 # Number of current file.
6511ac_beg=1 # First line for current file.
6512ac_end=$ac_max_sed_cmds # Line after last line for current file.
6513ac_more_lines=:
6514ac_sed_cmds=""
6515while $ac_more_lines; do
6516 if test $ac_beg -gt 1; then
6517 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
6518 else
6519 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
6520 fi
6521 if test ! -s conftest.s$ac_file; then
6522 ac_more_lines=false
6523 rm -f conftest.s$ac_file
6524 else
6525 if test -z "$ac_sed_cmds"; then
6526 ac_sed_cmds="sed -f conftest.s$ac_file"
6527 else
6528 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
6529 fi
6530 ac_file=`expr $ac_file + 1`
6531 ac_beg=$ac_end
6532 ac_end=`expr $ac_end + $ac_max_sed_cmds`
6533 fi
6534done
6535if test -z "$ac_sed_cmds"; then
6536 ac_sed_cmds=cat
6537fi
6538EOF
6539
6540cat >> $CONFIG_STATUS <<EOF
6541
6542CONFIG_FILES=\${CONFIG_FILES-"$outlist"}
6543EOF
6544cat >> $CONFIG_STATUS <<\EOF
6545for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
6546 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6547 case "$ac_file" in
6548 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6549 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6550 *) ac_file_in="${ac_file}.in" ;;
6551 esac
6552
6553 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6554
6555 # Remove last slash and all that follows it. Not all systems have dirname.
6556 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6557 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6558 # The file is in a subdirectory.
6559 test ! -d "$ac_dir" && mkdir "$ac_dir"
6560 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
6561 # A "../" for each directory in $ac_dir_suffix.
6562 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6563 else
6564 ac_dir_suffix= ac_dots=
6565 fi
6566
6567 case "$ac_given_srcdir" in
6568 .) srcdir=.
6569 if test -z "$ac_dots"; then top_srcdir=.
6570 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6571 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
6572 *) # Relative path.
6573 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6574 top_srcdir="$ac_dots$ac_given_srcdir" ;;
6575 esac
6576
6577 case "$ac_given_INSTALL" in
6578 [/$]*) INSTALL="$ac_given_INSTALL" ;;
6579 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6580 esac
6581
6582 echo creating "$ac_file"
6583 rm -f "$ac_file"
6584 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6585 case "$ac_file" in
6586 *Makefile*) ac_comsub="1i\\
6587# $configure_input" ;;
6588 *) ac_comsub= ;;
6589 esac
6590
6591 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6592 sed -e "$ac_comsub
6593s%@configure_input@%$configure_input%g
6594s%@srcdir@%$srcdir%g
6595s%@top_srcdir@%$top_srcdir%g
6596s%@INSTALL@%$INSTALL%g
6597" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
6598fi; done
6599rm -f conftest.s*
6600
6601EOF
6602cat >> $CONFIG_STATUS <<EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006603# Capture the value of obsolete ALL_LINGUAS because we need it to compute
6604 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
6605 # from automake.
6606 eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
6607 # Capture the value of LINGUAS because we need it to compute CATALOGS.
6608 LINGUAS="${LINGUAS-%UNSET%}"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006609
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006610
Theodore Ts'o21c84b71997-04-29 16:15:03 +00006611EOF
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006612cat >> $CONFIG_STATUS <<\EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006613
6614 for ac_file in $CONFIG_FILES; do
6615 # Support "outfile[:infile[:infile...]]"
6616 case "$ac_file" in
6617 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006618 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006619 # PO directories have a Makefile.in generated from Makefile.in.in.
6620 case "$ac_file" in */Makefile.in)
6621 # Adjust a relative srcdir.
6622 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
6623 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
6624 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
6625 # In autoconf-2.13 it is called $ac_given_srcdir.
6626 # In autoconf-2.50 it is called $srcdir.
6627 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
6628 case "$ac_given_srcdir" in
6629 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
6630 /*) top_srcdir="$ac_given_srcdir" ;;
6631 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
6632 esac
6633 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
6634 rm -f "$ac_dir/POTFILES"
6635 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
6636 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
6637 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
6638 # on $ac_dir but don't depend on user-specified configuration
6639 # parameters.
6640 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
6641 # The LINGUAS file contains the set of available languages.
6642 if test -n "$ALL_LINGUAS"; then
6643 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
6644 fi
6645 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
6646 # Hide the ALL_LINGUAS assigment from automake.
6647 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
6648 fi
6649 case "$ac_given_srcdir" in
6650 .) srcdirpre= ;;
6651 *) srcdirpre='$(srcdir)/' ;;
6652 esac
6653 POFILES=
6654 GMOFILES=
6655 UPDATEPOFILES=
6656 DUMMYPOFILES=
6657 for lang in $ALL_LINGUAS; do
6658 POFILES="$POFILES $srcdirpre$lang.po"
6659 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
6660 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
6661 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
6662 done
6663 # CATALOGS depends on both $ac_dir and the user's LINGUAS
6664 # environment variable.
6665 INST_LINGUAS=
6666 if test -n "$ALL_LINGUAS"; then
6667 for presentlang in $ALL_LINGUAS; do
6668 useit=no
6669 if test "%UNSET%" != "$LINGUAS"; then
6670 desiredlanguages="$LINGUAS"
6671 else
6672 desiredlanguages="$ALL_LINGUAS"
6673 fi
6674 for desiredlang in $desiredlanguages; do
6675 # Use the presentlang catalog if desiredlang is
6676 # a. equal to presentlang, or
6677 # b. a variant of presentlang (because in this case,
6678 # presentlang can be used as a fallback for messages
6679 # which are not translated in the desiredlang catalog).
6680 case "$desiredlang" in
6681 "$presentlang"*) useit=yes;;
6682 esac
6683 done
6684 if test $useit = yes; then
6685 INST_LINGUAS="$INST_LINGUAS $presentlang"
6686 fi
6687 done
6688 fi
6689 CATALOGS=
6690 if test -n "$INST_LINGUAS"; then
6691 for lang in $INST_LINGUAS; do
6692 CATALOGS="$CATALOGS $lang.gmo"
6693 done
6694 fi
6695 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
6696 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"
6697 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
6698 if test -f "$f"; then
6699 case "$f" in
6700 *.orig | *.bak | *~) ;;
6701 *) cat "$f" >> "$ac_dir/Makefile" ;;
6702 esac
6703 fi
6704 done
6705 fi
6706 ;;
6707 esac
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006708 done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006709
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006710exit 0
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006711EOF
6712chmod +x $CONFIG_STATUS
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006713rm -fr confdefs* $ac_clean_files
6714test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006715