blob: 5a267ca9698f0ceaa19be5b0c018df0ed34e463d [file] [log] [blame]
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004# Generated automatically using autoconf version 2.13
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006#
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Defaults:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
14ac_help="$ac_help
Theodore Ts'o74becf31997-04-26 14:37:06 +000015 --with-cc=COMPILER select compiler to use"
16ac_help="$ac_help
17 --with-linker=LINKER select linker to use"
18ac_help="$ac_help
19 --with-ccopts=CCOPTS select compiler command line options"
20ac_help="$ac_help
21 --with-ldopts=LDOPTS select linker command line options"
22ac_help="$ac_help
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000023 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000024ac_help="$ac_help
Theodore Ts'o19178752000-02-11 15:55:07 +000025 --enable-compression enable EXPERIMENTAL compression support"
26ac_help="$ac_help
Theodore Ts'o8fdc9982002-06-25 23:26:34 -040027 --enable-htree enable EXPERIMENTAL htree directory support"
28ac_help="$ac_help
29 --enable-htree-clear clear htree because we don't trust e2fsck"
30ac_help="$ac_help
Theodore Ts'oa9d799a2002-11-08 13:50:51 -050031 --enable-evms-10 use EVMS 1.0 ABI (instead of EVMS 1.2)"
32ac_help="$ac_help
33 --enable-evms-11 use EVMS 1.1 ABI (instead of EVMS 1.1)"
Theodore Ts'off6dbcc2002-05-24 22:44:42 -040034ac_help="$ac_help
Theodore Ts'oa4d09611997-04-29 14:28:00 +000035 --enable-dll-shlibs select DLL libraries"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000036ac_help="$ac_help
Theodore Ts'oa4d09611997-04-29 14:28:00 +000037 --enable-elf-shlibs select ELF shared libraries"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000038ac_help="$ac_help
Theodore Ts'oa4d09611997-04-29 14:28:00 +000039 --enable-bsd-shlibs select BSD shared libraries"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000040ac_help="$ac_help
Theodore Ts'ocdf186e2001-06-13 22:16:47 +000041 --enable-profile build profiling libraries"
42ac_help="$ac_help
43 --enable-checker build checker libraries"
44ac_help="$ac_help
Theodore Ts'o782bebf2002-11-08 18:46:45 -050045 --enable-jbd-debug enable journal debugging"
Theodore Ts'o80bfaa32000-08-18 15:08:37 +000046ac_help="$ac_help
Theodore Ts'of0a22d02003-02-22 13:19:53 -050047 --enable-blkid-debug enable blkid debugging"
48ac_help="$ac_help
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000049 --disable-swapfs disable support of legacy byte-swapped filesystems"
50ac_help="$ac_help
Theodore Ts'ocdf186e2001-06-13 22:16:47 +000051 --disable-debugfs disable support of debugfs program"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000052ac_help="$ac_help
Theodore Ts'ocdf186e2001-06-13 22:16:47 +000053 --disable-imager disable support of e2image program"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000054ac_help="$ac_help
Theodore Ts'ocdf186e2001-06-13 22:16:47 +000055 --disable-resizer disable support of e2resize program"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000056ac_help="$ac_help
Theodore Ts'oa4d09611997-04-29 14:28:00 +000057 --enable-dynamic-e2fsck build e2fsck dynamically"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000058ac_help="$ac_help
59 --enable-fsck build fsck wrapper program"
60ac_help="$ac_help
61 --enable-old-bitops Use old (non-standard but native) bitmask operations"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +000062ac_help="$ac_help
Theodore Ts'oa04eba32003-05-03 16:35:17 -040063 --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"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +000071ac_help="$ac_help
72 --with-included-gettext use the GNU gettext library included here"
73ac_help="$ac_help
Theodore Ts'oa04eba32003-05-03 16:35:17 -040074 --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.
80build=NONE
81cache_file=./config.cache
82exec_prefix=NONE
83host=NONE
84no_create=
85nonopt=NONE
86no_recursion=
87prefix=NONE
88program_prefix=NONE
89program_suffix=NONE
90program_transform_name=s,x,x,
91silent=
92site=
93srcdir=
94target=NONE
95verbose=
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
111# Initialize some other variables.
112subdirs=
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000113MFLAGS= MAKEFLAGS=
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000114SHELL=${CONFIG_SHELL-/bin/sh}
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000115# 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
121
122 # 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
129 case "$ac_option" in
130 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
131 *) ac_optarg= ;;
132 esac
133
134 # Accept the important Cygnus configure options, so we can diagnose typos.
135
136 case "$ac_option" in
137
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=*)
141 bindir="$ac_optarg" ;;
142
143 -build | --build | --buil | --bui | --bu)
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000144 ac_prev=build ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000145 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000146 build="$ac_optarg" ;;
147
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=*)
153 cache_file="$ac_optarg" ;;
154
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=*)
159 datadir="$ac_optarg" ;;
160
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000161 -disable-* | --disable-*)
162 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
163 # Reject names that are not valid shell variable names.
164 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" ;;
169
170 -enable-* | --enable-*)
171 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
172 # Reject names that are not valid shell variable names.
173 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 *=*) ;;
179 *) ac_optarg=yes ;;
180 esac
181 eval "enable_${ac_feature}='$ac_optarg'" ;;
182
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=*)
190 exec_prefix="$ac_optarg" ;;
191
192 -gas | --gas | --ga | --g)
193 # Obsolete; use --with-gas.
194 with_gas=yes ;;
195
196 -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]
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000211 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000212 [same as prefix]
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000213 --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]
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000227 --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
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000230 --program-transform-name=PROGRAM
231 run sed PROGRAM on installed program names
232EOF
233 cat << EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000234Host 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
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000245EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000246 if test -n "$ac_help"; then
247 echo "--enable and --with options recognized:$ac_help"
248 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000249 exit 0 ;;
250
251 -host | --host | --hos | --ho)
252 ac_prev=host ;;
253 -host=* | --host=* | --hos=* | --ho=*)
254 host="$ac_optarg" ;;
255
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=*)
261 includedir="$ac_optarg" ;;
262
263 -infodir | --infodir | --infodi | --infod | --info | --inf)
264 ac_prev=infodir ;;
265 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
266 infodir="$ac_optarg" ;;
267
268 -libdir | --libdir | --libdi | --libd)
269 ac_prev=libdir ;;
270 -libdir=* | --libdir=* | --libdi=* | --libd=*)
271 libdir="$ac_optarg" ;;
272
273 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
274 | --libexe | --libex | --libe)
275 ac_prev=libexecdir ;;
276 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
277 | --libexe=* | --libex=* | --libe=*)
278 libexecdir="$ac_optarg" ;;
279
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=*)
287 localstatedir="$ac_optarg" ;;
288
289 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
290 ac_prev=mandir ;;
291 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
292 mandir="$ac_optarg" ;;
293
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=*)
313 oldincludedir="$ac_optarg" ;;
314
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=*)
318 prefix="$ac_optarg" ;;
319
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=*)
325 program_prefix="$ac_optarg" ;;
326
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=*)
332 program_suffix="$ac_optarg" ;;
333
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=*)
349 program_transform_name="$ac_optarg" ;;
350
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=*)
359 sbindir="$ac_optarg" ;;
360
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=*)
370 sharedstatedir="$ac_optarg" ;;
371
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000372 -site | --site | --sit)
373 ac_prev=site ;;
374 -site=* | --site=* | --sit=*)
375 site="$ac_optarg" ;;
376
377 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
378 ac_prev=srcdir ;;
379 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
380 srcdir="$ac_optarg" ;;
381
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=*)
387 sysconfdir="$ac_optarg" ;;
388
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000389 -target | --target | --targe | --targ | --tar | --ta | --t)
390 ac_prev=target ;;
391 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
392 target="$ac_optarg" ;;
393
394 -v | -verbose | --verbose | --verbos | --verbo | --verb)
395 verbose=yes ;;
396
397 -version | --version | --versio | --versi | --vers)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000398 echo "configure generated by autoconf version 2.13"
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000399 exit 0 ;;
400
401 -with-* | --with-*)
402 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
403 # Reject names that are not valid shell variable names.
404 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
407 ac_package=`echo $ac_package| sed 's/-/_/g'`
408 case "$ac_option" in
409 *=*) ;;
410 *) ac_optarg=yes ;;
411 esac
412 eval "with_${ac_package}='$ac_optarg'" ;;
413
414 -without-* | --without-*)
415 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
416 # Reject names that are not valid shell variable names.
417 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" ;;
422
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=*)
432 x_includes="$ac_optarg" ;;
433
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=*)
439 x_libraries="$ac_optarg" ;;
440
441 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
442 ;;
443
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000444 *)
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000445 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"
452 ;;
453
454 esac
455done
456
457if test -n "$ac_prev"; then
458 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
459fi
460
461trap '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
487do
488 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" ;;
496 esac
497done
498
499# NLS nuisances.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000500# 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.
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000504if test "${LANG+set}" = set; then LANG=C; export LANG; fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000505if 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
509# 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
513
514# 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
517
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
523 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
524 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
534 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
535 else
536 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
537 fi
538fi
539srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
540
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
551 echo "loading site script $ac_site_file"
552 . "$ac_site_file"
553 fi
554done
555
556if test -r "$cache_file"; then
557 echo "loading cache $cache_file"
558 . $cache_file
559else
560 echo "creating cache $cache_file"
561 > $cache_file
562fi
563
564ac_ext=c
565# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
566ac_cpp='$CPP $CPPFLAGS'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000567ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000568ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000569cross_compiling=$ac_cv_prog_cc_cross
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000570
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000571ac_exeext=
572ac_objext=o
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000573if (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
581else
582 ac_n= ac_c='\c' ac_t=
583fi
584
Theodore Ts'oa04eba32003-05-03 16:35:17 -0400585# 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
597echo "configure:598: checking for ld used by GCC" >&5
598 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
627echo "configure:628: checking for GNU ld" >&5
628else
629 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
630echo "configure:631: checking for non-GNU ld" >&5
631fi
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
665echo "configure:666: checking if the linker ($LD) is GNU ld" >&5
666if 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
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000681
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
722
723
Theodore Ts'obff0cc92003-03-23 01:37:53 -0500724
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
738 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
739fi
740ac_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
744
745# Make sure we can run config.sub.
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000746if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000747else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
748fi
749
750echo $ac_n "checking host system type""... $ac_c" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -0400751echo "configure:752: checking host system type" >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000752
753host_alias=$host
754case "$host_alias" in
755NONE)
756 case $nonopt in
757 NONE)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000758 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000759 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
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000765host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000766host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
767host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
768host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000769echo "$ac_t""$host" 1>&6
770
Theodore Ts'o74becf31997-04-26 14:37:06 +0000771# Check whether --with-cc or --without-cc was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000772if test "${with_cc+set}" = set; then
773 withval="$with_cc"
Theodore Ts'o74becf31997-04-26 14:37:06 +0000774 echo "$ac_t""CC=$withval" 1>&6
775CC=$withval
776else
777 if test -z "$CC" ; then CC=cc; fi
778echo "$ac_t""CC defaults to $CC" 1>&6
779fi
780export CC
781
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000782# Extract the first word of "gcc", so it can be a program name with args.
783set dummy gcc; ac_word=$2
784echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -0400785echo "configure:786: checking for $ac_word" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000786if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
787 echo $ac_n "(cached) $ac_c" 1>&6
788else
789 if test -n "$CC"; then
790 ac_cv_prog_CC="$CC" # Let the user override the test.
791else
792 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
793 ac_dummy="$PATH"
794 for ac_dir in $ac_dummy; do
795 test -z "$ac_dir" && ac_dir=.
796 if test -f $ac_dir/$ac_word; then
797 ac_cv_prog_CC="gcc"
798 break
799 fi
800 done
801 IFS="$ac_save_ifs"
802fi
803fi
804CC="$ac_cv_prog_CC"
805if test -n "$CC"; then
806 echo "$ac_t""$CC" 1>&6
807else
808 echo "$ac_t""no" 1>&6
809fi
810
811if test -z "$CC"; then
812 # Extract the first word of "cc", so it can be a program name with args.
813set dummy cc; ac_word=$2
814echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -0400815echo "configure:816: checking for $ac_word" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000816if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
817 echo $ac_n "(cached) $ac_c" 1>&6
818else
819 if test -n "$CC"; then
820 ac_cv_prog_CC="$CC" # Let the user override the test.
821else
822 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
823 ac_prog_rejected=no
824 ac_dummy="$PATH"
825 for ac_dir in $ac_dummy; do
826 test -z "$ac_dir" && ac_dir=.
827 if test -f $ac_dir/$ac_word; then
828 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
829 ac_prog_rejected=yes
830 continue
831 fi
832 ac_cv_prog_CC="cc"
833 break
834 fi
835 done
836 IFS="$ac_save_ifs"
837if test $ac_prog_rejected = yes; then
838 # We found a bogon in the path, so make sure we never use it.
839 set dummy $ac_cv_prog_CC
840 shift
841 if test $# -gt 0; then
842 # We chose a different compiler from the bogus one.
843 # However, it has the same basename, so the bogon will be chosen
844 # first if we set CC to just the basename; use the full file name.
845 shift
846 set dummy "$ac_dir/$ac_word" "$@"
847 shift
848 ac_cv_prog_CC="$@"
849 fi
850fi
851fi
852fi
853CC="$ac_cv_prog_CC"
854if test -n "$CC"; then
855 echo "$ac_t""$CC" 1>&6
856else
857 echo "$ac_t""no" 1>&6
858fi
859
860 if test -z "$CC"; then
861 case "`uname -s`" in
862 *win32* | *WIN32*)
863 # Extract the first word of "cl", so it can be a program name with args.
864set dummy cl; ac_word=$2
865echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -0400866echo "configure:867: checking for $ac_word" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000867if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
868 echo $ac_n "(cached) $ac_c" 1>&6
869else
870 if test -n "$CC"; then
871 ac_cv_prog_CC="$CC" # Let the user override the test.
872else
873 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
874 ac_dummy="$PATH"
875 for ac_dir in $ac_dummy; do
876 test -z "$ac_dir" && ac_dir=.
877 if test -f $ac_dir/$ac_word; then
878 ac_cv_prog_CC="cl"
879 break
880 fi
881 done
882 IFS="$ac_save_ifs"
883fi
884fi
885CC="$ac_cv_prog_CC"
886if test -n "$CC"; then
887 echo "$ac_t""$CC" 1>&6
888else
889 echo "$ac_t""no" 1>&6
890fi
891 ;;
892 esac
893 fi
894 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
895fi
896
897echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -0400898echo "configure:899: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000899
900ac_ext=c
901# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
902ac_cpp='$CPP $CPPFLAGS'
903ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
904ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
905cross_compiling=$ac_cv_prog_cc_cross
906
907cat > conftest.$ac_ext << EOF
908
Theodore Ts'oa04eba32003-05-03 16:35:17 -0400909#line 910 "configure"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000910#include "confdefs.h"
911
912main(){return(0);}
913EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -0400914if { (eval echo configure:915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000915 ac_cv_prog_cc_works=yes
916 # If we can't run a trivial program, we are probably using a cross compiler.
917 if (./conftest; exit) 2>/dev/null; then
918 ac_cv_prog_cc_cross=no
919 else
920 ac_cv_prog_cc_cross=yes
921 fi
922else
923 echo "configure: failed program was:" >&5
924 cat conftest.$ac_ext >&5
925 ac_cv_prog_cc_works=no
926fi
927rm -fr conftest*
928ac_ext=c
929# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
930ac_cpp='$CPP $CPPFLAGS'
931ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
932ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
933cross_compiling=$ac_cv_prog_cc_cross
934
935echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
936if test $ac_cv_prog_cc_works = no; then
937 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
938fi
939echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -0400940echo "configure:941: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000941echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
942cross_compiling=$ac_cv_prog_cc_cross
943
944echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -0400945echo "configure:946: checking whether we are using GNU C" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000946if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
947 echo $ac_n "(cached) $ac_c" 1>&6
948else
949 cat > conftest.c <<EOF
950#ifdef __GNUC__
951 yes;
952#endif
953EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -0400954if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:955: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000955 ac_cv_prog_gcc=yes
956else
957 ac_cv_prog_gcc=no
958fi
959fi
960
961echo "$ac_t""$ac_cv_prog_gcc" 1>&6
962
963if test $ac_cv_prog_gcc = yes; then
964 GCC=yes
965else
966 GCC=
967fi
968
969ac_test_CFLAGS="${CFLAGS+set}"
970ac_save_CFLAGS="$CFLAGS"
971CFLAGS=
972echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -0400973echo "configure:974: checking whether ${CC-cc} accepts -g" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000974if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
975 echo $ac_n "(cached) $ac_c" 1>&6
976else
977 echo 'void f(){}' > conftest.c
978if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
979 ac_cv_prog_cc_g=yes
980else
981 ac_cv_prog_cc_g=no
982fi
983rm -f conftest*
984
985fi
986
987echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
988if test "$ac_test_CFLAGS" = set; then
989 CFLAGS="$ac_save_CFLAGS"
990elif test $ac_cv_prog_cc_g = yes; then
991 if test "$GCC" = yes; then
992 CFLAGS="-g -O2"
993 else
994 CFLAGS="-g"
995 fi
996else
997 if test "$GCC" = yes; then
998 CFLAGS="-O2"
999 else
1000 CFLAGS=
1001 fi
1002fi
1003
Theodore Ts'o74becf31997-04-26 14:37:06 +00001004# Check whether --with-linker or --without-linker was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001005if test "${with_linker+set}" = set; then
1006 withval="$with_linker"
Theodore Ts'o74becf31997-04-26 14:37:06 +00001007 echo "$ac_t""LD=$withval" 1>&6
1008LD=$withval
1009else
1010 if test -z "$LD" ; then LD=$CC; fi
1011echo "$ac_t""LD defaults to $LD" 1>&6
1012fi
1013export LD
1014
1015# Check whether --with-ccopts or --without-ccopts was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001016if test "${with_ccopts+set}" = set; then
1017 withval="$with_ccopts"
Theodore Ts'o74becf31997-04-26 14:37:06 +00001018 echo "$ac_t""CCOPTS is $withval" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001019CFLAGS=$withval
Theodore Ts'o74becf31997-04-26 14:37:06 +00001020fi
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001021echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001022echo "configure:1023: checking how to run the C preprocessor" >&5
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001023# On Suns, sometimes $CPP names a directory.
1024if test -n "$CPP" && test -d "$CPP"; then
1025 CPP=
1026fi
1027if test -z "$CPP"; then
1028if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1029 echo $ac_n "(cached) $ac_c" 1>&6
1030else
1031 # This must be in double quotes, not single quotes, because CPP may get
1032 # substituted into the Makefile and "${CC-cc}" will confuse make.
1033 CPP="${CC-cc} -E"
1034 # On the NeXT, cc -E runs the code through the compiler's parser,
1035 # not just through cpp.
1036 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001037#line 1038 "configure"
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001038#include "confdefs.h"
1039#include <assert.h>
1040Syntax Error
1041EOF
1042ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001043{ (eval echo configure:1044: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001044ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1045if test -z "$ac_err"; then
1046 :
1047else
1048 echo "$ac_err" >&5
1049 echo "configure: failed program was:" >&5
1050 cat conftest.$ac_ext >&5
1051 rm -rf conftest*
1052 CPP="${CC-cc} -E -traditional-cpp"
1053 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001054#line 1055 "configure"
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001055#include "confdefs.h"
1056#include <assert.h>
1057Syntax Error
1058EOF
1059ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001060{ (eval echo configure:1061: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001061ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1062if test -z "$ac_err"; then
1063 :
1064else
1065 echo "$ac_err" >&5
1066 echo "configure: failed program was:" >&5
1067 cat conftest.$ac_ext >&5
1068 rm -rf conftest*
1069 CPP="${CC-cc} -nologo -E"
1070 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001071#line 1072 "configure"
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001072#include "confdefs.h"
1073#include <assert.h>
1074Syntax Error
1075EOF
1076ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001077{ (eval echo configure:1078: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001078ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1079if test -z "$ac_err"; then
1080 :
1081else
1082 echo "$ac_err" >&5
1083 echo "configure: failed program was:" >&5
1084 cat conftest.$ac_ext >&5
1085 rm -rf conftest*
1086 CPP=/lib/cpp
1087fi
1088rm -f conftest*
1089fi
1090rm -f conftest*
1091fi
1092rm -f conftest*
1093 ac_cv_prog_CPP="$CPP"
1094fi
1095 CPP="$ac_cv_prog_CPP"
1096else
1097 ac_cv_prog_CPP="$CPP"
1098fi
1099echo "$ac_t""$CPP" 1>&6
1100
1101ac_safe=`echo "linux/fs.h" | sed 'y%./+-%__p_%'`
1102echo $ac_n "checking for linux/fs.h""... $ac_c" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001103echo "configure:1104: checking for linux/fs.h" >&5
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001104if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1105 echo $ac_n "(cached) $ac_c" 1>&6
1106else
1107 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001108#line 1109 "configure"
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001109#include "confdefs.h"
1110#include <linux/fs.h>
1111EOF
1112ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001113{ (eval echo configure:1114: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001114ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1115if test -z "$ac_err"; then
1116 rm -rf conftest*
1117 eval "ac_cv_header_$ac_safe=yes"
1118else
1119 echo "$ac_err" >&5
1120 echo "configure: failed program was:" >&5
1121 cat conftest.$ac_ext >&5
1122 rm -rf conftest*
1123 eval "ac_cv_header_$ac_safe=no"
1124fi
1125rm -f conftest*
1126fi
1127if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1128 echo "$ac_t""yes" 1>&6
1129 linux_headers=yes
1130else
1131 echo "$ac_t""no" 1>&6
1132linux_headers=no
1133fi
1134
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001135if test "$linux_headers" != yes; then
1136 LINUX_INCLUDE='-I$(top_builddir)/include'
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001137fi
1138
Theodore Ts'oa4d09611997-04-29 14:28:00 +00001139LIB_EXT=.a
1140STATIC_LIB_EXT=.a
1141PROFILE_LIB_EXT=.a
Theodore Ts'o74becf31997-04-26 14:37:06 +00001142# Check whether --with-ldopts or --without-ldopts was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001143if test "${with_ldopts+set}" = set; then
1144 withval="$with_ldopts"
Theodore Ts'o74becf31997-04-26 14:37:06 +00001145 echo "$ac_t""LDFLAGS is $withval" 1>&6
1146LDFLAGS=$withval
1147else
1148 LDFLAGS=
1149fi
1150
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00001151# Check whether --with-root-prefix or --without-root-prefix was given.
1152if test "${with_root_prefix+set}" = set; then
1153 withval="$with_root_prefix"
1154 root_prefix=$withval
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001155else
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00001156 root_prefix=NONE
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001157fi
Theodore Ts'o19178752000-02-11 15:55:07 +00001158# Check whether --enable-compression or --disable-compression was given.
1159if test "${enable_compression+set}" = set; then
1160 enableval="$enable_compression"
1161 if test "$enableval" = "no"
1162then
1163 echo "Disabling compression support"
1164else
1165 cat >> confdefs.h <<\EOF
1166#define ENABLE_COMPRESSION 1
1167EOF
1168
1169 echo "Enabling compression support"
1170 echo "WARNING: Compression support is experimental"
1171fi
1172
1173else
1174 echo "Disabling compression support by default"
1175
1176fi
1177
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04001178# Check whether --enable-htree or --disable-htree was given.
1179if test "${enable_htree+set}" = set; then
1180 enableval="$enable_htree"
1181 if test "$enableval" = "no"
1182then
1183 HTREE_CMT=#
1184 echo "Disabling htree directory support"
1185else
1186 HTREE_CMT=
1187 cat >> confdefs.h <<\EOF
1188#define ENABLE_HTREE 1
1189EOF
1190
1191 echo "Enabling htree directory support"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04001192fi
1193
1194else
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04001195 HTREE_CMT=
1196cat >> confdefs.h <<\EOF
1197#define ENABLE_HTREE 1
1198EOF
1199
1200echo "Enabling htree directory support by default"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04001201
1202fi
1203
1204
1205# Check whether --enable-htree-clear or --disable-htree-clear was given.
1206if test "${enable_htree_clear+set}" = set; then
1207 enableval="$enable_htree_clear"
1208 if test "$enableval" = "no"
1209then
1210 HTREE_CLR_CMT=#
1211 echo "Disabling htree clearing"
1212else
1213 HTREE_CLR_CMT=
1214 cat >> confdefs.h <<\EOF
1215#define ENABLE_HTREE_CLEAR 1
1216EOF
1217
1218 echo "Enabling htree clearing"
1219fi
1220
1221else
1222 HTREE_CLR_CMT=#
1223echo "Disabling htree clearing by default"
1224
1225fi
1226
1227
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05001228EVMS_ABI_CODE=120
1229# Check whether --enable-evms-10 or --disable-evms-10 was given.
1230if test "${enable_evms_10+set}" = set; then
1231 enableval="$enable_evms_10"
1232 if test "$enableval" != "no"
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04001233then
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05001234 EVMS_ABI_CODE=100
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04001235 echo "Enabling EVMS 1.0.0 ABI"
1236fi
1237
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05001238fi
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04001239
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05001240# Check whether --enable-evms-11 or --disable-evms-11 was given.
1241if test "${enable_evms_11+set}" = set; then
1242 enableval="$enable_evms_11"
1243 if test "$enableval" != "no"
1244then
1245 EVMS_ABI_CODE=110
1246 echo "Enabling EVMS 1.1.0 ABI"
1247fi
1248
1249fi
1250
1251if test "$EVMS_ABI_CODE" = "120"
1252then
1253 echo "Using EVMS 1.2.0 ABI by default"
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04001254fi
1255
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001256# Check whether --enable-dll-shlibs or --disable-dll-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001257if test "${enable_dll_shlibs+set}" = set; then
1258 enableval="$enable_dll_shlibs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001259 if test "$enableval" = "no"
1260then
1261 DLL_CMT=#
1262 MAKEFILE_DLL=/dev/null
1263 echo "Disabling DLL shared libraries"
1264else
1265 DLL_CMT=
1266 MAKEFILE_DLL=$srcdir/lib/Makefile.dll-lib
Theodore Ts'o74becf31997-04-26 14:37:06 +00001267 BINARY_TYPE=dllbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00001268 LIB_EXT=.sa
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001269 echo "Enabling DLL shared libraries"
1270fi
1271
1272else
1273 MAKEFILE_DLL=/dev/null
1274DLL_CMT=#
1275echo "Disabling DLL shared libraries by default"
1276
1277fi
1278
1279
1280
1281# Check whether --enable-elf-shlibs or --disable-elf-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001282if test "${enable_elf_shlibs+set}" = set; then
1283 enableval="$enable_elf_shlibs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001284 if test "$enableval" = "no"
1285then
1286 ELF_CMT=#
1287 MAKEFILE_ELF=/dev/null
1288 echo "Disabling ELF shared libraries"
1289else
1290 ELF_CMT=
1291 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
Theodore Ts'of5955dd2000-10-25 02:38:39 +00001292 case "$host_os" in
1293 solaris2.*)
1294 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
1295 ;;
1296 esac
Theodore Ts'o74becf31997-04-26 14:37:06 +00001297 BINARY_TYPE=elfbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00001298 LIB_EXT=.so
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001299 echo "Enabling ELF shared libraries"
1300fi
1301
1302else
1303 MAKEFILE_ELF=/dev/null
1304ELF_CMT=#
1305echo "Disabling ELF shared libraries by default"
1306
1307fi
1308
1309
1310
1311# Check whether --enable-bsd-shlibs or --disable-bsd-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001312if test "${enable_bsd_shlibs+set}" = set; then
1313 enableval="$enable_bsd_shlibs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001314 if test "$enableval" = "no"
1315then
1316 BSDLIB_CMT=#
1317 MAKEFILE_BSDLIB=/dev/null
1318 echo "Disabling BSD shared libraries"
1319else
1320 BSDLIB_CMT=
1321 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
Theodore Ts'oa4d09611997-04-29 14:28:00 +00001322 LIB_EXT=.so
Theodore Ts'oe1f07222003-03-14 02:25:36 -05001323 case "$host_os" in
Theodore Ts'oaa75ecc2003-03-17 10:01:22 -05001324 darwin*)
Theodore Ts'oe1f07222003-03-14 02:25:36 -05001325 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
1326 LIB_EXT=.dylib
1327 ;;
1328 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001329 echo "Enabling BSD shared libraries"
1330fi
1331
1332else
1333 MAKEFILE_BSDLIB=/dev/null
1334BSDLIB_CMT=#
1335echo "Disabling BSD shared libraries by default"
1336
1337fi
1338
1339
1340
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001341# Check whether --enable-profile or --disable-profile was given.
1342if test "${enable_profile+set}" = set; then
1343 enableval="$enable_profile"
1344 if test "$enableval" = "no"
1345then
1346 PROFILE_CMT=#
1347 MAKEFILE_PROFILE=/dev/null
1348 echo "Disabling profiling libraries"
1349else
1350 PROFILE_CMT=
1351 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
1352 PROFILED_LIB_EXT=_p.a
1353 echo "Building profiling libraries"
1354fi
1355
1356else
1357 PROFILE_CMT=#
1358MAKEFILE_PROFILE=/dev/null
1359echo "Disabling profiling libraries by default"
1360
1361fi
1362
1363
1364
1365# Check whether --enable-checker or --disable-checker was given.
1366if test "${enable_checker+set}" = set; then
1367 enableval="$enable_checker"
1368 if test "$enableval" = "no"
1369then
1370 CHECKER_CMT=#
1371 MAKEFILE_CHECKER=/dev/null
1372 echo "Disabling checker libraries"
1373else
1374 CHECKER_CMT=
1375 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
1376 echo "Building checker libraries"
1377fi
1378
1379else
1380 CHECKER_CMT=#
1381MAKEFILE_CHECKER=/dev/null
1382echo "Disabling checker libraries by default"
1383
1384fi
1385
1386
1387
1388
1389
1390
Theodore Ts'o782bebf2002-11-08 18:46:45 -05001391# Check whether --enable-jbd-debug or --disable-jbd-debug was given.
1392if test "${enable_jbd_debug+set}" = set; then
1393 enableval="$enable_jbd_debug"
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00001394 if test "$enableval" = "no"
1395then
1396 echo "Disabling journal debugging"
1397else
1398 cat >> confdefs.h <<\EOF
Theodore Ts'o8cf93332001-12-16 02:23:36 -05001399#define CONFIG_JBD_DEBUG 1
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00001400EOF
1401
1402 echo "Enabling journal debugging"
1403fi
1404
1405else
1406 echo "Disabling journal debugging by default"
1407
1408fi
1409
Theodore Ts'of0a22d02003-02-22 13:19:53 -05001410# Check whether --enable-blkid-debug or --disable-blkid-debug was given.
1411if test "${enable_blkid_debug+set}" = set; then
1412 enableval="$enable_blkid_debug"
1413 if test "$enableval" = "no"
1414then
1415 echo "Disabling blkid debugging"
1416else
1417 cat >> confdefs.h <<\EOF
1418#define CONFIG_BLKID_DEBUG 1
1419EOF
1420
1421 echo "Enabling blkid debugging"
1422fi
1423
1424else
1425 echo "Disabling blkid debugging by default"
1426
1427fi
1428
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001429# Check whether --enable-swapfs or --disable-swapfs was given.
1430if test "${enable_swapfs+set}" = set; then
1431 enableval="$enable_swapfs"
1432 if test "$enableval" = "no"
1433then
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05001434 SWAPFS_CMT=#
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001435 echo "Disabling swapfs support"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001436else
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05001437 SWAPFS_CMT=
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001438 cat >> confdefs.h <<\EOF
1439#define ENABLE_SWAPFS 1
1440EOF
1441
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001442 echo "Enabling swapfs support"
1443fi
1444
1445else
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05001446 SWAPFS_CMT=
1447echo "Enabling swapfs support by default"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001448cat >> confdefs.h <<\EOF
1449#define ENABLE_SWAPFS 1
1450EOF
1451
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001452
1453fi
1454
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05001455
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001456# Check whether --enable-debugfs or --disable-debugfs was given.
1457if test "${enable_debugfs+set}" = set; then
1458 enableval="$enable_debugfs"
1459 if test "$enableval" = "no"
1460then
1461 echo "Disabling debugfs support"
1462 DEBUGFS_CMT="#"
1463else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001464 DEBUGFS_CMT=
1465 echo "Enabling debugfs support"
1466fi
1467
1468else
1469 echo "Enabling debugfs support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001470DEBUGFS_CMT=
1471
1472fi
1473
1474
1475# Check whether --enable-imager or --disable-imager was given.
1476if test "${enable_imager+set}" = set; then
1477 enableval="$enable_imager"
1478 if test "$enableval" = "no"
1479then
1480 echo "Disabling e2image support"
1481 IMAGER_CMT="#"
1482else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001483 IMAGER_CMT=
1484 echo "Enabling e2image support"
1485fi
1486
1487else
1488 echo "Enabling e2image support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001489IMAGER_CMT=
1490
1491fi
1492
1493
1494# Check whether --enable-resizer or --disable-resizer was given.
1495if test "${enable_resizer+set}" = set; then
1496 enableval="$enable_resizer"
1497 if test "$enableval" = "no"
1498then
1499 echo "Disabling e2resize support"
1500 RESIZER_CMT="#"
1501else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001502 RESIZER_CMT=
1503 echo "Enabling e2resize support"
1504fi
1505
1506else
1507 echo "Enabling e2resize support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001508RESIZER_CMT=
1509
1510fi
1511
1512
1513# Check whether --enable-dynamic-e2fsck or --disable-dynamic-e2fsck was given.
1514if test "${enable_dynamic_e2fsck+set}" = set; then
1515 enableval="$enable_dynamic_e2fsck"
1516 if test "$enableval" = "no"
1517then
1518 E2FSCK_TYPE=static
1519 echo "Building e2fsck statically"
1520else
1521 E2FSCK_TYPE=shared
1522 echo "Building e2fsck dynamically"
1523fi
1524
1525else
1526 E2FSCK_TYPE=static
1527echo "Building e2fsck statically by default"
1528
1529fi
1530
1531
1532# Check whether --enable-fsck or --disable-fsck was given.
1533if test "${enable_fsck+set}" = set; then
1534 enableval="$enable_fsck"
1535 if test "$enableval" = "no"
1536then
1537 FSCK_PROG='' FSCK_MAN=''
1538 echo "Not building fsck wrapper"
1539else
1540 FSCK_PROG=fsck FSCK_MAN=fsck.8
1541 echo "Building fsck wrapper"
1542fi
1543
1544else
1545 case "$host_os" in
1546 gnu*)
1547 FSCK_PROG='' FSCK_MAN=''
1548 echo "Not building fsck wrapper by default"
1549 ;;
1550 *)
1551 FSCK_PROG=fsck FSCK_MAN=fsck.8
1552 echo "Building fsck wrapper by default"
1553esac
1554
1555fi
1556
1557
1558
1559MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
1560
1561# Check whether --enable-old-bitops or --disable-old-bitops was given.
1562if test "${enable_old_bitops+set}" = set; then
1563 enableval="$enable_old_bitops"
1564 if test "$enableval" = "no"
1565then
1566 echo "Using new (standard) bitmask operations"
1567else
1568 cat >> confdefs.h <<\EOF
1569#define EXT2_OLD_BITOPS 1
1570EOF
1571
1572 echo "Using old (native) bitmask operations"
1573
1574fi
1575
1576else
1577 echo "Using standard bitmask operations by default"
1578
1579fi
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001580
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001581PACKAGE=e2fsprogs
1582VERSION="$E2FSPROGS_VERSION"
1583cat >> confdefs.h <<EOF
1584#define PACKAGE "$PACKAGE"
1585EOF
1586
1587cat >> confdefs.h <<EOF
1588#define VERSION "$VERSION"
1589EOF
1590
1591
1592
1593
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001594
1595 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
1596echo "configure:1597: checking for inttypes.h" >&5
1597if eval "test \"`echo '$''{'jm_ac_cv_header_inttypes_h'+set}'`\" = set"; then
1598 echo $ac_n "(cached) $ac_c" 1>&6
1599else
1600 cat > conftest.$ac_ext <<EOF
1601#line 1602 "configure"
1602#include "confdefs.h"
1603#include <sys/types.h>
1604#include <inttypes.h>
1605int main() {
1606uintmax_t i = (uintmax_t) -1;
1607; return 0; }
1608EOF
1609if { (eval echo configure:1610: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1610 rm -rf conftest*
1611 jm_ac_cv_header_inttypes_h=yes
1612else
1613 echo "configure: failed program was:" >&5
1614 cat conftest.$ac_ext >&5
1615 rm -rf conftest*
1616 jm_ac_cv_header_inttypes_h=no
1617fi
1618rm -f conftest*
1619fi
1620
1621echo "$ac_t""$jm_ac_cv_header_inttypes_h" 1>&6
1622 if test $jm_ac_cv_header_inttypes_h = yes; then
1623 cat >> confdefs.h <<EOF
1624#define HAVE_INTTYPES_H_WITH_UINTMAX 1
1625EOF
1626
1627 fi
1628
1629
1630 echo $ac_n "checking for stdint.h""... $ac_c" 1>&6
1631echo "configure:1632: checking for stdint.h" >&5
1632if eval "test \"`echo '$''{'jm_ac_cv_header_stdint_h'+set}'`\" = set"; then
1633 echo $ac_n "(cached) $ac_c" 1>&6
1634else
1635 cat > conftest.$ac_ext <<EOF
1636#line 1637 "configure"
1637#include "confdefs.h"
1638#include <sys/types.h>
1639#include <stdint.h>
1640int main() {
1641uintmax_t i = (uintmax_t) -1;
1642; return 0; }
1643EOF
1644if { (eval echo configure:1645: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1645 rm -rf conftest*
1646 jm_ac_cv_header_stdint_h=yes
1647else
1648 echo "configure: failed program was:" >&5
1649 cat conftest.$ac_ext >&5
1650 rm -rf conftest*
1651 jm_ac_cv_header_stdint_h=no
1652fi
1653rm -f conftest*
1654fi
1655
1656echo "$ac_t""$jm_ac_cv_header_stdint_h" 1>&6
1657 if test $jm_ac_cv_header_stdint_h = yes; then
1658 cat >> confdefs.h <<EOF
1659#define HAVE_STDINT_H_WITH_UINTMAX 1
1660EOF
1661
1662 fi
1663
1664
1665 echo $ac_n "checking for unsigned long long""... $ac_c" 1>&6
1666echo "configure:1667: checking for unsigned long long" >&5
1667if eval "test \"`echo '$''{'ac_cv_type_unsigned_long_long'+set}'`\" = set"; then
1668 echo $ac_n "(cached) $ac_c" 1>&6
1669else
1670 cat > conftest.$ac_ext <<EOF
1671#line 1672 "configure"
1672#include "confdefs.h"
1673unsigned long long ull = 1; int i = 63;
1674int main() {
1675unsigned long long ullmax = (unsigned long long) -1;
1676 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
1677; return 0; }
1678EOF
1679if { (eval echo configure:1680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1680 rm -rf conftest*
1681 ac_cv_type_unsigned_long_long=yes
1682else
1683 echo "configure: failed program was:" >&5
1684 cat conftest.$ac_ext >&5
1685 rm -rf conftest*
1686 ac_cv_type_unsigned_long_long=no
1687fi
1688rm -f conftest*
1689fi
1690
1691echo "$ac_t""$ac_cv_type_unsigned_long_long" 1>&6
1692 if test $ac_cv_type_unsigned_long_long = yes; then
1693 cat >> confdefs.h <<\EOF
1694#define HAVE_UNSIGNED_LONG_LONG 1
1695EOF
1696
1697 fi
1698
1699
1700 if test "X$prefix" = "XNONE"; then
1701 acl_final_prefix="$ac_default_prefix"
1702 else
1703 acl_final_prefix="$prefix"
1704 fi
1705 if test "X$exec_prefix" = "XNONE"; then
1706 acl_final_exec_prefix='${prefix}'
1707 else
1708 acl_final_exec_prefix="$exec_prefix"
1709 fi
1710 acl_save_prefix="$prefix"
1711 prefix="$acl_final_prefix"
1712 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
1713 prefix="$acl_save_prefix"
1714
1715
1716 echo $ac_n "checking for shared library run path origin""... $ac_c" 1>&6
1717echo "configure:1718: checking for shared library run path origin" >&5
1718if eval "test \"`echo '$''{'acl_cv_rpath'+set}'`\" = set"; then
1719 echo $ac_n "(cached) $ac_c" 1>&6
1720else
1721
1722 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
1723 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
1724 . ./conftest.sh
1725 rm -f ./conftest.sh
1726 acl_cv_rpath=done
1727
1728fi
1729
1730echo "$ac_t""$acl_cv_rpath" 1>&6
1731 wl="$acl_cv_wl"
1732 libext="$acl_cv_libext"
1733 shlibext="$acl_cv_shlibext"
1734 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
1735 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
1736 hardcode_direct="$acl_cv_hardcode_direct"
1737 hardcode_minus_L="$acl_cv_hardcode_minus_L"
1738 sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
1739 sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
1740 # Check whether --enable-rpath or --disable-rpath was given.
1741if test "${enable_rpath+set}" = set; then
1742 enableval="$enable_rpath"
1743 :
1744else
1745 enable_rpath=yes
1746fi
1747
1748
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001749echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001750echo "configure:1751: checking whether ${MAKE-make} sets \${MAKE}" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001751set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1752if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1753 echo $ac_n "(cached) $ac_c" 1>&6
1754else
1755 cat > conftestmake <<\EOF
1756all:
1757 @echo 'ac_maketemp="${MAKE}"'
1758EOF
1759# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1760eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1761if test -n "$ac_maketemp"; then
1762 eval ac_cv_prog_make_${ac_make}_set=yes
1763else
1764 eval ac_cv_prog_make_${ac_make}_set=no
1765fi
1766rm -f conftestmake
1767fi
1768if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1769 echo "$ac_t""yes" 1>&6
1770 SET_MAKE=
1771else
1772 echo "$ac_t""no" 1>&6
1773 SET_MAKE="MAKE=${MAKE-make}"
1774fi
1775
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001776# Find a good install program. We prefer a C program (faster),
1777# so one script is as good as another. But avoid the broken or
1778# incompatible versions:
1779# SysV /etc/install, /usr/sbin/install
1780# SunOS /usr/etc/install
1781# IRIX /sbin/install
1782# AIX /bin/install
1783# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1784# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1785# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1786# ./install, which can be erroneously created by make from ./install.sh.
1787echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1788echo "configure:1789: checking for a BSD compatible install" >&5
1789if test -z "$INSTALL"; then
1790if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1791 echo $ac_n "(cached) $ac_c" 1>&6
1792else
1793 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1794 for ac_dir in $PATH; do
1795 # Account for people who put trailing slashes in PATH elements.
1796 case "$ac_dir/" in
1797 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1798 *)
1799 # OSF1 and SCO ODT 3.0 have their own names for install.
1800 # Don't use installbsd from OSF since it installs stuff as root
1801 # by default.
1802 for ac_prog in ginstall scoinst install; do
1803 if test -f $ac_dir/$ac_prog; then
1804 if test $ac_prog = install &&
1805 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1806 # AIX install. It has an incompatible calling convention.
1807 :
1808 else
1809 ac_cv_path_install="$ac_dir/$ac_prog -c"
1810 break 2
1811 fi
1812 fi
1813 done
1814 ;;
1815 esac
1816 done
1817 IFS="$ac_save_IFS"
1818
1819fi
1820 if test "${ac_cv_path_install+set}" = set; then
1821 INSTALL="$ac_cv_path_install"
1822 else
1823 # As a last resort, use the slow shell script. We don't cache a
1824 # path for INSTALL within a source directory, because that will
1825 # break other packages using the cache if that directory is
1826 # removed, or if the path is relative.
1827 INSTALL="$ac_install_sh"
1828 fi
1829fi
1830echo "$ac_t""$INSTALL" 1>&6
1831
1832# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1833# It thinks the first close brace ends the variable substitution.
1834test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1835
1836test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1837
1838test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1839
1840
1841 MKINSTALLDIRS=
1842 if test -n "$ac_aux_dir"; then
1843 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
1844 fi
1845 if test -z "$MKINSTALLDIRS"; then
1846 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
1847 fi
1848
1849
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001850# Extract the first word of "ranlib", so it can be a program name with args.
1851set dummy ranlib; ac_word=$2
1852echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001853echo "configure:1854: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001854if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1855 echo $ac_n "(cached) $ac_c" 1>&6
1856else
1857 if test -n "$RANLIB"; then
1858 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1859else
1860 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1861 ac_dummy="$PATH"
1862 for ac_dir in $ac_dummy; do
1863 test -z "$ac_dir" && ac_dir=.
1864 if test -f $ac_dir/$ac_word; then
1865 ac_cv_prog_RANLIB="ranlib"
1866 break
1867 fi
1868 done
1869 IFS="$ac_save_ifs"
1870 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1871fi
1872fi
1873RANLIB="$ac_cv_prog_RANLIB"
1874if test -n "$RANLIB"; then
1875 echo "$ac_t""$RANLIB" 1>&6
1876else
1877 echo "$ac_t""no" 1>&6
1878fi
1879
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001880
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001881 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1882echo "configure:1883: checking for strerror in -lcposix" >&5
1883ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1884if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1885 echo $ac_n "(cached) $ac_c" 1>&6
1886else
1887 ac_save_LIBS="$LIBS"
1888LIBS="-lcposix $LIBS"
1889cat > conftest.$ac_ext <<EOF
1890#line 1891 "configure"
1891#include "confdefs.h"
1892/* Override any gcc2 internal prototype to avoid an error. */
1893/* We use char because int might match the return type of a gcc2
1894 builtin and then its argument prototype would still apply. */
1895char strerror();
1896
1897int main() {
1898strerror()
1899; return 0; }
1900EOF
1901if { (eval echo configure:1902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1902 rm -rf conftest*
1903 eval "ac_cv_lib_$ac_lib_var=yes"
1904else
1905 echo "configure: failed program was:" >&5
1906 cat conftest.$ac_ext >&5
1907 rm -rf conftest*
1908 eval "ac_cv_lib_$ac_lib_var=no"
1909fi
1910rm -f conftest*
1911LIBS="$ac_save_LIBS"
1912
1913fi
1914if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1915 echo "$ac_t""yes" 1>&6
1916 LIBS="$LIBS -lcposix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001917else
1918 echo "$ac_t""no" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001919fi
1920
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001921
1922
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001923echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001924echo "configure:1925: checking for ANSI C header files" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001925if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1926 echo $ac_n "(cached) $ac_c" 1>&6
1927else
1928 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001929#line 1930 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001930#include "confdefs.h"
1931#include <stdlib.h>
1932#include <stdarg.h>
1933#include <string.h>
1934#include <float.h>
1935EOF
1936ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001937{ (eval echo configure:1938: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001938ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1939if test -z "$ac_err"; then
1940 rm -rf conftest*
1941 ac_cv_header_stdc=yes
1942else
1943 echo "$ac_err" >&5
1944 echo "configure: failed program was:" >&5
1945 cat conftest.$ac_ext >&5
1946 rm -rf conftest*
1947 ac_cv_header_stdc=no
1948fi
1949rm -f conftest*
1950
1951if test $ac_cv_header_stdc = yes; then
1952 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1953cat > conftest.$ac_ext <<EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001954#line 1955 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001955#include "confdefs.h"
1956#include <string.h>
1957EOF
1958if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1959 egrep "memchr" >/dev/null 2>&1; then
1960 :
1961else
1962 rm -rf conftest*
1963 ac_cv_header_stdc=no
1964fi
1965rm -f conftest*
1966
1967fi
1968
1969if test $ac_cv_header_stdc = yes; then
1970 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1971cat > conftest.$ac_ext <<EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001972#line 1973 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001973#include "confdefs.h"
1974#include <stdlib.h>
1975EOF
1976if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1977 egrep "free" >/dev/null 2>&1; then
1978 :
1979else
1980 rm -rf conftest*
1981 ac_cv_header_stdc=no
1982fi
1983rm -f conftest*
1984
1985fi
1986
1987if test $ac_cv_header_stdc = yes; then
1988 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1989if test "$cross_compiling" = yes; then
1990 :
1991else
1992 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001993#line 1994 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001994#include "confdefs.h"
1995#include <ctype.h>
1996#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1997#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1998#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1999int main () { int i; for (i = 0; i < 256; i++)
2000if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2001exit (0); }
2002
2003EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002004if { (eval echo configure:2005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002005then
2006 :
2007else
2008 echo "configure: failed program was:" >&5
2009 cat conftest.$ac_ext >&5
2010 rm -fr conftest*
2011 ac_cv_header_stdc=no
2012fi
2013rm -fr conftest*
2014fi
2015
2016fi
2017fi
2018
2019echo "$ac_t""$ac_cv_header_stdc" 1>&6
2020if test $ac_cv_header_stdc = yes; then
2021 cat >> confdefs.h <<\EOF
2022#define STDC_HEADERS 1
2023EOF
2024
2025fi
2026
2027echo $ac_n "checking for working const""... $ac_c" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002028echo "configure:2029: checking for working const" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002029if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2030 echo $ac_n "(cached) $ac_c" 1>&6
2031else
2032 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002033#line 2034 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002034#include "confdefs.h"
2035
2036int main() {
2037
2038/* Ultrix mips cc rejects this. */
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002039typedef int charset[2]; const charset x;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002040/* SunOS 4.1.1 cc rejects this. */
2041char const *const *ccp;
2042char **p;
2043/* NEC SVR4.0.2 mips cc rejects this. */
2044struct point {int x, y;};
2045static struct point const zero = {0,0};
2046/* AIX XL C 1.02.0.0 rejects this.
2047 It does not let you subtract one const X* pointer from another in an arm
2048 of an if-expression whose if-part is not a constant expression */
2049const char *g = "string";
2050ccp = &g + (g ? g-g : 0);
2051/* HPUX 7.0 cc rejects these. */
2052++ccp;
2053p = (char**) ccp;
2054ccp = (char const *const *) p;
2055{ /* SCO 3.2v4 cc rejects this. */
2056 char *t;
2057 char const *s = 0 ? (char *) 0 : (char const *) 0;
2058
2059 *t++ = 0;
2060}
2061{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2062 int x[] = {25, 17};
2063 const int *foo = &x[0];
2064 ++foo;
2065}
2066{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2067 typedef const int *iptr;
2068 iptr p = 0;
2069 ++p;
2070}
2071{ /* AIX XL C 1.02.0.0 rejects this saying
2072 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2073 struct s { int j; const int *ap[3]; };
2074 struct s *b; b->j = 5;
2075}
2076{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2077 const int foo = 10;
2078}
2079
2080; return 0; }
2081EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002082if { (eval echo configure:2083: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002083 rm -rf conftest*
2084 ac_cv_c_const=yes
2085else
2086 echo "configure: failed program was:" >&5
2087 cat conftest.$ac_ext >&5
2088 rm -rf conftest*
2089 ac_cv_c_const=no
2090fi
2091rm -f conftest*
2092fi
2093
2094echo "$ac_t""$ac_cv_c_const" 1>&6
2095if test $ac_cv_c_const = no; then
2096 cat >> confdefs.h <<\EOF
2097#define const
2098EOF
2099
2100fi
2101
2102echo $ac_n "checking for inline""... $ac_c" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002103echo "configure:2104: checking for inline" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002104if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2105 echo $ac_n "(cached) $ac_c" 1>&6
2106else
2107 ac_cv_c_inline=no
2108for ac_kw in inline __inline__ __inline; do
2109 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002110#line 2111 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002111#include "confdefs.h"
2112
2113int main() {
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002114} $ac_kw foo() {
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002115; return 0; }
2116EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002117if { (eval echo configure:2118: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002118 rm -rf conftest*
2119 ac_cv_c_inline=$ac_kw; break
2120else
2121 echo "configure: failed program was:" >&5
2122 cat conftest.$ac_ext >&5
2123fi
2124rm -f conftest*
2125done
2126
2127fi
2128
2129echo "$ac_t""$ac_cv_c_inline" 1>&6
2130case "$ac_cv_c_inline" in
2131 inline | yes) ;;
2132 no) cat >> confdefs.h <<\EOF
2133#define inline
2134EOF
2135 ;;
2136 *) cat >> confdefs.h <<EOF
2137#define inline $ac_cv_c_inline
2138EOF
2139 ;;
2140esac
2141
2142echo $ac_n "checking for off_t""... $ac_c" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002143echo "configure:2144: checking for off_t" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002144if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2145 echo $ac_n "(cached) $ac_c" 1>&6
2146else
2147 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002148#line 2149 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002149#include "confdefs.h"
2150#include <sys/types.h>
2151#if STDC_HEADERS
2152#include <stdlib.h>
2153#include <stddef.h>
2154#endif
2155EOF
2156if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2157 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2158 rm -rf conftest*
2159 ac_cv_type_off_t=yes
2160else
2161 rm -rf conftest*
2162 ac_cv_type_off_t=no
2163fi
2164rm -f conftest*
2165
2166fi
2167echo "$ac_t""$ac_cv_type_off_t" 1>&6
2168if test $ac_cv_type_off_t = no; then
2169 cat >> confdefs.h <<\EOF
2170#define off_t long
2171EOF
2172
2173fi
2174
2175echo $ac_n "checking for size_t""... $ac_c" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002176echo "configure:2177: checking for size_t" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002177if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2178 echo $ac_n "(cached) $ac_c" 1>&6
2179else
2180 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002181#line 2182 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002182#include "confdefs.h"
2183#include <sys/types.h>
2184#if STDC_HEADERS
2185#include <stdlib.h>
2186#include <stddef.h>
2187#endif
2188EOF
2189if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2190 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2191 rm -rf conftest*
2192 ac_cv_type_size_t=yes
2193else
2194 rm -rf conftest*
2195 ac_cv_type_size_t=no
2196fi
2197rm -f conftest*
2198
2199fi
2200echo "$ac_t""$ac_cv_type_size_t" 1>&6
2201if test $ac_cv_type_size_t = no; then
2202 cat >> confdefs.h <<\EOF
2203#define size_t unsigned
2204EOF
2205
2206fi
2207
2208# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2209# for constant arguments. Useless!
2210echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002211echo "configure:2212: checking for working alloca.h" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002212if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2213 echo $ac_n "(cached) $ac_c" 1>&6
2214else
2215 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002216#line 2217 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002217#include "confdefs.h"
2218#include <alloca.h>
2219int main() {
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002220char *p = alloca(2 * sizeof(int));
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002221; return 0; }
2222EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002223if { (eval echo configure:2224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002224 rm -rf conftest*
2225 ac_cv_header_alloca_h=yes
2226else
2227 echo "configure: failed program was:" >&5
2228 cat conftest.$ac_ext >&5
2229 rm -rf conftest*
2230 ac_cv_header_alloca_h=no
2231fi
2232rm -f conftest*
2233fi
2234
2235echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2236if test $ac_cv_header_alloca_h = yes; then
2237 cat >> confdefs.h <<\EOF
2238#define HAVE_ALLOCA_H 1
2239EOF
2240
2241fi
2242
2243echo $ac_n "checking for alloca""... $ac_c" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002244echo "configure:2245: checking for alloca" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002245if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2246 echo $ac_n "(cached) $ac_c" 1>&6
2247else
2248 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002249#line 2250 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002250#include "confdefs.h"
2251
2252#ifdef __GNUC__
2253# define alloca __builtin_alloca
2254#else
2255# ifdef _MSC_VER
2256# include <malloc.h>
2257# define alloca _alloca
2258# else
2259# if HAVE_ALLOCA_H
2260# include <alloca.h>
2261# else
2262# ifdef _AIX
2263 #pragma alloca
2264# else
2265# ifndef alloca /* predefined by HP cc +Olibcalls */
2266char *alloca ();
2267# endif
2268# endif
2269# endif
2270# endif
2271#endif
2272
2273int main() {
2274char *p = (char *) alloca(1);
2275; return 0; }
2276EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002277if { (eval echo configure:2278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002278 rm -rf conftest*
2279 ac_cv_func_alloca_works=yes
2280else
2281 echo "configure: failed program was:" >&5
2282 cat conftest.$ac_ext >&5
2283 rm -rf conftest*
2284 ac_cv_func_alloca_works=no
2285fi
2286rm -f conftest*
2287fi
2288
2289echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2290if test $ac_cv_func_alloca_works = yes; then
2291 cat >> confdefs.h <<\EOF
2292#define HAVE_ALLOCA 1
2293EOF
2294
2295fi
2296
2297if test $ac_cv_func_alloca_works = no; then
2298 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2299 # that cause trouble. Some versions do not even contain alloca or
2300 # contain a buggy version. If you still want to use their alloca,
2301 # use ar to extract alloca.o from them instead of compiling alloca.c.
2302 ALLOCA=alloca.${ac_objext}
2303 cat >> confdefs.h <<\EOF
2304#define C_ALLOCA 1
2305EOF
2306
2307
2308echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002309echo "configure:2310: checking whether alloca needs Cray hooks" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002310if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2311 echo $ac_n "(cached) $ac_c" 1>&6
2312else
2313 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002314#line 2315 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002315#include "confdefs.h"
2316#if defined(CRAY) && ! defined(CRAY2)
2317webecray
2318#else
2319wenotbecray
2320#endif
2321
2322EOF
2323if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2324 egrep "webecray" >/dev/null 2>&1; then
2325 rm -rf conftest*
2326 ac_cv_os_cray=yes
2327else
2328 rm -rf conftest*
2329 ac_cv_os_cray=no
2330fi
2331rm -f conftest*
2332
2333fi
2334
2335echo "$ac_t""$ac_cv_os_cray" 1>&6
2336if test $ac_cv_os_cray = yes; then
2337for ac_func in _getb67 GETB67 getb67; do
2338 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002339echo "configure:2340: checking for $ac_func" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002340if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2341 echo $ac_n "(cached) $ac_c" 1>&6
2342else
2343 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002344#line 2345 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002345#include "confdefs.h"
2346/* System header to define __stub macros and hopefully few prototypes,
2347 which can conflict with char $ac_func(); below. */
2348#include <assert.h>
2349/* Override any gcc2 internal prototype to avoid an error. */
2350/* We use char because int might match the return type of a gcc2
2351 builtin and then its argument prototype would still apply. */
2352char $ac_func();
2353
2354int main() {
2355
2356/* The GNU C library defines this for functions which it implements
2357 to always fail with ENOSYS. Some functions are actually named
2358 something starting with __ and the normal name is an alias. */
2359#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2360choke me
2361#else
2362$ac_func();
2363#endif
2364
2365; return 0; }
2366EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002367if { (eval echo configure:2368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002368 rm -rf conftest*
2369 eval "ac_cv_func_$ac_func=yes"
2370else
2371 echo "configure: failed program was:" >&5
2372 cat conftest.$ac_ext >&5
2373 rm -rf conftest*
2374 eval "ac_cv_func_$ac_func=no"
2375fi
2376rm -f conftest*
2377fi
2378
2379if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2380 echo "$ac_t""yes" 1>&6
2381 cat >> confdefs.h <<EOF
2382#define CRAY_STACKSEG_END $ac_func
2383EOF
2384
2385 break
2386else
2387 echo "$ac_t""no" 1>&6
2388fi
2389
2390done
2391fi
2392
2393echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002394echo "configure:2395: checking stack direction for C alloca" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002395if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2396 echo $ac_n "(cached) $ac_c" 1>&6
2397else
2398 if test "$cross_compiling" = yes; then
2399 ac_cv_c_stack_direction=0
2400else
2401 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002402#line 2403 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002403#include "confdefs.h"
2404find_stack_direction ()
2405{
2406 static char *addr = 0;
2407 auto char dummy;
2408 if (addr == 0)
2409 {
2410 addr = &dummy;
2411 return find_stack_direction ();
2412 }
2413 else
2414 return (&dummy > addr) ? 1 : -1;
2415}
2416main ()
2417{
2418 exit (find_stack_direction() < 0);
2419}
2420EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002421if { (eval echo configure:2422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002422then
2423 ac_cv_c_stack_direction=1
2424else
2425 echo "configure: failed program was:" >&5
2426 cat conftest.$ac_ext >&5
2427 rm -fr conftest*
2428 ac_cv_c_stack_direction=-1
2429fi
2430rm -fr conftest*
2431fi
2432
2433fi
2434
2435echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2436cat >> confdefs.h <<EOF
2437#define STACK_DIRECTION $ac_cv_c_stack_direction
2438EOF
2439
2440fi
2441
2442for ac_hdr in unistd.h
2443do
2444ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2445echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002446echo "configure:2447: checking for $ac_hdr" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002447if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2448 echo $ac_n "(cached) $ac_c" 1>&6
2449else
2450 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002451#line 2452 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002452#include "confdefs.h"
2453#include <$ac_hdr>
2454EOF
2455ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002456{ (eval echo configure:2457: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002457ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2458if test -z "$ac_err"; then
2459 rm -rf conftest*
2460 eval "ac_cv_header_$ac_safe=yes"
2461else
2462 echo "$ac_err" >&5
2463 echo "configure: failed program was:" >&5
2464 cat conftest.$ac_ext >&5
2465 rm -rf conftest*
2466 eval "ac_cv_header_$ac_safe=no"
2467fi
2468rm -f conftest*
2469fi
2470if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2471 echo "$ac_t""yes" 1>&6
2472 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2473 cat >> confdefs.h <<EOF
2474#define $ac_tr_hdr 1
2475EOF
2476
2477else
2478 echo "$ac_t""no" 1>&6
2479fi
2480done
2481
2482for ac_func in getpagesize
2483do
2484echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002485echo "configure:2486: checking for $ac_func" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002486if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2487 echo $ac_n "(cached) $ac_c" 1>&6
2488else
2489 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002490#line 2491 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002491#include "confdefs.h"
2492/* System header to define __stub macros and hopefully few prototypes,
2493 which can conflict with char $ac_func(); below. */
2494#include <assert.h>
2495/* Override any gcc2 internal prototype to avoid an error. */
2496/* We use char because int might match the return type of a gcc2
2497 builtin and then its argument prototype would still apply. */
2498char $ac_func();
2499
2500int main() {
2501
2502/* The GNU C library defines this for functions which it implements
2503 to always fail with ENOSYS. Some functions are actually named
2504 something starting with __ and the normal name is an alias. */
2505#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2506choke me
2507#else
2508$ac_func();
2509#endif
2510
2511; return 0; }
2512EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002513if { (eval echo configure:2514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002514 rm -rf conftest*
2515 eval "ac_cv_func_$ac_func=yes"
2516else
2517 echo "configure: failed program was:" >&5
2518 cat conftest.$ac_ext >&5
2519 rm -rf conftest*
2520 eval "ac_cv_func_$ac_func=no"
2521fi
2522rm -f conftest*
2523fi
2524
2525if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2526 echo "$ac_t""yes" 1>&6
2527 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2528 cat >> confdefs.h <<EOF
2529#define $ac_tr_func 1
2530EOF
2531
2532else
2533 echo "$ac_t""no" 1>&6
2534fi
2535done
2536
2537echo $ac_n "checking for working mmap""... $ac_c" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002538echo "configure:2539: checking for working mmap" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002539if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2540 echo $ac_n "(cached) $ac_c" 1>&6
2541else
2542 if test "$cross_compiling" = yes; then
2543 ac_cv_func_mmap_fixed_mapped=no
2544else
2545 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002546#line 2547 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002547#include "confdefs.h"
2548
2549/* Thanks to Mike Haertel and Jim Avera for this test.
2550 Here is a matrix of mmap possibilities:
2551 mmap private not fixed
2552 mmap private fixed at somewhere currently unmapped
2553 mmap private fixed at somewhere already mapped
2554 mmap shared not fixed
2555 mmap shared fixed at somewhere currently unmapped
2556 mmap shared fixed at somewhere already mapped
2557 For private mappings, we should verify that changes cannot be read()
2558 back from the file, nor mmap's back from the file at a different
2559 address. (There have been systems where private was not correctly
2560 implemented like the infamous i386 svr4.0, and systems where the
2561 VM page cache was not coherent with the filesystem buffer cache
2562 like early versions of FreeBSD and possibly contemporary NetBSD.)
2563 For shared mappings, we should conversely verify that changes get
2564 propogated back to all the places they're supposed to be.
2565
2566 Grep wants private fixed already mapped.
2567 The main things grep needs to know about mmap are:
2568 * does it exist and is it safe to write into the mmap'd area
2569 * how to use it (BSD variants) */
2570#include <sys/types.h>
2571#include <fcntl.h>
2572#include <sys/mman.h>
2573
2574/* This mess was copied from the GNU getpagesize.h. */
2575#ifndef HAVE_GETPAGESIZE
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002576# ifdef HAVE_UNISTD_H
2577# include <unistd.h>
2578# endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002579
2580/* Assume that all systems that can run configure have sys/param.h. */
2581# ifndef HAVE_SYS_PARAM_H
2582# define HAVE_SYS_PARAM_H 1
2583# endif
2584
2585# ifdef _SC_PAGESIZE
2586# define getpagesize() sysconf(_SC_PAGESIZE)
2587# else /* no _SC_PAGESIZE */
2588# ifdef HAVE_SYS_PARAM_H
2589# include <sys/param.h>
2590# ifdef EXEC_PAGESIZE
2591# define getpagesize() EXEC_PAGESIZE
2592# else /* no EXEC_PAGESIZE */
2593# ifdef NBPG
2594# define getpagesize() NBPG * CLSIZE
2595# ifndef CLSIZE
2596# define CLSIZE 1
2597# endif /* no CLSIZE */
2598# else /* no NBPG */
2599# ifdef NBPC
2600# define getpagesize() NBPC
2601# else /* no NBPC */
2602# ifdef PAGESIZE
2603# define getpagesize() PAGESIZE
2604# endif /* PAGESIZE */
2605# endif /* no NBPC */
2606# endif /* no NBPG */
2607# endif /* no EXEC_PAGESIZE */
2608# else /* no HAVE_SYS_PARAM_H */
2609# define getpagesize() 8192 /* punt totally */
2610# endif /* no HAVE_SYS_PARAM_H */
2611# endif /* no _SC_PAGESIZE */
2612
2613#endif /* no HAVE_GETPAGESIZE */
2614
2615#ifdef __cplusplus
2616extern "C" { void *malloc(unsigned); }
2617#else
2618char *malloc();
2619#endif
2620
2621int
2622main()
2623{
2624 char *data, *data2, *data3;
2625 int i, pagesize;
2626 int fd;
2627
2628 pagesize = getpagesize();
2629
2630 /*
2631 * First, make a file with some known garbage in it.
2632 */
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002633 data = malloc(pagesize);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002634 if (!data)
2635 exit(1);
2636 for (i = 0; i < pagesize; ++i)
2637 *(data + i) = rand();
2638 umask(0);
2639 fd = creat("conftestmmap", 0600);
2640 if (fd < 0)
2641 exit(1);
2642 if (write(fd, data, pagesize) != pagesize)
2643 exit(1);
2644 close(fd);
2645
2646 /*
2647 * Next, try to mmap the file at a fixed address which
2648 * already has something else allocated at it. If we can,
2649 * also make sure that we see the same garbage.
2650 */
2651 fd = open("conftestmmap", O_RDWR);
2652 if (fd < 0)
2653 exit(1);
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002654 data2 = malloc(2 * pagesize);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002655 if (!data2)
2656 exit(1);
2657 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2658 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2659 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2660 exit(1);
2661 for (i = 0; i < pagesize; ++i)
2662 if (*(data + i) != *(data2 + i))
2663 exit(1);
2664
2665 /*
2666 * Finally, make sure that changes to the mapped area
2667 * do not percolate back to the file as seen by read().
2668 * (This is a bug on some variants of i386 svr4.0.)
2669 */
2670 for (i = 0; i < pagesize; ++i)
2671 *(data2 + i) = *(data2 + i) + 1;
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002672 data3 = malloc(pagesize);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002673 if (!data3)
2674 exit(1);
2675 if (read(fd, data3, pagesize) != pagesize)
2676 exit(1);
2677 for (i = 0; i < pagesize; ++i)
2678 if (*(data + i) != *(data3 + i))
2679 exit(1);
2680 close(fd);
2681 unlink("conftestmmap");
2682 exit(0);
2683}
2684
2685EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002686if { (eval echo configure:2687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002687then
2688 ac_cv_func_mmap_fixed_mapped=yes
2689else
2690 echo "configure: failed program was:" >&5
2691 cat conftest.$ac_ext >&5
2692 rm -fr conftest*
2693 ac_cv_func_mmap_fixed_mapped=no
2694fi
2695rm -fr conftest*
2696fi
2697
2698fi
2699
2700echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2701if test $ac_cv_func_mmap_fixed_mapped = yes; then
2702 cat >> confdefs.h <<\EOF
2703#define HAVE_MMAP 1
2704EOF
2705
2706fi
2707
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002708
2709 echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
2710echo "configure:2711: checking whether we are using the GNU C Library 2.1 or newer" >&5
2711if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
2712 echo $ac_n "(cached) $ac_c" 1>&6
2713else
2714 cat > conftest.$ac_ext <<EOF
2715#line 2716 "configure"
2716#include "confdefs.h"
2717
2718#include <features.h>
2719#ifdef __GNU_LIBRARY__
2720 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
2721 Lucky GNU user
2722 #endif
2723#endif
2724
2725EOF
2726if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2727 egrep "Lucky GNU user" >/dev/null 2>&1; then
2728 rm -rf conftest*
2729 ac_cv_gnu_library_2_1=yes
2730else
2731 rm -rf conftest*
2732 ac_cv_gnu_library_2_1=no
2733fi
2734rm -f conftest*
2735
2736
2737
2738fi
2739
2740echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
2741
2742 GLIBC21="$ac_cv_gnu_library_2_1"
2743
2744
2745
2746
2747 echo $ac_n "checking whether integer division by zero raises SIGFPE""... $ac_c" 1>&6
2748echo "configure:2749: checking whether integer division by zero raises SIGFPE" >&5
2749if eval "test \"`echo '$''{'gt_cv_int_divbyzero_sigfpe'+set}'`\" = set"; then
2750 echo $ac_n "(cached) $ac_c" 1>&6
2751else
2752
2753 if test "$cross_compiling" = yes; then
2754
2755 # Guess based on the CPU.
2756 case "$host_cpu" in
2757 alpha* | i3456786 | m68k | s390*)
2758 gt_cv_int_divbyzero_sigfpe="guessing yes";;
2759 *)
2760 gt_cv_int_divbyzero_sigfpe="guessing no";;
2761 esac
2762
2763else
2764 cat > conftest.$ac_ext <<EOF
2765#line 2766 "configure"
2766#include "confdefs.h"
2767
2768#include <stdlib.h>
2769#include <signal.h>
2770
2771static void
2772#ifdef __cplusplus
2773sigfpe_handler (int sig)
2774#else
2775sigfpe_handler (sig) int sig;
2776#endif
2777{
2778 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
2779 exit (sig != SIGFPE);
2780}
2781
2782int x = 1;
2783int y = 0;
2784int z;
2785int nan;
2786
2787int main ()
2788{
2789 signal (SIGFPE, sigfpe_handler);
2790/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
2791#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
2792 signal (SIGTRAP, sigfpe_handler);
2793#endif
2794/* Linux/SPARC yields signal SIGILL. */
2795#if defined (__sparc__) && defined (__linux__)
2796 signal (SIGILL, sigfpe_handler);
2797#endif
2798
2799 z = x / y;
2800 nan = y / y;
2801 exit (1);
2802}
2803
2804EOF
2805if { (eval echo configure:2806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2806then
2807 gt_cv_int_divbyzero_sigfpe=yes
2808else
2809 echo "configure: failed program was:" >&5
2810 cat conftest.$ac_ext >&5
2811 rm -fr conftest*
2812 gt_cv_int_divbyzero_sigfpe=no
2813fi
2814rm -fr conftest*
2815fi
2816
2817
2818fi
2819
2820echo "$ac_t""$gt_cv_int_divbyzero_sigfpe" 1>&6
2821 case "$gt_cv_int_divbyzero_sigfpe" in
2822 *yes) value=1;;
2823 *) value=0;;
2824 esac
2825 cat >> confdefs.h <<EOF
2826#define INTDIV0_RAISES_SIGFPE $value
2827EOF
2828
2829
2830
2831
2832
2833 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
2834
2835 test $ac_cv_type_unsigned_long_long = yes \
2836 && ac_type='unsigned long long' \
2837 || ac_type='unsigned long'
2838 cat >> confdefs.h <<EOF
2839#define uintmax_t $ac_type
2840EOF
2841
2842 fi
2843
2844
2845 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
2846echo "configure:2847: checking for inttypes.h" >&5
2847if eval "test \"`echo '$''{'gt_cv_header_inttypes_h'+set}'`\" = set"; then
2848 echo $ac_n "(cached) $ac_c" 1>&6
2849else
2850
2851 cat > conftest.$ac_ext <<EOF
2852#line 2853 "configure"
2853#include "confdefs.h"
2854#include <sys/types.h>
2855#include <inttypes.h>
2856int main() {
2857
2858; return 0; }
2859EOF
2860if { (eval echo configure:2861: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2861 rm -rf conftest*
2862 gt_cv_header_inttypes_h=yes
2863else
2864 echo "configure: failed program was:" >&5
2865 cat conftest.$ac_ext >&5
2866 rm -rf conftest*
2867 gt_cv_header_inttypes_h=no
2868fi
2869rm -f conftest*
2870
2871fi
2872
2873echo "$ac_t""$gt_cv_header_inttypes_h" 1>&6
2874 if test $gt_cv_header_inttypes_h = yes; then
2875 cat >> confdefs.h <<EOF
2876#define HAVE_INTTYPES_H 1
2877EOF
2878
2879 fi
2880
2881
2882
2883 if test $gt_cv_header_inttypes_h = yes; then
2884 echo $ac_n "checking whether the inttypes.h PRIxNN macros are broken""... $ac_c" 1>&6
2885echo "configure:2886: checking whether the inttypes.h PRIxNN macros are broken" >&5
2886if eval "test \"`echo '$''{'gt_cv_inttypes_pri_broken'+set}'`\" = set"; then
2887 echo $ac_n "(cached) $ac_c" 1>&6
2888else
2889
2890 cat > conftest.$ac_ext <<EOF
2891#line 2892 "configure"
2892#include "confdefs.h"
2893#include <inttypes.h>
2894#ifdef PRId32
2895char *p = PRId32;
2896#endif
2897
2898int main() {
2899
2900; return 0; }
2901EOF
2902if { (eval echo configure:2903: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2903 rm -rf conftest*
2904 gt_cv_inttypes_pri_broken=no
2905else
2906 echo "configure: failed program was:" >&5
2907 cat conftest.$ac_ext >&5
2908 rm -rf conftest*
2909 gt_cv_inttypes_pri_broken=yes
2910fi
2911rm -f conftest*
2912
2913fi
2914
2915echo "$ac_t""$gt_cv_inttypes_pri_broken" 1>&6
2916 fi
2917 if test "$gt_cv_inttypes_pri_broken" = yes; then
2918 cat >> confdefs.h <<EOF
2919#define PRI_MACROS_BROKEN 1
2920EOF
2921
2922 fi
2923
2924
2925
2926
2927
2928
2929
2930 use_additional=yes
2931
2932 acl_save_prefix="$prefix"
2933 prefix="$acl_final_prefix"
2934 acl_save_exec_prefix="$exec_prefix"
2935 exec_prefix="$acl_final_exec_prefix"
2936
2937 eval additional_includedir=\"$includedir\"
2938 eval additional_libdir=\"$libdir\"
2939
2940 exec_prefix="$acl_save_exec_prefix"
2941 prefix="$acl_save_prefix"
2942
2943 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
2944if test "${with_libiconv_prefix+set}" = set; then
2945 withval="$with_libiconv_prefix"
2946
2947 if test "X$withval" = "Xno"; then
2948 use_additional=no
2949 else
2950 if test "X$withval" = "X"; then
2951
2952 acl_save_prefix="$prefix"
2953 prefix="$acl_final_prefix"
2954 acl_save_exec_prefix="$exec_prefix"
2955 exec_prefix="$acl_final_exec_prefix"
2956
2957 eval additional_includedir=\"$includedir\"
2958 eval additional_libdir=\"$libdir\"
2959
2960 exec_prefix="$acl_save_exec_prefix"
2961 prefix="$acl_save_prefix"
2962
2963 else
2964 additional_includedir="$withval/include"
2965 additional_libdir="$withval/lib"
2966 fi
2967 fi
2968
2969fi
2970
2971 LIBICONV=
2972 LTLIBICONV=
2973 INCICONV=
2974 rpathdirs=
2975 ltrpathdirs=
2976 names_already_handled=
2977 names_next_round='iconv '
2978 while test -n "$names_next_round"; do
2979 names_this_round="$names_next_round"
2980 names_next_round=
2981 for name in $names_this_round; do
2982 already_handled=
2983 for n in $names_already_handled; do
2984 if test "$n" = "$name"; then
2985 already_handled=yes
2986 break
2987 fi
2988 done
2989 if test -z "$already_handled"; then
2990 names_already_handled="$names_already_handled $name"
2991 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
2992 eval value=\"\$HAVE_LIB$uppername\"
2993 if test -n "$value"; then
2994 if test "$value" = yes; then
2995 eval value=\"\$LIB$uppername\"
2996 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
2997 eval value=\"\$LTLIB$uppername\"
2998 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
2999 else
3000 :
3001 fi
3002 else
3003 found_dir=
3004 found_la=
3005 found_so=
3006 found_a=
3007 if test $use_additional = yes; then
3008 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
3009 found_dir="$additional_libdir"
3010 found_so="$additional_libdir/lib$name.$shlibext"
3011 if test -f "$additional_libdir/lib$name.la"; then
3012 found_la="$additional_libdir/lib$name.la"
3013 fi
3014 else
3015 if test -f "$additional_libdir/lib$name.$libext"; then
3016 found_dir="$additional_libdir"
3017 found_a="$additional_libdir/lib$name.$libext"
3018 if test -f "$additional_libdir/lib$name.la"; then
3019 found_la="$additional_libdir/lib$name.la"
3020 fi
3021 fi
3022 fi
3023 fi
3024 if test "X$found_dir" = "X"; then
3025 for x in $LDFLAGS $LTLIBICONV; do
3026
3027 acl_save_prefix="$prefix"
3028 prefix="$acl_final_prefix"
3029 acl_save_exec_prefix="$exec_prefix"
3030 exec_prefix="$acl_final_exec_prefix"
3031 eval x=\"$x\"
3032 exec_prefix="$acl_save_exec_prefix"
3033 prefix="$acl_save_prefix"
3034
3035 case "$x" in
3036 -L*)
3037 dir=`echo "X$x" | sed -e 's/^X-L//'`
3038 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
3039 found_dir="$dir"
3040 found_so="$dir/lib$name.$shlibext"
3041 if test -f "$dir/lib$name.la"; then
3042 found_la="$dir/lib$name.la"
3043 fi
3044 else
3045 if test -f "$dir/lib$name.$libext"; then
3046 found_dir="$dir"
3047 found_a="$dir/lib$name.$libext"
3048 if test -f "$dir/lib$name.la"; then
3049 found_la="$dir/lib$name.la"
3050 fi
3051 fi
3052 fi
3053 ;;
3054 esac
3055 if test "X$found_dir" != "X"; then
3056 break
3057 fi
3058 done
3059 fi
3060 if test "X$found_dir" != "X"; then
3061 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
3062 if test "X$found_so" != "X"; then
3063 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
3064 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
3065 else
3066 haveit=
3067 for x in $ltrpathdirs; do
3068 if test "X$x" = "X$found_dir"; then
3069 haveit=yes
3070 break
3071 fi
3072 done
3073 if test -z "$haveit"; then
3074 ltrpathdirs="$ltrpathdirs $found_dir"
3075 fi
3076 if test "$hardcode_direct" = yes; then
3077 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
3078 else
3079 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
3080 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
3081 haveit=
3082 for x in $rpathdirs; do
3083 if test "X$x" = "X$found_dir"; then
3084 haveit=yes
3085 break
3086 fi
3087 done
3088 if test -z "$haveit"; then
3089 rpathdirs="$rpathdirs $found_dir"
3090 fi
3091 else
3092 haveit=
3093 for x in $LDFLAGS $LIBICONV; do
3094
3095 acl_save_prefix="$prefix"
3096 prefix="$acl_final_prefix"
3097 acl_save_exec_prefix="$exec_prefix"
3098 exec_prefix="$acl_final_exec_prefix"
3099 eval x=\"$x\"
3100 exec_prefix="$acl_save_exec_prefix"
3101 prefix="$acl_save_prefix"
3102
3103 if test "X$x" = "X-L$found_dir"; then
3104 haveit=yes
3105 break
3106 fi
3107 done
3108 if test -z "$haveit"; then
3109 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
3110 fi
3111 if test "$hardcode_minus_L" != no; then
3112 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
3113 else
3114 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
3115 fi
3116 fi
3117 fi
3118 fi
3119 else
3120 if test "X$found_a" != "X"; then
3121 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
3122 else
3123 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
3124 fi
3125 fi
3126 additional_includedir=
3127 case "$found_dir" in
3128 */lib | */lib/)
3129 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
3130 additional_includedir="$basedir/include"
3131 ;;
3132 esac
3133 if test "X$additional_includedir" != "X"; then
3134 if test "X$additional_includedir" != "X/usr/include"; then
3135 haveit=
3136 if test "X$additional_includedir" = "X/usr/local/include"; then
3137 if test -n "$GCC"; then
3138 case $host_os in
3139 linux*) haveit=yes;;
3140 esac
3141 fi
3142 fi
3143 if test -z "$haveit"; then
3144 for x in $CPPFLAGS $INCICONV; do
3145
3146 acl_save_prefix="$prefix"
3147 prefix="$acl_final_prefix"
3148 acl_save_exec_prefix="$exec_prefix"
3149 exec_prefix="$acl_final_exec_prefix"
3150 eval x=\"$x\"
3151 exec_prefix="$acl_save_exec_prefix"
3152 prefix="$acl_save_prefix"
3153
3154 if test "X$x" = "X-I$additional_includedir"; then
3155 haveit=yes
3156 break
3157 fi
3158 done
3159 if test -z "$haveit"; then
3160 if test -d "$additional_includedir"; then
3161 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
3162 fi
3163 fi
3164 fi
3165 fi
3166 fi
3167 if test -n "$found_la"; then
3168 save_libdir="$libdir"
3169 case "$found_la" in
3170 */* | *\\*) . "$found_la" ;;
3171 *) . "./$found_la" ;;
3172 esac
3173 libdir="$save_libdir"
3174 for dep in $dependency_libs; do
3175 case "$dep" in
3176 -L*)
3177 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
3178 if test "X$additional_libdir" != "X/usr/lib"; then
3179 haveit=
3180 if test "X$additional_libdir" = "X/usr/local/lib"; then
3181 if test -n "$GCC"; then
3182 case $host_os in
3183 linux*) haveit=yes;;
3184 esac
3185 fi
3186 fi
3187 if test -z "$haveit"; then
3188 haveit=
3189 for x in $LDFLAGS $LIBICONV; do
3190
3191 acl_save_prefix="$prefix"
3192 prefix="$acl_final_prefix"
3193 acl_save_exec_prefix="$exec_prefix"
3194 exec_prefix="$acl_final_exec_prefix"
3195 eval x=\"$x\"
3196 exec_prefix="$acl_save_exec_prefix"
3197 prefix="$acl_save_prefix"
3198
3199 if test "X$x" = "X-L$additional_libdir"; then
3200 haveit=yes
3201 break
3202 fi
3203 done
3204 if test -z "$haveit"; then
3205 if test -d "$additional_libdir"; then
3206 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
3207 fi
3208 fi
3209 haveit=
3210 for x in $LDFLAGS $LTLIBICONV; do
3211
3212 acl_save_prefix="$prefix"
3213 prefix="$acl_final_prefix"
3214 acl_save_exec_prefix="$exec_prefix"
3215 exec_prefix="$acl_final_exec_prefix"
3216 eval x=\"$x\"
3217 exec_prefix="$acl_save_exec_prefix"
3218 prefix="$acl_save_prefix"
3219
3220 if test "X$x" = "X-L$additional_libdir"; then
3221 haveit=yes
3222 break
3223 fi
3224 done
3225 if test -z "$haveit"; then
3226 if test -d "$additional_libdir"; then
3227 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
3228 fi
3229 fi
3230 fi
3231 fi
3232 ;;
3233 -R*)
3234 dir=`echo "X$dep" | sed -e 's/^X-R//'`
3235 if test "$enable_rpath" != no; then
3236 haveit=
3237 for x in $rpathdirs; do
3238 if test "X$x" = "X$dir"; then
3239 haveit=yes
3240 break
3241 fi
3242 done
3243 if test -z "$haveit"; then
3244 rpathdirs="$rpathdirs $dir"
3245 fi
3246 haveit=
3247 for x in $ltrpathdirs; do
3248 if test "X$x" = "X$dir"; then
3249 haveit=yes
3250 break
3251 fi
3252 done
3253 if test -z "$haveit"; then
3254 ltrpathdirs="$ltrpathdirs $dir"
3255 fi
3256 fi
3257 ;;
3258 -l*)
3259 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
3260 ;;
3261 *.la)
3262 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
3263 ;;
3264 *)
3265 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
3266 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
3267 ;;
3268 esac
3269 done
3270 fi
3271 else
3272 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
3273 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
3274 fi
3275 fi
3276 fi
3277 done
3278 done
3279 if test "X$rpathdirs" != "X"; then
3280 if test -n "$hardcode_libdir_separator"; then
3281 alldirs=
3282 for found_dir in $rpathdirs; do
3283 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
3284 done
3285 acl_save_libdir="$libdir"
3286 libdir="$alldirs"
3287 eval flag=\"$hardcode_libdir_flag_spec\"
3288 libdir="$acl_save_libdir"
3289 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
3290 else
3291 for found_dir in $rpathdirs; do
3292 acl_save_libdir="$libdir"
3293 libdir="$found_dir"
3294 eval flag=\"$hardcode_libdir_flag_spec\"
3295 libdir="$acl_save_libdir"
3296 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
3297 done
3298 fi
3299 fi
3300 if test "X$ltrpathdirs" != "X"; then
3301 for found_dir in $ltrpathdirs; do
3302 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
3303 done
3304 fi
3305
3306
3307
3308
3309
3310 # Extract the first word of "msgfmt", so it can be a program name with args.
3311set dummy msgfmt; ac_word=$2
3312echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3313echo "configure:3314: checking for $ac_word" >&5
3314if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3315 echo $ac_n "(cached) $ac_c" 1>&6
3316else
3317 case "$MSGFMT" in
3318 /*)
3319 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3320 ;;
3321 *)
3322 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3323 for ac_dir in $PATH; do
3324 test -z "$ac_dir" && ac_dir=.
3325 if test -f $ac_dir/$ac_word; then
3326 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
3327 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3328 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3329 break
3330 fi
3331 fi
3332 done
3333 IFS="$ac_save_ifs"
3334 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
3335 ;;
3336esac
3337fi
3338MSGFMT="$ac_cv_path_MSGFMT"
3339if test "$MSGFMT" != ":"; then
3340 echo "$ac_t""$MSGFMT" 1>&6
3341else
3342 echo "$ac_t""no" 1>&6
3343fi
3344
3345 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3346set dummy gmsgfmt; ac_word=$2
3347echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3348echo "configure:3349: checking for $ac_word" >&5
3349if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3350 echo $ac_n "(cached) $ac_c" 1>&6
3351else
3352 case "$GMSGFMT" in
3353 /*)
3354 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3355 ;;
3356 ?:/*)
3357 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3358 ;;
3359 *)
3360 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3361 ac_dummy="$PATH"
3362 for ac_dir in $ac_dummy; do
3363 test -z "$ac_dir" && ac_dir=.
3364 if test -f $ac_dir/$ac_word; then
3365 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3366 break
3367 fi
3368 done
3369 IFS="$ac_save_ifs"
3370 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3371 ;;
3372esac
3373fi
3374GMSGFMT="$ac_cv_path_GMSGFMT"
3375if test -n "$GMSGFMT"; then
3376 echo "$ac_t""$GMSGFMT" 1>&6
3377else
3378 echo "$ac_t""no" 1>&6
3379fi
3380
3381
3382 # Extract the first word of "xgettext", so it can be a program name with args.
3383set dummy xgettext; ac_word=$2
3384echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3385echo "configure:3386: checking for $ac_word" >&5
3386if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3387 echo $ac_n "(cached) $ac_c" 1>&6
3388else
3389 case "$XGETTEXT" in
3390 /*)
3391 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3392 ;;
3393 *)
3394 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3395 for ac_dir in $PATH; do
3396 test -z "$ac_dir" && ac_dir=.
3397 if test -f $ac_dir/$ac_word; then
3398 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
3399 (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
3400 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3401 break
3402 fi
3403 fi
3404 done
3405 IFS="$ac_save_ifs"
3406 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3407 ;;
3408esac
3409fi
3410XGETTEXT="$ac_cv_path_XGETTEXT"
3411if test "$XGETTEXT" != ":"; then
3412 echo "$ac_t""$XGETTEXT" 1>&6
3413else
3414 echo "$ac_t""no" 1>&6
3415fi
3416
3417 rm -f messages.po
3418
3419 # Extract the first word of "msgmerge", so it can be a program name with args.
3420set dummy msgmerge; ac_word=$2
3421echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3422echo "configure:3423: checking for $ac_word" >&5
3423if eval "test \"`echo '$''{'ac_cv_path_MSGMERGE'+set}'`\" = set"; then
3424 echo $ac_n "(cached) $ac_c" 1>&6
3425else
3426 case "$MSGMERGE" in
3427 /*)
3428 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
3429 ;;
3430 *)
3431 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3432 for ac_dir in $PATH; do
3433 test -z "$ac_dir" && ac_dir=.
3434 if test -f $ac_dir/$ac_word; then
3435 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
3436 ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
3437 break
3438 fi
3439 fi
3440 done
3441 IFS="$ac_save_ifs"
3442 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
3443 ;;
3444esac
3445fi
3446MSGMERGE="$ac_cv_path_MSGMERGE"
3447if test "$MSGMERGE" != ":"; then
3448 echo "$ac_t""$MSGMERGE" 1>&6
3449else
3450 echo "$ac_t""no" 1>&6
3451fi
3452
3453
3454 if test "$GMSGFMT" != ":"; then
3455 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
3456 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3457 : ;
3458 else
3459 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
3460 echo "$ac_t""found $GMSGFMT program is not GNU msgfmt; ignore it" 1>&6
3461 GMSGFMT=":"
3462 fi
3463 fi
3464
3465 if test "$XGETTEXT" != ":"; then
3466 if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
3467 (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3468 : ;
3469 else
3470 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
3471 XGETTEXT=":"
3472 fi
3473 rm -f messages.po
3474 fi
3475
3476
3477
3478
3479
3480 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
3481stdlib.h string.h unistd.h sys/param.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003482do
3483ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3484echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003485echo "configure:3486: checking for $ac_hdr" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003486if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3487 echo $ac_n "(cached) $ac_c" 1>&6
3488else
3489 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003490#line 3491 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003491#include "confdefs.h"
3492#include <$ac_hdr>
3493EOF
3494ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003495{ (eval echo configure:3496: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003496ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3497if test -z "$ac_err"; then
3498 rm -rf conftest*
3499 eval "ac_cv_header_$ac_safe=yes"
3500else
3501 echo "$ac_err" >&5
3502 echo "configure: failed program was:" >&5
3503 cat conftest.$ac_ext >&5
3504 rm -rf conftest*
3505 eval "ac_cv_header_$ac_safe=no"
3506fi
3507rm -f conftest*
3508fi
3509if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3510 echo "$ac_t""yes" 1>&6
3511 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3512 cat >> confdefs.h <<EOF
3513#define $ac_tr_hdr 1
3514EOF
3515
3516else
3517 echo "$ac_t""no" 1>&6
3518fi
3519done
3520
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003521 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
3522geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
3523strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003524do
3525echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003526echo "configure:3527: checking for $ac_func" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003527if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3528 echo $ac_n "(cached) $ac_c" 1>&6
3529else
3530 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003531#line 3532 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003532#include "confdefs.h"
3533/* System header to define __stub macros and hopefully few prototypes,
3534 which can conflict with char $ac_func(); below. */
3535#include <assert.h>
3536/* Override any gcc2 internal prototype to avoid an error. */
3537/* We use char because int might match the return type of a gcc2
3538 builtin and then its argument prototype would still apply. */
3539char $ac_func();
3540
3541int main() {
3542
3543/* The GNU C library defines this for functions which it implements
3544 to always fail with ENOSYS. Some functions are actually named
3545 something starting with __ and the normal name is an alias. */
3546#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3547choke me
3548#else
3549$ac_func();
3550#endif
3551
3552; return 0; }
3553EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003554if { (eval echo configure:3555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003555 rm -rf conftest*
3556 eval "ac_cv_func_$ac_func=yes"
3557else
3558 echo "configure: failed program was:" >&5
3559 cat conftest.$ac_ext >&5
3560 rm -rf conftest*
3561 eval "ac_cv_func_$ac_func=no"
3562fi
3563rm -f conftest*
3564fi
3565
3566if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3567 echo "$ac_t""yes" 1>&6
3568 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3569 cat >> confdefs.h <<EOF
3570#define $ac_tr_func 1
3571EOF
3572
3573else
3574 echo "$ac_t""no" 1>&6
3575fi
3576done
3577
3578
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003579
3580
3581
3582
3583
3584 am_save_CPPFLAGS="$CPPFLAGS"
3585
3586 for element in $INCICONV; do
3587 haveit=
3588 for x in $CPPFLAGS; do
3589
3590 acl_save_prefix="$prefix"
3591 prefix="$acl_final_prefix"
3592 acl_save_exec_prefix="$exec_prefix"
3593 exec_prefix="$acl_final_exec_prefix"
3594 eval x=\"$x\"
3595 exec_prefix="$acl_save_exec_prefix"
3596 prefix="$acl_save_prefix"
3597
3598 if test "X$x" = "X$element"; then
3599 haveit=yes
3600 break
3601 fi
3602 done
3603 if test -z "$haveit"; then
3604 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
3605 fi
3606 done
3607
3608
3609 echo $ac_n "checking for iconv""... $ac_c" 1>&6
3610echo "configure:3611: checking for iconv" >&5
3611if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003612 echo $ac_n "(cached) $ac_c" 1>&6
3613else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003614
3615 am_cv_func_iconv="no, consider installing GNU libiconv"
3616 am_cv_lib_iconv=no
3617 cat > conftest.$ac_ext <<EOF
3618#line 3619 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003619#include "confdefs.h"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003620#include <stdlib.h>
3621#include <iconv.h>
3622int main() {
3623iconv_t cd = iconv_open("","");
3624 iconv(cd,NULL,NULL,NULL,NULL);
3625 iconv_close(cd);
3626; return 0; }
3627EOF
3628if { (eval echo configure:3629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3629 rm -rf conftest*
3630 am_cv_func_iconv=yes
3631else
3632 echo "configure: failed program was:" >&5
3633 cat conftest.$ac_ext >&5
3634fi
3635rm -f conftest*
3636 if test "$am_cv_func_iconv" != yes; then
3637 am_save_LIBS="$LIBS"
3638 LIBS="$LIBS $LIBICONV"
3639 cat > conftest.$ac_ext <<EOF
3640#line 3641 "configure"
3641#include "confdefs.h"
3642#include <stdlib.h>
3643#include <iconv.h>
3644int main() {
3645iconv_t cd = iconv_open("","");
3646 iconv(cd,NULL,NULL,NULL,NULL);
3647 iconv_close(cd);
3648; return 0; }
3649EOF
3650if { (eval echo configure:3651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3651 rm -rf conftest*
3652 am_cv_lib_iconv=yes
3653 am_cv_func_iconv=yes
3654else
3655 echo "configure: failed program was:" >&5
3656 cat conftest.$ac_ext >&5
3657fi
3658rm -f conftest*
3659 LIBS="$am_save_LIBS"
3660 fi
3661
3662fi
3663
3664echo "$ac_t""$am_cv_func_iconv" 1>&6
3665 if test "$am_cv_func_iconv" = yes; then
3666 cat >> confdefs.h <<\EOF
3667#define HAVE_ICONV 1
3668EOF
3669
3670 fi
3671 if test "$am_cv_lib_iconv" = yes; then
3672 echo $ac_n "checking how to link with libiconv""... $ac_c" 1>&6
3673echo "configure:3674: checking how to link with libiconv" >&5
3674 echo "$ac_t""$LIBICONV" 1>&6
3675 else
3676 CPPFLAGS="$am_save_CPPFLAGS"
3677 LIBICONV=
3678 LTLIBICONV=
3679 fi
3680
3681
3682
3683 if test "$am_cv_func_iconv" = yes; then
3684 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
3685echo "configure:3686: checking for iconv declaration" >&5
3686 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
3687 echo $ac_n "(cached) $ac_c" 1>&6
3688else
3689
3690 cat > conftest.$ac_ext <<EOF
3691#line 3692 "configure"
3692#include "confdefs.h"
3693
3694#include <stdlib.h>
3695#include <iconv.h>
3696extern
3697#ifdef __cplusplus
3698"C"
3699#endif
3700#if defined(__STDC__) || defined(__cplusplus)
3701size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
3702#else
3703size_t iconv();
3704#endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003705
3706int main() {
3707
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003708; return 0; }
3709EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003710if { (eval echo configure:3711: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003711 rm -rf conftest*
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003712 am_cv_proto_iconv_arg1=""
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003713else
3714 echo "configure: failed program was:" >&5
3715 cat conftest.$ac_ext >&5
3716 rm -rf conftest*
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003717 am_cv_proto_iconv_arg1="const"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003718fi
3719rm -f conftest*
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003720 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 +00003721fi
3722
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003723 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
3724 echo "$ac_t""${ac_t:-
3725 }$am_cv_proto_iconv" 1>&6
3726 cat >> confdefs.h <<EOF
3727#define ICONV_CONST $am_cv_proto_iconv_arg1
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003728EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003729
3730 fi
3731
3732
3733 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
3734echo "configure:3735: checking for nl_langinfo and CODESET" >&5
3735if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
3736 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003737else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003738 cat > conftest.$ac_ext <<EOF
3739#line 3740 "configure"
3740#include "confdefs.h"
3741#include <langinfo.h>
3742int main() {
3743char* cs = nl_langinfo(CODESET);
3744; return 0; }
3745EOF
3746if { (eval echo configure:3747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3747 rm -rf conftest*
3748 am_cv_langinfo_codeset=yes
3749else
3750 echo "configure: failed program was:" >&5
3751 cat conftest.$ac_ext >&5
3752 rm -rf conftest*
3753 am_cv_langinfo_codeset=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003754fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003755rm -f conftest*
3756
3757fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003758
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003759echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
3760 if test $am_cv_langinfo_codeset = yes; then
3761 cat >> confdefs.h <<\EOF
3762#define HAVE_LANGINFO_CODESET 1
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003763EOF
3764
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003765 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003766
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003767 if test $ac_cv_header_locale_h = yes; then
3768
3769 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3770echo "configure:3771: checking for LC_MESSAGES" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003771if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3772 echo $ac_n "(cached) $ac_c" 1>&6
3773else
3774 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003775#line 3776 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003776#include "confdefs.h"
3777#include <locale.h>
3778int main() {
3779return LC_MESSAGES
3780; return 0; }
3781EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003782if { (eval echo configure:3783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003783 rm -rf conftest*
3784 am_cv_val_LC_MESSAGES=yes
3785else
3786 echo "configure: failed program was:" >&5
3787 cat conftest.$ac_ext >&5
3788 rm -rf conftest*
3789 am_cv_val_LC_MESSAGES=no
3790fi
3791rm -f conftest*
3792fi
3793
3794echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003795 if test $am_cv_val_LC_MESSAGES = yes; then
3796 cat >> confdefs.h <<\EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003797#define HAVE_LC_MESSAGES 1
3798EOF
3799
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003800 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003801
3802 fi
3803
3804 for ac_prog in bison
3805do
3806# Extract the first word of "$ac_prog", so it can be a program name with args.
3807set dummy $ac_prog; ac_word=$2
3808echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3809echo "configure:3810: checking for $ac_word" >&5
3810if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
3811 echo $ac_n "(cached) $ac_c" 1>&6
3812else
3813 if test -n "$INTLBISON"; then
3814 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
3815else
3816 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3817 ac_dummy="$PATH"
3818 for ac_dir in $ac_dummy; do
3819 test -z "$ac_dir" && ac_dir=.
3820 if test -f $ac_dir/$ac_word; then
3821 ac_cv_prog_INTLBISON="$ac_prog"
3822 break
3823 fi
3824 done
3825 IFS="$ac_save_ifs"
3826fi
3827fi
3828INTLBISON="$ac_cv_prog_INTLBISON"
3829if test -n "$INTLBISON"; then
3830 echo "$ac_t""$INTLBISON" 1>&6
3831else
3832 echo "$ac_t""no" 1>&6
3833fi
3834
3835test -n "$INTLBISON" && break
3836done
3837
3838 if test -z "$INTLBISON"; then
3839 ac_verc_fail=yes
3840 else
3841 echo $ac_n "checking version of bison""... $ac_c" 1>&6
3842echo "configure:3843: checking version of bison" >&5
3843 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
3844 case $ac_prog_version in
3845 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3846 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
3847 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3848 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3849 esac
3850 echo "$ac_t""$ac_prog_version" 1>&6
3851 fi
3852 if test $ac_verc_fail = yes; then
3853 INTLBISON=:
3854 fi
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3871echo "configure:3872: checking whether NLS is requested" >&5
3872 # Check whether --enable-nls or --disable-nls was given.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003873if test "${enable_nls+set}" = set; then
3874 enableval="$enable_nls"
3875 USE_NLS=$enableval
3876else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003877 USE_NLS=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003878fi
3879
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003880 echo "$ac_t""$USE_NLS" 1>&6
3881
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003882
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003883
3884 BUILD_INCLUDED_LIBINTL=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003885 USE_INCLUDED_LIBINTL=no
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003886
3887 LIBINTL=
3888 LTLIBINTL=
3889 POSUB=
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003890
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003891 if test "$USE_NLS" = "yes"; then
3892 gt_use_preinstalled_gnugettext=no
3893
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003894 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003895echo "configure:3896: checking whether included gettext is requested" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003896 # Check whether --with-included-gettext or --without-included-gettext was given.
3897if test "${with_included_gettext+set}" = set; then
3898 withval="$with_included_gettext"
3899 nls_cv_force_use_gnu_gettext=$withval
3900else
3901 nls_cv_force_use_gnu_gettext=no
3902fi
3903
3904 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3905
3906 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
3907 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003908
3909
3910
3911
3912
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003913
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003914 echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
3915echo "configure:3916: checking for GNU gettext in libc" >&5
3916if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003917 echo $ac_n "(cached) $ac_c" 1>&6
3918else
3919 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003920#line 3921 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003921#include "confdefs.h"
3922#include <libintl.h>
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003923extern int _nl_msg_cat_cntr;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003924extern int *_nl_domain_bindings;
3925int main() {
3926bindtextdomain ("", "");
3927return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003928; return 0; }
3929EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003930if { (eval echo configure:3931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003931 rm -rf conftest*
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003932 gt_cv_func_gnugettext1_libc=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003933else
3934 echo "configure: failed program was:" >&5
3935 cat conftest.$ac_ext >&5
3936 rm -rf conftest*
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003937 gt_cv_func_gnugettext1_libc=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003938fi
3939rm -f conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003940fi
3941
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003942echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003943
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003944 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
3945
3946
3947
3948 use_additional=yes
3949
3950 acl_save_prefix="$prefix"
3951 prefix="$acl_final_prefix"
3952 acl_save_exec_prefix="$exec_prefix"
3953 exec_prefix="$acl_final_exec_prefix"
3954
3955 eval additional_includedir=\"$includedir\"
3956 eval additional_libdir=\"$libdir\"
3957
3958 exec_prefix="$acl_save_exec_prefix"
3959 prefix="$acl_save_prefix"
3960
3961 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
3962if test "${with_libintl_prefix+set}" = set; then
3963 withval="$with_libintl_prefix"
3964
3965 if test "X$withval" = "Xno"; then
3966 use_additional=no
3967 else
3968 if test "X$withval" = "X"; then
3969
3970 acl_save_prefix="$prefix"
3971 prefix="$acl_final_prefix"
3972 acl_save_exec_prefix="$exec_prefix"
3973 exec_prefix="$acl_final_exec_prefix"
3974
3975 eval additional_includedir=\"$includedir\"
3976 eval additional_libdir=\"$libdir\"
3977
3978 exec_prefix="$acl_save_exec_prefix"
3979 prefix="$acl_save_prefix"
3980
3981 else
3982 additional_includedir="$withval/include"
3983 additional_libdir="$withval/lib"
3984 fi
3985 fi
3986
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003987fi
3988
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003989 LIBINTL=
3990 LTLIBINTL=
3991 INCINTL=
3992 rpathdirs=
3993 ltrpathdirs=
3994 names_already_handled=
3995 names_next_round='intl '
3996 while test -n "$names_next_round"; do
3997 names_this_round="$names_next_round"
3998 names_next_round=
3999 for name in $names_this_round; do
4000 already_handled=
4001 for n in $names_already_handled; do
4002 if test "$n" = "$name"; then
4003 already_handled=yes
4004 break
4005 fi
4006 done
4007 if test -z "$already_handled"; then
4008 names_already_handled="$names_already_handled $name"
4009 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
4010 eval value=\"\$HAVE_LIB$uppername\"
4011 if test -n "$value"; then
4012 if test "$value" = yes; then
4013 eval value=\"\$LIB$uppername\"
4014 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
4015 eval value=\"\$LTLIB$uppername\"
4016 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
4017 else
4018 :
4019 fi
4020 else
4021 found_dir=
4022 found_la=
4023 found_so=
4024 found_a=
4025 if test $use_additional = yes; then
4026 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
4027 found_dir="$additional_libdir"
4028 found_so="$additional_libdir/lib$name.$shlibext"
4029 if test -f "$additional_libdir/lib$name.la"; then
4030 found_la="$additional_libdir/lib$name.la"
4031 fi
4032 else
4033 if test -f "$additional_libdir/lib$name.$libext"; then
4034 found_dir="$additional_libdir"
4035 found_a="$additional_libdir/lib$name.$libext"
4036 if test -f "$additional_libdir/lib$name.la"; then
4037 found_la="$additional_libdir/lib$name.la"
4038 fi
4039 fi
4040 fi
4041 fi
4042 if test "X$found_dir" = "X"; then
4043 for x in $LDFLAGS $LTLIBINTL; do
4044
4045 acl_save_prefix="$prefix"
4046 prefix="$acl_final_prefix"
4047 acl_save_exec_prefix="$exec_prefix"
4048 exec_prefix="$acl_final_exec_prefix"
4049 eval x=\"$x\"
4050 exec_prefix="$acl_save_exec_prefix"
4051 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004052
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004053 case "$x" in
4054 -L*)
4055 dir=`echo "X$x" | sed -e 's/^X-L//'`
4056 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
4057 found_dir="$dir"
4058 found_so="$dir/lib$name.$shlibext"
4059 if test -f "$dir/lib$name.la"; then
4060 found_la="$dir/lib$name.la"
4061 fi
4062 else
4063 if test -f "$dir/lib$name.$libext"; then
4064 found_dir="$dir"
4065 found_a="$dir/lib$name.$libext"
4066 if test -f "$dir/lib$name.la"; then
4067 found_la="$dir/lib$name.la"
4068 fi
4069 fi
4070 fi
4071 ;;
4072 esac
4073 if test "X$found_dir" != "X"; then
4074 break
4075 fi
4076 done
4077 fi
4078 if test "X$found_dir" != "X"; then
4079 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
4080 if test "X$found_so" != "X"; then
4081 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
4082 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
4083 else
4084 haveit=
4085 for x in $ltrpathdirs; do
4086 if test "X$x" = "X$found_dir"; then
4087 haveit=yes
4088 break
4089 fi
4090 done
4091 if test -z "$haveit"; then
4092 ltrpathdirs="$ltrpathdirs $found_dir"
4093 fi
4094 if test "$hardcode_direct" = yes; then
4095 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
4096 else
4097 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
4098 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
4099 haveit=
4100 for x in $rpathdirs; do
4101 if test "X$x" = "X$found_dir"; then
4102 haveit=yes
4103 break
4104 fi
4105 done
4106 if test -z "$haveit"; then
4107 rpathdirs="$rpathdirs $found_dir"
4108 fi
4109 else
4110 haveit=
4111 for x in $LDFLAGS $LIBINTL; do
4112
4113 acl_save_prefix="$prefix"
4114 prefix="$acl_final_prefix"
4115 acl_save_exec_prefix="$exec_prefix"
4116 exec_prefix="$acl_final_exec_prefix"
4117 eval x=\"$x\"
4118 exec_prefix="$acl_save_exec_prefix"
4119 prefix="$acl_save_prefix"
4120
4121 if test "X$x" = "X-L$found_dir"; then
4122 haveit=yes
4123 break
4124 fi
4125 done
4126 if test -z "$haveit"; then
4127 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
4128 fi
4129 if test "$hardcode_minus_L" != no; then
4130 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
4131 else
4132 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
4133 fi
4134 fi
4135 fi
4136 fi
4137 else
4138 if test "X$found_a" != "X"; then
4139 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
4140 else
4141 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
4142 fi
4143 fi
4144 additional_includedir=
4145 case "$found_dir" in
4146 */lib | */lib/)
4147 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
4148 additional_includedir="$basedir/include"
4149 ;;
4150 esac
4151 if test "X$additional_includedir" != "X"; then
4152 if test "X$additional_includedir" != "X/usr/include"; then
4153 haveit=
4154 if test "X$additional_includedir" = "X/usr/local/include"; then
4155 if test -n "$GCC"; then
4156 case $host_os in
4157 linux*) haveit=yes;;
4158 esac
4159 fi
4160 fi
4161 if test -z "$haveit"; then
4162 for x in $CPPFLAGS $INCINTL; do
4163
4164 acl_save_prefix="$prefix"
4165 prefix="$acl_final_prefix"
4166 acl_save_exec_prefix="$exec_prefix"
4167 exec_prefix="$acl_final_exec_prefix"
4168 eval x=\"$x\"
4169 exec_prefix="$acl_save_exec_prefix"
4170 prefix="$acl_save_prefix"
4171
4172 if test "X$x" = "X-I$additional_includedir"; then
4173 haveit=yes
4174 break
4175 fi
4176 done
4177 if test -z "$haveit"; then
4178 if test -d "$additional_includedir"; then
4179 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
4180 fi
4181 fi
4182 fi
4183 fi
4184 fi
4185 if test -n "$found_la"; then
4186 save_libdir="$libdir"
4187 case "$found_la" in
4188 */* | *\\*) . "$found_la" ;;
4189 *) . "./$found_la" ;;
4190 esac
4191 libdir="$save_libdir"
4192 for dep in $dependency_libs; do
4193 case "$dep" in
4194 -L*)
4195 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
4196 if test "X$additional_libdir" != "X/usr/lib"; then
4197 haveit=
4198 if test "X$additional_libdir" = "X/usr/local/lib"; then
4199 if test -n "$GCC"; then
4200 case $host_os in
4201 linux*) haveit=yes;;
4202 esac
4203 fi
4204 fi
4205 if test -z "$haveit"; then
4206 haveit=
4207 for x in $LDFLAGS $LIBINTL; do
4208
4209 acl_save_prefix="$prefix"
4210 prefix="$acl_final_prefix"
4211 acl_save_exec_prefix="$exec_prefix"
4212 exec_prefix="$acl_final_exec_prefix"
4213 eval x=\"$x\"
4214 exec_prefix="$acl_save_exec_prefix"
4215 prefix="$acl_save_prefix"
4216
4217 if test "X$x" = "X-L$additional_libdir"; then
4218 haveit=yes
4219 break
4220 fi
4221 done
4222 if test -z "$haveit"; then
4223 if test -d "$additional_libdir"; then
4224 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
4225 fi
4226 fi
4227 haveit=
4228 for x in $LDFLAGS $LTLIBINTL; do
4229
4230 acl_save_prefix="$prefix"
4231 prefix="$acl_final_prefix"
4232 acl_save_exec_prefix="$exec_prefix"
4233 exec_prefix="$acl_final_exec_prefix"
4234 eval x=\"$x\"
4235 exec_prefix="$acl_save_exec_prefix"
4236 prefix="$acl_save_prefix"
4237
4238 if test "X$x" = "X-L$additional_libdir"; then
4239 haveit=yes
4240 break
4241 fi
4242 done
4243 if test -z "$haveit"; then
4244 if test -d "$additional_libdir"; then
4245 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
4246 fi
4247 fi
4248 fi
4249 fi
4250 ;;
4251 -R*)
4252 dir=`echo "X$dep" | sed -e 's/^X-R//'`
4253 if test "$enable_rpath" != no; then
4254 haveit=
4255 for x in $rpathdirs; do
4256 if test "X$x" = "X$dir"; then
4257 haveit=yes
4258 break
4259 fi
4260 done
4261 if test -z "$haveit"; then
4262 rpathdirs="$rpathdirs $dir"
4263 fi
4264 haveit=
4265 for x in $ltrpathdirs; do
4266 if test "X$x" = "X$dir"; then
4267 haveit=yes
4268 break
4269 fi
4270 done
4271 if test -z "$haveit"; then
4272 ltrpathdirs="$ltrpathdirs $dir"
4273 fi
4274 fi
4275 ;;
4276 -l*)
4277 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
4278 ;;
4279 *.la)
4280 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
4281 ;;
4282 *)
4283 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
4284 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
4285 ;;
4286 esac
4287 done
4288 fi
4289 else
4290 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
4291 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
4292 fi
4293 fi
4294 fi
4295 done
4296 done
4297 if test "X$rpathdirs" != "X"; then
4298 if test -n "$hardcode_libdir_separator"; then
4299 alldirs=
4300 for found_dir in $rpathdirs; do
4301 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
4302 done
4303 acl_save_libdir="$libdir"
4304 libdir="$alldirs"
4305 eval flag=\"$hardcode_libdir_flag_spec\"
4306 libdir="$acl_save_libdir"
4307 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
4308 else
4309 for found_dir in $rpathdirs; do
4310 acl_save_libdir="$libdir"
4311 libdir="$found_dir"
4312 eval flag=\"$hardcode_libdir_flag_spec\"
4313 libdir="$acl_save_libdir"
4314 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
4315 done
4316 fi
4317 fi
4318 if test "X$ltrpathdirs" != "X"; then
4319 for found_dir in $ltrpathdirs; do
4320 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
4321 done
4322 fi
4323
4324 echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
4325echo "configure:4326: checking for GNU gettext in libintl" >&5
4326if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004327 echo $ac_n "(cached) $ac_c" 1>&6
4328else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004329 gt_save_CPPFLAGS="$CPPFLAGS"
4330 CPPFLAGS="$CPPFLAGS $INCINTL"
4331 gt_save_LIBS="$LIBS"
4332 LIBS="$LIBS $LIBINTL"
4333 cat > conftest.$ac_ext <<EOF
4334#line 4335 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004335#include "confdefs.h"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004336#include <libintl.h>
4337extern int _nl_msg_cat_cntr;
4338extern
4339#ifdef __cplusplus
4340"C"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004341#endif
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004342const char *_nl_expand_alias ();
4343int main() {
4344bindtextdomain ("", "");
4345return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004346; return 0; }
4347EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004348if { (eval echo configure:4349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004349 rm -rf conftest*
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004350 gt_cv_func_gnugettext1_libintl=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004351else
4352 echo "configure: failed program was:" >&5
4353 cat conftest.$ac_ext >&5
4354 rm -rf conftest*
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004355 gt_cv_func_gnugettext1_libintl=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004356fi
4357rm -f conftest*
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004358 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
4359 LIBS="$LIBS $LIBICONV"
4360 cat > conftest.$ac_ext <<EOF
4361#line 4362 "configure"
4362#include "confdefs.h"
4363#include <libintl.h>
4364extern int _nl_msg_cat_cntr;
4365extern
4366#ifdef __cplusplus
4367"C"
4368#endif
4369const char *_nl_expand_alias ();
4370int main() {
4371bindtextdomain ("", "");
4372return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
4373; return 0; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004374EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004375if { (eval echo configure:4376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4376 rm -rf conftest*
4377 LIBINTL="$LIBINTL $LIBICONV"
4378 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
4379 gt_cv_func_gnugettext1_libintl=yes
4380
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004381else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004382 echo "configure: failed program was:" >&5
4383 cat conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004384fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004385rm -f conftest*
4386 fi
4387 CPPFLAGS="$gt_save_CPPFLAGS"
4388 LIBS="$gt_save_LIBS"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004389fi
4390
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004391echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004392 fi
4393
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004394 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
4395 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
4396 && test "$PACKAGE" != gettext; }; then
4397 gt_use_preinstalled_gnugettext=yes
4398 else
4399 LIBINTL=
4400 LTLIBINTL=
4401 INCINTL=
4402 fi
4403
4404
4405 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
4406 nls_cv_use_gnu_gettext=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004407 fi
4408 fi
4409
4410 if test "$nls_cv_use_gnu_gettext" = "yes"; then
4411 INTLOBJS="\$(GETTOBJS)"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004412 BUILD_INCLUDED_LIBINTL=yes
4413 USE_INCLUDED_LIBINTL=yes
4414 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
4415 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
4416 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004417 fi
4418
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004419 if test "$gt_use_preinstalled_gnugettext" = "yes" \
4420 || test "$nls_cv_use_gnu_gettext" = "yes"; then
4421 CATOBJEXT=.gmo
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004422 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004423
4424
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004425 if test "$gt_use_preinstalled_gnugettext" = "yes" \
4426 || test "$nls_cv_use_gnu_gettext" = "yes"; then
4427 cat >> confdefs.h <<\EOF
4428#define ENABLE_NLS 1
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004429EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004430
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004431 else
4432 USE_NLS=no
4433 fi
4434 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004435
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004436 if test "$USE_NLS" = "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004437
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004438 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
4439 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
4440 echo $ac_n "checking how to link with libintl""... $ac_c" 1>&6
4441echo "configure:4442: checking how to link with libintl" >&5
4442 echo "$ac_t""$LIBINTL" 1>&6
4443
4444 for element in $INCINTL; do
4445 haveit=
4446 for x in $CPPFLAGS; do
4447
4448 acl_save_prefix="$prefix"
4449 prefix="$acl_final_prefix"
4450 acl_save_exec_prefix="$exec_prefix"
4451 exec_prefix="$acl_final_exec_prefix"
4452 eval x=\"$x\"
4453 exec_prefix="$acl_save_exec_prefix"
4454 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004455
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004456 if test "X$x" = "X$element"; then
4457 haveit=yes
4458 break
4459 fi
4460 done
4461 if test -z "$haveit"; then
4462 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
4463 fi
4464 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004465
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004466 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004467
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004468 cat >> confdefs.h <<\EOF
4469#define HAVE_GETTEXT 1
4470EOF
4471
4472 cat >> confdefs.h <<\EOF
4473#define HAVE_DCGETTEXT 1
4474EOF
4475
4476 fi
4477
4478 POSUB=po
4479 fi
4480
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004481
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004482 if test "$PACKAGE" = gettext; then
4483 BUILD_INCLUDED_LIBINTL=yes
4484 fi
4485
4486
4487
4488
4489
4490
4491 nls_cv_header_intl=
4492 nls_cv_header_libgt=
4493
4494 DATADIRNAME=share
4495
4496
4497 INSTOBJEXT=.mo
4498
4499
4500 GENCAT=gencat
4501
4502
4503 INTL_LIBTOOL_SUFFIX_PREFIX=
4504
4505
4506
4507 INTLLIBS="$LIBINTL"
4508
4509
4510
4511
4512
4513
Theodore Ts'o74becf31997-04-26 14:37:06 +00004514
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004515echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004516echo "configure:4517: checking whether ${MAKE-make} sets \${MAKE}" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004517set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004518if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
4519 echo $ac_n "(cached) $ac_c" 1>&6
4520else
4521 cat > conftestmake <<\EOF
4522all:
4523 @echo 'ac_maketemp="${MAKE}"'
4524EOF
4525# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4526eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
4527if test -n "$ac_maketemp"; then
4528 eval ac_cv_prog_make_${ac_make}_set=yes
4529else
4530 eval ac_cv_prog_make_${ac_make}_set=no
4531fi
4532rm -f conftestmake
4533fi
4534if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4535 echo "$ac_t""yes" 1>&6
4536 SET_MAKE=
4537else
4538 echo "$ac_t""no" 1>&6
4539 SET_MAKE="MAKE=${MAKE-make}"
4540fi
4541
4542# Extract the first word of "ln", so it can be a program name with args.
4543set dummy ln; ac_word=$2
4544echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004545echo "configure:4546: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004546if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then
4547 echo $ac_n "(cached) $ac_c" 1>&6
4548else
4549 case "$LN" in
4550 /*)
4551 ac_cv_path_LN="$LN" # Let the user override the test with a path.
4552 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004553 ?:/*)
4554 ac_cv_path_LN="$LN" # Let the user override the test with a dos path.
4555 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004556 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004557 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4558 ac_dummy="$PATH"
4559 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004560 test -z "$ac_dir" && ac_dir=.
4561 if test -f $ac_dir/$ac_word; then
4562 ac_cv_path_LN="$ac_dir/$ac_word"
4563 break
4564 fi
4565 done
4566 IFS="$ac_save_ifs"
4567 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
4568 ;;
4569esac
4570fi
4571LN="$ac_cv_path_LN"
4572if test -n "$LN"; then
4573 echo "$ac_t""$LN" 1>&6
4574else
4575 echo "$ac_t""no" 1>&6
4576fi
4577
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004578echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004579echo "configure:4580: checking whether ln -s works" >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004580if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
4581 echo $ac_n "(cached) $ac_c" 1>&6
4582else
4583 rm -f conftestdata
4584if ln -s X conftestdata 2>/dev/null
4585then
4586 rm -f conftestdata
4587 ac_cv_prog_LN_S="ln -s"
4588else
4589 ac_cv_prog_LN_S=ln
4590fi
4591fi
4592LN_S="$ac_cv_prog_LN_S"
4593if test "$ac_cv_prog_LN_S" = "ln -s"; then
4594 echo "$ac_t""yes" 1>&6
4595else
4596 echo "$ac_t""no" 1>&6
4597fi
4598
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004599# Extract the first word of "mv", so it can be a program name with args.
4600set dummy mv; ac_word=$2
4601echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004602echo "configure:4603: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004603if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
4604 echo $ac_n "(cached) $ac_c" 1>&6
4605else
4606 case "$MV" in
4607 /*)
4608 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4609 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004610 ?:/*)
4611 ac_cv_path_MV="$MV" # Let the user override the test with a dos path.
4612 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004613 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004614 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4615 ac_dummy="$PATH"
4616 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004617 test -z "$ac_dir" && ac_dir=.
4618 if test -f $ac_dir/$ac_word; then
4619 ac_cv_path_MV="$ac_dir/$ac_word"
4620 break
4621 fi
4622 done
4623 IFS="$ac_save_ifs"
4624 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4625 ;;
4626esac
4627fi
4628MV="$ac_cv_path_MV"
4629if test -n "$MV"; then
4630 echo "$ac_t""$MV" 1>&6
4631else
4632 echo "$ac_t""no" 1>&6
4633fi
4634
4635# Extract the first word of "cp", so it can be a program name with args.
4636set dummy cp; ac_word=$2
4637echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004638echo "configure:4639: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004639if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then
4640 echo $ac_n "(cached) $ac_c" 1>&6
4641else
4642 case "$CP" in
4643 /*)
4644 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4645 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004646 ?:/*)
4647 ac_cv_path_CP="$CP" # Let the user override the test with a dos path.
4648 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004649 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004650 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4651 ac_dummy="$PATH"
4652 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004653 test -z "$ac_dir" && ac_dir=.
4654 if test -f $ac_dir/$ac_word; then
4655 ac_cv_path_CP="$ac_dir/$ac_word"
4656 break
4657 fi
4658 done
4659 IFS="$ac_save_ifs"
4660 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4661 ;;
4662esac
4663fi
4664CP="$ac_cv_path_CP"
4665if test -n "$CP"; then
4666 echo "$ac_t""$CP" 1>&6
4667else
4668 echo "$ac_t""no" 1>&6
4669fi
4670
4671# Extract the first word of "rm", so it can be a program name with args.
4672set dummy rm; ac_word=$2
4673echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004674echo "configure:4675: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004675if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
4676 echo $ac_n "(cached) $ac_c" 1>&6
4677else
4678 case "$RM" in
4679 /*)
4680 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4681 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004682 ?:/*)
4683 ac_cv_path_RM="$RM" # Let the user override the test with a dos path.
4684 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004685 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004686 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4687 ac_dummy="$PATH"
4688 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004689 test -z "$ac_dir" && ac_dir=.
4690 if test -f $ac_dir/$ac_word; then
4691 ac_cv_path_RM="$ac_dir/$ac_word"
4692 break
4693 fi
4694 done
4695 IFS="$ac_save_ifs"
4696 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4697 ;;
4698esac
4699fi
4700RM="$ac_cv_path_RM"
4701if test -n "$RM"; then
4702 echo "$ac_t""$RM" 1>&6
4703else
4704 echo "$ac_t""no" 1>&6
4705fi
4706
4707# Extract the first word of "chmod", so it can be a program name with args.
4708set dummy chmod; ac_word=$2
4709echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004710echo "configure:4711: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004711if eval "test \"`echo '$''{'ac_cv_path_CHMOD'+set}'`\" = set"; then
4712 echo $ac_n "(cached) $ac_c" 1>&6
4713else
4714 case "$CHMOD" in
4715 /*)
4716 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
4717 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004718 ?:/*)
4719 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a dos path.
4720 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004721 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004722 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4723 ac_dummy="$PATH"
4724 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004725 test -z "$ac_dir" && ac_dir=.
4726 if test -f $ac_dir/$ac_word; then
4727 ac_cv_path_CHMOD="$ac_dir/$ac_word"
4728 break
4729 fi
4730 done
4731 IFS="$ac_save_ifs"
4732 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
4733 ;;
4734esac
4735fi
4736CHMOD="$ac_cv_path_CHMOD"
4737if test -n "$CHMOD"; then
4738 echo "$ac_t""$CHMOD" 1>&6
4739else
4740 echo "$ac_t""no" 1>&6
4741fi
4742
4743# Extract the first word of "awk", so it can be a program name with args.
4744set dummy awk; ac_word=$2
4745echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004746echo "configure:4747: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004747if eval "test \"`echo '$''{'ac_cv_path_AWK'+set}'`\" = set"; then
4748 echo $ac_n "(cached) $ac_c" 1>&6
4749else
4750 case "$AWK" in
4751 /*)
4752 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4753 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004754 ?:/*)
4755 ac_cv_path_AWK="$AWK" # Let the user override the test with a dos path.
4756 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004757 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004758 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4759 ac_dummy="$PATH"
4760 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004761 test -z "$ac_dir" && ac_dir=.
4762 if test -f $ac_dir/$ac_word; then
4763 ac_cv_path_AWK="$ac_dir/$ac_word"
4764 break
4765 fi
4766 done
4767 IFS="$ac_save_ifs"
4768 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
4769 ;;
4770esac
4771fi
4772AWK="$ac_cv_path_AWK"
4773if test -n "$AWK"; then
4774 echo "$ac_t""$AWK" 1>&6
4775else
4776 echo "$ac_t""no" 1>&6
4777fi
4778
4779# Extract the first word of "sed", so it can be a program name with args.
4780set dummy sed; ac_word=$2
4781echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004782echo "configure:4783: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004783if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then
4784 echo $ac_n "(cached) $ac_c" 1>&6
4785else
4786 case "$SED" in
4787 /*)
4788 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4789 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004790 ?:/*)
4791 ac_cv_path_SED="$SED" # Let the user override the test with a dos path.
4792 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004793 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004794 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4795 ac_dummy="$PATH"
4796 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004797 test -z "$ac_dir" && ac_dir=.
4798 if test -f $ac_dir/$ac_word; then
4799 ac_cv_path_SED="$ac_dir/$ac_word"
4800 break
4801 fi
4802 done
4803 IFS="$ac_save_ifs"
4804 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4805 ;;
4806esac
4807fi
4808SED="$ac_cv_path_SED"
4809if test -n "$SED"; then
4810 echo "$ac_t""$SED" 1>&6
4811else
4812 echo "$ac_t""no" 1>&6
4813fi
4814
Theodore Ts'o9d564f71999-07-03 20:25:58 +00004815# Extract the first word of "perl", so it can be a program name with args.
4816set dummy perl; ac_word=$2
4817echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004818echo "configure:4819: checking for $ac_word" >&5
Theodore Ts'o9d564f71999-07-03 20:25:58 +00004819if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
4820 echo $ac_n "(cached) $ac_c" 1>&6
4821else
4822 case "$PERL" in
4823 /*)
4824 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4825 ;;
4826 ?:/*)
4827 ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
4828 ;;
4829 *)
4830 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4831 ac_dummy="$PATH"
4832 for ac_dir in $ac_dummy; do
4833 test -z "$ac_dir" && ac_dir=.
4834 if test -f $ac_dir/$ac_word; then
4835 ac_cv_path_PERL="$ac_dir/$ac_word"
4836 break
4837 fi
4838 done
4839 IFS="$ac_save_ifs"
4840 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
4841 ;;
4842esac
4843fi
4844PERL="$ac_cv_path_PERL"
4845if test -n "$PERL"; then
4846 echo "$ac_t""$PERL" 1>&6
4847else
4848 echo "$ac_t""no" 1>&6
4849fi
4850
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004851# Extract the first word of "ldconfig", so it can be a program name with args.
4852set dummy ldconfig; ac_word=$2
4853echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004854echo "configure:4855: checking for $ac_word" >&5
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004855if eval "test \"`echo '$''{'ac_cv_path_LDCONFIG'+set}'`\" = set"; then
4856 echo $ac_n "(cached) $ac_c" 1>&6
4857else
4858 case "$LDCONFIG" in
4859 /*)
4860 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4861 ;;
4862 ?:/*)
4863 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a dos path.
4864 ;;
4865 *)
4866 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4867 ac_dummy="$PATH"
4868 for ac_dir in $ac_dummy; do
4869 test -z "$ac_dir" && ac_dir=.
4870 if test -f $ac_dir/$ac_word; then
4871 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
4872 break
4873 fi
4874 done
4875 IFS="$ac_save_ifs"
4876 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
4877 ;;
4878esac
4879fi
4880LDCONFIG="$ac_cv_path_LDCONFIG"
4881if test -n "$LDCONFIG"; then
4882 echo "$ac_t""$LDCONFIG" 1>&6
4883else
4884 echo "$ac_t""no" 1>&6
4885fi
4886
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004887echo $ac_n "checking build system type""... $ac_c" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004888echo "configure:4889: checking build system type" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004889
4890build_alias=$build
4891case "$build_alias" in
4892NONE)
4893 case $nonopt in
4894 NONE) build_alias=$host_alias ;;
4895 *) build_alias=$nonopt ;;
4896 esac ;;
4897esac
4898
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004899build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004900build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4901build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4902build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004903echo "$ac_t""$build" 1>&6
4904
4905if test $host != $build; then
4906 ac_tool_prefix=${host_alias}-
4907else
4908 ac_tool_prefix=
4909fi
4910
4911# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4912set dummy ${ac_tool_prefix}ar; ac_word=$2
4913echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004914echo "configure:4915: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004915if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
4916 echo $ac_n "(cached) $ac_c" 1>&6
4917else
4918 if test -n "$AR"; then
4919 ac_cv_prog_AR="$AR" # Let the user override the test.
4920else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004921 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4922 ac_dummy="$PATH"
4923 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004924 test -z "$ac_dir" && ac_dir=.
4925 if test -f $ac_dir/$ac_word; then
4926 ac_cv_prog_AR="${ac_tool_prefix}ar"
4927 break
4928 fi
4929 done
4930 IFS="$ac_save_ifs"
4931fi
4932fi
4933AR="$ac_cv_prog_AR"
4934if test -n "$AR"; then
4935 echo "$ac_t""$AR" 1>&6
4936else
4937 echo "$ac_t""no" 1>&6
4938fi
4939
4940
4941if test -z "$ac_cv_prog_AR"; then
4942if test -n "$ac_tool_prefix"; then
4943 # Extract the first word of "ar", so it can be a program name with args.
4944set dummy ar; ac_word=$2
4945echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004946echo "configure:4947: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004947if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
4948 echo $ac_n "(cached) $ac_c" 1>&6
4949else
4950 if test -n "$AR"; then
4951 ac_cv_prog_AR="$AR" # Let the user override the test.
4952else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004953 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4954 ac_dummy="$PATH"
4955 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004956 test -z "$ac_dir" && ac_dir=.
4957 if test -f $ac_dir/$ac_word; then
4958 ac_cv_prog_AR="ar"
4959 break
4960 fi
4961 done
4962 IFS="$ac_save_ifs"
4963 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
4964fi
4965fi
4966AR="$ac_cv_prog_AR"
4967if test -n "$AR"; then
4968 echo "$ac_t""$AR" 1>&6
4969else
4970 echo "$ac_t""no" 1>&6
4971fi
4972
4973else
4974 AR="ar"
4975fi
4976fi
4977
4978# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4979set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4980echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004981echo "configure:4982: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004982if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
4983 echo $ac_n "(cached) $ac_c" 1>&6
4984else
4985 if test -n "$RANLIB"; then
4986 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4987else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004988 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4989 ac_dummy="$PATH"
4990 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004991 test -z "$ac_dir" && ac_dir=.
4992 if test -f $ac_dir/$ac_word; then
4993 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4994 break
4995 fi
4996 done
4997 IFS="$ac_save_ifs"
4998fi
4999fi
5000RANLIB="$ac_cv_prog_RANLIB"
5001if test -n "$RANLIB"; then
5002 echo "$ac_t""$RANLIB" 1>&6
5003else
5004 echo "$ac_t""no" 1>&6
5005fi
5006
5007
5008if test -z "$ac_cv_prog_RANLIB"; then
5009if test -n "$ac_tool_prefix"; then
5010 # Extract the first word of "ranlib", so it can be a program name with args.
5011set dummy ranlib; ac_word=$2
5012echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005013echo "configure:5014: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005014if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
5015 echo $ac_n "(cached) $ac_c" 1>&6
5016else
5017 if test -n "$RANLIB"; then
5018 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5019else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00005020 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5021 ac_dummy="$PATH"
5022 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005023 test -z "$ac_dir" && ac_dir=.
5024 if test -f $ac_dir/$ac_word; then
5025 ac_cv_prog_RANLIB="ranlib"
5026 break
5027 fi
5028 done
5029 IFS="$ac_save_ifs"
5030 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
5031fi
5032fi
5033RANLIB="$ac_cv_prog_RANLIB"
5034if test -n "$RANLIB"; then
5035 echo "$ac_t""$RANLIB" 1>&6
5036else
5037 echo "$ac_t""no" 1>&6
5038fi
5039
5040else
5041 RANLIB=":"
5042fi
5043fi
5044
5045# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5046set dummy ${ac_tool_prefix}strip; ac_word=$2
5047echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005048echo "configure:5049: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005049if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
5050 echo $ac_n "(cached) $ac_c" 1>&6
5051else
5052 if test -n "$STRIP"; then
5053 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5054else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00005055 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5056 ac_dummy="$PATH"
5057 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005058 test -z "$ac_dir" && ac_dir=.
5059 if test -f $ac_dir/$ac_word; then
5060 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5061 break
5062 fi
5063 done
5064 IFS="$ac_save_ifs"
5065fi
5066fi
5067STRIP="$ac_cv_prog_STRIP"
5068if test -n "$STRIP"; then
5069 echo "$ac_t""$STRIP" 1>&6
5070else
5071 echo "$ac_t""no" 1>&6
5072fi
5073
5074
5075if test -z "$ac_cv_prog_STRIP"; then
5076if test -n "$ac_tool_prefix"; then
5077 # Extract the first word of "strip", so it can be a program name with args.
5078set dummy strip; ac_word=$2
5079echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005080echo "configure:5081: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005081if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
5082 echo $ac_n "(cached) $ac_c" 1>&6
5083else
5084 if test -n "$STRIP"; then
5085 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5086else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00005087 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5088 ac_dummy="$PATH"
5089 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005090 test -z "$ac_dir" && ac_dir=.
5091 if test -f $ac_dir/$ac_word; then
5092 ac_cv_prog_STRIP="strip"
5093 break
5094 fi
5095 done
5096 IFS="$ac_save_ifs"
5097 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
5098fi
5099fi
5100STRIP="$ac_cv_prog_STRIP"
5101if test -n "$STRIP"; then
5102 echo "$ac_t""$STRIP" 1>&6
5103else
5104 echo "$ac_t""no" 1>&6
5105fi
5106
5107else
5108 STRIP=":"
5109fi
5110fi
5111
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005112# Find a good install program. We prefer a C program (faster),
5113# so one script is as good as another. But avoid the broken or
5114# incompatible versions:
5115# SysV /etc/install, /usr/sbin/install
5116# SunOS /usr/etc/install
5117# IRIX /sbin/install
5118# AIX /bin/install
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00005119# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005120# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5121# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5122# ./install, which can be erroneously created by make from ./install.sh.
5123echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005124echo "configure:5125: checking for a BSD compatible install" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005125if test -z "$INSTALL"; then
5126if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
5127 echo $ac_n "(cached) $ac_c" 1>&6
5128else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00005129 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005130 for ac_dir in $PATH; do
5131 # Account for people who put trailing slashes in PATH elements.
5132 case "$ac_dir/" in
5133 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
5134 *)
5135 # OSF1 and SCO ODT 3.0 have their own names for install.
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00005136 # Don't use installbsd from OSF since it installs stuff as root
5137 # by default.
5138 for ac_prog in ginstall scoinst install; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005139 if test -f $ac_dir/$ac_prog; then
5140 if test $ac_prog = install &&
5141 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
5142 # AIX install. It has an incompatible calling convention.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005143 :
5144 else
5145 ac_cv_path_install="$ac_dir/$ac_prog -c"
5146 break 2
5147 fi
5148 fi
5149 done
5150 ;;
5151 esac
5152 done
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005153 IFS="$ac_save_IFS"
5154
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005155fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005156 if test "${ac_cv_path_install+set}" = set; then
5157 INSTALL="$ac_cv_path_install"
5158 else
5159 # As a last resort, use the slow shell script. We don't cache a
5160 # path for INSTALL within a source directory, because that will
5161 # break other packages using the cache if that directory is
5162 # removed, or if the path is relative.
5163 INSTALL="$ac_install_sh"
5164 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005165fi
5166echo "$ac_t""$INSTALL" 1>&6
5167
5168# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5169# It thinks the first close brace ends the variable substitution.
5170test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5171
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00005172test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
5173
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005174test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5175
Theodore Ts'o6c133521999-07-03 20:37:03 +00005176# See if we need a separate native compiler.
5177if test $cross_compiling = no; then
5178 BUILD_CC="$CC"
5179
5180else
5181 for ac_prog in gcc cc
5182do
5183# Extract the first word of "$ac_prog", so it can be a program name with args.
5184set dummy $ac_prog; ac_word=$2
5185echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005186echo "configure:5187: checking for $ac_word" >&5
Theodore Ts'o6c133521999-07-03 20:37:03 +00005187if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
5188 echo $ac_n "(cached) $ac_c" 1>&6
5189else
5190 if test -n "$BUILD_CC"; then
5191 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
5192else
5193 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5194 ac_dummy="$PATH"
5195 for ac_dir in $ac_dummy; do
5196 test -z "$ac_dir" && ac_dir=.
5197 if test -f $ac_dir/$ac_word; then
5198 ac_cv_prog_BUILD_CC="$ac_prog"
5199 break
5200 fi
5201 done
5202 IFS="$ac_save_ifs"
5203fi
5204fi
5205BUILD_CC="$ac_cv_prog_BUILD_CC"
5206if test -n "$BUILD_CC"; then
5207 echo "$ac_t""$BUILD_CC" 1>&6
5208else
5209 echo "$ac_t""no" 1>&6
5210fi
5211
5212test -n "$BUILD_CC" && break
5213done
5214
5215fi
Theodore Ts'offf45482003-04-13 00:44:19 -04005216for ac_hdr in stdlib.h unistd.h stdarg.h errno.h malloc.h mntent.h paths.h dirent.h getopt.h setjmp.h signal.h termios.h linux/fd.h linux/major.h sys/disklabel.h sys/ioctl.h sys/mkdev.h sys/mount.h sys/sockio.h sys/socket.h sys/sysmacros.h sys/time.h sys/stat.h sys/types.h sys/wait.h sys/resource.h net/if.h netinet/in.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005217do
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005218ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005219echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005220echo "configure:5221: checking for $ac_hdr" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005221if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5222 echo $ac_n "(cached) $ac_c" 1>&6
5223else
5224 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005225#line 5226 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005226#include "confdefs.h"
5227#include <$ac_hdr>
5228EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005229ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005230{ (eval echo configure:5231: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00005231ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005232if test -z "$ac_err"; then
5233 rm -rf conftest*
5234 eval "ac_cv_header_$ac_safe=yes"
5235else
5236 echo "$ac_err" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005237 echo "configure: failed program was:" >&5
5238 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005239 rm -rf conftest*
5240 eval "ac_cv_header_$ac_safe=no"
5241fi
5242rm -f conftest*
5243fi
5244if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5245 echo "$ac_t""yes" 1>&6
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005246 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005247 cat >> confdefs.h <<EOF
5248#define $ac_tr_hdr 1
5249EOF
5250
5251else
5252 echo "$ac_t""no" 1>&6
5253fi
5254done
5255
5256echo $ac_n "checking for vprintf""... $ac_c" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005257echo "configure:5258: checking for vprintf" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005258if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
5259 echo $ac_n "(cached) $ac_c" 1>&6
5260else
5261 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005262#line 5263 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005263#include "confdefs.h"
5264/* System header to define __stub macros and hopefully few prototypes,
5265 which can conflict with char vprintf(); below. */
5266#include <assert.h>
5267/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005268/* We use char because int might match the return type of a gcc2
5269 builtin and then its argument prototype would still apply. */
5270char vprintf();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005271
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005272int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005273
5274/* The GNU C library defines this for functions which it implements
5275 to always fail with ENOSYS. Some functions are actually named
5276 something starting with __ and the normal name is an alias. */
5277#if defined (__stub_vprintf) || defined (__stub___vprintf)
5278choke me
5279#else
5280vprintf();
5281#endif
5282
5283; return 0; }
5284EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005285if { (eval echo configure:5286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005286 rm -rf conftest*
5287 eval "ac_cv_func_vprintf=yes"
5288else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005289 echo "configure: failed program was:" >&5
5290 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005291 rm -rf conftest*
5292 eval "ac_cv_func_vprintf=no"
5293fi
5294rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005295fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005296
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005297if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
5298 echo "$ac_t""yes" 1>&6
5299 cat >> confdefs.h <<\EOF
5300#define HAVE_VPRINTF 1
5301EOF
5302
5303else
5304 echo "$ac_t""no" 1>&6
5305fi
5306
5307if test "$ac_cv_func_vprintf" != yes; then
5308echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005309echo "configure:5310: checking for _doprnt" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005310if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
5311 echo $ac_n "(cached) $ac_c" 1>&6
5312else
5313 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005314#line 5315 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005315#include "confdefs.h"
5316/* System header to define __stub macros and hopefully few prototypes,
5317 which can conflict with char _doprnt(); below. */
5318#include <assert.h>
5319/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005320/* We use char because int might match the return type of a gcc2
5321 builtin and then its argument prototype would still apply. */
5322char _doprnt();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005323
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005324int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005325
5326/* The GNU C library defines this for functions which it implements
5327 to always fail with ENOSYS. Some functions are actually named
5328 something starting with __ and the normal name is an alias. */
5329#if defined (__stub__doprnt) || defined (__stub____doprnt)
5330choke me
5331#else
5332_doprnt();
5333#endif
5334
5335; return 0; }
5336EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005337if { (eval echo configure:5338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005338 rm -rf conftest*
5339 eval "ac_cv_func__doprnt=yes"
5340else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005341 echo "configure: failed program was:" >&5
5342 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005343 rm -rf conftest*
5344 eval "ac_cv_func__doprnt=no"
5345fi
5346rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005347fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005348
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005349if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
5350 echo "$ac_t""yes" 1>&6
5351 cat >> confdefs.h <<\EOF
5352#define HAVE_DOPRNT 1
5353EOF
5354
5355else
5356 echo "$ac_t""no" 1>&6
5357fi
5358
5359fi
5360
Theodore Ts'offf45482003-04-13 00:44:19 -04005361echo $ac_n "checking whether d_reclen declared in dirent""... $ac_c" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005362echo "configure:5363: checking whether d_reclen declared in dirent" >&5
Theodore Ts'offf45482003-04-13 00:44:19 -04005363if eval "test \"`echo '$''{'e2fsprogs_cv_have_d_reclen_dirent'+set}'`\" = set"; then
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00005364 echo $ac_n "(cached) $ac_c" 1>&6
5365else
5366 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005367#line 5368 "configure"
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00005368#include "confdefs.h"
Theodore Ts'offf45482003-04-13 00:44:19 -04005369#include <dirent.h>
5370int main() {
5371struct dirent de; de.d_reclen = 0;
5372; return 0; }
5373EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005374if { (eval echo configure:5375: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'offf45482003-04-13 00:44:19 -04005375 rm -rf conftest*
5376 e2fsprogs_cv_have_d_reclen_dirent=yes
5377else
5378 echo "configure: failed program was:" >&5
5379 cat conftest.$ac_ext >&5
5380 rm -rf conftest*
5381 e2fsprogs_cv_have_d_reclen_dirent=no
5382fi
5383rm -f conftest*
5384fi
5385
5386echo "$ac_t""$e2fsprogs_cv_have_d_reclen_dirent" 1>&6
5387if test "$e2fsprogs_cv_have_d_reclen_dirent" = yes; then
5388 cat >> confdefs.h <<\EOF
5389#define HAVE_RECLEN_DIRENT 1
5390EOF
5391
5392fi
5393echo $ac_n "checking whether ssize_t declared""... $ac_c" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005394echo "configure:5395: checking whether ssize_t declared" >&5
Theodore Ts'offf45482003-04-13 00:44:19 -04005395if eval "test \"`echo '$''{'e2fsprogs_cv_have_ssize_t'+set}'`\" = set"; then
5396 echo $ac_n "(cached) $ac_c" 1>&6
5397else
5398 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005399#line 5400 "configure"
Theodore Ts'offf45482003-04-13 00:44:19 -04005400#include "confdefs.h"
5401#include <sys/types.h>
5402int main() {
5403ssize_t a = 0;
5404; return 0; }
5405EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005406if { (eval echo configure:5407: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'offf45482003-04-13 00:44:19 -04005407 rm -rf conftest*
5408 e2fsprogs_cv_have_ssize_t=yes
5409else
5410 echo "configure: failed program was:" >&5
5411 cat conftest.$ac_ext >&5
5412 rm -rf conftest*
5413 e2fsprogs_cv_have_ssize_t=no
5414fi
5415rm -f conftest*
5416fi
5417
5418echo "$ac_t""$e2fsprogs_cv_have_ssize_t" 1>&6
5419if test "$e2fsprogs_cv_have_ssize_t" = yes; then
5420 cat >> confdefs.h <<\EOF
5421#define HAVE_TYPE_SSIZE_T 1
5422EOF
5423
5424fi
5425echo $ac_n "checking whether llseek declared in unistd.h""... $ac_c" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005426echo "configure:5427: checking whether llseek declared in unistd.h" >&5
Theodore Ts'offf45482003-04-13 00:44:19 -04005427if eval "test \"`echo '$''{'e2fsprogs_cv_have_llseek_prototype'+set}'`\" = set"; then
5428 echo $ac_n "(cached) $ac_c" 1>&6
5429else
5430 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005431#line 5432 "configure"
Theodore Ts'offf45482003-04-13 00:44:19 -04005432#include "confdefs.h"
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00005433#include <unistd.h>
5434int main() {
5435extern int llseek(int);
5436; return 0; }
5437EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005438if { (eval echo configure:5439: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00005439 rm -rf conftest*
5440 e2fsprogs_cv_have_llseek_prototype=no
5441else
5442 echo "configure: failed program was:" >&5
5443 cat conftest.$ac_ext >&5
5444 rm -rf conftest*
5445 e2fsprogs_cv_have_llseek_prototype=yes
5446fi
5447rm -f conftest*
5448fi
5449
5450echo "$ac_t""$e2fsprogs_cv_have_llseek_prototype" 1>&6
5451if test "$e2fsprogs_cv_have_llseek_prototype" = yes; then
5452 cat >> confdefs.h <<\EOF
5453#define HAVE_LLSEEK_PROTOTYPE 1
5454EOF
5455
5456fi
Theodore Ts'o6928adc2000-05-25 23:28:50 +00005457echo $ac_n "checking whether lseek64 declared in unistd.h""... $ac_c" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005458echo "configure:5459: checking whether lseek64 declared in unistd.h" >&5
Theodore Ts'o6928adc2000-05-25 23:28:50 +00005459if eval "test \"`echo '$''{'e2fsprogs_cv_have_lseek64_prototype'+set}'`\" = set"; then
5460 echo $ac_n "(cached) $ac_c" 1>&6
5461else
5462 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005463#line 5464 "configure"
Theodore Ts'o6928adc2000-05-25 23:28:50 +00005464#include "confdefs.h"
5465#define _LARGEFILE_SOURCE
5466#define _LARGEFILE64_SOURCE
5467#include <unistd.h>
5468int main() {
5469extern int lseek64(int);
5470; return 0; }
5471EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005472if { (eval echo configure:5473: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o6928adc2000-05-25 23:28:50 +00005473 rm -rf conftest*
5474 e2fsprogs_cv_have_lseek64_prototype=no
5475else
5476 echo "configure: failed program was:" >&5
5477 cat conftest.$ac_ext >&5
5478 rm -rf conftest*
5479 e2fsprogs_cv_have_lseek64_prototype=yes
5480fi
5481rm -f conftest*
5482fi
5483
5484echo "$ac_t""$e2fsprogs_cv_have_lseek64_prototype" 1>&6
5485if test "$e2fsprogs_cv_have_lseek64_prototype" = yes; then
5486 cat >> confdefs.h <<\EOF
5487#define HAVE_LSEEK64_PROTOTYPE 1
5488EOF
5489
5490fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005491if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
5492 # if cross-compiling, with no cached values, just assume something common.
5493 ac_cv_sizeof_short=2
5494 ac_cv_sizeof_int=4
5495 ac_cv_sizeof_long=4
Theodore Ts'o6c133521999-07-03 20:37:03 +00005496 ac_cv_sizeof_long_long=8
5497 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 +00005498fi
5499echo $ac_n "checking size of short""... $ac_c" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005500echo "configure:5501: checking size of short" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005501if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
5502 echo $ac_n "(cached) $ac_c" 1>&6
5503else
5504 if test "$cross_compiling" = yes; then
5505 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
5506else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005507 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005508#line 5509 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005509#include "confdefs.h"
5510#include <stdio.h>
Theodore Ts'o250f79f2001-05-19 22:02:22 +00005511#include <sys/types.h>
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005512main()
5513{
5514 FILE *f=fopen("conftestval", "w");
5515 if (!f) exit(1);
5516 fprintf(f, "%d\n", sizeof(short));
5517 exit(0);
5518}
5519EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005520if { (eval echo configure:5521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005521then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005522 ac_cv_sizeof_short=`cat conftestval`
5523else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005524 echo "configure: failed program was:" >&5
5525 cat conftest.$ac_ext >&5
5526 rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005527 ac_cv_sizeof_short=0
5528fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005529rm -fr conftest*
5530fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005531
5532fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005533echo "$ac_t""$ac_cv_sizeof_short" 1>&6
5534cat >> confdefs.h <<EOF
5535#define SIZEOF_SHORT $ac_cv_sizeof_short
5536EOF
5537
5538
5539echo $ac_n "checking size of int""... $ac_c" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005540echo "configure:5541: checking size of int" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005541if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
5542 echo $ac_n "(cached) $ac_c" 1>&6
5543else
5544 if test "$cross_compiling" = yes; then
5545 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
5546else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005547 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005548#line 5549 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005549#include "confdefs.h"
5550#include <stdio.h>
Theodore Ts'o250f79f2001-05-19 22:02:22 +00005551#include <sys/types.h>
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005552main()
5553{
5554 FILE *f=fopen("conftestval", "w");
5555 if (!f) exit(1);
5556 fprintf(f, "%d\n", sizeof(int));
5557 exit(0);
5558}
5559EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005560if { (eval echo configure:5561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005561then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005562 ac_cv_sizeof_int=`cat conftestval`
5563else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005564 echo "configure: failed program was:" >&5
5565 cat conftest.$ac_ext >&5
5566 rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005567 ac_cv_sizeof_int=0
5568fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005569rm -fr conftest*
5570fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005571
5572fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005573echo "$ac_t""$ac_cv_sizeof_int" 1>&6
5574cat >> confdefs.h <<EOF
5575#define SIZEOF_INT $ac_cv_sizeof_int
5576EOF
5577
5578
5579echo $ac_n "checking size of long""... $ac_c" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005580echo "configure:5581: checking size of long" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005581if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
5582 echo $ac_n "(cached) $ac_c" 1>&6
5583else
5584 if test "$cross_compiling" = yes; then
5585 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
5586else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005587 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005588#line 5589 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005589#include "confdefs.h"
5590#include <stdio.h>
Theodore Ts'o250f79f2001-05-19 22:02:22 +00005591#include <sys/types.h>
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005592main()
5593{
5594 FILE *f=fopen("conftestval", "w");
5595 if (!f) exit(1);
5596 fprintf(f, "%d\n", sizeof(long));
5597 exit(0);
5598}
5599EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005600if { (eval echo configure:5601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005601then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005602 ac_cv_sizeof_long=`cat conftestval`
5603else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005604 echo "configure: failed program was:" >&5
5605 cat conftest.$ac_ext >&5
5606 rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005607 ac_cv_sizeof_long=0
5608fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005609rm -fr conftest*
5610fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005611
5612fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005613echo "$ac_t""$ac_cv_sizeof_long" 1>&6
5614cat >> confdefs.h <<EOF
5615#define SIZEOF_LONG $ac_cv_sizeof_long
5616EOF
5617
5618
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005619echo $ac_n "checking size of long long""... $ac_c" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005620echo "configure:5621: checking size of long long" >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005621if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
5622 echo $ac_n "(cached) $ac_c" 1>&6
5623else
5624 if test "$cross_compiling" = yes; then
5625 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
5626else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005627 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005628#line 5629 "configure"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005629#include "confdefs.h"
5630#include <stdio.h>
Theodore Ts'o250f79f2001-05-19 22:02:22 +00005631#include <sys/types.h>
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005632main()
5633{
5634 FILE *f=fopen("conftestval", "w");
5635 if (!f) exit(1);
5636 fprintf(f, "%d\n", sizeof(long long));
5637 exit(0);
5638}
5639EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005640if { (eval echo configure:5641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005641then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005642 ac_cv_sizeof_long_long=`cat conftestval`
5643else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005644 echo "configure: failed program was:" >&5
5645 cat conftest.$ac_ext >&5
5646 rm -fr conftest*
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005647 ac_cv_sizeof_long_long=0
5648fi
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005649rm -fr conftest*
5650fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005651
5652fi
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005653echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
5654cat >> confdefs.h <<EOF
5655#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5656EOF
5657
5658
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005659SIZEOF_SHORT=$ac_cv_sizeof_short
5660SIZEOF_INT=$ac_cv_sizeof_int
5661SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005662SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
5663
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005664
5665
5666
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00005667echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005668echo "configure:5669: checking whether byte ordering is bigendian" >&5
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00005669if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
5670 echo $ac_n "(cached) $ac_c" 1>&6
5671else
5672 ac_cv_c_bigendian=unknown
5673# See if sys/param.h defines the BYTE_ORDER macro.
5674cat > conftest.$ac_ext <<EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005675#line 5676 "configure"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00005676#include "confdefs.h"
5677#include <sys/types.h>
5678#include <sys/param.h>
5679int main() {
5680
5681#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
5682 bogus endian macros
5683#endif
5684; return 0; }
5685EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005686if { (eval echo configure:5687: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00005687 rm -rf conftest*
5688 # It does; now see whether it defined to BIG_ENDIAN or not.
5689cat > conftest.$ac_ext <<EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005690#line 5691 "configure"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00005691#include "confdefs.h"
5692#include <sys/types.h>
5693#include <sys/param.h>
5694int main() {
5695
5696#if BYTE_ORDER != BIG_ENDIAN
5697 not big endian
5698#endif
5699; return 0; }
5700EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005701if { (eval echo configure:5702: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00005702 rm -rf conftest*
5703 ac_cv_c_bigendian=yes
5704else
5705 echo "configure: failed program was:" >&5
5706 cat conftest.$ac_ext >&5
5707 rm -rf conftest*
5708 ac_cv_c_bigendian=no
5709fi
5710rm -f conftest*
5711else
5712 echo "configure: failed program was:" >&5
5713 cat conftest.$ac_ext >&5
5714fi
5715rm -f conftest*
5716if test $ac_cv_c_bigendian = unknown; then
5717if test "$cross_compiling" = yes; then
5718 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
5719else
5720 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005721#line 5722 "configure"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00005722#include "confdefs.h"
5723main () {
5724 /* Are we little or big endian? From Harbison&Steele. */
5725 union
5726 {
5727 long l;
5728 char c[sizeof (long)];
5729 } u;
5730 u.l = 1;
5731 exit (u.c[sizeof (long) - 1] == 1);
5732}
5733EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005734if { (eval echo configure:5735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00005735then
5736 ac_cv_c_bigendian=no
5737else
5738 echo "configure: failed program was:" >&5
5739 cat conftest.$ac_ext >&5
5740 rm -fr conftest*
5741 ac_cv_c_bigendian=yes
5742fi
5743rm -fr conftest*
5744fi
5745
5746fi
5747fi
5748
5749echo "$ac_t""$ac_cv_c_bigendian" 1>&6
5750if test $ac_cv_c_bigendian = yes; then
5751 cat >> confdefs.h <<\EOF
5752#define WORDS_BIGENDIAN 1
5753EOF
5754
5755fi
5756
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005757echo $ac_n "checking whether struct stat has a st_flags field""... $ac_c" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005758echo "configure:5759: checking whether struct stat has a st_flags field" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005759if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags'+set}'`\" = set"; then
5760 echo $ac_n "(cached) $ac_c" 1>&6
5761else
5762 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005763#line 5764 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005764#include "confdefs.h"
5765#include <sys/stat.h>
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005766int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005767struct stat stat; stat.st_flags = 0;
5768; return 0; }
5769EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005770if { (eval echo configure:5771: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005771 rm -rf conftest*
5772 e2fsprogs_cv_struct_st_flags=yes
5773else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005774 echo "configure: failed program was:" >&5
5775 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005776 rm -rf conftest*
5777 e2fsprogs_cv_struct_st_flags=no
5778fi
5779rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005780fi
5781
5782echo "$ac_t""$e2fsprogs_cv_struct_st_flags" 1>&6
5783if test "$e2fsprogs_cv_struct_st_flags" = yes; then
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00005784 echo $ac_n "checking whether st_flags field is useful""... $ac_c" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005785echo "configure:5786: checking whether st_flags field is useful" >&5
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00005786 if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags_immut'+set}'`\" = set"; then
5787 echo $ac_n "(cached) $ac_c" 1>&6
5788else
5789 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005790#line 5791 "configure"
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00005791#include "confdefs.h"
5792#include <sys/stat.h>
5793int main() {
5794struct stat stat; stat.st_flags |= UF_IMMUTABLE;
5795; return 0; }
5796EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005797if { (eval echo configure:5798: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00005798 rm -rf conftest*
5799 e2fsprogs_cv_struct_st_flags_immut=yes
5800else
5801 echo "configure: failed program was:" >&5
5802 cat conftest.$ac_ext >&5
5803 rm -rf conftest*
5804 e2fsprogs_cv_struct_st_flags_immut=no
5805fi
5806rm -f conftest*
5807fi
5808
5809 echo "$ac_t""$e2fsprogs_cv_struct_st_flags_immut" 1>&6
5810 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
5811 cat >> confdefs.h <<\EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005812#define HAVE_STAT_FLAGS 1
5813EOF
5814
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00005815 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005816fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005817for ac_func in chflags getrusage llseek lseek64 open64 getmntinfo strtoull strcasecmp srandom fchown mallinfo fdatasync strnlen strptime sysconf pathconf
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005818do
5819echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005820echo "configure:5821: checking for $ac_func" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005821if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5822 echo $ac_n "(cached) $ac_c" 1>&6
5823else
5824 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005825#line 5826 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005826#include "confdefs.h"
5827/* System header to define __stub macros and hopefully few prototypes,
5828 which can conflict with char $ac_func(); below. */
5829#include <assert.h>
5830/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005831/* We use char because int might match the return type of a gcc2
5832 builtin and then its argument prototype would still apply. */
5833char $ac_func();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005834
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005835int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005836
5837/* The GNU C library defines this for functions which it implements
5838 to always fail with ENOSYS. Some functions are actually named
5839 something starting with __ and the normal name is an alias. */
5840#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5841choke me
5842#else
5843$ac_func();
5844#endif
5845
5846; return 0; }
5847EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005848if { (eval echo configure:5849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005849 rm -rf conftest*
5850 eval "ac_cv_func_$ac_func=yes"
5851else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005852 echo "configure: failed program was:" >&5
5853 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005854 rm -rf conftest*
5855 eval "ac_cv_func_$ac_func=no"
5856fi
5857rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005858fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005859
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005860if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5861 echo "$ac_t""yes" 1>&6
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005862 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005863 cat >> confdefs.h <<EOF
5864#define $ac_tr_func 1
5865EOF
5866
5867else
5868 echo "$ac_t""no" 1>&6
5869fi
5870done
5871
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005872SOCKET_LIB=''
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005873echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005874echo "configure:5875: checking for socket in -lsocket" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005875ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
5876if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005877 echo $ac_n "(cached) $ac_c" 1>&6
5878else
5879 ac_save_LIBS="$LIBS"
5880LIBS="-lsocket $LIBS"
5881cat > conftest.$ac_ext <<EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005882#line 5883 "configure"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005883#include "confdefs.h"
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005884/* Override any gcc2 internal prototype to avoid an error. */
5885/* We use char because int might match the return type of a gcc2
5886 builtin and then its argument prototype would still apply. */
5887char socket();
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005888
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005889int main() {
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005890socket()
5891; return 0; }
5892EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005893if { (eval echo configure:5894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005894 rm -rf conftest*
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005895 eval "ac_cv_lib_$ac_lib_var=yes"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005896else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005897 echo "configure: failed program was:" >&5
5898 cat conftest.$ac_ext >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005899 rm -rf conftest*
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005900 eval "ac_cv_lib_$ac_lib_var=no"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005901fi
5902rm -f conftest*
5903LIBS="$ac_save_LIBS"
5904
5905fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005906if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005907 echo "$ac_t""yes" 1>&6
5908 SOCKET_LIB=-lsocket
5909else
5910 echo "$ac_t""no" 1>&6
5911fi
5912
5913
Theodore Ts'obbac86b2003-03-16 06:27:22 -05005914DLOPEN_LIB=''
5915echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005916echo "configure:5917: checking for dlopen in -ldl" >&5
Theodore Ts'obbac86b2003-03-16 06:27:22 -05005917ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
5918if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5919 echo $ac_n "(cached) $ac_c" 1>&6
5920else
5921 ac_save_LIBS="$LIBS"
5922LIBS="-ldl $LIBS"
5923cat > conftest.$ac_ext <<EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005924#line 5925 "configure"
Theodore Ts'obbac86b2003-03-16 06:27:22 -05005925#include "confdefs.h"
5926/* Override any gcc2 internal prototype to avoid an error. */
5927/* We use char because int might match the return type of a gcc2
5928 builtin and then its argument prototype would still apply. */
5929char dlopen();
5930
5931int main() {
5932dlopen()
5933; return 0; }
5934EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005935if { (eval echo configure:5936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'obbac86b2003-03-16 06:27:22 -05005936 rm -rf conftest*
5937 eval "ac_cv_lib_$ac_lib_var=yes"
5938else
5939 echo "configure: failed program was:" >&5
5940 cat conftest.$ac_ext >&5
5941 rm -rf conftest*
5942 eval "ac_cv_lib_$ac_lib_var=no"
5943fi
5944rm -f conftest*
5945LIBS="$ac_save_LIBS"
5946
5947fi
5948if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5949 echo "$ac_t""yes" 1>&6
5950 DLOPEN_LIB=-ldl
5951cat >> confdefs.h <<\EOF
5952#define HAVE_DLOPEN 1
5953EOF
5954
5955else
5956 echo "$ac_t""no" 1>&6
5957fi
5958
5959
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005960echo $ac_n "checking for optreset""... $ac_c" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005961echo "configure:5962: checking for optreset" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005962if eval "test \"`echo '$''{'ac_cv_have_optreset'+set}'`\" = set"; then
5963 echo $ac_n "(cached) $ac_c" 1>&6
5964else
5965 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005966#line 5967 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005967#include "confdefs.h"
5968#include <unistd.h>
5969EOF
5970if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5971 egrep "optreset" >/dev/null 2>&1; then
5972 rm -rf conftest*
5973 ac_cv_have_optreset=yes
5974else
5975 rm -rf conftest*
5976 ac_cv_have_optreset=no
5977fi
5978rm -f conftest*
5979
5980fi
5981echo "$ac_t""$ac_cv_have_optreset" 1>&6
5982if test $ac_cv_have_optreset = yes; then
5983 cat >> confdefs.h <<\EOF
5984#define HAVE_OPTRESET 1
5985EOF
5986
5987fi
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +00005988case "$host_os" in
5989linux*)
5990 cat >> confdefs.h <<\EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005991#define HAVE_EXT2_IOCTLS 1
5992EOF
5993
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +00005994 ;;
5995esac
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -04005996LINUX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -04005997CYGWIN_CMT="#"
5998UNIX_CMT=
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -04005999case "$host_os" in
6000linux*)
6001 LINUX_CMT=
6002 ;;
Theodore Ts'offf45482003-04-13 00:44:19 -04006003cygwin)
6004 CYGWIN_CMT=
6005 UNIX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -04006006 ;;
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -04006007esac
6008
Theodore Ts'offf45482003-04-13 00:44:19 -04006009
6010
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006011case "$host_os" in
Theodore Ts'o6c133521999-07-03 20:37:03 +00006012linux* | gnu*)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00006013 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
6014 root_prefix="";
6015 echo "On $host_os systems, root_prefix defaults to ''"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00006016 fi
6017 ;;
6018esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00006019case "$host_os" in
6020linux* | gnu*)
6021 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00006022 prefix="/usr";
6023 echo "On $host_os systems, prefix defaults to /usr"
Theodore Ts'obff61a72002-05-21 22:21:38 -04006024 if test "$mandir" = '${prefix}/man' ; then
6025 echo "...and mandir defaults to /usr/share/man"
6026 mandir=/usr/share/man
6027 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006028 fi
6029;;
6030esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00006031if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +00006032 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00006033 root_prefix="$ac_default_prefix"
6034 else
6035 root_prefix="$prefix"
6036 fi
Theodore Ts'ob5ffead2002-05-11 19:17:00 -04006037 root_bindir=$bindir
6038 root_sbindir=$sbindir
6039 root_libdir=$libdir
6040 root_sysconfdir=$sysconfdir
6041else
6042 root_bindir='${root_prefix}/bin'
6043 root_sbindir='${root_prefix}/sbin'
6044 root_libdir='${root_prefix}/lib'
6045 root_sysconfdir='${root_prefix}/etc'
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00006046fi
6047
Theodore Ts'ob5ffead2002-05-11 19:17:00 -04006048
6049
6050
6051
Theodore Ts'oae851481997-04-29 18:13:24 +00006052echo $ac_n "checking whether linker accepts -static""... $ac_c" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006053echo "configure:6054: checking whether linker accepts -static" >&5
Theodore Ts'oae851481997-04-29 18:13:24 +00006054if eval "test \"`echo '$''{'ac_cv_e2fsprogs_use_static'+set}'`\" = set"; then
6055 echo $ac_n "(cached) $ac_c" 1>&6
6056else
6057 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
6058cat > conftest.$ac_ext <<EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006059#line 6060 "configure"
Theodore Ts'oae851481997-04-29 18:13:24 +00006060#include "confdefs.h"
6061#include <stdio.h>
6062int main() {
6063fflush(stdout);
6064; return 0; }
6065EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006066if { (eval echo configure:6067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oae851481997-04-29 18:13:24 +00006067 rm -rf conftest*
6068 ac_cv_e2fsprogs_use_static=yes
6069else
6070 echo "configure: failed program was:" >&5
6071 cat conftest.$ac_ext >&5
6072 rm -rf conftest*
6073 ac_cv_e2fsprogs_use_static=no
6074fi
6075rm -f conftest*
6076LDFLAGS=$SAVE_LDFLAGS
6077fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006078
Theodore Ts'odefde781999-01-04 07:39:19 +00006079case "$host_os" in
6080solaris2.*)
6081 ac_cv_e2fsprogs_use_static=no
6082;;
6083esac
Theodore Ts'oae851481997-04-29 18:13:24 +00006084echo "$ac_t""$ac_cv_e2fsprogs_use_static" 1>&6
Theodore Ts'o74becf31997-04-26 14:37:06 +00006085LDFLAG_STATIC=
Theodore Ts'oae851481997-04-29 18:13:24 +00006086if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006087 LDFLAG_STATIC=-static
Theodore Ts'oae851481997-04-29 18:13:24 +00006088fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006089
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006090SS_DIR=`cd ${srcdir}/lib/ss; pwd`
6091ET_DIR=`cd ${srcdir}/lib/et; pwd`
6092
6093
6094if test "$cross_compiling" = yes ; then
6095 DO_TEST_SUITE=
6096else
6097 DO_TEST_SUITE=check
6098fi
6099
6100test -d lib || mkdir lib
6101test -d include || mkdir include
6102test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +00006103test -d include/asm || mkdir include/asm
Theodore Ts'obff0cc92003-03-23 01:37:53 -05006104for i in MCONFIG Makefile e2fsprogs.spec \
6105 util/Makefile util/subst.conf util/gen-tarball \
6106 lib/et/Makefile lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -05006107 lib/uuid/Makefile lib/uuid/uuid_types.h \
6108 lib/blkid/Makefile lib/blkid/blkid_types.h \
6109 lib/evms/Makefile misc/Makefile ext2ed/Makefile e2fsck/Makefile \
6110 debugfs/Makefile tests/Makefile tests/progs/Makefile \
6111 resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do
6112 if test -d `dirname ${srcdir}/$i` ; then
6113 outlist="$outlist $i"
6114 fi
6115done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006116trap '' 1 2 15
6117cat > confcache <<\EOF
6118# This file is a shell script that caches the results of configure
6119# tests run on this system so they can be shared between configure
6120# scripts and configure runs. It is not useful on other systems.
6121# If it contains results you don't want to keep, you may remove or edit it.
6122#
6123# By default, configure uses ./config.cache as the cache file,
6124# creating it if it does not exist already. You can give configure
6125# the --cache-file=FILE option to use a different cache file; that is
6126# what configure does when it calls configure scripts in
6127# subdirectories, so they share the cache.
6128# Giving --cache-file=/dev/null disables caching, for debugging configure.
6129# config.status only pays attention to the cache file if you give it the
6130# --recheck option to rerun configure.
6131#
6132EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00006133# The following way of writing the cache mishandles newlines in values,
6134# but we know of no workaround that is simple, portable, and efficient.
6135# So, don't put newlines in cache variables' values.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006136# Ultrix sh set writes to stderr and can't be redirected directly,
6137# and sets the high bit in the cache file unless we assign to the vars.
6138(set) 2>&1 |
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00006139 case `(ac_space=' '; set | grep ac_space) 2>&1` in
Theodore Ts'o21c84b71997-04-29 16:15:03 +00006140 *ac_space=\ *)
6141 # `set' does not quote correctly, so add quotes (double-quote substitution
6142 # turns \\\\ into \\, and sed turns \\ into \).
6143 sed -n \
6144 -e "s/'/'\\\\''/g" \
6145 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6146 ;;
6147 *)
6148 # `set' quotes correctly as required by POSIX, so do not add quotes.
6149 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6150 ;;
6151 esac >> confcache
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006152if cmp -s $cache_file confcache; then
6153 :
6154else
6155 if test -w $cache_file; then
6156 echo "updating cache $cache_file"
6157 cat confcache > $cache_file
6158 else
6159 echo "not updating unwritable cache $cache_file"
6160 fi
6161fi
6162rm -f confcache
6163
6164trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6165
6166test "x$prefix" = xNONE && prefix=$ac_default_prefix
6167# Let make expand exec_prefix.
6168test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6169
6170# Any assignment to VPATH causes Sun make to only execute
6171# the first set of double-colon rules, so remove it if not needed.
6172# If there is a colon in the path, we need to keep it.
6173if test "x$srcdir" = x.; then
6174 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6175fi
6176
6177trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6178
6179# Transform confdefs.h into DEFS.
6180# Protect against shell expansion while executing Makefile rules.
6181# Protect against Makefile macro expansion.
6182cat > conftest.defs <<\EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00006183s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006184s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
6185s%\[%\\&%g
6186s%\]%\\&%g
6187s%\$%$$%g
6188EOF
6189DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
6190rm -f conftest.defs
6191
6192
6193# Without the "./", some shells look in PATH for config.status.
6194: ${CONFIG_STATUS=./config.status}
6195
6196echo creating $CONFIG_STATUS
6197rm -f $CONFIG_STATUS
6198cat > $CONFIG_STATUS <<EOF
6199#! /bin/sh
6200# Generated automatically by configure.
6201# Run this file to recreate the current configuration.
6202# This directory was configured as follows,
6203# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6204#
6205# $0 $ac_configure_args
6206#
6207# Compiler output produced by configure, useful for debugging
6208# configure, is in ./config.log if it exists.
6209
6210ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6211for ac_option
6212do
6213 case "\$ac_option" in
6214 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6215 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6216 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6217 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00006218 echo "$CONFIG_STATUS generated by autoconf version 2.13"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006219 exit 0 ;;
6220 -help | --help | --hel | --he | --h)
6221 echo "\$ac_cs_usage"; exit 0 ;;
6222 *) echo "\$ac_cs_usage"; exit 1 ;;
6223 esac
6224done
6225
6226ac_given_srcdir=$srcdir
6227ac_given_INSTALL="$INSTALL"
6228
Theodore Ts'o94ba8c72003-03-02 02:07:14 -05006229trap 'rm -fr `echo "$outlist" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
Theodore Ts'o21c84b71997-04-29 16:15:03 +00006230EOF
6231cat >> $CONFIG_STATUS <<EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006232
Theodore Ts'o21c84b71997-04-29 16:15:03 +00006233# Protect against being on the right side of a sed subst in config.status.
6234sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6235 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006236$ac_vpsub
6237$extrasub
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00006238s%@SHELL@%$SHELL%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006239s%@CFLAGS@%$CFLAGS%g
6240s%@CPPFLAGS@%$CPPFLAGS%g
6241s%@CXXFLAGS@%$CXXFLAGS%g
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00006242s%@FFLAGS@%$FFLAGS%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006243s%@DEFS@%$DEFS%g
6244s%@LDFLAGS@%$LDFLAGS%g
6245s%@LIBS@%$LIBS%g
6246s%@exec_prefix@%$exec_prefix%g
6247s%@prefix@%$prefix%g
6248s%@program_transform_name@%$program_transform_name%g
Theodore Ts'o21c84b71997-04-29 16:15:03 +00006249s%@bindir@%$bindir%g
6250s%@sbindir@%$sbindir%g
6251s%@libexecdir@%$libexecdir%g
6252s%@datadir@%$datadir%g
6253s%@sysconfdir@%$sysconfdir%g
6254s%@sharedstatedir@%$sharedstatedir%g
6255s%@localstatedir@%$localstatedir%g
6256s%@libdir@%$libdir%g
6257s%@includedir@%$includedir%g
6258s%@oldincludedir@%$oldincludedir%g
6259s%@infodir@%$infodir%g
6260s%@mandir@%$mandir%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006261/@MCONFIG@/r $MCONFIG
6262s%@MCONFIG@%%g
Theodore Ts'o74becf31997-04-26 14:37:06 +00006263s%@E2FSPROGS_YEAR@%$E2FSPROGS_YEAR%g
6264s%@E2FSPROGS_MONTH@%$E2FSPROGS_MONTH%g
Theodore Ts'obff0cc92003-03-23 01:37:53 -05006265s%@E2FSPROGS_DAY@%$E2FSPROGS_DAY%g
Theodore Ts'o74becf31997-04-26 14:37:06 +00006266s%@E2FSPROGS_VERSION@%$E2FSPROGS_VERSION%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00006267s%@host@%$host%g
6268s%@host_alias@%$host_alias%g
6269s%@host_cpu@%$host_cpu%g
6270s%@host_vendor@%$host_vendor%g
6271s%@host_os@%$host_os%g
Theodore Ts'o74becf31997-04-26 14:37:06 +00006272s%@CC@%$CC%g
6273s%@LD@%$LD%g
Theodore Ts'of8bd9801999-10-26 04:19:45 +00006274s%@CPP@%$CPP%g
6275s%@LINUX_INCLUDE@%$LINUX_INCLUDE%g
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04006276s%@HTREE_CMT@%$HTREE_CMT%g
6277s%@HTREE_CLR_CMT@%$HTREE_CLR_CMT%g
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05006278s%@EVMS_ABI_CODE@%$EVMS_ABI_CODE%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006279s%@DLL_CMT@%$DLL_CMT%g
6280/@MAKEFILE_DLL@/r $MAKEFILE_DLL
6281s%@MAKEFILE_DLL@%%g
6282s%@ELF_CMT@%$ELF_CMT%g
6283/@MAKEFILE_ELF@/r $MAKEFILE_ELF
6284s%@MAKEFILE_ELF@%%g
6285s%@BSDLIB_CMT@%$BSDLIB_CMT%g
6286/@MAKEFILE_BSDLIB@/r $MAKEFILE_BSDLIB
6287s%@MAKEFILE_BSDLIB@%%g
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00006288s%@PROFILE_CMT@%$PROFILE_CMT%g
6289/@MAKEFILE_PROFILE@/r $MAKEFILE_PROFILE
6290s%@MAKEFILE_PROFILE@%%g
6291s%@CHECKER_CMT@%$CHECKER_CMT%g
6292/@MAKEFILE_CHECKER@/r $MAKEFILE_CHECKER
6293s%@MAKEFILE_CHECKER@%%g
6294s%@LIB_EXT@%$LIB_EXT%g
6295s%@STATIC_LIB_EXT@%$STATIC_LIB_EXT%g
6296s%@PROFILED_LIB_EXT@%$PROFILED_LIB_EXT%g
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05006297s%@SWAPFS_CMT@%$SWAPFS_CMT%g
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00006298s%@DEBUGFS_CMT@%$DEBUGFS_CMT%g
6299s%@IMAGER_CMT@%$IMAGER_CMT%g
6300s%@RESIZER_CMT@%$RESIZER_CMT%g
6301s%@E2FSCK_TYPE@%$E2FSCK_TYPE%g
6302s%@FSCK_PROG@%$FSCK_PROG%g
6303s%@FSCK_MAN@%$FSCK_MAN%g
6304/@MAKEFILE_LIBRARY@/r $MAKEFILE_LIBRARY
6305s%@MAKEFILE_LIBRARY@%%g
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006306s%@PACKAGE@%$PACKAGE%g
6307s%@VERSION@%$VERSION%g
6308s%@SET_MAKE@%$SET_MAKE%g
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006309s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6310s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6311s%@INSTALL_DATA@%$INSTALL_DATA%g
6312s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006313s%@MSGFMT@%$MSGFMT%g
6314s%@GMSGFMT@%$GMSGFMT%g
6315s%@XGETTEXT@%$XGETTEXT%g
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006316s%@MSGMERGE@%$MSGMERGE%g
6317s%@RANLIB@%$RANLIB%g
6318s%@ALLOCA@%$ALLOCA%g
6319s%@GLIBC21@%$GLIBC21%g
6320s%@LIBICONV@%$LIBICONV%g
6321s%@LTLIBICONV@%$LTLIBICONV%g
6322s%@INTLBISON@%$INTLBISON%g
6323s%@USE_NLS@%$USE_NLS%g
6324s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006325s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006326s%@CATOBJEXT@%$CATOBJEXT%g
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006327s%@INTLOBJS@%$INTLOBJS%g
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006328s%@DATADIRNAME@%$DATADIRNAME%g
6329s%@INSTOBJEXT@%$INSTOBJEXT%g
6330s%@GENCAT@%$GENCAT%g
6331s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
6332s%@INTLLIBS@%$INTLLIBS%g
6333s%@LIBINTL@%$LIBINTL%g
6334s%@LTLIBINTL@%$LTLIBINTL%g
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006335s%@POSUB@%$POSUB%g
Theodore Ts'o74becf31997-04-26 14:37:06 +00006336s%@BINARY_TYPE@%$BINARY_TYPE%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006337s%@LN@%$LN%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00006338s%@LN_S@%$LN_S%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006339s%@MV@%$MV%g
6340s%@CP@%$CP%g
6341s%@RM@%$RM%g
6342s%@CHMOD@%$CHMOD%g
6343s%@AWK@%$AWK%g
6344s%@SED@%$SED%g
Theodore Ts'o9d564f71999-07-03 20:25:58 +00006345s%@PERL@%$PERL%g
Theodore Ts'o250f79f2001-05-19 22:02:22 +00006346s%@LDCONFIG@%$LDCONFIG%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006347s%@build@%$build%g
6348s%@build_alias@%$build_alias%g
6349s%@build_cpu@%$build_cpu%g
6350s%@build_vendor@%$build_vendor%g
6351s%@build_os@%$build_os%g
6352s%@AR@%$AR%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006353s%@STRIP@%$STRIP%g
Theodore Ts'o6c133521999-07-03 20:37:03 +00006354s%@BUILD_CC@%$BUILD_CC%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006355s%@SIZEOF_SHORT@%$SIZEOF_SHORT%g
6356s%@SIZEOF_INT@%$SIZEOF_INT%g
6357s%@SIZEOF_LONG@%$SIZEOF_LONG%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00006358s%@SIZEOF_LONG_LONG@%$SIZEOF_LONG_LONG%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00006359s%@SOCKET_LIB@%$SOCKET_LIB%g
Theodore Ts'obbac86b2003-03-16 06:27:22 -05006360s%@DLOPEN_LIB@%$DLOPEN_LIB%g
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -04006361s%@LINUX_CMT@%$LINUX_CMT%g
Theodore Ts'offf45482003-04-13 00:44:19 -04006362s%@CYGWIN_CMT@%$CYGWIN_CMT%g
6363s%@UNIX_CMT@%$UNIX_CMT%g
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00006364s%@root_prefix@%$root_prefix%g
Theodore Ts'ob5ffead2002-05-11 19:17:00 -04006365s%@root_bindir@%$root_bindir%g
6366s%@root_sbindir@%$root_sbindir%g
6367s%@root_libdir@%$root_libdir%g
6368s%@root_sysconfdir@%$root_sysconfdir%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00006369s%@LDFLAG_STATIC@%$LDFLAG_STATIC%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006370s%@SS_DIR@%$SS_DIR%g
6371s%@ET_DIR@%$ET_DIR%g
6372s%@DO_TEST_SUITE@%$DO_TEST_SUITE%g
6373
6374CEOF
6375EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00006376
6377cat >> $CONFIG_STATUS <<\EOF
6378
6379# Split the substitutions into bite-sized pieces for seds with
6380# small command number limits, like on Digital OSF/1 and HP-UX.
6381ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
6382ac_file=1 # Number of current file.
6383ac_beg=1 # First line for current file.
6384ac_end=$ac_max_sed_cmds # Line after last line for current file.
6385ac_more_lines=:
6386ac_sed_cmds=""
6387while $ac_more_lines; do
6388 if test $ac_beg -gt 1; then
6389 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
6390 else
6391 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
6392 fi
6393 if test ! -s conftest.s$ac_file; then
6394 ac_more_lines=false
6395 rm -f conftest.s$ac_file
6396 else
6397 if test -z "$ac_sed_cmds"; then
6398 ac_sed_cmds="sed -f conftest.s$ac_file"
6399 else
6400 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
6401 fi
6402 ac_file=`expr $ac_file + 1`
6403 ac_beg=$ac_end
6404 ac_end=`expr $ac_end + $ac_max_sed_cmds`
6405 fi
6406done
6407if test -z "$ac_sed_cmds"; then
6408 ac_sed_cmds=cat
6409fi
6410EOF
6411
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006412cat >> $CONFIG_STATUS <<EOF
6413
Theodore Ts'o94ba8c72003-03-02 02:07:14 -05006414CONFIG_FILES=\${CONFIG_FILES-"$outlist"}
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006415EOF
6416cat >> $CONFIG_STATUS <<\EOF
6417for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
Theodore Ts'o21c84b71997-04-29 16:15:03 +00006418 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006419 case "$ac_file" in
Theodore Ts'o21c84b71997-04-29 16:15:03 +00006420 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006421 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6422 *) ac_file_in="${ac_file}.in" ;;
6423 esac
6424
Theodore Ts'o21c84b71997-04-29 16:15:03 +00006425 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006426
6427 # Remove last slash and all that follows it. Not all systems have dirname.
6428 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6429 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6430 # The file is in a subdirectory.
6431 test ! -d "$ac_dir" && mkdir "$ac_dir"
6432 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
6433 # A "../" for each directory in $ac_dir_suffix.
6434 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6435 else
6436 ac_dir_suffix= ac_dots=
6437 fi
6438
6439 case "$ac_given_srcdir" in
6440 .) srcdir=.
6441 if test -z "$ac_dots"; then top_srcdir=.
6442 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6443 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
6444 *) # Relative path.
6445 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6446 top_srcdir="$ac_dots$ac_given_srcdir" ;;
6447 esac
6448
6449 case "$ac_given_INSTALL" in
6450 [/$]*) INSTALL="$ac_given_INSTALL" ;;
6451 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6452 esac
Theodore Ts'o21c84b71997-04-29 16:15:03 +00006453
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006454 echo creating "$ac_file"
6455 rm -f "$ac_file"
6456 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6457 case "$ac_file" in
6458 *Makefile*) ac_comsub="1i\\
6459# $configure_input" ;;
6460 *) ac_comsub= ;;
6461 esac
Theodore Ts'o21c84b71997-04-29 16:15:03 +00006462
6463 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006464 sed -e "$ac_comsub
6465s%@configure_input@%$configure_input%g
6466s%@srcdir@%$srcdir%g
6467s%@top_srcdir@%$top_srcdir%g
6468s%@INSTALL@%$INSTALL%g
Theodore Ts'o21c84b71997-04-29 16:15:03 +00006469" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006470fi; done
Theodore Ts'o21c84b71997-04-29 16:15:03 +00006471rm -f conftest.s*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006472
Theodore Ts'o21c84b71997-04-29 16:15:03 +00006473EOF
6474cat >> $CONFIG_STATUS <<EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006475# Capture the value of obsolete ALL_LINGUAS because we need it to compute
6476 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
6477 # from automake.
6478 eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
6479 # Capture the value of LINGUAS because we need it to compute CATALOGS.
6480 LINGUAS="${LINGUAS-%UNSET%}"
6481
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006482
Theodore Ts'o21c84b71997-04-29 16:15:03 +00006483EOF
6484cat >> $CONFIG_STATUS <<\EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006485
6486 for ac_file in $CONFIG_FILES; do
6487 # Support "outfile[:infile[:infile...]]"
6488 case "$ac_file" in
6489 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006490 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006491 # PO directories have a Makefile.in generated from Makefile.in.in.
6492 case "$ac_file" in */Makefile.in)
6493 # Adjust a relative srcdir.
6494 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
6495 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
6496 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
6497 # In autoconf-2.13 it is called $ac_given_srcdir.
6498 # In autoconf-2.50 it is called $srcdir.
6499 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
6500 case "$ac_given_srcdir" in
6501 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
6502 /*) top_srcdir="$ac_given_srcdir" ;;
6503 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
6504 esac
6505 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
6506 rm -f "$ac_dir/POTFILES"
6507 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
6508 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
6509 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
6510 # on $ac_dir but don't depend on user-specified configuration
6511 # parameters.
6512 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
6513 # The LINGUAS file contains the set of available languages.
6514 if test -n "$ALL_LINGUAS"; then
6515 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
6516 fi
6517 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
6518 # Hide the ALL_LINGUAS assigment from automake.
6519 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
6520 fi
6521 case "$ac_given_srcdir" in
6522 .) srcdirpre= ;;
6523 *) srcdirpre='$(srcdir)/' ;;
6524 esac
6525 POFILES=
6526 GMOFILES=
6527 UPDATEPOFILES=
6528 DUMMYPOFILES=
6529 for lang in $ALL_LINGUAS; do
6530 POFILES="$POFILES $srcdirpre$lang.po"
6531 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
6532 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
6533 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
6534 done
6535 # CATALOGS depends on both $ac_dir and the user's LINGUAS
6536 # environment variable.
6537 INST_LINGUAS=
6538 if test -n "$ALL_LINGUAS"; then
6539 for presentlang in $ALL_LINGUAS; do
6540 useit=no
6541 if test "%UNSET%" != "$LINGUAS"; then
6542 desiredlanguages="$LINGUAS"
6543 else
6544 desiredlanguages="$ALL_LINGUAS"
6545 fi
6546 for desiredlang in $desiredlanguages; do
6547 # Use the presentlang catalog if desiredlang is
6548 # a. equal to presentlang, or
6549 # b. a variant of presentlang (because in this case,
6550 # presentlang can be used as a fallback for messages
6551 # which are not translated in the desiredlang catalog).
6552 case "$desiredlang" in
6553 "$presentlang"*) useit=yes;;
6554 esac
6555 done
6556 if test $useit = yes; then
6557 INST_LINGUAS="$INST_LINGUAS $presentlang"
6558 fi
6559 done
6560 fi
6561 CATALOGS=
6562 if test -n "$INST_LINGUAS"; then
6563 for lang in $INST_LINGUAS; do
6564 CATALOGS="$CATALOGS $lang.gmo"
6565 done
6566 fi
6567 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
6568 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"
6569 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
6570 if test -f "$f"; then
6571 case "$f" in
6572 *.orig | *.bak | *~) ;;
6573 *) cat "$f" >> "$ac_dir/Makefile" ;;
6574 esac
6575 fi
6576 done
6577 fi
6578 ;;
6579 esac
6580 done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006581
6582exit 0
6583EOF
6584chmod +x $CONFIG_STATUS
6585rm -fr confdefs* $ac_clean_files
6586test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
6587