blob: 57d134881b20b0786576be50caa042cb58e624de [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'off6dbcc2002-05-24 22:44:42 -040027 --enable-old-evms use EVMS 1.0 ABI (instead of EVMS 1.1)"
28ac_help="$ac_help
Theodore Ts'oa4d09611997-04-29 14:28:00 +000029 --enable-dll-shlibs select DLL libraries"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000030ac_help="$ac_help
Theodore Ts'oa4d09611997-04-29 14:28:00 +000031 --enable-elf-shlibs select ELF shared libraries"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000032ac_help="$ac_help
Theodore Ts'oa4d09611997-04-29 14:28:00 +000033 --enable-bsd-shlibs select BSD shared libraries"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000034ac_help="$ac_help
Theodore Ts'ocdf186e2001-06-13 22:16:47 +000035 --enable-profile build profiling libraries"
36ac_help="$ac_help
37 --enable-checker build checker libraries"
38ac_help="$ac_help
Theodore Ts'o80bfaa32000-08-18 15:08:37 +000039 --enable-jfs-debug enable journal debugging"
40ac_help="$ac_help
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000041 --disable-swapfs disable support of legacy byte-swapped filesystems"
42ac_help="$ac_help
Theodore Ts'ocdf186e2001-06-13 22:16:47 +000043 --disable-debugfs disable support of debugfs program"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000044ac_help="$ac_help
Theodore Ts'ocdf186e2001-06-13 22:16:47 +000045 --disable-imager disable support of e2image program"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000046ac_help="$ac_help
Theodore Ts'ocdf186e2001-06-13 22:16:47 +000047 --disable-resizer disable support of e2resize program"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000048ac_help="$ac_help
Theodore Ts'oa4d09611997-04-29 14:28:00 +000049 --enable-dynamic-e2fsck build e2fsck dynamically"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000050ac_help="$ac_help
51 --enable-fsck build fsck wrapper program"
52ac_help="$ac_help
53 --enable-old-bitops Use old (non-standard but native) bitmask operations"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +000054ac_help="$ac_help
55 --enable-nls Turn on Native Language Support"
56ac_help="$ac_help
57 --with-included-gettext use the GNU gettext library included here"
58ac_help="$ac_help
59 --with-catgets use catgets functions if available"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000060
61# Initialize some variables set by options.
62# The variables have the same names as the options, with
63# dashes changed to underlines.
64build=NONE
65cache_file=./config.cache
66exec_prefix=NONE
67host=NONE
68no_create=
69nonopt=NONE
70no_recursion=
71prefix=NONE
72program_prefix=NONE
73program_suffix=NONE
74program_transform_name=s,x,x,
75silent=
76site=
77srcdir=
78target=NONE
79verbose=
80x_includes=NONE
81x_libraries=NONE
Theodore Ts'o21c84b71997-04-29 16:15:03 +000082bindir='${exec_prefix}/bin'
83sbindir='${exec_prefix}/sbin'
84libexecdir='${exec_prefix}/libexec'
85datadir='${prefix}/share'
86sysconfdir='${prefix}/etc'
87sharedstatedir='${prefix}/com'
88localstatedir='${prefix}/var'
89libdir='${exec_prefix}/lib'
90includedir='${prefix}/include'
91oldincludedir='/usr/include'
92infodir='${prefix}/info'
93mandir='${prefix}/man'
Theodore Ts'o50e1e101997-04-26 13:58:21 +000094
95# Initialize some other variables.
96subdirs=
Theodore Ts'o21c84b71997-04-29 16:15:03 +000097MFLAGS= MAKEFLAGS=
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +000098SHELL=${CONFIG_SHELL-/bin/sh}
Theodore Ts'o21c84b71997-04-29 16:15:03 +000099# Maximum number of lines to put in a shell here document.
100ac_max_here_lines=12
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000101
102ac_prev=
103for ac_option
104do
105
106 # If the previous option needs an argument, assign it.
107 if test -n "$ac_prev"; then
108 eval "$ac_prev=\$ac_option"
109 ac_prev=
110 continue
111 fi
112
113 case "$ac_option" in
114 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
115 *) ac_optarg= ;;
116 esac
117
118 # Accept the important Cygnus configure options, so we can diagnose typos.
119
120 case "$ac_option" in
121
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000122 -bindir | --bindir | --bindi | --bind | --bin | --bi)
123 ac_prev=bindir ;;
124 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
125 bindir="$ac_optarg" ;;
126
127 -build | --build | --buil | --bui | --bu)
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000128 ac_prev=build ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000129 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000130 build="$ac_optarg" ;;
131
132 -cache-file | --cache-file | --cache-fil | --cache-fi \
133 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
134 ac_prev=cache_file ;;
135 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
136 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
137 cache_file="$ac_optarg" ;;
138
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000139 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
140 ac_prev=datadir ;;
141 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
142 | --da=*)
143 datadir="$ac_optarg" ;;
144
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000145 -disable-* | --disable-*)
146 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
147 # Reject names that are not valid shell variable names.
148 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
149 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
150 fi
151 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
152 eval "enable_${ac_feature}=no" ;;
153
154 -enable-* | --enable-*)
155 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
156 # Reject names that are not valid shell variable names.
157 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
158 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
159 fi
160 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
161 case "$ac_option" in
162 *=*) ;;
163 *) ac_optarg=yes ;;
164 esac
165 eval "enable_${ac_feature}='$ac_optarg'" ;;
166
167 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
168 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
169 | --exec | --exe | --ex)
170 ac_prev=exec_prefix ;;
171 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
172 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
173 | --exec=* | --exe=* | --ex=*)
174 exec_prefix="$ac_optarg" ;;
175
176 -gas | --gas | --ga | --g)
177 # Obsolete; use --with-gas.
178 with_gas=yes ;;
179
180 -help | --help | --hel | --he)
181 # Omit some internal or obsolete options to make the list less imposing.
182 # This message is too long to be a string in the A/UX 3.1 sh.
183 cat << EOF
184Usage: configure [options] [host]
185Options: [defaults in brackets after descriptions]
186Configuration:
187 --cache-file=FILE cache test results in FILE
188 --help print this message
189 --no-create do not create output files
190 --quiet, --silent do not print \`checking...' messages
191 --version print the version of autoconf that created configure
192Directory and file names:
193 --prefix=PREFIX install architecture-independent files in PREFIX
194 [$ac_default_prefix]
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000195 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000196 [same as prefix]
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000197 --bindir=DIR user executables in DIR [EPREFIX/bin]
198 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
199 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
200 --datadir=DIR read-only architecture-independent data in DIR
201 [PREFIX/share]
202 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
203 --sharedstatedir=DIR modifiable architecture-independent data in DIR
204 [PREFIX/com]
205 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
206 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
207 --includedir=DIR C header files in DIR [PREFIX/include]
208 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
209 --infodir=DIR info documentation in DIR [PREFIX/info]
210 --mandir=DIR man documentation in DIR [PREFIX/man]
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000211 --srcdir=DIR find the sources in DIR [configure dir or ..]
212 --program-prefix=PREFIX prepend PREFIX to installed program names
213 --program-suffix=SUFFIX append SUFFIX to installed program names
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000214 --program-transform-name=PROGRAM
215 run sed PROGRAM on installed program names
216EOF
217 cat << EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000218Host type:
219 --build=BUILD configure for building on BUILD [BUILD=HOST]
220 --host=HOST configure for HOST [guessed]
221 --target=TARGET configure for TARGET [TARGET=HOST]
222Features and packages:
223 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
224 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
225 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
226 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
227 --x-includes=DIR X include files are in DIR
228 --x-libraries=DIR X library files are in DIR
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000229EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000230 if test -n "$ac_help"; then
231 echo "--enable and --with options recognized:$ac_help"
232 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000233 exit 0 ;;
234
235 -host | --host | --hos | --ho)
236 ac_prev=host ;;
237 -host=* | --host=* | --hos=* | --ho=*)
238 host="$ac_optarg" ;;
239
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000240 -includedir | --includedir | --includedi | --included | --include \
241 | --includ | --inclu | --incl | --inc)
242 ac_prev=includedir ;;
243 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
244 | --includ=* | --inclu=* | --incl=* | --inc=*)
245 includedir="$ac_optarg" ;;
246
247 -infodir | --infodir | --infodi | --infod | --info | --inf)
248 ac_prev=infodir ;;
249 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
250 infodir="$ac_optarg" ;;
251
252 -libdir | --libdir | --libdi | --libd)
253 ac_prev=libdir ;;
254 -libdir=* | --libdir=* | --libdi=* | --libd=*)
255 libdir="$ac_optarg" ;;
256
257 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
258 | --libexe | --libex | --libe)
259 ac_prev=libexecdir ;;
260 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
261 | --libexe=* | --libex=* | --libe=*)
262 libexecdir="$ac_optarg" ;;
263
264 -localstatedir | --localstatedir | --localstatedi | --localstated \
265 | --localstate | --localstat | --localsta | --localst \
266 | --locals | --local | --loca | --loc | --lo)
267 ac_prev=localstatedir ;;
268 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
269 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
270 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
271 localstatedir="$ac_optarg" ;;
272
273 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
274 ac_prev=mandir ;;
275 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
276 mandir="$ac_optarg" ;;
277
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000278 -nfp | --nfp | --nf)
279 # Obsolete; use --without-fp.
280 with_fp=no ;;
281
282 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
283 | --no-cr | --no-c)
284 no_create=yes ;;
285
286 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
287 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
288 no_recursion=yes ;;
289
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000290 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
291 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
292 | --oldin | --oldi | --old | --ol | --o)
293 ac_prev=oldincludedir ;;
294 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
295 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
296 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
297 oldincludedir="$ac_optarg" ;;
298
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000299 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
300 ac_prev=prefix ;;
301 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
302 prefix="$ac_optarg" ;;
303
304 -program-prefix | --program-prefix | --program-prefi | --program-pref \
305 | --program-pre | --program-pr | --program-p)
306 ac_prev=program_prefix ;;
307 -program-prefix=* | --program-prefix=* | --program-prefi=* \
308 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
309 program_prefix="$ac_optarg" ;;
310
311 -program-suffix | --program-suffix | --program-suffi | --program-suff \
312 | --program-suf | --program-su | --program-s)
313 ac_prev=program_suffix ;;
314 -program-suffix=* | --program-suffix=* | --program-suffi=* \
315 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
316 program_suffix="$ac_optarg" ;;
317
318 -program-transform-name | --program-transform-name \
319 | --program-transform-nam | --program-transform-na \
320 | --program-transform-n | --program-transform- \
321 | --program-transform | --program-transfor \
322 | --program-transfo | --program-transf \
323 | --program-trans | --program-tran \
324 | --progr-tra | --program-tr | --program-t)
325 ac_prev=program_transform_name ;;
326 -program-transform-name=* | --program-transform-name=* \
327 | --program-transform-nam=* | --program-transform-na=* \
328 | --program-transform-n=* | --program-transform-=* \
329 | --program-transform=* | --program-transfor=* \
330 | --program-transfo=* | --program-transf=* \
331 | --program-trans=* | --program-tran=* \
332 | --progr-tra=* | --program-tr=* | --program-t=*)
333 program_transform_name="$ac_optarg" ;;
334
335 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
336 | -silent | --silent | --silen | --sile | --sil)
337 silent=yes ;;
338
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000339 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
340 ac_prev=sbindir ;;
341 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
342 | --sbi=* | --sb=*)
343 sbindir="$ac_optarg" ;;
344
345 -sharedstatedir | --sharedstatedir | --sharedstatedi \
346 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
347 | --sharedst | --shareds | --shared | --share | --shar \
348 | --sha | --sh)
349 ac_prev=sharedstatedir ;;
350 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
351 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
352 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
353 | --sha=* | --sh=*)
354 sharedstatedir="$ac_optarg" ;;
355
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000356 -site | --site | --sit)
357 ac_prev=site ;;
358 -site=* | --site=* | --sit=*)
359 site="$ac_optarg" ;;
360
361 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
362 ac_prev=srcdir ;;
363 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
364 srcdir="$ac_optarg" ;;
365
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000366 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
367 | --syscon | --sysco | --sysc | --sys | --sy)
368 ac_prev=sysconfdir ;;
369 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
370 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
371 sysconfdir="$ac_optarg" ;;
372
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000373 -target | --target | --targe | --targ | --tar | --ta | --t)
374 ac_prev=target ;;
375 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
376 target="$ac_optarg" ;;
377
378 -v | -verbose | --verbose | --verbos | --verbo | --verb)
379 verbose=yes ;;
380
381 -version | --version | --versio | --versi | --vers)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000382 echo "configure generated by autoconf version 2.13"
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000383 exit 0 ;;
384
385 -with-* | --with-*)
386 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
387 # Reject names that are not valid shell variable names.
388 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
389 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
390 fi
391 ac_package=`echo $ac_package| sed 's/-/_/g'`
392 case "$ac_option" in
393 *=*) ;;
394 *) ac_optarg=yes ;;
395 esac
396 eval "with_${ac_package}='$ac_optarg'" ;;
397
398 -without-* | --without-*)
399 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
400 # Reject names that are not valid shell variable names.
401 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
402 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
403 fi
404 ac_package=`echo $ac_package| sed 's/-/_/g'`
405 eval "with_${ac_package}=no" ;;
406
407 --x)
408 # Obsolete; use --with-x.
409 with_x=yes ;;
410
411 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
412 | --x-incl | --x-inc | --x-in | --x-i)
413 ac_prev=x_includes ;;
414 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
415 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
416 x_includes="$ac_optarg" ;;
417
418 -x-libraries | --x-libraries | --x-librarie | --x-librari \
419 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
420 ac_prev=x_libraries ;;
421 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
422 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
423 x_libraries="$ac_optarg" ;;
424
425 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
426 ;;
427
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000428 *)
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000429 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
430 echo "configure: warning: $ac_option: invalid host type" 1>&2
431 fi
432 if test "x$nonopt" != xNONE; then
433 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
434 fi
435 nonopt="$ac_option"
436 ;;
437
438 esac
439done
440
441if test -n "$ac_prev"; then
442 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
443fi
444
445trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
446
447# File descriptor usage:
448# 0 standard input
449# 1 file creation
450# 2 errors and warnings
451# 3 some systems may open it to /dev/tty
452# 4 used on the Kubota Titan
453# 6 checking for... messages and results
454# 5 compiler messages saved in config.log
455if test "$silent" = yes; then
456 exec 6>/dev/null
457else
458 exec 6>&1
459fi
460exec 5>./config.log
461
462echo "\
463This file contains any messages produced by compilers while
464running configure, to aid debugging if configure makes a mistake.
465" 1>&5
466
467# Strip out --no-create and --no-recursion so they do not pile up.
468# Also quote any args containing shell metacharacters.
469ac_configure_args=
470for ac_arg
471do
472 case "$ac_arg" in
473 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
474 | --no-cr | --no-c) ;;
475 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
476 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
477 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
478 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
479 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
480 esac
481done
482
483# NLS nuisances.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000484# Only set these to C if already set. These must not be set unconditionally
485# because not all systems understand e.g. LANG=C (notably SCO).
486# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
487# Non-C LC_CTYPE values break the ctype check.
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000488if test "${LANG+set}" = set; then LANG=C; export LANG; fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000489if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
490if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
491if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000492
493# confdefs.h avoids OS command line length limits that DEFS can exceed.
494rm -rf conftest* confdefs.h
495# AIX cpp loses on an empty file, so make sure it contains at least a newline.
496echo > confdefs.h
497
498# A filename unique to this package, relative to the directory that
499# configure is in, which we can look for to find out if srcdir is correct.
500ac_unique_file=version.h
501
502# Find the source files, if location was not specified.
503if test -z "$srcdir"; then
504 ac_srcdir_defaulted=yes
505 # Try the directory containing this script, then its parent.
506 ac_prog=$0
507 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
508 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
509 srcdir=$ac_confdir
510 if test ! -r $srcdir/$ac_unique_file; then
511 srcdir=..
512 fi
513else
514 ac_srcdir_defaulted=no
515fi
516if test ! -r $srcdir/$ac_unique_file; then
517 if test "$ac_srcdir_defaulted" = yes; then
518 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
519 else
520 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
521 fi
522fi
523srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
524
525# Prefer explicitly selected file to automatically selected ones.
526if test -z "$CONFIG_SITE"; then
527 if test "x$prefix" != xNONE; then
528 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
529 else
530 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
531 fi
532fi
533for ac_site_file in $CONFIG_SITE; do
534 if test -r "$ac_site_file"; then
535 echo "loading site script $ac_site_file"
536 . "$ac_site_file"
537 fi
538done
539
540if test -r "$cache_file"; then
541 echo "loading cache $cache_file"
542 . $cache_file
543else
544 echo "creating cache $cache_file"
545 > $cache_file
546fi
547
548ac_ext=c
549# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
550ac_cpp='$CPP $CPPFLAGS'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000551ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000552ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000553cross_compiling=$ac_cv_prog_cc_cross
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000554
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000555ac_exeext=
556ac_objext=o
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000557if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
558 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
559 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
560 ac_n= ac_c='
561' ac_t=' '
562 else
563 ac_n=-n ac_c= ac_t=
564 fi
565else
566 ac_n= ac_c='\c' ac_t=
567fi
568
569
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +0000570
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000571MCONFIG=./MCONFIG
572
Theodore Ts'o74becf31997-04-26 14:37:06 +0000573BINARY_TYPE=bin
574E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
575 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
576DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
577 | tr \" " "`
578MONTH=`echo $DATE | awk -F- '{print $2}'`
579YEAR=`echo $DATE | awk -F- '{print $3}'`
580
Theodore Ts'o14790ed1999-01-12 23:32:52 +0000581if expr $YEAR ">" 1900 > /dev/null ; then
582 E2FSPROGS_YEAR=$YEAR
583elif expr $YEAR ">" 90 >/dev/null ; then
Theodore Ts'o74becf31997-04-26 14:37:06 +0000584 E2FSPROGS_YEAR=19$YEAR
585else
586 E2FSPROGS_YEAR=20$YEAR
587fi
588
589case $MONTH in
590Jan) E2FSPROGS_MONTH="January" ;;
591Feb) E2FSPROGS_MONTH="February" ;;
592Mar) E2FSPROGS_MONTH="March" ;;
593Apr) E2FSPROGS_MONTH="April" ;;
594May) E2FSPROGS_MONTH="May" ;;
595Jun) E2FSPROGS_MONTH="June" ;;
596Jul) E2FSPROGS_MONTH="July" ;;
597Aug) E2FSPROGS_MONTH="August" ;;
598Sep) E2FSPROGS_MONTH="September" ;;
599Oct) E2FSPROGS_MONTH="October" ;;
600Nov) E2FSPROGS_MONTH="November" ;;
601Dec) E2FSPROGS_MONTH="December" ;;
602*) echo "Unknown month $MONTH??" ;;
603esac
604
605unset DATE MONTH YEAR
606echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION"
607echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}"
608
609
610
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000611ac_aux_dir=
612for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
613 if test -f $ac_dir/install-sh; then
614 ac_aux_dir=$ac_dir
615 ac_install_sh="$ac_aux_dir/install-sh -c"
616 break
617 elif 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 fi
622done
623if test -z "$ac_aux_dir"; then
624 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
625fi
626ac_config_guess=$ac_aux_dir/config.guess
627ac_config_sub=$ac_aux_dir/config.sub
628ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
629
630
631# Make sure we can run config.sub.
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000632if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000633else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
634fi
635
636echo $ac_n "checking host system type""... $ac_c" 1>&6
Theodore Ts'off6dbcc2002-05-24 22:44:42 -0400637echo "configure:638: checking host system type" >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000638
639host_alias=$host
640case "$host_alias" in
641NONE)
642 case $nonopt in
643 NONE)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000644 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000645 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
646 fi ;;
647 *) host_alias=$nonopt ;;
648 esac ;;
649esac
650
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000651host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000652host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
653host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
654host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000655echo "$ac_t""$host" 1>&6
656
Theodore Ts'o74becf31997-04-26 14:37:06 +0000657# Check whether --with-cc or --without-cc was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000658if test "${with_cc+set}" = set; then
659 withval="$with_cc"
Theodore Ts'o74becf31997-04-26 14:37:06 +0000660 echo "$ac_t""CC=$withval" 1>&6
661CC=$withval
662else
663 if test -z "$CC" ; then CC=cc; fi
664echo "$ac_t""CC defaults to $CC" 1>&6
665fi
666export CC
667
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000668# Extract the first word of "gcc", so it can be a program name with args.
669set dummy gcc; ac_word=$2
670echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'off6dbcc2002-05-24 22:44:42 -0400671echo "configure:672: checking for $ac_word" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000672if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
673 echo $ac_n "(cached) $ac_c" 1>&6
674else
675 if test -n "$CC"; then
676 ac_cv_prog_CC="$CC" # Let the user override the test.
677else
678 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
679 ac_dummy="$PATH"
680 for ac_dir in $ac_dummy; do
681 test -z "$ac_dir" && ac_dir=.
682 if test -f $ac_dir/$ac_word; then
683 ac_cv_prog_CC="gcc"
684 break
685 fi
686 done
687 IFS="$ac_save_ifs"
688fi
689fi
690CC="$ac_cv_prog_CC"
691if test -n "$CC"; then
692 echo "$ac_t""$CC" 1>&6
693else
694 echo "$ac_t""no" 1>&6
695fi
696
697if test -z "$CC"; then
698 # Extract the first word of "cc", so it can be a program name with args.
699set dummy cc; ac_word=$2
700echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'off6dbcc2002-05-24 22:44:42 -0400701echo "configure:702: checking for $ac_word" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000702if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
703 echo $ac_n "(cached) $ac_c" 1>&6
704else
705 if test -n "$CC"; then
706 ac_cv_prog_CC="$CC" # Let the user override the test.
707else
708 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
709 ac_prog_rejected=no
710 ac_dummy="$PATH"
711 for ac_dir in $ac_dummy; do
712 test -z "$ac_dir" && ac_dir=.
713 if test -f $ac_dir/$ac_word; then
714 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
715 ac_prog_rejected=yes
716 continue
717 fi
718 ac_cv_prog_CC="cc"
719 break
720 fi
721 done
722 IFS="$ac_save_ifs"
723if test $ac_prog_rejected = yes; then
724 # We found a bogon in the path, so make sure we never use it.
725 set dummy $ac_cv_prog_CC
726 shift
727 if test $# -gt 0; then
728 # We chose a different compiler from the bogus one.
729 # However, it has the same basename, so the bogon will be chosen
730 # first if we set CC to just the basename; use the full file name.
731 shift
732 set dummy "$ac_dir/$ac_word" "$@"
733 shift
734 ac_cv_prog_CC="$@"
735 fi
736fi
737fi
738fi
739CC="$ac_cv_prog_CC"
740if test -n "$CC"; then
741 echo "$ac_t""$CC" 1>&6
742else
743 echo "$ac_t""no" 1>&6
744fi
745
746 if test -z "$CC"; then
747 case "`uname -s`" in
748 *win32* | *WIN32*)
749 # Extract the first word of "cl", so it can be a program name with args.
750set dummy cl; ac_word=$2
751echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'off6dbcc2002-05-24 22:44:42 -0400752echo "configure:753: checking for $ac_word" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000753if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
754 echo $ac_n "(cached) $ac_c" 1>&6
755else
756 if test -n "$CC"; then
757 ac_cv_prog_CC="$CC" # Let the user override the test.
758else
759 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
760 ac_dummy="$PATH"
761 for ac_dir in $ac_dummy; do
762 test -z "$ac_dir" && ac_dir=.
763 if test -f $ac_dir/$ac_word; then
764 ac_cv_prog_CC="cl"
765 break
766 fi
767 done
768 IFS="$ac_save_ifs"
769fi
770fi
771CC="$ac_cv_prog_CC"
772if test -n "$CC"; then
773 echo "$ac_t""$CC" 1>&6
774else
775 echo "$ac_t""no" 1>&6
776fi
777 ;;
778 esac
779 fi
780 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
781fi
782
783echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
Theodore Ts'off6dbcc2002-05-24 22:44:42 -0400784echo "configure:785: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000785
786ac_ext=c
787# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
788ac_cpp='$CPP $CPPFLAGS'
789ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
790ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
791cross_compiling=$ac_cv_prog_cc_cross
792
793cat > conftest.$ac_ext << EOF
794
Theodore Ts'off6dbcc2002-05-24 22:44:42 -0400795#line 796 "configure"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000796#include "confdefs.h"
797
798main(){return(0);}
799EOF
Theodore Ts'off6dbcc2002-05-24 22:44:42 -0400800if { (eval echo configure:801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000801 ac_cv_prog_cc_works=yes
802 # If we can't run a trivial program, we are probably using a cross compiler.
803 if (./conftest; exit) 2>/dev/null; then
804 ac_cv_prog_cc_cross=no
805 else
806 ac_cv_prog_cc_cross=yes
807 fi
808else
809 echo "configure: failed program was:" >&5
810 cat conftest.$ac_ext >&5
811 ac_cv_prog_cc_works=no
812fi
813rm -fr conftest*
814ac_ext=c
815# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
816ac_cpp='$CPP $CPPFLAGS'
817ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
818ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
819cross_compiling=$ac_cv_prog_cc_cross
820
821echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
822if test $ac_cv_prog_cc_works = no; then
823 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
824fi
825echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
Theodore Ts'off6dbcc2002-05-24 22:44:42 -0400826echo "configure:827: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000827echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
828cross_compiling=$ac_cv_prog_cc_cross
829
830echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
Theodore Ts'off6dbcc2002-05-24 22:44:42 -0400831echo "configure:832: checking whether we are using GNU C" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000832if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
833 echo $ac_n "(cached) $ac_c" 1>&6
834else
835 cat > conftest.c <<EOF
836#ifdef __GNUC__
837 yes;
838#endif
839EOF
Theodore Ts'off6dbcc2002-05-24 22:44:42 -0400840if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:841: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000841 ac_cv_prog_gcc=yes
842else
843 ac_cv_prog_gcc=no
844fi
845fi
846
847echo "$ac_t""$ac_cv_prog_gcc" 1>&6
848
849if test $ac_cv_prog_gcc = yes; then
850 GCC=yes
851else
852 GCC=
853fi
854
855ac_test_CFLAGS="${CFLAGS+set}"
856ac_save_CFLAGS="$CFLAGS"
857CFLAGS=
858echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
Theodore Ts'off6dbcc2002-05-24 22:44:42 -0400859echo "configure:860: checking whether ${CC-cc} accepts -g" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000860if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
861 echo $ac_n "(cached) $ac_c" 1>&6
862else
863 echo 'void f(){}' > conftest.c
864if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
865 ac_cv_prog_cc_g=yes
866else
867 ac_cv_prog_cc_g=no
868fi
869rm -f conftest*
870
871fi
872
873echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
874if test "$ac_test_CFLAGS" = set; then
875 CFLAGS="$ac_save_CFLAGS"
876elif test $ac_cv_prog_cc_g = yes; then
877 if test "$GCC" = yes; then
878 CFLAGS="-g -O2"
879 else
880 CFLAGS="-g"
881 fi
882else
883 if test "$GCC" = yes; then
884 CFLAGS="-O2"
885 else
886 CFLAGS=
887 fi
888fi
889
Theodore Ts'o74becf31997-04-26 14:37:06 +0000890# Check whether --with-linker or --without-linker was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000891if test "${with_linker+set}" = set; then
892 withval="$with_linker"
Theodore Ts'o74becf31997-04-26 14:37:06 +0000893 echo "$ac_t""LD=$withval" 1>&6
894LD=$withval
895else
896 if test -z "$LD" ; then LD=$CC; fi
897echo "$ac_t""LD defaults to $LD" 1>&6
898fi
899export LD
900
901# Check whether --with-ccopts or --without-ccopts was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000902if test "${with_ccopts+set}" = set; then
903 withval="$with_ccopts"
Theodore Ts'o74becf31997-04-26 14:37:06 +0000904 echo "$ac_t""CCOPTS is $withval" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +0000905CFLAGS=$withval
Theodore Ts'o74becf31997-04-26 14:37:06 +0000906fi
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000907echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
Theodore Ts'off6dbcc2002-05-24 22:44:42 -0400908echo "configure:909: checking how to run the C preprocessor" >&5
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000909# On Suns, sometimes $CPP names a directory.
910if test -n "$CPP" && test -d "$CPP"; then
911 CPP=
912fi
913if test -z "$CPP"; then
914if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
915 echo $ac_n "(cached) $ac_c" 1>&6
916else
917 # This must be in double quotes, not single quotes, because CPP may get
918 # substituted into the Makefile and "${CC-cc}" will confuse make.
919 CPP="${CC-cc} -E"
920 # On the NeXT, cc -E runs the code through the compiler's parser,
921 # not just through cpp.
922 cat > conftest.$ac_ext <<EOF
Theodore Ts'off6dbcc2002-05-24 22:44:42 -0400923#line 924 "configure"
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000924#include "confdefs.h"
925#include <assert.h>
926Syntax Error
927EOF
928ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'off6dbcc2002-05-24 22:44:42 -0400929{ (eval echo configure:930: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000930ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
931if test -z "$ac_err"; then
932 :
933else
934 echo "$ac_err" >&5
935 echo "configure: failed program was:" >&5
936 cat conftest.$ac_ext >&5
937 rm -rf conftest*
938 CPP="${CC-cc} -E -traditional-cpp"
939 cat > conftest.$ac_ext <<EOF
Theodore Ts'off6dbcc2002-05-24 22:44:42 -0400940#line 941 "configure"
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000941#include "confdefs.h"
942#include <assert.h>
943Syntax Error
944EOF
945ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'off6dbcc2002-05-24 22:44:42 -0400946{ (eval echo configure:947: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000947ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
948if test -z "$ac_err"; then
949 :
950else
951 echo "$ac_err" >&5
952 echo "configure: failed program was:" >&5
953 cat conftest.$ac_ext >&5
954 rm -rf conftest*
955 CPP="${CC-cc} -nologo -E"
956 cat > conftest.$ac_ext <<EOF
Theodore Ts'off6dbcc2002-05-24 22:44:42 -0400957#line 958 "configure"
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000958#include "confdefs.h"
959#include <assert.h>
960Syntax Error
961EOF
962ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'off6dbcc2002-05-24 22:44:42 -0400963{ (eval echo configure:964: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000964ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
965if test -z "$ac_err"; then
966 :
967else
968 echo "$ac_err" >&5
969 echo "configure: failed program was:" >&5
970 cat conftest.$ac_ext >&5
971 rm -rf conftest*
972 CPP=/lib/cpp
973fi
974rm -f conftest*
975fi
976rm -f conftest*
977fi
978rm -f conftest*
979 ac_cv_prog_CPP="$CPP"
980fi
981 CPP="$ac_cv_prog_CPP"
982else
983 ac_cv_prog_CPP="$CPP"
984fi
985echo "$ac_t""$CPP" 1>&6
986
987ac_safe=`echo "linux/fs.h" | sed 'y%./+-%__p_%'`
988echo $ac_n "checking for linux/fs.h""... $ac_c" 1>&6
Theodore Ts'off6dbcc2002-05-24 22:44:42 -0400989echo "configure:990: checking for linux/fs.h" >&5
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000990if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
991 echo $ac_n "(cached) $ac_c" 1>&6
992else
993 cat > conftest.$ac_ext <<EOF
Theodore Ts'off6dbcc2002-05-24 22:44:42 -0400994#line 995 "configure"
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000995#include "confdefs.h"
996#include <linux/fs.h>
997EOF
998ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'off6dbcc2002-05-24 22:44:42 -0400999{ (eval echo configure:1000: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001000ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1001if test -z "$ac_err"; then
1002 rm -rf conftest*
1003 eval "ac_cv_header_$ac_safe=yes"
1004else
1005 echo "$ac_err" >&5
1006 echo "configure: failed program was:" >&5
1007 cat conftest.$ac_ext >&5
1008 rm -rf conftest*
1009 eval "ac_cv_header_$ac_safe=no"
1010fi
1011rm -f conftest*
1012fi
1013if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1014 echo "$ac_t""yes" 1>&6
1015 linux_headers=yes
1016else
1017 echo "$ac_t""no" 1>&6
1018linux_headers=no
1019fi
1020
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001021if test "$linux_headers" != yes; then
1022 LINUX_INCLUDE='-I$(top_builddir)/include'
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001023fi
1024
Theodore Ts'oa4d09611997-04-29 14:28:00 +00001025LIB_EXT=.a
1026STATIC_LIB_EXT=.a
1027PROFILE_LIB_EXT=.a
Theodore Ts'o74becf31997-04-26 14:37:06 +00001028# Check whether --with-ldopts or --without-ldopts was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001029if test "${with_ldopts+set}" = set; then
1030 withval="$with_ldopts"
Theodore Ts'o74becf31997-04-26 14:37:06 +00001031 echo "$ac_t""LDFLAGS is $withval" 1>&6
1032LDFLAGS=$withval
1033else
1034 LDFLAGS=
1035fi
1036
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00001037# Check whether --with-root-prefix or --without-root-prefix was given.
1038if test "${with_root_prefix+set}" = set; then
1039 withval="$with_root_prefix"
1040 root_prefix=$withval
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001041else
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00001042 root_prefix=NONE
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001043fi
Theodore Ts'o19178752000-02-11 15:55:07 +00001044# Check whether --enable-compression or --disable-compression was given.
1045if test "${enable_compression+set}" = set; then
1046 enableval="$enable_compression"
1047 if test "$enableval" = "no"
1048then
1049 echo "Disabling compression support"
1050else
1051 cat >> confdefs.h <<\EOF
1052#define ENABLE_COMPRESSION 1
1053EOF
1054
1055 echo "Enabling compression support"
1056 echo "WARNING: Compression support is experimental"
1057fi
1058
1059else
1060 echo "Disabling compression support by default"
1061
1062fi
1063
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04001064# Check whether --enable-old-evms or --disable-old-evms was given.
1065if test "${enable_old_evms+set}" = set; then
1066 enableval="$enable_old_evms"
1067 if test "$enableval" = "no"
1068then
1069 echo "Using EVMS 1.1.0 ABI"
1070else
1071 cat >> confdefs.h <<\EOF
1072#define ABI_EVMS_1_0 1
1073EOF
1074
1075 echo "Enabling EVMS 1.0.0 ABI"
1076fi
1077
1078else
1079 echo "Using EVMS 1.1.0 ABI by default"
1080
1081fi
1082
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001083# Check whether --enable-dll-shlibs or --disable-dll-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001084if test "${enable_dll_shlibs+set}" = set; then
1085 enableval="$enable_dll_shlibs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001086 if test "$enableval" = "no"
1087then
1088 DLL_CMT=#
1089 MAKEFILE_DLL=/dev/null
1090 echo "Disabling DLL shared libraries"
1091else
1092 DLL_CMT=
1093 MAKEFILE_DLL=$srcdir/lib/Makefile.dll-lib
Theodore Ts'o74becf31997-04-26 14:37:06 +00001094 BINARY_TYPE=dllbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00001095 LIB_EXT=.sa
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001096 echo "Enabling DLL shared libraries"
1097fi
1098
1099else
1100 MAKEFILE_DLL=/dev/null
1101DLL_CMT=#
1102echo "Disabling DLL shared libraries by default"
1103
1104fi
1105
1106
1107
1108# Check whether --enable-elf-shlibs or --disable-elf-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001109if test "${enable_elf_shlibs+set}" = set; then
1110 enableval="$enable_elf_shlibs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001111 if test "$enableval" = "no"
1112then
1113 ELF_CMT=#
1114 MAKEFILE_ELF=/dev/null
1115 echo "Disabling ELF shared libraries"
1116else
1117 ELF_CMT=
1118 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
Theodore Ts'of5955dd2000-10-25 02:38:39 +00001119 case "$host_os" in
1120 solaris2.*)
1121 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
1122 ;;
1123 esac
Theodore Ts'o74becf31997-04-26 14:37:06 +00001124 BINARY_TYPE=elfbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00001125 LIB_EXT=.so
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001126 echo "Enabling ELF shared libraries"
1127fi
1128
1129else
1130 MAKEFILE_ELF=/dev/null
1131ELF_CMT=#
1132echo "Disabling ELF shared libraries by default"
1133
1134fi
1135
1136
1137
1138# Check whether --enable-bsd-shlibs or --disable-bsd-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001139if test "${enable_bsd_shlibs+set}" = set; then
1140 enableval="$enable_bsd_shlibs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001141 if test "$enableval" = "no"
1142then
1143 BSDLIB_CMT=#
1144 MAKEFILE_BSDLIB=/dev/null
1145 echo "Disabling BSD shared libraries"
1146else
1147 BSDLIB_CMT=
1148 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
Theodore Ts'oa4d09611997-04-29 14:28:00 +00001149 LIB_EXT=.so
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001150 echo "Enabling BSD shared libraries"
1151fi
1152
1153else
1154 MAKEFILE_BSDLIB=/dev/null
1155BSDLIB_CMT=#
1156echo "Disabling BSD shared libraries by default"
1157
1158fi
1159
1160
1161
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001162# Check whether --enable-profile or --disable-profile was given.
1163if test "${enable_profile+set}" = set; then
1164 enableval="$enable_profile"
1165 if test "$enableval" = "no"
1166then
1167 PROFILE_CMT=#
1168 MAKEFILE_PROFILE=/dev/null
1169 echo "Disabling profiling libraries"
1170else
1171 PROFILE_CMT=
1172 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
1173 PROFILED_LIB_EXT=_p.a
1174 echo "Building profiling libraries"
1175fi
1176
1177else
1178 PROFILE_CMT=#
1179MAKEFILE_PROFILE=/dev/null
1180echo "Disabling profiling libraries by default"
1181
1182fi
1183
1184
1185
1186# Check whether --enable-checker or --disable-checker was given.
1187if test "${enable_checker+set}" = set; then
1188 enableval="$enable_checker"
1189 if test "$enableval" = "no"
1190then
1191 CHECKER_CMT=#
1192 MAKEFILE_CHECKER=/dev/null
1193 echo "Disabling checker libraries"
1194else
1195 CHECKER_CMT=
1196 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
1197 echo "Building checker libraries"
1198fi
1199
1200else
1201 CHECKER_CMT=#
1202MAKEFILE_CHECKER=/dev/null
1203echo "Disabling checker libraries by default"
1204
1205fi
1206
1207
1208
1209
1210
1211
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00001212# Check whether --enable-jfs-debug or --disable-jfs-debug was given.
1213if test "${enable_jfs_debug+set}" = set; then
1214 enableval="$enable_jfs_debug"
1215 if test "$enableval" = "no"
1216then
1217 echo "Disabling journal debugging"
1218else
1219 cat >> confdefs.h <<\EOF
Theodore Ts'o8cf93332001-12-16 02:23:36 -05001220#define CONFIG_JBD_DEBUG 1
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00001221EOF
1222
1223 echo "Enabling journal debugging"
1224fi
1225
1226else
1227 echo "Disabling journal debugging by default"
1228
1229fi
1230
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001231# Check whether --enable-swapfs or --disable-swapfs was given.
1232if test "${enable_swapfs+set}" = set; then
1233 enableval="$enable_swapfs"
1234 if test "$enableval" = "no"
1235then
1236 echo "Disabling swapfs support"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001237else
1238 cat >> confdefs.h <<\EOF
1239#define ENABLE_SWAPFS 1
1240EOF
1241
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001242 echo "Enabling swapfs support"
1243fi
1244
1245else
1246 echo "Enabling swapfs support by default"
1247cat >> confdefs.h <<\EOF
1248#define ENABLE_SWAPFS 1
1249EOF
1250
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001251
1252fi
1253
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001254# Check whether --enable-debugfs or --disable-debugfs was given.
1255if test "${enable_debugfs+set}" = set; then
1256 enableval="$enable_debugfs"
1257 if test "$enableval" = "no"
1258then
1259 echo "Disabling debugfs support"
1260 DEBUGFS_CMT="#"
1261else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001262 DEBUGFS_CMT=
1263 echo "Enabling debugfs support"
1264fi
1265
1266else
1267 echo "Enabling debugfs support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001268DEBUGFS_CMT=
1269
1270fi
1271
1272
1273# Check whether --enable-imager or --disable-imager was given.
1274if test "${enable_imager+set}" = set; then
1275 enableval="$enable_imager"
1276 if test "$enableval" = "no"
1277then
1278 echo "Disabling e2image support"
1279 IMAGER_CMT="#"
1280else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001281 IMAGER_CMT=
1282 echo "Enabling e2image support"
1283fi
1284
1285else
1286 echo "Enabling e2image support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001287IMAGER_CMT=
1288
1289fi
1290
1291
1292# Check whether --enable-resizer or --disable-resizer was given.
1293if test "${enable_resizer+set}" = set; then
1294 enableval="$enable_resizer"
1295 if test "$enableval" = "no"
1296then
1297 echo "Disabling e2resize support"
1298 RESIZER_CMT="#"
1299else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001300 RESIZER_CMT=
1301 echo "Enabling e2resize support"
1302fi
1303
1304else
1305 echo "Enabling e2resize support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001306RESIZER_CMT=
1307
1308fi
1309
1310
1311# Check whether --enable-dynamic-e2fsck or --disable-dynamic-e2fsck was given.
1312if test "${enable_dynamic_e2fsck+set}" = set; then
1313 enableval="$enable_dynamic_e2fsck"
1314 if test "$enableval" = "no"
1315then
1316 E2FSCK_TYPE=static
1317 echo "Building e2fsck statically"
1318else
1319 E2FSCK_TYPE=shared
1320 echo "Building e2fsck dynamically"
1321fi
1322
1323else
1324 E2FSCK_TYPE=static
1325echo "Building e2fsck statically by default"
1326
1327fi
1328
1329
1330# Check whether --enable-fsck or --disable-fsck was given.
1331if test "${enable_fsck+set}" = set; then
1332 enableval="$enable_fsck"
1333 if test "$enableval" = "no"
1334then
1335 FSCK_PROG='' FSCK_MAN=''
1336 echo "Not building fsck wrapper"
1337else
1338 FSCK_PROG=fsck FSCK_MAN=fsck.8
1339 echo "Building fsck wrapper"
1340fi
1341
1342else
1343 case "$host_os" in
1344 gnu*)
1345 FSCK_PROG='' FSCK_MAN=''
1346 echo "Not building fsck wrapper by default"
1347 ;;
1348 *)
1349 FSCK_PROG=fsck FSCK_MAN=fsck.8
1350 echo "Building fsck wrapper by default"
1351esac
1352
1353fi
1354
1355
1356
1357MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
1358
1359# Check whether --enable-old-bitops or --disable-old-bitops was given.
1360if test "${enable_old_bitops+set}" = set; then
1361 enableval="$enable_old_bitops"
1362 if test "$enableval" = "no"
1363then
1364 echo "Using new (standard) bitmask operations"
1365else
1366 cat >> confdefs.h <<\EOF
1367#define EXT2_OLD_BITOPS 1
1368EOF
1369
1370 echo "Using old (native) bitmask operations"
1371
1372fi
1373
1374else
1375 echo "Using standard bitmask operations by default"
1376
1377fi
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001378
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001379PACKAGE=e2fsprogs
1380VERSION="$E2FSPROGS_VERSION"
1381cat >> confdefs.h <<EOF
1382#define PACKAGE "$PACKAGE"
1383EOF
1384
1385cat >> confdefs.h <<EOF
1386#define VERSION "$VERSION"
1387EOF
1388
1389
1390
1391
Theodore Ts'o6e71e672001-10-08 12:51:00 -04001392ALL_LINGUAS="it nyc tr"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001393echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04001394echo "configure:1395: checking whether ${MAKE-make} sets \${MAKE}" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001395set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1396if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1397 echo $ac_n "(cached) $ac_c" 1>&6
1398else
1399 cat > conftestmake <<\EOF
1400all:
1401 @echo 'ac_maketemp="${MAKE}"'
1402EOF
1403# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1404eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1405if test -n "$ac_maketemp"; then
1406 eval ac_cv_prog_make_${ac_make}_set=yes
1407else
1408 eval ac_cv_prog_make_${ac_make}_set=no
1409fi
1410rm -f conftestmake
1411fi
1412if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1413 echo "$ac_t""yes" 1>&6
1414 SET_MAKE=
1415else
1416 echo "$ac_t""no" 1>&6
1417 SET_MAKE="MAKE=${MAKE-make}"
1418fi
1419
1420# Extract the first word of "ranlib", so it can be a program name with args.
1421set dummy ranlib; ac_word=$2
1422echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04001423echo "configure:1424: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001424if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1425 echo $ac_n "(cached) $ac_c" 1>&6
1426else
1427 if test -n "$RANLIB"; then
1428 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1429else
1430 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1431 ac_dummy="$PATH"
1432 for ac_dir in $ac_dummy; do
1433 test -z "$ac_dir" && ac_dir=.
1434 if test -f $ac_dir/$ac_word; then
1435 ac_cv_prog_RANLIB="ranlib"
1436 break
1437 fi
1438 done
1439 IFS="$ac_save_ifs"
1440 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1441fi
1442fi
1443RANLIB="$ac_cv_prog_RANLIB"
1444if test -n "$RANLIB"; then
1445 echo "$ac_t""$RANLIB" 1>&6
1446else
1447 echo "$ac_t""no" 1>&6
1448fi
1449
1450echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04001451echo "configure:1452: checking for POSIXized ISC" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001452if test -d /etc/conf/kconfig.d &&
1453 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1454then
1455 echo "$ac_t""yes" 1>&6
1456 ISC=yes # If later tests want to check for ISC.
1457 cat >> confdefs.h <<\EOF
1458#define _POSIX_SOURCE 1
1459EOF
1460
1461 if test "$GCC" = yes; then
1462 CC="$CC -posix"
1463 else
1464 CC="$CC -Xp"
1465 fi
1466else
1467 echo "$ac_t""no" 1>&6
1468 ISC=
1469fi
1470
1471echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04001472echo "configure:1473: checking for ANSI C header files" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001473if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1474 echo $ac_n "(cached) $ac_c" 1>&6
1475else
1476 cat > conftest.$ac_ext <<EOF
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04001477#line 1478 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001478#include "confdefs.h"
1479#include <stdlib.h>
1480#include <stdarg.h>
1481#include <string.h>
1482#include <float.h>
1483EOF
1484ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04001485{ (eval echo configure:1486: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001486ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1487if test -z "$ac_err"; then
1488 rm -rf conftest*
1489 ac_cv_header_stdc=yes
1490else
1491 echo "$ac_err" >&5
1492 echo "configure: failed program was:" >&5
1493 cat conftest.$ac_ext >&5
1494 rm -rf conftest*
1495 ac_cv_header_stdc=no
1496fi
1497rm -f conftest*
1498
1499if test $ac_cv_header_stdc = yes; then
1500 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1501cat > conftest.$ac_ext <<EOF
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04001502#line 1503 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001503#include "confdefs.h"
1504#include <string.h>
1505EOF
1506if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1507 egrep "memchr" >/dev/null 2>&1; then
1508 :
1509else
1510 rm -rf conftest*
1511 ac_cv_header_stdc=no
1512fi
1513rm -f conftest*
1514
1515fi
1516
1517if test $ac_cv_header_stdc = yes; then
1518 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1519cat > conftest.$ac_ext <<EOF
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04001520#line 1521 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001521#include "confdefs.h"
1522#include <stdlib.h>
1523EOF
1524if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1525 egrep "free" >/dev/null 2>&1; then
1526 :
1527else
1528 rm -rf conftest*
1529 ac_cv_header_stdc=no
1530fi
1531rm -f conftest*
1532
1533fi
1534
1535if test $ac_cv_header_stdc = yes; then
1536 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1537if test "$cross_compiling" = yes; then
1538 :
1539else
1540 cat > conftest.$ac_ext <<EOF
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04001541#line 1542 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001542#include "confdefs.h"
1543#include <ctype.h>
1544#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1545#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1546#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1547int main () { int i; for (i = 0; i < 256; i++)
1548if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1549exit (0); }
1550
1551EOF
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04001552if { (eval echo configure:1553: \"$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 +00001553then
1554 :
1555else
1556 echo "configure: failed program was:" >&5
1557 cat conftest.$ac_ext >&5
1558 rm -fr conftest*
1559 ac_cv_header_stdc=no
1560fi
1561rm -fr conftest*
1562fi
1563
1564fi
1565fi
1566
1567echo "$ac_t""$ac_cv_header_stdc" 1>&6
1568if test $ac_cv_header_stdc = yes; then
1569 cat >> confdefs.h <<\EOF
1570#define STDC_HEADERS 1
1571EOF
1572
1573fi
1574
1575echo $ac_n "checking for working const""... $ac_c" 1>&6
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04001576echo "configure:1577: checking for working const" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001577if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1578 echo $ac_n "(cached) $ac_c" 1>&6
1579else
1580 cat > conftest.$ac_ext <<EOF
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04001581#line 1582 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001582#include "confdefs.h"
1583
1584int main() {
1585
1586/* Ultrix mips cc rejects this. */
Theodore Ts'o250f79f2001-05-19 22:02:22 +00001587typedef int charset[2]; const charset x;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001588/* SunOS 4.1.1 cc rejects this. */
1589char const *const *ccp;
1590char **p;
1591/* NEC SVR4.0.2 mips cc rejects this. */
1592struct point {int x, y;};
1593static struct point const zero = {0,0};
1594/* AIX XL C 1.02.0.0 rejects this.
1595 It does not let you subtract one const X* pointer from another in an arm
1596 of an if-expression whose if-part is not a constant expression */
1597const char *g = "string";
1598ccp = &g + (g ? g-g : 0);
1599/* HPUX 7.0 cc rejects these. */
1600++ccp;
1601p = (char**) ccp;
1602ccp = (char const *const *) p;
1603{ /* SCO 3.2v4 cc rejects this. */
1604 char *t;
1605 char const *s = 0 ? (char *) 0 : (char const *) 0;
1606
1607 *t++ = 0;
1608}
1609{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1610 int x[] = {25, 17};
1611 const int *foo = &x[0];
1612 ++foo;
1613}
1614{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1615 typedef const int *iptr;
1616 iptr p = 0;
1617 ++p;
1618}
1619{ /* AIX XL C 1.02.0.0 rejects this saying
1620 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1621 struct s { int j; const int *ap[3]; };
1622 struct s *b; b->j = 5;
1623}
1624{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1625 const int foo = 10;
1626}
1627
1628; return 0; }
1629EOF
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04001630if { (eval echo configure:1631: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001631 rm -rf conftest*
1632 ac_cv_c_const=yes
1633else
1634 echo "configure: failed program was:" >&5
1635 cat conftest.$ac_ext >&5
1636 rm -rf conftest*
1637 ac_cv_c_const=no
1638fi
1639rm -f conftest*
1640fi
1641
1642echo "$ac_t""$ac_cv_c_const" 1>&6
1643if test $ac_cv_c_const = no; then
1644 cat >> confdefs.h <<\EOF
1645#define const
1646EOF
1647
1648fi
1649
1650echo $ac_n "checking for inline""... $ac_c" 1>&6
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04001651echo "configure:1652: checking for inline" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001652if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1653 echo $ac_n "(cached) $ac_c" 1>&6
1654else
1655 ac_cv_c_inline=no
1656for ac_kw in inline __inline__ __inline; do
1657 cat > conftest.$ac_ext <<EOF
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04001658#line 1659 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001659#include "confdefs.h"
1660
1661int main() {
Theodore Ts'o250f79f2001-05-19 22:02:22 +00001662} $ac_kw foo() {
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001663; return 0; }
1664EOF
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04001665if { (eval echo configure:1666: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001666 rm -rf conftest*
1667 ac_cv_c_inline=$ac_kw; break
1668else
1669 echo "configure: failed program was:" >&5
1670 cat conftest.$ac_ext >&5
1671fi
1672rm -f conftest*
1673done
1674
1675fi
1676
1677echo "$ac_t""$ac_cv_c_inline" 1>&6
1678case "$ac_cv_c_inline" in
1679 inline | yes) ;;
1680 no) cat >> confdefs.h <<\EOF
1681#define inline
1682EOF
1683 ;;
1684 *) cat >> confdefs.h <<EOF
1685#define inline $ac_cv_c_inline
1686EOF
1687 ;;
1688esac
1689
1690echo $ac_n "checking for off_t""... $ac_c" 1>&6
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04001691echo "configure:1692: checking for off_t" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001692if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1693 echo $ac_n "(cached) $ac_c" 1>&6
1694else
1695 cat > conftest.$ac_ext <<EOF
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04001696#line 1697 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001697#include "confdefs.h"
1698#include <sys/types.h>
1699#if STDC_HEADERS
1700#include <stdlib.h>
1701#include <stddef.h>
1702#endif
1703EOF
1704if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1705 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1706 rm -rf conftest*
1707 ac_cv_type_off_t=yes
1708else
1709 rm -rf conftest*
1710 ac_cv_type_off_t=no
1711fi
1712rm -f conftest*
1713
1714fi
1715echo "$ac_t""$ac_cv_type_off_t" 1>&6
1716if test $ac_cv_type_off_t = no; then
1717 cat >> confdefs.h <<\EOF
1718#define off_t long
1719EOF
1720
1721fi
1722
1723echo $ac_n "checking for size_t""... $ac_c" 1>&6
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04001724echo "configure:1725: checking for size_t" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001725if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1726 echo $ac_n "(cached) $ac_c" 1>&6
1727else
1728 cat > conftest.$ac_ext <<EOF
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04001729#line 1730 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001730#include "confdefs.h"
1731#include <sys/types.h>
1732#if STDC_HEADERS
1733#include <stdlib.h>
1734#include <stddef.h>
1735#endif
1736EOF
1737if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1738 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1739 rm -rf conftest*
1740 ac_cv_type_size_t=yes
1741else
1742 rm -rf conftest*
1743 ac_cv_type_size_t=no
1744fi
1745rm -f conftest*
1746
1747fi
1748echo "$ac_t""$ac_cv_type_size_t" 1>&6
1749if test $ac_cv_type_size_t = no; then
1750 cat >> confdefs.h <<\EOF
1751#define size_t unsigned
1752EOF
1753
1754fi
1755
1756# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1757# for constant arguments. Useless!
1758echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04001759echo "configure:1760: checking for working alloca.h" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001760if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1761 echo $ac_n "(cached) $ac_c" 1>&6
1762else
1763 cat > conftest.$ac_ext <<EOF
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04001764#line 1765 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001765#include "confdefs.h"
1766#include <alloca.h>
1767int main() {
Theodore Ts'o250f79f2001-05-19 22:02:22 +00001768char *p = alloca(2 * sizeof(int));
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001769; return 0; }
1770EOF
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04001771if { (eval echo configure:1772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001772 rm -rf conftest*
1773 ac_cv_header_alloca_h=yes
1774else
1775 echo "configure: failed program was:" >&5
1776 cat conftest.$ac_ext >&5
1777 rm -rf conftest*
1778 ac_cv_header_alloca_h=no
1779fi
1780rm -f conftest*
1781fi
1782
1783echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1784if test $ac_cv_header_alloca_h = yes; then
1785 cat >> confdefs.h <<\EOF
1786#define HAVE_ALLOCA_H 1
1787EOF
1788
1789fi
1790
1791echo $ac_n "checking for alloca""... $ac_c" 1>&6
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04001792echo "configure:1793: checking for alloca" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001793if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1794 echo $ac_n "(cached) $ac_c" 1>&6
1795else
1796 cat > conftest.$ac_ext <<EOF
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04001797#line 1798 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001798#include "confdefs.h"
1799
1800#ifdef __GNUC__
1801# define alloca __builtin_alloca
1802#else
1803# ifdef _MSC_VER
1804# include <malloc.h>
1805# define alloca _alloca
1806# else
1807# if HAVE_ALLOCA_H
1808# include <alloca.h>
1809# else
1810# ifdef _AIX
1811 #pragma alloca
1812# else
1813# ifndef alloca /* predefined by HP cc +Olibcalls */
1814char *alloca ();
1815# endif
1816# endif
1817# endif
1818# endif
1819#endif
1820
1821int main() {
1822char *p = (char *) alloca(1);
1823; return 0; }
1824EOF
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04001825if { (eval echo configure:1826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001826 rm -rf conftest*
1827 ac_cv_func_alloca_works=yes
1828else
1829 echo "configure: failed program was:" >&5
1830 cat conftest.$ac_ext >&5
1831 rm -rf conftest*
1832 ac_cv_func_alloca_works=no
1833fi
1834rm -f conftest*
1835fi
1836
1837echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1838if test $ac_cv_func_alloca_works = yes; then
1839 cat >> confdefs.h <<\EOF
1840#define HAVE_ALLOCA 1
1841EOF
1842
1843fi
1844
1845if test $ac_cv_func_alloca_works = no; then
1846 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1847 # that cause trouble. Some versions do not even contain alloca or
1848 # contain a buggy version. If you still want to use their alloca,
1849 # use ar to extract alloca.o from them instead of compiling alloca.c.
1850 ALLOCA=alloca.${ac_objext}
1851 cat >> confdefs.h <<\EOF
1852#define C_ALLOCA 1
1853EOF
1854
1855
1856echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04001857echo "configure:1858: checking whether alloca needs Cray hooks" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001858if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1859 echo $ac_n "(cached) $ac_c" 1>&6
1860else
1861 cat > conftest.$ac_ext <<EOF
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04001862#line 1863 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001863#include "confdefs.h"
1864#if defined(CRAY) && ! defined(CRAY2)
1865webecray
1866#else
1867wenotbecray
1868#endif
1869
1870EOF
1871if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1872 egrep "webecray" >/dev/null 2>&1; then
1873 rm -rf conftest*
1874 ac_cv_os_cray=yes
1875else
1876 rm -rf conftest*
1877 ac_cv_os_cray=no
1878fi
1879rm -f conftest*
1880
1881fi
1882
1883echo "$ac_t""$ac_cv_os_cray" 1>&6
1884if test $ac_cv_os_cray = yes; then
1885for ac_func in _getb67 GETB67 getb67; do
1886 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04001887echo "configure:1888: checking for $ac_func" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001888if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1889 echo $ac_n "(cached) $ac_c" 1>&6
1890else
1891 cat > conftest.$ac_ext <<EOF
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04001892#line 1893 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001893#include "confdefs.h"
1894/* System header to define __stub macros and hopefully few prototypes,
1895 which can conflict with char $ac_func(); below. */
1896#include <assert.h>
1897/* Override any gcc2 internal prototype to avoid an error. */
1898/* We use char because int might match the return type of a gcc2
1899 builtin and then its argument prototype would still apply. */
1900char $ac_func();
1901
1902int main() {
1903
1904/* The GNU C library defines this for functions which it implements
1905 to always fail with ENOSYS. Some functions are actually named
1906 something starting with __ and the normal name is an alias. */
1907#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1908choke me
1909#else
1910$ac_func();
1911#endif
1912
1913; return 0; }
1914EOF
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04001915if { (eval echo configure:1916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001916 rm -rf conftest*
1917 eval "ac_cv_func_$ac_func=yes"
1918else
1919 echo "configure: failed program was:" >&5
1920 cat conftest.$ac_ext >&5
1921 rm -rf conftest*
1922 eval "ac_cv_func_$ac_func=no"
1923fi
1924rm -f conftest*
1925fi
1926
1927if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1928 echo "$ac_t""yes" 1>&6
1929 cat >> confdefs.h <<EOF
1930#define CRAY_STACKSEG_END $ac_func
1931EOF
1932
1933 break
1934else
1935 echo "$ac_t""no" 1>&6
1936fi
1937
1938done
1939fi
1940
1941echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04001942echo "configure:1943: checking stack direction for C alloca" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001943if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1944 echo $ac_n "(cached) $ac_c" 1>&6
1945else
1946 if test "$cross_compiling" = yes; then
1947 ac_cv_c_stack_direction=0
1948else
1949 cat > conftest.$ac_ext <<EOF
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04001950#line 1951 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001951#include "confdefs.h"
1952find_stack_direction ()
1953{
1954 static char *addr = 0;
1955 auto char dummy;
1956 if (addr == 0)
1957 {
1958 addr = &dummy;
1959 return find_stack_direction ();
1960 }
1961 else
1962 return (&dummy > addr) ? 1 : -1;
1963}
1964main ()
1965{
1966 exit (find_stack_direction() < 0);
1967}
1968EOF
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04001969if { (eval echo configure:1970: \"$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 +00001970then
1971 ac_cv_c_stack_direction=1
1972else
1973 echo "configure: failed program was:" >&5
1974 cat conftest.$ac_ext >&5
1975 rm -fr conftest*
1976 ac_cv_c_stack_direction=-1
1977fi
1978rm -fr conftest*
1979fi
1980
1981fi
1982
1983echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1984cat >> confdefs.h <<EOF
1985#define STACK_DIRECTION $ac_cv_c_stack_direction
1986EOF
1987
1988fi
1989
1990for ac_hdr in unistd.h
1991do
1992ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1993echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04001994echo "configure:1995: checking for $ac_hdr" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001995if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1996 echo $ac_n "(cached) $ac_c" 1>&6
1997else
1998 cat > conftest.$ac_ext <<EOF
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04001999#line 2000 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002000#include "confdefs.h"
2001#include <$ac_hdr>
2002EOF
2003ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04002004{ (eval echo configure:2005: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002005ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2006if test -z "$ac_err"; then
2007 rm -rf conftest*
2008 eval "ac_cv_header_$ac_safe=yes"
2009else
2010 echo "$ac_err" >&5
2011 echo "configure: failed program was:" >&5
2012 cat conftest.$ac_ext >&5
2013 rm -rf conftest*
2014 eval "ac_cv_header_$ac_safe=no"
2015fi
2016rm -f conftest*
2017fi
2018if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2019 echo "$ac_t""yes" 1>&6
2020 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2021 cat >> confdefs.h <<EOF
2022#define $ac_tr_hdr 1
2023EOF
2024
2025else
2026 echo "$ac_t""no" 1>&6
2027fi
2028done
2029
2030for ac_func in getpagesize
2031do
2032echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04002033echo "configure:2034: checking for $ac_func" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002034if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2035 echo $ac_n "(cached) $ac_c" 1>&6
2036else
2037 cat > conftest.$ac_ext <<EOF
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04002038#line 2039 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002039#include "confdefs.h"
2040/* System header to define __stub macros and hopefully few prototypes,
2041 which can conflict with char $ac_func(); below. */
2042#include <assert.h>
2043/* Override any gcc2 internal prototype to avoid an error. */
2044/* We use char because int might match the return type of a gcc2
2045 builtin and then its argument prototype would still apply. */
2046char $ac_func();
2047
2048int main() {
2049
2050/* The GNU C library defines this for functions which it implements
2051 to always fail with ENOSYS. Some functions are actually named
2052 something starting with __ and the normal name is an alias. */
2053#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2054choke me
2055#else
2056$ac_func();
2057#endif
2058
2059; return 0; }
2060EOF
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04002061if { (eval echo configure:2062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002062 rm -rf conftest*
2063 eval "ac_cv_func_$ac_func=yes"
2064else
2065 echo "configure: failed program was:" >&5
2066 cat conftest.$ac_ext >&5
2067 rm -rf conftest*
2068 eval "ac_cv_func_$ac_func=no"
2069fi
2070rm -f conftest*
2071fi
2072
2073if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2074 echo "$ac_t""yes" 1>&6
2075 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2076 cat >> confdefs.h <<EOF
2077#define $ac_tr_func 1
2078EOF
2079
2080else
2081 echo "$ac_t""no" 1>&6
2082fi
2083done
2084
2085echo $ac_n "checking for working mmap""... $ac_c" 1>&6
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04002086echo "configure:2087: checking for working mmap" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002087if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2088 echo $ac_n "(cached) $ac_c" 1>&6
2089else
2090 if test "$cross_compiling" = yes; then
2091 ac_cv_func_mmap_fixed_mapped=no
2092else
2093 cat > conftest.$ac_ext <<EOF
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04002094#line 2095 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002095#include "confdefs.h"
2096
2097/* Thanks to Mike Haertel and Jim Avera for this test.
2098 Here is a matrix of mmap possibilities:
2099 mmap private not fixed
2100 mmap private fixed at somewhere currently unmapped
2101 mmap private fixed at somewhere already mapped
2102 mmap shared not fixed
2103 mmap shared fixed at somewhere currently unmapped
2104 mmap shared fixed at somewhere already mapped
2105 For private mappings, we should verify that changes cannot be read()
2106 back from the file, nor mmap's back from the file at a different
2107 address. (There have been systems where private was not correctly
2108 implemented like the infamous i386 svr4.0, and systems where the
2109 VM page cache was not coherent with the filesystem buffer cache
2110 like early versions of FreeBSD and possibly contemporary NetBSD.)
2111 For shared mappings, we should conversely verify that changes get
2112 propogated back to all the places they're supposed to be.
2113
2114 Grep wants private fixed already mapped.
2115 The main things grep needs to know about mmap are:
2116 * does it exist and is it safe to write into the mmap'd area
2117 * how to use it (BSD variants) */
2118#include <sys/types.h>
2119#include <fcntl.h>
2120#include <sys/mman.h>
2121
2122/* This mess was copied from the GNU getpagesize.h. */
2123#ifndef HAVE_GETPAGESIZE
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002124# ifdef HAVE_UNISTD_H
2125# include <unistd.h>
2126# endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002127
2128/* Assume that all systems that can run configure have sys/param.h. */
2129# ifndef HAVE_SYS_PARAM_H
2130# define HAVE_SYS_PARAM_H 1
2131# endif
2132
2133# ifdef _SC_PAGESIZE
2134# define getpagesize() sysconf(_SC_PAGESIZE)
2135# else /* no _SC_PAGESIZE */
2136# ifdef HAVE_SYS_PARAM_H
2137# include <sys/param.h>
2138# ifdef EXEC_PAGESIZE
2139# define getpagesize() EXEC_PAGESIZE
2140# else /* no EXEC_PAGESIZE */
2141# ifdef NBPG
2142# define getpagesize() NBPG * CLSIZE
2143# ifndef CLSIZE
2144# define CLSIZE 1
2145# endif /* no CLSIZE */
2146# else /* no NBPG */
2147# ifdef NBPC
2148# define getpagesize() NBPC
2149# else /* no NBPC */
2150# ifdef PAGESIZE
2151# define getpagesize() PAGESIZE
2152# endif /* PAGESIZE */
2153# endif /* no NBPC */
2154# endif /* no NBPG */
2155# endif /* no EXEC_PAGESIZE */
2156# else /* no HAVE_SYS_PARAM_H */
2157# define getpagesize() 8192 /* punt totally */
2158# endif /* no HAVE_SYS_PARAM_H */
2159# endif /* no _SC_PAGESIZE */
2160
2161#endif /* no HAVE_GETPAGESIZE */
2162
2163#ifdef __cplusplus
2164extern "C" { void *malloc(unsigned); }
2165#else
2166char *malloc();
2167#endif
2168
2169int
2170main()
2171{
2172 char *data, *data2, *data3;
2173 int i, pagesize;
2174 int fd;
2175
2176 pagesize = getpagesize();
2177
2178 /*
2179 * First, make a file with some known garbage in it.
2180 */
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002181 data = malloc(pagesize);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002182 if (!data)
2183 exit(1);
2184 for (i = 0; i < pagesize; ++i)
2185 *(data + i) = rand();
2186 umask(0);
2187 fd = creat("conftestmmap", 0600);
2188 if (fd < 0)
2189 exit(1);
2190 if (write(fd, data, pagesize) != pagesize)
2191 exit(1);
2192 close(fd);
2193
2194 /*
2195 * Next, try to mmap the file at a fixed address which
2196 * already has something else allocated at it. If we can,
2197 * also make sure that we see the same garbage.
2198 */
2199 fd = open("conftestmmap", O_RDWR);
2200 if (fd < 0)
2201 exit(1);
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002202 data2 = malloc(2 * pagesize);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002203 if (!data2)
2204 exit(1);
2205 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2206 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2207 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2208 exit(1);
2209 for (i = 0; i < pagesize; ++i)
2210 if (*(data + i) != *(data2 + i))
2211 exit(1);
2212
2213 /*
2214 * Finally, make sure that changes to the mapped area
2215 * do not percolate back to the file as seen by read().
2216 * (This is a bug on some variants of i386 svr4.0.)
2217 */
2218 for (i = 0; i < pagesize; ++i)
2219 *(data2 + i) = *(data2 + i) + 1;
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002220 data3 = malloc(pagesize);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002221 if (!data3)
2222 exit(1);
2223 if (read(fd, data3, pagesize) != pagesize)
2224 exit(1);
2225 for (i = 0; i < pagesize; ++i)
2226 if (*(data + i) != *(data3 + i))
2227 exit(1);
2228 close(fd);
2229 unlink("conftestmmap");
2230 exit(0);
2231}
2232
2233EOF
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04002234if { (eval echo configure:2235: \"$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 +00002235then
2236 ac_cv_func_mmap_fixed_mapped=yes
2237else
2238 echo "configure: failed program was:" >&5
2239 cat conftest.$ac_ext >&5
2240 rm -fr conftest*
2241 ac_cv_func_mmap_fixed_mapped=no
2242fi
2243rm -fr conftest*
2244fi
2245
2246fi
2247
2248echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2249if test $ac_cv_func_mmap_fixed_mapped = yes; then
2250 cat >> confdefs.h <<\EOF
2251#define HAVE_MMAP 1
2252EOF
2253
2254fi
2255
2256
2257 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2258unistd.h sys/param.h
2259do
2260ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2261echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04002262echo "configure:2263: checking for $ac_hdr" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002263if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2264 echo $ac_n "(cached) $ac_c" 1>&6
2265else
2266 cat > conftest.$ac_ext <<EOF
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04002267#line 2268 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002268#include "confdefs.h"
2269#include <$ac_hdr>
2270EOF
2271ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04002272{ (eval echo configure:2273: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002273ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2274if test -z "$ac_err"; then
2275 rm -rf conftest*
2276 eval "ac_cv_header_$ac_safe=yes"
2277else
2278 echo "$ac_err" >&5
2279 echo "configure: failed program was:" >&5
2280 cat conftest.$ac_ext >&5
2281 rm -rf conftest*
2282 eval "ac_cv_header_$ac_safe=no"
2283fi
2284rm -f conftest*
2285fi
2286if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2287 echo "$ac_t""yes" 1>&6
2288 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2289 cat >> confdefs.h <<EOF
2290#define $ac_tr_hdr 1
2291EOF
2292
2293else
2294 echo "$ac_t""no" 1>&6
2295fi
2296done
2297
2298 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2299strdup __argz_count __argz_stringify __argz_next
2300do
2301echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04002302echo "configure:2303: checking for $ac_func" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002303if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2304 echo $ac_n "(cached) $ac_c" 1>&6
2305else
2306 cat > conftest.$ac_ext <<EOF
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04002307#line 2308 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002308#include "confdefs.h"
2309/* System header to define __stub macros and hopefully few prototypes,
2310 which can conflict with char $ac_func(); below. */
2311#include <assert.h>
2312/* Override any gcc2 internal prototype to avoid an error. */
2313/* We use char because int might match the return type of a gcc2
2314 builtin and then its argument prototype would still apply. */
2315char $ac_func();
2316
2317int main() {
2318
2319/* The GNU C library defines this for functions which it implements
2320 to always fail with ENOSYS. Some functions are actually named
2321 something starting with __ and the normal name is an alias. */
2322#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2323choke me
2324#else
2325$ac_func();
2326#endif
2327
2328; return 0; }
2329EOF
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04002330if { (eval echo configure:2331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002331 rm -rf conftest*
2332 eval "ac_cv_func_$ac_func=yes"
2333else
2334 echo "configure: failed program was:" >&5
2335 cat conftest.$ac_ext >&5
2336 rm -rf conftest*
2337 eval "ac_cv_func_$ac_func=no"
2338fi
2339rm -f conftest*
2340fi
2341
2342if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2343 echo "$ac_t""yes" 1>&6
2344 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2345 cat >> confdefs.h <<EOF
2346#define $ac_tr_func 1
2347EOF
2348
2349else
2350 echo "$ac_t""no" 1>&6
2351fi
2352done
2353
2354
2355 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2356 for ac_func in stpcpy
2357do
2358echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04002359echo "configure:2360: checking for $ac_func" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002360if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2361 echo $ac_n "(cached) $ac_c" 1>&6
2362else
2363 cat > conftest.$ac_ext <<EOF
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04002364#line 2365 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002365#include "confdefs.h"
2366/* System header to define __stub macros and hopefully few prototypes,
2367 which can conflict with char $ac_func(); below. */
2368#include <assert.h>
2369/* Override any gcc2 internal prototype to avoid an error. */
2370/* We use char because int might match the return type of a gcc2
2371 builtin and then its argument prototype would still apply. */
2372char $ac_func();
2373
2374int main() {
2375
2376/* The GNU C library defines this for functions which it implements
2377 to always fail with ENOSYS. Some functions are actually named
2378 something starting with __ and the normal name is an alias. */
2379#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2380choke me
2381#else
2382$ac_func();
2383#endif
2384
2385; return 0; }
2386EOF
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04002387if { (eval echo configure:2388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002388 rm -rf conftest*
2389 eval "ac_cv_func_$ac_func=yes"
2390else
2391 echo "configure: failed program was:" >&5
2392 cat conftest.$ac_ext >&5
2393 rm -rf conftest*
2394 eval "ac_cv_func_$ac_func=no"
2395fi
2396rm -f conftest*
2397fi
2398
2399if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2400 echo "$ac_t""yes" 1>&6
2401 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2402 cat >> confdefs.h <<EOF
2403#define $ac_tr_func 1
2404EOF
2405
2406else
2407 echo "$ac_t""no" 1>&6
2408fi
2409done
2410
2411 fi
2412 if test "${ac_cv_func_stpcpy}" = "yes"; then
2413 cat >> confdefs.h <<\EOF
2414#define HAVE_STPCPY 1
2415EOF
2416
2417 fi
2418
2419 if test $ac_cv_header_locale_h = yes; then
2420 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04002421echo "configure:2422: checking for LC_MESSAGES" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002422if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2423 echo $ac_n "(cached) $ac_c" 1>&6
2424else
2425 cat > conftest.$ac_ext <<EOF
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04002426#line 2427 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002427#include "confdefs.h"
2428#include <locale.h>
2429int main() {
2430return LC_MESSAGES
2431; return 0; }
2432EOF
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04002433if { (eval echo configure:2434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002434 rm -rf conftest*
2435 am_cv_val_LC_MESSAGES=yes
2436else
2437 echo "configure: failed program was:" >&5
2438 cat conftest.$ac_ext >&5
2439 rm -rf conftest*
2440 am_cv_val_LC_MESSAGES=no
2441fi
2442rm -f conftest*
2443fi
2444
2445echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2446 if test $am_cv_val_LC_MESSAGES = yes; then
2447 cat >> confdefs.h <<\EOF
2448#define HAVE_LC_MESSAGES 1
2449EOF
2450
2451 fi
2452 fi
2453 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04002454echo "configure:2455: checking whether NLS is requested" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002455 # Check whether --enable-nls or --disable-nls was given.
2456if test "${enable_nls+set}" = set; then
2457 enableval="$enable_nls"
2458 USE_NLS=$enableval
2459else
2460 USE_NLS=no
2461fi
2462
2463 echo "$ac_t""$USE_NLS" 1>&6
2464
2465
2466 USE_INCLUDED_LIBINTL=no
2467
2468 if test "$USE_NLS" = "yes"; then
2469 cat >> confdefs.h <<\EOF
2470#define ENABLE_NLS 1
2471EOF
2472
2473 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04002474echo "configure:2475: checking whether included gettext is requested" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002475 # Check whether --with-included-gettext or --without-included-gettext was given.
2476if test "${with_included_gettext+set}" = set; then
2477 withval="$with_included_gettext"
2478 nls_cv_force_use_gnu_gettext=$withval
2479else
2480 nls_cv_force_use_gnu_gettext=no
2481fi
2482
2483 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2484
2485 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2486 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2487 nls_cv_header_intl=
2488 nls_cv_header_libgt=
2489 CATOBJEXT=NONE
2490
2491 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2492echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04002493echo "configure:2494: checking for libintl.h" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002494if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2495 echo $ac_n "(cached) $ac_c" 1>&6
2496else
2497 cat > conftest.$ac_ext <<EOF
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04002498#line 2499 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002499#include "confdefs.h"
2500#include <libintl.h>
2501EOF
2502ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04002503{ (eval echo configure:2504: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002504ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2505if test -z "$ac_err"; then
2506 rm -rf conftest*
2507 eval "ac_cv_header_$ac_safe=yes"
2508else
2509 echo "$ac_err" >&5
2510 echo "configure: failed program was:" >&5
2511 cat conftest.$ac_ext >&5
2512 rm -rf conftest*
2513 eval "ac_cv_header_$ac_safe=no"
2514fi
2515rm -f conftest*
2516fi
2517if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2518 echo "$ac_t""yes" 1>&6
2519 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04002520echo "configure:2521: checking for gettext in libc" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002521if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2522 echo $ac_n "(cached) $ac_c" 1>&6
2523else
2524 cat > conftest.$ac_ext <<EOF
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04002525#line 2526 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002526#include "confdefs.h"
2527#include <libintl.h>
2528int main() {
2529return (int) gettext ("")
2530; return 0; }
2531EOF
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04002532if { (eval echo configure:2533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002533 rm -rf conftest*
2534 gt_cv_func_gettext_libc=yes
2535else
2536 echo "configure: failed program was:" >&5
2537 cat conftest.$ac_ext >&5
2538 rm -rf conftest*
2539 gt_cv_func_gettext_libc=no
2540fi
2541rm -f conftest*
2542fi
2543
2544echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2545
2546 if test "$gt_cv_func_gettext_libc" != "yes"; then
2547 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04002548echo "configure:2549: checking for bindtextdomain in -lintl" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002549ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2550if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2551 echo $ac_n "(cached) $ac_c" 1>&6
2552else
2553 ac_save_LIBS="$LIBS"
2554LIBS="-lintl $LIBS"
2555cat > conftest.$ac_ext <<EOF
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04002556#line 2557 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002557#include "confdefs.h"
2558/* Override any gcc2 internal prototype to avoid an error. */
2559/* We use char because int might match the return type of a gcc2
2560 builtin and then its argument prototype would still apply. */
2561char bindtextdomain();
2562
2563int main() {
2564bindtextdomain()
2565; return 0; }
2566EOF
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04002567if { (eval echo configure:2568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002568 rm -rf conftest*
2569 eval "ac_cv_lib_$ac_lib_var=yes"
2570else
2571 echo "configure: failed program was:" >&5
2572 cat conftest.$ac_ext >&5
2573 rm -rf conftest*
2574 eval "ac_cv_lib_$ac_lib_var=no"
2575fi
2576rm -f conftest*
2577LIBS="$ac_save_LIBS"
2578
2579fi
2580if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2581 echo "$ac_t""yes" 1>&6
2582 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04002583echo "configure:2584: checking for gettext in libintl" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002584if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2585 echo $ac_n "(cached) $ac_c" 1>&6
2586else
2587 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04002588echo "configure:2589: checking for gettext in -lintl" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002589ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
2590if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2591 echo $ac_n "(cached) $ac_c" 1>&6
2592else
2593 ac_save_LIBS="$LIBS"
2594LIBS="-lintl $LIBS"
2595cat > conftest.$ac_ext <<EOF
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04002596#line 2597 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002597#include "confdefs.h"
2598/* Override any gcc2 internal prototype to avoid an error. */
2599/* We use char because int might match the return type of a gcc2
2600 builtin and then its argument prototype would still apply. */
2601char gettext();
2602
2603int main() {
2604gettext()
2605; return 0; }
2606EOF
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04002607if { (eval echo configure:2608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002608 rm -rf conftest*
2609 eval "ac_cv_lib_$ac_lib_var=yes"
2610else
2611 echo "configure: failed program was:" >&5
2612 cat conftest.$ac_ext >&5
2613 rm -rf conftest*
2614 eval "ac_cv_lib_$ac_lib_var=no"
2615fi
2616rm -f conftest*
2617LIBS="$ac_save_LIBS"
2618
2619fi
2620if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2621 echo "$ac_t""yes" 1>&6
2622 gt_cv_func_gettext_libintl=yes
2623else
2624 echo "$ac_t""no" 1>&6
2625gt_cv_func_gettext_libintl=no
2626fi
2627
2628fi
2629
2630echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2631else
2632 echo "$ac_t""no" 1>&6
2633fi
2634
2635 fi
2636
2637 if test "$gt_cv_func_gettext_libc" = "yes" \
2638 || test "$gt_cv_func_gettext_libintl" = "yes"; then
2639 cat >> confdefs.h <<\EOF
2640#define HAVE_GETTEXT 1
2641EOF
2642
2643 # Extract the first word of "msgfmt", so it can be a program name with args.
2644set dummy msgfmt; ac_word=$2
2645echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04002646echo "configure:2647: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002647if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2648 echo $ac_n "(cached) $ac_c" 1>&6
2649else
2650 case "$MSGFMT" in
2651 /*)
2652 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2653 ;;
2654 *)
2655 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2656 for ac_dir in $PATH; do
2657 test -z "$ac_dir" && ac_dir=.
2658 if test -f $ac_dir/$ac_word; then
2659 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2660 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2661 break
2662 fi
2663 fi
2664 done
2665 IFS="$ac_save_ifs"
2666 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
2667 ;;
2668esac
2669fi
2670MSGFMT="$ac_cv_path_MSGFMT"
2671if test -n "$MSGFMT"; then
2672 echo "$ac_t""$MSGFMT" 1>&6
2673else
2674 echo "$ac_t""no" 1>&6
2675fi
2676 if test "$MSGFMT" != "no"; then
2677 for ac_func in dcgettext
2678do
2679echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04002680echo "configure:2681: checking for $ac_func" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002681if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2682 echo $ac_n "(cached) $ac_c" 1>&6
2683else
2684 cat > conftest.$ac_ext <<EOF
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04002685#line 2686 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002686#include "confdefs.h"
2687/* System header to define __stub macros and hopefully few prototypes,
2688 which can conflict with char $ac_func(); below. */
2689#include <assert.h>
2690/* Override any gcc2 internal prototype to avoid an error. */
2691/* We use char because int might match the return type of a gcc2
2692 builtin and then its argument prototype would still apply. */
2693char $ac_func();
2694
2695int main() {
2696
2697/* The GNU C library defines this for functions which it implements
2698 to always fail with ENOSYS. Some functions are actually named
2699 something starting with __ and the normal name is an alias. */
2700#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2701choke me
2702#else
2703$ac_func();
2704#endif
2705
2706; return 0; }
2707EOF
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04002708if { (eval echo configure:2709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002709 rm -rf conftest*
2710 eval "ac_cv_func_$ac_func=yes"
2711else
2712 echo "configure: failed program was:" >&5
2713 cat conftest.$ac_ext >&5
2714 rm -rf conftest*
2715 eval "ac_cv_func_$ac_func=no"
2716fi
2717rm -f conftest*
2718fi
2719
2720if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2721 echo "$ac_t""yes" 1>&6
2722 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2723 cat >> confdefs.h <<EOF
2724#define $ac_tr_func 1
2725EOF
2726
2727else
2728 echo "$ac_t""no" 1>&6
2729fi
2730done
2731
2732 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2733set dummy gmsgfmt; ac_word=$2
2734echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04002735echo "configure:2736: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002736if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2737 echo $ac_n "(cached) $ac_c" 1>&6
2738else
2739 case "$GMSGFMT" in
2740 /*)
2741 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2742 ;;
2743 ?:/*)
2744 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2745 ;;
2746 *)
2747 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2748 ac_dummy="$PATH"
2749 for ac_dir in $ac_dummy; do
2750 test -z "$ac_dir" && ac_dir=.
2751 if test -f $ac_dir/$ac_word; then
2752 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2753 break
2754 fi
2755 done
2756 IFS="$ac_save_ifs"
2757 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2758 ;;
2759esac
2760fi
2761GMSGFMT="$ac_cv_path_GMSGFMT"
2762if test -n "$GMSGFMT"; then
2763 echo "$ac_t""$GMSGFMT" 1>&6
2764else
2765 echo "$ac_t""no" 1>&6
2766fi
2767
2768 # Extract the first word of "xgettext", so it can be a program name with args.
2769set dummy xgettext; ac_word=$2
2770echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04002771echo "configure:2772: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002772if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2773 echo $ac_n "(cached) $ac_c" 1>&6
2774else
2775 case "$XGETTEXT" in
2776 /*)
2777 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2778 ;;
2779 *)
2780 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2781 for ac_dir in $PATH; do
2782 test -z "$ac_dir" && ac_dir=.
2783 if test -f $ac_dir/$ac_word; then
2784 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2785 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2786 break
2787 fi
2788 fi
2789 done
2790 IFS="$ac_save_ifs"
2791 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2792 ;;
2793esac
2794fi
2795XGETTEXT="$ac_cv_path_XGETTEXT"
2796if test -n "$XGETTEXT"; then
2797 echo "$ac_t""$XGETTEXT" 1>&6
2798else
2799 echo "$ac_t""no" 1>&6
2800fi
2801
2802 cat > conftest.$ac_ext <<EOF
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04002803#line 2804 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002804#include "confdefs.h"
2805
2806int main() {
2807extern int _nl_msg_cat_cntr;
2808 return _nl_msg_cat_cntr
2809; return 0; }
2810EOF
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04002811if { (eval echo configure:2812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002812 rm -rf conftest*
2813 CATOBJEXT=.gmo
2814 DATADIRNAME=share
2815else
2816 echo "configure: failed program was:" >&5
2817 cat conftest.$ac_ext >&5
2818 rm -rf conftest*
2819 CATOBJEXT=.mo
2820 DATADIRNAME=lib
2821fi
2822rm -f conftest*
2823 INSTOBJEXT=.mo
2824 fi
2825 fi
2826
2827else
2828 echo "$ac_t""no" 1>&6
2829fi
2830
2831
2832 if test "$CATOBJEXT" = "NONE"; then
2833 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04002834echo "configure:2835: checking whether catgets can be used" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002835 # Check whether --with-catgets or --without-catgets was given.
2836if test "${with_catgets+set}" = set; then
2837 withval="$with_catgets"
2838 nls_cv_use_catgets=$withval
2839else
2840 nls_cv_use_catgets=no
2841fi
2842
2843 echo "$ac_t""$nls_cv_use_catgets" 1>&6
2844
2845 if test "$nls_cv_use_catgets" = "yes"; then
2846 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04002847echo "configure:2848: checking for main in -li" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002848ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'`
2849if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2850 echo $ac_n "(cached) $ac_c" 1>&6
2851else
2852 ac_save_LIBS="$LIBS"
2853LIBS="-li $LIBS"
2854cat > conftest.$ac_ext <<EOF
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04002855#line 2856 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002856#include "confdefs.h"
2857
2858int main() {
2859main()
2860; return 0; }
2861EOF
Theodore Ts'off6dbcc2002-05-24 22:44:42 -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 eval "ac_cv_lib_$ac_lib_var=yes"
2865else
2866 echo "configure: failed program was:" >&5
2867 cat conftest.$ac_ext >&5
2868 rm -rf conftest*
2869 eval "ac_cv_lib_$ac_lib_var=no"
2870fi
2871rm -f conftest*
2872LIBS="$ac_save_LIBS"
2873
2874fi
2875if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2876 echo "$ac_t""yes" 1>&6
2877 ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2878 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2879 cat >> confdefs.h <<EOF
2880#define $ac_tr_lib 1
2881EOF
2882
2883 LIBS="-li $LIBS"
2884
2885else
2886 echo "$ac_t""no" 1>&6
2887fi
2888
2889 echo $ac_n "checking for catgets""... $ac_c" 1>&6
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04002890echo "configure:2891: checking for catgets" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002891if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
2892 echo $ac_n "(cached) $ac_c" 1>&6
2893else
2894 cat > conftest.$ac_ext <<EOF
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04002895#line 2896 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002896#include "confdefs.h"
2897/* System header to define __stub macros and hopefully few prototypes,
2898 which can conflict with char catgets(); below. */
2899#include <assert.h>
2900/* Override any gcc2 internal prototype to avoid an error. */
2901/* We use char because int might match the return type of a gcc2
2902 builtin and then its argument prototype would still apply. */
2903char catgets();
2904
2905int main() {
2906
2907/* The GNU C library defines this for functions which it implements
2908 to always fail with ENOSYS. Some functions are actually named
2909 something starting with __ and the normal name is an alias. */
2910#if defined (__stub_catgets) || defined (__stub___catgets)
2911choke me
2912#else
2913catgets();
2914#endif
2915
2916; return 0; }
2917EOF
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04002918if { (eval echo configure:2919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002919 rm -rf conftest*
2920 eval "ac_cv_func_catgets=yes"
2921else
2922 echo "configure: failed program was:" >&5
2923 cat conftest.$ac_ext >&5
2924 rm -rf conftest*
2925 eval "ac_cv_func_catgets=no"
2926fi
2927rm -f conftest*
2928fi
2929
2930if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
2931 echo "$ac_t""yes" 1>&6
2932 cat >> confdefs.h <<\EOF
2933#define HAVE_CATGETS 1
2934EOF
2935
2936 INTLOBJS="\$(CATOBJS)"
2937 # Extract the first word of "gencat", so it can be a program name with args.
2938set dummy gencat; ac_word=$2
2939echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04002940echo "configure:2941: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002941if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
2942 echo $ac_n "(cached) $ac_c" 1>&6
2943else
2944 case "$GENCAT" in
2945 /*)
2946 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
2947 ;;
2948 ?:/*)
2949 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path.
2950 ;;
2951 *)
2952 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2953 ac_dummy="$PATH"
2954 for ac_dir in $ac_dummy; do
2955 test -z "$ac_dir" && ac_dir=.
2956 if test -f $ac_dir/$ac_word; then
2957 ac_cv_path_GENCAT="$ac_dir/$ac_word"
2958 break
2959 fi
2960 done
2961 IFS="$ac_save_ifs"
2962 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
2963 ;;
2964esac
2965fi
2966GENCAT="$ac_cv_path_GENCAT"
2967if test -n "$GENCAT"; then
2968 echo "$ac_t""$GENCAT" 1>&6
2969else
2970 echo "$ac_t""no" 1>&6
2971fi
2972 if test "$GENCAT" != "no"; then
2973 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2974set dummy gmsgfmt; ac_word=$2
2975echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04002976echo "configure:2977: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002977if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2978 echo $ac_n "(cached) $ac_c" 1>&6
2979else
2980 case "$GMSGFMT" in
2981 /*)
2982 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2983 ;;
2984 ?:/*)
2985 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2986 ;;
2987 *)
2988 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2989 ac_dummy="$PATH"
2990 for ac_dir in $ac_dummy; do
2991 test -z "$ac_dir" && ac_dir=.
2992 if test -f $ac_dir/$ac_word; then
2993 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2994 break
2995 fi
2996 done
2997 IFS="$ac_save_ifs"
2998 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
2999 ;;
3000esac
3001fi
3002GMSGFMT="$ac_cv_path_GMSGFMT"
3003if test -n "$GMSGFMT"; then
3004 echo "$ac_t""$GMSGFMT" 1>&6
3005else
3006 echo "$ac_t""no" 1>&6
3007fi
3008
3009 if test "$GMSGFMT" = "no"; then
3010 # Extract the first word of "msgfmt", so it can be a program name with args.
3011set dummy msgfmt; ac_word=$2
3012echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04003013echo "configure:3014: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003014if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3015 echo $ac_n "(cached) $ac_c" 1>&6
3016else
3017 case "$GMSGFMT" in
3018 /*)
3019 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3020 ;;
3021 *)
3022 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3023 for ac_dir in $PATH; do
3024 test -z "$ac_dir" && ac_dir=.
3025 if test -f $ac_dir/$ac_word; then
3026 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3027 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3028 break
3029 fi
3030 fi
3031 done
3032 IFS="$ac_save_ifs"
3033 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
3034 ;;
3035esac
3036fi
3037GMSGFMT="$ac_cv_path_GMSGFMT"
3038if test -n "$GMSGFMT"; then
3039 echo "$ac_t""$GMSGFMT" 1>&6
3040else
3041 echo "$ac_t""no" 1>&6
3042fi
3043
3044 fi
3045 # Extract the first word of "xgettext", so it can be a program name with args.
3046set dummy xgettext; ac_word=$2
3047echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04003048echo "configure:3049: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003049if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3050 echo $ac_n "(cached) $ac_c" 1>&6
3051else
3052 case "$XGETTEXT" in
3053 /*)
3054 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3055 ;;
3056 *)
3057 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3058 for ac_dir in $PATH; do
3059 test -z "$ac_dir" && ac_dir=.
3060 if test -f $ac_dir/$ac_word; then
3061 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3062 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3063 break
3064 fi
3065 fi
3066 done
3067 IFS="$ac_save_ifs"
3068 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3069 ;;
3070esac
3071fi
3072XGETTEXT="$ac_cv_path_XGETTEXT"
3073if test -n "$XGETTEXT"; then
3074 echo "$ac_t""$XGETTEXT" 1>&6
3075else
3076 echo "$ac_t""no" 1>&6
3077fi
3078
3079 USE_INCLUDED_LIBINTL=yes
3080 CATOBJEXT=.cat
3081 INSTOBJEXT=.cat
3082 DATADIRNAME=lib
3083 INTLDEPS='$(top_builddir)/intl/libintl.a'
3084 INTLLIBS=$INTLDEPS
3085 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
3086 nls_cv_header_intl=intl/libintl.h
3087 nls_cv_header_libgt=intl/libgettext.h
3088 fi
3089else
3090 echo "$ac_t""no" 1>&6
3091fi
3092
3093 fi
3094 fi
3095
3096 if test "$CATOBJEXT" = "NONE"; then
3097 nls_cv_use_gnu_gettext=yes
3098 fi
3099 fi
3100
3101 if test "$nls_cv_use_gnu_gettext" = "yes"; then
3102 INTLOBJS="\$(GETTOBJS)"
3103 # Extract the first word of "msgfmt", so it can be a program name with args.
3104set dummy msgfmt; ac_word=$2
3105echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04003106echo "configure:3107: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003107if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3108 echo $ac_n "(cached) $ac_c" 1>&6
3109else
3110 case "$MSGFMT" in
3111 /*)
3112 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3113 ;;
3114 *)
3115 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3116 for ac_dir in $PATH; do
3117 test -z "$ac_dir" && ac_dir=.
3118 if test -f $ac_dir/$ac_word; then
3119 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3120 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3121 break
3122 fi
3123 fi
3124 done
3125 IFS="$ac_save_ifs"
3126 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
3127 ;;
3128esac
3129fi
3130MSGFMT="$ac_cv_path_MSGFMT"
3131if test -n "$MSGFMT"; then
3132 echo "$ac_t""$MSGFMT" 1>&6
3133else
3134 echo "$ac_t""no" 1>&6
3135fi
3136
3137 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3138set dummy gmsgfmt; ac_word=$2
3139echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04003140echo "configure:3141: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003141if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3142 echo $ac_n "(cached) $ac_c" 1>&6
3143else
3144 case "$GMSGFMT" in
3145 /*)
3146 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3147 ;;
3148 ?:/*)
3149 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3150 ;;
3151 *)
3152 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3153 ac_dummy="$PATH"
3154 for ac_dir in $ac_dummy; do
3155 test -z "$ac_dir" && ac_dir=.
3156 if test -f $ac_dir/$ac_word; then
3157 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3158 break
3159 fi
3160 done
3161 IFS="$ac_save_ifs"
3162 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3163 ;;
3164esac
3165fi
3166GMSGFMT="$ac_cv_path_GMSGFMT"
3167if test -n "$GMSGFMT"; then
3168 echo "$ac_t""$GMSGFMT" 1>&6
3169else
3170 echo "$ac_t""no" 1>&6
3171fi
3172
3173 # Extract the first word of "xgettext", so it can be a program name with args.
3174set dummy xgettext; ac_word=$2
3175echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04003176echo "configure:3177: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003177if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3178 echo $ac_n "(cached) $ac_c" 1>&6
3179else
3180 case "$XGETTEXT" in
3181 /*)
3182 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3183 ;;
3184 *)
3185 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3186 for ac_dir in $PATH; do
3187 test -z "$ac_dir" && ac_dir=.
3188 if test -f $ac_dir/$ac_word; then
3189 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3190 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3191 break
3192 fi
3193 fi
3194 done
3195 IFS="$ac_save_ifs"
3196 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3197 ;;
3198esac
3199fi
3200XGETTEXT="$ac_cv_path_XGETTEXT"
3201if test -n "$XGETTEXT"; then
3202 echo "$ac_t""$XGETTEXT" 1>&6
3203else
3204 echo "$ac_t""no" 1>&6
3205fi
3206
3207
3208 USE_INCLUDED_LIBINTL=yes
3209 CATOBJEXT=.gmo
3210 INSTOBJEXT=.mo
3211 DATADIRNAME=share
3212 INTLDEPS='$(top_builddir)/intl/libintl.a'
3213 INTLLIBS=$INTLDEPS
3214 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
3215 nls_cv_header_intl=intl/libintl.h
3216 nls_cv_header_libgt=intl/libgettext.h
3217 fi
3218
3219 if test "$XGETTEXT" != ":"; then
3220 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
3221 : ;
3222 else
3223 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
3224 XGETTEXT=":"
3225 fi
3226 fi
3227
3228 # We need to process the po/ directory.
3229 POSUB=po
3230 else
3231 DATADIRNAME=share
3232 nls_cv_header_intl=intl/libintl.h
3233 nls_cv_header_libgt=intl/libgettext.h
3234 fi
3235
3236
3237
3238
3239 # If this is used in GNU gettext we have to set USE_NLS to `yes'
3240 # because some of the sources are only built for this goal.
3241 if test "$PACKAGE" = gettext; then
3242 USE_NLS=yes
3243 USE_INCLUDED_LIBINTL=yes
3244 fi
3245
3246 for lang in $ALL_LINGUAS; do
3247 GMOFILES="$GMOFILES $lang.gmo"
3248 POFILES="$POFILES $lang.po"
3249 done
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264 if test "x$CATOBJEXT" != "x"; then
3265 if test "x$ALL_LINGUAS" = "x"; then
3266 LINGUAS=
3267 else
3268 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04003269echo "configure:3270: checking for catalogs to be installed" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003270 NEW_LINGUAS=
3271 for lang in ${LINGUAS=$ALL_LINGUAS}; do
3272 case "$ALL_LINGUAS" in
3273 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
3274 esac
3275 done
3276 LINGUAS=$NEW_LINGUAS
3277 echo "$ac_t""$LINGUAS" 1>&6
3278 fi
3279
3280 if test -n "$LINGUAS"; then
3281 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
3282 fi
3283 fi
3284
3285 if test $ac_cv_header_locale_h = yes; then
3286 INCLUDE_LOCALE_H="#include <locale.h>"
3287 else
3288 INCLUDE_LOCALE_H="\
3289/* The system does not provide the header <locale.h>. Take care yourself. */"
3290 fi
3291
3292
3293 test -d intl || mkdir intl
3294 if test "$CATOBJEXT" = ".cat"; then
3295 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
3296echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04003297echo "configure:3298: checking for linux/version.h" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003298if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3299 echo $ac_n "(cached) $ac_c" 1>&6
3300else
3301 cat > conftest.$ac_ext <<EOF
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04003302#line 3303 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003303#include "confdefs.h"
3304#include <linux/version.h>
3305EOF
3306ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04003307{ (eval echo configure:3308: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003308ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3309if test -z "$ac_err"; then
3310 rm -rf conftest*
3311 eval "ac_cv_header_$ac_safe=yes"
3312else
3313 echo "$ac_err" >&5
3314 echo "configure: failed program was:" >&5
3315 cat conftest.$ac_ext >&5
3316 rm -rf conftest*
3317 eval "ac_cv_header_$ac_safe=no"
3318fi
3319rm -f conftest*
3320fi
3321if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3322 echo "$ac_t""yes" 1>&6
3323 msgformat=linux
3324else
3325 echo "$ac_t""no" 1>&6
3326msgformat=xopen
3327fi
3328
3329
3330 sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
3331 fi
3332 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
3333 $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
3334
3335 if test "$PACKAGE" = "gettext"; then
3336 GT_NO="#NO#"
3337 GT_YES=
3338 else
3339 GT_NO=
3340 GT_YES="#YES#"
3341 fi
3342
3343
3344
3345 MKINSTALLDIRS=
3346 if test -n "$ac_aux_dir"; then
3347 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
3348 fi
3349 if test -z "$MKINSTALLDIRS"; then
3350 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3351 fi
3352
3353
3354 l=
3355
3356
3357 test -d po || mkdir po
3358 if test "x$srcdir" != "x."; then
3359 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
3360 posrcprefix="$srcdir/"
3361 else
3362 posrcprefix="../$srcdir/"
3363 fi
3364 else
3365 posrcprefix="../"
3366 fi
3367 rm -f po/POTFILES
3368 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
3369 < $srcdir/po/POTFILES.in > po/POTFILES
3370
Theodore Ts'o74becf31997-04-26 14:37:06 +00003371
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003372echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04003373echo "configure:3374: checking whether ${MAKE-make} sets \${MAKE}" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003374set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003375if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
3376 echo $ac_n "(cached) $ac_c" 1>&6
3377else
3378 cat > conftestmake <<\EOF
3379all:
3380 @echo 'ac_maketemp="${MAKE}"'
3381EOF
3382# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3383eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
3384if test -n "$ac_maketemp"; then
3385 eval ac_cv_prog_make_${ac_make}_set=yes
3386else
3387 eval ac_cv_prog_make_${ac_make}_set=no
3388fi
3389rm -f conftestmake
3390fi
3391if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3392 echo "$ac_t""yes" 1>&6
3393 SET_MAKE=
3394else
3395 echo "$ac_t""no" 1>&6
3396 SET_MAKE="MAKE=${MAKE-make}"
3397fi
3398
3399# Extract the first word of "ln", so it can be a program name with args.
3400set dummy ln; ac_word=$2
3401echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04003402echo "configure:3403: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003403if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then
3404 echo $ac_n "(cached) $ac_c" 1>&6
3405else
3406 case "$LN" in
3407 /*)
3408 ac_cv_path_LN="$LN" # Let the user override the test with a path.
3409 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003410 ?:/*)
3411 ac_cv_path_LN="$LN" # Let the user override the test with a dos path.
3412 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003413 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003414 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3415 ac_dummy="$PATH"
3416 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003417 test -z "$ac_dir" && ac_dir=.
3418 if test -f $ac_dir/$ac_word; then
3419 ac_cv_path_LN="$ac_dir/$ac_word"
3420 break
3421 fi
3422 done
3423 IFS="$ac_save_ifs"
3424 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
3425 ;;
3426esac
3427fi
3428LN="$ac_cv_path_LN"
3429if test -n "$LN"; then
3430 echo "$ac_t""$LN" 1>&6
3431else
3432 echo "$ac_t""no" 1>&6
3433fi
3434
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00003435echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04003436echo "configure:3437: checking whether ln -s works" >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00003437if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
3438 echo $ac_n "(cached) $ac_c" 1>&6
3439else
3440 rm -f conftestdata
3441if ln -s X conftestdata 2>/dev/null
3442then
3443 rm -f conftestdata
3444 ac_cv_prog_LN_S="ln -s"
3445else
3446 ac_cv_prog_LN_S=ln
3447fi
3448fi
3449LN_S="$ac_cv_prog_LN_S"
3450if test "$ac_cv_prog_LN_S" = "ln -s"; then
3451 echo "$ac_t""yes" 1>&6
3452else
3453 echo "$ac_t""no" 1>&6
3454fi
3455
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003456# Extract the first word of "mv", so it can be a program name with args.
3457set dummy mv; ac_word=$2
3458echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04003459echo "configure:3460: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003460if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
3461 echo $ac_n "(cached) $ac_c" 1>&6
3462else
3463 case "$MV" in
3464 /*)
3465 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3466 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003467 ?:/*)
3468 ac_cv_path_MV="$MV" # Let the user override the test with a dos path.
3469 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003470 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003471 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3472 ac_dummy="$PATH"
3473 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003474 test -z "$ac_dir" && ac_dir=.
3475 if test -f $ac_dir/$ac_word; then
3476 ac_cv_path_MV="$ac_dir/$ac_word"
3477 break
3478 fi
3479 done
3480 IFS="$ac_save_ifs"
3481 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3482 ;;
3483esac
3484fi
3485MV="$ac_cv_path_MV"
3486if test -n "$MV"; then
3487 echo "$ac_t""$MV" 1>&6
3488else
3489 echo "$ac_t""no" 1>&6
3490fi
3491
3492# Extract the first word of "cp", so it can be a program name with args.
3493set dummy cp; ac_word=$2
3494echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04003495echo "configure:3496: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003496if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then
3497 echo $ac_n "(cached) $ac_c" 1>&6
3498else
3499 case "$CP" in
3500 /*)
3501 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3502 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003503 ?:/*)
3504 ac_cv_path_CP="$CP" # Let the user override the test with a dos path.
3505 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003506 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003507 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3508 ac_dummy="$PATH"
3509 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003510 test -z "$ac_dir" && ac_dir=.
3511 if test -f $ac_dir/$ac_word; then
3512 ac_cv_path_CP="$ac_dir/$ac_word"
3513 break
3514 fi
3515 done
3516 IFS="$ac_save_ifs"
3517 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3518 ;;
3519esac
3520fi
3521CP="$ac_cv_path_CP"
3522if test -n "$CP"; then
3523 echo "$ac_t""$CP" 1>&6
3524else
3525 echo "$ac_t""no" 1>&6
3526fi
3527
3528# Extract the first word of "rm", so it can be a program name with args.
3529set dummy rm; ac_word=$2
3530echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04003531echo "configure:3532: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003532if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
3533 echo $ac_n "(cached) $ac_c" 1>&6
3534else
3535 case "$RM" in
3536 /*)
3537 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3538 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003539 ?:/*)
3540 ac_cv_path_RM="$RM" # Let the user override the test with a dos path.
3541 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003542 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003543 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3544 ac_dummy="$PATH"
3545 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003546 test -z "$ac_dir" && ac_dir=.
3547 if test -f $ac_dir/$ac_word; then
3548 ac_cv_path_RM="$ac_dir/$ac_word"
3549 break
3550 fi
3551 done
3552 IFS="$ac_save_ifs"
3553 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3554 ;;
3555esac
3556fi
3557RM="$ac_cv_path_RM"
3558if test -n "$RM"; then
3559 echo "$ac_t""$RM" 1>&6
3560else
3561 echo "$ac_t""no" 1>&6
3562fi
3563
3564# Extract the first word of "chmod", so it can be a program name with args.
3565set dummy chmod; ac_word=$2
3566echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04003567echo "configure:3568: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003568if eval "test \"`echo '$''{'ac_cv_path_CHMOD'+set}'`\" = set"; then
3569 echo $ac_n "(cached) $ac_c" 1>&6
3570else
3571 case "$CHMOD" in
3572 /*)
3573 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
3574 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003575 ?:/*)
3576 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a dos path.
3577 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003578 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003579 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3580 ac_dummy="$PATH"
3581 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003582 test -z "$ac_dir" && ac_dir=.
3583 if test -f $ac_dir/$ac_word; then
3584 ac_cv_path_CHMOD="$ac_dir/$ac_word"
3585 break
3586 fi
3587 done
3588 IFS="$ac_save_ifs"
3589 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
3590 ;;
3591esac
3592fi
3593CHMOD="$ac_cv_path_CHMOD"
3594if test -n "$CHMOD"; then
3595 echo "$ac_t""$CHMOD" 1>&6
3596else
3597 echo "$ac_t""no" 1>&6
3598fi
3599
3600# Extract the first word of "awk", so it can be a program name with args.
3601set dummy awk; ac_word=$2
3602echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04003603echo "configure:3604: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003604if eval "test \"`echo '$''{'ac_cv_path_AWK'+set}'`\" = set"; then
3605 echo $ac_n "(cached) $ac_c" 1>&6
3606else
3607 case "$AWK" in
3608 /*)
3609 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3610 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003611 ?:/*)
3612 ac_cv_path_AWK="$AWK" # Let the user override the test with a dos path.
3613 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003614 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003615 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3616 ac_dummy="$PATH"
3617 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003618 test -z "$ac_dir" && ac_dir=.
3619 if test -f $ac_dir/$ac_word; then
3620 ac_cv_path_AWK="$ac_dir/$ac_word"
3621 break
3622 fi
3623 done
3624 IFS="$ac_save_ifs"
3625 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3626 ;;
3627esac
3628fi
3629AWK="$ac_cv_path_AWK"
3630if test -n "$AWK"; then
3631 echo "$ac_t""$AWK" 1>&6
3632else
3633 echo "$ac_t""no" 1>&6
3634fi
3635
3636# Extract the first word of "sed", so it can be a program name with args.
3637set dummy sed; ac_word=$2
3638echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04003639echo "configure:3640: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003640if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then
3641 echo $ac_n "(cached) $ac_c" 1>&6
3642else
3643 case "$SED" in
3644 /*)
3645 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3646 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003647 ?:/*)
3648 ac_cv_path_SED="$SED" # Let the user override the test with a dos path.
3649 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003650 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003651 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3652 ac_dummy="$PATH"
3653 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003654 test -z "$ac_dir" && ac_dir=.
3655 if test -f $ac_dir/$ac_word; then
3656 ac_cv_path_SED="$ac_dir/$ac_word"
3657 break
3658 fi
3659 done
3660 IFS="$ac_save_ifs"
3661 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3662 ;;
3663esac
3664fi
3665SED="$ac_cv_path_SED"
3666if test -n "$SED"; then
3667 echo "$ac_t""$SED" 1>&6
3668else
3669 echo "$ac_t""no" 1>&6
3670fi
3671
Theodore Ts'o9d564f71999-07-03 20:25:58 +00003672# Extract the first word of "perl", so it can be a program name with args.
3673set dummy perl; ac_word=$2
3674echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04003675echo "configure:3676: checking for $ac_word" >&5
Theodore Ts'o9d564f71999-07-03 20:25:58 +00003676if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
3677 echo $ac_n "(cached) $ac_c" 1>&6
3678else
3679 case "$PERL" in
3680 /*)
3681 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3682 ;;
3683 ?:/*)
3684 ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
3685 ;;
3686 *)
3687 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3688 ac_dummy="$PATH"
3689 for ac_dir in $ac_dummy; do
3690 test -z "$ac_dir" && ac_dir=.
3691 if test -f $ac_dir/$ac_word; then
3692 ac_cv_path_PERL="$ac_dir/$ac_word"
3693 break
3694 fi
3695 done
3696 IFS="$ac_save_ifs"
3697 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
3698 ;;
3699esac
3700fi
3701PERL="$ac_cv_path_PERL"
3702if test -n "$PERL"; then
3703 echo "$ac_t""$PERL" 1>&6
3704else
3705 echo "$ac_t""no" 1>&6
3706fi
3707
Theodore Ts'o250f79f2001-05-19 22:02:22 +00003708# Extract the first word of "ldconfig", so it can be a program name with args.
3709set dummy ldconfig; ac_word=$2
3710echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04003711echo "configure:3712: checking for $ac_word" >&5
Theodore Ts'o250f79f2001-05-19 22:02:22 +00003712if eval "test \"`echo '$''{'ac_cv_path_LDCONFIG'+set}'`\" = set"; then
3713 echo $ac_n "(cached) $ac_c" 1>&6
3714else
3715 case "$LDCONFIG" in
3716 /*)
3717 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
3718 ;;
3719 ?:/*)
3720 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a dos path.
3721 ;;
3722 *)
3723 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3724 ac_dummy="$PATH"
3725 for ac_dir in $ac_dummy; do
3726 test -z "$ac_dir" && ac_dir=.
3727 if test -f $ac_dir/$ac_word; then
3728 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
3729 break
3730 fi
3731 done
3732 IFS="$ac_save_ifs"
3733 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
3734 ;;
3735esac
3736fi
3737LDCONFIG="$ac_cv_path_LDCONFIG"
3738if test -n "$LDCONFIG"; then
3739 echo "$ac_t""$LDCONFIG" 1>&6
3740else
3741 echo "$ac_t""no" 1>&6
3742fi
3743
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003744echo $ac_n "checking build system type""... $ac_c" 1>&6
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04003745echo "configure:3746: checking build system type" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003746
3747build_alias=$build
3748case "$build_alias" in
3749NONE)
3750 case $nonopt in
3751 NONE) build_alias=$host_alias ;;
3752 *) build_alias=$nonopt ;;
3753 esac ;;
3754esac
3755
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003756build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003757build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3758build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3759build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003760echo "$ac_t""$build" 1>&6
3761
3762if test $host != $build; then
3763 ac_tool_prefix=${host_alias}-
3764else
3765 ac_tool_prefix=
3766fi
3767
3768# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3769set dummy ${ac_tool_prefix}ar; ac_word=$2
3770echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04003771echo "configure:3772: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003772if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3773 echo $ac_n "(cached) $ac_c" 1>&6
3774else
3775 if test -n "$AR"; then
3776 ac_cv_prog_AR="$AR" # Let the user override the test.
3777else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003778 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3779 ac_dummy="$PATH"
3780 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003781 test -z "$ac_dir" && ac_dir=.
3782 if test -f $ac_dir/$ac_word; then
3783 ac_cv_prog_AR="${ac_tool_prefix}ar"
3784 break
3785 fi
3786 done
3787 IFS="$ac_save_ifs"
3788fi
3789fi
3790AR="$ac_cv_prog_AR"
3791if test -n "$AR"; then
3792 echo "$ac_t""$AR" 1>&6
3793else
3794 echo "$ac_t""no" 1>&6
3795fi
3796
3797
3798if test -z "$ac_cv_prog_AR"; then
3799if test -n "$ac_tool_prefix"; then
3800 # Extract the first word of "ar", so it can be a program name with args.
3801set dummy ar; ac_word=$2
3802echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04003803echo "configure:3804: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003804if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3805 echo $ac_n "(cached) $ac_c" 1>&6
3806else
3807 if test -n "$AR"; then
3808 ac_cv_prog_AR="$AR" # Let the user override the test.
3809else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003810 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3811 ac_dummy="$PATH"
3812 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003813 test -z "$ac_dir" && ac_dir=.
3814 if test -f $ac_dir/$ac_word; then
3815 ac_cv_prog_AR="ar"
3816 break
3817 fi
3818 done
3819 IFS="$ac_save_ifs"
3820 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
3821fi
3822fi
3823AR="$ac_cv_prog_AR"
3824if test -n "$AR"; then
3825 echo "$ac_t""$AR" 1>&6
3826else
3827 echo "$ac_t""no" 1>&6
3828fi
3829
3830else
3831 AR="ar"
3832fi
3833fi
3834
3835# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3836set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3837echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04003838echo "configure:3839: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003839if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3840 echo $ac_n "(cached) $ac_c" 1>&6
3841else
3842 if test -n "$RANLIB"; then
3843 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3844else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003845 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3846 ac_dummy="$PATH"
3847 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003848 test -z "$ac_dir" && ac_dir=.
3849 if test -f $ac_dir/$ac_word; then
3850 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3851 break
3852 fi
3853 done
3854 IFS="$ac_save_ifs"
3855fi
3856fi
3857RANLIB="$ac_cv_prog_RANLIB"
3858if test -n "$RANLIB"; then
3859 echo "$ac_t""$RANLIB" 1>&6
3860else
3861 echo "$ac_t""no" 1>&6
3862fi
3863
3864
3865if test -z "$ac_cv_prog_RANLIB"; then
3866if test -n "$ac_tool_prefix"; then
3867 # Extract the first word of "ranlib", so it can be a program name with args.
3868set dummy ranlib; ac_word=$2
3869echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04003870echo "configure:3871: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003871if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3872 echo $ac_n "(cached) $ac_c" 1>&6
3873else
3874 if test -n "$RANLIB"; then
3875 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3876else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003877 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3878 ac_dummy="$PATH"
3879 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003880 test -z "$ac_dir" && ac_dir=.
3881 if test -f $ac_dir/$ac_word; then
3882 ac_cv_prog_RANLIB="ranlib"
3883 break
3884 fi
3885 done
3886 IFS="$ac_save_ifs"
3887 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3888fi
3889fi
3890RANLIB="$ac_cv_prog_RANLIB"
3891if test -n "$RANLIB"; then
3892 echo "$ac_t""$RANLIB" 1>&6
3893else
3894 echo "$ac_t""no" 1>&6
3895fi
3896
3897else
3898 RANLIB=":"
3899fi
3900fi
3901
3902# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3903set dummy ${ac_tool_prefix}strip; ac_word=$2
3904echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04003905echo "configure:3906: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003906if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
3907 echo $ac_n "(cached) $ac_c" 1>&6
3908else
3909 if test -n "$STRIP"; then
3910 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3911else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003912 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3913 ac_dummy="$PATH"
3914 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003915 test -z "$ac_dir" && ac_dir=.
3916 if test -f $ac_dir/$ac_word; then
3917 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3918 break
3919 fi
3920 done
3921 IFS="$ac_save_ifs"
3922fi
3923fi
3924STRIP="$ac_cv_prog_STRIP"
3925if test -n "$STRIP"; then
3926 echo "$ac_t""$STRIP" 1>&6
3927else
3928 echo "$ac_t""no" 1>&6
3929fi
3930
3931
3932if test -z "$ac_cv_prog_STRIP"; then
3933if test -n "$ac_tool_prefix"; then
3934 # Extract the first word of "strip", so it can be a program name with args.
3935set dummy strip; ac_word=$2
3936echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04003937echo "configure:3938: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003938if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
3939 echo $ac_n "(cached) $ac_c" 1>&6
3940else
3941 if test -n "$STRIP"; then
3942 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3943else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003944 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3945 ac_dummy="$PATH"
3946 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003947 test -z "$ac_dir" && ac_dir=.
3948 if test -f $ac_dir/$ac_word; then
3949 ac_cv_prog_STRIP="strip"
3950 break
3951 fi
3952 done
3953 IFS="$ac_save_ifs"
3954 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
3955fi
3956fi
3957STRIP="$ac_cv_prog_STRIP"
3958if test -n "$STRIP"; then
3959 echo "$ac_t""$STRIP" 1>&6
3960else
3961 echo "$ac_t""no" 1>&6
3962fi
3963
3964else
3965 STRIP=":"
3966fi
3967fi
3968
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003969# Find a good install program. We prefer a C program (faster),
3970# so one script is as good as another. But avoid the broken or
3971# incompatible versions:
3972# SysV /etc/install, /usr/sbin/install
3973# SunOS /usr/etc/install
3974# IRIX /sbin/install
3975# AIX /bin/install
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003976# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003977# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3978# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3979# ./install, which can be erroneously created by make from ./install.sh.
3980echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04003981echo "configure:3982: checking for a BSD compatible install" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003982if test -z "$INSTALL"; then
3983if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3984 echo $ac_n "(cached) $ac_c" 1>&6
3985else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003986 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003987 for ac_dir in $PATH; do
3988 # Account for people who put trailing slashes in PATH elements.
3989 case "$ac_dir/" in
3990 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3991 *)
3992 # OSF1 and SCO ODT 3.0 have their own names for install.
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003993 # Don't use installbsd from OSF since it installs stuff as root
3994 # by default.
3995 for ac_prog in ginstall scoinst install; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003996 if test -f $ac_dir/$ac_prog; then
3997 if test $ac_prog = install &&
3998 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3999 # AIX install. It has an incompatible calling convention.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004000 :
4001 else
4002 ac_cv_path_install="$ac_dir/$ac_prog -c"
4003 break 2
4004 fi
4005 fi
4006 done
4007 ;;
4008 esac
4009 done
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004010 IFS="$ac_save_IFS"
4011
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004012fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004013 if test "${ac_cv_path_install+set}" = set; then
4014 INSTALL="$ac_cv_path_install"
4015 else
4016 # As a last resort, use the slow shell script. We don't cache a
4017 # path for INSTALL within a source directory, because that will
4018 # break other packages using the cache if that directory is
4019 # removed, or if the path is relative.
4020 INSTALL="$ac_install_sh"
4021 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004022fi
4023echo "$ac_t""$INSTALL" 1>&6
4024
4025# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4026# It thinks the first close brace ends the variable substitution.
4027test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4028
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004029test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
4030
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004031test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4032
Theodore Ts'o6c133521999-07-03 20:37:03 +00004033# See if we need a separate native compiler.
4034if test $cross_compiling = no; then
4035 BUILD_CC="$CC"
4036
4037else
4038 for ac_prog in gcc cc
4039do
4040# Extract the first word of "$ac_prog", so it can be a program name with args.
4041set dummy $ac_prog; ac_word=$2
4042echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04004043echo "configure:4044: checking for $ac_word" >&5
Theodore Ts'o6c133521999-07-03 20:37:03 +00004044if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
4045 echo $ac_n "(cached) $ac_c" 1>&6
4046else
4047 if test -n "$BUILD_CC"; then
4048 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4049else
4050 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4051 ac_dummy="$PATH"
4052 for ac_dir in $ac_dummy; do
4053 test -z "$ac_dir" && ac_dir=.
4054 if test -f $ac_dir/$ac_word; then
4055 ac_cv_prog_BUILD_CC="$ac_prog"
4056 break
4057 fi
4058 done
4059 IFS="$ac_save_ifs"
4060fi
4061fi
4062BUILD_CC="$ac_cv_prog_BUILD_CC"
4063if test -n "$BUILD_CC"; then
4064 echo "$ac_t""$BUILD_CC" 1>&6
4065else
4066 echo "$ac_t""no" 1>&6
4067fi
4068
4069test -n "$BUILD_CC" && break
4070done
4071
4072fi
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00004073for 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 +00004074do
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004075ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004076echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04004077echo "configure:4078: checking for $ac_hdr" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004078if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4079 echo $ac_n "(cached) $ac_c" 1>&6
4080else
4081 cat > conftest.$ac_ext <<EOF
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04004082#line 4083 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004083#include "confdefs.h"
4084#include <$ac_hdr>
4085EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004086ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04004087{ (eval echo configure:4088: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004088ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004089if test -z "$ac_err"; then
4090 rm -rf conftest*
4091 eval "ac_cv_header_$ac_safe=yes"
4092else
4093 echo "$ac_err" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004094 echo "configure: failed program was:" >&5
4095 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004096 rm -rf conftest*
4097 eval "ac_cv_header_$ac_safe=no"
4098fi
4099rm -f conftest*
4100fi
4101if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4102 echo "$ac_t""yes" 1>&6
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004103 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004104 cat >> confdefs.h <<EOF
4105#define $ac_tr_hdr 1
4106EOF
4107
4108else
4109 echo "$ac_t""no" 1>&6
4110fi
4111done
4112
4113echo $ac_n "checking for vprintf""... $ac_c" 1>&6
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04004114echo "configure:4115: checking for vprintf" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004115if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
4116 echo $ac_n "(cached) $ac_c" 1>&6
4117else
4118 cat > conftest.$ac_ext <<EOF
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04004119#line 4120 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004120#include "confdefs.h"
4121/* System header to define __stub macros and hopefully few prototypes,
4122 which can conflict with char vprintf(); below. */
4123#include <assert.h>
4124/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004125/* We use char because int might match the return type of a gcc2
4126 builtin and then its argument prototype would still apply. */
4127char vprintf();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004128
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004129int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004130
4131/* The GNU C library defines this for functions which it implements
4132 to always fail with ENOSYS. Some functions are actually named
4133 something starting with __ and the normal name is an alias. */
4134#if defined (__stub_vprintf) || defined (__stub___vprintf)
4135choke me
4136#else
4137vprintf();
4138#endif
4139
4140; return 0; }
4141EOF
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04004142if { (eval echo configure:4143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004143 rm -rf conftest*
4144 eval "ac_cv_func_vprintf=yes"
4145else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004146 echo "configure: failed program was:" >&5
4147 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004148 rm -rf conftest*
4149 eval "ac_cv_func_vprintf=no"
4150fi
4151rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004152fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004153
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004154if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
4155 echo "$ac_t""yes" 1>&6
4156 cat >> confdefs.h <<\EOF
4157#define HAVE_VPRINTF 1
4158EOF
4159
4160else
4161 echo "$ac_t""no" 1>&6
4162fi
4163
4164if test "$ac_cv_func_vprintf" != yes; then
4165echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04004166echo "configure:4167: checking for _doprnt" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004167if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
4168 echo $ac_n "(cached) $ac_c" 1>&6
4169else
4170 cat > conftest.$ac_ext <<EOF
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04004171#line 4172 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004172#include "confdefs.h"
4173/* System header to define __stub macros and hopefully few prototypes,
4174 which can conflict with char _doprnt(); below. */
4175#include <assert.h>
4176/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004177/* We use char because int might match the return type of a gcc2
4178 builtin and then its argument prototype would still apply. */
4179char _doprnt();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004180
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004181int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004182
4183/* The GNU C library defines this for functions which it implements
4184 to always fail with ENOSYS. Some functions are actually named
4185 something starting with __ and the normal name is an alias. */
4186#if defined (__stub__doprnt) || defined (__stub____doprnt)
4187choke me
4188#else
4189_doprnt();
4190#endif
4191
4192; return 0; }
4193EOF
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04004194if { (eval echo configure:4195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004195 rm -rf conftest*
4196 eval "ac_cv_func__doprnt=yes"
4197else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004198 echo "configure: failed program was:" >&5
4199 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004200 rm -rf conftest*
4201 eval "ac_cv_func__doprnt=no"
4202fi
4203rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004204fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004205
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004206if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
4207 echo "$ac_t""yes" 1>&6
4208 cat >> confdefs.h <<\EOF
4209#define HAVE_DOPRNT 1
4210EOF
4211
4212else
4213 echo "$ac_t""no" 1>&6
4214fi
4215
4216fi
4217
4218echo $ac_n "checking whether struct dirent has a d_namlen field""... $ac_c" 1>&6
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04004219echo "configure:4220: checking whether struct dirent has a d_namlen field" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004220if eval "test \"`echo '$''{'e2fsprogs_cv_struct_d_namlen'+set}'`\" = set"; then
4221 echo $ac_n "(cached) $ac_c" 1>&6
4222else
4223 cat > conftest.$ac_ext <<EOF
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04004224#line 4225 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004225#include "confdefs.h"
4226#include <sys/types.h>
4227#include <dirent.h>
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004228int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004229struct dirent de; de.d_namlen = 0;
4230; return 0; }
4231EOF
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04004232if { (eval echo configure:4233: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004233 rm -rf conftest*
4234 e2fsprogs_cv_struct_d_namlen=yes
4235else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004236 echo "configure: failed program was:" >&5
4237 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004238 rm -rf conftest*
4239 e2fsprogs_cv_struct_d_namlen=no
4240fi
4241rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004242fi
4243
4244echo "$ac_t""$e2fsprogs_cv_struct_d_namlen" 1>&6
4245if test "$e2fsprogs_cv_struct_d_namlen" = yes; then
4246 cat >> confdefs.h <<\EOF
4247#define HAVE_DIRENT_NAMLEN 1
4248EOF
4249
4250fi
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00004251echo $ac_n "checking whether llseek declared in unistd.h""... $ac_c" 1>&6
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04004252echo "configure:4253: checking whether llseek declared in unistd.h" >&5
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00004253if eval "test \"`echo '$''{'e2fsprogs_cv_have_llseek_prototype'+set}'`\" = set"; then
4254 echo $ac_n "(cached) $ac_c" 1>&6
4255else
4256 cat > conftest.$ac_ext <<EOF
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04004257#line 4258 "configure"
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00004258#include "confdefs.h"
4259#include <unistd.h>
4260int main() {
4261extern int llseek(int);
4262; return 0; }
4263EOF
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04004264if { (eval echo configure:4265: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00004265 rm -rf conftest*
4266 e2fsprogs_cv_have_llseek_prototype=no
4267else
4268 echo "configure: failed program was:" >&5
4269 cat conftest.$ac_ext >&5
4270 rm -rf conftest*
4271 e2fsprogs_cv_have_llseek_prototype=yes
4272fi
4273rm -f conftest*
4274fi
4275
4276echo "$ac_t""$e2fsprogs_cv_have_llseek_prototype" 1>&6
4277if test "$e2fsprogs_cv_have_llseek_prototype" = yes; then
4278 cat >> confdefs.h <<\EOF
4279#define HAVE_LLSEEK_PROTOTYPE 1
4280EOF
4281
4282fi
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004283echo $ac_n "checking whether lseek64 declared in unistd.h""... $ac_c" 1>&6
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04004284echo "configure:4285: checking whether lseek64 declared in unistd.h" >&5
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004285if eval "test \"`echo '$''{'e2fsprogs_cv_have_lseek64_prototype'+set}'`\" = set"; then
4286 echo $ac_n "(cached) $ac_c" 1>&6
4287else
4288 cat > conftest.$ac_ext <<EOF
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04004289#line 4290 "configure"
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004290#include "confdefs.h"
4291#define _LARGEFILE_SOURCE
4292#define _LARGEFILE64_SOURCE
4293#include <unistd.h>
4294int main() {
4295extern int lseek64(int);
4296; return 0; }
4297EOF
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04004298if { (eval echo configure:4299: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004299 rm -rf conftest*
4300 e2fsprogs_cv_have_lseek64_prototype=no
4301else
4302 echo "configure: failed program was:" >&5
4303 cat conftest.$ac_ext >&5
4304 rm -rf conftest*
4305 e2fsprogs_cv_have_lseek64_prototype=yes
4306fi
4307rm -f conftest*
4308fi
4309
4310echo "$ac_t""$e2fsprogs_cv_have_lseek64_prototype" 1>&6
4311if test "$e2fsprogs_cv_have_lseek64_prototype" = yes; then
4312 cat >> confdefs.h <<\EOF
4313#define HAVE_LSEEK64_PROTOTYPE 1
4314EOF
4315
4316fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004317if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
4318 # if cross-compiling, with no cached values, just assume something common.
4319 ac_cv_sizeof_short=2
4320 ac_cv_sizeof_int=4
4321 ac_cv_sizeof_long=4
Theodore Ts'o6c133521999-07-03 20:37:03 +00004322 ac_cv_sizeof_long_long=8
4323 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 +00004324fi
4325echo $ac_n "checking size of short""... $ac_c" 1>&6
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04004326echo "configure:4327: checking size of short" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004327if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
4328 echo $ac_n "(cached) $ac_c" 1>&6
4329else
4330 if test "$cross_compiling" = yes; then
4331 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4332else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004333 cat > conftest.$ac_ext <<EOF
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04004334#line 4335 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004335#include "confdefs.h"
4336#include <stdio.h>
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004337#include <sys/types.h>
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004338main()
4339{
4340 FILE *f=fopen("conftestval", "w");
4341 if (!f) exit(1);
4342 fprintf(f, "%d\n", sizeof(short));
4343 exit(0);
4344}
4345EOF
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04004346if { (eval echo configure:4347: \"$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 +00004347then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004348 ac_cv_sizeof_short=`cat conftestval`
4349else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004350 echo "configure: failed program was:" >&5
4351 cat conftest.$ac_ext >&5
4352 rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004353 ac_cv_sizeof_short=0
4354fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004355rm -fr conftest*
4356fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004357
4358fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004359echo "$ac_t""$ac_cv_sizeof_short" 1>&6
4360cat >> confdefs.h <<EOF
4361#define SIZEOF_SHORT $ac_cv_sizeof_short
4362EOF
4363
4364
4365echo $ac_n "checking size of int""... $ac_c" 1>&6
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04004366echo "configure:4367: checking size of int" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004367if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
4368 echo $ac_n "(cached) $ac_c" 1>&6
4369else
4370 if test "$cross_compiling" = yes; then
4371 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4372else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004373 cat > conftest.$ac_ext <<EOF
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04004374#line 4375 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004375#include "confdefs.h"
4376#include <stdio.h>
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004377#include <sys/types.h>
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004378main()
4379{
4380 FILE *f=fopen("conftestval", "w");
4381 if (!f) exit(1);
4382 fprintf(f, "%d\n", sizeof(int));
4383 exit(0);
4384}
4385EOF
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04004386if { (eval echo configure:4387: \"$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 +00004387then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004388 ac_cv_sizeof_int=`cat conftestval`
4389else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004390 echo "configure: failed program was:" >&5
4391 cat conftest.$ac_ext >&5
4392 rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004393 ac_cv_sizeof_int=0
4394fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004395rm -fr conftest*
4396fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004397
4398fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004399echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4400cat >> confdefs.h <<EOF
4401#define SIZEOF_INT $ac_cv_sizeof_int
4402EOF
4403
4404
4405echo $ac_n "checking size of long""... $ac_c" 1>&6
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04004406echo "configure:4407: checking size of long" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004407if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
4408 echo $ac_n "(cached) $ac_c" 1>&6
4409else
4410 if test "$cross_compiling" = yes; then
4411 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4412else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004413 cat > conftest.$ac_ext <<EOF
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04004414#line 4415 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004415#include "confdefs.h"
4416#include <stdio.h>
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004417#include <sys/types.h>
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004418main()
4419{
4420 FILE *f=fopen("conftestval", "w");
4421 if (!f) exit(1);
4422 fprintf(f, "%d\n", sizeof(long));
4423 exit(0);
4424}
4425EOF
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04004426if { (eval echo configure:4427: \"$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 +00004427then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004428 ac_cv_sizeof_long=`cat conftestval`
4429else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004430 echo "configure: failed program was:" >&5
4431 cat conftest.$ac_ext >&5
4432 rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004433 ac_cv_sizeof_long=0
4434fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004435rm -fr conftest*
4436fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004437
4438fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004439echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4440cat >> confdefs.h <<EOF
4441#define SIZEOF_LONG $ac_cv_sizeof_long
4442EOF
4443
4444
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004445echo $ac_n "checking size of long long""... $ac_c" 1>&6
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04004446echo "configure:4447: checking size of long long" >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004447if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
4448 echo $ac_n "(cached) $ac_c" 1>&6
4449else
4450 if test "$cross_compiling" = yes; then
4451 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4452else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004453 cat > conftest.$ac_ext <<EOF
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04004454#line 4455 "configure"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004455#include "confdefs.h"
4456#include <stdio.h>
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004457#include <sys/types.h>
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004458main()
4459{
4460 FILE *f=fopen("conftestval", "w");
4461 if (!f) exit(1);
4462 fprintf(f, "%d\n", sizeof(long long));
4463 exit(0);
4464}
4465EOF
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04004466if { (eval echo configure:4467: \"$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 +00004467then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004468 ac_cv_sizeof_long_long=`cat conftestval`
4469else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004470 echo "configure: failed program was:" >&5
4471 cat conftest.$ac_ext >&5
4472 rm -fr conftest*
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004473 ac_cv_sizeof_long_long=0
4474fi
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004475rm -fr conftest*
4476fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004477
4478fi
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004479echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4480cat >> confdefs.h <<EOF
4481#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4482EOF
4483
4484
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004485SIZEOF_SHORT=$ac_cv_sizeof_short
4486SIZEOF_INT=$ac_cv_sizeof_int
4487SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004488SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
4489
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004490
4491
4492
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004493echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04004494echo "configure:4495: checking whether byte ordering is bigendian" >&5
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004495if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
4496 echo $ac_n "(cached) $ac_c" 1>&6
4497else
4498 ac_cv_c_bigendian=unknown
4499# See if sys/param.h defines the BYTE_ORDER macro.
4500cat > conftest.$ac_ext <<EOF
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04004501#line 4502 "configure"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004502#include "confdefs.h"
4503#include <sys/types.h>
4504#include <sys/param.h>
4505int main() {
4506
4507#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4508 bogus endian macros
4509#endif
4510; return 0; }
4511EOF
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04004512if { (eval echo configure:4513: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004513 rm -rf conftest*
4514 # It does; now see whether it defined to BIG_ENDIAN or not.
4515cat > conftest.$ac_ext <<EOF
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04004516#line 4517 "configure"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004517#include "confdefs.h"
4518#include <sys/types.h>
4519#include <sys/param.h>
4520int main() {
4521
4522#if BYTE_ORDER != BIG_ENDIAN
4523 not big endian
4524#endif
4525; return 0; }
4526EOF
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04004527if { (eval echo configure:4528: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004528 rm -rf conftest*
4529 ac_cv_c_bigendian=yes
4530else
4531 echo "configure: failed program was:" >&5
4532 cat conftest.$ac_ext >&5
4533 rm -rf conftest*
4534 ac_cv_c_bigendian=no
4535fi
4536rm -f conftest*
4537else
4538 echo "configure: failed program was:" >&5
4539 cat conftest.$ac_ext >&5
4540fi
4541rm -f conftest*
4542if test $ac_cv_c_bigendian = unknown; then
4543if test "$cross_compiling" = yes; then
4544 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4545else
4546 cat > conftest.$ac_ext <<EOF
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04004547#line 4548 "configure"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004548#include "confdefs.h"
4549main () {
4550 /* Are we little or big endian? From Harbison&Steele. */
4551 union
4552 {
4553 long l;
4554 char c[sizeof (long)];
4555 } u;
4556 u.l = 1;
4557 exit (u.c[sizeof (long) - 1] == 1);
4558}
4559EOF
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04004560if { (eval echo configure:4561: \"$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 +00004561then
4562 ac_cv_c_bigendian=no
4563else
4564 echo "configure: failed program was:" >&5
4565 cat conftest.$ac_ext >&5
4566 rm -fr conftest*
4567 ac_cv_c_bigendian=yes
4568fi
4569rm -fr conftest*
4570fi
4571
4572fi
4573fi
4574
4575echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4576if test $ac_cv_c_bigendian = yes; then
4577 cat >> confdefs.h <<\EOF
4578#define WORDS_BIGENDIAN 1
4579EOF
4580
4581fi
4582
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004583echo $ac_n "checking whether struct stat has a st_flags field""... $ac_c" 1>&6
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04004584echo "configure:4585: checking whether struct stat has a st_flags field" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004585if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags'+set}'`\" = set"; then
4586 echo $ac_n "(cached) $ac_c" 1>&6
4587else
4588 cat > conftest.$ac_ext <<EOF
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04004589#line 4590 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004590#include "confdefs.h"
4591#include <sys/stat.h>
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004592int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004593struct stat stat; stat.st_flags = 0;
4594; return 0; }
4595EOF
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04004596if { (eval echo configure:4597: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004597 rm -rf conftest*
4598 e2fsprogs_cv_struct_st_flags=yes
4599else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004600 echo "configure: failed program was:" >&5
4601 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004602 rm -rf conftest*
4603 e2fsprogs_cv_struct_st_flags=no
4604fi
4605rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004606fi
4607
4608echo "$ac_t""$e2fsprogs_cv_struct_st_flags" 1>&6
4609if test "$e2fsprogs_cv_struct_st_flags" = yes; then
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00004610 echo $ac_n "checking whether st_flags field is useful""... $ac_c" 1>&6
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04004611echo "configure:4612: checking whether st_flags field is useful" >&5
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00004612 if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags_immut'+set}'`\" = set"; then
4613 echo $ac_n "(cached) $ac_c" 1>&6
4614else
4615 cat > conftest.$ac_ext <<EOF
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04004616#line 4617 "configure"
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00004617#include "confdefs.h"
4618#include <sys/stat.h>
4619int main() {
4620struct stat stat; stat.st_flags |= UF_IMMUTABLE;
4621; return 0; }
4622EOF
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04004623if { (eval echo configure:4624: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00004624 rm -rf conftest*
4625 e2fsprogs_cv_struct_st_flags_immut=yes
4626else
4627 echo "configure: failed program was:" >&5
4628 cat conftest.$ac_ext >&5
4629 rm -rf conftest*
4630 e2fsprogs_cv_struct_st_flags_immut=no
4631fi
4632rm -f conftest*
4633fi
4634
4635 echo "$ac_t""$e2fsprogs_cv_struct_st_flags_immut" 1>&6
4636 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
4637 cat >> confdefs.h <<\EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004638#define HAVE_STAT_FLAGS 1
4639EOF
4640
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00004641 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004642fi
Theodore Ts'o31e29a12002-05-17 10:53:07 -04004643for ac_func in chflags getrusage llseek lseek64 open64 getmntinfo strcasecmp srandom fchown mallinfo fdatasync strnlen sysconf
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004644do
4645echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04004646echo "configure:4647: checking for $ac_func" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004647if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4648 echo $ac_n "(cached) $ac_c" 1>&6
4649else
4650 cat > conftest.$ac_ext <<EOF
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04004651#line 4652 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004652#include "confdefs.h"
4653/* System header to define __stub macros and hopefully few prototypes,
4654 which can conflict with char $ac_func(); below. */
4655#include <assert.h>
4656/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004657/* We use char because int might match the return type of a gcc2
4658 builtin and then its argument prototype would still apply. */
4659char $ac_func();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004660
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004661int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004662
4663/* The GNU C library defines this for functions which it implements
4664 to always fail with ENOSYS. Some functions are actually named
4665 something starting with __ and the normal name is an alias. */
4666#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4667choke me
4668#else
4669$ac_func();
4670#endif
4671
4672; return 0; }
4673EOF
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04004674if { (eval echo configure:4675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004675 rm -rf conftest*
4676 eval "ac_cv_func_$ac_func=yes"
4677else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004678 echo "configure: failed program was:" >&5
4679 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004680 rm -rf conftest*
4681 eval "ac_cv_func_$ac_func=no"
4682fi
4683rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004684fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004685
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004686if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4687 echo "$ac_t""yes" 1>&6
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004688 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004689 cat >> confdefs.h <<EOF
4690#define $ac_tr_func 1
4691EOF
4692
4693else
4694 echo "$ac_t""no" 1>&6
4695fi
4696done
4697
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004698SOCKET_LIB=''
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004699echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04004700echo "configure:4701: checking for socket in -lsocket" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004701ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
4702if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004703 echo $ac_n "(cached) $ac_c" 1>&6
4704else
4705 ac_save_LIBS="$LIBS"
4706LIBS="-lsocket $LIBS"
4707cat > conftest.$ac_ext <<EOF
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04004708#line 4709 "configure"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004709#include "confdefs.h"
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004710/* Override any gcc2 internal prototype to avoid an error. */
4711/* We use char because int might match the return type of a gcc2
4712 builtin and then its argument prototype would still apply. */
4713char socket();
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004714
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004715int main() {
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004716socket()
4717; return 0; }
4718EOF
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04004719if { (eval echo configure:4720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004720 rm -rf conftest*
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004721 eval "ac_cv_lib_$ac_lib_var=yes"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004722else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004723 echo "configure: failed program was:" >&5
4724 cat conftest.$ac_ext >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004725 rm -rf conftest*
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004726 eval "ac_cv_lib_$ac_lib_var=no"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004727fi
4728rm -f conftest*
4729LIBS="$ac_save_LIBS"
4730
4731fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004732if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004733 echo "$ac_t""yes" 1>&6
4734 SOCKET_LIB=-lsocket
4735else
4736 echo "$ac_t""no" 1>&6
4737fi
4738
4739
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004740echo $ac_n "checking for optreset""... $ac_c" 1>&6
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04004741echo "configure:4742: checking for optreset" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004742if eval "test \"`echo '$''{'ac_cv_have_optreset'+set}'`\" = set"; then
4743 echo $ac_n "(cached) $ac_c" 1>&6
4744else
4745 cat > conftest.$ac_ext <<EOF
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04004746#line 4747 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004747#include "confdefs.h"
4748#include <unistd.h>
4749EOF
4750if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4751 egrep "optreset" >/dev/null 2>&1; then
4752 rm -rf conftest*
4753 ac_cv_have_optreset=yes
4754else
4755 rm -rf conftest*
4756 ac_cv_have_optreset=no
4757fi
4758rm -f conftest*
4759
4760fi
4761echo "$ac_t""$ac_cv_have_optreset" 1>&6
4762if test $ac_cv_have_optreset = yes; then
4763 cat >> confdefs.h <<\EOF
4764#define HAVE_OPTRESET 1
4765EOF
4766
4767fi
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +00004768case "$host_os" in
4769linux*)
4770 cat >> confdefs.h <<\EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004771#define HAVE_EXT2_IOCTLS 1
4772EOF
4773
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +00004774 ;;
4775esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004776case "$host_os" in
Theodore Ts'o6c133521999-07-03 20:37:03 +00004777linux* | gnu*)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004778 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
4779 root_prefix="";
4780 echo "On $host_os systems, root_prefix defaults to ''"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004781 fi
4782 ;;
4783esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004784case "$host_os" in
4785linux* | gnu*)
4786 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004787 prefix="/usr";
4788 echo "On $host_os systems, prefix defaults to /usr"
Theodore Ts'obff61a72002-05-21 22:21:38 -04004789 if test "$mandir" = '${prefix}/man' ; then
4790 echo "...and mandir defaults to /usr/share/man"
4791 mandir=/usr/share/man
4792 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004793 fi
4794;;
4795esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004796if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +00004797 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004798 root_prefix="$ac_default_prefix"
4799 else
4800 root_prefix="$prefix"
4801 fi
Theodore Ts'ob5ffead2002-05-11 19:17:00 -04004802 root_bindir=$bindir
4803 root_sbindir=$sbindir
4804 root_libdir=$libdir
4805 root_sysconfdir=$sysconfdir
4806else
4807 root_bindir='${root_prefix}/bin'
4808 root_sbindir='${root_prefix}/sbin'
4809 root_libdir='${root_prefix}/lib'
4810 root_sysconfdir='${root_prefix}/etc'
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004811fi
4812
Theodore Ts'ob5ffead2002-05-11 19:17:00 -04004813
4814
4815
4816
Theodore Ts'oae851481997-04-29 18:13:24 +00004817echo $ac_n "checking whether linker accepts -static""... $ac_c" 1>&6
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04004818echo "configure:4819: checking whether linker accepts -static" >&5
Theodore Ts'oae851481997-04-29 18:13:24 +00004819if eval "test \"`echo '$''{'ac_cv_e2fsprogs_use_static'+set}'`\" = set"; then
4820 echo $ac_n "(cached) $ac_c" 1>&6
4821else
4822 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
4823cat > conftest.$ac_ext <<EOF
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04004824#line 4825 "configure"
Theodore Ts'oae851481997-04-29 18:13:24 +00004825#include "confdefs.h"
4826#include <stdio.h>
4827int main() {
4828fflush(stdout);
4829; return 0; }
4830EOF
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04004831if { (eval echo configure:4832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oae851481997-04-29 18:13:24 +00004832 rm -rf conftest*
4833 ac_cv_e2fsprogs_use_static=yes
4834else
4835 echo "configure: failed program was:" >&5
4836 cat conftest.$ac_ext >&5
4837 rm -rf conftest*
4838 ac_cv_e2fsprogs_use_static=no
4839fi
4840rm -f conftest*
4841LDFLAGS=$SAVE_LDFLAGS
4842fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004843
Theodore Ts'odefde781999-01-04 07:39:19 +00004844case "$host_os" in
4845solaris2.*)
4846 ac_cv_e2fsprogs_use_static=no
4847;;
4848esac
Theodore Ts'oae851481997-04-29 18:13:24 +00004849echo "$ac_t""$ac_cv_e2fsprogs_use_static" 1>&6
Theodore Ts'o74becf31997-04-26 14:37:06 +00004850LDFLAG_STATIC=
Theodore Ts'oae851481997-04-29 18:13:24 +00004851if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004852 LDFLAG_STATIC=-static
Theodore Ts'oae851481997-04-29 18:13:24 +00004853fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004854
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004855SS_DIR=`cd ${srcdir}/lib/ss; pwd`
4856ET_DIR=`cd ${srcdir}/lib/et; pwd`
4857
4858
4859if test "$cross_compiling" = yes ; then
4860 DO_TEST_SUITE=
4861else
4862 DO_TEST_SUITE=check
4863fi
4864
4865test -d lib || mkdir lib
4866test -d include || mkdir include
4867test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +00004868test -d include/asm || mkdir include/asm
Theodore Ts'obc210071997-06-17 05:41:36 +00004869rmakefile=
4870if test -d ${srcdir}/resize ; then
4871 rmakefile=resize/Makefile
4872fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004873trap '' 1 2 15
4874cat > confcache <<\EOF
4875# This file is a shell script that caches the results of configure
4876# tests run on this system so they can be shared between configure
4877# scripts and configure runs. It is not useful on other systems.
4878# If it contains results you don't want to keep, you may remove or edit it.
4879#
4880# By default, configure uses ./config.cache as the cache file,
4881# creating it if it does not exist already. You can give configure
4882# the --cache-file=FILE option to use a different cache file; that is
4883# what configure does when it calls configure scripts in
4884# subdirectories, so they share the cache.
4885# Giving --cache-file=/dev/null disables caching, for debugging configure.
4886# config.status only pays attention to the cache file if you give it the
4887# --recheck option to rerun configure.
4888#
4889EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004890# The following way of writing the cache mishandles newlines in values,
4891# but we know of no workaround that is simple, portable, and efficient.
4892# So, don't put newlines in cache variables' values.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004893# Ultrix sh set writes to stderr and can't be redirected directly,
4894# and sets the high bit in the cache file unless we assign to the vars.
4895(set) 2>&1 |
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004896 case `(ac_space=' '; set | grep ac_space) 2>&1` in
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004897 *ac_space=\ *)
4898 # `set' does not quote correctly, so add quotes (double-quote substitution
4899 # turns \\\\ into \\, and sed turns \\ into \).
4900 sed -n \
4901 -e "s/'/'\\\\''/g" \
4902 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4903 ;;
4904 *)
4905 # `set' quotes correctly as required by POSIX, so do not add quotes.
4906 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4907 ;;
4908 esac >> confcache
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004909if cmp -s $cache_file confcache; then
4910 :
4911else
4912 if test -w $cache_file; then
4913 echo "updating cache $cache_file"
4914 cat confcache > $cache_file
4915 else
4916 echo "not updating unwritable cache $cache_file"
4917 fi
4918fi
4919rm -f confcache
4920
4921trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4922
4923test "x$prefix" = xNONE && prefix=$ac_default_prefix
4924# Let make expand exec_prefix.
4925test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4926
4927# Any assignment to VPATH causes Sun make to only execute
4928# the first set of double-colon rules, so remove it if not needed.
4929# If there is a colon in the path, we need to keep it.
4930if test "x$srcdir" = x.; then
4931 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4932fi
4933
4934trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4935
4936# Transform confdefs.h into DEFS.
4937# Protect against shell expansion while executing Makefile rules.
4938# Protect against Makefile macro expansion.
4939cat > conftest.defs <<\EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004940s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004941s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
4942s%\[%\\&%g
4943s%\]%\\&%g
4944s%\$%$$%g
4945EOF
4946DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
4947rm -f conftest.defs
4948
4949
4950# Without the "./", some shells look in PATH for config.status.
4951: ${CONFIG_STATUS=./config.status}
4952
4953echo creating $CONFIG_STATUS
4954rm -f $CONFIG_STATUS
4955cat > $CONFIG_STATUS <<EOF
4956#! /bin/sh
4957# Generated automatically by configure.
4958# Run this file to recreate the current configuration.
4959# This directory was configured as follows,
4960# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4961#
4962# $0 $ac_configure_args
4963#
4964# Compiler output produced by configure, useful for debugging
4965# configure, is in ./config.log if it exists.
4966
4967ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4968for ac_option
4969do
4970 case "\$ac_option" in
4971 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4972 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4973 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4974 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004975 echo "$CONFIG_STATUS generated by autoconf version 2.13"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004976 exit 0 ;;
4977 -help | --help | --hel | --he | --h)
4978 echo "\$ac_cs_usage"; exit 0 ;;
4979 *) echo "\$ac_cs_usage"; exit 1 ;;
4980 esac
4981done
4982
4983ac_given_srcdir=$srcdir
4984ac_given_INSTALL="$INSTALL"
4985
Theodore Ts'o44339bd1997-10-15 02:47:20 +00004986trap 'rm -fr `echo "MCONFIG Makefile util/Makefile util/subst.conf lib/et/Makefile
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004987 lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile lib/uuid/Makefile
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04004988 lib/evms/Makefile
Theodore Ts'ob5ffead2002-05-11 19:17:00 -04004989 misc/Makefile ext2ed/Makefile e2fsck/Makefile debugfs/Makefile \
4990 tests/Makefile tests/progs/Makefile $rmakefile doc/Makefile
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004991 intl/Makefile po/Makefile.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004992EOF
4993cat >> $CONFIG_STATUS <<EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004994
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004995# Protect against being on the right side of a sed subst in config.status.
4996sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4997 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004998$ac_vpsub
4999$extrasub
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00005000s%@SHELL@%$SHELL%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005001s%@CFLAGS@%$CFLAGS%g
5002s%@CPPFLAGS@%$CPPFLAGS%g
5003s%@CXXFLAGS@%$CXXFLAGS%g
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00005004s%@FFLAGS@%$FFLAGS%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005005s%@DEFS@%$DEFS%g
5006s%@LDFLAGS@%$LDFLAGS%g
5007s%@LIBS@%$LIBS%g
5008s%@exec_prefix@%$exec_prefix%g
5009s%@prefix@%$prefix%g
5010s%@program_transform_name@%$program_transform_name%g
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005011s%@bindir@%$bindir%g
5012s%@sbindir@%$sbindir%g
5013s%@libexecdir@%$libexecdir%g
5014s%@datadir@%$datadir%g
5015s%@sysconfdir@%$sysconfdir%g
5016s%@sharedstatedir@%$sharedstatedir%g
5017s%@localstatedir@%$localstatedir%g
5018s%@libdir@%$libdir%g
5019s%@includedir@%$includedir%g
5020s%@oldincludedir@%$oldincludedir%g
5021s%@infodir@%$infodir%g
5022s%@mandir@%$mandir%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005023/@MCONFIG@/r $MCONFIG
5024s%@MCONFIG@%%g
Theodore Ts'o74becf31997-04-26 14:37:06 +00005025s%@E2FSPROGS_YEAR@%$E2FSPROGS_YEAR%g
5026s%@E2FSPROGS_MONTH@%$E2FSPROGS_MONTH%g
5027s%@E2FSPROGS_VERSION@%$E2FSPROGS_VERSION%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005028s%@host@%$host%g
5029s%@host_alias@%$host_alias%g
5030s%@host_cpu@%$host_cpu%g
5031s%@host_vendor@%$host_vendor%g
5032s%@host_os@%$host_os%g
Theodore Ts'o74becf31997-04-26 14:37:06 +00005033s%@CC@%$CC%g
5034s%@LD@%$LD%g
Theodore Ts'of8bd9801999-10-26 04:19:45 +00005035s%@CPP@%$CPP%g
5036s%@LINUX_INCLUDE@%$LINUX_INCLUDE%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005037s%@DLL_CMT@%$DLL_CMT%g
5038/@MAKEFILE_DLL@/r $MAKEFILE_DLL
5039s%@MAKEFILE_DLL@%%g
5040s%@ELF_CMT@%$ELF_CMT%g
5041/@MAKEFILE_ELF@/r $MAKEFILE_ELF
5042s%@MAKEFILE_ELF@%%g
5043s%@BSDLIB_CMT@%$BSDLIB_CMT%g
5044/@MAKEFILE_BSDLIB@/r $MAKEFILE_BSDLIB
5045s%@MAKEFILE_BSDLIB@%%g
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005046s%@PROFILE_CMT@%$PROFILE_CMT%g
5047/@MAKEFILE_PROFILE@/r $MAKEFILE_PROFILE
5048s%@MAKEFILE_PROFILE@%%g
5049s%@CHECKER_CMT@%$CHECKER_CMT%g
5050/@MAKEFILE_CHECKER@/r $MAKEFILE_CHECKER
5051s%@MAKEFILE_CHECKER@%%g
5052s%@LIB_EXT@%$LIB_EXT%g
5053s%@STATIC_LIB_EXT@%$STATIC_LIB_EXT%g
5054s%@PROFILED_LIB_EXT@%$PROFILED_LIB_EXT%g
5055s%@DEBUGFS_CMT@%$DEBUGFS_CMT%g
5056s%@IMAGER_CMT@%$IMAGER_CMT%g
5057s%@RESIZER_CMT@%$RESIZER_CMT%g
5058s%@E2FSCK_TYPE@%$E2FSCK_TYPE%g
5059s%@FSCK_PROG@%$FSCK_PROG%g
5060s%@FSCK_MAN@%$FSCK_MAN%g
5061/@MAKEFILE_LIBRARY@/r $MAKEFILE_LIBRARY
5062s%@MAKEFILE_LIBRARY@%%g
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005063s%@PACKAGE@%$PACKAGE%g
5064s%@VERSION@%$VERSION%g
5065s%@SET_MAKE@%$SET_MAKE%g
5066s%@RANLIB@%$RANLIB%g
5067s%@ALLOCA@%$ALLOCA%g
5068s%@USE_NLS@%$USE_NLS%g
5069s%@MSGFMT@%$MSGFMT%g
5070s%@GMSGFMT@%$GMSGFMT%g
5071s%@XGETTEXT@%$XGETTEXT%g
5072s%@GENCAT@%$GENCAT%g
5073s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
5074s%@CATALOGS@%$CATALOGS%g
5075s%@CATOBJEXT@%$CATOBJEXT%g
5076s%@DATADIRNAME@%$DATADIRNAME%g
5077s%@GMOFILES@%$GMOFILES%g
5078s%@INSTOBJEXT@%$INSTOBJEXT%g
5079s%@INTLDEPS@%$INTLDEPS%g
5080s%@INTLLIBS@%$INTLLIBS%g
5081s%@INTLOBJS@%$INTLOBJS%g
5082s%@POFILES@%$POFILES%g
5083s%@POSUB@%$POSUB%g
5084s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
5085s%@GT_NO@%$GT_NO%g
5086s%@GT_YES@%$GT_YES%g
5087s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
5088s%@l@%$l%g
Theodore Ts'o74becf31997-04-26 14:37:06 +00005089s%@BINARY_TYPE@%$BINARY_TYPE%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005090s%@LN@%$LN%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005091s%@LN_S@%$LN_S%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005092s%@MV@%$MV%g
5093s%@CP@%$CP%g
5094s%@RM@%$RM%g
5095s%@CHMOD@%$CHMOD%g
5096s%@AWK@%$AWK%g
5097s%@SED@%$SED%g
Theodore Ts'o9d564f71999-07-03 20:25:58 +00005098s%@PERL@%$PERL%g
Theodore Ts'o250f79f2001-05-19 22:02:22 +00005099s%@LDCONFIG@%$LDCONFIG%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005100s%@build@%$build%g
5101s%@build_alias@%$build_alias%g
5102s%@build_cpu@%$build_cpu%g
5103s%@build_vendor@%$build_vendor%g
5104s%@build_os@%$build_os%g
5105s%@AR@%$AR%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005106s%@STRIP@%$STRIP%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005107s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00005108s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005109s%@INSTALL_DATA@%$INSTALL_DATA%g
Theodore Ts'o6c133521999-07-03 20:37:03 +00005110s%@BUILD_CC@%$BUILD_CC%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005111s%@SIZEOF_SHORT@%$SIZEOF_SHORT%g
5112s%@SIZEOF_INT@%$SIZEOF_INT%g
5113s%@SIZEOF_LONG@%$SIZEOF_LONG%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005114s%@SIZEOF_LONG_LONG@%$SIZEOF_LONG_LONG%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005115s%@SOCKET_LIB@%$SOCKET_LIB%g
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00005116s%@root_prefix@%$root_prefix%g
Theodore Ts'ob5ffead2002-05-11 19:17:00 -04005117s%@root_bindir@%$root_bindir%g
5118s%@root_sbindir@%$root_sbindir%g
5119s%@root_libdir@%$root_libdir%g
5120s%@root_sysconfdir@%$root_sysconfdir%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005121s%@LDFLAG_STATIC@%$LDFLAG_STATIC%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005122s%@SS_DIR@%$SS_DIR%g
5123s%@ET_DIR@%$ET_DIR%g
5124s%@DO_TEST_SUITE@%$DO_TEST_SUITE%g
5125
5126CEOF
5127EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005128
5129cat >> $CONFIG_STATUS <<\EOF
5130
5131# Split the substitutions into bite-sized pieces for seds with
5132# small command number limits, like on Digital OSF/1 and HP-UX.
5133ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5134ac_file=1 # Number of current file.
5135ac_beg=1 # First line for current file.
5136ac_end=$ac_max_sed_cmds # Line after last line for current file.
5137ac_more_lines=:
5138ac_sed_cmds=""
5139while $ac_more_lines; do
5140 if test $ac_beg -gt 1; then
5141 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5142 else
5143 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5144 fi
5145 if test ! -s conftest.s$ac_file; then
5146 ac_more_lines=false
5147 rm -f conftest.s$ac_file
5148 else
5149 if test -z "$ac_sed_cmds"; then
5150 ac_sed_cmds="sed -f conftest.s$ac_file"
5151 else
5152 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5153 fi
5154 ac_file=`expr $ac_file + 1`
5155 ac_beg=$ac_end
5156 ac_end=`expr $ac_end + $ac_max_sed_cmds`
5157 fi
5158done
5159if test -z "$ac_sed_cmds"; then
5160 ac_sed_cmds=cat
5161fi
5162EOF
5163
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005164cat >> $CONFIG_STATUS <<EOF
5165
Theodore Ts'o44339bd1997-10-15 02:47:20 +00005166CONFIG_FILES=\${CONFIG_FILES-"MCONFIG Makefile util/Makefile util/subst.conf lib/et/Makefile
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005167 lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile lib/uuid/Makefile
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04005168 lib/evms/Makefile
Theodore Ts'ob5ffead2002-05-11 19:17:00 -04005169 misc/Makefile ext2ed/Makefile e2fsck/Makefile debugfs/Makefile \
5170 tests/Makefile tests/progs/Makefile $rmakefile doc/Makefile
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005171 intl/Makefile po/Makefile.in"}
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005172EOF
5173cat >> $CONFIG_STATUS <<\EOF
5174for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005175 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005176 case "$ac_file" in
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005177 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005178 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5179 *) ac_file_in="${ac_file}.in" ;;
5180 esac
5181
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005182 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005183
5184 # Remove last slash and all that follows it. Not all systems have dirname.
5185 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5186 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5187 # The file is in a subdirectory.
5188 test ! -d "$ac_dir" && mkdir "$ac_dir"
5189 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5190 # A "../" for each directory in $ac_dir_suffix.
5191 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5192 else
5193 ac_dir_suffix= ac_dots=
5194 fi
5195
5196 case "$ac_given_srcdir" in
5197 .) srcdir=.
5198 if test -z "$ac_dots"; then top_srcdir=.
5199 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5200 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5201 *) # Relative path.
5202 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5203 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5204 esac
5205
5206 case "$ac_given_INSTALL" in
5207 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5208 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5209 esac
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005210
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005211 echo creating "$ac_file"
5212 rm -f "$ac_file"
5213 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5214 case "$ac_file" in
5215 *Makefile*) ac_comsub="1i\\
5216# $configure_input" ;;
5217 *) ac_comsub= ;;
5218 esac
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005219
5220 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 +00005221 sed -e "$ac_comsub
5222s%@configure_input@%$configure_input%g
5223s%@srcdir@%$srcdir%g
5224s%@top_srcdir@%$top_srcdir%g
5225s%@INSTALL@%$INSTALL%g
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005226" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005227fi; done
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005228rm -f conftest.s*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005229
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005230EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005231
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005232cat >> $CONFIG_STATUS <<EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005233ac_sources="$nls_cv_header_libgt"
5234ac_dests="$nls_cv_header_intl"
5235EOF
5236
5237cat >> $CONFIG_STATUS <<\EOF
5238srcdir=$ac_given_srcdir
5239while test -n "$ac_sources"; do
5240 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
5241 set $ac_sources; ac_source=$1; shift; ac_sources=$*
5242
5243 echo "linking $srcdir/$ac_source to $ac_dest"
5244
5245 if test ! -r $srcdir/$ac_source; then
5246 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
5247 fi
5248 rm -f $ac_dest
5249
5250 # Make relative symlinks.
5251 # Remove last slash and all that follows it. Not all systems have dirname.
5252 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
5253 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
5254 # The dest file is in a subdirectory.
5255 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
5256 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
5257 # A "../" for each directory in $ac_dest_dir_suffix.
5258 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
5259 else
5260 ac_dest_dir_suffix= ac_dots=
5261 fi
5262
5263 case "$srcdir" in
5264 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
5265 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
5266 esac
5267
5268 # Make a symlink if possible; otherwise try a hard link.
5269 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
5270 ln $srcdir/$ac_source $ac_dest; then :
5271 else
5272 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
5273 fi
5274done
5275EOF
5276cat >> $CONFIG_STATUS <<EOF
5277
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005278
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005279EOF
5280cat >> $CONFIG_STATUS <<\EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005281case "$CONFIG_FILES" in *po/Makefile.in*)
5282 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
5283 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005284
5285exit 0
5286EOF
5287chmod +x $CONFIG_STATUS
5288rm -fr confdefs* $ac_clean_files
5289test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
5290