blob: 597087878862f06a1317d26a7513d70984b9f0fa [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'off6dbcc2002-05-24 22:44:42 -040031 --enable-old-evms use EVMS 1.0 ABI (instead of EVMS 1.1)"
32ac_help="$ac_help
Theodore Ts'oa4d09611997-04-29 14:28:00 +000033 --enable-dll-shlibs select DLL libraries"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000034ac_help="$ac_help
Theodore Ts'oa4d09611997-04-29 14:28:00 +000035 --enable-elf-shlibs select ELF shared libraries"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000036ac_help="$ac_help
Theodore Ts'oa4d09611997-04-29 14:28:00 +000037 --enable-bsd-shlibs select BSD shared libraries"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000038ac_help="$ac_help
Theodore Ts'ocdf186e2001-06-13 22:16:47 +000039 --enable-profile build profiling libraries"
40ac_help="$ac_help
41 --enable-checker build checker libraries"
42ac_help="$ac_help
Theodore Ts'o80bfaa32000-08-18 15:08:37 +000043 --enable-jfs-debug enable journal debugging"
44ac_help="$ac_help
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000045 --disable-swapfs disable support of legacy byte-swapped filesystems"
46ac_help="$ac_help
Theodore Ts'ocdf186e2001-06-13 22:16:47 +000047 --disable-debugfs disable support of debugfs program"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000048ac_help="$ac_help
Theodore Ts'ocdf186e2001-06-13 22:16:47 +000049 --disable-imager disable support of e2image program"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000050ac_help="$ac_help
Theodore Ts'ocdf186e2001-06-13 22:16:47 +000051 --disable-resizer disable support of e2resize program"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000052ac_help="$ac_help
Theodore Ts'oa4d09611997-04-29 14:28:00 +000053 --enable-dynamic-e2fsck build e2fsck dynamically"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000054ac_help="$ac_help
55 --enable-fsck build fsck wrapper program"
56ac_help="$ac_help
57 --enable-old-bitops Use old (non-standard but native) bitmask operations"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +000058ac_help="$ac_help
59 --enable-nls Turn on Native Language Support"
60ac_help="$ac_help
61 --with-included-gettext use the GNU gettext library included here"
62ac_help="$ac_help
63 --with-catgets use catgets functions if available"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000064
65# Initialize some variables set by options.
66# The variables have the same names as the options, with
67# dashes changed to underlines.
68build=NONE
69cache_file=./config.cache
70exec_prefix=NONE
71host=NONE
72no_create=
73nonopt=NONE
74no_recursion=
75prefix=NONE
76program_prefix=NONE
77program_suffix=NONE
78program_transform_name=s,x,x,
79silent=
80site=
81srcdir=
82target=NONE
83verbose=
84x_includes=NONE
85x_libraries=NONE
Theodore Ts'o21c84b71997-04-29 16:15:03 +000086bindir='${exec_prefix}/bin'
87sbindir='${exec_prefix}/sbin'
88libexecdir='${exec_prefix}/libexec'
89datadir='${prefix}/share'
90sysconfdir='${prefix}/etc'
91sharedstatedir='${prefix}/com'
92localstatedir='${prefix}/var'
93libdir='${exec_prefix}/lib'
94includedir='${prefix}/include'
95oldincludedir='/usr/include'
96infodir='${prefix}/info'
97mandir='${prefix}/man'
Theodore Ts'o50e1e101997-04-26 13:58:21 +000098
99# Initialize some other variables.
100subdirs=
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000101MFLAGS= MAKEFLAGS=
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000102SHELL=${CONFIG_SHELL-/bin/sh}
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000103# Maximum number of lines to put in a shell here document.
104ac_max_here_lines=12
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000105
106ac_prev=
107for ac_option
108do
109
110 # If the previous option needs an argument, assign it.
111 if test -n "$ac_prev"; then
112 eval "$ac_prev=\$ac_option"
113 ac_prev=
114 continue
115 fi
116
117 case "$ac_option" in
118 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
119 *) ac_optarg= ;;
120 esac
121
122 # Accept the important Cygnus configure options, so we can diagnose typos.
123
124 case "$ac_option" in
125
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000126 -bindir | --bindir | --bindi | --bind | --bin | --bi)
127 ac_prev=bindir ;;
128 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
129 bindir="$ac_optarg" ;;
130
131 -build | --build | --buil | --bui | --bu)
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000132 ac_prev=build ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000133 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000134 build="$ac_optarg" ;;
135
136 -cache-file | --cache-file | --cache-fil | --cache-fi \
137 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
138 ac_prev=cache_file ;;
139 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
140 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
141 cache_file="$ac_optarg" ;;
142
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000143 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
144 ac_prev=datadir ;;
145 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
146 | --da=*)
147 datadir="$ac_optarg" ;;
148
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000149 -disable-* | --disable-*)
150 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
151 # Reject names that are not valid shell variable names.
152 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
153 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
154 fi
155 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
156 eval "enable_${ac_feature}=no" ;;
157
158 -enable-* | --enable-*)
159 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
160 # Reject names that are not valid shell variable names.
161 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
162 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
163 fi
164 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
165 case "$ac_option" in
166 *=*) ;;
167 *) ac_optarg=yes ;;
168 esac
169 eval "enable_${ac_feature}='$ac_optarg'" ;;
170
171 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
172 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
173 | --exec | --exe | --ex)
174 ac_prev=exec_prefix ;;
175 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
176 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
177 | --exec=* | --exe=* | --ex=*)
178 exec_prefix="$ac_optarg" ;;
179
180 -gas | --gas | --ga | --g)
181 # Obsolete; use --with-gas.
182 with_gas=yes ;;
183
184 -help | --help | --hel | --he)
185 # Omit some internal or obsolete options to make the list less imposing.
186 # This message is too long to be a string in the A/UX 3.1 sh.
187 cat << EOF
188Usage: configure [options] [host]
189Options: [defaults in brackets after descriptions]
190Configuration:
191 --cache-file=FILE cache test results in FILE
192 --help print this message
193 --no-create do not create output files
194 --quiet, --silent do not print \`checking...' messages
195 --version print the version of autoconf that created configure
196Directory and file names:
197 --prefix=PREFIX install architecture-independent files in PREFIX
198 [$ac_default_prefix]
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000199 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000200 [same as prefix]
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000201 --bindir=DIR user executables in DIR [EPREFIX/bin]
202 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
203 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
204 --datadir=DIR read-only architecture-independent data in DIR
205 [PREFIX/share]
206 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
207 --sharedstatedir=DIR modifiable architecture-independent data in DIR
208 [PREFIX/com]
209 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
210 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
211 --includedir=DIR C header files in DIR [PREFIX/include]
212 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
213 --infodir=DIR info documentation in DIR [PREFIX/info]
214 --mandir=DIR man documentation in DIR [PREFIX/man]
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000215 --srcdir=DIR find the sources in DIR [configure dir or ..]
216 --program-prefix=PREFIX prepend PREFIX to installed program names
217 --program-suffix=SUFFIX append SUFFIX to installed program names
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000218 --program-transform-name=PROGRAM
219 run sed PROGRAM on installed program names
220EOF
221 cat << EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000222Host type:
223 --build=BUILD configure for building on BUILD [BUILD=HOST]
224 --host=HOST configure for HOST [guessed]
225 --target=TARGET configure for TARGET [TARGET=HOST]
226Features and packages:
227 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
228 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
229 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
230 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
231 --x-includes=DIR X include files are in DIR
232 --x-libraries=DIR X library files are in DIR
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000233EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000234 if test -n "$ac_help"; then
235 echo "--enable and --with options recognized:$ac_help"
236 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000237 exit 0 ;;
238
239 -host | --host | --hos | --ho)
240 ac_prev=host ;;
241 -host=* | --host=* | --hos=* | --ho=*)
242 host="$ac_optarg" ;;
243
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000244 -includedir | --includedir | --includedi | --included | --include \
245 | --includ | --inclu | --incl | --inc)
246 ac_prev=includedir ;;
247 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
248 | --includ=* | --inclu=* | --incl=* | --inc=*)
249 includedir="$ac_optarg" ;;
250
251 -infodir | --infodir | --infodi | --infod | --info | --inf)
252 ac_prev=infodir ;;
253 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
254 infodir="$ac_optarg" ;;
255
256 -libdir | --libdir | --libdi | --libd)
257 ac_prev=libdir ;;
258 -libdir=* | --libdir=* | --libdi=* | --libd=*)
259 libdir="$ac_optarg" ;;
260
261 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
262 | --libexe | --libex | --libe)
263 ac_prev=libexecdir ;;
264 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
265 | --libexe=* | --libex=* | --libe=*)
266 libexecdir="$ac_optarg" ;;
267
268 -localstatedir | --localstatedir | --localstatedi | --localstated \
269 | --localstate | --localstat | --localsta | --localst \
270 | --locals | --local | --loca | --loc | --lo)
271 ac_prev=localstatedir ;;
272 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
273 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
274 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
275 localstatedir="$ac_optarg" ;;
276
277 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
278 ac_prev=mandir ;;
279 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
280 mandir="$ac_optarg" ;;
281
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000282 -nfp | --nfp | --nf)
283 # Obsolete; use --without-fp.
284 with_fp=no ;;
285
286 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
287 | --no-cr | --no-c)
288 no_create=yes ;;
289
290 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
291 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
292 no_recursion=yes ;;
293
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000294 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
295 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
296 | --oldin | --oldi | --old | --ol | --o)
297 ac_prev=oldincludedir ;;
298 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
299 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
300 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
301 oldincludedir="$ac_optarg" ;;
302
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000303 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
304 ac_prev=prefix ;;
305 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
306 prefix="$ac_optarg" ;;
307
308 -program-prefix | --program-prefix | --program-prefi | --program-pref \
309 | --program-pre | --program-pr | --program-p)
310 ac_prev=program_prefix ;;
311 -program-prefix=* | --program-prefix=* | --program-prefi=* \
312 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
313 program_prefix="$ac_optarg" ;;
314
315 -program-suffix | --program-suffix | --program-suffi | --program-suff \
316 | --program-suf | --program-su | --program-s)
317 ac_prev=program_suffix ;;
318 -program-suffix=* | --program-suffix=* | --program-suffi=* \
319 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
320 program_suffix="$ac_optarg" ;;
321
322 -program-transform-name | --program-transform-name \
323 | --program-transform-nam | --program-transform-na \
324 | --program-transform-n | --program-transform- \
325 | --program-transform | --program-transfor \
326 | --program-transfo | --program-transf \
327 | --program-trans | --program-tran \
328 | --progr-tra | --program-tr | --program-t)
329 ac_prev=program_transform_name ;;
330 -program-transform-name=* | --program-transform-name=* \
331 | --program-transform-nam=* | --program-transform-na=* \
332 | --program-transform-n=* | --program-transform-=* \
333 | --program-transform=* | --program-transfor=* \
334 | --program-transfo=* | --program-transf=* \
335 | --program-trans=* | --program-tran=* \
336 | --progr-tra=* | --program-tr=* | --program-t=*)
337 program_transform_name="$ac_optarg" ;;
338
339 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
340 | -silent | --silent | --silen | --sile | --sil)
341 silent=yes ;;
342
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000343 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
344 ac_prev=sbindir ;;
345 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
346 | --sbi=* | --sb=*)
347 sbindir="$ac_optarg" ;;
348
349 -sharedstatedir | --sharedstatedir | --sharedstatedi \
350 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
351 | --sharedst | --shareds | --shared | --share | --shar \
352 | --sha | --sh)
353 ac_prev=sharedstatedir ;;
354 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
355 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
356 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
357 | --sha=* | --sh=*)
358 sharedstatedir="$ac_optarg" ;;
359
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000360 -site | --site | --sit)
361 ac_prev=site ;;
362 -site=* | --site=* | --sit=*)
363 site="$ac_optarg" ;;
364
365 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
366 ac_prev=srcdir ;;
367 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
368 srcdir="$ac_optarg" ;;
369
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000370 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
371 | --syscon | --sysco | --sysc | --sys | --sy)
372 ac_prev=sysconfdir ;;
373 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
374 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
375 sysconfdir="$ac_optarg" ;;
376
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000377 -target | --target | --targe | --targ | --tar | --ta | --t)
378 ac_prev=target ;;
379 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
380 target="$ac_optarg" ;;
381
382 -v | -verbose | --verbose | --verbos | --verbo | --verb)
383 verbose=yes ;;
384
385 -version | --version | --versio | --versi | --vers)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000386 echo "configure generated by autoconf version 2.13"
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000387 exit 0 ;;
388
389 -with-* | --with-*)
390 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
391 # Reject names that are not valid shell variable names.
392 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
393 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
394 fi
395 ac_package=`echo $ac_package| sed 's/-/_/g'`
396 case "$ac_option" in
397 *=*) ;;
398 *) ac_optarg=yes ;;
399 esac
400 eval "with_${ac_package}='$ac_optarg'" ;;
401
402 -without-* | --without-*)
403 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
404 # Reject names that are not valid shell variable names.
405 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
406 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
407 fi
408 ac_package=`echo $ac_package| sed 's/-/_/g'`
409 eval "with_${ac_package}=no" ;;
410
411 --x)
412 # Obsolete; use --with-x.
413 with_x=yes ;;
414
415 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
416 | --x-incl | --x-inc | --x-in | --x-i)
417 ac_prev=x_includes ;;
418 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
419 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
420 x_includes="$ac_optarg" ;;
421
422 -x-libraries | --x-libraries | --x-librarie | --x-librari \
423 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
424 ac_prev=x_libraries ;;
425 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
426 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
427 x_libraries="$ac_optarg" ;;
428
429 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
430 ;;
431
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000432 *)
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000433 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
434 echo "configure: warning: $ac_option: invalid host type" 1>&2
435 fi
436 if test "x$nonopt" != xNONE; then
437 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
438 fi
439 nonopt="$ac_option"
440 ;;
441
442 esac
443done
444
445if test -n "$ac_prev"; then
446 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
447fi
448
449trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
450
451# File descriptor usage:
452# 0 standard input
453# 1 file creation
454# 2 errors and warnings
455# 3 some systems may open it to /dev/tty
456# 4 used on the Kubota Titan
457# 6 checking for... messages and results
458# 5 compiler messages saved in config.log
459if test "$silent" = yes; then
460 exec 6>/dev/null
461else
462 exec 6>&1
463fi
464exec 5>./config.log
465
466echo "\
467This file contains any messages produced by compilers while
468running configure, to aid debugging if configure makes a mistake.
469" 1>&5
470
471# Strip out --no-create and --no-recursion so they do not pile up.
472# Also quote any args containing shell metacharacters.
473ac_configure_args=
474for ac_arg
475do
476 case "$ac_arg" in
477 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
478 | --no-cr | --no-c) ;;
479 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
480 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
481 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
482 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
483 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
484 esac
485done
486
487# NLS nuisances.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000488# Only set these to C if already set. These must not be set unconditionally
489# because not all systems understand e.g. LANG=C (notably SCO).
490# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
491# Non-C LC_CTYPE values break the ctype check.
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000492if test "${LANG+set}" = set; then LANG=C; export LANG; fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000493if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
494if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
495if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000496
497# confdefs.h avoids OS command line length limits that DEFS can exceed.
498rm -rf conftest* confdefs.h
499# AIX cpp loses on an empty file, so make sure it contains at least a newline.
500echo > confdefs.h
501
502# A filename unique to this package, relative to the directory that
503# configure is in, which we can look for to find out if srcdir is correct.
504ac_unique_file=version.h
505
506# Find the source files, if location was not specified.
507if test -z "$srcdir"; then
508 ac_srcdir_defaulted=yes
509 # Try the directory containing this script, then its parent.
510 ac_prog=$0
511 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
512 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
513 srcdir=$ac_confdir
514 if test ! -r $srcdir/$ac_unique_file; then
515 srcdir=..
516 fi
517else
518 ac_srcdir_defaulted=no
519fi
520if test ! -r $srcdir/$ac_unique_file; then
521 if test "$ac_srcdir_defaulted" = yes; then
522 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
523 else
524 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
525 fi
526fi
527srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
528
529# Prefer explicitly selected file to automatically selected ones.
530if test -z "$CONFIG_SITE"; then
531 if test "x$prefix" != xNONE; then
532 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
533 else
534 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
535 fi
536fi
537for ac_site_file in $CONFIG_SITE; do
538 if test -r "$ac_site_file"; then
539 echo "loading site script $ac_site_file"
540 . "$ac_site_file"
541 fi
542done
543
544if test -r "$cache_file"; then
545 echo "loading cache $cache_file"
546 . $cache_file
547else
548 echo "creating cache $cache_file"
549 > $cache_file
550fi
551
552ac_ext=c
553# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
554ac_cpp='$CPP $CPPFLAGS'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000555ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000556ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000557cross_compiling=$ac_cv_prog_cc_cross
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000558
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000559ac_exeext=
560ac_objext=o
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000561if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
562 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
563 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
564 ac_n= ac_c='
565' ac_t=' '
566 else
567 ac_n=-n ac_c= ac_t=
568 fi
569else
570 ac_n= ac_c='\c' ac_t=
571fi
572
573
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +0000574
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000575MCONFIG=./MCONFIG
576
Theodore Ts'o74becf31997-04-26 14:37:06 +0000577BINARY_TYPE=bin
578E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
579 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
580DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
581 | tr \" " "`
582MONTH=`echo $DATE | awk -F- '{print $2}'`
583YEAR=`echo $DATE | awk -F- '{print $3}'`
584
Theodore Ts'o14790ed1999-01-12 23:32:52 +0000585if expr $YEAR ">" 1900 > /dev/null ; then
586 E2FSPROGS_YEAR=$YEAR
587elif expr $YEAR ">" 90 >/dev/null ; then
Theodore Ts'o74becf31997-04-26 14:37:06 +0000588 E2FSPROGS_YEAR=19$YEAR
589else
590 E2FSPROGS_YEAR=20$YEAR
591fi
592
593case $MONTH in
594Jan) E2FSPROGS_MONTH="January" ;;
595Feb) E2FSPROGS_MONTH="February" ;;
596Mar) E2FSPROGS_MONTH="March" ;;
597Apr) E2FSPROGS_MONTH="April" ;;
598May) E2FSPROGS_MONTH="May" ;;
599Jun) E2FSPROGS_MONTH="June" ;;
600Jul) E2FSPROGS_MONTH="July" ;;
601Aug) E2FSPROGS_MONTH="August" ;;
602Sep) E2FSPROGS_MONTH="September" ;;
603Oct) E2FSPROGS_MONTH="October" ;;
604Nov) E2FSPROGS_MONTH="November" ;;
605Dec) E2FSPROGS_MONTH="December" ;;
606*) echo "Unknown month $MONTH??" ;;
607esac
608
609unset DATE MONTH YEAR
610echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION"
611echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}"
612
613
614
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000615ac_aux_dir=
616for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
617 if test -f $ac_dir/install-sh; then
618 ac_aux_dir=$ac_dir
619 ac_install_sh="$ac_aux_dir/install-sh -c"
620 break
621 elif test -f $ac_dir/install.sh; then
622 ac_aux_dir=$ac_dir
623 ac_install_sh="$ac_aux_dir/install.sh -c"
624 break
625 fi
626done
627if test -z "$ac_aux_dir"; then
628 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
629fi
630ac_config_guess=$ac_aux_dir/config.guess
631ac_config_sub=$ac_aux_dir/config.sub
632ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
633
634
635# Make sure we can run config.sub.
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000636if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000637else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
638fi
639
640echo $ac_n "checking host system type""... $ac_c" 1>&6
Theodore Ts'o8fdc9982002-06-25 23:26:34 -0400641echo "configure:642: checking host system type" >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000642
643host_alias=$host
644case "$host_alias" in
645NONE)
646 case $nonopt in
647 NONE)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000648 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000649 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
650 fi ;;
651 *) host_alias=$nonopt ;;
652 esac ;;
653esac
654
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000655host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000656host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
657host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
658host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000659echo "$ac_t""$host" 1>&6
660
Theodore Ts'o74becf31997-04-26 14:37:06 +0000661# Check whether --with-cc or --without-cc was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000662if test "${with_cc+set}" = set; then
663 withval="$with_cc"
Theodore Ts'o74becf31997-04-26 14:37:06 +0000664 echo "$ac_t""CC=$withval" 1>&6
665CC=$withval
666else
667 if test -z "$CC" ; then CC=cc; fi
668echo "$ac_t""CC defaults to $CC" 1>&6
669fi
670export CC
671
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000672# Extract the first word of "gcc", so it can be a program name with args.
673set dummy gcc; ac_word=$2
674echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o8fdc9982002-06-25 23:26:34 -0400675echo "configure:676: checking for $ac_word" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000676if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
677 echo $ac_n "(cached) $ac_c" 1>&6
678else
679 if test -n "$CC"; then
680 ac_cv_prog_CC="$CC" # Let the user override the test.
681else
682 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
683 ac_dummy="$PATH"
684 for ac_dir in $ac_dummy; do
685 test -z "$ac_dir" && ac_dir=.
686 if test -f $ac_dir/$ac_word; then
687 ac_cv_prog_CC="gcc"
688 break
689 fi
690 done
691 IFS="$ac_save_ifs"
692fi
693fi
694CC="$ac_cv_prog_CC"
695if test -n "$CC"; then
696 echo "$ac_t""$CC" 1>&6
697else
698 echo "$ac_t""no" 1>&6
699fi
700
701if test -z "$CC"; then
702 # Extract the first word of "cc", so it can be a program name with args.
703set dummy cc; ac_word=$2
704echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o8fdc9982002-06-25 23:26:34 -0400705echo "configure:706: checking for $ac_word" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000706if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
707 echo $ac_n "(cached) $ac_c" 1>&6
708else
709 if test -n "$CC"; then
710 ac_cv_prog_CC="$CC" # Let the user override the test.
711else
712 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
713 ac_prog_rejected=no
714 ac_dummy="$PATH"
715 for ac_dir in $ac_dummy; do
716 test -z "$ac_dir" && ac_dir=.
717 if test -f $ac_dir/$ac_word; then
718 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
719 ac_prog_rejected=yes
720 continue
721 fi
722 ac_cv_prog_CC="cc"
723 break
724 fi
725 done
726 IFS="$ac_save_ifs"
727if test $ac_prog_rejected = yes; then
728 # We found a bogon in the path, so make sure we never use it.
729 set dummy $ac_cv_prog_CC
730 shift
731 if test $# -gt 0; then
732 # We chose a different compiler from the bogus one.
733 # However, it has the same basename, so the bogon will be chosen
734 # first if we set CC to just the basename; use the full file name.
735 shift
736 set dummy "$ac_dir/$ac_word" "$@"
737 shift
738 ac_cv_prog_CC="$@"
739 fi
740fi
741fi
742fi
743CC="$ac_cv_prog_CC"
744if test -n "$CC"; then
745 echo "$ac_t""$CC" 1>&6
746else
747 echo "$ac_t""no" 1>&6
748fi
749
750 if test -z "$CC"; then
751 case "`uname -s`" in
752 *win32* | *WIN32*)
753 # Extract the first word of "cl", so it can be a program name with args.
754set dummy cl; ac_word=$2
755echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o8fdc9982002-06-25 23:26:34 -0400756echo "configure:757: checking for $ac_word" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000757if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
758 echo $ac_n "(cached) $ac_c" 1>&6
759else
760 if test -n "$CC"; then
761 ac_cv_prog_CC="$CC" # Let the user override the test.
762else
763 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
764 ac_dummy="$PATH"
765 for ac_dir in $ac_dummy; do
766 test -z "$ac_dir" && ac_dir=.
767 if test -f $ac_dir/$ac_word; then
768 ac_cv_prog_CC="cl"
769 break
770 fi
771 done
772 IFS="$ac_save_ifs"
773fi
774fi
775CC="$ac_cv_prog_CC"
776if test -n "$CC"; then
777 echo "$ac_t""$CC" 1>&6
778else
779 echo "$ac_t""no" 1>&6
780fi
781 ;;
782 esac
783 fi
784 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
785fi
786
787echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
Theodore Ts'o8fdc9982002-06-25 23:26:34 -0400788echo "configure:789: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000789
790ac_ext=c
791# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
792ac_cpp='$CPP $CPPFLAGS'
793ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
794ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
795cross_compiling=$ac_cv_prog_cc_cross
796
797cat > conftest.$ac_ext << EOF
798
Theodore Ts'o8fdc9982002-06-25 23:26:34 -0400799#line 800 "configure"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000800#include "confdefs.h"
801
802main(){return(0);}
803EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -0400804if { (eval echo configure:805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000805 ac_cv_prog_cc_works=yes
806 # If we can't run a trivial program, we are probably using a cross compiler.
807 if (./conftest; exit) 2>/dev/null; then
808 ac_cv_prog_cc_cross=no
809 else
810 ac_cv_prog_cc_cross=yes
811 fi
812else
813 echo "configure: failed program was:" >&5
814 cat conftest.$ac_ext >&5
815 ac_cv_prog_cc_works=no
816fi
817rm -fr conftest*
818ac_ext=c
819# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
820ac_cpp='$CPP $CPPFLAGS'
821ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
822ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
823cross_compiling=$ac_cv_prog_cc_cross
824
825echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
826if test $ac_cv_prog_cc_works = no; then
827 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
828fi
829echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
Theodore Ts'o8fdc9982002-06-25 23:26:34 -0400830echo "configure:831: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000831echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
832cross_compiling=$ac_cv_prog_cc_cross
833
834echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
Theodore Ts'o8fdc9982002-06-25 23:26:34 -0400835echo "configure:836: checking whether we are using GNU C" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000836if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
837 echo $ac_n "(cached) $ac_c" 1>&6
838else
839 cat > conftest.c <<EOF
840#ifdef __GNUC__
841 yes;
842#endif
843EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -0400844if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:845: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000845 ac_cv_prog_gcc=yes
846else
847 ac_cv_prog_gcc=no
848fi
849fi
850
851echo "$ac_t""$ac_cv_prog_gcc" 1>&6
852
853if test $ac_cv_prog_gcc = yes; then
854 GCC=yes
855else
856 GCC=
857fi
858
859ac_test_CFLAGS="${CFLAGS+set}"
860ac_save_CFLAGS="$CFLAGS"
861CFLAGS=
862echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
Theodore Ts'o8fdc9982002-06-25 23:26:34 -0400863echo "configure:864: checking whether ${CC-cc} accepts -g" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000864if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
865 echo $ac_n "(cached) $ac_c" 1>&6
866else
867 echo 'void f(){}' > conftest.c
868if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
869 ac_cv_prog_cc_g=yes
870else
871 ac_cv_prog_cc_g=no
872fi
873rm -f conftest*
874
875fi
876
877echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
878if test "$ac_test_CFLAGS" = set; then
879 CFLAGS="$ac_save_CFLAGS"
880elif test $ac_cv_prog_cc_g = yes; then
881 if test "$GCC" = yes; then
882 CFLAGS="-g -O2"
883 else
884 CFLAGS="-g"
885 fi
886else
887 if test "$GCC" = yes; then
888 CFLAGS="-O2"
889 else
890 CFLAGS=
891 fi
892fi
893
Theodore Ts'o74becf31997-04-26 14:37:06 +0000894# Check whether --with-linker or --without-linker was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000895if test "${with_linker+set}" = set; then
896 withval="$with_linker"
Theodore Ts'o74becf31997-04-26 14:37:06 +0000897 echo "$ac_t""LD=$withval" 1>&6
898LD=$withval
899else
900 if test -z "$LD" ; then LD=$CC; fi
901echo "$ac_t""LD defaults to $LD" 1>&6
902fi
903export LD
904
905# Check whether --with-ccopts or --without-ccopts was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000906if test "${with_ccopts+set}" = set; then
907 withval="$with_ccopts"
Theodore Ts'o74becf31997-04-26 14:37:06 +0000908 echo "$ac_t""CCOPTS is $withval" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +0000909CFLAGS=$withval
Theodore Ts'o74becf31997-04-26 14:37:06 +0000910fi
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000911echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
Theodore Ts'o8fdc9982002-06-25 23:26:34 -0400912echo "configure:913: checking how to run the C preprocessor" >&5
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000913# On Suns, sometimes $CPP names a directory.
914if test -n "$CPP" && test -d "$CPP"; then
915 CPP=
916fi
917if test -z "$CPP"; then
918if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
919 echo $ac_n "(cached) $ac_c" 1>&6
920else
921 # This must be in double quotes, not single quotes, because CPP may get
922 # substituted into the Makefile and "${CC-cc}" will confuse make.
923 CPP="${CC-cc} -E"
924 # On the NeXT, cc -E runs the code through the compiler's parser,
925 # not just through cpp.
926 cat > conftest.$ac_ext <<EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -0400927#line 928 "configure"
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000928#include "confdefs.h"
929#include <assert.h>
930Syntax Error
931EOF
932ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -0400933{ (eval echo configure:934: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000934ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
935if test -z "$ac_err"; then
936 :
937else
938 echo "$ac_err" >&5
939 echo "configure: failed program was:" >&5
940 cat conftest.$ac_ext >&5
941 rm -rf conftest*
942 CPP="${CC-cc} -E -traditional-cpp"
943 cat > conftest.$ac_ext <<EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -0400944#line 945 "configure"
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000945#include "confdefs.h"
946#include <assert.h>
947Syntax Error
948EOF
949ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -0400950{ (eval echo configure:951: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000951ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
952if test -z "$ac_err"; then
953 :
954else
955 echo "$ac_err" >&5
956 echo "configure: failed program was:" >&5
957 cat conftest.$ac_ext >&5
958 rm -rf conftest*
959 CPP="${CC-cc} -nologo -E"
960 cat > conftest.$ac_ext <<EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -0400961#line 962 "configure"
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000962#include "confdefs.h"
963#include <assert.h>
964Syntax Error
965EOF
966ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -0400967{ (eval echo configure:968: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000968ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
969if test -z "$ac_err"; then
970 :
971else
972 echo "$ac_err" >&5
973 echo "configure: failed program was:" >&5
974 cat conftest.$ac_ext >&5
975 rm -rf conftest*
976 CPP=/lib/cpp
977fi
978rm -f conftest*
979fi
980rm -f conftest*
981fi
982rm -f conftest*
983 ac_cv_prog_CPP="$CPP"
984fi
985 CPP="$ac_cv_prog_CPP"
986else
987 ac_cv_prog_CPP="$CPP"
988fi
989echo "$ac_t""$CPP" 1>&6
990
991ac_safe=`echo "linux/fs.h" | sed 'y%./+-%__p_%'`
992echo $ac_n "checking for linux/fs.h""... $ac_c" 1>&6
Theodore Ts'o8fdc9982002-06-25 23:26:34 -0400993echo "configure:994: checking for linux/fs.h" >&5
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000994if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
995 echo $ac_n "(cached) $ac_c" 1>&6
996else
997 cat > conftest.$ac_ext <<EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -0400998#line 999 "configure"
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000999#include "confdefs.h"
1000#include <linux/fs.h>
1001EOF
1002ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04001003{ (eval echo configure:1004: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001004ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1005if test -z "$ac_err"; then
1006 rm -rf conftest*
1007 eval "ac_cv_header_$ac_safe=yes"
1008else
1009 echo "$ac_err" >&5
1010 echo "configure: failed program was:" >&5
1011 cat conftest.$ac_ext >&5
1012 rm -rf conftest*
1013 eval "ac_cv_header_$ac_safe=no"
1014fi
1015rm -f conftest*
1016fi
1017if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1018 echo "$ac_t""yes" 1>&6
1019 linux_headers=yes
1020else
1021 echo "$ac_t""no" 1>&6
1022linux_headers=no
1023fi
1024
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001025if test "$linux_headers" != yes; then
1026 LINUX_INCLUDE='-I$(top_builddir)/include'
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001027fi
1028
Theodore Ts'oa4d09611997-04-29 14:28:00 +00001029LIB_EXT=.a
1030STATIC_LIB_EXT=.a
1031PROFILE_LIB_EXT=.a
Theodore Ts'o74becf31997-04-26 14:37:06 +00001032# Check whether --with-ldopts or --without-ldopts was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001033if test "${with_ldopts+set}" = set; then
1034 withval="$with_ldopts"
Theodore Ts'o74becf31997-04-26 14:37:06 +00001035 echo "$ac_t""LDFLAGS is $withval" 1>&6
1036LDFLAGS=$withval
1037else
1038 LDFLAGS=
1039fi
1040
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00001041# Check whether --with-root-prefix or --without-root-prefix was given.
1042if test "${with_root_prefix+set}" = set; then
1043 withval="$with_root_prefix"
1044 root_prefix=$withval
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001045else
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00001046 root_prefix=NONE
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001047fi
Theodore Ts'o19178752000-02-11 15:55:07 +00001048# Check whether --enable-compression or --disable-compression was given.
1049if test "${enable_compression+set}" = set; then
1050 enableval="$enable_compression"
1051 if test "$enableval" = "no"
1052then
1053 echo "Disabling compression support"
1054else
1055 cat >> confdefs.h <<\EOF
1056#define ENABLE_COMPRESSION 1
1057EOF
1058
1059 echo "Enabling compression support"
1060 echo "WARNING: Compression support is experimental"
1061fi
1062
1063else
1064 echo "Disabling compression support by default"
1065
1066fi
1067
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04001068# Check whether --enable-htree or --disable-htree was given.
1069if test "${enable_htree+set}" = set; then
1070 enableval="$enable_htree"
1071 if test "$enableval" = "no"
1072then
1073 HTREE_CMT=#
1074 echo "Disabling htree directory support"
1075else
1076 HTREE_CMT=
1077 cat >> confdefs.h <<\EOF
1078#define ENABLE_HTREE 1
1079EOF
1080
1081 echo "Enabling htree directory support"
1082 echo "WARNING: htree support is experimental"
1083fi
1084
1085else
1086 HTREE_CMT=#
1087echo "Disabling htree directory support by default"
1088
1089fi
1090
1091
1092# Check whether --enable-htree-clear or --disable-htree-clear was given.
1093if test "${enable_htree_clear+set}" = set; then
1094 enableval="$enable_htree_clear"
1095 if test "$enableval" = "no"
1096then
1097 HTREE_CLR_CMT=#
1098 echo "Disabling htree clearing"
1099else
1100 HTREE_CLR_CMT=
1101 cat >> confdefs.h <<\EOF
1102#define ENABLE_HTREE_CLEAR 1
1103EOF
1104
1105 echo "Enabling htree clearing"
1106fi
1107
1108else
1109 HTREE_CLR_CMT=#
1110echo "Disabling htree clearing by default"
1111
1112fi
1113
1114
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04001115# Check whether --enable-old-evms or --disable-old-evms was given.
1116if test "${enable_old_evms+set}" = set; then
1117 enableval="$enable_old_evms"
1118 if test "$enableval" = "no"
1119then
1120 echo "Using EVMS 1.1.0 ABI"
1121else
1122 cat >> confdefs.h <<\EOF
1123#define ABI_EVMS_1_0 1
1124EOF
1125
1126 echo "Enabling EVMS 1.0.0 ABI"
1127fi
1128
1129else
1130 echo "Using EVMS 1.1.0 ABI by default"
1131
1132fi
1133
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001134# Check whether --enable-dll-shlibs or --disable-dll-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001135if test "${enable_dll_shlibs+set}" = set; then
1136 enableval="$enable_dll_shlibs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001137 if test "$enableval" = "no"
1138then
1139 DLL_CMT=#
1140 MAKEFILE_DLL=/dev/null
1141 echo "Disabling DLL shared libraries"
1142else
1143 DLL_CMT=
1144 MAKEFILE_DLL=$srcdir/lib/Makefile.dll-lib
Theodore Ts'o74becf31997-04-26 14:37:06 +00001145 BINARY_TYPE=dllbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00001146 LIB_EXT=.sa
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001147 echo "Enabling DLL shared libraries"
1148fi
1149
1150else
1151 MAKEFILE_DLL=/dev/null
1152DLL_CMT=#
1153echo "Disabling DLL shared libraries by default"
1154
1155fi
1156
1157
1158
1159# Check whether --enable-elf-shlibs or --disable-elf-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001160if test "${enable_elf_shlibs+set}" = set; then
1161 enableval="$enable_elf_shlibs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001162 if test "$enableval" = "no"
1163then
1164 ELF_CMT=#
1165 MAKEFILE_ELF=/dev/null
1166 echo "Disabling ELF shared libraries"
1167else
1168 ELF_CMT=
1169 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
Theodore Ts'of5955dd2000-10-25 02:38:39 +00001170 case "$host_os" in
1171 solaris2.*)
1172 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
1173 ;;
1174 esac
Theodore Ts'o74becf31997-04-26 14:37:06 +00001175 BINARY_TYPE=elfbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00001176 LIB_EXT=.so
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001177 echo "Enabling ELF shared libraries"
1178fi
1179
1180else
1181 MAKEFILE_ELF=/dev/null
1182ELF_CMT=#
1183echo "Disabling ELF shared libraries by default"
1184
1185fi
1186
1187
1188
1189# Check whether --enable-bsd-shlibs or --disable-bsd-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001190if test "${enable_bsd_shlibs+set}" = set; then
1191 enableval="$enable_bsd_shlibs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001192 if test "$enableval" = "no"
1193then
1194 BSDLIB_CMT=#
1195 MAKEFILE_BSDLIB=/dev/null
1196 echo "Disabling BSD shared libraries"
1197else
1198 BSDLIB_CMT=
1199 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
Theodore Ts'oa4d09611997-04-29 14:28:00 +00001200 LIB_EXT=.so
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001201 echo "Enabling BSD shared libraries"
1202fi
1203
1204else
1205 MAKEFILE_BSDLIB=/dev/null
1206BSDLIB_CMT=#
1207echo "Disabling BSD shared libraries by default"
1208
1209fi
1210
1211
1212
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001213# Check whether --enable-profile or --disable-profile was given.
1214if test "${enable_profile+set}" = set; then
1215 enableval="$enable_profile"
1216 if test "$enableval" = "no"
1217then
1218 PROFILE_CMT=#
1219 MAKEFILE_PROFILE=/dev/null
1220 echo "Disabling profiling libraries"
1221else
1222 PROFILE_CMT=
1223 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
1224 PROFILED_LIB_EXT=_p.a
1225 echo "Building profiling libraries"
1226fi
1227
1228else
1229 PROFILE_CMT=#
1230MAKEFILE_PROFILE=/dev/null
1231echo "Disabling profiling libraries by default"
1232
1233fi
1234
1235
1236
1237# Check whether --enable-checker or --disable-checker was given.
1238if test "${enable_checker+set}" = set; then
1239 enableval="$enable_checker"
1240 if test "$enableval" = "no"
1241then
1242 CHECKER_CMT=#
1243 MAKEFILE_CHECKER=/dev/null
1244 echo "Disabling checker libraries"
1245else
1246 CHECKER_CMT=
1247 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
1248 echo "Building checker libraries"
1249fi
1250
1251else
1252 CHECKER_CMT=#
1253MAKEFILE_CHECKER=/dev/null
1254echo "Disabling checker libraries by default"
1255
1256fi
1257
1258
1259
1260
1261
1262
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00001263# Check whether --enable-jfs-debug or --disable-jfs-debug was given.
1264if test "${enable_jfs_debug+set}" = set; then
1265 enableval="$enable_jfs_debug"
1266 if test "$enableval" = "no"
1267then
1268 echo "Disabling journal debugging"
1269else
1270 cat >> confdefs.h <<\EOF
Theodore Ts'o8cf93332001-12-16 02:23:36 -05001271#define CONFIG_JBD_DEBUG 1
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00001272EOF
1273
1274 echo "Enabling journal debugging"
1275fi
1276
1277else
1278 echo "Disabling journal debugging by default"
1279
1280fi
1281
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001282# Check whether --enable-swapfs or --disable-swapfs was given.
1283if test "${enable_swapfs+set}" = set; then
1284 enableval="$enable_swapfs"
1285 if test "$enableval" = "no"
1286then
1287 echo "Disabling swapfs support"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001288else
1289 cat >> confdefs.h <<\EOF
1290#define ENABLE_SWAPFS 1
1291EOF
1292
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001293 echo "Enabling swapfs support"
1294fi
1295
1296else
1297 echo "Enabling swapfs support by default"
1298cat >> confdefs.h <<\EOF
1299#define ENABLE_SWAPFS 1
1300EOF
1301
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001302
1303fi
1304
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001305# Check whether --enable-debugfs or --disable-debugfs was given.
1306if test "${enable_debugfs+set}" = set; then
1307 enableval="$enable_debugfs"
1308 if test "$enableval" = "no"
1309then
1310 echo "Disabling debugfs support"
1311 DEBUGFS_CMT="#"
1312else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001313 DEBUGFS_CMT=
1314 echo "Enabling debugfs support"
1315fi
1316
1317else
1318 echo "Enabling debugfs support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001319DEBUGFS_CMT=
1320
1321fi
1322
1323
1324# Check whether --enable-imager or --disable-imager was given.
1325if test "${enable_imager+set}" = set; then
1326 enableval="$enable_imager"
1327 if test "$enableval" = "no"
1328then
1329 echo "Disabling e2image support"
1330 IMAGER_CMT="#"
1331else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001332 IMAGER_CMT=
1333 echo "Enabling e2image support"
1334fi
1335
1336else
1337 echo "Enabling e2image support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001338IMAGER_CMT=
1339
1340fi
1341
1342
1343# Check whether --enable-resizer or --disable-resizer was given.
1344if test "${enable_resizer+set}" = set; then
1345 enableval="$enable_resizer"
1346 if test "$enableval" = "no"
1347then
1348 echo "Disabling e2resize support"
1349 RESIZER_CMT="#"
1350else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001351 RESIZER_CMT=
1352 echo "Enabling e2resize support"
1353fi
1354
1355else
1356 echo "Enabling e2resize support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001357RESIZER_CMT=
1358
1359fi
1360
1361
1362# Check whether --enable-dynamic-e2fsck or --disable-dynamic-e2fsck was given.
1363if test "${enable_dynamic_e2fsck+set}" = set; then
1364 enableval="$enable_dynamic_e2fsck"
1365 if test "$enableval" = "no"
1366then
1367 E2FSCK_TYPE=static
1368 echo "Building e2fsck statically"
1369else
1370 E2FSCK_TYPE=shared
1371 echo "Building e2fsck dynamically"
1372fi
1373
1374else
1375 E2FSCK_TYPE=static
1376echo "Building e2fsck statically by default"
1377
1378fi
1379
1380
1381# Check whether --enable-fsck or --disable-fsck was given.
1382if test "${enable_fsck+set}" = set; then
1383 enableval="$enable_fsck"
1384 if test "$enableval" = "no"
1385then
1386 FSCK_PROG='' FSCK_MAN=''
1387 echo "Not building fsck wrapper"
1388else
1389 FSCK_PROG=fsck FSCK_MAN=fsck.8
1390 echo "Building fsck wrapper"
1391fi
1392
1393else
1394 case "$host_os" in
1395 gnu*)
1396 FSCK_PROG='' FSCK_MAN=''
1397 echo "Not building fsck wrapper by default"
1398 ;;
1399 *)
1400 FSCK_PROG=fsck FSCK_MAN=fsck.8
1401 echo "Building fsck wrapper by default"
1402esac
1403
1404fi
1405
1406
1407
1408MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
1409
1410# Check whether --enable-old-bitops or --disable-old-bitops was given.
1411if test "${enable_old_bitops+set}" = set; then
1412 enableval="$enable_old_bitops"
1413 if test "$enableval" = "no"
1414then
1415 echo "Using new (standard) bitmask operations"
1416else
1417 cat >> confdefs.h <<\EOF
1418#define EXT2_OLD_BITOPS 1
1419EOF
1420
1421 echo "Using old (native) bitmask operations"
1422
1423fi
1424
1425else
1426 echo "Using standard bitmask operations by default"
1427
1428fi
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001429
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001430PACKAGE=e2fsprogs
1431VERSION="$E2FSPROGS_VERSION"
1432cat >> confdefs.h <<EOF
1433#define PACKAGE "$PACKAGE"
1434EOF
1435
1436cat >> confdefs.h <<EOF
1437#define VERSION "$VERSION"
1438EOF
1439
1440
1441
1442
Theodore Ts'o6e71e672001-10-08 12:51:00 -04001443ALL_LINGUAS="it nyc tr"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001444echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04001445echo "configure:1446: checking whether ${MAKE-make} sets \${MAKE}" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001446set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1447if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1448 echo $ac_n "(cached) $ac_c" 1>&6
1449else
1450 cat > conftestmake <<\EOF
1451all:
1452 @echo 'ac_maketemp="${MAKE}"'
1453EOF
1454# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1455eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1456if test -n "$ac_maketemp"; then
1457 eval ac_cv_prog_make_${ac_make}_set=yes
1458else
1459 eval ac_cv_prog_make_${ac_make}_set=no
1460fi
1461rm -f conftestmake
1462fi
1463if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1464 echo "$ac_t""yes" 1>&6
1465 SET_MAKE=
1466else
1467 echo "$ac_t""no" 1>&6
1468 SET_MAKE="MAKE=${MAKE-make}"
1469fi
1470
1471# Extract the first word of "ranlib", so it can be a program name with args.
1472set dummy ranlib; ac_word=$2
1473echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04001474echo "configure:1475: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001475if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1476 echo $ac_n "(cached) $ac_c" 1>&6
1477else
1478 if test -n "$RANLIB"; then
1479 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1480else
1481 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1482 ac_dummy="$PATH"
1483 for ac_dir in $ac_dummy; do
1484 test -z "$ac_dir" && ac_dir=.
1485 if test -f $ac_dir/$ac_word; then
1486 ac_cv_prog_RANLIB="ranlib"
1487 break
1488 fi
1489 done
1490 IFS="$ac_save_ifs"
1491 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1492fi
1493fi
1494RANLIB="$ac_cv_prog_RANLIB"
1495if test -n "$RANLIB"; then
1496 echo "$ac_t""$RANLIB" 1>&6
1497else
1498 echo "$ac_t""no" 1>&6
1499fi
1500
1501echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04001502echo "configure:1503: checking for POSIXized ISC" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001503if test -d /etc/conf/kconfig.d &&
1504 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1505then
1506 echo "$ac_t""yes" 1>&6
1507 ISC=yes # If later tests want to check for ISC.
1508 cat >> confdefs.h <<\EOF
1509#define _POSIX_SOURCE 1
1510EOF
1511
1512 if test "$GCC" = yes; then
1513 CC="$CC -posix"
1514 else
1515 CC="$CC -Xp"
1516 fi
1517else
1518 echo "$ac_t""no" 1>&6
1519 ISC=
1520fi
1521
1522echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04001523echo "configure:1524: checking for ANSI C header files" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001524if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1525 echo $ac_n "(cached) $ac_c" 1>&6
1526else
1527 cat > conftest.$ac_ext <<EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04001528#line 1529 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001529#include "confdefs.h"
1530#include <stdlib.h>
1531#include <stdarg.h>
1532#include <string.h>
1533#include <float.h>
1534EOF
1535ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04001536{ (eval echo configure:1537: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001537ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1538if test -z "$ac_err"; then
1539 rm -rf conftest*
1540 ac_cv_header_stdc=yes
1541else
1542 echo "$ac_err" >&5
1543 echo "configure: failed program was:" >&5
1544 cat conftest.$ac_ext >&5
1545 rm -rf conftest*
1546 ac_cv_header_stdc=no
1547fi
1548rm -f conftest*
1549
1550if test $ac_cv_header_stdc = yes; then
1551 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1552cat > conftest.$ac_ext <<EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04001553#line 1554 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001554#include "confdefs.h"
1555#include <string.h>
1556EOF
1557if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1558 egrep "memchr" >/dev/null 2>&1; then
1559 :
1560else
1561 rm -rf conftest*
1562 ac_cv_header_stdc=no
1563fi
1564rm -f conftest*
1565
1566fi
1567
1568if test $ac_cv_header_stdc = yes; then
1569 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1570cat > conftest.$ac_ext <<EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04001571#line 1572 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001572#include "confdefs.h"
1573#include <stdlib.h>
1574EOF
1575if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1576 egrep "free" >/dev/null 2>&1; then
1577 :
1578else
1579 rm -rf conftest*
1580 ac_cv_header_stdc=no
1581fi
1582rm -f conftest*
1583
1584fi
1585
1586if test $ac_cv_header_stdc = yes; then
1587 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1588if test "$cross_compiling" = yes; then
1589 :
1590else
1591 cat > conftest.$ac_ext <<EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04001592#line 1593 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001593#include "confdefs.h"
1594#include <ctype.h>
1595#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1596#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1597#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1598int main () { int i; for (i = 0; i < 256; i++)
1599if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1600exit (0); }
1601
1602EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04001603if { (eval echo configure:1604: \"$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 +00001604then
1605 :
1606else
1607 echo "configure: failed program was:" >&5
1608 cat conftest.$ac_ext >&5
1609 rm -fr conftest*
1610 ac_cv_header_stdc=no
1611fi
1612rm -fr conftest*
1613fi
1614
1615fi
1616fi
1617
1618echo "$ac_t""$ac_cv_header_stdc" 1>&6
1619if test $ac_cv_header_stdc = yes; then
1620 cat >> confdefs.h <<\EOF
1621#define STDC_HEADERS 1
1622EOF
1623
1624fi
1625
1626echo $ac_n "checking for working const""... $ac_c" 1>&6
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04001627echo "configure:1628: checking for working const" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001628if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1629 echo $ac_n "(cached) $ac_c" 1>&6
1630else
1631 cat > conftest.$ac_ext <<EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04001632#line 1633 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001633#include "confdefs.h"
1634
1635int main() {
1636
1637/* Ultrix mips cc rejects this. */
Theodore Ts'o250f79f2001-05-19 22:02:22 +00001638typedef int charset[2]; const charset x;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001639/* SunOS 4.1.1 cc rejects this. */
1640char const *const *ccp;
1641char **p;
1642/* NEC SVR4.0.2 mips cc rejects this. */
1643struct point {int x, y;};
1644static struct point const zero = {0,0};
1645/* AIX XL C 1.02.0.0 rejects this.
1646 It does not let you subtract one const X* pointer from another in an arm
1647 of an if-expression whose if-part is not a constant expression */
1648const char *g = "string";
1649ccp = &g + (g ? g-g : 0);
1650/* HPUX 7.0 cc rejects these. */
1651++ccp;
1652p = (char**) ccp;
1653ccp = (char const *const *) p;
1654{ /* SCO 3.2v4 cc rejects this. */
1655 char *t;
1656 char const *s = 0 ? (char *) 0 : (char const *) 0;
1657
1658 *t++ = 0;
1659}
1660{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1661 int x[] = {25, 17};
1662 const int *foo = &x[0];
1663 ++foo;
1664}
1665{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1666 typedef const int *iptr;
1667 iptr p = 0;
1668 ++p;
1669}
1670{ /* AIX XL C 1.02.0.0 rejects this saying
1671 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1672 struct s { int j; const int *ap[3]; };
1673 struct s *b; b->j = 5;
1674}
1675{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1676 const int foo = 10;
1677}
1678
1679; return 0; }
1680EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04001681if { (eval echo configure:1682: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001682 rm -rf conftest*
1683 ac_cv_c_const=yes
1684else
1685 echo "configure: failed program was:" >&5
1686 cat conftest.$ac_ext >&5
1687 rm -rf conftest*
1688 ac_cv_c_const=no
1689fi
1690rm -f conftest*
1691fi
1692
1693echo "$ac_t""$ac_cv_c_const" 1>&6
1694if test $ac_cv_c_const = no; then
1695 cat >> confdefs.h <<\EOF
1696#define const
1697EOF
1698
1699fi
1700
1701echo $ac_n "checking for inline""... $ac_c" 1>&6
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04001702echo "configure:1703: checking for inline" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001703if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1704 echo $ac_n "(cached) $ac_c" 1>&6
1705else
1706 ac_cv_c_inline=no
1707for ac_kw in inline __inline__ __inline; do
1708 cat > conftest.$ac_ext <<EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04001709#line 1710 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001710#include "confdefs.h"
1711
1712int main() {
Theodore Ts'o250f79f2001-05-19 22:02:22 +00001713} $ac_kw foo() {
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001714; return 0; }
1715EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04001716if { (eval echo configure:1717: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001717 rm -rf conftest*
1718 ac_cv_c_inline=$ac_kw; break
1719else
1720 echo "configure: failed program was:" >&5
1721 cat conftest.$ac_ext >&5
1722fi
1723rm -f conftest*
1724done
1725
1726fi
1727
1728echo "$ac_t""$ac_cv_c_inline" 1>&6
1729case "$ac_cv_c_inline" in
1730 inline | yes) ;;
1731 no) cat >> confdefs.h <<\EOF
1732#define inline
1733EOF
1734 ;;
1735 *) cat >> confdefs.h <<EOF
1736#define inline $ac_cv_c_inline
1737EOF
1738 ;;
1739esac
1740
1741echo $ac_n "checking for off_t""... $ac_c" 1>&6
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04001742echo "configure:1743: checking for off_t" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001743if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1744 echo $ac_n "(cached) $ac_c" 1>&6
1745else
1746 cat > conftest.$ac_ext <<EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04001747#line 1748 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001748#include "confdefs.h"
1749#include <sys/types.h>
1750#if STDC_HEADERS
1751#include <stdlib.h>
1752#include <stddef.h>
1753#endif
1754EOF
1755if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1756 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1757 rm -rf conftest*
1758 ac_cv_type_off_t=yes
1759else
1760 rm -rf conftest*
1761 ac_cv_type_off_t=no
1762fi
1763rm -f conftest*
1764
1765fi
1766echo "$ac_t""$ac_cv_type_off_t" 1>&6
1767if test $ac_cv_type_off_t = no; then
1768 cat >> confdefs.h <<\EOF
1769#define off_t long
1770EOF
1771
1772fi
1773
1774echo $ac_n "checking for size_t""... $ac_c" 1>&6
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04001775echo "configure:1776: checking for size_t" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001776if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1777 echo $ac_n "(cached) $ac_c" 1>&6
1778else
1779 cat > conftest.$ac_ext <<EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04001780#line 1781 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001781#include "confdefs.h"
1782#include <sys/types.h>
1783#if STDC_HEADERS
1784#include <stdlib.h>
1785#include <stddef.h>
1786#endif
1787EOF
1788if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1789 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1790 rm -rf conftest*
1791 ac_cv_type_size_t=yes
1792else
1793 rm -rf conftest*
1794 ac_cv_type_size_t=no
1795fi
1796rm -f conftest*
1797
1798fi
1799echo "$ac_t""$ac_cv_type_size_t" 1>&6
1800if test $ac_cv_type_size_t = no; then
1801 cat >> confdefs.h <<\EOF
1802#define size_t unsigned
1803EOF
1804
1805fi
1806
1807# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1808# for constant arguments. Useless!
1809echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04001810echo "configure:1811: checking for working alloca.h" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001811if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1812 echo $ac_n "(cached) $ac_c" 1>&6
1813else
1814 cat > conftest.$ac_ext <<EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04001815#line 1816 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001816#include "confdefs.h"
1817#include <alloca.h>
1818int main() {
Theodore Ts'o250f79f2001-05-19 22:02:22 +00001819char *p = alloca(2 * sizeof(int));
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001820; return 0; }
1821EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04001822if { (eval echo configure:1823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001823 rm -rf conftest*
1824 ac_cv_header_alloca_h=yes
1825else
1826 echo "configure: failed program was:" >&5
1827 cat conftest.$ac_ext >&5
1828 rm -rf conftest*
1829 ac_cv_header_alloca_h=no
1830fi
1831rm -f conftest*
1832fi
1833
1834echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1835if test $ac_cv_header_alloca_h = yes; then
1836 cat >> confdefs.h <<\EOF
1837#define HAVE_ALLOCA_H 1
1838EOF
1839
1840fi
1841
1842echo $ac_n "checking for alloca""... $ac_c" 1>&6
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04001843echo "configure:1844: checking for alloca" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001844if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1845 echo $ac_n "(cached) $ac_c" 1>&6
1846else
1847 cat > conftest.$ac_ext <<EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04001848#line 1849 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001849#include "confdefs.h"
1850
1851#ifdef __GNUC__
1852# define alloca __builtin_alloca
1853#else
1854# ifdef _MSC_VER
1855# include <malloc.h>
1856# define alloca _alloca
1857# else
1858# if HAVE_ALLOCA_H
1859# include <alloca.h>
1860# else
1861# ifdef _AIX
1862 #pragma alloca
1863# else
1864# ifndef alloca /* predefined by HP cc +Olibcalls */
1865char *alloca ();
1866# endif
1867# endif
1868# endif
1869# endif
1870#endif
1871
1872int main() {
1873char *p = (char *) alloca(1);
1874; return 0; }
1875EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04001876if { (eval echo configure:1877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001877 rm -rf conftest*
1878 ac_cv_func_alloca_works=yes
1879else
1880 echo "configure: failed program was:" >&5
1881 cat conftest.$ac_ext >&5
1882 rm -rf conftest*
1883 ac_cv_func_alloca_works=no
1884fi
1885rm -f conftest*
1886fi
1887
1888echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1889if test $ac_cv_func_alloca_works = yes; then
1890 cat >> confdefs.h <<\EOF
1891#define HAVE_ALLOCA 1
1892EOF
1893
1894fi
1895
1896if test $ac_cv_func_alloca_works = no; then
1897 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1898 # that cause trouble. Some versions do not even contain alloca or
1899 # contain a buggy version. If you still want to use their alloca,
1900 # use ar to extract alloca.o from them instead of compiling alloca.c.
1901 ALLOCA=alloca.${ac_objext}
1902 cat >> confdefs.h <<\EOF
1903#define C_ALLOCA 1
1904EOF
1905
1906
1907echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04001908echo "configure:1909: checking whether alloca needs Cray hooks" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001909if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1910 echo $ac_n "(cached) $ac_c" 1>&6
1911else
1912 cat > conftest.$ac_ext <<EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04001913#line 1914 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001914#include "confdefs.h"
1915#if defined(CRAY) && ! defined(CRAY2)
1916webecray
1917#else
1918wenotbecray
1919#endif
1920
1921EOF
1922if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1923 egrep "webecray" >/dev/null 2>&1; then
1924 rm -rf conftest*
1925 ac_cv_os_cray=yes
1926else
1927 rm -rf conftest*
1928 ac_cv_os_cray=no
1929fi
1930rm -f conftest*
1931
1932fi
1933
1934echo "$ac_t""$ac_cv_os_cray" 1>&6
1935if test $ac_cv_os_cray = yes; then
1936for ac_func in _getb67 GETB67 getb67; do
1937 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04001938echo "configure:1939: checking for $ac_func" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001939if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1940 echo $ac_n "(cached) $ac_c" 1>&6
1941else
1942 cat > conftest.$ac_ext <<EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04001943#line 1944 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001944#include "confdefs.h"
1945/* System header to define __stub macros and hopefully few prototypes,
1946 which can conflict with char $ac_func(); below. */
1947#include <assert.h>
1948/* Override any gcc2 internal prototype to avoid an error. */
1949/* We use char because int might match the return type of a gcc2
1950 builtin and then its argument prototype would still apply. */
1951char $ac_func();
1952
1953int main() {
1954
1955/* The GNU C library defines this for functions which it implements
1956 to always fail with ENOSYS. Some functions are actually named
1957 something starting with __ and the normal name is an alias. */
1958#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1959choke me
1960#else
1961$ac_func();
1962#endif
1963
1964; return 0; }
1965EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04001966if { (eval echo configure:1967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001967 rm -rf conftest*
1968 eval "ac_cv_func_$ac_func=yes"
1969else
1970 echo "configure: failed program was:" >&5
1971 cat conftest.$ac_ext >&5
1972 rm -rf conftest*
1973 eval "ac_cv_func_$ac_func=no"
1974fi
1975rm -f conftest*
1976fi
1977
1978if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1979 echo "$ac_t""yes" 1>&6
1980 cat >> confdefs.h <<EOF
1981#define CRAY_STACKSEG_END $ac_func
1982EOF
1983
1984 break
1985else
1986 echo "$ac_t""no" 1>&6
1987fi
1988
1989done
1990fi
1991
1992echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04001993echo "configure:1994: checking stack direction for C alloca" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001994if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1995 echo $ac_n "(cached) $ac_c" 1>&6
1996else
1997 if test "$cross_compiling" = yes; then
1998 ac_cv_c_stack_direction=0
1999else
2000 cat > conftest.$ac_ext <<EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04002001#line 2002 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002002#include "confdefs.h"
2003find_stack_direction ()
2004{
2005 static char *addr = 0;
2006 auto char dummy;
2007 if (addr == 0)
2008 {
2009 addr = &dummy;
2010 return find_stack_direction ();
2011 }
2012 else
2013 return (&dummy > addr) ? 1 : -1;
2014}
2015main ()
2016{
2017 exit (find_stack_direction() < 0);
2018}
2019EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04002020if { (eval echo configure:2021: \"$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 +00002021then
2022 ac_cv_c_stack_direction=1
2023else
2024 echo "configure: failed program was:" >&5
2025 cat conftest.$ac_ext >&5
2026 rm -fr conftest*
2027 ac_cv_c_stack_direction=-1
2028fi
2029rm -fr conftest*
2030fi
2031
2032fi
2033
2034echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2035cat >> confdefs.h <<EOF
2036#define STACK_DIRECTION $ac_cv_c_stack_direction
2037EOF
2038
2039fi
2040
2041for ac_hdr in unistd.h
2042do
2043ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2044echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04002045echo "configure:2046: checking for $ac_hdr" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002046if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2047 echo $ac_n "(cached) $ac_c" 1>&6
2048else
2049 cat > conftest.$ac_ext <<EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04002050#line 2051 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002051#include "confdefs.h"
2052#include <$ac_hdr>
2053EOF
2054ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04002055{ (eval echo configure:2056: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002056ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2057if test -z "$ac_err"; then
2058 rm -rf conftest*
2059 eval "ac_cv_header_$ac_safe=yes"
2060else
2061 echo "$ac_err" >&5
2062 echo "configure: failed program was:" >&5
2063 cat conftest.$ac_ext >&5
2064 rm -rf conftest*
2065 eval "ac_cv_header_$ac_safe=no"
2066fi
2067rm -f conftest*
2068fi
2069if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2070 echo "$ac_t""yes" 1>&6
2071 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2072 cat >> confdefs.h <<EOF
2073#define $ac_tr_hdr 1
2074EOF
2075
2076else
2077 echo "$ac_t""no" 1>&6
2078fi
2079done
2080
2081for ac_func in getpagesize
2082do
2083echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04002084echo "configure:2085: checking for $ac_func" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002085if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2086 echo $ac_n "(cached) $ac_c" 1>&6
2087else
2088 cat > conftest.$ac_ext <<EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04002089#line 2090 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002090#include "confdefs.h"
2091/* System header to define __stub macros and hopefully few prototypes,
2092 which can conflict with char $ac_func(); below. */
2093#include <assert.h>
2094/* Override any gcc2 internal prototype to avoid an error. */
2095/* We use char because int might match the return type of a gcc2
2096 builtin and then its argument prototype would still apply. */
2097char $ac_func();
2098
2099int main() {
2100
2101/* The GNU C library defines this for functions which it implements
2102 to always fail with ENOSYS. Some functions are actually named
2103 something starting with __ and the normal name is an alias. */
2104#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2105choke me
2106#else
2107$ac_func();
2108#endif
2109
2110; return 0; }
2111EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04002112if { (eval echo configure:2113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002113 rm -rf conftest*
2114 eval "ac_cv_func_$ac_func=yes"
2115else
2116 echo "configure: failed program was:" >&5
2117 cat conftest.$ac_ext >&5
2118 rm -rf conftest*
2119 eval "ac_cv_func_$ac_func=no"
2120fi
2121rm -f conftest*
2122fi
2123
2124if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2125 echo "$ac_t""yes" 1>&6
2126 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2127 cat >> confdefs.h <<EOF
2128#define $ac_tr_func 1
2129EOF
2130
2131else
2132 echo "$ac_t""no" 1>&6
2133fi
2134done
2135
2136echo $ac_n "checking for working mmap""... $ac_c" 1>&6
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04002137echo "configure:2138: checking for working mmap" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002138if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2139 echo $ac_n "(cached) $ac_c" 1>&6
2140else
2141 if test "$cross_compiling" = yes; then
2142 ac_cv_func_mmap_fixed_mapped=no
2143else
2144 cat > conftest.$ac_ext <<EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04002145#line 2146 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002146#include "confdefs.h"
2147
2148/* Thanks to Mike Haertel and Jim Avera for this test.
2149 Here is a matrix of mmap possibilities:
2150 mmap private not fixed
2151 mmap private fixed at somewhere currently unmapped
2152 mmap private fixed at somewhere already mapped
2153 mmap shared not fixed
2154 mmap shared fixed at somewhere currently unmapped
2155 mmap shared fixed at somewhere already mapped
2156 For private mappings, we should verify that changes cannot be read()
2157 back from the file, nor mmap's back from the file at a different
2158 address. (There have been systems where private was not correctly
2159 implemented like the infamous i386 svr4.0, and systems where the
2160 VM page cache was not coherent with the filesystem buffer cache
2161 like early versions of FreeBSD and possibly contemporary NetBSD.)
2162 For shared mappings, we should conversely verify that changes get
2163 propogated back to all the places they're supposed to be.
2164
2165 Grep wants private fixed already mapped.
2166 The main things grep needs to know about mmap are:
2167 * does it exist and is it safe to write into the mmap'd area
2168 * how to use it (BSD variants) */
2169#include <sys/types.h>
2170#include <fcntl.h>
2171#include <sys/mman.h>
2172
2173/* This mess was copied from the GNU getpagesize.h. */
2174#ifndef HAVE_GETPAGESIZE
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002175# ifdef HAVE_UNISTD_H
2176# include <unistd.h>
2177# endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002178
2179/* Assume that all systems that can run configure have sys/param.h. */
2180# ifndef HAVE_SYS_PARAM_H
2181# define HAVE_SYS_PARAM_H 1
2182# endif
2183
2184# ifdef _SC_PAGESIZE
2185# define getpagesize() sysconf(_SC_PAGESIZE)
2186# else /* no _SC_PAGESIZE */
2187# ifdef HAVE_SYS_PARAM_H
2188# include <sys/param.h>
2189# ifdef EXEC_PAGESIZE
2190# define getpagesize() EXEC_PAGESIZE
2191# else /* no EXEC_PAGESIZE */
2192# ifdef NBPG
2193# define getpagesize() NBPG * CLSIZE
2194# ifndef CLSIZE
2195# define CLSIZE 1
2196# endif /* no CLSIZE */
2197# else /* no NBPG */
2198# ifdef NBPC
2199# define getpagesize() NBPC
2200# else /* no NBPC */
2201# ifdef PAGESIZE
2202# define getpagesize() PAGESIZE
2203# endif /* PAGESIZE */
2204# endif /* no NBPC */
2205# endif /* no NBPG */
2206# endif /* no EXEC_PAGESIZE */
2207# else /* no HAVE_SYS_PARAM_H */
2208# define getpagesize() 8192 /* punt totally */
2209# endif /* no HAVE_SYS_PARAM_H */
2210# endif /* no _SC_PAGESIZE */
2211
2212#endif /* no HAVE_GETPAGESIZE */
2213
2214#ifdef __cplusplus
2215extern "C" { void *malloc(unsigned); }
2216#else
2217char *malloc();
2218#endif
2219
2220int
2221main()
2222{
2223 char *data, *data2, *data3;
2224 int i, pagesize;
2225 int fd;
2226
2227 pagesize = getpagesize();
2228
2229 /*
2230 * First, make a file with some known garbage in it.
2231 */
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002232 data = malloc(pagesize);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002233 if (!data)
2234 exit(1);
2235 for (i = 0; i < pagesize; ++i)
2236 *(data + i) = rand();
2237 umask(0);
2238 fd = creat("conftestmmap", 0600);
2239 if (fd < 0)
2240 exit(1);
2241 if (write(fd, data, pagesize) != pagesize)
2242 exit(1);
2243 close(fd);
2244
2245 /*
2246 * Next, try to mmap the file at a fixed address which
2247 * already has something else allocated at it. If we can,
2248 * also make sure that we see the same garbage.
2249 */
2250 fd = open("conftestmmap", O_RDWR);
2251 if (fd < 0)
2252 exit(1);
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002253 data2 = malloc(2 * pagesize);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002254 if (!data2)
2255 exit(1);
2256 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2257 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2258 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2259 exit(1);
2260 for (i = 0; i < pagesize; ++i)
2261 if (*(data + i) != *(data2 + i))
2262 exit(1);
2263
2264 /*
2265 * Finally, make sure that changes to the mapped area
2266 * do not percolate back to the file as seen by read().
2267 * (This is a bug on some variants of i386 svr4.0.)
2268 */
2269 for (i = 0; i < pagesize; ++i)
2270 *(data2 + i) = *(data2 + i) + 1;
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002271 data3 = malloc(pagesize);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002272 if (!data3)
2273 exit(1);
2274 if (read(fd, data3, pagesize) != pagesize)
2275 exit(1);
2276 for (i = 0; i < pagesize; ++i)
2277 if (*(data + i) != *(data3 + i))
2278 exit(1);
2279 close(fd);
2280 unlink("conftestmmap");
2281 exit(0);
2282}
2283
2284EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04002285if { (eval echo configure:2286: \"$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 +00002286then
2287 ac_cv_func_mmap_fixed_mapped=yes
2288else
2289 echo "configure: failed program was:" >&5
2290 cat conftest.$ac_ext >&5
2291 rm -fr conftest*
2292 ac_cv_func_mmap_fixed_mapped=no
2293fi
2294rm -fr conftest*
2295fi
2296
2297fi
2298
2299echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2300if test $ac_cv_func_mmap_fixed_mapped = yes; then
2301 cat >> confdefs.h <<\EOF
2302#define HAVE_MMAP 1
2303EOF
2304
2305fi
2306
2307
2308 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2309unistd.h sys/param.h
2310do
2311ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2312echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04002313echo "configure:2314: checking for $ac_hdr" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002314if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2315 echo $ac_n "(cached) $ac_c" 1>&6
2316else
2317 cat > conftest.$ac_ext <<EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04002318#line 2319 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002319#include "confdefs.h"
2320#include <$ac_hdr>
2321EOF
2322ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04002323{ (eval echo configure:2324: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002324ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2325if test -z "$ac_err"; then
2326 rm -rf conftest*
2327 eval "ac_cv_header_$ac_safe=yes"
2328else
2329 echo "$ac_err" >&5
2330 echo "configure: failed program was:" >&5
2331 cat conftest.$ac_ext >&5
2332 rm -rf conftest*
2333 eval "ac_cv_header_$ac_safe=no"
2334fi
2335rm -f conftest*
2336fi
2337if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2338 echo "$ac_t""yes" 1>&6
2339 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2340 cat >> confdefs.h <<EOF
2341#define $ac_tr_hdr 1
2342EOF
2343
2344else
2345 echo "$ac_t""no" 1>&6
2346fi
2347done
2348
2349 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2350strdup __argz_count __argz_stringify __argz_next
2351do
2352echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04002353echo "configure:2354: checking for $ac_func" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002354if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2355 echo $ac_n "(cached) $ac_c" 1>&6
2356else
2357 cat > conftest.$ac_ext <<EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04002358#line 2359 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002359#include "confdefs.h"
2360/* System header to define __stub macros and hopefully few prototypes,
2361 which can conflict with char $ac_func(); below. */
2362#include <assert.h>
2363/* Override any gcc2 internal prototype to avoid an error. */
2364/* We use char because int might match the return type of a gcc2
2365 builtin and then its argument prototype would still apply. */
2366char $ac_func();
2367
2368int main() {
2369
2370/* The GNU C library defines this for functions which it implements
2371 to always fail with ENOSYS. Some functions are actually named
2372 something starting with __ and the normal name is an alias. */
2373#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2374choke me
2375#else
2376$ac_func();
2377#endif
2378
2379; return 0; }
2380EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04002381if { (eval echo configure:2382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002382 rm -rf conftest*
2383 eval "ac_cv_func_$ac_func=yes"
2384else
2385 echo "configure: failed program was:" >&5
2386 cat conftest.$ac_ext >&5
2387 rm -rf conftest*
2388 eval "ac_cv_func_$ac_func=no"
2389fi
2390rm -f conftest*
2391fi
2392
2393if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2394 echo "$ac_t""yes" 1>&6
2395 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2396 cat >> confdefs.h <<EOF
2397#define $ac_tr_func 1
2398EOF
2399
2400else
2401 echo "$ac_t""no" 1>&6
2402fi
2403done
2404
2405
2406 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2407 for ac_func in stpcpy
2408do
2409echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04002410echo "configure:2411: checking for $ac_func" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002411if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2412 echo $ac_n "(cached) $ac_c" 1>&6
2413else
2414 cat > conftest.$ac_ext <<EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04002415#line 2416 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002416#include "confdefs.h"
2417/* System header to define __stub macros and hopefully few prototypes,
2418 which can conflict with char $ac_func(); below. */
2419#include <assert.h>
2420/* Override any gcc2 internal prototype to avoid an error. */
2421/* We use char because int might match the return type of a gcc2
2422 builtin and then its argument prototype would still apply. */
2423char $ac_func();
2424
2425int main() {
2426
2427/* The GNU C library defines this for functions which it implements
2428 to always fail with ENOSYS. Some functions are actually named
2429 something starting with __ and the normal name is an alias. */
2430#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2431choke me
2432#else
2433$ac_func();
2434#endif
2435
2436; return 0; }
2437EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04002438if { (eval echo configure:2439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002439 rm -rf conftest*
2440 eval "ac_cv_func_$ac_func=yes"
2441else
2442 echo "configure: failed program was:" >&5
2443 cat conftest.$ac_ext >&5
2444 rm -rf conftest*
2445 eval "ac_cv_func_$ac_func=no"
2446fi
2447rm -f conftest*
2448fi
2449
2450if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2451 echo "$ac_t""yes" 1>&6
2452 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2453 cat >> confdefs.h <<EOF
2454#define $ac_tr_func 1
2455EOF
2456
2457else
2458 echo "$ac_t""no" 1>&6
2459fi
2460done
2461
2462 fi
2463 if test "${ac_cv_func_stpcpy}" = "yes"; then
2464 cat >> confdefs.h <<\EOF
2465#define HAVE_STPCPY 1
2466EOF
2467
2468 fi
2469
2470 if test $ac_cv_header_locale_h = yes; then
2471 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04002472echo "configure:2473: checking for LC_MESSAGES" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002473if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2474 echo $ac_n "(cached) $ac_c" 1>&6
2475else
2476 cat > conftest.$ac_ext <<EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04002477#line 2478 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002478#include "confdefs.h"
2479#include <locale.h>
2480int main() {
2481return LC_MESSAGES
2482; return 0; }
2483EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04002484if { (eval echo configure:2485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002485 rm -rf conftest*
2486 am_cv_val_LC_MESSAGES=yes
2487else
2488 echo "configure: failed program was:" >&5
2489 cat conftest.$ac_ext >&5
2490 rm -rf conftest*
2491 am_cv_val_LC_MESSAGES=no
2492fi
2493rm -f conftest*
2494fi
2495
2496echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2497 if test $am_cv_val_LC_MESSAGES = yes; then
2498 cat >> confdefs.h <<\EOF
2499#define HAVE_LC_MESSAGES 1
2500EOF
2501
2502 fi
2503 fi
2504 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04002505echo "configure:2506: checking whether NLS is requested" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002506 # Check whether --enable-nls or --disable-nls was given.
2507if test "${enable_nls+set}" = set; then
2508 enableval="$enable_nls"
2509 USE_NLS=$enableval
2510else
2511 USE_NLS=no
2512fi
2513
2514 echo "$ac_t""$USE_NLS" 1>&6
2515
2516
2517 USE_INCLUDED_LIBINTL=no
2518
2519 if test "$USE_NLS" = "yes"; then
2520 cat >> confdefs.h <<\EOF
2521#define ENABLE_NLS 1
2522EOF
2523
2524 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04002525echo "configure:2526: checking whether included gettext is requested" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002526 # Check whether --with-included-gettext or --without-included-gettext was given.
2527if test "${with_included_gettext+set}" = set; then
2528 withval="$with_included_gettext"
2529 nls_cv_force_use_gnu_gettext=$withval
2530else
2531 nls_cv_force_use_gnu_gettext=no
2532fi
2533
2534 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2535
2536 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2537 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2538 nls_cv_header_intl=
2539 nls_cv_header_libgt=
2540 CATOBJEXT=NONE
2541
2542 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2543echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04002544echo "configure:2545: checking for libintl.h" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002545if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2546 echo $ac_n "(cached) $ac_c" 1>&6
2547else
2548 cat > conftest.$ac_ext <<EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04002549#line 2550 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002550#include "confdefs.h"
2551#include <libintl.h>
2552EOF
2553ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04002554{ (eval echo configure:2555: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002555ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2556if test -z "$ac_err"; then
2557 rm -rf conftest*
2558 eval "ac_cv_header_$ac_safe=yes"
2559else
2560 echo "$ac_err" >&5
2561 echo "configure: failed program was:" >&5
2562 cat conftest.$ac_ext >&5
2563 rm -rf conftest*
2564 eval "ac_cv_header_$ac_safe=no"
2565fi
2566rm -f conftest*
2567fi
2568if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2569 echo "$ac_t""yes" 1>&6
2570 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04002571echo "configure:2572: checking for gettext in libc" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002572if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2573 echo $ac_n "(cached) $ac_c" 1>&6
2574else
2575 cat > conftest.$ac_ext <<EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04002576#line 2577 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002577#include "confdefs.h"
2578#include <libintl.h>
2579int main() {
2580return (int) gettext ("")
2581; return 0; }
2582EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04002583if { (eval echo configure:2584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002584 rm -rf conftest*
2585 gt_cv_func_gettext_libc=yes
2586else
2587 echo "configure: failed program was:" >&5
2588 cat conftest.$ac_ext >&5
2589 rm -rf conftest*
2590 gt_cv_func_gettext_libc=no
2591fi
2592rm -f conftest*
2593fi
2594
2595echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2596
2597 if test "$gt_cv_func_gettext_libc" != "yes"; then
2598 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04002599echo "configure:2600: checking for bindtextdomain in -lintl" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002600ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2601if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2602 echo $ac_n "(cached) $ac_c" 1>&6
2603else
2604 ac_save_LIBS="$LIBS"
2605LIBS="-lintl $LIBS"
2606cat > conftest.$ac_ext <<EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04002607#line 2608 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002608#include "confdefs.h"
2609/* Override any gcc2 internal prototype to avoid an error. */
2610/* We use char because int might match the return type of a gcc2
2611 builtin and then its argument prototype would still apply. */
2612char bindtextdomain();
2613
2614int main() {
2615bindtextdomain()
2616; return 0; }
2617EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04002618if { (eval echo configure:2619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002619 rm -rf conftest*
2620 eval "ac_cv_lib_$ac_lib_var=yes"
2621else
2622 echo "configure: failed program was:" >&5
2623 cat conftest.$ac_ext >&5
2624 rm -rf conftest*
2625 eval "ac_cv_lib_$ac_lib_var=no"
2626fi
2627rm -f conftest*
2628LIBS="$ac_save_LIBS"
2629
2630fi
2631if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2632 echo "$ac_t""yes" 1>&6
2633 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04002634echo "configure:2635: checking for gettext in libintl" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002635if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2636 echo $ac_n "(cached) $ac_c" 1>&6
2637else
2638 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04002639echo "configure:2640: checking for gettext in -lintl" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002640ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
2641if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2642 echo $ac_n "(cached) $ac_c" 1>&6
2643else
2644 ac_save_LIBS="$LIBS"
2645LIBS="-lintl $LIBS"
2646cat > conftest.$ac_ext <<EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04002647#line 2648 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002648#include "confdefs.h"
2649/* Override any gcc2 internal prototype to avoid an error. */
2650/* We use char because int might match the return type of a gcc2
2651 builtin and then its argument prototype would still apply. */
2652char gettext();
2653
2654int main() {
2655gettext()
2656; return 0; }
2657EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04002658if { (eval echo configure:2659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002659 rm -rf conftest*
2660 eval "ac_cv_lib_$ac_lib_var=yes"
2661else
2662 echo "configure: failed program was:" >&5
2663 cat conftest.$ac_ext >&5
2664 rm -rf conftest*
2665 eval "ac_cv_lib_$ac_lib_var=no"
2666fi
2667rm -f conftest*
2668LIBS="$ac_save_LIBS"
2669
2670fi
2671if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2672 echo "$ac_t""yes" 1>&6
2673 gt_cv_func_gettext_libintl=yes
2674else
2675 echo "$ac_t""no" 1>&6
2676gt_cv_func_gettext_libintl=no
2677fi
2678
2679fi
2680
2681echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2682else
2683 echo "$ac_t""no" 1>&6
2684fi
2685
2686 fi
2687
2688 if test "$gt_cv_func_gettext_libc" = "yes" \
2689 || test "$gt_cv_func_gettext_libintl" = "yes"; then
2690 cat >> confdefs.h <<\EOF
2691#define HAVE_GETTEXT 1
2692EOF
2693
2694 # Extract the first word of "msgfmt", so it can be a program name with args.
2695set dummy msgfmt; ac_word=$2
2696echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04002697echo "configure:2698: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002698if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2699 echo $ac_n "(cached) $ac_c" 1>&6
2700else
2701 case "$MSGFMT" in
2702 /*)
2703 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2704 ;;
2705 *)
2706 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2707 for ac_dir in $PATH; do
2708 test -z "$ac_dir" && ac_dir=.
2709 if test -f $ac_dir/$ac_word; then
2710 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2711 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2712 break
2713 fi
2714 fi
2715 done
2716 IFS="$ac_save_ifs"
2717 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
2718 ;;
2719esac
2720fi
2721MSGFMT="$ac_cv_path_MSGFMT"
2722if test -n "$MSGFMT"; then
2723 echo "$ac_t""$MSGFMT" 1>&6
2724else
2725 echo "$ac_t""no" 1>&6
2726fi
2727 if test "$MSGFMT" != "no"; then
2728 for ac_func in dcgettext
2729do
2730echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04002731echo "configure:2732: checking for $ac_func" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002732if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2733 echo $ac_n "(cached) $ac_c" 1>&6
2734else
2735 cat > conftest.$ac_ext <<EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04002736#line 2737 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002737#include "confdefs.h"
2738/* System header to define __stub macros and hopefully few prototypes,
2739 which can conflict with char $ac_func(); below. */
2740#include <assert.h>
2741/* Override any gcc2 internal prototype to avoid an error. */
2742/* We use char because int might match the return type of a gcc2
2743 builtin and then its argument prototype would still apply. */
2744char $ac_func();
2745
2746int main() {
2747
2748/* The GNU C library defines this for functions which it implements
2749 to always fail with ENOSYS. Some functions are actually named
2750 something starting with __ and the normal name is an alias. */
2751#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2752choke me
2753#else
2754$ac_func();
2755#endif
2756
2757; return 0; }
2758EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04002759if { (eval echo configure:2760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002760 rm -rf conftest*
2761 eval "ac_cv_func_$ac_func=yes"
2762else
2763 echo "configure: failed program was:" >&5
2764 cat conftest.$ac_ext >&5
2765 rm -rf conftest*
2766 eval "ac_cv_func_$ac_func=no"
2767fi
2768rm -f conftest*
2769fi
2770
2771if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2772 echo "$ac_t""yes" 1>&6
2773 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2774 cat >> confdefs.h <<EOF
2775#define $ac_tr_func 1
2776EOF
2777
2778else
2779 echo "$ac_t""no" 1>&6
2780fi
2781done
2782
2783 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2784set dummy gmsgfmt; ac_word=$2
2785echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04002786echo "configure:2787: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002787if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2788 echo $ac_n "(cached) $ac_c" 1>&6
2789else
2790 case "$GMSGFMT" in
2791 /*)
2792 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2793 ;;
2794 ?:/*)
2795 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2796 ;;
2797 *)
2798 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2799 ac_dummy="$PATH"
2800 for ac_dir in $ac_dummy; do
2801 test -z "$ac_dir" && ac_dir=.
2802 if test -f $ac_dir/$ac_word; then
2803 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2804 break
2805 fi
2806 done
2807 IFS="$ac_save_ifs"
2808 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2809 ;;
2810esac
2811fi
2812GMSGFMT="$ac_cv_path_GMSGFMT"
2813if test -n "$GMSGFMT"; then
2814 echo "$ac_t""$GMSGFMT" 1>&6
2815else
2816 echo "$ac_t""no" 1>&6
2817fi
2818
2819 # Extract the first word of "xgettext", so it can be a program name with args.
2820set dummy xgettext; ac_word=$2
2821echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04002822echo "configure:2823: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002823if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2824 echo $ac_n "(cached) $ac_c" 1>&6
2825else
2826 case "$XGETTEXT" in
2827 /*)
2828 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2829 ;;
2830 *)
2831 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2832 for ac_dir in $PATH; do
2833 test -z "$ac_dir" && ac_dir=.
2834 if test -f $ac_dir/$ac_word; then
2835 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2836 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2837 break
2838 fi
2839 fi
2840 done
2841 IFS="$ac_save_ifs"
2842 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2843 ;;
2844esac
2845fi
2846XGETTEXT="$ac_cv_path_XGETTEXT"
2847if test -n "$XGETTEXT"; then
2848 echo "$ac_t""$XGETTEXT" 1>&6
2849else
2850 echo "$ac_t""no" 1>&6
2851fi
2852
2853 cat > conftest.$ac_ext <<EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04002854#line 2855 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002855#include "confdefs.h"
2856
2857int main() {
2858extern int _nl_msg_cat_cntr;
2859 return _nl_msg_cat_cntr
2860; return 0; }
2861EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04002862if { (eval echo configure:2863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002863 rm -rf conftest*
2864 CATOBJEXT=.gmo
2865 DATADIRNAME=share
2866else
2867 echo "configure: failed program was:" >&5
2868 cat conftest.$ac_ext >&5
2869 rm -rf conftest*
2870 CATOBJEXT=.mo
2871 DATADIRNAME=lib
2872fi
2873rm -f conftest*
2874 INSTOBJEXT=.mo
2875 fi
2876 fi
2877
2878else
2879 echo "$ac_t""no" 1>&6
2880fi
2881
2882
2883 if test "$CATOBJEXT" = "NONE"; then
2884 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04002885echo "configure:2886: checking whether catgets can be used" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002886 # Check whether --with-catgets or --without-catgets was given.
2887if test "${with_catgets+set}" = set; then
2888 withval="$with_catgets"
2889 nls_cv_use_catgets=$withval
2890else
2891 nls_cv_use_catgets=no
2892fi
2893
2894 echo "$ac_t""$nls_cv_use_catgets" 1>&6
2895
2896 if test "$nls_cv_use_catgets" = "yes"; then
2897 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04002898echo "configure:2899: checking for main in -li" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002899ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'`
2900if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2901 echo $ac_n "(cached) $ac_c" 1>&6
2902else
2903 ac_save_LIBS="$LIBS"
2904LIBS="-li $LIBS"
2905cat > conftest.$ac_ext <<EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04002906#line 2907 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002907#include "confdefs.h"
2908
2909int main() {
2910main()
2911; return 0; }
2912EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04002913if { (eval echo configure:2914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002914 rm -rf conftest*
2915 eval "ac_cv_lib_$ac_lib_var=yes"
2916else
2917 echo "configure: failed program was:" >&5
2918 cat conftest.$ac_ext >&5
2919 rm -rf conftest*
2920 eval "ac_cv_lib_$ac_lib_var=no"
2921fi
2922rm -f conftest*
2923LIBS="$ac_save_LIBS"
2924
2925fi
2926if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2927 echo "$ac_t""yes" 1>&6
2928 ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2929 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2930 cat >> confdefs.h <<EOF
2931#define $ac_tr_lib 1
2932EOF
2933
2934 LIBS="-li $LIBS"
2935
2936else
2937 echo "$ac_t""no" 1>&6
2938fi
2939
2940 echo $ac_n "checking for catgets""... $ac_c" 1>&6
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04002941echo "configure:2942: checking for catgets" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002942if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
2943 echo $ac_n "(cached) $ac_c" 1>&6
2944else
2945 cat > conftest.$ac_ext <<EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04002946#line 2947 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002947#include "confdefs.h"
2948/* System header to define __stub macros and hopefully few prototypes,
2949 which can conflict with char catgets(); below. */
2950#include <assert.h>
2951/* Override any gcc2 internal prototype to avoid an error. */
2952/* We use char because int might match the return type of a gcc2
2953 builtin and then its argument prototype would still apply. */
2954char catgets();
2955
2956int main() {
2957
2958/* The GNU C library defines this for functions which it implements
2959 to always fail with ENOSYS. Some functions are actually named
2960 something starting with __ and the normal name is an alias. */
2961#if defined (__stub_catgets) || defined (__stub___catgets)
2962choke me
2963#else
2964catgets();
2965#endif
2966
2967; return 0; }
2968EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04002969if { (eval echo configure:2970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002970 rm -rf conftest*
2971 eval "ac_cv_func_catgets=yes"
2972else
2973 echo "configure: failed program was:" >&5
2974 cat conftest.$ac_ext >&5
2975 rm -rf conftest*
2976 eval "ac_cv_func_catgets=no"
2977fi
2978rm -f conftest*
2979fi
2980
2981if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
2982 echo "$ac_t""yes" 1>&6
2983 cat >> confdefs.h <<\EOF
2984#define HAVE_CATGETS 1
2985EOF
2986
2987 INTLOBJS="\$(CATOBJS)"
2988 # Extract the first word of "gencat", so it can be a program name with args.
2989set dummy gencat; ac_word=$2
2990echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04002991echo "configure:2992: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002992if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
2993 echo $ac_n "(cached) $ac_c" 1>&6
2994else
2995 case "$GENCAT" in
2996 /*)
2997 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
2998 ;;
2999 ?:/*)
3000 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path.
3001 ;;
3002 *)
3003 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3004 ac_dummy="$PATH"
3005 for ac_dir in $ac_dummy; do
3006 test -z "$ac_dir" && ac_dir=.
3007 if test -f $ac_dir/$ac_word; then
3008 ac_cv_path_GENCAT="$ac_dir/$ac_word"
3009 break
3010 fi
3011 done
3012 IFS="$ac_save_ifs"
3013 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
3014 ;;
3015esac
3016fi
3017GENCAT="$ac_cv_path_GENCAT"
3018if test -n "$GENCAT"; then
3019 echo "$ac_t""$GENCAT" 1>&6
3020else
3021 echo "$ac_t""no" 1>&6
3022fi
3023 if test "$GENCAT" != "no"; then
3024 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3025set dummy gmsgfmt; ac_word=$2
3026echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003027echo "configure:3028: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003028if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3029 echo $ac_n "(cached) $ac_c" 1>&6
3030else
3031 case "$GMSGFMT" in
3032 /*)
3033 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3034 ;;
3035 ?:/*)
3036 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3037 ;;
3038 *)
3039 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3040 ac_dummy="$PATH"
3041 for ac_dir in $ac_dummy; do
3042 test -z "$ac_dir" && ac_dir=.
3043 if test -f $ac_dir/$ac_word; then
3044 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3045 break
3046 fi
3047 done
3048 IFS="$ac_save_ifs"
3049 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
3050 ;;
3051esac
3052fi
3053GMSGFMT="$ac_cv_path_GMSGFMT"
3054if test -n "$GMSGFMT"; then
3055 echo "$ac_t""$GMSGFMT" 1>&6
3056else
3057 echo "$ac_t""no" 1>&6
3058fi
3059
3060 if test "$GMSGFMT" = "no"; then
3061 # Extract the first word of "msgfmt", so it can be a program name with args.
3062set dummy msgfmt; ac_word=$2
3063echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003064echo "configure:3065: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003065if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3066 echo $ac_n "(cached) $ac_c" 1>&6
3067else
3068 case "$GMSGFMT" in
3069 /*)
3070 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3071 ;;
3072 *)
3073 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3074 for ac_dir in $PATH; do
3075 test -z "$ac_dir" && ac_dir=.
3076 if test -f $ac_dir/$ac_word; then
3077 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3078 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3079 break
3080 fi
3081 fi
3082 done
3083 IFS="$ac_save_ifs"
3084 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
3085 ;;
3086esac
3087fi
3088GMSGFMT="$ac_cv_path_GMSGFMT"
3089if test -n "$GMSGFMT"; then
3090 echo "$ac_t""$GMSGFMT" 1>&6
3091else
3092 echo "$ac_t""no" 1>&6
3093fi
3094
3095 fi
3096 # Extract the first word of "xgettext", so it can be a program name with args.
3097set dummy xgettext; ac_word=$2
3098echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003099echo "configure:3100: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003100if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3101 echo $ac_n "(cached) $ac_c" 1>&6
3102else
3103 case "$XGETTEXT" in
3104 /*)
3105 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3106 ;;
3107 *)
3108 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3109 for ac_dir in $PATH; do
3110 test -z "$ac_dir" && ac_dir=.
3111 if test -f $ac_dir/$ac_word; then
3112 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3113 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3114 break
3115 fi
3116 fi
3117 done
3118 IFS="$ac_save_ifs"
3119 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3120 ;;
3121esac
3122fi
3123XGETTEXT="$ac_cv_path_XGETTEXT"
3124if test -n "$XGETTEXT"; then
3125 echo "$ac_t""$XGETTEXT" 1>&6
3126else
3127 echo "$ac_t""no" 1>&6
3128fi
3129
3130 USE_INCLUDED_LIBINTL=yes
3131 CATOBJEXT=.cat
3132 INSTOBJEXT=.cat
3133 DATADIRNAME=lib
3134 INTLDEPS='$(top_builddir)/intl/libintl.a'
3135 INTLLIBS=$INTLDEPS
3136 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
3137 nls_cv_header_intl=intl/libintl.h
3138 nls_cv_header_libgt=intl/libgettext.h
3139 fi
3140else
3141 echo "$ac_t""no" 1>&6
3142fi
3143
3144 fi
3145 fi
3146
3147 if test "$CATOBJEXT" = "NONE"; then
3148 nls_cv_use_gnu_gettext=yes
3149 fi
3150 fi
3151
3152 if test "$nls_cv_use_gnu_gettext" = "yes"; then
3153 INTLOBJS="\$(GETTOBJS)"
3154 # Extract the first word of "msgfmt", so it can be a program name with args.
3155set dummy msgfmt; ac_word=$2
3156echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003157echo "configure:3158: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003158if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3159 echo $ac_n "(cached) $ac_c" 1>&6
3160else
3161 case "$MSGFMT" in
3162 /*)
3163 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3164 ;;
3165 *)
3166 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3167 for ac_dir in $PATH; do
3168 test -z "$ac_dir" && ac_dir=.
3169 if test -f $ac_dir/$ac_word; then
3170 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3171 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3172 break
3173 fi
3174 fi
3175 done
3176 IFS="$ac_save_ifs"
3177 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
3178 ;;
3179esac
3180fi
3181MSGFMT="$ac_cv_path_MSGFMT"
3182if test -n "$MSGFMT"; then
3183 echo "$ac_t""$MSGFMT" 1>&6
3184else
3185 echo "$ac_t""no" 1>&6
3186fi
3187
3188 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3189set dummy gmsgfmt; ac_word=$2
3190echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003191echo "configure:3192: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003192if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3193 echo $ac_n "(cached) $ac_c" 1>&6
3194else
3195 case "$GMSGFMT" in
3196 /*)
3197 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3198 ;;
3199 ?:/*)
3200 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3201 ;;
3202 *)
3203 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3204 ac_dummy="$PATH"
3205 for ac_dir in $ac_dummy; do
3206 test -z "$ac_dir" && ac_dir=.
3207 if test -f $ac_dir/$ac_word; then
3208 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3209 break
3210 fi
3211 done
3212 IFS="$ac_save_ifs"
3213 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3214 ;;
3215esac
3216fi
3217GMSGFMT="$ac_cv_path_GMSGFMT"
3218if test -n "$GMSGFMT"; then
3219 echo "$ac_t""$GMSGFMT" 1>&6
3220else
3221 echo "$ac_t""no" 1>&6
3222fi
3223
3224 # Extract the first word of "xgettext", so it can be a program name with args.
3225set dummy xgettext; ac_word=$2
3226echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003227echo "configure:3228: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003228if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3229 echo $ac_n "(cached) $ac_c" 1>&6
3230else
3231 case "$XGETTEXT" in
3232 /*)
3233 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3234 ;;
3235 *)
3236 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3237 for ac_dir in $PATH; do
3238 test -z "$ac_dir" && ac_dir=.
3239 if test -f $ac_dir/$ac_word; then
3240 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3241 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3242 break
3243 fi
3244 fi
3245 done
3246 IFS="$ac_save_ifs"
3247 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3248 ;;
3249esac
3250fi
3251XGETTEXT="$ac_cv_path_XGETTEXT"
3252if test -n "$XGETTEXT"; then
3253 echo "$ac_t""$XGETTEXT" 1>&6
3254else
3255 echo "$ac_t""no" 1>&6
3256fi
3257
3258
3259 USE_INCLUDED_LIBINTL=yes
3260 CATOBJEXT=.gmo
3261 INSTOBJEXT=.mo
3262 DATADIRNAME=share
3263 INTLDEPS='$(top_builddir)/intl/libintl.a'
3264 INTLLIBS=$INTLDEPS
3265 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
3266 nls_cv_header_intl=intl/libintl.h
3267 nls_cv_header_libgt=intl/libgettext.h
3268 fi
3269
3270 if test "$XGETTEXT" != ":"; then
3271 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
3272 : ;
3273 else
3274 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
3275 XGETTEXT=":"
3276 fi
3277 fi
3278
3279 # We need to process the po/ directory.
3280 POSUB=po
3281 else
3282 DATADIRNAME=share
3283 nls_cv_header_intl=intl/libintl.h
3284 nls_cv_header_libgt=intl/libgettext.h
3285 fi
3286
3287
3288
3289
3290 # If this is used in GNU gettext we have to set USE_NLS to `yes'
3291 # because some of the sources are only built for this goal.
3292 if test "$PACKAGE" = gettext; then
3293 USE_NLS=yes
3294 USE_INCLUDED_LIBINTL=yes
3295 fi
3296
3297 for lang in $ALL_LINGUAS; do
3298 GMOFILES="$GMOFILES $lang.gmo"
3299 POFILES="$POFILES $lang.po"
3300 done
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315 if test "x$CATOBJEXT" != "x"; then
3316 if test "x$ALL_LINGUAS" = "x"; then
3317 LINGUAS=
3318 else
3319 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003320echo "configure:3321: checking for catalogs to be installed" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003321 NEW_LINGUAS=
3322 for lang in ${LINGUAS=$ALL_LINGUAS}; do
3323 case "$ALL_LINGUAS" in
3324 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
3325 esac
3326 done
3327 LINGUAS=$NEW_LINGUAS
3328 echo "$ac_t""$LINGUAS" 1>&6
3329 fi
3330
3331 if test -n "$LINGUAS"; then
3332 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
3333 fi
3334 fi
3335
3336 if test $ac_cv_header_locale_h = yes; then
3337 INCLUDE_LOCALE_H="#include <locale.h>"
3338 else
3339 INCLUDE_LOCALE_H="\
3340/* The system does not provide the header <locale.h>. Take care yourself. */"
3341 fi
3342
3343
3344 test -d intl || mkdir intl
3345 if test "$CATOBJEXT" = ".cat"; then
3346 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
3347echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003348echo "configure:3349: checking for linux/version.h" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003349if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3350 echo $ac_n "(cached) $ac_c" 1>&6
3351else
3352 cat > conftest.$ac_ext <<EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003353#line 3354 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003354#include "confdefs.h"
3355#include <linux/version.h>
3356EOF
3357ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003358{ (eval echo configure:3359: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003359ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3360if test -z "$ac_err"; then
3361 rm -rf conftest*
3362 eval "ac_cv_header_$ac_safe=yes"
3363else
3364 echo "$ac_err" >&5
3365 echo "configure: failed program was:" >&5
3366 cat conftest.$ac_ext >&5
3367 rm -rf conftest*
3368 eval "ac_cv_header_$ac_safe=no"
3369fi
3370rm -f conftest*
3371fi
3372if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3373 echo "$ac_t""yes" 1>&6
3374 msgformat=linux
3375else
3376 echo "$ac_t""no" 1>&6
3377msgformat=xopen
3378fi
3379
3380
3381 sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
3382 fi
3383 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
3384 $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
3385
3386 if test "$PACKAGE" = "gettext"; then
3387 GT_NO="#NO#"
3388 GT_YES=
3389 else
3390 GT_NO=
3391 GT_YES="#YES#"
3392 fi
3393
3394
3395
3396 MKINSTALLDIRS=
3397 if test -n "$ac_aux_dir"; then
3398 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
3399 fi
3400 if test -z "$MKINSTALLDIRS"; then
3401 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3402 fi
3403
3404
3405 l=
3406
3407
3408 test -d po || mkdir po
3409 if test "x$srcdir" != "x."; then
3410 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
3411 posrcprefix="$srcdir/"
3412 else
3413 posrcprefix="../$srcdir/"
3414 fi
3415 else
3416 posrcprefix="../"
3417 fi
3418 rm -f po/POTFILES
3419 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
3420 < $srcdir/po/POTFILES.in > po/POTFILES
3421
Theodore Ts'o74becf31997-04-26 14:37:06 +00003422
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003423echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003424echo "configure:3425: checking whether ${MAKE-make} sets \${MAKE}" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003425set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003426if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
3427 echo $ac_n "(cached) $ac_c" 1>&6
3428else
3429 cat > conftestmake <<\EOF
3430all:
3431 @echo 'ac_maketemp="${MAKE}"'
3432EOF
3433# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3434eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
3435if test -n "$ac_maketemp"; then
3436 eval ac_cv_prog_make_${ac_make}_set=yes
3437else
3438 eval ac_cv_prog_make_${ac_make}_set=no
3439fi
3440rm -f conftestmake
3441fi
3442if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3443 echo "$ac_t""yes" 1>&6
3444 SET_MAKE=
3445else
3446 echo "$ac_t""no" 1>&6
3447 SET_MAKE="MAKE=${MAKE-make}"
3448fi
3449
3450# Extract the first word of "ln", so it can be a program name with args.
3451set dummy ln; ac_word=$2
3452echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003453echo "configure:3454: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003454if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then
3455 echo $ac_n "(cached) $ac_c" 1>&6
3456else
3457 case "$LN" in
3458 /*)
3459 ac_cv_path_LN="$LN" # Let the user override the test with a path.
3460 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003461 ?:/*)
3462 ac_cv_path_LN="$LN" # Let the user override the test with a dos path.
3463 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003464 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003465 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3466 ac_dummy="$PATH"
3467 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003468 test -z "$ac_dir" && ac_dir=.
3469 if test -f $ac_dir/$ac_word; then
3470 ac_cv_path_LN="$ac_dir/$ac_word"
3471 break
3472 fi
3473 done
3474 IFS="$ac_save_ifs"
3475 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
3476 ;;
3477esac
3478fi
3479LN="$ac_cv_path_LN"
3480if test -n "$LN"; then
3481 echo "$ac_t""$LN" 1>&6
3482else
3483 echo "$ac_t""no" 1>&6
3484fi
3485
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00003486echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003487echo "configure:3488: checking whether ln -s works" >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00003488if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
3489 echo $ac_n "(cached) $ac_c" 1>&6
3490else
3491 rm -f conftestdata
3492if ln -s X conftestdata 2>/dev/null
3493then
3494 rm -f conftestdata
3495 ac_cv_prog_LN_S="ln -s"
3496else
3497 ac_cv_prog_LN_S=ln
3498fi
3499fi
3500LN_S="$ac_cv_prog_LN_S"
3501if test "$ac_cv_prog_LN_S" = "ln -s"; then
3502 echo "$ac_t""yes" 1>&6
3503else
3504 echo "$ac_t""no" 1>&6
3505fi
3506
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003507# Extract the first word of "mv", so it can be a program name with args.
3508set dummy mv; ac_word=$2
3509echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003510echo "configure:3511: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003511if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
3512 echo $ac_n "(cached) $ac_c" 1>&6
3513else
3514 case "$MV" in
3515 /*)
3516 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3517 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003518 ?:/*)
3519 ac_cv_path_MV="$MV" # Let the user override the test with a dos path.
3520 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003521 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003522 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3523 ac_dummy="$PATH"
3524 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003525 test -z "$ac_dir" && ac_dir=.
3526 if test -f $ac_dir/$ac_word; then
3527 ac_cv_path_MV="$ac_dir/$ac_word"
3528 break
3529 fi
3530 done
3531 IFS="$ac_save_ifs"
3532 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3533 ;;
3534esac
3535fi
3536MV="$ac_cv_path_MV"
3537if test -n "$MV"; then
3538 echo "$ac_t""$MV" 1>&6
3539else
3540 echo "$ac_t""no" 1>&6
3541fi
3542
3543# Extract the first word of "cp", so it can be a program name with args.
3544set dummy cp; ac_word=$2
3545echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003546echo "configure:3547: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003547if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then
3548 echo $ac_n "(cached) $ac_c" 1>&6
3549else
3550 case "$CP" in
3551 /*)
3552 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3553 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003554 ?:/*)
3555 ac_cv_path_CP="$CP" # Let the user override the test with a dos path.
3556 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003557 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003558 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3559 ac_dummy="$PATH"
3560 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003561 test -z "$ac_dir" && ac_dir=.
3562 if test -f $ac_dir/$ac_word; then
3563 ac_cv_path_CP="$ac_dir/$ac_word"
3564 break
3565 fi
3566 done
3567 IFS="$ac_save_ifs"
3568 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3569 ;;
3570esac
3571fi
3572CP="$ac_cv_path_CP"
3573if test -n "$CP"; then
3574 echo "$ac_t""$CP" 1>&6
3575else
3576 echo "$ac_t""no" 1>&6
3577fi
3578
3579# Extract the first word of "rm", so it can be a program name with args.
3580set dummy rm; ac_word=$2
3581echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003582echo "configure:3583: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003583if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
3584 echo $ac_n "(cached) $ac_c" 1>&6
3585else
3586 case "$RM" in
3587 /*)
3588 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3589 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003590 ?:/*)
3591 ac_cv_path_RM="$RM" # Let the user override the test with a dos path.
3592 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003593 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003594 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3595 ac_dummy="$PATH"
3596 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003597 test -z "$ac_dir" && ac_dir=.
3598 if test -f $ac_dir/$ac_word; then
3599 ac_cv_path_RM="$ac_dir/$ac_word"
3600 break
3601 fi
3602 done
3603 IFS="$ac_save_ifs"
3604 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3605 ;;
3606esac
3607fi
3608RM="$ac_cv_path_RM"
3609if test -n "$RM"; then
3610 echo "$ac_t""$RM" 1>&6
3611else
3612 echo "$ac_t""no" 1>&6
3613fi
3614
3615# Extract the first word of "chmod", so it can be a program name with args.
3616set dummy chmod; ac_word=$2
3617echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003618echo "configure:3619: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003619if eval "test \"`echo '$''{'ac_cv_path_CHMOD'+set}'`\" = set"; then
3620 echo $ac_n "(cached) $ac_c" 1>&6
3621else
3622 case "$CHMOD" in
3623 /*)
3624 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
3625 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003626 ?:/*)
3627 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a dos path.
3628 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003629 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003630 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3631 ac_dummy="$PATH"
3632 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003633 test -z "$ac_dir" && ac_dir=.
3634 if test -f $ac_dir/$ac_word; then
3635 ac_cv_path_CHMOD="$ac_dir/$ac_word"
3636 break
3637 fi
3638 done
3639 IFS="$ac_save_ifs"
3640 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
3641 ;;
3642esac
3643fi
3644CHMOD="$ac_cv_path_CHMOD"
3645if test -n "$CHMOD"; then
3646 echo "$ac_t""$CHMOD" 1>&6
3647else
3648 echo "$ac_t""no" 1>&6
3649fi
3650
3651# Extract the first word of "awk", so it can be a program name with args.
3652set dummy awk; ac_word=$2
3653echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003654echo "configure:3655: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003655if eval "test \"`echo '$''{'ac_cv_path_AWK'+set}'`\" = set"; then
3656 echo $ac_n "(cached) $ac_c" 1>&6
3657else
3658 case "$AWK" in
3659 /*)
3660 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3661 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003662 ?:/*)
3663 ac_cv_path_AWK="$AWK" # Let the user override the test with a dos path.
3664 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003665 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003666 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3667 ac_dummy="$PATH"
3668 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003669 test -z "$ac_dir" && ac_dir=.
3670 if test -f $ac_dir/$ac_word; then
3671 ac_cv_path_AWK="$ac_dir/$ac_word"
3672 break
3673 fi
3674 done
3675 IFS="$ac_save_ifs"
3676 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3677 ;;
3678esac
3679fi
3680AWK="$ac_cv_path_AWK"
3681if test -n "$AWK"; then
3682 echo "$ac_t""$AWK" 1>&6
3683else
3684 echo "$ac_t""no" 1>&6
3685fi
3686
3687# Extract the first word of "sed", so it can be a program name with args.
3688set dummy sed; ac_word=$2
3689echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003690echo "configure:3691: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003691if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then
3692 echo $ac_n "(cached) $ac_c" 1>&6
3693else
3694 case "$SED" in
3695 /*)
3696 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3697 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003698 ?:/*)
3699 ac_cv_path_SED="$SED" # Let the user override the test with a dos path.
3700 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003701 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003702 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3703 ac_dummy="$PATH"
3704 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003705 test -z "$ac_dir" && ac_dir=.
3706 if test -f $ac_dir/$ac_word; then
3707 ac_cv_path_SED="$ac_dir/$ac_word"
3708 break
3709 fi
3710 done
3711 IFS="$ac_save_ifs"
3712 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3713 ;;
3714esac
3715fi
3716SED="$ac_cv_path_SED"
3717if test -n "$SED"; then
3718 echo "$ac_t""$SED" 1>&6
3719else
3720 echo "$ac_t""no" 1>&6
3721fi
3722
Theodore Ts'o9d564f71999-07-03 20:25:58 +00003723# Extract the first word of "perl", so it can be a program name with args.
3724set dummy perl; ac_word=$2
3725echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003726echo "configure:3727: checking for $ac_word" >&5
Theodore Ts'o9d564f71999-07-03 20:25:58 +00003727if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
3728 echo $ac_n "(cached) $ac_c" 1>&6
3729else
3730 case "$PERL" in
3731 /*)
3732 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3733 ;;
3734 ?:/*)
3735 ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
3736 ;;
3737 *)
3738 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3739 ac_dummy="$PATH"
3740 for ac_dir in $ac_dummy; do
3741 test -z "$ac_dir" && ac_dir=.
3742 if test -f $ac_dir/$ac_word; then
3743 ac_cv_path_PERL="$ac_dir/$ac_word"
3744 break
3745 fi
3746 done
3747 IFS="$ac_save_ifs"
3748 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
3749 ;;
3750esac
3751fi
3752PERL="$ac_cv_path_PERL"
3753if test -n "$PERL"; then
3754 echo "$ac_t""$PERL" 1>&6
3755else
3756 echo "$ac_t""no" 1>&6
3757fi
3758
Theodore Ts'o250f79f2001-05-19 22:02:22 +00003759# Extract the first word of "ldconfig", so it can be a program name with args.
3760set dummy ldconfig; ac_word=$2
3761echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003762echo "configure:3763: checking for $ac_word" >&5
Theodore Ts'o250f79f2001-05-19 22:02:22 +00003763if eval "test \"`echo '$''{'ac_cv_path_LDCONFIG'+set}'`\" = set"; then
3764 echo $ac_n "(cached) $ac_c" 1>&6
3765else
3766 case "$LDCONFIG" in
3767 /*)
3768 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
3769 ;;
3770 ?:/*)
3771 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a dos path.
3772 ;;
3773 *)
3774 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3775 ac_dummy="$PATH"
3776 for ac_dir in $ac_dummy; do
3777 test -z "$ac_dir" && ac_dir=.
3778 if test -f $ac_dir/$ac_word; then
3779 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
3780 break
3781 fi
3782 done
3783 IFS="$ac_save_ifs"
3784 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
3785 ;;
3786esac
3787fi
3788LDCONFIG="$ac_cv_path_LDCONFIG"
3789if test -n "$LDCONFIG"; then
3790 echo "$ac_t""$LDCONFIG" 1>&6
3791else
3792 echo "$ac_t""no" 1>&6
3793fi
3794
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003795echo $ac_n "checking build system type""... $ac_c" 1>&6
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003796echo "configure:3797: checking build system type" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003797
3798build_alias=$build
3799case "$build_alias" in
3800NONE)
3801 case $nonopt in
3802 NONE) build_alias=$host_alias ;;
3803 *) build_alias=$nonopt ;;
3804 esac ;;
3805esac
3806
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003807build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003808build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3809build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3810build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003811echo "$ac_t""$build" 1>&6
3812
3813if test $host != $build; then
3814 ac_tool_prefix=${host_alias}-
3815else
3816 ac_tool_prefix=
3817fi
3818
3819# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3820set dummy ${ac_tool_prefix}ar; ac_word=$2
3821echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003822echo "configure:3823: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003823if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3824 echo $ac_n "(cached) $ac_c" 1>&6
3825else
3826 if test -n "$AR"; then
3827 ac_cv_prog_AR="$AR" # Let the user override the test.
3828else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003829 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3830 ac_dummy="$PATH"
3831 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003832 test -z "$ac_dir" && ac_dir=.
3833 if test -f $ac_dir/$ac_word; then
3834 ac_cv_prog_AR="${ac_tool_prefix}ar"
3835 break
3836 fi
3837 done
3838 IFS="$ac_save_ifs"
3839fi
3840fi
3841AR="$ac_cv_prog_AR"
3842if test -n "$AR"; then
3843 echo "$ac_t""$AR" 1>&6
3844else
3845 echo "$ac_t""no" 1>&6
3846fi
3847
3848
3849if test -z "$ac_cv_prog_AR"; then
3850if test -n "$ac_tool_prefix"; then
3851 # Extract the first word of "ar", so it can be a program name with args.
3852set dummy ar; ac_word=$2
3853echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003854echo "configure:3855: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003855if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3856 echo $ac_n "(cached) $ac_c" 1>&6
3857else
3858 if test -n "$AR"; then
3859 ac_cv_prog_AR="$AR" # Let the user override the test.
3860else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003861 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3862 ac_dummy="$PATH"
3863 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003864 test -z "$ac_dir" && ac_dir=.
3865 if test -f $ac_dir/$ac_word; then
3866 ac_cv_prog_AR="ar"
3867 break
3868 fi
3869 done
3870 IFS="$ac_save_ifs"
3871 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
3872fi
3873fi
3874AR="$ac_cv_prog_AR"
3875if test -n "$AR"; then
3876 echo "$ac_t""$AR" 1>&6
3877else
3878 echo "$ac_t""no" 1>&6
3879fi
3880
3881else
3882 AR="ar"
3883fi
3884fi
3885
3886# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3887set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3888echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003889echo "configure:3890: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003890if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3891 echo $ac_n "(cached) $ac_c" 1>&6
3892else
3893 if test -n "$RANLIB"; then
3894 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3895else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003896 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3897 ac_dummy="$PATH"
3898 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003899 test -z "$ac_dir" && ac_dir=.
3900 if test -f $ac_dir/$ac_word; then
3901 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3902 break
3903 fi
3904 done
3905 IFS="$ac_save_ifs"
3906fi
3907fi
3908RANLIB="$ac_cv_prog_RANLIB"
3909if test -n "$RANLIB"; then
3910 echo "$ac_t""$RANLIB" 1>&6
3911else
3912 echo "$ac_t""no" 1>&6
3913fi
3914
3915
3916if test -z "$ac_cv_prog_RANLIB"; then
3917if test -n "$ac_tool_prefix"; then
3918 # Extract the first word of "ranlib", so it can be a program name with args.
3919set dummy ranlib; ac_word=$2
3920echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003921echo "configure:3922: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003922if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3923 echo $ac_n "(cached) $ac_c" 1>&6
3924else
3925 if test -n "$RANLIB"; then
3926 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3927else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003928 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3929 ac_dummy="$PATH"
3930 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003931 test -z "$ac_dir" && ac_dir=.
3932 if test -f $ac_dir/$ac_word; then
3933 ac_cv_prog_RANLIB="ranlib"
3934 break
3935 fi
3936 done
3937 IFS="$ac_save_ifs"
3938 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3939fi
3940fi
3941RANLIB="$ac_cv_prog_RANLIB"
3942if test -n "$RANLIB"; then
3943 echo "$ac_t""$RANLIB" 1>&6
3944else
3945 echo "$ac_t""no" 1>&6
3946fi
3947
3948else
3949 RANLIB=":"
3950fi
3951fi
3952
3953# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3954set dummy ${ac_tool_prefix}strip; ac_word=$2
3955echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003956echo "configure:3957: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003957if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
3958 echo $ac_n "(cached) $ac_c" 1>&6
3959else
3960 if test -n "$STRIP"; then
3961 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3962else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003963 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3964 ac_dummy="$PATH"
3965 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003966 test -z "$ac_dir" && ac_dir=.
3967 if test -f $ac_dir/$ac_word; then
3968 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3969 break
3970 fi
3971 done
3972 IFS="$ac_save_ifs"
3973fi
3974fi
3975STRIP="$ac_cv_prog_STRIP"
3976if test -n "$STRIP"; then
3977 echo "$ac_t""$STRIP" 1>&6
3978else
3979 echo "$ac_t""no" 1>&6
3980fi
3981
3982
3983if test -z "$ac_cv_prog_STRIP"; then
3984if test -n "$ac_tool_prefix"; then
3985 # Extract the first word of "strip", so it can be a program name with args.
3986set dummy strip; ac_word=$2
3987echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003988echo "configure:3989: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003989if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
3990 echo $ac_n "(cached) $ac_c" 1>&6
3991else
3992 if test -n "$STRIP"; then
3993 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3994else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003995 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3996 ac_dummy="$PATH"
3997 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003998 test -z "$ac_dir" && ac_dir=.
3999 if test -f $ac_dir/$ac_word; then
4000 ac_cv_prog_STRIP="strip"
4001 break
4002 fi
4003 done
4004 IFS="$ac_save_ifs"
4005 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
4006fi
4007fi
4008STRIP="$ac_cv_prog_STRIP"
4009if test -n "$STRIP"; then
4010 echo "$ac_t""$STRIP" 1>&6
4011else
4012 echo "$ac_t""no" 1>&6
4013fi
4014
4015else
4016 STRIP=":"
4017fi
4018fi
4019
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004020# Find a good install program. We prefer a C program (faster),
4021# so one script is as good as another. But avoid the broken or
4022# incompatible versions:
4023# SysV /etc/install, /usr/sbin/install
4024# SunOS /usr/etc/install
4025# IRIX /sbin/install
4026# AIX /bin/install
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004027# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004028# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4029# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4030# ./install, which can be erroneously created by make from ./install.sh.
4031echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004032echo "configure:4033: checking for a BSD compatible install" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004033if test -z "$INSTALL"; then
4034if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
4035 echo $ac_n "(cached) $ac_c" 1>&6
4036else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004037 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004038 for ac_dir in $PATH; do
4039 # Account for people who put trailing slashes in PATH elements.
4040 case "$ac_dir/" in
4041 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
4042 *)
4043 # OSF1 and SCO ODT 3.0 have their own names for install.
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004044 # Don't use installbsd from OSF since it installs stuff as root
4045 # by default.
4046 for ac_prog in ginstall scoinst install; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004047 if test -f $ac_dir/$ac_prog; then
4048 if test $ac_prog = install &&
4049 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
4050 # AIX install. It has an incompatible calling convention.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004051 :
4052 else
4053 ac_cv_path_install="$ac_dir/$ac_prog -c"
4054 break 2
4055 fi
4056 fi
4057 done
4058 ;;
4059 esac
4060 done
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004061 IFS="$ac_save_IFS"
4062
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004063fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004064 if test "${ac_cv_path_install+set}" = set; then
4065 INSTALL="$ac_cv_path_install"
4066 else
4067 # As a last resort, use the slow shell script. We don't cache a
4068 # path for INSTALL within a source directory, because that will
4069 # break other packages using the cache if that directory is
4070 # removed, or if the path is relative.
4071 INSTALL="$ac_install_sh"
4072 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004073fi
4074echo "$ac_t""$INSTALL" 1>&6
4075
4076# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4077# It thinks the first close brace ends the variable substitution.
4078test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4079
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004080test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
4081
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004082test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4083
Theodore Ts'o6c133521999-07-03 20:37:03 +00004084# See if we need a separate native compiler.
4085if test $cross_compiling = no; then
4086 BUILD_CC="$CC"
4087
4088else
4089 for ac_prog in gcc cc
4090do
4091# Extract the first word of "$ac_prog", so it can be a program name with args.
4092set dummy $ac_prog; ac_word=$2
4093echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004094echo "configure:4095: checking for $ac_word" >&5
Theodore Ts'o6c133521999-07-03 20:37:03 +00004095if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
4096 echo $ac_n "(cached) $ac_c" 1>&6
4097else
4098 if test -n "$BUILD_CC"; then
4099 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4100else
4101 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4102 ac_dummy="$PATH"
4103 for ac_dir in $ac_dummy; do
4104 test -z "$ac_dir" && ac_dir=.
4105 if test -f $ac_dir/$ac_word; then
4106 ac_cv_prog_BUILD_CC="$ac_prog"
4107 break
4108 fi
4109 done
4110 IFS="$ac_save_ifs"
4111fi
4112fi
4113BUILD_CC="$ac_cv_prog_BUILD_CC"
4114if test -n "$BUILD_CC"; then
4115 echo "$ac_t""$BUILD_CC" 1>&6
4116else
4117 echo "$ac_t""no" 1>&6
4118fi
4119
4120test -n "$BUILD_CC" && break
4121done
4122
4123fi
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00004124for 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/sysmacros.h sys/time.h sys/stat.h sys/types.h net/if.h netinet/in.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004125do
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004126ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004127echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004128echo "configure:4129: checking for $ac_hdr" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004129if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4130 echo $ac_n "(cached) $ac_c" 1>&6
4131else
4132 cat > conftest.$ac_ext <<EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004133#line 4134 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004134#include "confdefs.h"
4135#include <$ac_hdr>
4136EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004137ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004138{ (eval echo configure:4139: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004139ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004140if test -z "$ac_err"; then
4141 rm -rf conftest*
4142 eval "ac_cv_header_$ac_safe=yes"
4143else
4144 echo "$ac_err" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004145 echo "configure: failed program was:" >&5
4146 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004147 rm -rf conftest*
4148 eval "ac_cv_header_$ac_safe=no"
4149fi
4150rm -f conftest*
4151fi
4152if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4153 echo "$ac_t""yes" 1>&6
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004154 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004155 cat >> confdefs.h <<EOF
4156#define $ac_tr_hdr 1
4157EOF
4158
4159else
4160 echo "$ac_t""no" 1>&6
4161fi
4162done
4163
4164echo $ac_n "checking for vprintf""... $ac_c" 1>&6
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004165echo "configure:4166: checking for vprintf" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004166if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
4167 echo $ac_n "(cached) $ac_c" 1>&6
4168else
4169 cat > conftest.$ac_ext <<EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004170#line 4171 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004171#include "confdefs.h"
4172/* System header to define __stub macros and hopefully few prototypes,
4173 which can conflict with char vprintf(); below. */
4174#include <assert.h>
4175/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004176/* We use char because int might match the return type of a gcc2
4177 builtin and then its argument prototype would still apply. */
4178char vprintf();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004179
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004180int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004181
4182/* The GNU C library defines this for functions which it implements
4183 to always fail with ENOSYS. Some functions are actually named
4184 something starting with __ and the normal name is an alias. */
4185#if defined (__stub_vprintf) || defined (__stub___vprintf)
4186choke me
4187#else
4188vprintf();
4189#endif
4190
4191; return 0; }
4192EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004193if { (eval echo configure:4194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004194 rm -rf conftest*
4195 eval "ac_cv_func_vprintf=yes"
4196else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004197 echo "configure: failed program was:" >&5
4198 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004199 rm -rf conftest*
4200 eval "ac_cv_func_vprintf=no"
4201fi
4202rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004203fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004204
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004205if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
4206 echo "$ac_t""yes" 1>&6
4207 cat >> confdefs.h <<\EOF
4208#define HAVE_VPRINTF 1
4209EOF
4210
4211else
4212 echo "$ac_t""no" 1>&6
4213fi
4214
4215if test "$ac_cv_func_vprintf" != yes; then
4216echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004217echo "configure:4218: checking for _doprnt" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004218if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
4219 echo $ac_n "(cached) $ac_c" 1>&6
4220else
4221 cat > conftest.$ac_ext <<EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004222#line 4223 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004223#include "confdefs.h"
4224/* System header to define __stub macros and hopefully few prototypes,
4225 which can conflict with char _doprnt(); below. */
4226#include <assert.h>
4227/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004228/* We use char because int might match the return type of a gcc2
4229 builtin and then its argument prototype would still apply. */
4230char _doprnt();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004231
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004232int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004233
4234/* The GNU C library defines this for functions which it implements
4235 to always fail with ENOSYS. Some functions are actually named
4236 something starting with __ and the normal name is an alias. */
4237#if defined (__stub__doprnt) || defined (__stub____doprnt)
4238choke me
4239#else
4240_doprnt();
4241#endif
4242
4243; return 0; }
4244EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004245if { (eval echo configure:4246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004246 rm -rf conftest*
4247 eval "ac_cv_func__doprnt=yes"
4248else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004249 echo "configure: failed program was:" >&5
4250 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004251 rm -rf conftest*
4252 eval "ac_cv_func__doprnt=no"
4253fi
4254rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004255fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004256
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004257if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
4258 echo "$ac_t""yes" 1>&6
4259 cat >> confdefs.h <<\EOF
4260#define HAVE_DOPRNT 1
4261EOF
4262
4263else
4264 echo "$ac_t""no" 1>&6
4265fi
4266
4267fi
4268
4269echo $ac_n "checking whether struct dirent has a d_namlen field""... $ac_c" 1>&6
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004270echo "configure:4271: checking whether struct dirent has a d_namlen field" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004271if eval "test \"`echo '$''{'e2fsprogs_cv_struct_d_namlen'+set}'`\" = set"; then
4272 echo $ac_n "(cached) $ac_c" 1>&6
4273else
4274 cat > conftest.$ac_ext <<EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004275#line 4276 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004276#include "confdefs.h"
4277#include <sys/types.h>
4278#include <dirent.h>
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004279int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004280struct dirent de; de.d_namlen = 0;
4281; return 0; }
4282EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004283if { (eval echo configure:4284: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004284 rm -rf conftest*
4285 e2fsprogs_cv_struct_d_namlen=yes
4286else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004287 echo "configure: failed program was:" >&5
4288 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004289 rm -rf conftest*
4290 e2fsprogs_cv_struct_d_namlen=no
4291fi
4292rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004293fi
4294
4295echo "$ac_t""$e2fsprogs_cv_struct_d_namlen" 1>&6
4296if test "$e2fsprogs_cv_struct_d_namlen" = yes; then
4297 cat >> confdefs.h <<\EOF
4298#define HAVE_DIRENT_NAMLEN 1
4299EOF
4300
4301fi
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00004302echo $ac_n "checking whether llseek declared in unistd.h""... $ac_c" 1>&6
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004303echo "configure:4304: checking whether llseek declared in unistd.h" >&5
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00004304if eval "test \"`echo '$''{'e2fsprogs_cv_have_llseek_prototype'+set}'`\" = set"; then
4305 echo $ac_n "(cached) $ac_c" 1>&6
4306else
4307 cat > conftest.$ac_ext <<EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004308#line 4309 "configure"
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00004309#include "confdefs.h"
4310#include <unistd.h>
4311int main() {
4312extern int llseek(int);
4313; return 0; }
4314EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004315if { (eval echo configure:4316: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00004316 rm -rf conftest*
4317 e2fsprogs_cv_have_llseek_prototype=no
4318else
4319 echo "configure: failed program was:" >&5
4320 cat conftest.$ac_ext >&5
4321 rm -rf conftest*
4322 e2fsprogs_cv_have_llseek_prototype=yes
4323fi
4324rm -f conftest*
4325fi
4326
4327echo "$ac_t""$e2fsprogs_cv_have_llseek_prototype" 1>&6
4328if test "$e2fsprogs_cv_have_llseek_prototype" = yes; then
4329 cat >> confdefs.h <<\EOF
4330#define HAVE_LLSEEK_PROTOTYPE 1
4331EOF
4332
4333fi
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004334echo $ac_n "checking whether lseek64 declared in unistd.h""... $ac_c" 1>&6
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004335echo "configure:4336: checking whether lseek64 declared in unistd.h" >&5
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004336if eval "test \"`echo '$''{'e2fsprogs_cv_have_lseek64_prototype'+set}'`\" = set"; then
4337 echo $ac_n "(cached) $ac_c" 1>&6
4338else
4339 cat > conftest.$ac_ext <<EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004340#line 4341 "configure"
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004341#include "confdefs.h"
4342#define _LARGEFILE_SOURCE
4343#define _LARGEFILE64_SOURCE
4344#include <unistd.h>
4345int main() {
4346extern int lseek64(int);
4347; return 0; }
4348EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004349if { (eval echo configure:4350: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004350 rm -rf conftest*
4351 e2fsprogs_cv_have_lseek64_prototype=no
4352else
4353 echo "configure: failed program was:" >&5
4354 cat conftest.$ac_ext >&5
4355 rm -rf conftest*
4356 e2fsprogs_cv_have_lseek64_prototype=yes
4357fi
4358rm -f conftest*
4359fi
4360
4361echo "$ac_t""$e2fsprogs_cv_have_lseek64_prototype" 1>&6
4362if test "$e2fsprogs_cv_have_lseek64_prototype" = yes; then
4363 cat >> confdefs.h <<\EOF
4364#define HAVE_LSEEK64_PROTOTYPE 1
4365EOF
4366
4367fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004368if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
4369 # if cross-compiling, with no cached values, just assume something common.
4370 ac_cv_sizeof_short=2
4371 ac_cv_sizeof_int=4
4372 ac_cv_sizeof_long=4
Theodore Ts'o6c133521999-07-03 20:37:03 +00004373 ac_cv_sizeof_long_long=8
4374 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 +00004375fi
4376echo $ac_n "checking size of short""... $ac_c" 1>&6
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004377echo "configure:4378: checking size of short" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004378if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
4379 echo $ac_n "(cached) $ac_c" 1>&6
4380else
4381 if test "$cross_compiling" = yes; then
4382 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4383else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004384 cat > conftest.$ac_ext <<EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004385#line 4386 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004386#include "confdefs.h"
4387#include <stdio.h>
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004388#include <sys/types.h>
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004389main()
4390{
4391 FILE *f=fopen("conftestval", "w");
4392 if (!f) exit(1);
4393 fprintf(f, "%d\n", sizeof(short));
4394 exit(0);
4395}
4396EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004397if { (eval echo configure:4398: \"$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 +00004398then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004399 ac_cv_sizeof_short=`cat conftestval`
4400else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004401 echo "configure: failed program was:" >&5
4402 cat conftest.$ac_ext >&5
4403 rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004404 ac_cv_sizeof_short=0
4405fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004406rm -fr conftest*
4407fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004408
4409fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004410echo "$ac_t""$ac_cv_sizeof_short" 1>&6
4411cat >> confdefs.h <<EOF
4412#define SIZEOF_SHORT $ac_cv_sizeof_short
4413EOF
4414
4415
4416echo $ac_n "checking size of int""... $ac_c" 1>&6
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004417echo "configure:4418: checking size of int" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004418if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
4419 echo $ac_n "(cached) $ac_c" 1>&6
4420else
4421 if test "$cross_compiling" = yes; then
4422 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4423else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004424 cat > conftest.$ac_ext <<EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004425#line 4426 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004426#include "confdefs.h"
4427#include <stdio.h>
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004428#include <sys/types.h>
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004429main()
4430{
4431 FILE *f=fopen("conftestval", "w");
4432 if (!f) exit(1);
4433 fprintf(f, "%d\n", sizeof(int));
4434 exit(0);
4435}
4436EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004437if { (eval echo configure:4438: \"$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 +00004438then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004439 ac_cv_sizeof_int=`cat conftestval`
4440else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004441 echo "configure: failed program was:" >&5
4442 cat conftest.$ac_ext >&5
4443 rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004444 ac_cv_sizeof_int=0
4445fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004446rm -fr conftest*
4447fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004448
4449fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004450echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4451cat >> confdefs.h <<EOF
4452#define SIZEOF_INT $ac_cv_sizeof_int
4453EOF
4454
4455
4456echo $ac_n "checking size of long""... $ac_c" 1>&6
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004457echo "configure:4458: checking size of long" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004458if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
4459 echo $ac_n "(cached) $ac_c" 1>&6
4460else
4461 if test "$cross_compiling" = yes; then
4462 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4463else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004464 cat > conftest.$ac_ext <<EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004465#line 4466 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004466#include "confdefs.h"
4467#include <stdio.h>
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004468#include <sys/types.h>
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004469main()
4470{
4471 FILE *f=fopen("conftestval", "w");
4472 if (!f) exit(1);
4473 fprintf(f, "%d\n", sizeof(long));
4474 exit(0);
4475}
4476EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004477if { (eval echo configure:4478: \"$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 +00004478then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004479 ac_cv_sizeof_long=`cat conftestval`
4480else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004481 echo "configure: failed program was:" >&5
4482 cat conftest.$ac_ext >&5
4483 rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004484 ac_cv_sizeof_long=0
4485fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004486rm -fr conftest*
4487fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004488
4489fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004490echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4491cat >> confdefs.h <<EOF
4492#define SIZEOF_LONG $ac_cv_sizeof_long
4493EOF
4494
4495
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004496echo $ac_n "checking size of long long""... $ac_c" 1>&6
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004497echo "configure:4498: checking size of long long" >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004498if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
4499 echo $ac_n "(cached) $ac_c" 1>&6
4500else
4501 if test "$cross_compiling" = yes; then
4502 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4503else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004504 cat > conftest.$ac_ext <<EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004505#line 4506 "configure"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004506#include "confdefs.h"
4507#include <stdio.h>
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004508#include <sys/types.h>
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004509main()
4510{
4511 FILE *f=fopen("conftestval", "w");
4512 if (!f) exit(1);
4513 fprintf(f, "%d\n", sizeof(long long));
4514 exit(0);
4515}
4516EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004517if { (eval echo configure:4518: \"$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 +00004518then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004519 ac_cv_sizeof_long_long=`cat conftestval`
4520else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004521 echo "configure: failed program was:" >&5
4522 cat conftest.$ac_ext >&5
4523 rm -fr conftest*
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004524 ac_cv_sizeof_long_long=0
4525fi
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004526rm -fr conftest*
4527fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004528
4529fi
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004530echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4531cat >> confdefs.h <<EOF
4532#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4533EOF
4534
4535
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004536SIZEOF_SHORT=$ac_cv_sizeof_short
4537SIZEOF_INT=$ac_cv_sizeof_int
4538SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004539SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
4540
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004541
4542
4543
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004544echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004545echo "configure:4546: checking whether byte ordering is bigendian" >&5
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004546if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
4547 echo $ac_n "(cached) $ac_c" 1>&6
4548else
4549 ac_cv_c_bigendian=unknown
4550# See if sys/param.h defines the BYTE_ORDER macro.
4551cat > conftest.$ac_ext <<EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004552#line 4553 "configure"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004553#include "confdefs.h"
4554#include <sys/types.h>
4555#include <sys/param.h>
4556int main() {
4557
4558#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4559 bogus endian macros
4560#endif
4561; return 0; }
4562EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004563if { (eval echo configure:4564: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004564 rm -rf conftest*
4565 # It does; now see whether it defined to BIG_ENDIAN or not.
4566cat > conftest.$ac_ext <<EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004567#line 4568 "configure"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004568#include "confdefs.h"
4569#include <sys/types.h>
4570#include <sys/param.h>
4571int main() {
4572
4573#if BYTE_ORDER != BIG_ENDIAN
4574 not big endian
4575#endif
4576; return 0; }
4577EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004578if { (eval echo configure:4579: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004579 rm -rf conftest*
4580 ac_cv_c_bigendian=yes
4581else
4582 echo "configure: failed program was:" >&5
4583 cat conftest.$ac_ext >&5
4584 rm -rf conftest*
4585 ac_cv_c_bigendian=no
4586fi
4587rm -f conftest*
4588else
4589 echo "configure: failed program was:" >&5
4590 cat conftest.$ac_ext >&5
4591fi
4592rm -f conftest*
4593if test $ac_cv_c_bigendian = unknown; then
4594if test "$cross_compiling" = yes; then
4595 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4596else
4597 cat > conftest.$ac_ext <<EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004598#line 4599 "configure"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004599#include "confdefs.h"
4600main () {
4601 /* Are we little or big endian? From Harbison&Steele. */
4602 union
4603 {
4604 long l;
4605 char c[sizeof (long)];
4606 } u;
4607 u.l = 1;
4608 exit (u.c[sizeof (long) - 1] == 1);
4609}
4610EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004611if { (eval echo configure:4612: \"$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 +00004612then
4613 ac_cv_c_bigendian=no
4614else
4615 echo "configure: failed program was:" >&5
4616 cat conftest.$ac_ext >&5
4617 rm -fr conftest*
4618 ac_cv_c_bigendian=yes
4619fi
4620rm -fr conftest*
4621fi
4622
4623fi
4624fi
4625
4626echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4627if test $ac_cv_c_bigendian = yes; then
4628 cat >> confdefs.h <<\EOF
4629#define WORDS_BIGENDIAN 1
4630EOF
4631
4632fi
4633
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004634echo $ac_n "checking whether struct stat has a st_flags field""... $ac_c" 1>&6
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004635echo "configure:4636: checking whether struct stat has a st_flags field" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004636if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags'+set}'`\" = set"; then
4637 echo $ac_n "(cached) $ac_c" 1>&6
4638else
4639 cat > conftest.$ac_ext <<EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004640#line 4641 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004641#include "confdefs.h"
4642#include <sys/stat.h>
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004643int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004644struct stat stat; stat.st_flags = 0;
4645; return 0; }
4646EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004647if { (eval echo configure:4648: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004648 rm -rf conftest*
4649 e2fsprogs_cv_struct_st_flags=yes
4650else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004651 echo "configure: failed program was:" >&5
4652 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004653 rm -rf conftest*
4654 e2fsprogs_cv_struct_st_flags=no
4655fi
4656rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004657fi
4658
4659echo "$ac_t""$e2fsprogs_cv_struct_st_flags" 1>&6
4660if test "$e2fsprogs_cv_struct_st_flags" = yes; then
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00004661 echo $ac_n "checking whether st_flags field is useful""... $ac_c" 1>&6
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004662echo "configure:4663: checking whether st_flags field is useful" >&5
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00004663 if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags_immut'+set}'`\" = set"; then
4664 echo $ac_n "(cached) $ac_c" 1>&6
4665else
4666 cat > conftest.$ac_ext <<EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004667#line 4668 "configure"
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00004668#include "confdefs.h"
4669#include <sys/stat.h>
4670int main() {
4671struct stat stat; stat.st_flags |= UF_IMMUTABLE;
4672; return 0; }
4673EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004674if { (eval echo configure:4675: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00004675 rm -rf conftest*
4676 e2fsprogs_cv_struct_st_flags_immut=yes
4677else
4678 echo "configure: failed program was:" >&5
4679 cat conftest.$ac_ext >&5
4680 rm -rf conftest*
4681 e2fsprogs_cv_struct_st_flags_immut=no
4682fi
4683rm -f conftest*
4684fi
4685
4686 echo "$ac_t""$e2fsprogs_cv_struct_st_flags_immut" 1>&6
4687 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
4688 cat >> confdefs.h <<\EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004689#define HAVE_STAT_FLAGS 1
4690EOF
4691
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00004692 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004693fi
Theodore Ts'o31e29a12002-05-17 10:53:07 -04004694for ac_func in chflags getrusage llseek lseek64 open64 getmntinfo strcasecmp srandom fchown mallinfo fdatasync strnlen sysconf
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004695do
4696echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004697echo "configure:4698: checking for $ac_func" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004698if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4699 echo $ac_n "(cached) $ac_c" 1>&6
4700else
4701 cat > conftest.$ac_ext <<EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004702#line 4703 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004703#include "confdefs.h"
4704/* System header to define __stub macros and hopefully few prototypes,
4705 which can conflict with char $ac_func(); below. */
4706#include <assert.h>
4707/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004708/* We use char because int might match the return type of a gcc2
4709 builtin and then its argument prototype would still apply. */
4710char $ac_func();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004711
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004712int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004713
4714/* The GNU C library defines this for functions which it implements
4715 to always fail with ENOSYS. Some functions are actually named
4716 something starting with __ and the normal name is an alias. */
4717#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4718choke me
4719#else
4720$ac_func();
4721#endif
4722
4723; return 0; }
4724EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004725if { (eval echo configure:4726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004726 rm -rf conftest*
4727 eval "ac_cv_func_$ac_func=yes"
4728else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004729 echo "configure: failed program was:" >&5
4730 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004731 rm -rf conftest*
4732 eval "ac_cv_func_$ac_func=no"
4733fi
4734rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004735fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004736
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004737if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4738 echo "$ac_t""yes" 1>&6
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004739 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004740 cat >> confdefs.h <<EOF
4741#define $ac_tr_func 1
4742EOF
4743
4744else
4745 echo "$ac_t""no" 1>&6
4746fi
4747done
4748
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004749SOCKET_LIB=''
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004750echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004751echo "configure:4752: checking for socket in -lsocket" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004752ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
4753if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004754 echo $ac_n "(cached) $ac_c" 1>&6
4755else
4756 ac_save_LIBS="$LIBS"
4757LIBS="-lsocket $LIBS"
4758cat > conftest.$ac_ext <<EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004759#line 4760 "configure"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004760#include "confdefs.h"
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004761/* Override any gcc2 internal prototype to avoid an error. */
4762/* We use char because int might match the return type of a gcc2
4763 builtin and then its argument prototype would still apply. */
4764char socket();
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004765
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004766int main() {
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004767socket()
4768; return 0; }
4769EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004770if { (eval echo configure:4771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004771 rm -rf conftest*
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004772 eval "ac_cv_lib_$ac_lib_var=yes"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004773else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004774 echo "configure: failed program was:" >&5
4775 cat conftest.$ac_ext >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004776 rm -rf conftest*
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004777 eval "ac_cv_lib_$ac_lib_var=no"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004778fi
4779rm -f conftest*
4780LIBS="$ac_save_LIBS"
4781
4782fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004783if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004784 echo "$ac_t""yes" 1>&6
4785 SOCKET_LIB=-lsocket
4786else
4787 echo "$ac_t""no" 1>&6
4788fi
4789
4790
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004791echo $ac_n "checking for optreset""... $ac_c" 1>&6
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004792echo "configure:4793: checking for optreset" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004793if eval "test \"`echo '$''{'ac_cv_have_optreset'+set}'`\" = set"; then
4794 echo $ac_n "(cached) $ac_c" 1>&6
4795else
4796 cat > conftest.$ac_ext <<EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004797#line 4798 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004798#include "confdefs.h"
4799#include <unistd.h>
4800EOF
4801if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4802 egrep "optreset" >/dev/null 2>&1; then
4803 rm -rf conftest*
4804 ac_cv_have_optreset=yes
4805else
4806 rm -rf conftest*
4807 ac_cv_have_optreset=no
4808fi
4809rm -f conftest*
4810
4811fi
4812echo "$ac_t""$ac_cv_have_optreset" 1>&6
4813if test $ac_cv_have_optreset = yes; then
4814 cat >> confdefs.h <<\EOF
4815#define HAVE_OPTRESET 1
4816EOF
4817
4818fi
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +00004819case "$host_os" in
4820linux*)
4821 cat >> confdefs.h <<\EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004822#define HAVE_EXT2_IOCTLS 1
4823EOF
4824
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +00004825 ;;
4826esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004827case "$host_os" in
Theodore Ts'o6c133521999-07-03 20:37:03 +00004828linux* | gnu*)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004829 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
4830 root_prefix="";
4831 echo "On $host_os systems, root_prefix defaults to ''"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004832 fi
4833 ;;
4834esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004835case "$host_os" in
4836linux* | gnu*)
4837 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004838 prefix="/usr";
4839 echo "On $host_os systems, prefix defaults to /usr"
Theodore Ts'obff61a72002-05-21 22:21:38 -04004840 if test "$mandir" = '${prefix}/man' ; then
4841 echo "...and mandir defaults to /usr/share/man"
4842 mandir=/usr/share/man
4843 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004844 fi
4845;;
4846esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004847if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +00004848 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004849 root_prefix="$ac_default_prefix"
4850 else
4851 root_prefix="$prefix"
4852 fi
Theodore Ts'ob5ffead2002-05-11 19:17:00 -04004853 root_bindir=$bindir
4854 root_sbindir=$sbindir
4855 root_libdir=$libdir
4856 root_sysconfdir=$sysconfdir
4857else
4858 root_bindir='${root_prefix}/bin'
4859 root_sbindir='${root_prefix}/sbin'
4860 root_libdir='${root_prefix}/lib'
4861 root_sysconfdir='${root_prefix}/etc'
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004862fi
4863
Theodore Ts'ob5ffead2002-05-11 19:17:00 -04004864
4865
4866
4867
Theodore Ts'oae851481997-04-29 18:13:24 +00004868echo $ac_n "checking whether linker accepts -static""... $ac_c" 1>&6
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004869echo "configure:4870: checking whether linker accepts -static" >&5
Theodore Ts'oae851481997-04-29 18:13:24 +00004870if eval "test \"`echo '$''{'ac_cv_e2fsprogs_use_static'+set}'`\" = set"; then
4871 echo $ac_n "(cached) $ac_c" 1>&6
4872else
4873 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
4874cat > conftest.$ac_ext <<EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004875#line 4876 "configure"
Theodore Ts'oae851481997-04-29 18:13:24 +00004876#include "confdefs.h"
4877#include <stdio.h>
4878int main() {
4879fflush(stdout);
4880; return 0; }
4881EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004882if { (eval echo configure:4883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oae851481997-04-29 18:13:24 +00004883 rm -rf conftest*
4884 ac_cv_e2fsprogs_use_static=yes
4885else
4886 echo "configure: failed program was:" >&5
4887 cat conftest.$ac_ext >&5
4888 rm -rf conftest*
4889 ac_cv_e2fsprogs_use_static=no
4890fi
4891rm -f conftest*
4892LDFLAGS=$SAVE_LDFLAGS
4893fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004894
Theodore Ts'odefde781999-01-04 07:39:19 +00004895case "$host_os" in
4896solaris2.*)
4897 ac_cv_e2fsprogs_use_static=no
4898;;
4899esac
Theodore Ts'oae851481997-04-29 18:13:24 +00004900echo "$ac_t""$ac_cv_e2fsprogs_use_static" 1>&6
Theodore Ts'o74becf31997-04-26 14:37:06 +00004901LDFLAG_STATIC=
Theodore Ts'oae851481997-04-29 18:13:24 +00004902if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004903 LDFLAG_STATIC=-static
Theodore Ts'oae851481997-04-29 18:13:24 +00004904fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004905
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004906SS_DIR=`cd ${srcdir}/lib/ss; pwd`
4907ET_DIR=`cd ${srcdir}/lib/et; pwd`
4908
4909
4910if test "$cross_compiling" = yes ; then
4911 DO_TEST_SUITE=
4912else
4913 DO_TEST_SUITE=check
4914fi
4915
4916test -d lib || mkdir lib
4917test -d include || mkdir include
4918test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +00004919test -d include/asm || mkdir include/asm
Theodore Ts'obc210071997-06-17 05:41:36 +00004920rmakefile=
4921if test -d ${srcdir}/resize ; then
4922 rmakefile=resize/Makefile
4923fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004924trap '' 1 2 15
4925cat > confcache <<\EOF
4926# This file is a shell script that caches the results of configure
4927# tests run on this system so they can be shared between configure
4928# scripts and configure runs. It is not useful on other systems.
4929# If it contains results you don't want to keep, you may remove or edit it.
4930#
4931# By default, configure uses ./config.cache as the cache file,
4932# creating it if it does not exist already. You can give configure
4933# the --cache-file=FILE option to use a different cache file; that is
4934# what configure does when it calls configure scripts in
4935# subdirectories, so they share the cache.
4936# Giving --cache-file=/dev/null disables caching, for debugging configure.
4937# config.status only pays attention to the cache file if you give it the
4938# --recheck option to rerun configure.
4939#
4940EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004941# The following way of writing the cache mishandles newlines in values,
4942# but we know of no workaround that is simple, portable, and efficient.
4943# So, don't put newlines in cache variables' values.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004944# Ultrix sh set writes to stderr and can't be redirected directly,
4945# and sets the high bit in the cache file unless we assign to the vars.
4946(set) 2>&1 |
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004947 case `(ac_space=' '; set | grep ac_space) 2>&1` in
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004948 *ac_space=\ *)
4949 # `set' does not quote correctly, so add quotes (double-quote substitution
4950 # turns \\\\ into \\, and sed turns \\ into \).
4951 sed -n \
4952 -e "s/'/'\\\\''/g" \
4953 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4954 ;;
4955 *)
4956 # `set' quotes correctly as required by POSIX, so do not add quotes.
4957 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4958 ;;
4959 esac >> confcache
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004960if cmp -s $cache_file confcache; then
4961 :
4962else
4963 if test -w $cache_file; then
4964 echo "updating cache $cache_file"
4965 cat confcache > $cache_file
4966 else
4967 echo "not updating unwritable cache $cache_file"
4968 fi
4969fi
4970rm -f confcache
4971
4972trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4973
4974test "x$prefix" = xNONE && prefix=$ac_default_prefix
4975# Let make expand exec_prefix.
4976test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4977
4978# Any assignment to VPATH causes Sun make to only execute
4979# the first set of double-colon rules, so remove it if not needed.
4980# If there is a colon in the path, we need to keep it.
4981if test "x$srcdir" = x.; then
4982 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4983fi
4984
4985trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4986
4987# Transform confdefs.h into DEFS.
4988# Protect against shell expansion while executing Makefile rules.
4989# Protect against Makefile macro expansion.
4990cat > conftest.defs <<\EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004991s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004992s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
4993s%\[%\\&%g
4994s%\]%\\&%g
4995s%\$%$$%g
4996EOF
4997DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
4998rm -f conftest.defs
4999
5000
5001# Without the "./", some shells look in PATH for config.status.
5002: ${CONFIG_STATUS=./config.status}
5003
5004echo creating $CONFIG_STATUS
5005rm -f $CONFIG_STATUS
5006cat > $CONFIG_STATUS <<EOF
5007#! /bin/sh
5008# Generated automatically by configure.
5009# Run this file to recreate the current configuration.
5010# This directory was configured as follows,
5011# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5012#
5013# $0 $ac_configure_args
5014#
5015# Compiler output produced by configure, useful for debugging
5016# configure, is in ./config.log if it exists.
5017
5018ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5019for ac_option
5020do
5021 case "\$ac_option" in
5022 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5023 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5024 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5025 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00005026 echo "$CONFIG_STATUS generated by autoconf version 2.13"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005027 exit 0 ;;
5028 -help | --help | --hel | --he | --h)
5029 echo "\$ac_cs_usage"; exit 0 ;;
5030 *) echo "\$ac_cs_usage"; exit 1 ;;
5031 esac
5032done
5033
5034ac_given_srcdir=$srcdir
5035ac_given_INSTALL="$INSTALL"
5036
Theodore Ts'o44339bd1997-10-15 02:47:20 +00005037trap 'rm -fr `echo "MCONFIG Makefile util/Makefile util/subst.conf lib/et/Makefile
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005038 lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile lib/uuid/Makefile
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04005039 lib/evms/Makefile
Theodore Ts'ob5ffead2002-05-11 19:17:00 -04005040 misc/Makefile ext2ed/Makefile e2fsck/Makefile debugfs/Makefile \
5041 tests/Makefile tests/progs/Makefile $rmakefile doc/Makefile
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005042 intl/Makefile po/Makefile.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005043EOF
5044cat >> $CONFIG_STATUS <<EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005045
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005046# Protect against being on the right side of a sed subst in config.status.
5047sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5048 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005049$ac_vpsub
5050$extrasub
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00005051s%@SHELL@%$SHELL%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005052s%@CFLAGS@%$CFLAGS%g
5053s%@CPPFLAGS@%$CPPFLAGS%g
5054s%@CXXFLAGS@%$CXXFLAGS%g
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00005055s%@FFLAGS@%$FFLAGS%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005056s%@DEFS@%$DEFS%g
5057s%@LDFLAGS@%$LDFLAGS%g
5058s%@LIBS@%$LIBS%g
5059s%@exec_prefix@%$exec_prefix%g
5060s%@prefix@%$prefix%g
5061s%@program_transform_name@%$program_transform_name%g
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005062s%@bindir@%$bindir%g
5063s%@sbindir@%$sbindir%g
5064s%@libexecdir@%$libexecdir%g
5065s%@datadir@%$datadir%g
5066s%@sysconfdir@%$sysconfdir%g
5067s%@sharedstatedir@%$sharedstatedir%g
5068s%@localstatedir@%$localstatedir%g
5069s%@libdir@%$libdir%g
5070s%@includedir@%$includedir%g
5071s%@oldincludedir@%$oldincludedir%g
5072s%@infodir@%$infodir%g
5073s%@mandir@%$mandir%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005074/@MCONFIG@/r $MCONFIG
5075s%@MCONFIG@%%g
Theodore Ts'o74becf31997-04-26 14:37:06 +00005076s%@E2FSPROGS_YEAR@%$E2FSPROGS_YEAR%g
5077s%@E2FSPROGS_MONTH@%$E2FSPROGS_MONTH%g
5078s%@E2FSPROGS_VERSION@%$E2FSPROGS_VERSION%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005079s%@host@%$host%g
5080s%@host_alias@%$host_alias%g
5081s%@host_cpu@%$host_cpu%g
5082s%@host_vendor@%$host_vendor%g
5083s%@host_os@%$host_os%g
Theodore Ts'o74becf31997-04-26 14:37:06 +00005084s%@CC@%$CC%g
5085s%@LD@%$LD%g
Theodore Ts'of8bd9801999-10-26 04:19:45 +00005086s%@CPP@%$CPP%g
5087s%@LINUX_INCLUDE@%$LINUX_INCLUDE%g
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04005088s%@HTREE_CMT@%$HTREE_CMT%g
5089s%@HTREE_CLR_CMT@%$HTREE_CLR_CMT%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005090s%@DLL_CMT@%$DLL_CMT%g
5091/@MAKEFILE_DLL@/r $MAKEFILE_DLL
5092s%@MAKEFILE_DLL@%%g
5093s%@ELF_CMT@%$ELF_CMT%g
5094/@MAKEFILE_ELF@/r $MAKEFILE_ELF
5095s%@MAKEFILE_ELF@%%g
5096s%@BSDLIB_CMT@%$BSDLIB_CMT%g
5097/@MAKEFILE_BSDLIB@/r $MAKEFILE_BSDLIB
5098s%@MAKEFILE_BSDLIB@%%g
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005099s%@PROFILE_CMT@%$PROFILE_CMT%g
5100/@MAKEFILE_PROFILE@/r $MAKEFILE_PROFILE
5101s%@MAKEFILE_PROFILE@%%g
5102s%@CHECKER_CMT@%$CHECKER_CMT%g
5103/@MAKEFILE_CHECKER@/r $MAKEFILE_CHECKER
5104s%@MAKEFILE_CHECKER@%%g
5105s%@LIB_EXT@%$LIB_EXT%g
5106s%@STATIC_LIB_EXT@%$STATIC_LIB_EXT%g
5107s%@PROFILED_LIB_EXT@%$PROFILED_LIB_EXT%g
5108s%@DEBUGFS_CMT@%$DEBUGFS_CMT%g
5109s%@IMAGER_CMT@%$IMAGER_CMT%g
5110s%@RESIZER_CMT@%$RESIZER_CMT%g
5111s%@E2FSCK_TYPE@%$E2FSCK_TYPE%g
5112s%@FSCK_PROG@%$FSCK_PROG%g
5113s%@FSCK_MAN@%$FSCK_MAN%g
5114/@MAKEFILE_LIBRARY@/r $MAKEFILE_LIBRARY
5115s%@MAKEFILE_LIBRARY@%%g
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005116s%@PACKAGE@%$PACKAGE%g
5117s%@VERSION@%$VERSION%g
5118s%@SET_MAKE@%$SET_MAKE%g
5119s%@RANLIB@%$RANLIB%g
5120s%@ALLOCA@%$ALLOCA%g
5121s%@USE_NLS@%$USE_NLS%g
5122s%@MSGFMT@%$MSGFMT%g
5123s%@GMSGFMT@%$GMSGFMT%g
5124s%@XGETTEXT@%$XGETTEXT%g
5125s%@GENCAT@%$GENCAT%g
5126s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
5127s%@CATALOGS@%$CATALOGS%g
5128s%@CATOBJEXT@%$CATOBJEXT%g
5129s%@DATADIRNAME@%$DATADIRNAME%g
5130s%@GMOFILES@%$GMOFILES%g
5131s%@INSTOBJEXT@%$INSTOBJEXT%g
5132s%@INTLDEPS@%$INTLDEPS%g
5133s%@INTLLIBS@%$INTLLIBS%g
5134s%@INTLOBJS@%$INTLOBJS%g
5135s%@POFILES@%$POFILES%g
5136s%@POSUB@%$POSUB%g
5137s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
5138s%@GT_NO@%$GT_NO%g
5139s%@GT_YES@%$GT_YES%g
5140s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
5141s%@l@%$l%g
Theodore Ts'o74becf31997-04-26 14:37:06 +00005142s%@BINARY_TYPE@%$BINARY_TYPE%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005143s%@LN@%$LN%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005144s%@LN_S@%$LN_S%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005145s%@MV@%$MV%g
5146s%@CP@%$CP%g
5147s%@RM@%$RM%g
5148s%@CHMOD@%$CHMOD%g
5149s%@AWK@%$AWK%g
5150s%@SED@%$SED%g
Theodore Ts'o9d564f71999-07-03 20:25:58 +00005151s%@PERL@%$PERL%g
Theodore Ts'o250f79f2001-05-19 22:02:22 +00005152s%@LDCONFIG@%$LDCONFIG%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005153s%@build@%$build%g
5154s%@build_alias@%$build_alias%g
5155s%@build_cpu@%$build_cpu%g
5156s%@build_vendor@%$build_vendor%g
5157s%@build_os@%$build_os%g
5158s%@AR@%$AR%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005159s%@STRIP@%$STRIP%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005160s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00005161s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005162s%@INSTALL_DATA@%$INSTALL_DATA%g
Theodore Ts'o6c133521999-07-03 20:37:03 +00005163s%@BUILD_CC@%$BUILD_CC%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005164s%@SIZEOF_SHORT@%$SIZEOF_SHORT%g
5165s%@SIZEOF_INT@%$SIZEOF_INT%g
5166s%@SIZEOF_LONG@%$SIZEOF_LONG%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005167s%@SIZEOF_LONG_LONG@%$SIZEOF_LONG_LONG%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005168s%@SOCKET_LIB@%$SOCKET_LIB%g
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00005169s%@root_prefix@%$root_prefix%g
Theodore Ts'ob5ffead2002-05-11 19:17:00 -04005170s%@root_bindir@%$root_bindir%g
5171s%@root_sbindir@%$root_sbindir%g
5172s%@root_libdir@%$root_libdir%g
5173s%@root_sysconfdir@%$root_sysconfdir%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005174s%@LDFLAG_STATIC@%$LDFLAG_STATIC%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005175s%@SS_DIR@%$SS_DIR%g
5176s%@ET_DIR@%$ET_DIR%g
5177s%@DO_TEST_SUITE@%$DO_TEST_SUITE%g
5178
5179CEOF
5180EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005181
5182cat >> $CONFIG_STATUS <<\EOF
5183
5184# Split the substitutions into bite-sized pieces for seds with
5185# small command number limits, like on Digital OSF/1 and HP-UX.
5186ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5187ac_file=1 # Number of current file.
5188ac_beg=1 # First line for current file.
5189ac_end=$ac_max_sed_cmds # Line after last line for current file.
5190ac_more_lines=:
5191ac_sed_cmds=""
5192while $ac_more_lines; do
5193 if test $ac_beg -gt 1; then
5194 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5195 else
5196 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5197 fi
5198 if test ! -s conftest.s$ac_file; then
5199 ac_more_lines=false
5200 rm -f conftest.s$ac_file
5201 else
5202 if test -z "$ac_sed_cmds"; then
5203 ac_sed_cmds="sed -f conftest.s$ac_file"
5204 else
5205 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5206 fi
5207 ac_file=`expr $ac_file + 1`
5208 ac_beg=$ac_end
5209 ac_end=`expr $ac_end + $ac_max_sed_cmds`
5210 fi
5211done
5212if test -z "$ac_sed_cmds"; then
5213 ac_sed_cmds=cat
5214fi
5215EOF
5216
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005217cat >> $CONFIG_STATUS <<EOF
5218
Theodore Ts'o44339bd1997-10-15 02:47:20 +00005219CONFIG_FILES=\${CONFIG_FILES-"MCONFIG Makefile util/Makefile util/subst.conf lib/et/Makefile
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005220 lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile lib/uuid/Makefile
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04005221 lib/evms/Makefile
Theodore Ts'ob5ffead2002-05-11 19:17:00 -04005222 misc/Makefile ext2ed/Makefile e2fsck/Makefile debugfs/Makefile \
5223 tests/Makefile tests/progs/Makefile $rmakefile doc/Makefile
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005224 intl/Makefile po/Makefile.in"}
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005225EOF
5226cat >> $CONFIG_STATUS <<\EOF
5227for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005228 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005229 case "$ac_file" in
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005230 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005231 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5232 *) ac_file_in="${ac_file}.in" ;;
5233 esac
5234
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005235 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005236
5237 # Remove last slash and all that follows it. Not all systems have dirname.
5238 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5239 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5240 # The file is in a subdirectory.
5241 test ! -d "$ac_dir" && mkdir "$ac_dir"
5242 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5243 # A "../" for each directory in $ac_dir_suffix.
5244 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5245 else
5246 ac_dir_suffix= ac_dots=
5247 fi
5248
5249 case "$ac_given_srcdir" in
5250 .) srcdir=.
5251 if test -z "$ac_dots"; then top_srcdir=.
5252 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5253 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5254 *) # Relative path.
5255 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5256 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5257 esac
5258
5259 case "$ac_given_INSTALL" in
5260 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5261 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5262 esac
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005263
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005264 echo creating "$ac_file"
5265 rm -f "$ac_file"
5266 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5267 case "$ac_file" in
5268 *Makefile*) ac_comsub="1i\\
5269# $configure_input" ;;
5270 *) ac_comsub= ;;
5271 esac
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005272
5273 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 +00005274 sed -e "$ac_comsub
5275s%@configure_input@%$configure_input%g
5276s%@srcdir@%$srcdir%g
5277s%@top_srcdir@%$top_srcdir%g
5278s%@INSTALL@%$INSTALL%g
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005279" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005280fi; done
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005281rm -f conftest.s*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005282
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005283EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005284
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005285cat >> $CONFIG_STATUS <<EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005286ac_sources="$nls_cv_header_libgt"
5287ac_dests="$nls_cv_header_intl"
5288EOF
5289
5290cat >> $CONFIG_STATUS <<\EOF
5291srcdir=$ac_given_srcdir
5292while test -n "$ac_sources"; do
5293 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
5294 set $ac_sources; ac_source=$1; shift; ac_sources=$*
5295
5296 echo "linking $srcdir/$ac_source to $ac_dest"
5297
5298 if test ! -r $srcdir/$ac_source; then
5299 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
5300 fi
5301 rm -f $ac_dest
5302
5303 # Make relative symlinks.
5304 # Remove last slash and all that follows it. Not all systems have dirname.
5305 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
5306 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
5307 # The dest file is in a subdirectory.
5308 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
5309 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
5310 # A "../" for each directory in $ac_dest_dir_suffix.
5311 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
5312 else
5313 ac_dest_dir_suffix= ac_dots=
5314 fi
5315
5316 case "$srcdir" in
5317 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
5318 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
5319 esac
5320
5321 # Make a symlink if possible; otherwise try a hard link.
5322 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
5323 ln $srcdir/$ac_source $ac_dest; then :
5324 else
5325 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
5326 fi
5327done
5328EOF
5329cat >> $CONFIG_STATUS <<EOF
5330
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005331
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005332EOF
5333cat >> $CONFIG_STATUS <<\EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005334case "$CONFIG_FILES" in *po/Makefile.in*)
5335 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
5336 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005337
5338exit 0
5339EOF
5340chmod +x $CONFIG_STATUS
5341rm -fr confdefs* $ac_clean_files
5342test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
5343