blob: 9ebc5a10e4c5719877621c611e7d37c236131920 [file] [log] [blame]
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004# Generated automatically using autoconf version 2.13
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006#
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Defaults:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
14ac_help="$ac_help
Theodore Ts'o74becf31997-04-26 14:37:06 +000015 --with-cc=COMPILER select compiler to use"
16ac_help="$ac_help
17 --with-linker=LINKER select linker to use"
18ac_help="$ac_help
19 --with-ccopts=CCOPTS select compiler command line options"
20ac_help="$ac_help
21 --with-ldopts=LDOPTS select linker command line options"
22ac_help="$ac_help
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000023 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000024ac_help="$ac_help
Theodore Ts'o19178752000-02-11 15:55:07 +000025 --enable-compression enable EXPERIMENTAL compression support"
26ac_help="$ac_help
Theodore Ts'o8fdc9982002-06-25 23:26:34 -040027 --enable-htree enable EXPERIMENTAL htree directory support"
28ac_help="$ac_help
29 --enable-htree-clear clear htree because we don't trust e2fsck"
30ac_help="$ac_help
Theodore Ts'oa9d799a2002-11-08 13:50:51 -050031 --enable-evms-10 use EVMS 1.0 ABI (instead of EVMS 1.2)"
32ac_help="$ac_help
33 --enable-evms-11 use EVMS 1.1 ABI (instead of EVMS 1.1)"
Theodore Ts'off6dbcc2002-05-24 22:44:42 -040034ac_help="$ac_help
Theodore Ts'oa4d09611997-04-29 14:28:00 +000035 --enable-dll-shlibs select DLL libraries"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000036ac_help="$ac_help
Theodore Ts'oa4d09611997-04-29 14:28:00 +000037 --enable-elf-shlibs select ELF shared libraries"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000038ac_help="$ac_help
Theodore Ts'oa4d09611997-04-29 14:28:00 +000039 --enable-bsd-shlibs select BSD shared libraries"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000040ac_help="$ac_help
Theodore Ts'ocdf186e2001-06-13 22:16:47 +000041 --enable-profile build profiling libraries"
42ac_help="$ac_help
43 --enable-checker build checker libraries"
44ac_help="$ac_help
Theodore Ts'o782bebf2002-11-08 18:46:45 -050045 --enable-jbd-debug enable journal debugging"
Theodore Ts'o80bfaa32000-08-18 15:08:37 +000046ac_help="$ac_help
Theodore Ts'of0a22d02003-02-22 13:19:53 -050047 --enable-blkid-debug enable blkid debugging"
48ac_help="$ac_help
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000049 --disable-swapfs disable support of legacy byte-swapped filesystems"
50ac_help="$ac_help
Theodore Ts'ocdf186e2001-06-13 22:16:47 +000051 --disable-debugfs disable support of debugfs program"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000052ac_help="$ac_help
Theodore Ts'ocdf186e2001-06-13 22:16:47 +000053 --disable-imager disable support of e2image program"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000054ac_help="$ac_help
Theodore Ts'ocdf186e2001-06-13 22:16:47 +000055 --disable-resizer disable support of e2resize program"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000056ac_help="$ac_help
Theodore Ts'oa4d09611997-04-29 14:28:00 +000057 --enable-dynamic-e2fsck build e2fsck dynamically"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000058ac_help="$ac_help
59 --enable-fsck build fsck wrapper program"
60ac_help="$ac_help
61 --enable-old-bitops Use old (non-standard but native) bitmask operations"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +000062ac_help="$ac_help
63 --enable-nls Turn on Native Language Support"
64ac_help="$ac_help
65 --with-included-gettext use the GNU gettext library included here"
66ac_help="$ac_help
67 --with-catgets use catgets functions if available"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000068
69# Initialize some variables set by options.
70# The variables have the same names as the options, with
71# dashes changed to underlines.
72build=NONE
73cache_file=./config.cache
74exec_prefix=NONE
75host=NONE
76no_create=
77nonopt=NONE
78no_recursion=
79prefix=NONE
80program_prefix=NONE
81program_suffix=NONE
82program_transform_name=s,x,x,
83silent=
84site=
85srcdir=
86target=NONE
87verbose=
88x_includes=NONE
89x_libraries=NONE
Theodore Ts'o21c84b71997-04-29 16:15:03 +000090bindir='${exec_prefix}/bin'
91sbindir='${exec_prefix}/sbin'
92libexecdir='${exec_prefix}/libexec'
93datadir='${prefix}/share'
94sysconfdir='${prefix}/etc'
95sharedstatedir='${prefix}/com'
96localstatedir='${prefix}/var'
97libdir='${exec_prefix}/lib'
98includedir='${prefix}/include'
99oldincludedir='/usr/include'
100infodir='${prefix}/info'
101mandir='${prefix}/man'
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000102
103# Initialize some other variables.
104subdirs=
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000105MFLAGS= MAKEFLAGS=
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000106SHELL=${CONFIG_SHELL-/bin/sh}
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000107# Maximum number of lines to put in a shell here document.
108ac_max_here_lines=12
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000109
110ac_prev=
111for ac_option
112do
113
114 # If the previous option needs an argument, assign it.
115 if test -n "$ac_prev"; then
116 eval "$ac_prev=\$ac_option"
117 ac_prev=
118 continue
119 fi
120
121 case "$ac_option" in
122 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
123 *) ac_optarg= ;;
124 esac
125
126 # Accept the important Cygnus configure options, so we can diagnose typos.
127
128 case "$ac_option" in
129
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000130 -bindir | --bindir | --bindi | --bind | --bin | --bi)
131 ac_prev=bindir ;;
132 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
133 bindir="$ac_optarg" ;;
134
135 -build | --build | --buil | --bui | --bu)
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000136 ac_prev=build ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000137 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000138 build="$ac_optarg" ;;
139
140 -cache-file | --cache-file | --cache-fil | --cache-fi \
141 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
142 ac_prev=cache_file ;;
143 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
144 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
145 cache_file="$ac_optarg" ;;
146
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000147 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
148 ac_prev=datadir ;;
149 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
150 | --da=*)
151 datadir="$ac_optarg" ;;
152
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000153 -disable-* | --disable-*)
154 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
155 # Reject names that are not valid shell variable names.
156 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
157 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
158 fi
159 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
160 eval "enable_${ac_feature}=no" ;;
161
162 -enable-* | --enable-*)
163 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
164 # Reject names that are not valid shell variable names.
165 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
166 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
167 fi
168 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
169 case "$ac_option" in
170 *=*) ;;
171 *) ac_optarg=yes ;;
172 esac
173 eval "enable_${ac_feature}='$ac_optarg'" ;;
174
175 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
176 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
177 | --exec | --exe | --ex)
178 ac_prev=exec_prefix ;;
179 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
180 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
181 | --exec=* | --exe=* | --ex=*)
182 exec_prefix="$ac_optarg" ;;
183
184 -gas | --gas | --ga | --g)
185 # Obsolete; use --with-gas.
186 with_gas=yes ;;
187
188 -help | --help | --hel | --he)
189 # Omit some internal or obsolete options to make the list less imposing.
190 # This message is too long to be a string in the A/UX 3.1 sh.
191 cat << EOF
192Usage: configure [options] [host]
193Options: [defaults in brackets after descriptions]
194Configuration:
195 --cache-file=FILE cache test results in FILE
196 --help print this message
197 --no-create do not create output files
198 --quiet, --silent do not print \`checking...' messages
199 --version print the version of autoconf that created configure
200Directory and file names:
201 --prefix=PREFIX install architecture-independent files in PREFIX
202 [$ac_default_prefix]
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000203 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000204 [same as prefix]
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000205 --bindir=DIR user executables in DIR [EPREFIX/bin]
206 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
207 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
208 --datadir=DIR read-only architecture-independent data in DIR
209 [PREFIX/share]
210 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
211 --sharedstatedir=DIR modifiable architecture-independent data in DIR
212 [PREFIX/com]
213 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
214 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
215 --includedir=DIR C header files in DIR [PREFIX/include]
216 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
217 --infodir=DIR info documentation in DIR [PREFIX/info]
218 --mandir=DIR man documentation in DIR [PREFIX/man]
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000219 --srcdir=DIR find the sources in DIR [configure dir or ..]
220 --program-prefix=PREFIX prepend PREFIX to installed program names
221 --program-suffix=SUFFIX append SUFFIX to installed program names
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000222 --program-transform-name=PROGRAM
223 run sed PROGRAM on installed program names
224EOF
225 cat << EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000226Host type:
227 --build=BUILD configure for building on BUILD [BUILD=HOST]
228 --host=HOST configure for HOST [guessed]
229 --target=TARGET configure for TARGET [TARGET=HOST]
230Features and packages:
231 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
232 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
233 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
234 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
235 --x-includes=DIR X include files are in DIR
236 --x-libraries=DIR X library files are in DIR
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000237EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000238 if test -n "$ac_help"; then
239 echo "--enable and --with options recognized:$ac_help"
240 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000241 exit 0 ;;
242
243 -host | --host | --hos | --ho)
244 ac_prev=host ;;
245 -host=* | --host=* | --hos=* | --ho=*)
246 host="$ac_optarg" ;;
247
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000248 -includedir | --includedir | --includedi | --included | --include \
249 | --includ | --inclu | --incl | --inc)
250 ac_prev=includedir ;;
251 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
252 | --includ=* | --inclu=* | --incl=* | --inc=*)
253 includedir="$ac_optarg" ;;
254
255 -infodir | --infodir | --infodi | --infod | --info | --inf)
256 ac_prev=infodir ;;
257 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
258 infodir="$ac_optarg" ;;
259
260 -libdir | --libdir | --libdi | --libd)
261 ac_prev=libdir ;;
262 -libdir=* | --libdir=* | --libdi=* | --libd=*)
263 libdir="$ac_optarg" ;;
264
265 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
266 | --libexe | --libex | --libe)
267 ac_prev=libexecdir ;;
268 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
269 | --libexe=* | --libex=* | --libe=*)
270 libexecdir="$ac_optarg" ;;
271
272 -localstatedir | --localstatedir | --localstatedi | --localstated \
273 | --localstate | --localstat | --localsta | --localst \
274 | --locals | --local | --loca | --loc | --lo)
275 ac_prev=localstatedir ;;
276 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
277 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
278 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
279 localstatedir="$ac_optarg" ;;
280
281 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
282 ac_prev=mandir ;;
283 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
284 mandir="$ac_optarg" ;;
285
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000286 -nfp | --nfp | --nf)
287 # Obsolete; use --without-fp.
288 with_fp=no ;;
289
290 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
291 | --no-cr | --no-c)
292 no_create=yes ;;
293
294 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
295 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
296 no_recursion=yes ;;
297
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000298 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
299 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
300 | --oldin | --oldi | --old | --ol | --o)
301 ac_prev=oldincludedir ;;
302 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
303 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
304 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
305 oldincludedir="$ac_optarg" ;;
306
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000307 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
308 ac_prev=prefix ;;
309 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
310 prefix="$ac_optarg" ;;
311
312 -program-prefix | --program-prefix | --program-prefi | --program-pref \
313 | --program-pre | --program-pr | --program-p)
314 ac_prev=program_prefix ;;
315 -program-prefix=* | --program-prefix=* | --program-prefi=* \
316 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
317 program_prefix="$ac_optarg" ;;
318
319 -program-suffix | --program-suffix | --program-suffi | --program-suff \
320 | --program-suf | --program-su | --program-s)
321 ac_prev=program_suffix ;;
322 -program-suffix=* | --program-suffix=* | --program-suffi=* \
323 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
324 program_suffix="$ac_optarg" ;;
325
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 ac_prev=program_transform_name ;;
334 -program-transform-name=* | --program-transform-name=* \
335 | --program-transform-nam=* | --program-transform-na=* \
336 | --program-transform-n=* | --program-transform-=* \
337 | --program-transform=* | --program-transfor=* \
338 | --program-transfo=* | --program-transf=* \
339 | --program-trans=* | --program-tran=* \
340 | --progr-tra=* | --program-tr=* | --program-t=*)
341 program_transform_name="$ac_optarg" ;;
342
343 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
344 | -silent | --silent | --silen | --sile | --sil)
345 silent=yes ;;
346
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000347 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
348 ac_prev=sbindir ;;
349 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
350 | --sbi=* | --sb=*)
351 sbindir="$ac_optarg" ;;
352
353 -sharedstatedir | --sharedstatedir | --sharedstatedi \
354 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
355 | --sharedst | --shareds | --shared | --share | --shar \
356 | --sha | --sh)
357 ac_prev=sharedstatedir ;;
358 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
359 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
360 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
361 | --sha=* | --sh=*)
362 sharedstatedir="$ac_optarg" ;;
363
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000364 -site | --site | --sit)
365 ac_prev=site ;;
366 -site=* | --site=* | --sit=*)
367 site="$ac_optarg" ;;
368
369 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
370 ac_prev=srcdir ;;
371 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
372 srcdir="$ac_optarg" ;;
373
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000374 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
375 | --syscon | --sysco | --sysc | --sys | --sy)
376 ac_prev=sysconfdir ;;
377 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
378 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
379 sysconfdir="$ac_optarg" ;;
380
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000381 -target | --target | --targe | --targ | --tar | --ta | --t)
382 ac_prev=target ;;
383 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
384 target="$ac_optarg" ;;
385
386 -v | -verbose | --verbose | --verbos | --verbo | --verb)
387 verbose=yes ;;
388
389 -version | --version | --versio | --versi | --vers)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000390 echo "configure generated by autoconf version 2.13"
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000391 exit 0 ;;
392
393 -with-* | --with-*)
394 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
395 # Reject names that are not valid shell variable names.
396 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
397 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
398 fi
399 ac_package=`echo $ac_package| sed 's/-/_/g'`
400 case "$ac_option" in
401 *=*) ;;
402 *) ac_optarg=yes ;;
403 esac
404 eval "with_${ac_package}='$ac_optarg'" ;;
405
406 -without-* | --without-*)
407 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
408 # Reject names that are not valid shell variable names.
409 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
410 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
411 fi
412 ac_package=`echo $ac_package| sed 's/-/_/g'`
413 eval "with_${ac_package}=no" ;;
414
415 --x)
416 # Obsolete; use --with-x.
417 with_x=yes ;;
418
419 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
420 | --x-incl | --x-inc | --x-in | --x-i)
421 ac_prev=x_includes ;;
422 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
423 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
424 x_includes="$ac_optarg" ;;
425
426 -x-libraries | --x-libraries | --x-librarie | --x-librari \
427 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
428 ac_prev=x_libraries ;;
429 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
430 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
431 x_libraries="$ac_optarg" ;;
432
433 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
434 ;;
435
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000436 *)
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000437 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
438 echo "configure: warning: $ac_option: invalid host type" 1>&2
439 fi
440 if test "x$nonopt" != xNONE; then
441 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
442 fi
443 nonopt="$ac_option"
444 ;;
445
446 esac
447done
448
449if test -n "$ac_prev"; then
450 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
451fi
452
453trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
454
455# File descriptor usage:
456# 0 standard input
457# 1 file creation
458# 2 errors and warnings
459# 3 some systems may open it to /dev/tty
460# 4 used on the Kubota Titan
461# 6 checking for... messages and results
462# 5 compiler messages saved in config.log
463if test "$silent" = yes; then
464 exec 6>/dev/null
465else
466 exec 6>&1
467fi
468exec 5>./config.log
469
470echo "\
471This file contains any messages produced by compilers while
472running configure, to aid debugging if configure makes a mistake.
473" 1>&5
474
475# Strip out --no-create and --no-recursion so they do not pile up.
476# Also quote any args containing shell metacharacters.
477ac_configure_args=
478for ac_arg
479do
480 case "$ac_arg" in
481 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
482 | --no-cr | --no-c) ;;
483 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
484 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
485 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
486 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
487 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
488 esac
489done
490
491# NLS nuisances.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000492# Only set these to C if already set. These must not be set unconditionally
493# because not all systems understand e.g. LANG=C (notably SCO).
494# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
495# Non-C LC_CTYPE values break the ctype check.
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000496if test "${LANG+set}" = set; then LANG=C; export LANG; fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000497if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
498if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
499if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000500
501# confdefs.h avoids OS command line length limits that DEFS can exceed.
502rm -rf conftest* confdefs.h
503# AIX cpp loses on an empty file, so make sure it contains at least a newline.
504echo > confdefs.h
505
506# A filename unique to this package, relative to the directory that
507# configure is in, which we can look for to find out if srcdir is correct.
508ac_unique_file=version.h
509
510# Find the source files, if location was not specified.
511if test -z "$srcdir"; then
512 ac_srcdir_defaulted=yes
513 # Try the directory containing this script, then its parent.
514 ac_prog=$0
515 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
516 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
517 srcdir=$ac_confdir
518 if test ! -r $srcdir/$ac_unique_file; then
519 srcdir=..
520 fi
521else
522 ac_srcdir_defaulted=no
523fi
524if test ! -r $srcdir/$ac_unique_file; then
525 if test "$ac_srcdir_defaulted" = yes; then
526 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
527 else
528 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
529 fi
530fi
531srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
532
533# Prefer explicitly selected file to automatically selected ones.
534if test -z "$CONFIG_SITE"; then
535 if test "x$prefix" != xNONE; then
536 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
537 else
538 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
539 fi
540fi
541for ac_site_file in $CONFIG_SITE; do
542 if test -r "$ac_site_file"; then
543 echo "loading site script $ac_site_file"
544 . "$ac_site_file"
545 fi
546done
547
548if test -r "$cache_file"; then
549 echo "loading cache $cache_file"
550 . $cache_file
551else
552 echo "creating cache $cache_file"
553 > $cache_file
554fi
555
556ac_ext=c
557# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
558ac_cpp='$CPP $CPPFLAGS'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000559ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000560ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000561cross_compiling=$ac_cv_prog_cc_cross
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000562
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000563ac_exeext=
564ac_objext=o
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000565if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
566 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
567 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
568 ac_n= ac_c='
569' ac_t=' '
570 else
571 ac_n=-n ac_c= ac_t=
572 fi
573else
574 ac_n= ac_c='\c' ac_t=
575fi
576
577
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +0000578
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000579MCONFIG=./MCONFIG
580
Theodore Ts'o74becf31997-04-26 14:37:06 +0000581BINARY_TYPE=bin
582E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
583 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
584DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
585 | tr \" " "`
Theodore Ts'obff0cc92003-03-23 01:37:53 -0500586E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
Theodore Ts'o74becf31997-04-26 14:37:06 +0000587MONTH=`echo $DATE | awk -F- '{print $2}'`
588YEAR=`echo $DATE | awk -F- '{print $3}'`
589
Theodore Ts'o14790ed1999-01-12 23:32:52 +0000590if expr $YEAR ">" 1900 > /dev/null ; then
591 E2FSPROGS_YEAR=$YEAR
592elif expr $YEAR ">" 90 >/dev/null ; then
Theodore Ts'o74becf31997-04-26 14:37:06 +0000593 E2FSPROGS_YEAR=19$YEAR
594else
595 E2FSPROGS_YEAR=20$YEAR
596fi
597
598case $MONTH in
599Jan) E2FSPROGS_MONTH="January" ;;
600Feb) E2FSPROGS_MONTH="February" ;;
601Mar) E2FSPROGS_MONTH="March" ;;
602Apr) E2FSPROGS_MONTH="April" ;;
603May) E2FSPROGS_MONTH="May" ;;
604Jun) E2FSPROGS_MONTH="June" ;;
605Jul) E2FSPROGS_MONTH="July" ;;
606Aug) E2FSPROGS_MONTH="August" ;;
607Sep) E2FSPROGS_MONTH="September" ;;
608Oct) E2FSPROGS_MONTH="October" ;;
609Nov) E2FSPROGS_MONTH="November" ;;
610Dec) E2FSPROGS_MONTH="December" ;;
611*) echo "Unknown month $MONTH??" ;;
612esac
613
614unset DATE MONTH YEAR
615echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION"
616echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}"
617
618
619
Theodore Ts'obff0cc92003-03-23 01:37:53 -0500620
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000621ac_aux_dir=
622for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
623 if test -f $ac_dir/install-sh; then
624 ac_aux_dir=$ac_dir
625 ac_install_sh="$ac_aux_dir/install-sh -c"
626 break
627 elif test -f $ac_dir/install.sh; then
628 ac_aux_dir=$ac_dir
629 ac_install_sh="$ac_aux_dir/install.sh -c"
630 break
631 fi
632done
633if test -z "$ac_aux_dir"; then
634 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
635fi
636ac_config_guess=$ac_aux_dir/config.guess
637ac_config_sub=$ac_aux_dir/config.sub
638ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
639
640
641# Make sure we can run config.sub.
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000642if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000643else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
644fi
645
646echo $ac_n "checking host system type""... $ac_c" 1>&6
Theodore Ts'obff0cc92003-03-23 01:37:53 -0500647echo "configure:648: checking host system type" >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000648
649host_alias=$host
650case "$host_alias" in
651NONE)
652 case $nonopt in
653 NONE)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000654 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000655 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
656 fi ;;
657 *) host_alias=$nonopt ;;
658 esac ;;
659esac
660
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000661host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000662host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
663host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
664host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000665echo "$ac_t""$host" 1>&6
666
Theodore Ts'o74becf31997-04-26 14:37:06 +0000667# Check whether --with-cc or --without-cc was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000668if test "${with_cc+set}" = set; then
669 withval="$with_cc"
Theodore Ts'o74becf31997-04-26 14:37:06 +0000670 echo "$ac_t""CC=$withval" 1>&6
671CC=$withval
672else
673 if test -z "$CC" ; then CC=cc; fi
674echo "$ac_t""CC defaults to $CC" 1>&6
675fi
676export CC
677
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000678# Extract the first word of "gcc", so it can be a program name with args.
679set dummy gcc; ac_word=$2
680echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'obff0cc92003-03-23 01:37:53 -0500681echo "configure:682: checking for $ac_word" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000682if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
683 echo $ac_n "(cached) $ac_c" 1>&6
684else
685 if test -n "$CC"; then
686 ac_cv_prog_CC="$CC" # Let the user override the test.
687else
688 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
689 ac_dummy="$PATH"
690 for ac_dir in $ac_dummy; do
691 test -z "$ac_dir" && ac_dir=.
692 if test -f $ac_dir/$ac_word; then
693 ac_cv_prog_CC="gcc"
694 break
695 fi
696 done
697 IFS="$ac_save_ifs"
698fi
699fi
700CC="$ac_cv_prog_CC"
701if test -n "$CC"; then
702 echo "$ac_t""$CC" 1>&6
703else
704 echo "$ac_t""no" 1>&6
705fi
706
707if test -z "$CC"; then
708 # Extract the first word of "cc", so it can be a program name with args.
709set dummy cc; ac_word=$2
710echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'obff0cc92003-03-23 01:37:53 -0500711echo "configure:712: checking for $ac_word" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000712if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
713 echo $ac_n "(cached) $ac_c" 1>&6
714else
715 if test -n "$CC"; then
716 ac_cv_prog_CC="$CC" # Let the user override the test.
717else
718 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
719 ac_prog_rejected=no
720 ac_dummy="$PATH"
721 for ac_dir in $ac_dummy; do
722 test -z "$ac_dir" && ac_dir=.
723 if test -f $ac_dir/$ac_word; then
724 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
725 ac_prog_rejected=yes
726 continue
727 fi
728 ac_cv_prog_CC="cc"
729 break
730 fi
731 done
732 IFS="$ac_save_ifs"
733if test $ac_prog_rejected = yes; then
734 # We found a bogon in the path, so make sure we never use it.
735 set dummy $ac_cv_prog_CC
736 shift
737 if test $# -gt 0; then
738 # We chose a different compiler from the bogus one.
739 # However, it has the same basename, so the bogon will be chosen
740 # first if we set CC to just the basename; use the full file name.
741 shift
742 set dummy "$ac_dir/$ac_word" "$@"
743 shift
744 ac_cv_prog_CC="$@"
745 fi
746fi
747fi
748fi
749CC="$ac_cv_prog_CC"
750if test -n "$CC"; then
751 echo "$ac_t""$CC" 1>&6
752else
753 echo "$ac_t""no" 1>&6
754fi
755
756 if test -z "$CC"; then
757 case "`uname -s`" in
758 *win32* | *WIN32*)
759 # Extract the first word of "cl", so it can be a program name with args.
760set dummy cl; ac_word=$2
761echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'obff0cc92003-03-23 01:37:53 -0500762echo "configure:763: checking for $ac_word" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000763if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
764 echo $ac_n "(cached) $ac_c" 1>&6
765else
766 if test -n "$CC"; then
767 ac_cv_prog_CC="$CC" # Let the user override the test.
768else
769 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
770 ac_dummy="$PATH"
771 for ac_dir in $ac_dummy; do
772 test -z "$ac_dir" && ac_dir=.
773 if test -f $ac_dir/$ac_word; then
774 ac_cv_prog_CC="cl"
775 break
776 fi
777 done
778 IFS="$ac_save_ifs"
779fi
780fi
781CC="$ac_cv_prog_CC"
782if test -n "$CC"; then
783 echo "$ac_t""$CC" 1>&6
784else
785 echo "$ac_t""no" 1>&6
786fi
787 ;;
788 esac
789 fi
790 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
791fi
792
793echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
Theodore Ts'obff0cc92003-03-23 01:37:53 -0500794echo "configure:795: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000795
796ac_ext=c
797# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
798ac_cpp='$CPP $CPPFLAGS'
799ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
800ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
801cross_compiling=$ac_cv_prog_cc_cross
802
803cat > conftest.$ac_ext << EOF
804
Theodore Ts'obff0cc92003-03-23 01:37:53 -0500805#line 806 "configure"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000806#include "confdefs.h"
807
808main(){return(0);}
809EOF
Theodore Ts'obff0cc92003-03-23 01:37:53 -0500810if { (eval echo configure:811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000811 ac_cv_prog_cc_works=yes
812 # If we can't run a trivial program, we are probably using a cross compiler.
813 if (./conftest; exit) 2>/dev/null; then
814 ac_cv_prog_cc_cross=no
815 else
816 ac_cv_prog_cc_cross=yes
817 fi
818else
819 echo "configure: failed program was:" >&5
820 cat conftest.$ac_ext >&5
821 ac_cv_prog_cc_works=no
822fi
823rm -fr conftest*
824ac_ext=c
825# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
826ac_cpp='$CPP $CPPFLAGS'
827ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
828ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
829cross_compiling=$ac_cv_prog_cc_cross
830
831echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
832if test $ac_cv_prog_cc_works = no; then
833 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
834fi
835echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
Theodore Ts'obff0cc92003-03-23 01:37:53 -0500836echo "configure:837: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000837echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
838cross_compiling=$ac_cv_prog_cc_cross
839
840echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
Theodore Ts'obff0cc92003-03-23 01:37:53 -0500841echo "configure:842: checking whether we are using GNU C" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000842if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
843 echo $ac_n "(cached) $ac_c" 1>&6
844else
845 cat > conftest.c <<EOF
846#ifdef __GNUC__
847 yes;
848#endif
849EOF
Theodore Ts'obff0cc92003-03-23 01:37:53 -0500850if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:851: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000851 ac_cv_prog_gcc=yes
852else
853 ac_cv_prog_gcc=no
854fi
855fi
856
857echo "$ac_t""$ac_cv_prog_gcc" 1>&6
858
859if test $ac_cv_prog_gcc = yes; then
860 GCC=yes
861else
862 GCC=
863fi
864
865ac_test_CFLAGS="${CFLAGS+set}"
866ac_save_CFLAGS="$CFLAGS"
867CFLAGS=
868echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
Theodore Ts'obff0cc92003-03-23 01:37:53 -0500869echo "configure:870: checking whether ${CC-cc} accepts -g" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000870if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
871 echo $ac_n "(cached) $ac_c" 1>&6
872else
873 echo 'void f(){}' > conftest.c
874if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
875 ac_cv_prog_cc_g=yes
876else
877 ac_cv_prog_cc_g=no
878fi
879rm -f conftest*
880
881fi
882
883echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
884if test "$ac_test_CFLAGS" = set; then
885 CFLAGS="$ac_save_CFLAGS"
886elif test $ac_cv_prog_cc_g = yes; then
887 if test "$GCC" = yes; then
888 CFLAGS="-g -O2"
889 else
890 CFLAGS="-g"
891 fi
892else
893 if test "$GCC" = yes; then
894 CFLAGS="-O2"
895 else
896 CFLAGS=
897 fi
898fi
899
Theodore Ts'o74becf31997-04-26 14:37:06 +0000900# Check whether --with-linker or --without-linker was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000901if test "${with_linker+set}" = set; then
902 withval="$with_linker"
Theodore Ts'o74becf31997-04-26 14:37:06 +0000903 echo "$ac_t""LD=$withval" 1>&6
904LD=$withval
905else
906 if test -z "$LD" ; then LD=$CC; fi
907echo "$ac_t""LD defaults to $LD" 1>&6
908fi
909export LD
910
911# Check whether --with-ccopts or --without-ccopts was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000912if test "${with_ccopts+set}" = set; then
913 withval="$with_ccopts"
Theodore Ts'o74becf31997-04-26 14:37:06 +0000914 echo "$ac_t""CCOPTS is $withval" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +0000915CFLAGS=$withval
Theodore Ts'o74becf31997-04-26 14:37:06 +0000916fi
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000917echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
Theodore Ts'obff0cc92003-03-23 01:37:53 -0500918echo "configure:919: checking how to run the C preprocessor" >&5
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000919# On Suns, sometimes $CPP names a directory.
920if test -n "$CPP" && test -d "$CPP"; then
921 CPP=
922fi
923if test -z "$CPP"; then
924if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
925 echo $ac_n "(cached) $ac_c" 1>&6
926else
927 # This must be in double quotes, not single quotes, because CPP may get
928 # substituted into the Makefile and "${CC-cc}" will confuse make.
929 CPP="${CC-cc} -E"
930 # On the NeXT, cc -E runs the code through the compiler's parser,
931 # not just through cpp.
932 cat > conftest.$ac_ext <<EOF
Theodore Ts'obff0cc92003-03-23 01:37:53 -0500933#line 934 "configure"
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000934#include "confdefs.h"
935#include <assert.h>
936Syntax Error
937EOF
938ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'obff0cc92003-03-23 01:37:53 -0500939{ (eval echo configure:940: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000940ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
941if test -z "$ac_err"; then
942 :
943else
944 echo "$ac_err" >&5
945 echo "configure: failed program was:" >&5
946 cat conftest.$ac_ext >&5
947 rm -rf conftest*
948 CPP="${CC-cc} -E -traditional-cpp"
949 cat > conftest.$ac_ext <<EOF
Theodore Ts'obff0cc92003-03-23 01:37:53 -0500950#line 951 "configure"
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000951#include "confdefs.h"
952#include <assert.h>
953Syntax Error
954EOF
955ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'obff0cc92003-03-23 01:37:53 -0500956{ (eval echo configure:957: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000957ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
958if test -z "$ac_err"; then
959 :
960else
961 echo "$ac_err" >&5
962 echo "configure: failed program was:" >&5
963 cat conftest.$ac_ext >&5
964 rm -rf conftest*
965 CPP="${CC-cc} -nologo -E"
966 cat > conftest.$ac_ext <<EOF
Theodore Ts'obff0cc92003-03-23 01:37:53 -0500967#line 968 "configure"
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000968#include "confdefs.h"
969#include <assert.h>
970Syntax Error
971EOF
972ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'obff0cc92003-03-23 01:37:53 -0500973{ (eval echo configure:974: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000974ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
975if test -z "$ac_err"; then
976 :
977else
978 echo "$ac_err" >&5
979 echo "configure: failed program was:" >&5
980 cat conftest.$ac_ext >&5
981 rm -rf conftest*
982 CPP=/lib/cpp
983fi
984rm -f conftest*
985fi
986rm -f conftest*
987fi
988rm -f conftest*
989 ac_cv_prog_CPP="$CPP"
990fi
991 CPP="$ac_cv_prog_CPP"
992else
993 ac_cv_prog_CPP="$CPP"
994fi
995echo "$ac_t""$CPP" 1>&6
996
997ac_safe=`echo "linux/fs.h" | sed 'y%./+-%__p_%'`
998echo $ac_n "checking for linux/fs.h""... $ac_c" 1>&6
Theodore Ts'obff0cc92003-03-23 01:37:53 -0500999echo "configure:1000: checking for linux/fs.h" >&5
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001000if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1001 echo $ac_n "(cached) $ac_c" 1>&6
1002else
1003 cat > conftest.$ac_ext <<EOF
Theodore Ts'obff0cc92003-03-23 01:37:53 -05001004#line 1005 "configure"
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001005#include "confdefs.h"
1006#include <linux/fs.h>
1007EOF
1008ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'obff0cc92003-03-23 01:37:53 -05001009{ (eval echo configure:1010: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001010ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1011if test -z "$ac_err"; then
1012 rm -rf conftest*
1013 eval "ac_cv_header_$ac_safe=yes"
1014else
1015 echo "$ac_err" >&5
1016 echo "configure: failed program was:" >&5
1017 cat conftest.$ac_ext >&5
1018 rm -rf conftest*
1019 eval "ac_cv_header_$ac_safe=no"
1020fi
1021rm -f conftest*
1022fi
1023if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1024 echo "$ac_t""yes" 1>&6
1025 linux_headers=yes
1026else
1027 echo "$ac_t""no" 1>&6
1028linux_headers=no
1029fi
1030
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001031if test "$linux_headers" != yes; then
1032 LINUX_INCLUDE='-I$(top_builddir)/include'
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001033fi
1034
Theodore Ts'oa4d09611997-04-29 14:28:00 +00001035LIB_EXT=.a
1036STATIC_LIB_EXT=.a
1037PROFILE_LIB_EXT=.a
Theodore Ts'o74becf31997-04-26 14:37:06 +00001038# Check whether --with-ldopts or --without-ldopts was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001039if test "${with_ldopts+set}" = set; then
1040 withval="$with_ldopts"
Theodore Ts'o74becf31997-04-26 14:37:06 +00001041 echo "$ac_t""LDFLAGS is $withval" 1>&6
1042LDFLAGS=$withval
1043else
1044 LDFLAGS=
1045fi
1046
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00001047# Check whether --with-root-prefix or --without-root-prefix was given.
1048if test "${with_root_prefix+set}" = set; then
1049 withval="$with_root_prefix"
1050 root_prefix=$withval
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001051else
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00001052 root_prefix=NONE
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001053fi
Theodore Ts'o19178752000-02-11 15:55:07 +00001054# Check whether --enable-compression or --disable-compression was given.
1055if test "${enable_compression+set}" = set; then
1056 enableval="$enable_compression"
1057 if test "$enableval" = "no"
1058then
1059 echo "Disabling compression support"
1060else
1061 cat >> confdefs.h <<\EOF
1062#define ENABLE_COMPRESSION 1
1063EOF
1064
1065 echo "Enabling compression support"
1066 echo "WARNING: Compression support is experimental"
1067fi
1068
1069else
1070 echo "Disabling compression support by default"
1071
1072fi
1073
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04001074# Check whether --enable-htree or --disable-htree was given.
1075if test "${enable_htree+set}" = set; then
1076 enableval="$enable_htree"
1077 if test "$enableval" = "no"
1078then
1079 HTREE_CMT=#
1080 echo "Disabling htree directory support"
1081else
1082 HTREE_CMT=
1083 cat >> confdefs.h <<\EOF
1084#define ENABLE_HTREE 1
1085EOF
1086
1087 echo "Enabling htree directory support"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04001088fi
1089
1090else
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04001091 HTREE_CMT=
1092cat >> confdefs.h <<\EOF
1093#define ENABLE_HTREE 1
1094EOF
1095
1096echo "Enabling htree directory support by default"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04001097
1098fi
1099
1100
1101# Check whether --enable-htree-clear or --disable-htree-clear was given.
1102if test "${enable_htree_clear+set}" = set; then
1103 enableval="$enable_htree_clear"
1104 if test "$enableval" = "no"
1105then
1106 HTREE_CLR_CMT=#
1107 echo "Disabling htree clearing"
1108else
1109 HTREE_CLR_CMT=
1110 cat >> confdefs.h <<\EOF
1111#define ENABLE_HTREE_CLEAR 1
1112EOF
1113
1114 echo "Enabling htree clearing"
1115fi
1116
1117else
1118 HTREE_CLR_CMT=#
1119echo "Disabling htree clearing by default"
1120
1121fi
1122
1123
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05001124EVMS_ABI_CODE=120
1125# Check whether --enable-evms-10 or --disable-evms-10 was given.
1126if test "${enable_evms_10+set}" = set; then
1127 enableval="$enable_evms_10"
1128 if test "$enableval" != "no"
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04001129then
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05001130 EVMS_ABI_CODE=100
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04001131 echo "Enabling EVMS 1.0.0 ABI"
1132fi
1133
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05001134fi
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04001135
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05001136# Check whether --enable-evms-11 or --disable-evms-11 was given.
1137if test "${enable_evms_11+set}" = set; then
1138 enableval="$enable_evms_11"
1139 if test "$enableval" != "no"
1140then
1141 EVMS_ABI_CODE=110
1142 echo "Enabling EVMS 1.1.0 ABI"
1143fi
1144
1145fi
1146
1147if test "$EVMS_ABI_CODE" = "120"
1148then
1149 echo "Using EVMS 1.2.0 ABI by default"
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04001150fi
1151
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001152# Check whether --enable-dll-shlibs or --disable-dll-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001153if test "${enable_dll_shlibs+set}" = set; then
1154 enableval="$enable_dll_shlibs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001155 if test "$enableval" = "no"
1156then
1157 DLL_CMT=#
1158 MAKEFILE_DLL=/dev/null
1159 echo "Disabling DLL shared libraries"
1160else
1161 DLL_CMT=
1162 MAKEFILE_DLL=$srcdir/lib/Makefile.dll-lib
Theodore Ts'o74becf31997-04-26 14:37:06 +00001163 BINARY_TYPE=dllbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00001164 LIB_EXT=.sa
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001165 echo "Enabling DLL shared libraries"
1166fi
1167
1168else
1169 MAKEFILE_DLL=/dev/null
1170DLL_CMT=#
1171echo "Disabling DLL shared libraries by default"
1172
1173fi
1174
1175
1176
1177# Check whether --enable-elf-shlibs or --disable-elf-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001178if test "${enable_elf_shlibs+set}" = set; then
1179 enableval="$enable_elf_shlibs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001180 if test "$enableval" = "no"
1181then
1182 ELF_CMT=#
1183 MAKEFILE_ELF=/dev/null
1184 echo "Disabling ELF shared libraries"
1185else
1186 ELF_CMT=
1187 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
Theodore Ts'of5955dd2000-10-25 02:38:39 +00001188 case "$host_os" in
1189 solaris2.*)
1190 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
1191 ;;
1192 esac
Theodore Ts'o74becf31997-04-26 14:37:06 +00001193 BINARY_TYPE=elfbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00001194 LIB_EXT=.so
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001195 echo "Enabling ELF shared libraries"
1196fi
1197
1198else
1199 MAKEFILE_ELF=/dev/null
1200ELF_CMT=#
1201echo "Disabling ELF shared libraries by default"
1202
1203fi
1204
1205
1206
1207# Check whether --enable-bsd-shlibs or --disable-bsd-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001208if test "${enable_bsd_shlibs+set}" = set; then
1209 enableval="$enable_bsd_shlibs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001210 if test "$enableval" = "no"
1211then
1212 BSDLIB_CMT=#
1213 MAKEFILE_BSDLIB=/dev/null
1214 echo "Disabling BSD shared libraries"
1215else
1216 BSDLIB_CMT=
1217 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
Theodore Ts'oa4d09611997-04-29 14:28:00 +00001218 LIB_EXT=.so
Theodore Ts'oe1f07222003-03-14 02:25:36 -05001219 case "$host_os" in
Theodore Ts'oaa75ecc2003-03-17 10:01:22 -05001220 darwin*)
Theodore Ts'oe1f07222003-03-14 02:25:36 -05001221 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
1222 LIB_EXT=.dylib
1223 ;;
1224 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001225 echo "Enabling BSD shared libraries"
1226fi
1227
1228else
1229 MAKEFILE_BSDLIB=/dev/null
1230BSDLIB_CMT=#
1231echo "Disabling BSD shared libraries by default"
1232
1233fi
1234
1235
1236
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001237# Check whether --enable-profile or --disable-profile was given.
1238if test "${enable_profile+set}" = set; then
1239 enableval="$enable_profile"
1240 if test "$enableval" = "no"
1241then
1242 PROFILE_CMT=#
1243 MAKEFILE_PROFILE=/dev/null
1244 echo "Disabling profiling libraries"
1245else
1246 PROFILE_CMT=
1247 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
1248 PROFILED_LIB_EXT=_p.a
1249 echo "Building profiling libraries"
1250fi
1251
1252else
1253 PROFILE_CMT=#
1254MAKEFILE_PROFILE=/dev/null
1255echo "Disabling profiling libraries by default"
1256
1257fi
1258
1259
1260
1261# Check whether --enable-checker or --disable-checker was given.
1262if test "${enable_checker+set}" = set; then
1263 enableval="$enable_checker"
1264 if test "$enableval" = "no"
1265then
1266 CHECKER_CMT=#
1267 MAKEFILE_CHECKER=/dev/null
1268 echo "Disabling checker libraries"
1269else
1270 CHECKER_CMT=
1271 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
1272 echo "Building checker libraries"
1273fi
1274
1275else
1276 CHECKER_CMT=#
1277MAKEFILE_CHECKER=/dev/null
1278echo "Disabling checker libraries by default"
1279
1280fi
1281
1282
1283
1284
1285
1286
Theodore Ts'o782bebf2002-11-08 18:46:45 -05001287# Check whether --enable-jbd-debug or --disable-jbd-debug was given.
1288if test "${enable_jbd_debug+set}" = set; then
1289 enableval="$enable_jbd_debug"
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00001290 if test "$enableval" = "no"
1291then
1292 echo "Disabling journal debugging"
1293else
1294 cat >> confdefs.h <<\EOF
Theodore Ts'o8cf93332001-12-16 02:23:36 -05001295#define CONFIG_JBD_DEBUG 1
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00001296EOF
1297
1298 echo "Enabling journal debugging"
1299fi
1300
1301else
1302 echo "Disabling journal debugging by default"
1303
1304fi
1305
Theodore Ts'of0a22d02003-02-22 13:19:53 -05001306# Check whether --enable-blkid-debug or --disable-blkid-debug was given.
1307if test "${enable_blkid_debug+set}" = set; then
1308 enableval="$enable_blkid_debug"
1309 if test "$enableval" = "no"
1310then
1311 echo "Disabling blkid debugging"
1312else
1313 cat >> confdefs.h <<\EOF
1314#define CONFIG_BLKID_DEBUG 1
1315EOF
1316
1317 echo "Enabling blkid debugging"
1318fi
1319
1320else
1321 echo "Disabling blkid debugging by default"
1322
1323fi
1324
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001325# Check whether --enable-swapfs or --disable-swapfs was given.
1326if test "${enable_swapfs+set}" = set; then
1327 enableval="$enable_swapfs"
1328 if test "$enableval" = "no"
1329then
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05001330 SWAPFS_CMT=#
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001331 echo "Disabling swapfs support"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001332else
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05001333 SWAPFS_CMT=
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001334 cat >> confdefs.h <<\EOF
1335#define ENABLE_SWAPFS 1
1336EOF
1337
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001338 echo "Enabling swapfs support"
1339fi
1340
1341else
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05001342 SWAPFS_CMT=
1343echo "Enabling swapfs support by default"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001344cat >> confdefs.h <<\EOF
1345#define ENABLE_SWAPFS 1
1346EOF
1347
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001348
1349fi
1350
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05001351
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001352# Check whether --enable-debugfs or --disable-debugfs was given.
1353if test "${enable_debugfs+set}" = set; then
1354 enableval="$enable_debugfs"
1355 if test "$enableval" = "no"
1356then
1357 echo "Disabling debugfs support"
1358 DEBUGFS_CMT="#"
1359else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001360 DEBUGFS_CMT=
1361 echo "Enabling debugfs support"
1362fi
1363
1364else
1365 echo "Enabling debugfs support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001366DEBUGFS_CMT=
1367
1368fi
1369
1370
1371# Check whether --enable-imager or --disable-imager was given.
1372if test "${enable_imager+set}" = set; then
1373 enableval="$enable_imager"
1374 if test "$enableval" = "no"
1375then
1376 echo "Disabling e2image support"
1377 IMAGER_CMT="#"
1378else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001379 IMAGER_CMT=
1380 echo "Enabling e2image support"
1381fi
1382
1383else
1384 echo "Enabling e2image support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001385IMAGER_CMT=
1386
1387fi
1388
1389
1390# Check whether --enable-resizer or --disable-resizer was given.
1391if test "${enable_resizer+set}" = set; then
1392 enableval="$enable_resizer"
1393 if test "$enableval" = "no"
1394then
1395 echo "Disabling e2resize support"
1396 RESIZER_CMT="#"
1397else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001398 RESIZER_CMT=
1399 echo "Enabling e2resize support"
1400fi
1401
1402else
1403 echo "Enabling e2resize support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001404RESIZER_CMT=
1405
1406fi
1407
1408
1409# Check whether --enable-dynamic-e2fsck or --disable-dynamic-e2fsck was given.
1410if test "${enable_dynamic_e2fsck+set}" = set; then
1411 enableval="$enable_dynamic_e2fsck"
1412 if test "$enableval" = "no"
1413then
1414 E2FSCK_TYPE=static
1415 echo "Building e2fsck statically"
1416else
1417 E2FSCK_TYPE=shared
1418 echo "Building e2fsck dynamically"
1419fi
1420
1421else
1422 E2FSCK_TYPE=static
1423echo "Building e2fsck statically by default"
1424
1425fi
1426
1427
1428# Check whether --enable-fsck or --disable-fsck was given.
1429if test "${enable_fsck+set}" = set; then
1430 enableval="$enable_fsck"
1431 if test "$enableval" = "no"
1432then
1433 FSCK_PROG='' FSCK_MAN=''
1434 echo "Not building fsck wrapper"
1435else
1436 FSCK_PROG=fsck FSCK_MAN=fsck.8
1437 echo "Building fsck wrapper"
1438fi
1439
1440else
1441 case "$host_os" in
1442 gnu*)
1443 FSCK_PROG='' FSCK_MAN=''
1444 echo "Not building fsck wrapper by default"
1445 ;;
1446 *)
1447 FSCK_PROG=fsck FSCK_MAN=fsck.8
1448 echo "Building fsck wrapper by default"
1449esac
1450
1451fi
1452
1453
1454
1455MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
1456
1457# Check whether --enable-old-bitops or --disable-old-bitops was given.
1458if test "${enable_old_bitops+set}" = set; then
1459 enableval="$enable_old_bitops"
1460 if test "$enableval" = "no"
1461then
1462 echo "Using new (standard) bitmask operations"
1463else
1464 cat >> confdefs.h <<\EOF
1465#define EXT2_OLD_BITOPS 1
1466EOF
1467
1468 echo "Using old (native) bitmask operations"
1469
1470fi
1471
1472else
1473 echo "Using standard bitmask operations by default"
1474
1475fi
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001476
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001477PACKAGE=e2fsprogs
1478VERSION="$E2FSPROGS_VERSION"
1479cat >> confdefs.h <<EOF
1480#define PACKAGE "$PACKAGE"
1481EOF
1482
1483cat >> confdefs.h <<EOF
1484#define VERSION "$VERSION"
1485EOF
1486
1487
1488
1489
Theodore Ts'o0c897a92002-11-09 12:01:18 -05001490ALL_LINGUAS="it nyc tr de de-utf"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001491echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
Theodore Ts'obff0cc92003-03-23 01:37:53 -05001492echo "configure:1493: checking whether ${MAKE-make} sets \${MAKE}" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001493set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1494if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1495 echo $ac_n "(cached) $ac_c" 1>&6
1496else
1497 cat > conftestmake <<\EOF
1498all:
1499 @echo 'ac_maketemp="${MAKE}"'
1500EOF
1501# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1502eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1503if test -n "$ac_maketemp"; then
1504 eval ac_cv_prog_make_${ac_make}_set=yes
1505else
1506 eval ac_cv_prog_make_${ac_make}_set=no
1507fi
1508rm -f conftestmake
1509fi
1510if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1511 echo "$ac_t""yes" 1>&6
1512 SET_MAKE=
1513else
1514 echo "$ac_t""no" 1>&6
1515 SET_MAKE="MAKE=${MAKE-make}"
1516fi
1517
1518# Extract the first word of "ranlib", so it can be a program name with args.
1519set dummy ranlib; ac_word=$2
1520echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'obff0cc92003-03-23 01:37:53 -05001521echo "configure:1522: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001522if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1523 echo $ac_n "(cached) $ac_c" 1>&6
1524else
1525 if test -n "$RANLIB"; then
1526 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1527else
1528 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1529 ac_dummy="$PATH"
1530 for ac_dir in $ac_dummy; do
1531 test -z "$ac_dir" && ac_dir=.
1532 if test -f $ac_dir/$ac_word; then
1533 ac_cv_prog_RANLIB="ranlib"
1534 break
1535 fi
1536 done
1537 IFS="$ac_save_ifs"
1538 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1539fi
1540fi
1541RANLIB="$ac_cv_prog_RANLIB"
1542if test -n "$RANLIB"; then
1543 echo "$ac_t""$RANLIB" 1>&6
1544else
1545 echo "$ac_t""no" 1>&6
1546fi
1547
1548echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
Theodore Ts'obff0cc92003-03-23 01:37:53 -05001549echo "configure:1550: checking for POSIXized ISC" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001550if test -d /etc/conf/kconfig.d &&
1551 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1552then
1553 echo "$ac_t""yes" 1>&6
1554 ISC=yes # If later tests want to check for ISC.
1555 cat >> confdefs.h <<\EOF
1556#define _POSIX_SOURCE 1
1557EOF
1558
1559 if test "$GCC" = yes; then
1560 CC="$CC -posix"
1561 else
1562 CC="$CC -Xp"
1563 fi
1564else
1565 echo "$ac_t""no" 1>&6
1566 ISC=
1567fi
1568
1569echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
Theodore Ts'obff0cc92003-03-23 01:37:53 -05001570echo "configure:1571: checking for ANSI C header files" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001571if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1572 echo $ac_n "(cached) $ac_c" 1>&6
1573else
1574 cat > conftest.$ac_ext <<EOF
Theodore Ts'obff0cc92003-03-23 01:37:53 -05001575#line 1576 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001576#include "confdefs.h"
1577#include <stdlib.h>
1578#include <stdarg.h>
1579#include <string.h>
1580#include <float.h>
1581EOF
1582ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'obff0cc92003-03-23 01:37:53 -05001583{ (eval echo configure:1584: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001584ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1585if test -z "$ac_err"; then
1586 rm -rf conftest*
1587 ac_cv_header_stdc=yes
1588else
1589 echo "$ac_err" >&5
1590 echo "configure: failed program was:" >&5
1591 cat conftest.$ac_ext >&5
1592 rm -rf conftest*
1593 ac_cv_header_stdc=no
1594fi
1595rm -f conftest*
1596
1597if test $ac_cv_header_stdc = yes; then
1598 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1599cat > conftest.$ac_ext <<EOF
Theodore Ts'obff0cc92003-03-23 01:37:53 -05001600#line 1601 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001601#include "confdefs.h"
1602#include <string.h>
1603EOF
1604if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1605 egrep "memchr" >/dev/null 2>&1; then
1606 :
1607else
1608 rm -rf conftest*
1609 ac_cv_header_stdc=no
1610fi
1611rm -f conftest*
1612
1613fi
1614
1615if test $ac_cv_header_stdc = yes; then
1616 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1617cat > conftest.$ac_ext <<EOF
Theodore Ts'obff0cc92003-03-23 01:37:53 -05001618#line 1619 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001619#include "confdefs.h"
1620#include <stdlib.h>
1621EOF
1622if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1623 egrep "free" >/dev/null 2>&1; then
1624 :
1625else
1626 rm -rf conftest*
1627 ac_cv_header_stdc=no
1628fi
1629rm -f conftest*
1630
1631fi
1632
1633if test $ac_cv_header_stdc = yes; then
1634 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1635if test "$cross_compiling" = yes; then
1636 :
1637else
1638 cat > conftest.$ac_ext <<EOF
Theodore Ts'obff0cc92003-03-23 01:37:53 -05001639#line 1640 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001640#include "confdefs.h"
1641#include <ctype.h>
1642#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1643#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1644#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1645int main () { int i; for (i = 0; i < 256; i++)
1646if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1647exit (0); }
1648
1649EOF
Theodore Ts'obff0cc92003-03-23 01:37:53 -05001650if { (eval echo configure:1651: \"$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 +00001651then
1652 :
1653else
1654 echo "configure: failed program was:" >&5
1655 cat conftest.$ac_ext >&5
1656 rm -fr conftest*
1657 ac_cv_header_stdc=no
1658fi
1659rm -fr conftest*
1660fi
1661
1662fi
1663fi
1664
1665echo "$ac_t""$ac_cv_header_stdc" 1>&6
1666if test $ac_cv_header_stdc = yes; then
1667 cat >> confdefs.h <<\EOF
1668#define STDC_HEADERS 1
1669EOF
1670
1671fi
1672
1673echo $ac_n "checking for working const""... $ac_c" 1>&6
Theodore Ts'obff0cc92003-03-23 01:37:53 -05001674echo "configure:1675: checking for working const" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001675if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1676 echo $ac_n "(cached) $ac_c" 1>&6
1677else
1678 cat > conftest.$ac_ext <<EOF
Theodore Ts'obff0cc92003-03-23 01:37:53 -05001679#line 1680 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001680#include "confdefs.h"
1681
1682int main() {
1683
1684/* Ultrix mips cc rejects this. */
Theodore Ts'o250f79f2001-05-19 22:02:22 +00001685typedef int charset[2]; const charset x;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001686/* SunOS 4.1.1 cc rejects this. */
1687char const *const *ccp;
1688char **p;
1689/* NEC SVR4.0.2 mips cc rejects this. */
1690struct point {int x, y;};
1691static struct point const zero = {0,0};
1692/* AIX XL C 1.02.0.0 rejects this.
1693 It does not let you subtract one const X* pointer from another in an arm
1694 of an if-expression whose if-part is not a constant expression */
1695const char *g = "string";
1696ccp = &g + (g ? g-g : 0);
1697/* HPUX 7.0 cc rejects these. */
1698++ccp;
1699p = (char**) ccp;
1700ccp = (char const *const *) p;
1701{ /* SCO 3.2v4 cc rejects this. */
1702 char *t;
1703 char const *s = 0 ? (char *) 0 : (char const *) 0;
1704
1705 *t++ = 0;
1706}
1707{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1708 int x[] = {25, 17};
1709 const int *foo = &x[0];
1710 ++foo;
1711}
1712{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1713 typedef const int *iptr;
1714 iptr p = 0;
1715 ++p;
1716}
1717{ /* AIX XL C 1.02.0.0 rejects this saying
1718 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1719 struct s { int j; const int *ap[3]; };
1720 struct s *b; b->j = 5;
1721}
1722{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1723 const int foo = 10;
1724}
1725
1726; return 0; }
1727EOF
Theodore Ts'obff0cc92003-03-23 01:37:53 -05001728if { (eval echo configure:1729: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001729 rm -rf conftest*
1730 ac_cv_c_const=yes
1731else
1732 echo "configure: failed program was:" >&5
1733 cat conftest.$ac_ext >&5
1734 rm -rf conftest*
1735 ac_cv_c_const=no
1736fi
1737rm -f conftest*
1738fi
1739
1740echo "$ac_t""$ac_cv_c_const" 1>&6
1741if test $ac_cv_c_const = no; then
1742 cat >> confdefs.h <<\EOF
1743#define const
1744EOF
1745
1746fi
1747
1748echo $ac_n "checking for inline""... $ac_c" 1>&6
Theodore Ts'obff0cc92003-03-23 01:37:53 -05001749echo "configure:1750: checking for inline" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001750if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1751 echo $ac_n "(cached) $ac_c" 1>&6
1752else
1753 ac_cv_c_inline=no
1754for ac_kw in inline __inline__ __inline; do
1755 cat > conftest.$ac_ext <<EOF
Theodore Ts'obff0cc92003-03-23 01:37:53 -05001756#line 1757 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001757#include "confdefs.h"
1758
1759int main() {
Theodore Ts'o250f79f2001-05-19 22:02:22 +00001760} $ac_kw foo() {
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001761; return 0; }
1762EOF
Theodore Ts'obff0cc92003-03-23 01:37:53 -05001763if { (eval echo configure:1764: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001764 rm -rf conftest*
1765 ac_cv_c_inline=$ac_kw; break
1766else
1767 echo "configure: failed program was:" >&5
1768 cat conftest.$ac_ext >&5
1769fi
1770rm -f conftest*
1771done
1772
1773fi
1774
1775echo "$ac_t""$ac_cv_c_inline" 1>&6
1776case "$ac_cv_c_inline" in
1777 inline | yes) ;;
1778 no) cat >> confdefs.h <<\EOF
1779#define inline
1780EOF
1781 ;;
1782 *) cat >> confdefs.h <<EOF
1783#define inline $ac_cv_c_inline
1784EOF
1785 ;;
1786esac
1787
1788echo $ac_n "checking for off_t""... $ac_c" 1>&6
Theodore Ts'obff0cc92003-03-23 01:37:53 -05001789echo "configure:1790: checking for off_t" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001790if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1791 echo $ac_n "(cached) $ac_c" 1>&6
1792else
1793 cat > conftest.$ac_ext <<EOF
Theodore Ts'obff0cc92003-03-23 01:37:53 -05001794#line 1795 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001795#include "confdefs.h"
1796#include <sys/types.h>
1797#if STDC_HEADERS
1798#include <stdlib.h>
1799#include <stddef.h>
1800#endif
1801EOF
1802if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1803 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1804 rm -rf conftest*
1805 ac_cv_type_off_t=yes
1806else
1807 rm -rf conftest*
1808 ac_cv_type_off_t=no
1809fi
1810rm -f conftest*
1811
1812fi
1813echo "$ac_t""$ac_cv_type_off_t" 1>&6
1814if test $ac_cv_type_off_t = no; then
1815 cat >> confdefs.h <<\EOF
1816#define off_t long
1817EOF
1818
1819fi
1820
1821echo $ac_n "checking for size_t""... $ac_c" 1>&6
Theodore Ts'obff0cc92003-03-23 01:37:53 -05001822echo "configure:1823: checking for size_t" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001823if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1824 echo $ac_n "(cached) $ac_c" 1>&6
1825else
1826 cat > conftest.$ac_ext <<EOF
Theodore Ts'obff0cc92003-03-23 01:37:53 -05001827#line 1828 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001828#include "confdefs.h"
1829#include <sys/types.h>
1830#if STDC_HEADERS
1831#include <stdlib.h>
1832#include <stddef.h>
1833#endif
1834EOF
1835if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1836 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1837 rm -rf conftest*
1838 ac_cv_type_size_t=yes
1839else
1840 rm -rf conftest*
1841 ac_cv_type_size_t=no
1842fi
1843rm -f conftest*
1844
1845fi
1846echo "$ac_t""$ac_cv_type_size_t" 1>&6
1847if test $ac_cv_type_size_t = no; then
1848 cat >> confdefs.h <<\EOF
1849#define size_t unsigned
1850EOF
1851
1852fi
1853
1854# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1855# for constant arguments. Useless!
1856echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
Theodore Ts'obff0cc92003-03-23 01:37:53 -05001857echo "configure:1858: checking for working alloca.h" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001858if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1859 echo $ac_n "(cached) $ac_c" 1>&6
1860else
1861 cat > conftest.$ac_ext <<EOF
Theodore Ts'obff0cc92003-03-23 01:37:53 -05001862#line 1863 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001863#include "confdefs.h"
1864#include <alloca.h>
1865int main() {
Theodore Ts'o250f79f2001-05-19 22:02:22 +00001866char *p = alloca(2 * sizeof(int));
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001867; return 0; }
1868EOF
Theodore Ts'obff0cc92003-03-23 01:37:53 -05001869if { (eval echo configure:1870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001870 rm -rf conftest*
1871 ac_cv_header_alloca_h=yes
1872else
1873 echo "configure: failed program was:" >&5
1874 cat conftest.$ac_ext >&5
1875 rm -rf conftest*
1876 ac_cv_header_alloca_h=no
1877fi
1878rm -f conftest*
1879fi
1880
1881echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1882if test $ac_cv_header_alloca_h = yes; then
1883 cat >> confdefs.h <<\EOF
1884#define HAVE_ALLOCA_H 1
1885EOF
1886
1887fi
1888
1889echo $ac_n "checking for alloca""... $ac_c" 1>&6
Theodore Ts'obff0cc92003-03-23 01:37:53 -05001890echo "configure:1891: checking for alloca" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001891if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1892 echo $ac_n "(cached) $ac_c" 1>&6
1893else
1894 cat > conftest.$ac_ext <<EOF
Theodore Ts'obff0cc92003-03-23 01:37:53 -05001895#line 1896 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001896#include "confdefs.h"
1897
1898#ifdef __GNUC__
1899# define alloca __builtin_alloca
1900#else
1901# ifdef _MSC_VER
1902# include <malloc.h>
1903# define alloca _alloca
1904# else
1905# if HAVE_ALLOCA_H
1906# include <alloca.h>
1907# else
1908# ifdef _AIX
1909 #pragma alloca
1910# else
1911# ifndef alloca /* predefined by HP cc +Olibcalls */
1912char *alloca ();
1913# endif
1914# endif
1915# endif
1916# endif
1917#endif
1918
1919int main() {
1920char *p = (char *) alloca(1);
1921; return 0; }
1922EOF
Theodore Ts'obff0cc92003-03-23 01:37:53 -05001923if { (eval echo configure:1924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001924 rm -rf conftest*
1925 ac_cv_func_alloca_works=yes
1926else
1927 echo "configure: failed program was:" >&5
1928 cat conftest.$ac_ext >&5
1929 rm -rf conftest*
1930 ac_cv_func_alloca_works=no
1931fi
1932rm -f conftest*
1933fi
1934
1935echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1936if test $ac_cv_func_alloca_works = yes; then
1937 cat >> confdefs.h <<\EOF
1938#define HAVE_ALLOCA 1
1939EOF
1940
1941fi
1942
1943if test $ac_cv_func_alloca_works = no; then
1944 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1945 # that cause trouble. Some versions do not even contain alloca or
1946 # contain a buggy version. If you still want to use their alloca,
1947 # use ar to extract alloca.o from them instead of compiling alloca.c.
1948 ALLOCA=alloca.${ac_objext}
1949 cat >> confdefs.h <<\EOF
1950#define C_ALLOCA 1
1951EOF
1952
1953
1954echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
Theodore Ts'obff0cc92003-03-23 01:37:53 -05001955echo "configure:1956: checking whether alloca needs Cray hooks" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001956if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1957 echo $ac_n "(cached) $ac_c" 1>&6
1958else
1959 cat > conftest.$ac_ext <<EOF
Theodore Ts'obff0cc92003-03-23 01:37:53 -05001960#line 1961 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001961#include "confdefs.h"
1962#if defined(CRAY) && ! defined(CRAY2)
1963webecray
1964#else
1965wenotbecray
1966#endif
1967
1968EOF
1969if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1970 egrep "webecray" >/dev/null 2>&1; then
1971 rm -rf conftest*
1972 ac_cv_os_cray=yes
1973else
1974 rm -rf conftest*
1975 ac_cv_os_cray=no
1976fi
1977rm -f conftest*
1978
1979fi
1980
1981echo "$ac_t""$ac_cv_os_cray" 1>&6
1982if test $ac_cv_os_cray = yes; then
1983for ac_func in _getb67 GETB67 getb67; do
1984 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'obff0cc92003-03-23 01:37:53 -05001985echo "configure:1986: checking for $ac_func" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001986if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1987 echo $ac_n "(cached) $ac_c" 1>&6
1988else
1989 cat > conftest.$ac_ext <<EOF
Theodore Ts'obff0cc92003-03-23 01:37:53 -05001990#line 1991 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001991#include "confdefs.h"
1992/* System header to define __stub macros and hopefully few prototypes,
1993 which can conflict with char $ac_func(); below. */
1994#include <assert.h>
1995/* Override any gcc2 internal prototype to avoid an error. */
1996/* We use char because int might match the return type of a gcc2
1997 builtin and then its argument prototype would still apply. */
1998char $ac_func();
1999
2000int main() {
2001
2002/* The GNU C library defines this for functions which it implements
2003 to always fail with ENOSYS. Some functions are actually named
2004 something starting with __ and the normal name is an alias. */
2005#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2006choke me
2007#else
2008$ac_func();
2009#endif
2010
2011; return 0; }
2012EOF
Theodore Ts'obff0cc92003-03-23 01:37:53 -05002013if { (eval echo configure:2014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002014 rm -rf conftest*
2015 eval "ac_cv_func_$ac_func=yes"
2016else
2017 echo "configure: failed program was:" >&5
2018 cat conftest.$ac_ext >&5
2019 rm -rf conftest*
2020 eval "ac_cv_func_$ac_func=no"
2021fi
2022rm -f conftest*
2023fi
2024
2025if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2026 echo "$ac_t""yes" 1>&6
2027 cat >> confdefs.h <<EOF
2028#define CRAY_STACKSEG_END $ac_func
2029EOF
2030
2031 break
2032else
2033 echo "$ac_t""no" 1>&6
2034fi
2035
2036done
2037fi
2038
2039echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
Theodore Ts'obff0cc92003-03-23 01:37:53 -05002040echo "configure:2041: checking stack direction for C alloca" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002041if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2042 echo $ac_n "(cached) $ac_c" 1>&6
2043else
2044 if test "$cross_compiling" = yes; then
2045 ac_cv_c_stack_direction=0
2046else
2047 cat > conftest.$ac_ext <<EOF
Theodore Ts'obff0cc92003-03-23 01:37:53 -05002048#line 2049 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002049#include "confdefs.h"
2050find_stack_direction ()
2051{
2052 static char *addr = 0;
2053 auto char dummy;
2054 if (addr == 0)
2055 {
2056 addr = &dummy;
2057 return find_stack_direction ();
2058 }
2059 else
2060 return (&dummy > addr) ? 1 : -1;
2061}
2062main ()
2063{
2064 exit (find_stack_direction() < 0);
2065}
2066EOF
Theodore Ts'obff0cc92003-03-23 01:37:53 -05002067if { (eval echo configure:2068: \"$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 +00002068then
2069 ac_cv_c_stack_direction=1
2070else
2071 echo "configure: failed program was:" >&5
2072 cat conftest.$ac_ext >&5
2073 rm -fr conftest*
2074 ac_cv_c_stack_direction=-1
2075fi
2076rm -fr conftest*
2077fi
2078
2079fi
2080
2081echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2082cat >> confdefs.h <<EOF
2083#define STACK_DIRECTION $ac_cv_c_stack_direction
2084EOF
2085
2086fi
2087
2088for ac_hdr in unistd.h
2089do
2090ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2091echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Theodore Ts'obff0cc92003-03-23 01:37:53 -05002092echo "configure:2093: checking for $ac_hdr" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002093if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2094 echo $ac_n "(cached) $ac_c" 1>&6
2095else
2096 cat > conftest.$ac_ext <<EOF
Theodore Ts'obff0cc92003-03-23 01:37:53 -05002097#line 2098 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002098#include "confdefs.h"
2099#include <$ac_hdr>
2100EOF
2101ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'obff0cc92003-03-23 01:37:53 -05002102{ (eval echo configure:2103: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002103ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2104if test -z "$ac_err"; then
2105 rm -rf conftest*
2106 eval "ac_cv_header_$ac_safe=yes"
2107else
2108 echo "$ac_err" >&5
2109 echo "configure: failed program was:" >&5
2110 cat conftest.$ac_ext >&5
2111 rm -rf conftest*
2112 eval "ac_cv_header_$ac_safe=no"
2113fi
2114rm -f conftest*
2115fi
2116if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2117 echo "$ac_t""yes" 1>&6
2118 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2119 cat >> confdefs.h <<EOF
2120#define $ac_tr_hdr 1
2121EOF
2122
2123else
2124 echo "$ac_t""no" 1>&6
2125fi
2126done
2127
2128for ac_func in getpagesize
2129do
2130echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'obff0cc92003-03-23 01:37:53 -05002131echo "configure:2132: checking for $ac_func" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002132if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2133 echo $ac_n "(cached) $ac_c" 1>&6
2134else
2135 cat > conftest.$ac_ext <<EOF
Theodore Ts'obff0cc92003-03-23 01:37:53 -05002136#line 2137 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002137#include "confdefs.h"
2138/* System header to define __stub macros and hopefully few prototypes,
2139 which can conflict with char $ac_func(); below. */
2140#include <assert.h>
2141/* Override any gcc2 internal prototype to avoid an error. */
2142/* We use char because int might match the return type of a gcc2
2143 builtin and then its argument prototype would still apply. */
2144char $ac_func();
2145
2146int main() {
2147
2148/* The GNU C library defines this for functions which it implements
2149 to always fail with ENOSYS. Some functions are actually named
2150 something starting with __ and the normal name is an alias. */
2151#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2152choke me
2153#else
2154$ac_func();
2155#endif
2156
2157; return 0; }
2158EOF
Theodore Ts'obff0cc92003-03-23 01:37:53 -05002159if { (eval echo configure:2160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002160 rm -rf conftest*
2161 eval "ac_cv_func_$ac_func=yes"
2162else
2163 echo "configure: failed program was:" >&5
2164 cat conftest.$ac_ext >&5
2165 rm -rf conftest*
2166 eval "ac_cv_func_$ac_func=no"
2167fi
2168rm -f conftest*
2169fi
2170
2171if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2172 echo "$ac_t""yes" 1>&6
2173 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2174 cat >> confdefs.h <<EOF
2175#define $ac_tr_func 1
2176EOF
2177
2178else
2179 echo "$ac_t""no" 1>&6
2180fi
2181done
2182
2183echo $ac_n "checking for working mmap""... $ac_c" 1>&6
Theodore Ts'obff0cc92003-03-23 01:37:53 -05002184echo "configure:2185: checking for working mmap" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002185if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2186 echo $ac_n "(cached) $ac_c" 1>&6
2187else
2188 if test "$cross_compiling" = yes; then
2189 ac_cv_func_mmap_fixed_mapped=no
2190else
2191 cat > conftest.$ac_ext <<EOF
Theodore Ts'obff0cc92003-03-23 01:37:53 -05002192#line 2193 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002193#include "confdefs.h"
2194
2195/* Thanks to Mike Haertel and Jim Avera for this test.
2196 Here is a matrix of mmap possibilities:
2197 mmap private not fixed
2198 mmap private fixed at somewhere currently unmapped
2199 mmap private fixed at somewhere already mapped
2200 mmap shared not fixed
2201 mmap shared fixed at somewhere currently unmapped
2202 mmap shared fixed at somewhere already mapped
2203 For private mappings, we should verify that changes cannot be read()
2204 back from the file, nor mmap's back from the file at a different
2205 address. (There have been systems where private was not correctly
2206 implemented like the infamous i386 svr4.0, and systems where the
2207 VM page cache was not coherent with the filesystem buffer cache
2208 like early versions of FreeBSD and possibly contemporary NetBSD.)
2209 For shared mappings, we should conversely verify that changes get
2210 propogated back to all the places they're supposed to be.
2211
2212 Grep wants private fixed already mapped.
2213 The main things grep needs to know about mmap are:
2214 * does it exist and is it safe to write into the mmap'd area
2215 * how to use it (BSD variants) */
2216#include <sys/types.h>
2217#include <fcntl.h>
2218#include <sys/mman.h>
2219
2220/* This mess was copied from the GNU getpagesize.h. */
2221#ifndef HAVE_GETPAGESIZE
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002222# ifdef HAVE_UNISTD_H
2223# include <unistd.h>
2224# endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002225
2226/* Assume that all systems that can run configure have sys/param.h. */
2227# ifndef HAVE_SYS_PARAM_H
2228# define HAVE_SYS_PARAM_H 1
2229# endif
2230
2231# ifdef _SC_PAGESIZE
2232# define getpagesize() sysconf(_SC_PAGESIZE)
2233# else /* no _SC_PAGESIZE */
2234# ifdef HAVE_SYS_PARAM_H
2235# include <sys/param.h>
2236# ifdef EXEC_PAGESIZE
2237# define getpagesize() EXEC_PAGESIZE
2238# else /* no EXEC_PAGESIZE */
2239# ifdef NBPG
2240# define getpagesize() NBPG * CLSIZE
2241# ifndef CLSIZE
2242# define CLSIZE 1
2243# endif /* no CLSIZE */
2244# else /* no NBPG */
2245# ifdef NBPC
2246# define getpagesize() NBPC
2247# else /* no NBPC */
2248# ifdef PAGESIZE
2249# define getpagesize() PAGESIZE
2250# endif /* PAGESIZE */
2251# endif /* no NBPC */
2252# endif /* no NBPG */
2253# endif /* no EXEC_PAGESIZE */
2254# else /* no HAVE_SYS_PARAM_H */
2255# define getpagesize() 8192 /* punt totally */
2256# endif /* no HAVE_SYS_PARAM_H */
2257# endif /* no _SC_PAGESIZE */
2258
2259#endif /* no HAVE_GETPAGESIZE */
2260
2261#ifdef __cplusplus
2262extern "C" { void *malloc(unsigned); }
2263#else
2264char *malloc();
2265#endif
2266
2267int
2268main()
2269{
2270 char *data, *data2, *data3;
2271 int i, pagesize;
2272 int fd;
2273
2274 pagesize = getpagesize();
2275
2276 /*
2277 * First, make a file with some known garbage in it.
2278 */
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002279 data = malloc(pagesize);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002280 if (!data)
2281 exit(1);
2282 for (i = 0; i < pagesize; ++i)
2283 *(data + i) = rand();
2284 umask(0);
2285 fd = creat("conftestmmap", 0600);
2286 if (fd < 0)
2287 exit(1);
2288 if (write(fd, data, pagesize) != pagesize)
2289 exit(1);
2290 close(fd);
2291
2292 /*
2293 * Next, try to mmap the file at a fixed address which
2294 * already has something else allocated at it. If we can,
2295 * also make sure that we see the same garbage.
2296 */
2297 fd = open("conftestmmap", O_RDWR);
2298 if (fd < 0)
2299 exit(1);
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002300 data2 = malloc(2 * pagesize);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002301 if (!data2)
2302 exit(1);
2303 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2304 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2305 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2306 exit(1);
2307 for (i = 0; i < pagesize; ++i)
2308 if (*(data + i) != *(data2 + i))
2309 exit(1);
2310
2311 /*
2312 * Finally, make sure that changes to the mapped area
2313 * do not percolate back to the file as seen by read().
2314 * (This is a bug on some variants of i386 svr4.0.)
2315 */
2316 for (i = 0; i < pagesize; ++i)
2317 *(data2 + i) = *(data2 + i) + 1;
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002318 data3 = malloc(pagesize);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002319 if (!data3)
2320 exit(1);
2321 if (read(fd, data3, pagesize) != pagesize)
2322 exit(1);
2323 for (i = 0; i < pagesize; ++i)
2324 if (*(data + i) != *(data3 + i))
2325 exit(1);
2326 close(fd);
2327 unlink("conftestmmap");
2328 exit(0);
2329}
2330
2331EOF
Theodore Ts'obff0cc92003-03-23 01:37:53 -05002332if { (eval echo configure:2333: \"$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 +00002333then
2334 ac_cv_func_mmap_fixed_mapped=yes
2335else
2336 echo "configure: failed program was:" >&5
2337 cat conftest.$ac_ext >&5
2338 rm -fr conftest*
2339 ac_cv_func_mmap_fixed_mapped=no
2340fi
2341rm -fr conftest*
2342fi
2343
2344fi
2345
2346echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2347if test $ac_cv_func_mmap_fixed_mapped = yes; then
2348 cat >> confdefs.h <<\EOF
2349#define HAVE_MMAP 1
2350EOF
2351
2352fi
2353
2354
2355 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2356unistd.h sys/param.h
2357do
2358ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2359echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Theodore Ts'obff0cc92003-03-23 01:37:53 -05002360echo "configure:2361: checking for $ac_hdr" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002361if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2362 echo $ac_n "(cached) $ac_c" 1>&6
2363else
2364 cat > conftest.$ac_ext <<EOF
Theodore Ts'obff0cc92003-03-23 01:37:53 -05002365#line 2366 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002366#include "confdefs.h"
2367#include <$ac_hdr>
2368EOF
2369ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'obff0cc92003-03-23 01:37:53 -05002370{ (eval echo configure:2371: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002371ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2372if test -z "$ac_err"; then
2373 rm -rf conftest*
2374 eval "ac_cv_header_$ac_safe=yes"
2375else
2376 echo "$ac_err" >&5
2377 echo "configure: failed program was:" >&5
2378 cat conftest.$ac_ext >&5
2379 rm -rf conftest*
2380 eval "ac_cv_header_$ac_safe=no"
2381fi
2382rm -f conftest*
2383fi
2384if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2385 echo "$ac_t""yes" 1>&6
2386 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2387 cat >> confdefs.h <<EOF
2388#define $ac_tr_hdr 1
2389EOF
2390
2391else
2392 echo "$ac_t""no" 1>&6
2393fi
2394done
2395
2396 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2397strdup __argz_count __argz_stringify __argz_next
2398do
2399echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'obff0cc92003-03-23 01:37:53 -05002400echo "configure:2401: checking for $ac_func" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002401if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2402 echo $ac_n "(cached) $ac_c" 1>&6
2403else
2404 cat > conftest.$ac_ext <<EOF
Theodore Ts'obff0cc92003-03-23 01:37:53 -05002405#line 2406 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002406#include "confdefs.h"
2407/* System header to define __stub macros and hopefully few prototypes,
2408 which can conflict with char $ac_func(); below. */
2409#include <assert.h>
2410/* Override any gcc2 internal prototype to avoid an error. */
2411/* We use char because int might match the return type of a gcc2
2412 builtin and then its argument prototype would still apply. */
2413char $ac_func();
2414
2415int main() {
2416
2417/* The GNU C library defines this for functions which it implements
2418 to always fail with ENOSYS. Some functions are actually named
2419 something starting with __ and the normal name is an alias. */
2420#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2421choke me
2422#else
2423$ac_func();
2424#endif
2425
2426; return 0; }
2427EOF
Theodore Ts'obff0cc92003-03-23 01:37:53 -05002428if { (eval echo configure:2429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002429 rm -rf conftest*
2430 eval "ac_cv_func_$ac_func=yes"
2431else
2432 echo "configure: failed program was:" >&5
2433 cat conftest.$ac_ext >&5
2434 rm -rf conftest*
2435 eval "ac_cv_func_$ac_func=no"
2436fi
2437rm -f conftest*
2438fi
2439
2440if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2441 echo "$ac_t""yes" 1>&6
2442 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2443 cat >> confdefs.h <<EOF
2444#define $ac_tr_func 1
2445EOF
2446
2447else
2448 echo "$ac_t""no" 1>&6
2449fi
2450done
2451
2452
2453 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2454 for ac_func in stpcpy
2455do
2456echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'obff0cc92003-03-23 01:37:53 -05002457echo "configure:2458: checking for $ac_func" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002458if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2459 echo $ac_n "(cached) $ac_c" 1>&6
2460else
2461 cat > conftest.$ac_ext <<EOF
Theodore Ts'obff0cc92003-03-23 01:37:53 -05002462#line 2463 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002463#include "confdefs.h"
2464/* System header to define __stub macros and hopefully few prototypes,
2465 which can conflict with char $ac_func(); below. */
2466#include <assert.h>
2467/* Override any gcc2 internal prototype to avoid an error. */
2468/* We use char because int might match the return type of a gcc2
2469 builtin and then its argument prototype would still apply. */
2470char $ac_func();
2471
2472int main() {
2473
2474/* The GNU C library defines this for functions which it implements
2475 to always fail with ENOSYS. Some functions are actually named
2476 something starting with __ and the normal name is an alias. */
2477#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2478choke me
2479#else
2480$ac_func();
2481#endif
2482
2483; return 0; }
2484EOF
Theodore Ts'obff0cc92003-03-23 01:37:53 -05002485if { (eval echo configure:2486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002486 rm -rf conftest*
2487 eval "ac_cv_func_$ac_func=yes"
2488else
2489 echo "configure: failed program was:" >&5
2490 cat conftest.$ac_ext >&5
2491 rm -rf conftest*
2492 eval "ac_cv_func_$ac_func=no"
2493fi
2494rm -f conftest*
2495fi
2496
2497if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2498 echo "$ac_t""yes" 1>&6
2499 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2500 cat >> confdefs.h <<EOF
2501#define $ac_tr_func 1
2502EOF
2503
2504else
2505 echo "$ac_t""no" 1>&6
2506fi
2507done
2508
2509 fi
2510 if test "${ac_cv_func_stpcpy}" = "yes"; then
2511 cat >> confdefs.h <<\EOF
2512#define HAVE_STPCPY 1
2513EOF
2514
2515 fi
2516
2517 if test $ac_cv_header_locale_h = yes; then
2518 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
Theodore Ts'obff0cc92003-03-23 01:37:53 -05002519echo "configure:2520: checking for LC_MESSAGES" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002520if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2521 echo $ac_n "(cached) $ac_c" 1>&6
2522else
2523 cat > conftest.$ac_ext <<EOF
Theodore Ts'obff0cc92003-03-23 01:37:53 -05002524#line 2525 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002525#include "confdefs.h"
2526#include <locale.h>
2527int main() {
2528return LC_MESSAGES
2529; return 0; }
2530EOF
Theodore Ts'obff0cc92003-03-23 01:37:53 -05002531if { (eval echo configure:2532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002532 rm -rf conftest*
2533 am_cv_val_LC_MESSAGES=yes
2534else
2535 echo "configure: failed program was:" >&5
2536 cat conftest.$ac_ext >&5
2537 rm -rf conftest*
2538 am_cv_val_LC_MESSAGES=no
2539fi
2540rm -f conftest*
2541fi
2542
2543echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2544 if test $am_cv_val_LC_MESSAGES = yes; then
2545 cat >> confdefs.h <<\EOF
2546#define HAVE_LC_MESSAGES 1
2547EOF
2548
2549 fi
2550 fi
2551 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
Theodore Ts'obff0cc92003-03-23 01:37:53 -05002552echo "configure:2553: checking whether NLS is requested" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002553 # Check whether --enable-nls or --disable-nls was given.
2554if test "${enable_nls+set}" = set; then
2555 enableval="$enable_nls"
2556 USE_NLS=$enableval
2557else
2558 USE_NLS=no
2559fi
2560
2561 echo "$ac_t""$USE_NLS" 1>&6
2562
2563
2564 USE_INCLUDED_LIBINTL=no
2565
2566 if test "$USE_NLS" = "yes"; then
2567 cat >> confdefs.h <<\EOF
2568#define ENABLE_NLS 1
2569EOF
2570
2571 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
Theodore Ts'obff0cc92003-03-23 01:37:53 -05002572echo "configure:2573: checking whether included gettext is requested" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002573 # Check whether --with-included-gettext or --without-included-gettext was given.
2574if test "${with_included_gettext+set}" = set; then
2575 withval="$with_included_gettext"
2576 nls_cv_force_use_gnu_gettext=$withval
2577else
2578 nls_cv_force_use_gnu_gettext=no
2579fi
2580
2581 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2582
2583 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2584 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2585 nls_cv_header_intl=
2586 nls_cv_header_libgt=
2587 CATOBJEXT=NONE
2588
2589 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2590echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
Theodore Ts'obff0cc92003-03-23 01:37:53 -05002591echo "configure:2592: checking for libintl.h" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002592if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2593 echo $ac_n "(cached) $ac_c" 1>&6
2594else
2595 cat > conftest.$ac_ext <<EOF
Theodore Ts'obff0cc92003-03-23 01:37:53 -05002596#line 2597 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002597#include "confdefs.h"
2598#include <libintl.h>
2599EOF
2600ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'obff0cc92003-03-23 01:37:53 -05002601{ (eval echo configure:2602: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002602ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2603if test -z "$ac_err"; then
2604 rm -rf conftest*
2605 eval "ac_cv_header_$ac_safe=yes"
2606else
2607 echo "$ac_err" >&5
2608 echo "configure: failed program was:" >&5
2609 cat conftest.$ac_ext >&5
2610 rm -rf conftest*
2611 eval "ac_cv_header_$ac_safe=no"
2612fi
2613rm -f conftest*
2614fi
2615if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2616 echo "$ac_t""yes" 1>&6
2617 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
Theodore Ts'obff0cc92003-03-23 01:37:53 -05002618echo "configure:2619: checking for gettext in libc" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002619if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2620 echo $ac_n "(cached) $ac_c" 1>&6
2621else
2622 cat > conftest.$ac_ext <<EOF
Theodore Ts'obff0cc92003-03-23 01:37:53 -05002623#line 2624 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002624#include "confdefs.h"
2625#include <libintl.h>
2626int main() {
2627return (int) gettext ("")
2628; return 0; }
2629EOF
Theodore Ts'obff0cc92003-03-23 01:37:53 -05002630if { (eval echo configure:2631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002631 rm -rf conftest*
2632 gt_cv_func_gettext_libc=yes
2633else
2634 echo "configure: failed program was:" >&5
2635 cat conftest.$ac_ext >&5
2636 rm -rf conftest*
2637 gt_cv_func_gettext_libc=no
2638fi
2639rm -f conftest*
2640fi
2641
2642echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2643
2644 if test "$gt_cv_func_gettext_libc" != "yes"; then
2645 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
Theodore Ts'obff0cc92003-03-23 01:37:53 -05002646echo "configure:2647: checking for bindtextdomain in -lintl" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002647ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2648if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2649 echo $ac_n "(cached) $ac_c" 1>&6
2650else
2651 ac_save_LIBS="$LIBS"
2652LIBS="-lintl $LIBS"
2653cat > conftest.$ac_ext <<EOF
Theodore Ts'obff0cc92003-03-23 01:37:53 -05002654#line 2655 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002655#include "confdefs.h"
2656/* Override any gcc2 internal prototype to avoid an error. */
2657/* We use char because int might match the return type of a gcc2
2658 builtin and then its argument prototype would still apply. */
2659char bindtextdomain();
2660
2661int main() {
2662bindtextdomain()
2663; return 0; }
2664EOF
Theodore Ts'obff0cc92003-03-23 01:37:53 -05002665if { (eval echo configure:2666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002666 rm -rf conftest*
2667 eval "ac_cv_lib_$ac_lib_var=yes"
2668else
2669 echo "configure: failed program was:" >&5
2670 cat conftest.$ac_ext >&5
2671 rm -rf conftest*
2672 eval "ac_cv_lib_$ac_lib_var=no"
2673fi
2674rm -f conftest*
2675LIBS="$ac_save_LIBS"
2676
2677fi
2678if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2679 echo "$ac_t""yes" 1>&6
2680 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
Theodore Ts'obff0cc92003-03-23 01:37:53 -05002681echo "configure:2682: checking for gettext in libintl" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002682if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2683 echo $ac_n "(cached) $ac_c" 1>&6
2684else
2685 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
Theodore Ts'obff0cc92003-03-23 01:37:53 -05002686echo "configure:2687: checking for gettext in -lintl" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002687ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
2688if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2689 echo $ac_n "(cached) $ac_c" 1>&6
2690else
2691 ac_save_LIBS="$LIBS"
2692LIBS="-lintl $LIBS"
2693cat > conftest.$ac_ext <<EOF
Theodore Ts'obff0cc92003-03-23 01:37:53 -05002694#line 2695 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002695#include "confdefs.h"
2696/* Override any gcc2 internal prototype to avoid an error. */
2697/* We use char because int might match the return type of a gcc2
2698 builtin and then its argument prototype would still apply. */
2699char gettext();
2700
2701int main() {
2702gettext()
2703; return 0; }
2704EOF
Theodore Ts'obff0cc92003-03-23 01:37:53 -05002705if { (eval echo configure:2706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002706 rm -rf conftest*
2707 eval "ac_cv_lib_$ac_lib_var=yes"
2708else
2709 echo "configure: failed program was:" >&5
2710 cat conftest.$ac_ext >&5
2711 rm -rf conftest*
2712 eval "ac_cv_lib_$ac_lib_var=no"
2713fi
2714rm -f conftest*
2715LIBS="$ac_save_LIBS"
2716
2717fi
2718if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2719 echo "$ac_t""yes" 1>&6
2720 gt_cv_func_gettext_libintl=yes
2721else
2722 echo "$ac_t""no" 1>&6
2723gt_cv_func_gettext_libintl=no
2724fi
2725
2726fi
2727
2728echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2729else
2730 echo "$ac_t""no" 1>&6
2731fi
2732
2733 fi
2734
2735 if test "$gt_cv_func_gettext_libc" = "yes" \
2736 || test "$gt_cv_func_gettext_libintl" = "yes"; then
2737 cat >> confdefs.h <<\EOF
2738#define HAVE_GETTEXT 1
2739EOF
2740
2741 # Extract the first word of "msgfmt", so it can be a program name with args.
2742set dummy msgfmt; ac_word=$2
2743echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'obff0cc92003-03-23 01:37:53 -05002744echo "configure:2745: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002745if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2746 echo $ac_n "(cached) $ac_c" 1>&6
2747else
2748 case "$MSGFMT" in
2749 /*)
2750 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2751 ;;
2752 *)
2753 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2754 for ac_dir in $PATH; do
2755 test -z "$ac_dir" && ac_dir=.
2756 if test -f $ac_dir/$ac_word; then
2757 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2758 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2759 break
2760 fi
2761 fi
2762 done
2763 IFS="$ac_save_ifs"
2764 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
2765 ;;
2766esac
2767fi
2768MSGFMT="$ac_cv_path_MSGFMT"
2769if test -n "$MSGFMT"; then
2770 echo "$ac_t""$MSGFMT" 1>&6
2771else
2772 echo "$ac_t""no" 1>&6
2773fi
2774 if test "$MSGFMT" != "no"; then
2775 for ac_func in dcgettext
2776do
2777echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'obff0cc92003-03-23 01:37:53 -05002778echo "configure:2779: checking for $ac_func" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002779if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2780 echo $ac_n "(cached) $ac_c" 1>&6
2781else
2782 cat > conftest.$ac_ext <<EOF
Theodore Ts'obff0cc92003-03-23 01:37:53 -05002783#line 2784 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002784#include "confdefs.h"
2785/* System header to define __stub macros and hopefully few prototypes,
2786 which can conflict with char $ac_func(); below. */
2787#include <assert.h>
2788/* Override any gcc2 internal prototype to avoid an error. */
2789/* We use char because int might match the return type of a gcc2
2790 builtin and then its argument prototype would still apply. */
2791char $ac_func();
2792
2793int main() {
2794
2795/* The GNU C library defines this for functions which it implements
2796 to always fail with ENOSYS. Some functions are actually named
2797 something starting with __ and the normal name is an alias. */
2798#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2799choke me
2800#else
2801$ac_func();
2802#endif
2803
2804; return 0; }
2805EOF
Theodore Ts'obff0cc92003-03-23 01:37:53 -05002806if { (eval echo configure:2807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002807 rm -rf conftest*
2808 eval "ac_cv_func_$ac_func=yes"
2809else
2810 echo "configure: failed program was:" >&5
2811 cat conftest.$ac_ext >&5
2812 rm -rf conftest*
2813 eval "ac_cv_func_$ac_func=no"
2814fi
2815rm -f conftest*
2816fi
2817
2818if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2819 echo "$ac_t""yes" 1>&6
2820 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2821 cat >> confdefs.h <<EOF
2822#define $ac_tr_func 1
2823EOF
2824
2825else
2826 echo "$ac_t""no" 1>&6
2827fi
2828done
2829
2830 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2831set dummy gmsgfmt; ac_word=$2
2832echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'obff0cc92003-03-23 01:37:53 -05002833echo "configure:2834: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002834if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2835 echo $ac_n "(cached) $ac_c" 1>&6
2836else
2837 case "$GMSGFMT" in
2838 /*)
2839 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2840 ;;
2841 ?:/*)
2842 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2843 ;;
2844 *)
2845 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2846 ac_dummy="$PATH"
2847 for ac_dir in $ac_dummy; do
2848 test -z "$ac_dir" && ac_dir=.
2849 if test -f $ac_dir/$ac_word; then
2850 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2851 break
2852 fi
2853 done
2854 IFS="$ac_save_ifs"
2855 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2856 ;;
2857esac
2858fi
2859GMSGFMT="$ac_cv_path_GMSGFMT"
2860if test -n "$GMSGFMT"; then
2861 echo "$ac_t""$GMSGFMT" 1>&6
2862else
2863 echo "$ac_t""no" 1>&6
2864fi
2865
2866 # Extract the first word of "xgettext", so it can be a program name with args.
2867set dummy xgettext; ac_word=$2
2868echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'obff0cc92003-03-23 01:37:53 -05002869echo "configure:2870: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002870if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2871 echo $ac_n "(cached) $ac_c" 1>&6
2872else
2873 case "$XGETTEXT" in
2874 /*)
2875 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2876 ;;
2877 *)
2878 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2879 for ac_dir in $PATH; do
2880 test -z "$ac_dir" && ac_dir=.
2881 if test -f $ac_dir/$ac_word; then
2882 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2883 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2884 break
2885 fi
2886 fi
2887 done
2888 IFS="$ac_save_ifs"
2889 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2890 ;;
2891esac
2892fi
2893XGETTEXT="$ac_cv_path_XGETTEXT"
2894if test -n "$XGETTEXT"; then
2895 echo "$ac_t""$XGETTEXT" 1>&6
2896else
2897 echo "$ac_t""no" 1>&6
2898fi
2899
2900 cat > conftest.$ac_ext <<EOF
Theodore Ts'obff0cc92003-03-23 01:37:53 -05002901#line 2902 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002902#include "confdefs.h"
2903
2904int main() {
2905extern int _nl_msg_cat_cntr;
2906 return _nl_msg_cat_cntr
2907; return 0; }
2908EOF
Theodore Ts'obff0cc92003-03-23 01:37:53 -05002909if { (eval echo configure:2910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002910 rm -rf conftest*
2911 CATOBJEXT=.gmo
2912 DATADIRNAME=share
2913else
2914 echo "configure: failed program was:" >&5
2915 cat conftest.$ac_ext >&5
2916 rm -rf conftest*
2917 CATOBJEXT=.mo
2918 DATADIRNAME=lib
2919fi
2920rm -f conftest*
2921 INSTOBJEXT=.mo
2922 fi
2923 fi
2924
2925else
2926 echo "$ac_t""no" 1>&6
2927fi
2928
2929
2930 if test "$CATOBJEXT" = "NONE"; then
2931 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
Theodore Ts'obff0cc92003-03-23 01:37:53 -05002932echo "configure:2933: checking whether catgets can be used" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002933 # Check whether --with-catgets or --without-catgets was given.
2934if test "${with_catgets+set}" = set; then
2935 withval="$with_catgets"
2936 nls_cv_use_catgets=$withval
2937else
2938 nls_cv_use_catgets=no
2939fi
2940
2941 echo "$ac_t""$nls_cv_use_catgets" 1>&6
2942
2943 if test "$nls_cv_use_catgets" = "yes"; then
2944 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
Theodore Ts'obff0cc92003-03-23 01:37:53 -05002945echo "configure:2946: checking for main in -li" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002946ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'`
2947if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2948 echo $ac_n "(cached) $ac_c" 1>&6
2949else
2950 ac_save_LIBS="$LIBS"
2951LIBS="-li $LIBS"
2952cat > conftest.$ac_ext <<EOF
Theodore Ts'obff0cc92003-03-23 01:37:53 -05002953#line 2954 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002954#include "confdefs.h"
2955
2956int main() {
2957main()
2958; return 0; }
2959EOF
Theodore Ts'obff0cc92003-03-23 01:37:53 -05002960if { (eval echo configure:2961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002961 rm -rf conftest*
2962 eval "ac_cv_lib_$ac_lib_var=yes"
2963else
2964 echo "configure: failed program was:" >&5
2965 cat conftest.$ac_ext >&5
2966 rm -rf conftest*
2967 eval "ac_cv_lib_$ac_lib_var=no"
2968fi
2969rm -f conftest*
2970LIBS="$ac_save_LIBS"
2971
2972fi
2973if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2974 echo "$ac_t""yes" 1>&6
2975 ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2976 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2977 cat >> confdefs.h <<EOF
2978#define $ac_tr_lib 1
2979EOF
2980
2981 LIBS="-li $LIBS"
2982
2983else
2984 echo "$ac_t""no" 1>&6
2985fi
2986
2987 echo $ac_n "checking for catgets""... $ac_c" 1>&6
Theodore Ts'obff0cc92003-03-23 01:37:53 -05002988echo "configure:2989: checking for catgets" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002989if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
2990 echo $ac_n "(cached) $ac_c" 1>&6
2991else
2992 cat > conftest.$ac_ext <<EOF
Theodore Ts'obff0cc92003-03-23 01:37:53 -05002993#line 2994 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002994#include "confdefs.h"
2995/* System header to define __stub macros and hopefully few prototypes,
2996 which can conflict with char catgets(); below. */
2997#include <assert.h>
2998/* Override any gcc2 internal prototype to avoid an error. */
2999/* We use char because int might match the return type of a gcc2
3000 builtin and then its argument prototype would still apply. */
3001char catgets();
3002
3003int main() {
3004
3005/* The GNU C library defines this for functions which it implements
3006 to always fail with ENOSYS. Some functions are actually named
3007 something starting with __ and the normal name is an alias. */
3008#if defined (__stub_catgets) || defined (__stub___catgets)
3009choke me
3010#else
3011catgets();
3012#endif
3013
3014; return 0; }
3015EOF
Theodore Ts'obff0cc92003-03-23 01:37:53 -05003016if { (eval echo configure:3017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003017 rm -rf conftest*
3018 eval "ac_cv_func_catgets=yes"
3019else
3020 echo "configure: failed program was:" >&5
3021 cat conftest.$ac_ext >&5
3022 rm -rf conftest*
3023 eval "ac_cv_func_catgets=no"
3024fi
3025rm -f conftest*
3026fi
3027
3028if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
3029 echo "$ac_t""yes" 1>&6
3030 cat >> confdefs.h <<\EOF
3031#define HAVE_CATGETS 1
3032EOF
3033
3034 INTLOBJS="\$(CATOBJS)"
3035 # Extract the first word of "gencat", so it can be a program name with args.
3036set dummy gencat; ac_word=$2
3037echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'obff0cc92003-03-23 01:37:53 -05003038echo "configure:3039: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003039if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
3040 echo $ac_n "(cached) $ac_c" 1>&6
3041else
3042 case "$GENCAT" in
3043 /*)
3044 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
3045 ;;
3046 ?:/*)
3047 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path.
3048 ;;
3049 *)
3050 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3051 ac_dummy="$PATH"
3052 for ac_dir in $ac_dummy; do
3053 test -z "$ac_dir" && ac_dir=.
3054 if test -f $ac_dir/$ac_word; then
3055 ac_cv_path_GENCAT="$ac_dir/$ac_word"
3056 break
3057 fi
3058 done
3059 IFS="$ac_save_ifs"
3060 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
3061 ;;
3062esac
3063fi
3064GENCAT="$ac_cv_path_GENCAT"
3065if test -n "$GENCAT"; then
3066 echo "$ac_t""$GENCAT" 1>&6
3067else
3068 echo "$ac_t""no" 1>&6
3069fi
3070 if test "$GENCAT" != "no"; then
3071 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3072set dummy gmsgfmt; ac_word=$2
3073echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'obff0cc92003-03-23 01:37:53 -05003074echo "configure:3075: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003075if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3076 echo $ac_n "(cached) $ac_c" 1>&6
3077else
3078 case "$GMSGFMT" in
3079 /*)
3080 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3081 ;;
3082 ?:/*)
3083 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3084 ;;
3085 *)
3086 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3087 ac_dummy="$PATH"
3088 for ac_dir in $ac_dummy; do
3089 test -z "$ac_dir" && ac_dir=.
3090 if test -f $ac_dir/$ac_word; then
3091 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3092 break
3093 fi
3094 done
3095 IFS="$ac_save_ifs"
3096 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
3097 ;;
3098esac
3099fi
3100GMSGFMT="$ac_cv_path_GMSGFMT"
3101if test -n "$GMSGFMT"; then
3102 echo "$ac_t""$GMSGFMT" 1>&6
3103else
3104 echo "$ac_t""no" 1>&6
3105fi
3106
3107 if test "$GMSGFMT" = "no"; then
3108 # Extract the first word of "msgfmt", so it can be a program name with args.
3109set dummy msgfmt; ac_word=$2
3110echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'obff0cc92003-03-23 01:37:53 -05003111echo "configure:3112: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003112if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3113 echo $ac_n "(cached) $ac_c" 1>&6
3114else
3115 case "$GMSGFMT" in
3116 /*)
3117 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3118 ;;
3119 *)
3120 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3121 for ac_dir in $PATH; do
3122 test -z "$ac_dir" && ac_dir=.
3123 if test -f $ac_dir/$ac_word; then
3124 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3125 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3126 break
3127 fi
3128 fi
3129 done
3130 IFS="$ac_save_ifs"
3131 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
3132 ;;
3133esac
3134fi
3135GMSGFMT="$ac_cv_path_GMSGFMT"
3136if test -n "$GMSGFMT"; then
3137 echo "$ac_t""$GMSGFMT" 1>&6
3138else
3139 echo "$ac_t""no" 1>&6
3140fi
3141
3142 fi
3143 # Extract the first word of "xgettext", so it can be a program name with args.
3144set dummy xgettext; ac_word=$2
3145echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'obff0cc92003-03-23 01:37:53 -05003146echo "configure:3147: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003147if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3148 echo $ac_n "(cached) $ac_c" 1>&6
3149else
3150 case "$XGETTEXT" in
3151 /*)
3152 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3153 ;;
3154 *)
3155 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3156 for ac_dir in $PATH; do
3157 test -z "$ac_dir" && ac_dir=.
3158 if test -f $ac_dir/$ac_word; then
3159 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3160 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3161 break
3162 fi
3163 fi
3164 done
3165 IFS="$ac_save_ifs"
3166 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3167 ;;
3168esac
3169fi
3170XGETTEXT="$ac_cv_path_XGETTEXT"
3171if test -n "$XGETTEXT"; then
3172 echo "$ac_t""$XGETTEXT" 1>&6
3173else
3174 echo "$ac_t""no" 1>&6
3175fi
3176
3177 USE_INCLUDED_LIBINTL=yes
3178 CATOBJEXT=.cat
3179 INSTOBJEXT=.cat
3180 DATADIRNAME=lib
3181 INTLDEPS='$(top_builddir)/intl/libintl.a'
3182 INTLLIBS=$INTLDEPS
3183 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
3184 nls_cv_header_intl=intl/libintl.h
3185 nls_cv_header_libgt=intl/libgettext.h
3186 fi
3187else
3188 echo "$ac_t""no" 1>&6
3189fi
3190
3191 fi
3192 fi
3193
3194 if test "$CATOBJEXT" = "NONE"; then
3195 nls_cv_use_gnu_gettext=yes
3196 fi
3197 fi
3198
3199 if test "$nls_cv_use_gnu_gettext" = "yes"; then
3200 INTLOBJS="\$(GETTOBJS)"
3201 # Extract the first word of "msgfmt", so it can be a program name with args.
3202set dummy msgfmt; ac_word=$2
3203echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'obff0cc92003-03-23 01:37:53 -05003204echo "configure:3205: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003205if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3206 echo $ac_n "(cached) $ac_c" 1>&6
3207else
3208 case "$MSGFMT" in
3209 /*)
3210 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3211 ;;
3212 *)
3213 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3214 for ac_dir in $PATH; do
3215 test -z "$ac_dir" && ac_dir=.
3216 if test -f $ac_dir/$ac_word; then
3217 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3218 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3219 break
3220 fi
3221 fi
3222 done
3223 IFS="$ac_save_ifs"
3224 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
3225 ;;
3226esac
3227fi
3228MSGFMT="$ac_cv_path_MSGFMT"
3229if test -n "$MSGFMT"; then
3230 echo "$ac_t""$MSGFMT" 1>&6
3231else
3232 echo "$ac_t""no" 1>&6
3233fi
3234
3235 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3236set dummy gmsgfmt; ac_word=$2
3237echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'obff0cc92003-03-23 01:37:53 -05003238echo "configure:3239: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003239if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3240 echo $ac_n "(cached) $ac_c" 1>&6
3241else
3242 case "$GMSGFMT" in
3243 /*)
3244 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3245 ;;
3246 ?:/*)
3247 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3248 ;;
3249 *)
3250 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3251 ac_dummy="$PATH"
3252 for ac_dir in $ac_dummy; do
3253 test -z "$ac_dir" && ac_dir=.
3254 if test -f $ac_dir/$ac_word; then
3255 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3256 break
3257 fi
3258 done
3259 IFS="$ac_save_ifs"
3260 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3261 ;;
3262esac
3263fi
3264GMSGFMT="$ac_cv_path_GMSGFMT"
3265if test -n "$GMSGFMT"; then
3266 echo "$ac_t""$GMSGFMT" 1>&6
3267else
3268 echo "$ac_t""no" 1>&6
3269fi
3270
3271 # Extract the first word of "xgettext", so it can be a program name with args.
3272set dummy xgettext; ac_word=$2
3273echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'obff0cc92003-03-23 01:37:53 -05003274echo "configure:3275: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003275if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3276 echo $ac_n "(cached) $ac_c" 1>&6
3277else
3278 case "$XGETTEXT" in
3279 /*)
3280 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3281 ;;
3282 *)
3283 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3284 for ac_dir in $PATH; do
3285 test -z "$ac_dir" && ac_dir=.
3286 if test -f $ac_dir/$ac_word; then
3287 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3288 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3289 break
3290 fi
3291 fi
3292 done
3293 IFS="$ac_save_ifs"
3294 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3295 ;;
3296esac
3297fi
3298XGETTEXT="$ac_cv_path_XGETTEXT"
3299if test -n "$XGETTEXT"; then
3300 echo "$ac_t""$XGETTEXT" 1>&6
3301else
3302 echo "$ac_t""no" 1>&6
3303fi
3304
3305
3306 USE_INCLUDED_LIBINTL=yes
3307 CATOBJEXT=.gmo
3308 INSTOBJEXT=.mo
3309 DATADIRNAME=share
3310 INTLDEPS='$(top_builddir)/intl/libintl.a'
3311 INTLLIBS=$INTLDEPS
3312 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
3313 nls_cv_header_intl=intl/libintl.h
3314 nls_cv_header_libgt=intl/libgettext.h
3315 fi
3316
3317 if test "$XGETTEXT" != ":"; then
3318 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
3319 : ;
3320 else
3321 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
3322 XGETTEXT=":"
3323 fi
3324 fi
3325
3326 # We need to process the po/ directory.
3327 POSUB=po
3328 else
3329 DATADIRNAME=share
3330 nls_cv_header_intl=intl/libintl.h
3331 nls_cv_header_libgt=intl/libgettext.h
3332 fi
3333
3334
3335
3336
3337 # If this is used in GNU gettext we have to set USE_NLS to `yes'
3338 # because some of the sources are only built for this goal.
3339 if test "$PACKAGE" = gettext; then
3340 USE_NLS=yes
3341 USE_INCLUDED_LIBINTL=yes
3342 fi
3343
3344 for lang in $ALL_LINGUAS; do
3345 GMOFILES="$GMOFILES $lang.gmo"
3346 POFILES="$POFILES $lang.po"
3347 done
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362 if test "x$CATOBJEXT" != "x"; then
3363 if test "x$ALL_LINGUAS" = "x"; then
3364 LINGUAS=
3365 else
3366 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
Theodore Ts'obff0cc92003-03-23 01:37:53 -05003367echo "configure:3368: checking for catalogs to be installed" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003368 NEW_LINGUAS=
3369 for lang in ${LINGUAS=$ALL_LINGUAS}; do
3370 case "$ALL_LINGUAS" in
3371 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
3372 esac
3373 done
3374 LINGUAS=$NEW_LINGUAS
3375 echo "$ac_t""$LINGUAS" 1>&6
3376 fi
3377
3378 if test -n "$LINGUAS"; then
3379 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
3380 fi
3381 fi
3382
3383 if test $ac_cv_header_locale_h = yes; then
3384 INCLUDE_LOCALE_H="#include <locale.h>"
3385 else
3386 INCLUDE_LOCALE_H="\
3387/* The system does not provide the header <locale.h>. Take care yourself. */"
3388 fi
3389
3390
3391 test -d intl || mkdir intl
3392 if test "$CATOBJEXT" = ".cat"; then
3393 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
3394echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
Theodore Ts'obff0cc92003-03-23 01:37:53 -05003395echo "configure:3396: checking for linux/version.h" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003396if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3397 echo $ac_n "(cached) $ac_c" 1>&6
3398else
3399 cat > conftest.$ac_ext <<EOF
Theodore Ts'obff0cc92003-03-23 01:37:53 -05003400#line 3401 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003401#include "confdefs.h"
3402#include <linux/version.h>
3403EOF
3404ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'obff0cc92003-03-23 01:37:53 -05003405{ (eval echo configure:3406: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003406ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3407if test -z "$ac_err"; then
3408 rm -rf conftest*
3409 eval "ac_cv_header_$ac_safe=yes"
3410else
3411 echo "$ac_err" >&5
3412 echo "configure: failed program was:" >&5
3413 cat conftest.$ac_ext >&5
3414 rm -rf conftest*
3415 eval "ac_cv_header_$ac_safe=no"
3416fi
3417rm -f conftest*
3418fi
3419if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3420 echo "$ac_t""yes" 1>&6
3421 msgformat=linux
3422else
3423 echo "$ac_t""no" 1>&6
3424msgformat=xopen
3425fi
3426
3427
3428 sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
3429 fi
3430 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
3431 $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
3432
3433 if test "$PACKAGE" = "gettext"; then
3434 GT_NO="#NO#"
3435 GT_YES=
3436 else
3437 GT_NO=
3438 GT_YES="#YES#"
3439 fi
3440
3441
3442
3443 MKINSTALLDIRS=
3444 if test -n "$ac_aux_dir"; then
3445 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
3446 fi
3447 if test -z "$MKINSTALLDIRS"; then
3448 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3449 fi
3450
3451
3452 l=
3453
3454
3455 test -d po || mkdir po
3456 if test "x$srcdir" != "x."; then
3457 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
3458 posrcprefix="$srcdir/"
3459 else
3460 posrcprefix="../$srcdir/"
3461 fi
3462 else
3463 posrcprefix="../"
3464 fi
3465 rm -f po/POTFILES
3466 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
3467 < $srcdir/po/POTFILES.in > po/POTFILES
3468
Theodore Ts'o74becf31997-04-26 14:37:06 +00003469
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003470echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
Theodore Ts'obff0cc92003-03-23 01:37:53 -05003471echo "configure:3472: checking whether ${MAKE-make} sets \${MAKE}" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003472set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003473if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
3474 echo $ac_n "(cached) $ac_c" 1>&6
3475else
3476 cat > conftestmake <<\EOF
3477all:
3478 @echo 'ac_maketemp="${MAKE}"'
3479EOF
3480# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3481eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
3482if test -n "$ac_maketemp"; then
3483 eval ac_cv_prog_make_${ac_make}_set=yes
3484else
3485 eval ac_cv_prog_make_${ac_make}_set=no
3486fi
3487rm -f conftestmake
3488fi
3489if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3490 echo "$ac_t""yes" 1>&6
3491 SET_MAKE=
3492else
3493 echo "$ac_t""no" 1>&6
3494 SET_MAKE="MAKE=${MAKE-make}"
3495fi
3496
3497# Extract the first word of "ln", so it can be a program name with args.
3498set dummy ln; ac_word=$2
3499echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'obff0cc92003-03-23 01:37:53 -05003500echo "configure:3501: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003501if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then
3502 echo $ac_n "(cached) $ac_c" 1>&6
3503else
3504 case "$LN" in
3505 /*)
3506 ac_cv_path_LN="$LN" # Let the user override the test with a path.
3507 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003508 ?:/*)
3509 ac_cv_path_LN="$LN" # Let the user override the test with a dos path.
3510 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003511 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003512 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3513 ac_dummy="$PATH"
3514 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003515 test -z "$ac_dir" && ac_dir=.
3516 if test -f $ac_dir/$ac_word; then
3517 ac_cv_path_LN="$ac_dir/$ac_word"
3518 break
3519 fi
3520 done
3521 IFS="$ac_save_ifs"
3522 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
3523 ;;
3524esac
3525fi
3526LN="$ac_cv_path_LN"
3527if test -n "$LN"; then
3528 echo "$ac_t""$LN" 1>&6
3529else
3530 echo "$ac_t""no" 1>&6
3531fi
3532
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00003533echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
Theodore Ts'obff0cc92003-03-23 01:37:53 -05003534echo "configure:3535: checking whether ln -s works" >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00003535if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
3536 echo $ac_n "(cached) $ac_c" 1>&6
3537else
3538 rm -f conftestdata
3539if ln -s X conftestdata 2>/dev/null
3540then
3541 rm -f conftestdata
3542 ac_cv_prog_LN_S="ln -s"
3543else
3544 ac_cv_prog_LN_S=ln
3545fi
3546fi
3547LN_S="$ac_cv_prog_LN_S"
3548if test "$ac_cv_prog_LN_S" = "ln -s"; then
3549 echo "$ac_t""yes" 1>&6
3550else
3551 echo "$ac_t""no" 1>&6
3552fi
3553
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003554# Extract the first word of "mv", so it can be a program name with args.
3555set dummy mv; ac_word=$2
3556echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'obff0cc92003-03-23 01:37:53 -05003557echo "configure:3558: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003558if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
3559 echo $ac_n "(cached) $ac_c" 1>&6
3560else
3561 case "$MV" in
3562 /*)
3563 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3564 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003565 ?:/*)
3566 ac_cv_path_MV="$MV" # Let the user override the test with a dos path.
3567 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003568 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003569 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3570 ac_dummy="$PATH"
3571 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003572 test -z "$ac_dir" && ac_dir=.
3573 if test -f $ac_dir/$ac_word; then
3574 ac_cv_path_MV="$ac_dir/$ac_word"
3575 break
3576 fi
3577 done
3578 IFS="$ac_save_ifs"
3579 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3580 ;;
3581esac
3582fi
3583MV="$ac_cv_path_MV"
3584if test -n "$MV"; then
3585 echo "$ac_t""$MV" 1>&6
3586else
3587 echo "$ac_t""no" 1>&6
3588fi
3589
3590# Extract the first word of "cp", so it can be a program name with args.
3591set dummy cp; ac_word=$2
3592echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'obff0cc92003-03-23 01:37:53 -05003593echo "configure:3594: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003594if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then
3595 echo $ac_n "(cached) $ac_c" 1>&6
3596else
3597 case "$CP" in
3598 /*)
3599 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3600 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003601 ?:/*)
3602 ac_cv_path_CP="$CP" # Let the user override the test with a dos path.
3603 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003604 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003605 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3606 ac_dummy="$PATH"
3607 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003608 test -z "$ac_dir" && ac_dir=.
3609 if test -f $ac_dir/$ac_word; then
3610 ac_cv_path_CP="$ac_dir/$ac_word"
3611 break
3612 fi
3613 done
3614 IFS="$ac_save_ifs"
3615 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3616 ;;
3617esac
3618fi
3619CP="$ac_cv_path_CP"
3620if test -n "$CP"; then
3621 echo "$ac_t""$CP" 1>&6
3622else
3623 echo "$ac_t""no" 1>&6
3624fi
3625
3626# Extract the first word of "rm", so it can be a program name with args.
3627set dummy rm; ac_word=$2
3628echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'obff0cc92003-03-23 01:37:53 -05003629echo "configure:3630: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003630if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
3631 echo $ac_n "(cached) $ac_c" 1>&6
3632else
3633 case "$RM" in
3634 /*)
3635 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3636 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003637 ?:/*)
3638 ac_cv_path_RM="$RM" # Let the user override the test with a dos path.
3639 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003640 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003641 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3642 ac_dummy="$PATH"
3643 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003644 test -z "$ac_dir" && ac_dir=.
3645 if test -f $ac_dir/$ac_word; then
3646 ac_cv_path_RM="$ac_dir/$ac_word"
3647 break
3648 fi
3649 done
3650 IFS="$ac_save_ifs"
3651 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3652 ;;
3653esac
3654fi
3655RM="$ac_cv_path_RM"
3656if test -n "$RM"; then
3657 echo "$ac_t""$RM" 1>&6
3658else
3659 echo "$ac_t""no" 1>&6
3660fi
3661
3662# Extract the first word of "chmod", so it can be a program name with args.
3663set dummy chmod; ac_word=$2
3664echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'obff0cc92003-03-23 01:37:53 -05003665echo "configure:3666: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003666if eval "test \"`echo '$''{'ac_cv_path_CHMOD'+set}'`\" = set"; then
3667 echo $ac_n "(cached) $ac_c" 1>&6
3668else
3669 case "$CHMOD" in
3670 /*)
3671 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
3672 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003673 ?:/*)
3674 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a dos path.
3675 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003676 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003677 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3678 ac_dummy="$PATH"
3679 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003680 test -z "$ac_dir" && ac_dir=.
3681 if test -f $ac_dir/$ac_word; then
3682 ac_cv_path_CHMOD="$ac_dir/$ac_word"
3683 break
3684 fi
3685 done
3686 IFS="$ac_save_ifs"
3687 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
3688 ;;
3689esac
3690fi
3691CHMOD="$ac_cv_path_CHMOD"
3692if test -n "$CHMOD"; then
3693 echo "$ac_t""$CHMOD" 1>&6
3694else
3695 echo "$ac_t""no" 1>&6
3696fi
3697
3698# Extract the first word of "awk", so it can be a program name with args.
3699set dummy awk; ac_word=$2
3700echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'obff0cc92003-03-23 01:37:53 -05003701echo "configure:3702: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003702if eval "test \"`echo '$''{'ac_cv_path_AWK'+set}'`\" = set"; then
3703 echo $ac_n "(cached) $ac_c" 1>&6
3704else
3705 case "$AWK" in
3706 /*)
3707 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3708 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003709 ?:/*)
3710 ac_cv_path_AWK="$AWK" # Let the user override the test with a dos path.
3711 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003712 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003713 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3714 ac_dummy="$PATH"
3715 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003716 test -z "$ac_dir" && ac_dir=.
3717 if test -f $ac_dir/$ac_word; then
3718 ac_cv_path_AWK="$ac_dir/$ac_word"
3719 break
3720 fi
3721 done
3722 IFS="$ac_save_ifs"
3723 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3724 ;;
3725esac
3726fi
3727AWK="$ac_cv_path_AWK"
3728if test -n "$AWK"; then
3729 echo "$ac_t""$AWK" 1>&6
3730else
3731 echo "$ac_t""no" 1>&6
3732fi
3733
3734# Extract the first word of "sed", so it can be a program name with args.
3735set dummy sed; ac_word=$2
3736echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'obff0cc92003-03-23 01:37:53 -05003737echo "configure:3738: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003738if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then
3739 echo $ac_n "(cached) $ac_c" 1>&6
3740else
3741 case "$SED" in
3742 /*)
3743 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3744 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003745 ?:/*)
3746 ac_cv_path_SED="$SED" # Let the user override the test with a dos path.
3747 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003748 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003749 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3750 ac_dummy="$PATH"
3751 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003752 test -z "$ac_dir" && ac_dir=.
3753 if test -f $ac_dir/$ac_word; then
3754 ac_cv_path_SED="$ac_dir/$ac_word"
3755 break
3756 fi
3757 done
3758 IFS="$ac_save_ifs"
3759 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3760 ;;
3761esac
3762fi
3763SED="$ac_cv_path_SED"
3764if test -n "$SED"; then
3765 echo "$ac_t""$SED" 1>&6
3766else
3767 echo "$ac_t""no" 1>&6
3768fi
3769
Theodore Ts'o9d564f71999-07-03 20:25:58 +00003770# Extract the first word of "perl", so it can be a program name with args.
3771set dummy perl; ac_word=$2
3772echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'obff0cc92003-03-23 01:37:53 -05003773echo "configure:3774: checking for $ac_word" >&5
Theodore Ts'o9d564f71999-07-03 20:25:58 +00003774if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
3775 echo $ac_n "(cached) $ac_c" 1>&6
3776else
3777 case "$PERL" in
3778 /*)
3779 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3780 ;;
3781 ?:/*)
3782 ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
3783 ;;
3784 *)
3785 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3786 ac_dummy="$PATH"
3787 for ac_dir in $ac_dummy; do
3788 test -z "$ac_dir" && ac_dir=.
3789 if test -f $ac_dir/$ac_word; then
3790 ac_cv_path_PERL="$ac_dir/$ac_word"
3791 break
3792 fi
3793 done
3794 IFS="$ac_save_ifs"
3795 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
3796 ;;
3797esac
3798fi
3799PERL="$ac_cv_path_PERL"
3800if test -n "$PERL"; then
3801 echo "$ac_t""$PERL" 1>&6
3802else
3803 echo "$ac_t""no" 1>&6
3804fi
3805
Theodore Ts'o250f79f2001-05-19 22:02:22 +00003806# Extract the first word of "ldconfig", so it can be a program name with args.
3807set dummy ldconfig; ac_word=$2
3808echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'obff0cc92003-03-23 01:37:53 -05003809echo "configure:3810: checking for $ac_word" >&5
Theodore Ts'o250f79f2001-05-19 22:02:22 +00003810if eval "test \"`echo '$''{'ac_cv_path_LDCONFIG'+set}'`\" = set"; then
3811 echo $ac_n "(cached) $ac_c" 1>&6
3812else
3813 case "$LDCONFIG" in
3814 /*)
3815 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
3816 ;;
3817 ?:/*)
3818 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a dos path.
3819 ;;
3820 *)
3821 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3822 ac_dummy="$PATH"
3823 for ac_dir in $ac_dummy; do
3824 test -z "$ac_dir" && ac_dir=.
3825 if test -f $ac_dir/$ac_word; then
3826 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
3827 break
3828 fi
3829 done
3830 IFS="$ac_save_ifs"
3831 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
3832 ;;
3833esac
3834fi
3835LDCONFIG="$ac_cv_path_LDCONFIG"
3836if test -n "$LDCONFIG"; then
3837 echo "$ac_t""$LDCONFIG" 1>&6
3838else
3839 echo "$ac_t""no" 1>&6
3840fi
3841
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003842echo $ac_n "checking build system type""... $ac_c" 1>&6
Theodore Ts'obff0cc92003-03-23 01:37:53 -05003843echo "configure:3844: checking build system type" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003844
3845build_alias=$build
3846case "$build_alias" in
3847NONE)
3848 case $nonopt in
3849 NONE) build_alias=$host_alias ;;
3850 *) build_alias=$nonopt ;;
3851 esac ;;
3852esac
3853
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003854build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003855build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3856build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3857build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003858echo "$ac_t""$build" 1>&6
3859
3860if test $host != $build; then
3861 ac_tool_prefix=${host_alias}-
3862else
3863 ac_tool_prefix=
3864fi
3865
3866# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3867set dummy ${ac_tool_prefix}ar; ac_word=$2
3868echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'obff0cc92003-03-23 01:37:53 -05003869echo "configure:3870: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003870if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3871 echo $ac_n "(cached) $ac_c" 1>&6
3872else
3873 if test -n "$AR"; then
3874 ac_cv_prog_AR="$AR" # Let the user override the test.
3875else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003876 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3877 ac_dummy="$PATH"
3878 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003879 test -z "$ac_dir" && ac_dir=.
3880 if test -f $ac_dir/$ac_word; then
3881 ac_cv_prog_AR="${ac_tool_prefix}ar"
3882 break
3883 fi
3884 done
3885 IFS="$ac_save_ifs"
3886fi
3887fi
3888AR="$ac_cv_prog_AR"
3889if test -n "$AR"; then
3890 echo "$ac_t""$AR" 1>&6
3891else
3892 echo "$ac_t""no" 1>&6
3893fi
3894
3895
3896if test -z "$ac_cv_prog_AR"; then
3897if test -n "$ac_tool_prefix"; then
3898 # Extract the first word of "ar", so it can be a program name with args.
3899set dummy ar; ac_word=$2
3900echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'obff0cc92003-03-23 01:37:53 -05003901echo "configure:3902: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003902if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3903 echo $ac_n "(cached) $ac_c" 1>&6
3904else
3905 if test -n "$AR"; then
3906 ac_cv_prog_AR="$AR" # Let the user override the test.
3907else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003908 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3909 ac_dummy="$PATH"
3910 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003911 test -z "$ac_dir" && ac_dir=.
3912 if test -f $ac_dir/$ac_word; then
3913 ac_cv_prog_AR="ar"
3914 break
3915 fi
3916 done
3917 IFS="$ac_save_ifs"
3918 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
3919fi
3920fi
3921AR="$ac_cv_prog_AR"
3922if test -n "$AR"; then
3923 echo "$ac_t""$AR" 1>&6
3924else
3925 echo "$ac_t""no" 1>&6
3926fi
3927
3928else
3929 AR="ar"
3930fi
3931fi
3932
3933# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3934set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3935echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'obff0cc92003-03-23 01:37:53 -05003936echo "configure:3937: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003937if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3938 echo $ac_n "(cached) $ac_c" 1>&6
3939else
3940 if test -n "$RANLIB"; then
3941 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3942else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003943 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3944 ac_dummy="$PATH"
3945 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003946 test -z "$ac_dir" && ac_dir=.
3947 if test -f $ac_dir/$ac_word; then
3948 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3949 break
3950 fi
3951 done
3952 IFS="$ac_save_ifs"
3953fi
3954fi
3955RANLIB="$ac_cv_prog_RANLIB"
3956if test -n "$RANLIB"; then
3957 echo "$ac_t""$RANLIB" 1>&6
3958else
3959 echo "$ac_t""no" 1>&6
3960fi
3961
3962
3963if test -z "$ac_cv_prog_RANLIB"; then
3964if test -n "$ac_tool_prefix"; then
3965 # Extract the first word of "ranlib", so it can be a program name with args.
3966set dummy ranlib; ac_word=$2
3967echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'obff0cc92003-03-23 01:37:53 -05003968echo "configure:3969: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003969if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3970 echo $ac_n "(cached) $ac_c" 1>&6
3971else
3972 if test -n "$RANLIB"; then
3973 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3974else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003975 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3976 ac_dummy="$PATH"
3977 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003978 test -z "$ac_dir" && ac_dir=.
3979 if test -f $ac_dir/$ac_word; then
3980 ac_cv_prog_RANLIB="ranlib"
3981 break
3982 fi
3983 done
3984 IFS="$ac_save_ifs"
3985 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3986fi
3987fi
3988RANLIB="$ac_cv_prog_RANLIB"
3989if test -n "$RANLIB"; then
3990 echo "$ac_t""$RANLIB" 1>&6
3991else
3992 echo "$ac_t""no" 1>&6
3993fi
3994
3995else
3996 RANLIB=":"
3997fi
3998fi
3999
4000# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4001set dummy ${ac_tool_prefix}strip; ac_word=$2
4002echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'obff0cc92003-03-23 01:37:53 -05004003echo "configure:4004: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004004if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
4005 echo $ac_n "(cached) $ac_c" 1>&6
4006else
4007 if test -n "$STRIP"; then
4008 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4009else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004010 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4011 ac_dummy="$PATH"
4012 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004013 test -z "$ac_dir" && ac_dir=.
4014 if test -f $ac_dir/$ac_word; then
4015 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4016 break
4017 fi
4018 done
4019 IFS="$ac_save_ifs"
4020fi
4021fi
4022STRIP="$ac_cv_prog_STRIP"
4023if test -n "$STRIP"; then
4024 echo "$ac_t""$STRIP" 1>&6
4025else
4026 echo "$ac_t""no" 1>&6
4027fi
4028
4029
4030if test -z "$ac_cv_prog_STRIP"; then
4031if test -n "$ac_tool_prefix"; then
4032 # Extract the first word of "strip", so it can be a program name with args.
4033set dummy strip; ac_word=$2
4034echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'obff0cc92003-03-23 01:37:53 -05004035echo "configure:4036: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004036if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
4037 echo $ac_n "(cached) $ac_c" 1>&6
4038else
4039 if test -n "$STRIP"; then
4040 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4041else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004042 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4043 ac_dummy="$PATH"
4044 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004045 test -z "$ac_dir" && ac_dir=.
4046 if test -f $ac_dir/$ac_word; then
4047 ac_cv_prog_STRIP="strip"
4048 break
4049 fi
4050 done
4051 IFS="$ac_save_ifs"
4052 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
4053fi
4054fi
4055STRIP="$ac_cv_prog_STRIP"
4056if test -n "$STRIP"; then
4057 echo "$ac_t""$STRIP" 1>&6
4058else
4059 echo "$ac_t""no" 1>&6
4060fi
4061
4062else
4063 STRIP=":"
4064fi
4065fi
4066
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004067# Find a good install program. We prefer a C program (faster),
4068# so one script is as good as another. But avoid the broken or
4069# incompatible versions:
4070# SysV /etc/install, /usr/sbin/install
4071# SunOS /usr/etc/install
4072# IRIX /sbin/install
4073# AIX /bin/install
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004074# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004075# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4076# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4077# ./install, which can be erroneously created by make from ./install.sh.
4078echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
Theodore Ts'obff0cc92003-03-23 01:37:53 -05004079echo "configure:4080: checking for a BSD compatible install" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004080if test -z "$INSTALL"; then
4081if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
4082 echo $ac_n "(cached) $ac_c" 1>&6
4083else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004084 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004085 for ac_dir in $PATH; do
4086 # Account for people who put trailing slashes in PATH elements.
4087 case "$ac_dir/" in
4088 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
4089 *)
4090 # OSF1 and SCO ODT 3.0 have their own names for install.
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004091 # Don't use installbsd from OSF since it installs stuff as root
4092 # by default.
4093 for ac_prog in ginstall scoinst install; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004094 if test -f $ac_dir/$ac_prog; then
4095 if test $ac_prog = install &&
4096 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
4097 # AIX install. It has an incompatible calling convention.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004098 :
4099 else
4100 ac_cv_path_install="$ac_dir/$ac_prog -c"
4101 break 2
4102 fi
4103 fi
4104 done
4105 ;;
4106 esac
4107 done
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004108 IFS="$ac_save_IFS"
4109
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004110fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004111 if test "${ac_cv_path_install+set}" = set; then
4112 INSTALL="$ac_cv_path_install"
4113 else
4114 # As a last resort, use the slow shell script. We don't cache a
4115 # path for INSTALL within a source directory, because that will
4116 # break other packages using the cache if that directory is
4117 # removed, or if the path is relative.
4118 INSTALL="$ac_install_sh"
4119 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004120fi
4121echo "$ac_t""$INSTALL" 1>&6
4122
4123# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4124# It thinks the first close brace ends the variable substitution.
4125test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4126
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004127test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
4128
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004129test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4130
Theodore Ts'o6c133521999-07-03 20:37:03 +00004131# See if we need a separate native compiler.
4132if test $cross_compiling = no; then
4133 BUILD_CC="$CC"
4134
4135else
4136 for ac_prog in gcc cc
4137do
4138# Extract the first word of "$ac_prog", so it can be a program name with args.
4139set dummy $ac_prog; ac_word=$2
4140echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'obff0cc92003-03-23 01:37:53 -05004141echo "configure:4142: checking for $ac_word" >&5
Theodore Ts'o6c133521999-07-03 20:37:03 +00004142if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
4143 echo $ac_n "(cached) $ac_c" 1>&6
4144else
4145 if test -n "$BUILD_CC"; then
4146 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4147else
4148 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4149 ac_dummy="$PATH"
4150 for ac_dir in $ac_dummy; do
4151 test -z "$ac_dir" && ac_dir=.
4152 if test -f $ac_dir/$ac_word; then
4153 ac_cv_prog_BUILD_CC="$ac_prog"
4154 break
4155 fi
4156 done
4157 IFS="$ac_save_ifs"
4158fi
4159fi
4160BUILD_CC="$ac_cv_prog_BUILD_CC"
4161if test -n "$BUILD_CC"; then
4162 echo "$ac_t""$BUILD_CC" 1>&6
4163else
4164 echo "$ac_t""no" 1>&6
4165fi
4166
4167test -n "$BUILD_CC" && break
4168done
4169
4170fi
Theodore Ts'offf45482003-04-13 00:44:19 -04004171for ac_hdr in stdlib.h unistd.h stdarg.h errno.h malloc.h mntent.h paths.h dirent.h getopt.h setjmp.h signal.h termios.h linux/fd.h linux/major.h sys/disklabel.h sys/ioctl.h sys/mkdev.h sys/mount.h sys/sockio.h sys/socket.h sys/sysmacros.h sys/time.h sys/stat.h sys/types.h sys/wait.h sys/resource.h net/if.h netinet/in.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004172do
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004173ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004174echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Theodore Ts'obff0cc92003-03-23 01:37:53 -05004175echo "configure:4176: checking for $ac_hdr" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004176if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4177 echo $ac_n "(cached) $ac_c" 1>&6
4178else
4179 cat > conftest.$ac_ext <<EOF
Theodore Ts'obff0cc92003-03-23 01:37:53 -05004180#line 4181 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004181#include "confdefs.h"
4182#include <$ac_hdr>
4183EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004184ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'obff0cc92003-03-23 01:37:53 -05004185{ (eval echo configure:4186: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004186ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004187if test -z "$ac_err"; then
4188 rm -rf conftest*
4189 eval "ac_cv_header_$ac_safe=yes"
4190else
4191 echo "$ac_err" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004192 echo "configure: failed program was:" >&5
4193 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004194 rm -rf conftest*
4195 eval "ac_cv_header_$ac_safe=no"
4196fi
4197rm -f conftest*
4198fi
4199if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4200 echo "$ac_t""yes" 1>&6
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004201 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004202 cat >> confdefs.h <<EOF
4203#define $ac_tr_hdr 1
4204EOF
4205
4206else
4207 echo "$ac_t""no" 1>&6
4208fi
4209done
4210
4211echo $ac_n "checking for vprintf""... $ac_c" 1>&6
Theodore Ts'obff0cc92003-03-23 01:37:53 -05004212echo "configure:4213: checking for vprintf" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004213if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
4214 echo $ac_n "(cached) $ac_c" 1>&6
4215else
4216 cat > conftest.$ac_ext <<EOF
Theodore Ts'obff0cc92003-03-23 01:37:53 -05004217#line 4218 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004218#include "confdefs.h"
4219/* System header to define __stub macros and hopefully few prototypes,
4220 which can conflict with char vprintf(); below. */
4221#include <assert.h>
4222/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004223/* We use char because int might match the return type of a gcc2
4224 builtin and then its argument prototype would still apply. */
4225char vprintf();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004226
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004227int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004228
4229/* The GNU C library defines this for functions which it implements
4230 to always fail with ENOSYS. Some functions are actually named
4231 something starting with __ and the normal name is an alias. */
4232#if defined (__stub_vprintf) || defined (__stub___vprintf)
4233choke me
4234#else
4235vprintf();
4236#endif
4237
4238; return 0; }
4239EOF
Theodore Ts'obff0cc92003-03-23 01:37:53 -05004240if { (eval echo configure:4241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004241 rm -rf conftest*
4242 eval "ac_cv_func_vprintf=yes"
4243else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004244 echo "configure: failed program was:" >&5
4245 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004246 rm -rf conftest*
4247 eval "ac_cv_func_vprintf=no"
4248fi
4249rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004250fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004251
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004252if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
4253 echo "$ac_t""yes" 1>&6
4254 cat >> confdefs.h <<\EOF
4255#define HAVE_VPRINTF 1
4256EOF
4257
4258else
4259 echo "$ac_t""no" 1>&6
4260fi
4261
4262if test "$ac_cv_func_vprintf" != yes; then
4263echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
Theodore Ts'obff0cc92003-03-23 01:37:53 -05004264echo "configure:4265: checking for _doprnt" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004265if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
4266 echo $ac_n "(cached) $ac_c" 1>&6
4267else
4268 cat > conftest.$ac_ext <<EOF
Theodore Ts'obff0cc92003-03-23 01:37:53 -05004269#line 4270 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004270#include "confdefs.h"
4271/* System header to define __stub macros and hopefully few prototypes,
4272 which can conflict with char _doprnt(); below. */
4273#include <assert.h>
4274/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004275/* We use char because int might match the return type of a gcc2
4276 builtin and then its argument prototype would still apply. */
4277char _doprnt();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004278
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004279int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004280
4281/* The GNU C library defines this for functions which it implements
4282 to always fail with ENOSYS. Some functions are actually named
4283 something starting with __ and the normal name is an alias. */
4284#if defined (__stub__doprnt) || defined (__stub____doprnt)
4285choke me
4286#else
4287_doprnt();
4288#endif
4289
4290; return 0; }
4291EOF
Theodore Ts'obff0cc92003-03-23 01:37:53 -05004292if { (eval echo configure:4293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004293 rm -rf conftest*
4294 eval "ac_cv_func__doprnt=yes"
4295else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004296 echo "configure: failed program was:" >&5
4297 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004298 rm -rf conftest*
4299 eval "ac_cv_func__doprnt=no"
4300fi
4301rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004302fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004303
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004304if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
4305 echo "$ac_t""yes" 1>&6
4306 cat >> confdefs.h <<\EOF
4307#define HAVE_DOPRNT 1
4308EOF
4309
4310else
4311 echo "$ac_t""no" 1>&6
4312fi
4313
4314fi
4315
Theodore Ts'offf45482003-04-13 00:44:19 -04004316echo $ac_n "checking whether d_reclen declared in dirent""... $ac_c" 1>&6
4317echo "configure:4318: checking whether d_reclen declared in dirent" >&5
4318if eval "test \"`echo '$''{'e2fsprogs_cv_have_d_reclen_dirent'+set}'`\" = set"; then
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00004319 echo $ac_n "(cached) $ac_c" 1>&6
4320else
4321 cat > conftest.$ac_ext <<EOF
Theodore Ts'obff0cc92003-03-23 01:37:53 -05004322#line 4323 "configure"
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00004323#include "confdefs.h"
Theodore Ts'offf45482003-04-13 00:44:19 -04004324#include <dirent.h>
4325int main() {
4326struct dirent de; de.d_reclen = 0;
4327; return 0; }
4328EOF
4329if { (eval echo configure:4330: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4330 rm -rf conftest*
4331 e2fsprogs_cv_have_d_reclen_dirent=yes
4332else
4333 echo "configure: failed program was:" >&5
4334 cat conftest.$ac_ext >&5
4335 rm -rf conftest*
4336 e2fsprogs_cv_have_d_reclen_dirent=no
4337fi
4338rm -f conftest*
4339fi
4340
4341echo "$ac_t""$e2fsprogs_cv_have_d_reclen_dirent" 1>&6
4342if test "$e2fsprogs_cv_have_d_reclen_dirent" = yes; then
4343 cat >> confdefs.h <<\EOF
4344#define HAVE_RECLEN_DIRENT 1
4345EOF
4346
4347fi
4348echo $ac_n "checking whether ssize_t declared""... $ac_c" 1>&6
4349echo "configure:4350: checking whether ssize_t declared" >&5
4350if eval "test \"`echo '$''{'e2fsprogs_cv_have_ssize_t'+set}'`\" = set"; then
4351 echo $ac_n "(cached) $ac_c" 1>&6
4352else
4353 cat > conftest.$ac_ext <<EOF
4354#line 4355 "configure"
4355#include "confdefs.h"
4356#include <sys/types.h>
4357int main() {
4358ssize_t a = 0;
4359; return 0; }
4360EOF
4361if { (eval echo configure:4362: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4362 rm -rf conftest*
4363 e2fsprogs_cv_have_ssize_t=yes
4364else
4365 echo "configure: failed program was:" >&5
4366 cat conftest.$ac_ext >&5
4367 rm -rf conftest*
4368 e2fsprogs_cv_have_ssize_t=no
4369fi
4370rm -f conftest*
4371fi
4372
4373echo "$ac_t""$e2fsprogs_cv_have_ssize_t" 1>&6
4374if test "$e2fsprogs_cv_have_ssize_t" = yes; then
4375 cat >> confdefs.h <<\EOF
4376#define HAVE_TYPE_SSIZE_T 1
4377EOF
4378
4379fi
4380echo $ac_n "checking whether llseek declared in unistd.h""... $ac_c" 1>&6
4381echo "configure:4382: checking whether llseek declared in unistd.h" >&5
4382if eval "test \"`echo '$''{'e2fsprogs_cv_have_llseek_prototype'+set}'`\" = set"; then
4383 echo $ac_n "(cached) $ac_c" 1>&6
4384else
4385 cat > conftest.$ac_ext <<EOF
4386#line 4387 "configure"
4387#include "confdefs.h"
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00004388#include <unistd.h>
4389int main() {
4390extern int llseek(int);
4391; return 0; }
4392EOF
Theodore Ts'offf45482003-04-13 00:44:19 -04004393if { (eval echo configure:4394: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00004394 rm -rf conftest*
4395 e2fsprogs_cv_have_llseek_prototype=no
4396else
4397 echo "configure: failed program was:" >&5
4398 cat conftest.$ac_ext >&5
4399 rm -rf conftest*
4400 e2fsprogs_cv_have_llseek_prototype=yes
4401fi
4402rm -f conftest*
4403fi
4404
4405echo "$ac_t""$e2fsprogs_cv_have_llseek_prototype" 1>&6
4406if test "$e2fsprogs_cv_have_llseek_prototype" = yes; then
4407 cat >> confdefs.h <<\EOF
4408#define HAVE_LLSEEK_PROTOTYPE 1
4409EOF
4410
4411fi
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004412echo $ac_n "checking whether lseek64 declared in unistd.h""... $ac_c" 1>&6
Theodore Ts'offf45482003-04-13 00:44:19 -04004413echo "configure:4414: checking whether lseek64 declared in unistd.h" >&5
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004414if eval "test \"`echo '$''{'e2fsprogs_cv_have_lseek64_prototype'+set}'`\" = set"; then
4415 echo $ac_n "(cached) $ac_c" 1>&6
4416else
4417 cat > conftest.$ac_ext <<EOF
Theodore Ts'offf45482003-04-13 00:44:19 -04004418#line 4419 "configure"
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004419#include "confdefs.h"
4420#define _LARGEFILE_SOURCE
4421#define _LARGEFILE64_SOURCE
4422#include <unistd.h>
4423int main() {
4424extern int lseek64(int);
4425; return 0; }
4426EOF
Theodore Ts'offf45482003-04-13 00:44:19 -04004427if { (eval echo configure:4428: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004428 rm -rf conftest*
4429 e2fsprogs_cv_have_lseek64_prototype=no
4430else
4431 echo "configure: failed program was:" >&5
4432 cat conftest.$ac_ext >&5
4433 rm -rf conftest*
4434 e2fsprogs_cv_have_lseek64_prototype=yes
4435fi
4436rm -f conftest*
4437fi
4438
4439echo "$ac_t""$e2fsprogs_cv_have_lseek64_prototype" 1>&6
4440if test "$e2fsprogs_cv_have_lseek64_prototype" = yes; then
4441 cat >> confdefs.h <<\EOF
4442#define HAVE_LSEEK64_PROTOTYPE 1
4443EOF
4444
4445fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004446if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
4447 # if cross-compiling, with no cached values, just assume something common.
4448 ac_cv_sizeof_short=2
4449 ac_cv_sizeof_int=4
4450 ac_cv_sizeof_long=4
Theodore Ts'o6c133521999-07-03 20:37:03 +00004451 ac_cv_sizeof_long_long=8
4452 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 +00004453fi
4454echo $ac_n "checking size of short""... $ac_c" 1>&6
Theodore Ts'offf45482003-04-13 00:44:19 -04004455echo "configure:4456: checking size of short" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004456if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
4457 echo $ac_n "(cached) $ac_c" 1>&6
4458else
4459 if test "$cross_compiling" = yes; then
4460 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4461else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004462 cat > conftest.$ac_ext <<EOF
Theodore Ts'offf45482003-04-13 00:44:19 -04004463#line 4464 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004464#include "confdefs.h"
4465#include <stdio.h>
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004466#include <sys/types.h>
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004467main()
4468{
4469 FILE *f=fopen("conftestval", "w");
4470 if (!f) exit(1);
4471 fprintf(f, "%d\n", sizeof(short));
4472 exit(0);
4473}
4474EOF
Theodore Ts'offf45482003-04-13 00:44:19 -04004475if { (eval echo configure:4476: \"$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 +00004476then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004477 ac_cv_sizeof_short=`cat conftestval`
4478else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004479 echo "configure: failed program was:" >&5
4480 cat conftest.$ac_ext >&5
4481 rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004482 ac_cv_sizeof_short=0
4483fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004484rm -fr conftest*
4485fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004486
4487fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004488echo "$ac_t""$ac_cv_sizeof_short" 1>&6
4489cat >> confdefs.h <<EOF
4490#define SIZEOF_SHORT $ac_cv_sizeof_short
4491EOF
4492
4493
4494echo $ac_n "checking size of int""... $ac_c" 1>&6
Theodore Ts'offf45482003-04-13 00:44:19 -04004495echo "configure:4496: checking size of int" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004496if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
4497 echo $ac_n "(cached) $ac_c" 1>&6
4498else
4499 if test "$cross_compiling" = yes; then
4500 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4501else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004502 cat > conftest.$ac_ext <<EOF
Theodore Ts'offf45482003-04-13 00:44:19 -04004503#line 4504 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004504#include "confdefs.h"
4505#include <stdio.h>
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004506#include <sys/types.h>
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004507main()
4508{
4509 FILE *f=fopen("conftestval", "w");
4510 if (!f) exit(1);
4511 fprintf(f, "%d\n", sizeof(int));
4512 exit(0);
4513}
4514EOF
Theodore Ts'offf45482003-04-13 00:44:19 -04004515if { (eval echo configure:4516: \"$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 +00004516then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004517 ac_cv_sizeof_int=`cat conftestval`
4518else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004519 echo "configure: failed program was:" >&5
4520 cat conftest.$ac_ext >&5
4521 rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004522 ac_cv_sizeof_int=0
4523fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004524rm -fr conftest*
4525fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004526
4527fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004528echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4529cat >> confdefs.h <<EOF
4530#define SIZEOF_INT $ac_cv_sizeof_int
4531EOF
4532
4533
4534echo $ac_n "checking size of long""... $ac_c" 1>&6
Theodore Ts'offf45482003-04-13 00:44:19 -04004535echo "configure:4536: checking size of long" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004536if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
4537 echo $ac_n "(cached) $ac_c" 1>&6
4538else
4539 if test "$cross_compiling" = yes; then
4540 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4541else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004542 cat > conftest.$ac_ext <<EOF
Theodore Ts'offf45482003-04-13 00:44:19 -04004543#line 4544 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004544#include "confdefs.h"
4545#include <stdio.h>
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004546#include <sys/types.h>
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004547main()
4548{
4549 FILE *f=fopen("conftestval", "w");
4550 if (!f) exit(1);
4551 fprintf(f, "%d\n", sizeof(long));
4552 exit(0);
4553}
4554EOF
Theodore Ts'offf45482003-04-13 00:44:19 -04004555if { (eval echo configure:4556: \"$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 +00004556then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004557 ac_cv_sizeof_long=`cat conftestval`
4558else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004559 echo "configure: failed program was:" >&5
4560 cat conftest.$ac_ext >&5
4561 rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004562 ac_cv_sizeof_long=0
4563fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004564rm -fr conftest*
4565fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004566
4567fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004568echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4569cat >> confdefs.h <<EOF
4570#define SIZEOF_LONG $ac_cv_sizeof_long
4571EOF
4572
4573
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004574echo $ac_n "checking size of long long""... $ac_c" 1>&6
Theodore Ts'offf45482003-04-13 00:44:19 -04004575echo "configure:4576: checking size of long long" >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004576if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
4577 echo $ac_n "(cached) $ac_c" 1>&6
4578else
4579 if test "$cross_compiling" = yes; then
4580 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4581else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004582 cat > conftest.$ac_ext <<EOF
Theodore Ts'offf45482003-04-13 00:44:19 -04004583#line 4584 "configure"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004584#include "confdefs.h"
4585#include <stdio.h>
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004586#include <sys/types.h>
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004587main()
4588{
4589 FILE *f=fopen("conftestval", "w");
4590 if (!f) exit(1);
4591 fprintf(f, "%d\n", sizeof(long long));
4592 exit(0);
4593}
4594EOF
Theodore Ts'offf45482003-04-13 00:44:19 -04004595if { (eval echo configure:4596: \"$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 +00004596then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004597 ac_cv_sizeof_long_long=`cat conftestval`
4598else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004599 echo "configure: failed program was:" >&5
4600 cat conftest.$ac_ext >&5
4601 rm -fr conftest*
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004602 ac_cv_sizeof_long_long=0
4603fi
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004604rm -fr conftest*
4605fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004606
4607fi
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004608echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4609cat >> confdefs.h <<EOF
4610#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4611EOF
4612
4613
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004614SIZEOF_SHORT=$ac_cv_sizeof_short
4615SIZEOF_INT=$ac_cv_sizeof_int
4616SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004617SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
4618
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004619
4620
4621
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004622echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
Theodore Ts'offf45482003-04-13 00:44:19 -04004623echo "configure:4624: checking whether byte ordering is bigendian" >&5
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004624if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
4625 echo $ac_n "(cached) $ac_c" 1>&6
4626else
4627 ac_cv_c_bigendian=unknown
4628# See if sys/param.h defines the BYTE_ORDER macro.
4629cat > conftest.$ac_ext <<EOF
Theodore Ts'offf45482003-04-13 00:44:19 -04004630#line 4631 "configure"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004631#include "confdefs.h"
4632#include <sys/types.h>
4633#include <sys/param.h>
4634int main() {
4635
4636#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4637 bogus endian macros
4638#endif
4639; return 0; }
4640EOF
Theodore Ts'offf45482003-04-13 00:44:19 -04004641if { (eval echo configure:4642: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004642 rm -rf conftest*
4643 # It does; now see whether it defined to BIG_ENDIAN or not.
4644cat > conftest.$ac_ext <<EOF
Theodore Ts'offf45482003-04-13 00:44:19 -04004645#line 4646 "configure"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004646#include "confdefs.h"
4647#include <sys/types.h>
4648#include <sys/param.h>
4649int main() {
4650
4651#if BYTE_ORDER != BIG_ENDIAN
4652 not big endian
4653#endif
4654; return 0; }
4655EOF
Theodore Ts'offf45482003-04-13 00:44:19 -04004656if { (eval echo configure:4657: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004657 rm -rf conftest*
4658 ac_cv_c_bigendian=yes
4659else
4660 echo "configure: failed program was:" >&5
4661 cat conftest.$ac_ext >&5
4662 rm -rf conftest*
4663 ac_cv_c_bigendian=no
4664fi
4665rm -f conftest*
4666else
4667 echo "configure: failed program was:" >&5
4668 cat conftest.$ac_ext >&5
4669fi
4670rm -f conftest*
4671if test $ac_cv_c_bigendian = unknown; then
4672if test "$cross_compiling" = yes; then
4673 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4674else
4675 cat > conftest.$ac_ext <<EOF
Theodore Ts'offf45482003-04-13 00:44:19 -04004676#line 4677 "configure"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004677#include "confdefs.h"
4678main () {
4679 /* Are we little or big endian? From Harbison&Steele. */
4680 union
4681 {
4682 long l;
4683 char c[sizeof (long)];
4684 } u;
4685 u.l = 1;
4686 exit (u.c[sizeof (long) - 1] == 1);
4687}
4688EOF
Theodore Ts'offf45482003-04-13 00:44:19 -04004689if { (eval echo configure:4690: \"$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 +00004690then
4691 ac_cv_c_bigendian=no
4692else
4693 echo "configure: failed program was:" >&5
4694 cat conftest.$ac_ext >&5
4695 rm -fr conftest*
4696 ac_cv_c_bigendian=yes
4697fi
4698rm -fr conftest*
4699fi
4700
4701fi
4702fi
4703
4704echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4705if test $ac_cv_c_bigendian = yes; then
4706 cat >> confdefs.h <<\EOF
4707#define WORDS_BIGENDIAN 1
4708EOF
4709
4710fi
4711
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004712echo $ac_n "checking whether struct stat has a st_flags field""... $ac_c" 1>&6
Theodore Ts'offf45482003-04-13 00:44:19 -04004713echo "configure:4714: checking whether struct stat has a st_flags field" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004714if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags'+set}'`\" = set"; then
4715 echo $ac_n "(cached) $ac_c" 1>&6
4716else
4717 cat > conftest.$ac_ext <<EOF
Theodore Ts'offf45482003-04-13 00:44:19 -04004718#line 4719 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004719#include "confdefs.h"
4720#include <sys/stat.h>
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004721int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004722struct stat stat; stat.st_flags = 0;
4723; return 0; }
4724EOF
Theodore Ts'offf45482003-04-13 00:44:19 -04004725if { (eval echo configure:4726: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004726 rm -rf conftest*
4727 e2fsprogs_cv_struct_st_flags=yes
4728else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004729 echo "configure: failed program was:" >&5
4730 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004731 rm -rf conftest*
4732 e2fsprogs_cv_struct_st_flags=no
4733fi
4734rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004735fi
4736
4737echo "$ac_t""$e2fsprogs_cv_struct_st_flags" 1>&6
4738if test "$e2fsprogs_cv_struct_st_flags" = yes; then
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00004739 echo $ac_n "checking whether st_flags field is useful""... $ac_c" 1>&6
Theodore Ts'offf45482003-04-13 00:44:19 -04004740echo "configure:4741: checking whether st_flags field is useful" >&5
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00004741 if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags_immut'+set}'`\" = set"; then
4742 echo $ac_n "(cached) $ac_c" 1>&6
4743else
4744 cat > conftest.$ac_ext <<EOF
Theodore Ts'offf45482003-04-13 00:44:19 -04004745#line 4746 "configure"
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00004746#include "confdefs.h"
4747#include <sys/stat.h>
4748int main() {
4749struct stat stat; stat.st_flags |= UF_IMMUTABLE;
4750; return 0; }
4751EOF
Theodore Ts'offf45482003-04-13 00:44:19 -04004752if { (eval echo configure:4753: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00004753 rm -rf conftest*
4754 e2fsprogs_cv_struct_st_flags_immut=yes
4755else
4756 echo "configure: failed program was:" >&5
4757 cat conftest.$ac_ext >&5
4758 rm -rf conftest*
4759 e2fsprogs_cv_struct_st_flags_immut=no
4760fi
4761rm -f conftest*
4762fi
4763
4764 echo "$ac_t""$e2fsprogs_cv_struct_st_flags_immut" 1>&6
4765 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
4766 cat >> confdefs.h <<\EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004767#define HAVE_STAT_FLAGS 1
4768EOF
4769
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00004770 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004771fi
Theodore Ts'oe12f2ae2003-01-23 16:45:16 -05004772for ac_func in chflags getrusage llseek lseek64 open64 getmntinfo strtoull strcasecmp srandom fchown mallinfo fdatasync strnlen sysconf pathconf
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004773do
4774echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'offf45482003-04-13 00:44:19 -04004775echo "configure:4776: checking for $ac_func" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004776if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4777 echo $ac_n "(cached) $ac_c" 1>&6
4778else
4779 cat > conftest.$ac_ext <<EOF
Theodore Ts'offf45482003-04-13 00:44:19 -04004780#line 4781 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004781#include "confdefs.h"
4782/* System header to define __stub macros and hopefully few prototypes,
4783 which can conflict with char $ac_func(); below. */
4784#include <assert.h>
4785/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004786/* We use char because int might match the return type of a gcc2
4787 builtin and then its argument prototype would still apply. */
4788char $ac_func();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004789
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004790int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004791
4792/* The GNU C library defines this for functions which it implements
4793 to always fail with ENOSYS. Some functions are actually named
4794 something starting with __ and the normal name is an alias. */
4795#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4796choke me
4797#else
4798$ac_func();
4799#endif
4800
4801; return 0; }
4802EOF
Theodore Ts'offf45482003-04-13 00:44:19 -04004803if { (eval echo configure:4804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004804 rm -rf conftest*
4805 eval "ac_cv_func_$ac_func=yes"
4806else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004807 echo "configure: failed program was:" >&5
4808 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004809 rm -rf conftest*
4810 eval "ac_cv_func_$ac_func=no"
4811fi
4812rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004813fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004814
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004815if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4816 echo "$ac_t""yes" 1>&6
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004817 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004818 cat >> confdefs.h <<EOF
4819#define $ac_tr_func 1
4820EOF
4821
4822else
4823 echo "$ac_t""no" 1>&6
4824fi
4825done
4826
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004827SOCKET_LIB=''
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004828echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
Theodore Ts'offf45482003-04-13 00:44:19 -04004829echo "configure:4830: checking for socket in -lsocket" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004830ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
4831if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004832 echo $ac_n "(cached) $ac_c" 1>&6
4833else
4834 ac_save_LIBS="$LIBS"
4835LIBS="-lsocket $LIBS"
4836cat > conftest.$ac_ext <<EOF
Theodore Ts'offf45482003-04-13 00:44:19 -04004837#line 4838 "configure"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004838#include "confdefs.h"
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004839/* Override any gcc2 internal prototype to avoid an error. */
4840/* We use char because int might match the return type of a gcc2
4841 builtin and then its argument prototype would still apply. */
4842char socket();
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004843
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004844int main() {
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004845socket()
4846; return 0; }
4847EOF
Theodore Ts'offf45482003-04-13 00:44:19 -04004848if { (eval echo configure:4849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004849 rm -rf conftest*
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004850 eval "ac_cv_lib_$ac_lib_var=yes"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004851else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004852 echo "configure: failed program was:" >&5
4853 cat conftest.$ac_ext >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004854 rm -rf conftest*
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004855 eval "ac_cv_lib_$ac_lib_var=no"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004856fi
4857rm -f conftest*
4858LIBS="$ac_save_LIBS"
4859
4860fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004861if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004862 echo "$ac_t""yes" 1>&6
4863 SOCKET_LIB=-lsocket
4864else
4865 echo "$ac_t""no" 1>&6
4866fi
4867
4868
Theodore Ts'obbac86b2003-03-16 06:27:22 -05004869DLOPEN_LIB=''
4870echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
Theodore Ts'offf45482003-04-13 00:44:19 -04004871echo "configure:4872: checking for dlopen in -ldl" >&5
Theodore Ts'obbac86b2003-03-16 06:27:22 -05004872ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4873if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4874 echo $ac_n "(cached) $ac_c" 1>&6
4875else
4876 ac_save_LIBS="$LIBS"
4877LIBS="-ldl $LIBS"
4878cat > conftest.$ac_ext <<EOF
Theodore Ts'offf45482003-04-13 00:44:19 -04004879#line 4880 "configure"
Theodore Ts'obbac86b2003-03-16 06:27:22 -05004880#include "confdefs.h"
4881/* Override any gcc2 internal prototype to avoid an error. */
4882/* We use char because int might match the return type of a gcc2
4883 builtin and then its argument prototype would still apply. */
4884char dlopen();
4885
4886int main() {
4887dlopen()
4888; return 0; }
4889EOF
Theodore Ts'offf45482003-04-13 00:44:19 -04004890if { (eval echo configure:4891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'obbac86b2003-03-16 06:27:22 -05004891 rm -rf conftest*
4892 eval "ac_cv_lib_$ac_lib_var=yes"
4893else
4894 echo "configure: failed program was:" >&5
4895 cat conftest.$ac_ext >&5
4896 rm -rf conftest*
4897 eval "ac_cv_lib_$ac_lib_var=no"
4898fi
4899rm -f conftest*
4900LIBS="$ac_save_LIBS"
4901
4902fi
4903if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4904 echo "$ac_t""yes" 1>&6
4905 DLOPEN_LIB=-ldl
4906cat >> confdefs.h <<\EOF
4907#define HAVE_DLOPEN 1
4908EOF
4909
4910else
4911 echo "$ac_t""no" 1>&6
4912fi
4913
4914
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004915echo $ac_n "checking for optreset""... $ac_c" 1>&6
Theodore Ts'offf45482003-04-13 00:44:19 -04004916echo "configure:4917: checking for optreset" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004917if eval "test \"`echo '$''{'ac_cv_have_optreset'+set}'`\" = set"; then
4918 echo $ac_n "(cached) $ac_c" 1>&6
4919else
4920 cat > conftest.$ac_ext <<EOF
Theodore Ts'offf45482003-04-13 00:44:19 -04004921#line 4922 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004922#include "confdefs.h"
4923#include <unistd.h>
4924EOF
4925if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4926 egrep "optreset" >/dev/null 2>&1; then
4927 rm -rf conftest*
4928 ac_cv_have_optreset=yes
4929else
4930 rm -rf conftest*
4931 ac_cv_have_optreset=no
4932fi
4933rm -f conftest*
4934
4935fi
4936echo "$ac_t""$ac_cv_have_optreset" 1>&6
4937if test $ac_cv_have_optreset = yes; then
4938 cat >> confdefs.h <<\EOF
4939#define HAVE_OPTRESET 1
4940EOF
4941
4942fi
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +00004943case "$host_os" in
4944linux*)
4945 cat >> confdefs.h <<\EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004946#define HAVE_EXT2_IOCTLS 1
4947EOF
4948
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +00004949 ;;
4950esac
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -04004951LINUX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -04004952CYGWIN_CMT="#"
4953UNIX_CMT=
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -04004954case "$host_os" in
4955linux*)
4956 LINUX_CMT=
4957 ;;
Theodore Ts'offf45482003-04-13 00:44:19 -04004958cygwin)
4959 CYGWIN_CMT=
4960 UNIX_CMT="#"
4961 cat >> confdefs.h <<\EOF
4962#define WIN32 1
4963EOF
4964
4965 ;;
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -04004966esac
4967
Theodore Ts'offf45482003-04-13 00:44:19 -04004968
4969
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004970case "$host_os" in
Theodore Ts'o6c133521999-07-03 20:37:03 +00004971linux* | gnu*)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004972 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
4973 root_prefix="";
4974 echo "On $host_os systems, root_prefix defaults to ''"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004975 fi
4976 ;;
4977esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004978case "$host_os" in
4979linux* | gnu*)
4980 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004981 prefix="/usr";
4982 echo "On $host_os systems, prefix defaults to /usr"
Theodore Ts'obff61a72002-05-21 22:21:38 -04004983 if test "$mandir" = '${prefix}/man' ; then
4984 echo "...and mandir defaults to /usr/share/man"
4985 mandir=/usr/share/man
4986 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004987 fi
4988;;
4989esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004990if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +00004991 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004992 root_prefix="$ac_default_prefix"
4993 else
4994 root_prefix="$prefix"
4995 fi
Theodore Ts'ob5ffead2002-05-11 19:17:00 -04004996 root_bindir=$bindir
4997 root_sbindir=$sbindir
4998 root_libdir=$libdir
4999 root_sysconfdir=$sysconfdir
5000else
5001 root_bindir='${root_prefix}/bin'
5002 root_sbindir='${root_prefix}/sbin'
5003 root_libdir='${root_prefix}/lib'
5004 root_sysconfdir='${root_prefix}/etc'
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00005005fi
5006
Theodore Ts'ob5ffead2002-05-11 19:17:00 -04005007
5008
5009
5010
Theodore Ts'oae851481997-04-29 18:13:24 +00005011echo $ac_n "checking whether linker accepts -static""... $ac_c" 1>&6
Theodore Ts'offf45482003-04-13 00:44:19 -04005012echo "configure:5013: checking whether linker accepts -static" >&5
Theodore Ts'oae851481997-04-29 18:13:24 +00005013if eval "test \"`echo '$''{'ac_cv_e2fsprogs_use_static'+set}'`\" = set"; then
5014 echo $ac_n "(cached) $ac_c" 1>&6
5015else
5016 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
5017cat > conftest.$ac_ext <<EOF
Theodore Ts'offf45482003-04-13 00:44:19 -04005018#line 5019 "configure"
Theodore Ts'oae851481997-04-29 18:13:24 +00005019#include "confdefs.h"
5020#include <stdio.h>
5021int main() {
5022fflush(stdout);
5023; return 0; }
5024EOF
Theodore Ts'offf45482003-04-13 00:44:19 -04005025if { (eval echo configure:5026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oae851481997-04-29 18:13:24 +00005026 rm -rf conftest*
5027 ac_cv_e2fsprogs_use_static=yes
5028else
5029 echo "configure: failed program was:" >&5
5030 cat conftest.$ac_ext >&5
5031 rm -rf conftest*
5032 ac_cv_e2fsprogs_use_static=no
5033fi
5034rm -f conftest*
5035LDFLAGS=$SAVE_LDFLAGS
5036fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005037
Theodore Ts'odefde781999-01-04 07:39:19 +00005038case "$host_os" in
5039solaris2.*)
5040 ac_cv_e2fsprogs_use_static=no
5041;;
5042esac
Theodore Ts'oae851481997-04-29 18:13:24 +00005043echo "$ac_t""$ac_cv_e2fsprogs_use_static" 1>&6
Theodore Ts'o74becf31997-04-26 14:37:06 +00005044LDFLAG_STATIC=
Theodore Ts'oae851481997-04-29 18:13:24 +00005045if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005046 LDFLAG_STATIC=-static
Theodore Ts'oae851481997-04-29 18:13:24 +00005047fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005048
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005049SS_DIR=`cd ${srcdir}/lib/ss; pwd`
5050ET_DIR=`cd ${srcdir}/lib/et; pwd`
5051
5052
5053if test "$cross_compiling" = yes ; then
5054 DO_TEST_SUITE=
5055else
5056 DO_TEST_SUITE=check
5057fi
5058
5059test -d lib || mkdir lib
5060test -d include || mkdir include
5061test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +00005062test -d include/asm || mkdir include/asm
Theodore Ts'obff0cc92003-03-23 01:37:53 -05005063for i in MCONFIG Makefile e2fsprogs.spec \
5064 util/Makefile util/subst.conf util/gen-tarball \
5065 lib/et/Makefile lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -05005066 lib/uuid/Makefile lib/uuid/uuid_types.h \
5067 lib/blkid/Makefile lib/blkid/blkid_types.h \
5068 lib/evms/Makefile misc/Makefile ext2ed/Makefile e2fsck/Makefile \
5069 debugfs/Makefile tests/Makefile tests/progs/Makefile \
5070 resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do
5071 if test -d `dirname ${srcdir}/$i` ; then
5072 outlist="$outlist $i"
5073 fi
5074done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005075trap '' 1 2 15
5076cat > confcache <<\EOF
5077# This file is a shell script that caches the results of configure
5078# tests run on this system so they can be shared between configure
5079# scripts and configure runs. It is not useful on other systems.
5080# If it contains results you don't want to keep, you may remove or edit it.
5081#
5082# By default, configure uses ./config.cache as the cache file,
5083# creating it if it does not exist already. You can give configure
5084# the --cache-file=FILE option to use a different cache file; that is
5085# what configure does when it calls configure scripts in
5086# subdirectories, so they share the cache.
5087# Giving --cache-file=/dev/null disables caching, for debugging configure.
5088# config.status only pays attention to the cache file if you give it the
5089# --recheck option to rerun configure.
5090#
5091EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005092# The following way of writing the cache mishandles newlines in values,
5093# but we know of no workaround that is simple, portable, and efficient.
5094# So, don't put newlines in cache variables' values.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005095# Ultrix sh set writes to stderr and can't be redirected directly,
5096# and sets the high bit in the cache file unless we assign to the vars.
5097(set) 2>&1 |
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00005098 case `(ac_space=' '; set | grep ac_space) 2>&1` in
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005099 *ac_space=\ *)
5100 # `set' does not quote correctly, so add quotes (double-quote substitution
5101 # turns \\\\ into \\, and sed turns \\ into \).
5102 sed -n \
5103 -e "s/'/'\\\\''/g" \
5104 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5105 ;;
5106 *)
5107 # `set' quotes correctly as required by POSIX, so do not add quotes.
5108 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5109 ;;
5110 esac >> confcache
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005111if cmp -s $cache_file confcache; then
5112 :
5113else
5114 if test -w $cache_file; then
5115 echo "updating cache $cache_file"
5116 cat confcache > $cache_file
5117 else
5118 echo "not updating unwritable cache $cache_file"
5119 fi
5120fi
5121rm -f confcache
5122
5123trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5124
5125test "x$prefix" = xNONE && prefix=$ac_default_prefix
5126# Let make expand exec_prefix.
5127test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5128
5129# Any assignment to VPATH causes Sun make to only execute
5130# the first set of double-colon rules, so remove it if not needed.
5131# If there is a colon in the path, we need to keep it.
5132if test "x$srcdir" = x.; then
5133 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
5134fi
5135
5136trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5137
5138# Transform confdefs.h into DEFS.
5139# Protect against shell expansion while executing Makefile rules.
5140# Protect against Makefile macro expansion.
5141cat > conftest.defs <<\EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005142s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005143s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
5144s%\[%\\&%g
5145s%\]%\\&%g
5146s%\$%$$%g
5147EOF
5148DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
5149rm -f conftest.defs
5150
5151
5152# Without the "./", some shells look in PATH for config.status.
5153: ${CONFIG_STATUS=./config.status}
5154
5155echo creating $CONFIG_STATUS
5156rm -f $CONFIG_STATUS
5157cat > $CONFIG_STATUS <<EOF
5158#! /bin/sh
5159# Generated automatically by configure.
5160# Run this file to recreate the current configuration.
5161# This directory was configured as follows,
5162# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5163#
5164# $0 $ac_configure_args
5165#
5166# Compiler output produced by configure, useful for debugging
5167# configure, is in ./config.log if it exists.
5168
5169ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5170for ac_option
5171do
5172 case "\$ac_option" in
5173 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5174 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5175 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5176 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00005177 echo "$CONFIG_STATUS generated by autoconf version 2.13"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005178 exit 0 ;;
5179 -help | --help | --hel | --he | --h)
5180 echo "\$ac_cs_usage"; exit 0 ;;
5181 *) echo "\$ac_cs_usage"; exit 1 ;;
5182 esac
5183done
5184
5185ac_given_srcdir=$srcdir
5186ac_given_INSTALL="$INSTALL"
5187
Theodore Ts'o94ba8c72003-03-02 02:07:14 -05005188trap 'rm -fr `echo "$outlist" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005189EOF
5190cat >> $CONFIG_STATUS <<EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005191
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005192# Protect against being on the right side of a sed subst in config.status.
5193sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5194 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005195$ac_vpsub
5196$extrasub
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00005197s%@SHELL@%$SHELL%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005198s%@CFLAGS@%$CFLAGS%g
5199s%@CPPFLAGS@%$CPPFLAGS%g
5200s%@CXXFLAGS@%$CXXFLAGS%g
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00005201s%@FFLAGS@%$FFLAGS%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005202s%@DEFS@%$DEFS%g
5203s%@LDFLAGS@%$LDFLAGS%g
5204s%@LIBS@%$LIBS%g
5205s%@exec_prefix@%$exec_prefix%g
5206s%@prefix@%$prefix%g
5207s%@program_transform_name@%$program_transform_name%g
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005208s%@bindir@%$bindir%g
5209s%@sbindir@%$sbindir%g
5210s%@libexecdir@%$libexecdir%g
5211s%@datadir@%$datadir%g
5212s%@sysconfdir@%$sysconfdir%g
5213s%@sharedstatedir@%$sharedstatedir%g
5214s%@localstatedir@%$localstatedir%g
5215s%@libdir@%$libdir%g
5216s%@includedir@%$includedir%g
5217s%@oldincludedir@%$oldincludedir%g
5218s%@infodir@%$infodir%g
5219s%@mandir@%$mandir%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005220/@MCONFIG@/r $MCONFIG
5221s%@MCONFIG@%%g
Theodore Ts'o74becf31997-04-26 14:37:06 +00005222s%@E2FSPROGS_YEAR@%$E2FSPROGS_YEAR%g
5223s%@E2FSPROGS_MONTH@%$E2FSPROGS_MONTH%g
Theodore Ts'obff0cc92003-03-23 01:37:53 -05005224s%@E2FSPROGS_DAY@%$E2FSPROGS_DAY%g
Theodore Ts'o74becf31997-04-26 14:37:06 +00005225s%@E2FSPROGS_VERSION@%$E2FSPROGS_VERSION%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005226s%@host@%$host%g
5227s%@host_alias@%$host_alias%g
5228s%@host_cpu@%$host_cpu%g
5229s%@host_vendor@%$host_vendor%g
5230s%@host_os@%$host_os%g
Theodore Ts'o74becf31997-04-26 14:37:06 +00005231s%@CC@%$CC%g
5232s%@LD@%$LD%g
Theodore Ts'of8bd9801999-10-26 04:19:45 +00005233s%@CPP@%$CPP%g
5234s%@LINUX_INCLUDE@%$LINUX_INCLUDE%g
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04005235s%@HTREE_CMT@%$HTREE_CMT%g
5236s%@HTREE_CLR_CMT@%$HTREE_CLR_CMT%g
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05005237s%@EVMS_ABI_CODE@%$EVMS_ABI_CODE%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005238s%@DLL_CMT@%$DLL_CMT%g
5239/@MAKEFILE_DLL@/r $MAKEFILE_DLL
5240s%@MAKEFILE_DLL@%%g
5241s%@ELF_CMT@%$ELF_CMT%g
5242/@MAKEFILE_ELF@/r $MAKEFILE_ELF
5243s%@MAKEFILE_ELF@%%g
5244s%@BSDLIB_CMT@%$BSDLIB_CMT%g
5245/@MAKEFILE_BSDLIB@/r $MAKEFILE_BSDLIB
5246s%@MAKEFILE_BSDLIB@%%g
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005247s%@PROFILE_CMT@%$PROFILE_CMT%g
5248/@MAKEFILE_PROFILE@/r $MAKEFILE_PROFILE
5249s%@MAKEFILE_PROFILE@%%g
5250s%@CHECKER_CMT@%$CHECKER_CMT%g
5251/@MAKEFILE_CHECKER@/r $MAKEFILE_CHECKER
5252s%@MAKEFILE_CHECKER@%%g
5253s%@LIB_EXT@%$LIB_EXT%g
5254s%@STATIC_LIB_EXT@%$STATIC_LIB_EXT%g
5255s%@PROFILED_LIB_EXT@%$PROFILED_LIB_EXT%g
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05005256s%@SWAPFS_CMT@%$SWAPFS_CMT%g
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005257s%@DEBUGFS_CMT@%$DEBUGFS_CMT%g
5258s%@IMAGER_CMT@%$IMAGER_CMT%g
5259s%@RESIZER_CMT@%$RESIZER_CMT%g
5260s%@E2FSCK_TYPE@%$E2FSCK_TYPE%g
5261s%@FSCK_PROG@%$FSCK_PROG%g
5262s%@FSCK_MAN@%$FSCK_MAN%g
5263/@MAKEFILE_LIBRARY@/r $MAKEFILE_LIBRARY
5264s%@MAKEFILE_LIBRARY@%%g
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005265s%@PACKAGE@%$PACKAGE%g
5266s%@VERSION@%$VERSION%g
5267s%@SET_MAKE@%$SET_MAKE%g
5268s%@RANLIB@%$RANLIB%g
5269s%@ALLOCA@%$ALLOCA%g
5270s%@USE_NLS@%$USE_NLS%g
5271s%@MSGFMT@%$MSGFMT%g
5272s%@GMSGFMT@%$GMSGFMT%g
5273s%@XGETTEXT@%$XGETTEXT%g
5274s%@GENCAT@%$GENCAT%g
5275s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
5276s%@CATALOGS@%$CATALOGS%g
5277s%@CATOBJEXT@%$CATOBJEXT%g
5278s%@DATADIRNAME@%$DATADIRNAME%g
5279s%@GMOFILES@%$GMOFILES%g
5280s%@INSTOBJEXT@%$INSTOBJEXT%g
5281s%@INTLDEPS@%$INTLDEPS%g
5282s%@INTLLIBS@%$INTLLIBS%g
5283s%@INTLOBJS@%$INTLOBJS%g
5284s%@POFILES@%$POFILES%g
5285s%@POSUB@%$POSUB%g
5286s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
5287s%@GT_NO@%$GT_NO%g
5288s%@GT_YES@%$GT_YES%g
5289s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
5290s%@l@%$l%g
Theodore Ts'o74becf31997-04-26 14:37:06 +00005291s%@BINARY_TYPE@%$BINARY_TYPE%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005292s%@LN@%$LN%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005293s%@LN_S@%$LN_S%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005294s%@MV@%$MV%g
5295s%@CP@%$CP%g
5296s%@RM@%$RM%g
5297s%@CHMOD@%$CHMOD%g
5298s%@AWK@%$AWK%g
5299s%@SED@%$SED%g
Theodore Ts'o9d564f71999-07-03 20:25:58 +00005300s%@PERL@%$PERL%g
Theodore Ts'o250f79f2001-05-19 22:02:22 +00005301s%@LDCONFIG@%$LDCONFIG%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005302s%@build@%$build%g
5303s%@build_alias@%$build_alias%g
5304s%@build_cpu@%$build_cpu%g
5305s%@build_vendor@%$build_vendor%g
5306s%@build_os@%$build_os%g
5307s%@AR@%$AR%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005308s%@STRIP@%$STRIP%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005309s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00005310s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005311s%@INSTALL_DATA@%$INSTALL_DATA%g
Theodore Ts'o6c133521999-07-03 20:37:03 +00005312s%@BUILD_CC@%$BUILD_CC%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005313s%@SIZEOF_SHORT@%$SIZEOF_SHORT%g
5314s%@SIZEOF_INT@%$SIZEOF_INT%g
5315s%@SIZEOF_LONG@%$SIZEOF_LONG%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005316s%@SIZEOF_LONG_LONG@%$SIZEOF_LONG_LONG%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005317s%@SOCKET_LIB@%$SOCKET_LIB%g
Theodore Ts'obbac86b2003-03-16 06:27:22 -05005318s%@DLOPEN_LIB@%$DLOPEN_LIB%g
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -04005319s%@LINUX_CMT@%$LINUX_CMT%g
Theodore Ts'offf45482003-04-13 00:44:19 -04005320s%@CYGWIN_CMT@%$CYGWIN_CMT%g
5321s%@UNIX_CMT@%$UNIX_CMT%g
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00005322s%@root_prefix@%$root_prefix%g
Theodore Ts'ob5ffead2002-05-11 19:17:00 -04005323s%@root_bindir@%$root_bindir%g
5324s%@root_sbindir@%$root_sbindir%g
5325s%@root_libdir@%$root_libdir%g
5326s%@root_sysconfdir@%$root_sysconfdir%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005327s%@LDFLAG_STATIC@%$LDFLAG_STATIC%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005328s%@SS_DIR@%$SS_DIR%g
5329s%@ET_DIR@%$ET_DIR%g
5330s%@DO_TEST_SUITE@%$DO_TEST_SUITE%g
5331
5332CEOF
5333EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005334
5335cat >> $CONFIG_STATUS <<\EOF
5336
5337# Split the substitutions into bite-sized pieces for seds with
5338# small command number limits, like on Digital OSF/1 and HP-UX.
5339ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5340ac_file=1 # Number of current file.
5341ac_beg=1 # First line for current file.
5342ac_end=$ac_max_sed_cmds # Line after last line for current file.
5343ac_more_lines=:
5344ac_sed_cmds=""
5345while $ac_more_lines; do
5346 if test $ac_beg -gt 1; then
5347 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5348 else
5349 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5350 fi
5351 if test ! -s conftest.s$ac_file; then
5352 ac_more_lines=false
5353 rm -f conftest.s$ac_file
5354 else
5355 if test -z "$ac_sed_cmds"; then
5356 ac_sed_cmds="sed -f conftest.s$ac_file"
5357 else
5358 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5359 fi
5360 ac_file=`expr $ac_file + 1`
5361 ac_beg=$ac_end
5362 ac_end=`expr $ac_end + $ac_max_sed_cmds`
5363 fi
5364done
5365if test -z "$ac_sed_cmds"; then
5366 ac_sed_cmds=cat
5367fi
5368EOF
5369
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005370cat >> $CONFIG_STATUS <<EOF
5371
Theodore Ts'o94ba8c72003-03-02 02:07:14 -05005372CONFIG_FILES=\${CONFIG_FILES-"$outlist"}
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005373EOF
5374cat >> $CONFIG_STATUS <<\EOF
5375for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005376 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005377 case "$ac_file" in
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005378 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005379 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5380 *) ac_file_in="${ac_file}.in" ;;
5381 esac
5382
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005383 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005384
5385 # Remove last slash and all that follows it. Not all systems have dirname.
5386 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5387 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5388 # The file is in a subdirectory.
5389 test ! -d "$ac_dir" && mkdir "$ac_dir"
5390 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5391 # A "../" for each directory in $ac_dir_suffix.
5392 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5393 else
5394 ac_dir_suffix= ac_dots=
5395 fi
5396
5397 case "$ac_given_srcdir" in
5398 .) srcdir=.
5399 if test -z "$ac_dots"; then top_srcdir=.
5400 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5401 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5402 *) # Relative path.
5403 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5404 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5405 esac
5406
5407 case "$ac_given_INSTALL" in
5408 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5409 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5410 esac
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005411
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005412 echo creating "$ac_file"
5413 rm -f "$ac_file"
5414 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5415 case "$ac_file" in
5416 *Makefile*) ac_comsub="1i\\
5417# $configure_input" ;;
5418 *) ac_comsub= ;;
5419 esac
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005420
5421 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 +00005422 sed -e "$ac_comsub
5423s%@configure_input@%$configure_input%g
5424s%@srcdir@%$srcdir%g
5425s%@top_srcdir@%$top_srcdir%g
5426s%@INSTALL@%$INSTALL%g
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005427" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005428fi; done
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005429rm -f conftest.s*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005430
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005431EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005432
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005433cat >> $CONFIG_STATUS <<EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005434ac_sources="$nls_cv_header_libgt"
5435ac_dests="$nls_cv_header_intl"
5436EOF
5437
5438cat >> $CONFIG_STATUS <<\EOF
5439srcdir=$ac_given_srcdir
5440while test -n "$ac_sources"; do
5441 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
5442 set $ac_sources; ac_source=$1; shift; ac_sources=$*
5443
5444 echo "linking $srcdir/$ac_source to $ac_dest"
5445
5446 if test ! -r $srcdir/$ac_source; then
5447 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
5448 fi
5449 rm -f $ac_dest
5450
5451 # Make relative symlinks.
5452 # Remove last slash and all that follows it. Not all systems have dirname.
5453 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
5454 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
5455 # The dest file is in a subdirectory.
5456 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
5457 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
5458 # A "../" for each directory in $ac_dest_dir_suffix.
5459 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
5460 else
5461 ac_dest_dir_suffix= ac_dots=
5462 fi
5463
5464 case "$srcdir" in
5465 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
5466 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
5467 esac
5468
5469 # Make a symlink if possible; otherwise try a hard link.
5470 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
5471 ln $srcdir/$ac_source $ac_dest; then :
5472 else
5473 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
5474 fi
5475done
5476EOF
5477cat >> $CONFIG_STATUS <<EOF
5478
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005479
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005480EOF
5481cat >> $CONFIG_STATUS <<\EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005482case "$CONFIG_FILES" in *po/Makefile.in*)
5483 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
5484 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005485
5486exit 0
5487EOF
5488chmod +x $CONFIG_STATUS
5489rm -fr confdefs* $ac_clean_files
5490test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
5491