blob: 8c120d19bedcad0971af549b83b8c31cea4e0e8c [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'o877eb6d2001-06-11 06:54:13 +000047 --disable-swapfs disable support of legacy byte-swapped filesystems"
48ac_help="$ac_help
Theodore Ts'ocdf186e2001-06-13 22:16:47 +000049 --disable-debugfs disable support of debugfs program"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000050ac_help="$ac_help
Theodore Ts'ocdf186e2001-06-13 22:16:47 +000051 --disable-imager disable support of e2image program"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000052ac_help="$ac_help
Theodore Ts'ocdf186e2001-06-13 22:16:47 +000053 --disable-resizer disable support of e2resize program"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000054ac_help="$ac_help
Theodore Ts'oa4d09611997-04-29 14:28:00 +000055 --enable-dynamic-e2fsck build e2fsck dynamically"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000056ac_help="$ac_help
57 --enable-fsck build fsck wrapper program"
58ac_help="$ac_help
59 --enable-old-bitops Use old (non-standard but native) bitmask operations"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +000060ac_help="$ac_help
61 --enable-nls Turn on Native Language Support"
62ac_help="$ac_help
63 --with-included-gettext use the GNU gettext library included here"
64ac_help="$ac_help
65 --with-catgets use catgets functions if available"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000066
67# Initialize some variables set by options.
68# The variables have the same names as the options, with
69# dashes changed to underlines.
70build=NONE
71cache_file=./config.cache
72exec_prefix=NONE
73host=NONE
74no_create=
75nonopt=NONE
76no_recursion=
77prefix=NONE
78program_prefix=NONE
79program_suffix=NONE
80program_transform_name=s,x,x,
81silent=
82site=
83srcdir=
84target=NONE
85verbose=
86x_includes=NONE
87x_libraries=NONE
Theodore Ts'o21c84b71997-04-29 16:15:03 +000088bindir='${exec_prefix}/bin'
89sbindir='${exec_prefix}/sbin'
90libexecdir='${exec_prefix}/libexec'
91datadir='${prefix}/share'
92sysconfdir='${prefix}/etc'
93sharedstatedir='${prefix}/com'
94localstatedir='${prefix}/var'
95libdir='${exec_prefix}/lib'
96includedir='${prefix}/include'
97oldincludedir='/usr/include'
98infodir='${prefix}/info'
99mandir='${prefix}/man'
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000100
101# Initialize some other variables.
102subdirs=
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000103MFLAGS= MAKEFLAGS=
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000104SHELL=${CONFIG_SHELL-/bin/sh}
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000105# Maximum number of lines to put in a shell here document.
106ac_max_here_lines=12
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000107
108ac_prev=
109for ac_option
110do
111
112 # If the previous option needs an argument, assign it.
113 if test -n "$ac_prev"; then
114 eval "$ac_prev=\$ac_option"
115 ac_prev=
116 continue
117 fi
118
119 case "$ac_option" in
120 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
121 *) ac_optarg= ;;
122 esac
123
124 # Accept the important Cygnus configure options, so we can diagnose typos.
125
126 case "$ac_option" in
127
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000128 -bindir | --bindir | --bindi | --bind | --bin | --bi)
129 ac_prev=bindir ;;
130 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
131 bindir="$ac_optarg" ;;
132
133 -build | --build | --buil | --bui | --bu)
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000134 ac_prev=build ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000135 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000136 build="$ac_optarg" ;;
137
138 -cache-file | --cache-file | --cache-fil | --cache-fi \
139 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
140 ac_prev=cache_file ;;
141 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
142 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
143 cache_file="$ac_optarg" ;;
144
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000145 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
146 ac_prev=datadir ;;
147 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
148 | --da=*)
149 datadir="$ac_optarg" ;;
150
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000151 -disable-* | --disable-*)
152 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
153 # Reject names that are not valid shell variable names.
154 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
155 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
156 fi
157 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
158 eval "enable_${ac_feature}=no" ;;
159
160 -enable-* | --enable-*)
161 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
162 # Reject names that are not valid shell variable names.
163 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
164 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
165 fi
166 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
167 case "$ac_option" in
168 *=*) ;;
169 *) ac_optarg=yes ;;
170 esac
171 eval "enable_${ac_feature}='$ac_optarg'" ;;
172
173 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
174 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
175 | --exec | --exe | --ex)
176 ac_prev=exec_prefix ;;
177 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
178 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
179 | --exec=* | --exe=* | --ex=*)
180 exec_prefix="$ac_optarg" ;;
181
182 -gas | --gas | --ga | --g)
183 # Obsolete; use --with-gas.
184 with_gas=yes ;;
185
186 -help | --help | --hel | --he)
187 # Omit some internal or obsolete options to make the list less imposing.
188 # This message is too long to be a string in the A/UX 3.1 sh.
189 cat << EOF
190Usage: configure [options] [host]
191Options: [defaults in brackets after descriptions]
192Configuration:
193 --cache-file=FILE cache test results in FILE
194 --help print this message
195 --no-create do not create output files
196 --quiet, --silent do not print \`checking...' messages
197 --version print the version of autoconf that created configure
198Directory and file names:
199 --prefix=PREFIX install architecture-independent files in PREFIX
200 [$ac_default_prefix]
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000201 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000202 [same as prefix]
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000203 --bindir=DIR user executables in DIR [EPREFIX/bin]
204 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
205 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
206 --datadir=DIR read-only architecture-independent data in DIR
207 [PREFIX/share]
208 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
209 --sharedstatedir=DIR modifiable architecture-independent data in DIR
210 [PREFIX/com]
211 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
212 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
213 --includedir=DIR C header files in DIR [PREFIX/include]
214 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
215 --infodir=DIR info documentation in DIR [PREFIX/info]
216 --mandir=DIR man documentation in DIR [PREFIX/man]
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000217 --srcdir=DIR find the sources in DIR [configure dir or ..]
218 --program-prefix=PREFIX prepend PREFIX to installed program names
219 --program-suffix=SUFFIX append SUFFIX to installed program names
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000220 --program-transform-name=PROGRAM
221 run sed PROGRAM on installed program names
222EOF
223 cat << EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000224Host type:
225 --build=BUILD configure for building on BUILD [BUILD=HOST]
226 --host=HOST configure for HOST [guessed]
227 --target=TARGET configure for TARGET [TARGET=HOST]
228Features and packages:
229 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
230 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
231 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
232 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
233 --x-includes=DIR X include files are in DIR
234 --x-libraries=DIR X library files are in DIR
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000235EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000236 if test -n "$ac_help"; then
237 echo "--enable and --with options recognized:$ac_help"
238 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000239 exit 0 ;;
240
241 -host | --host | --hos | --ho)
242 ac_prev=host ;;
243 -host=* | --host=* | --hos=* | --ho=*)
244 host="$ac_optarg" ;;
245
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000246 -includedir | --includedir | --includedi | --included | --include \
247 | --includ | --inclu | --incl | --inc)
248 ac_prev=includedir ;;
249 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
250 | --includ=* | --inclu=* | --incl=* | --inc=*)
251 includedir="$ac_optarg" ;;
252
253 -infodir | --infodir | --infodi | --infod | --info | --inf)
254 ac_prev=infodir ;;
255 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
256 infodir="$ac_optarg" ;;
257
258 -libdir | --libdir | --libdi | --libd)
259 ac_prev=libdir ;;
260 -libdir=* | --libdir=* | --libdi=* | --libd=*)
261 libdir="$ac_optarg" ;;
262
263 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
264 | --libexe | --libex | --libe)
265 ac_prev=libexecdir ;;
266 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
267 | --libexe=* | --libex=* | --libe=*)
268 libexecdir="$ac_optarg" ;;
269
270 -localstatedir | --localstatedir | --localstatedi | --localstated \
271 | --localstate | --localstat | --localsta | --localst \
272 | --locals | --local | --loca | --loc | --lo)
273 ac_prev=localstatedir ;;
274 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
275 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
276 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
277 localstatedir="$ac_optarg" ;;
278
279 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
280 ac_prev=mandir ;;
281 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
282 mandir="$ac_optarg" ;;
283
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000284 -nfp | --nfp | --nf)
285 # Obsolete; use --without-fp.
286 with_fp=no ;;
287
288 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
289 | --no-cr | --no-c)
290 no_create=yes ;;
291
292 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
293 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
294 no_recursion=yes ;;
295
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000296 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
297 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
298 | --oldin | --oldi | --old | --ol | --o)
299 ac_prev=oldincludedir ;;
300 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
301 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
302 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
303 oldincludedir="$ac_optarg" ;;
304
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000305 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
306 ac_prev=prefix ;;
307 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
308 prefix="$ac_optarg" ;;
309
310 -program-prefix | --program-prefix | --program-prefi | --program-pref \
311 | --program-pre | --program-pr | --program-p)
312 ac_prev=program_prefix ;;
313 -program-prefix=* | --program-prefix=* | --program-prefi=* \
314 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
315 program_prefix="$ac_optarg" ;;
316
317 -program-suffix | --program-suffix | --program-suffi | --program-suff \
318 | --program-suf | --program-su | --program-s)
319 ac_prev=program_suffix ;;
320 -program-suffix=* | --program-suffix=* | --program-suffi=* \
321 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
322 program_suffix="$ac_optarg" ;;
323
324 -program-transform-name | --program-transform-name \
325 | --program-transform-nam | --program-transform-na \
326 | --program-transform-n | --program-transform- \
327 | --program-transform | --program-transfor \
328 | --program-transfo | --program-transf \
329 | --program-trans | --program-tran \
330 | --progr-tra | --program-tr | --program-t)
331 ac_prev=program_transform_name ;;
332 -program-transform-name=* | --program-transform-name=* \
333 | --program-transform-nam=* | --program-transform-na=* \
334 | --program-transform-n=* | --program-transform-=* \
335 | --program-transform=* | --program-transfor=* \
336 | --program-transfo=* | --program-transf=* \
337 | --program-trans=* | --program-tran=* \
338 | --progr-tra=* | --program-tr=* | --program-t=*)
339 program_transform_name="$ac_optarg" ;;
340
341 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
342 | -silent | --silent | --silen | --sile | --sil)
343 silent=yes ;;
344
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000345 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
346 ac_prev=sbindir ;;
347 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
348 | --sbi=* | --sb=*)
349 sbindir="$ac_optarg" ;;
350
351 -sharedstatedir | --sharedstatedir | --sharedstatedi \
352 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
353 | --sharedst | --shareds | --shared | --share | --shar \
354 | --sha | --sh)
355 ac_prev=sharedstatedir ;;
356 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
357 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
358 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
359 | --sha=* | --sh=*)
360 sharedstatedir="$ac_optarg" ;;
361
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000362 -site | --site | --sit)
363 ac_prev=site ;;
364 -site=* | --site=* | --sit=*)
365 site="$ac_optarg" ;;
366
367 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
368 ac_prev=srcdir ;;
369 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
370 srcdir="$ac_optarg" ;;
371
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000372 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
373 | --syscon | --sysco | --sysc | --sys | --sy)
374 ac_prev=sysconfdir ;;
375 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
376 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
377 sysconfdir="$ac_optarg" ;;
378
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000379 -target | --target | --targe | --targ | --tar | --ta | --t)
380 ac_prev=target ;;
381 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
382 target="$ac_optarg" ;;
383
384 -v | -verbose | --verbose | --verbos | --verbo | --verb)
385 verbose=yes ;;
386
387 -version | --version | --versio | --versi | --vers)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000388 echo "configure generated by autoconf version 2.13"
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000389 exit 0 ;;
390
391 -with-* | --with-*)
392 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
393 # Reject names that are not valid shell variable names.
394 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
395 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
396 fi
397 ac_package=`echo $ac_package| sed 's/-/_/g'`
398 case "$ac_option" in
399 *=*) ;;
400 *) ac_optarg=yes ;;
401 esac
402 eval "with_${ac_package}='$ac_optarg'" ;;
403
404 -without-* | --without-*)
405 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
406 # Reject names that are not valid shell variable names.
407 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
408 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
409 fi
410 ac_package=`echo $ac_package| sed 's/-/_/g'`
411 eval "with_${ac_package}=no" ;;
412
413 --x)
414 # Obsolete; use --with-x.
415 with_x=yes ;;
416
417 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
418 | --x-incl | --x-inc | --x-in | --x-i)
419 ac_prev=x_includes ;;
420 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
421 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
422 x_includes="$ac_optarg" ;;
423
424 -x-libraries | --x-libraries | --x-librarie | --x-librari \
425 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
426 ac_prev=x_libraries ;;
427 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
428 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
429 x_libraries="$ac_optarg" ;;
430
431 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
432 ;;
433
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000434 *)
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000435 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
436 echo "configure: warning: $ac_option: invalid host type" 1>&2
437 fi
438 if test "x$nonopt" != xNONE; then
439 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
440 fi
441 nonopt="$ac_option"
442 ;;
443
444 esac
445done
446
447if test -n "$ac_prev"; then
448 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
449fi
450
451trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
452
453# File descriptor usage:
454# 0 standard input
455# 1 file creation
456# 2 errors and warnings
457# 3 some systems may open it to /dev/tty
458# 4 used on the Kubota Titan
459# 6 checking for... messages and results
460# 5 compiler messages saved in config.log
461if test "$silent" = yes; then
462 exec 6>/dev/null
463else
464 exec 6>&1
465fi
466exec 5>./config.log
467
468echo "\
469This file contains any messages produced by compilers while
470running configure, to aid debugging if configure makes a mistake.
471" 1>&5
472
473# Strip out --no-create and --no-recursion so they do not pile up.
474# Also quote any args containing shell metacharacters.
475ac_configure_args=
476for ac_arg
477do
478 case "$ac_arg" in
479 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
480 | --no-cr | --no-c) ;;
481 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
482 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
483 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
484 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
485 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
486 esac
487done
488
489# NLS nuisances.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000490# Only set these to C if already set. These must not be set unconditionally
491# because not all systems understand e.g. LANG=C (notably SCO).
492# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
493# Non-C LC_CTYPE values break the ctype check.
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000494if test "${LANG+set}" = set; then LANG=C; export LANG; fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000495if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
496if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
497if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000498
499# confdefs.h avoids OS command line length limits that DEFS can exceed.
500rm -rf conftest* confdefs.h
501# AIX cpp loses on an empty file, so make sure it contains at least a newline.
502echo > confdefs.h
503
504# A filename unique to this package, relative to the directory that
505# configure is in, which we can look for to find out if srcdir is correct.
506ac_unique_file=version.h
507
508# Find the source files, if location was not specified.
509if test -z "$srcdir"; then
510 ac_srcdir_defaulted=yes
511 # Try the directory containing this script, then its parent.
512 ac_prog=$0
513 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
514 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
515 srcdir=$ac_confdir
516 if test ! -r $srcdir/$ac_unique_file; then
517 srcdir=..
518 fi
519else
520 ac_srcdir_defaulted=no
521fi
522if test ! -r $srcdir/$ac_unique_file; then
523 if test "$ac_srcdir_defaulted" = yes; then
524 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
525 else
526 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
527 fi
528fi
529srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
530
531# Prefer explicitly selected file to automatically selected ones.
532if test -z "$CONFIG_SITE"; then
533 if test "x$prefix" != xNONE; then
534 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
535 else
536 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
537 fi
538fi
539for ac_site_file in $CONFIG_SITE; do
540 if test -r "$ac_site_file"; then
541 echo "loading site script $ac_site_file"
542 . "$ac_site_file"
543 fi
544done
545
546if test -r "$cache_file"; then
547 echo "loading cache $cache_file"
548 . $cache_file
549else
550 echo "creating cache $cache_file"
551 > $cache_file
552fi
553
554ac_ext=c
555# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
556ac_cpp='$CPP $CPPFLAGS'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000557ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000558ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000559cross_compiling=$ac_cv_prog_cc_cross
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000560
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000561ac_exeext=
562ac_objext=o
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000563if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
564 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
565 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
566 ac_n= ac_c='
567' ac_t=' '
568 else
569 ac_n=-n ac_c= ac_t=
570 fi
571else
572 ac_n= ac_c='\c' ac_t=
573fi
574
575
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +0000576
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000577MCONFIG=./MCONFIG
578
Theodore Ts'o74becf31997-04-26 14:37:06 +0000579BINARY_TYPE=bin
580E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
581 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
582DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
583 | tr \" " "`
584MONTH=`echo $DATE | awk -F- '{print $2}'`
585YEAR=`echo $DATE | awk -F- '{print $3}'`
586
Theodore Ts'o14790ed1999-01-12 23:32:52 +0000587if expr $YEAR ">" 1900 > /dev/null ; then
588 E2FSPROGS_YEAR=$YEAR
589elif expr $YEAR ">" 90 >/dev/null ; then
Theodore Ts'o74becf31997-04-26 14:37:06 +0000590 E2FSPROGS_YEAR=19$YEAR
591else
592 E2FSPROGS_YEAR=20$YEAR
593fi
594
595case $MONTH in
596Jan) E2FSPROGS_MONTH="January" ;;
597Feb) E2FSPROGS_MONTH="February" ;;
598Mar) E2FSPROGS_MONTH="March" ;;
599Apr) E2FSPROGS_MONTH="April" ;;
600May) E2FSPROGS_MONTH="May" ;;
601Jun) E2FSPROGS_MONTH="June" ;;
602Jul) E2FSPROGS_MONTH="July" ;;
603Aug) E2FSPROGS_MONTH="August" ;;
604Sep) E2FSPROGS_MONTH="September" ;;
605Oct) E2FSPROGS_MONTH="October" ;;
606Nov) E2FSPROGS_MONTH="November" ;;
607Dec) E2FSPROGS_MONTH="December" ;;
608*) echo "Unknown month $MONTH??" ;;
609esac
610
611unset DATE MONTH YEAR
612echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION"
613echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}"
614
615
616
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000617ac_aux_dir=
618for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
619 if test -f $ac_dir/install-sh; then
620 ac_aux_dir=$ac_dir
621 ac_install_sh="$ac_aux_dir/install-sh -c"
622 break
623 elif 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 fi
628done
629if test -z "$ac_aux_dir"; then
630 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
631fi
632ac_config_guess=$ac_aux_dir/config.guess
633ac_config_sub=$ac_aux_dir/config.sub
634ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
635
636
637# Make sure we can run config.sub.
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000638if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000639else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
640fi
641
642echo $ac_n "checking host system type""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -0500643echo "configure:644: checking host system type" >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000644
645host_alias=$host
646case "$host_alias" in
647NONE)
648 case $nonopt in
649 NONE)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000650 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000651 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
652 fi ;;
653 *) host_alias=$nonopt ;;
654 esac ;;
655esac
656
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000657host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000658host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
659host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
660host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000661echo "$ac_t""$host" 1>&6
662
Theodore Ts'o74becf31997-04-26 14:37:06 +0000663# Check whether --with-cc or --without-cc was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000664if test "${with_cc+set}" = set; then
665 withval="$with_cc"
Theodore Ts'o74becf31997-04-26 14:37:06 +0000666 echo "$ac_t""CC=$withval" 1>&6
667CC=$withval
668else
669 if test -z "$CC" ; then CC=cc; fi
670echo "$ac_t""CC defaults to $CC" 1>&6
671fi
672export CC
673
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000674# Extract the first word of "gcc", so it can be a program name with args.
675set dummy gcc; ac_word=$2
676echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -0500677echo "configure:678: checking for $ac_word" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000678if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
679 echo $ac_n "(cached) $ac_c" 1>&6
680else
681 if test -n "$CC"; then
682 ac_cv_prog_CC="$CC" # Let the user override the test.
683else
684 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
685 ac_dummy="$PATH"
686 for ac_dir in $ac_dummy; do
687 test -z "$ac_dir" && ac_dir=.
688 if test -f $ac_dir/$ac_word; then
689 ac_cv_prog_CC="gcc"
690 break
691 fi
692 done
693 IFS="$ac_save_ifs"
694fi
695fi
696CC="$ac_cv_prog_CC"
697if test -n "$CC"; then
698 echo "$ac_t""$CC" 1>&6
699else
700 echo "$ac_t""no" 1>&6
701fi
702
703if test -z "$CC"; then
704 # Extract the first word of "cc", so it can be a program name with args.
705set dummy cc; ac_word=$2
706echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -0500707echo "configure:708: checking for $ac_word" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000708if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
709 echo $ac_n "(cached) $ac_c" 1>&6
710else
711 if test -n "$CC"; then
712 ac_cv_prog_CC="$CC" # Let the user override the test.
713else
714 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
715 ac_prog_rejected=no
716 ac_dummy="$PATH"
717 for ac_dir in $ac_dummy; do
718 test -z "$ac_dir" && ac_dir=.
719 if test -f $ac_dir/$ac_word; then
720 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
721 ac_prog_rejected=yes
722 continue
723 fi
724 ac_cv_prog_CC="cc"
725 break
726 fi
727 done
728 IFS="$ac_save_ifs"
729if test $ac_prog_rejected = yes; then
730 # We found a bogon in the path, so make sure we never use it.
731 set dummy $ac_cv_prog_CC
732 shift
733 if test $# -gt 0; then
734 # We chose a different compiler from the bogus one.
735 # However, it has the same basename, so the bogon will be chosen
736 # first if we set CC to just the basename; use the full file name.
737 shift
738 set dummy "$ac_dir/$ac_word" "$@"
739 shift
740 ac_cv_prog_CC="$@"
741 fi
742fi
743fi
744fi
745CC="$ac_cv_prog_CC"
746if test -n "$CC"; then
747 echo "$ac_t""$CC" 1>&6
748else
749 echo "$ac_t""no" 1>&6
750fi
751
752 if test -z "$CC"; then
753 case "`uname -s`" in
754 *win32* | *WIN32*)
755 # Extract the first word of "cl", so it can be a program name with args.
756set dummy cl; ac_word=$2
757echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -0500758echo "configure:759: checking for $ac_word" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000759if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
760 echo $ac_n "(cached) $ac_c" 1>&6
761else
762 if test -n "$CC"; then
763 ac_cv_prog_CC="$CC" # Let the user override the test.
764else
765 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
766 ac_dummy="$PATH"
767 for ac_dir in $ac_dummy; do
768 test -z "$ac_dir" && ac_dir=.
769 if test -f $ac_dir/$ac_word; then
770 ac_cv_prog_CC="cl"
771 break
772 fi
773 done
774 IFS="$ac_save_ifs"
775fi
776fi
777CC="$ac_cv_prog_CC"
778if test -n "$CC"; then
779 echo "$ac_t""$CC" 1>&6
780else
781 echo "$ac_t""no" 1>&6
782fi
783 ;;
784 esac
785 fi
786 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
787fi
788
789echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -0500790echo "configure:791: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000791
792ac_ext=c
793# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
794ac_cpp='$CPP $CPPFLAGS'
795ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
796ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
797cross_compiling=$ac_cv_prog_cc_cross
798
799cat > conftest.$ac_ext << EOF
800
Theodore Ts'oa9d799a2002-11-08 13:50:51 -0500801#line 802 "configure"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000802#include "confdefs.h"
803
804main(){return(0);}
805EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -0500806if { (eval echo configure:807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000807 ac_cv_prog_cc_works=yes
808 # If we can't run a trivial program, we are probably using a cross compiler.
809 if (./conftest; exit) 2>/dev/null; then
810 ac_cv_prog_cc_cross=no
811 else
812 ac_cv_prog_cc_cross=yes
813 fi
814else
815 echo "configure: failed program was:" >&5
816 cat conftest.$ac_ext >&5
817 ac_cv_prog_cc_works=no
818fi
819rm -fr conftest*
820ac_ext=c
821# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
822ac_cpp='$CPP $CPPFLAGS'
823ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
824ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
825cross_compiling=$ac_cv_prog_cc_cross
826
827echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
828if test $ac_cv_prog_cc_works = no; then
829 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
830fi
831echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -0500832echo "configure:833: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000833echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
834cross_compiling=$ac_cv_prog_cc_cross
835
836echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -0500837echo "configure:838: checking whether we are using GNU C" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000838if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
839 echo $ac_n "(cached) $ac_c" 1>&6
840else
841 cat > conftest.c <<EOF
842#ifdef __GNUC__
843 yes;
844#endif
845EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -0500846if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:847: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000847 ac_cv_prog_gcc=yes
848else
849 ac_cv_prog_gcc=no
850fi
851fi
852
853echo "$ac_t""$ac_cv_prog_gcc" 1>&6
854
855if test $ac_cv_prog_gcc = yes; then
856 GCC=yes
857else
858 GCC=
859fi
860
861ac_test_CFLAGS="${CFLAGS+set}"
862ac_save_CFLAGS="$CFLAGS"
863CFLAGS=
864echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -0500865echo "configure:866: checking whether ${CC-cc} accepts -g" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000866if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
867 echo $ac_n "(cached) $ac_c" 1>&6
868else
869 echo 'void f(){}' > conftest.c
870if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
871 ac_cv_prog_cc_g=yes
872else
873 ac_cv_prog_cc_g=no
874fi
875rm -f conftest*
876
877fi
878
879echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
880if test "$ac_test_CFLAGS" = set; then
881 CFLAGS="$ac_save_CFLAGS"
882elif test $ac_cv_prog_cc_g = yes; then
883 if test "$GCC" = yes; then
884 CFLAGS="-g -O2"
885 else
886 CFLAGS="-g"
887 fi
888else
889 if test "$GCC" = yes; then
890 CFLAGS="-O2"
891 else
892 CFLAGS=
893 fi
894fi
895
Theodore Ts'o74becf31997-04-26 14:37:06 +0000896# Check whether --with-linker or --without-linker was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000897if test "${with_linker+set}" = set; then
898 withval="$with_linker"
Theodore Ts'o74becf31997-04-26 14:37:06 +0000899 echo "$ac_t""LD=$withval" 1>&6
900LD=$withval
901else
902 if test -z "$LD" ; then LD=$CC; fi
903echo "$ac_t""LD defaults to $LD" 1>&6
904fi
905export LD
906
907# Check whether --with-ccopts or --without-ccopts was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000908if test "${with_ccopts+set}" = set; then
909 withval="$with_ccopts"
Theodore Ts'o74becf31997-04-26 14:37:06 +0000910 echo "$ac_t""CCOPTS is $withval" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +0000911CFLAGS=$withval
Theodore Ts'o74becf31997-04-26 14:37:06 +0000912fi
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000913echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -0500914echo "configure:915: checking how to run the C preprocessor" >&5
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000915# On Suns, sometimes $CPP names a directory.
916if test -n "$CPP" && test -d "$CPP"; then
917 CPP=
918fi
919if test -z "$CPP"; then
920if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
921 echo $ac_n "(cached) $ac_c" 1>&6
922else
923 # This must be in double quotes, not single quotes, because CPP may get
924 # substituted into the Makefile and "${CC-cc}" will confuse make.
925 CPP="${CC-cc} -E"
926 # On the NeXT, cc -E runs the code through the compiler's parser,
927 # not just through cpp.
928 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -0500929#line 930 "configure"
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000930#include "confdefs.h"
931#include <assert.h>
932Syntax Error
933EOF
934ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'oa9d799a2002-11-08 13:50:51 -0500935{ (eval echo configure:936: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000936ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
937if test -z "$ac_err"; then
938 :
939else
940 echo "$ac_err" >&5
941 echo "configure: failed program was:" >&5
942 cat conftest.$ac_ext >&5
943 rm -rf conftest*
944 CPP="${CC-cc} -E -traditional-cpp"
945 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -0500946#line 947 "configure"
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000947#include "confdefs.h"
948#include <assert.h>
949Syntax Error
950EOF
951ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'oa9d799a2002-11-08 13:50:51 -0500952{ (eval echo configure:953: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000953ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
954if test -z "$ac_err"; then
955 :
956else
957 echo "$ac_err" >&5
958 echo "configure: failed program was:" >&5
959 cat conftest.$ac_ext >&5
960 rm -rf conftest*
961 CPP="${CC-cc} -nologo -E"
962 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -0500963#line 964 "configure"
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000964#include "confdefs.h"
965#include <assert.h>
966Syntax Error
967EOF
968ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'oa9d799a2002-11-08 13:50:51 -0500969{ (eval echo configure:970: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000970ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
971if test -z "$ac_err"; then
972 :
973else
974 echo "$ac_err" >&5
975 echo "configure: failed program was:" >&5
976 cat conftest.$ac_ext >&5
977 rm -rf conftest*
978 CPP=/lib/cpp
979fi
980rm -f conftest*
981fi
982rm -f conftest*
983fi
984rm -f conftest*
985 ac_cv_prog_CPP="$CPP"
986fi
987 CPP="$ac_cv_prog_CPP"
988else
989 ac_cv_prog_CPP="$CPP"
990fi
991echo "$ac_t""$CPP" 1>&6
992
993ac_safe=`echo "linux/fs.h" | sed 'y%./+-%__p_%'`
994echo $ac_n "checking for linux/fs.h""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -0500995echo "configure:996: checking for linux/fs.h" >&5
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000996if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
997 echo $ac_n "(cached) $ac_c" 1>&6
998else
999 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05001000#line 1001 "configure"
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001001#include "confdefs.h"
1002#include <linux/fs.h>
1003EOF
1004ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05001005{ (eval echo configure:1006: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001006ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1007if test -z "$ac_err"; then
1008 rm -rf conftest*
1009 eval "ac_cv_header_$ac_safe=yes"
1010else
1011 echo "$ac_err" >&5
1012 echo "configure: failed program was:" >&5
1013 cat conftest.$ac_ext >&5
1014 rm -rf conftest*
1015 eval "ac_cv_header_$ac_safe=no"
1016fi
1017rm -f conftest*
1018fi
1019if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1020 echo "$ac_t""yes" 1>&6
1021 linux_headers=yes
1022else
1023 echo "$ac_t""no" 1>&6
1024linux_headers=no
1025fi
1026
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001027if test "$linux_headers" != yes; then
1028 LINUX_INCLUDE='-I$(top_builddir)/include'
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001029fi
1030
Theodore Ts'oa4d09611997-04-29 14:28:00 +00001031LIB_EXT=.a
1032STATIC_LIB_EXT=.a
1033PROFILE_LIB_EXT=.a
Theodore Ts'o74becf31997-04-26 14:37:06 +00001034# Check whether --with-ldopts or --without-ldopts was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001035if test "${with_ldopts+set}" = set; then
1036 withval="$with_ldopts"
Theodore Ts'o74becf31997-04-26 14:37:06 +00001037 echo "$ac_t""LDFLAGS is $withval" 1>&6
1038LDFLAGS=$withval
1039else
1040 LDFLAGS=
1041fi
1042
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00001043# Check whether --with-root-prefix or --without-root-prefix was given.
1044if test "${with_root_prefix+set}" = set; then
1045 withval="$with_root_prefix"
1046 root_prefix=$withval
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001047else
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00001048 root_prefix=NONE
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001049fi
Theodore Ts'o19178752000-02-11 15:55:07 +00001050# Check whether --enable-compression or --disable-compression was given.
1051if test "${enable_compression+set}" = set; then
1052 enableval="$enable_compression"
1053 if test "$enableval" = "no"
1054then
1055 echo "Disabling compression support"
1056else
1057 cat >> confdefs.h <<\EOF
1058#define ENABLE_COMPRESSION 1
1059EOF
1060
1061 echo "Enabling compression support"
1062 echo "WARNING: Compression support is experimental"
1063fi
1064
1065else
1066 echo "Disabling compression support by default"
1067
1068fi
1069
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04001070# Check whether --enable-htree or --disable-htree was given.
1071if test "${enable_htree+set}" = set; then
1072 enableval="$enable_htree"
1073 if test "$enableval" = "no"
1074then
1075 HTREE_CMT=#
1076 echo "Disabling htree directory support"
1077else
1078 HTREE_CMT=
1079 cat >> confdefs.h <<\EOF
1080#define ENABLE_HTREE 1
1081EOF
1082
1083 echo "Enabling htree directory support"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04001084fi
1085
1086else
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04001087 HTREE_CMT=
1088cat >> confdefs.h <<\EOF
1089#define ENABLE_HTREE 1
1090EOF
1091
1092echo "Enabling htree directory support by default"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04001093
1094fi
1095
1096
1097# Check whether --enable-htree-clear or --disable-htree-clear was given.
1098if test "${enable_htree_clear+set}" = set; then
1099 enableval="$enable_htree_clear"
1100 if test "$enableval" = "no"
1101then
1102 HTREE_CLR_CMT=#
1103 echo "Disabling htree clearing"
1104else
1105 HTREE_CLR_CMT=
1106 cat >> confdefs.h <<\EOF
1107#define ENABLE_HTREE_CLEAR 1
1108EOF
1109
1110 echo "Enabling htree clearing"
1111fi
1112
1113else
1114 HTREE_CLR_CMT=#
1115echo "Disabling htree clearing by default"
1116
1117fi
1118
1119
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05001120EVMS_ABI_CODE=120
1121# Check whether --enable-evms-10 or --disable-evms-10 was given.
1122if test "${enable_evms_10+set}" = set; then
1123 enableval="$enable_evms_10"
1124 if test "$enableval" != "no"
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04001125then
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05001126 EVMS_ABI_CODE=100
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04001127 echo "Enabling EVMS 1.0.0 ABI"
1128fi
1129
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05001130fi
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04001131
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05001132# Check whether --enable-evms-11 or --disable-evms-11 was given.
1133if test "${enable_evms_11+set}" = set; then
1134 enableval="$enable_evms_11"
1135 if test "$enableval" != "no"
1136then
1137 EVMS_ABI_CODE=110
1138 echo "Enabling EVMS 1.1.0 ABI"
1139fi
1140
1141fi
1142
1143if test "$EVMS_ABI_CODE" = "120"
1144then
1145 echo "Using EVMS 1.2.0 ABI by default"
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04001146fi
1147
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001148# Check whether --enable-dll-shlibs or --disable-dll-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001149if test "${enable_dll_shlibs+set}" = set; then
1150 enableval="$enable_dll_shlibs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001151 if test "$enableval" = "no"
1152then
1153 DLL_CMT=#
1154 MAKEFILE_DLL=/dev/null
1155 echo "Disabling DLL shared libraries"
1156else
1157 DLL_CMT=
1158 MAKEFILE_DLL=$srcdir/lib/Makefile.dll-lib
Theodore Ts'o74becf31997-04-26 14:37:06 +00001159 BINARY_TYPE=dllbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00001160 LIB_EXT=.sa
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001161 echo "Enabling DLL shared libraries"
1162fi
1163
1164else
1165 MAKEFILE_DLL=/dev/null
1166DLL_CMT=#
1167echo "Disabling DLL shared libraries by default"
1168
1169fi
1170
1171
1172
1173# Check whether --enable-elf-shlibs or --disable-elf-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001174if test "${enable_elf_shlibs+set}" = set; then
1175 enableval="$enable_elf_shlibs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001176 if test "$enableval" = "no"
1177then
1178 ELF_CMT=#
1179 MAKEFILE_ELF=/dev/null
1180 echo "Disabling ELF shared libraries"
1181else
1182 ELF_CMT=
1183 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
Theodore Ts'of5955dd2000-10-25 02:38:39 +00001184 case "$host_os" in
1185 solaris2.*)
1186 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
1187 ;;
1188 esac
Theodore Ts'o74becf31997-04-26 14:37:06 +00001189 BINARY_TYPE=elfbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00001190 LIB_EXT=.so
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001191 echo "Enabling ELF shared libraries"
1192fi
1193
1194else
1195 MAKEFILE_ELF=/dev/null
1196ELF_CMT=#
1197echo "Disabling ELF shared libraries by default"
1198
1199fi
1200
1201
1202
1203# Check whether --enable-bsd-shlibs or --disable-bsd-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001204if test "${enable_bsd_shlibs+set}" = set; then
1205 enableval="$enable_bsd_shlibs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001206 if test "$enableval" = "no"
1207then
1208 BSDLIB_CMT=#
1209 MAKEFILE_BSDLIB=/dev/null
1210 echo "Disabling BSD shared libraries"
1211else
1212 BSDLIB_CMT=
1213 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
Theodore Ts'oa4d09611997-04-29 14:28:00 +00001214 LIB_EXT=.so
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001215 echo "Enabling BSD shared libraries"
1216fi
1217
1218else
1219 MAKEFILE_BSDLIB=/dev/null
1220BSDLIB_CMT=#
1221echo "Disabling BSD shared libraries by default"
1222
1223fi
1224
1225
1226
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001227# Check whether --enable-profile or --disable-profile was given.
1228if test "${enable_profile+set}" = set; then
1229 enableval="$enable_profile"
1230 if test "$enableval" = "no"
1231then
1232 PROFILE_CMT=#
1233 MAKEFILE_PROFILE=/dev/null
1234 echo "Disabling profiling libraries"
1235else
1236 PROFILE_CMT=
1237 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
1238 PROFILED_LIB_EXT=_p.a
1239 echo "Building profiling libraries"
1240fi
1241
1242else
1243 PROFILE_CMT=#
1244MAKEFILE_PROFILE=/dev/null
1245echo "Disabling profiling libraries by default"
1246
1247fi
1248
1249
1250
1251# Check whether --enable-checker or --disable-checker was given.
1252if test "${enable_checker+set}" = set; then
1253 enableval="$enable_checker"
1254 if test "$enableval" = "no"
1255then
1256 CHECKER_CMT=#
1257 MAKEFILE_CHECKER=/dev/null
1258 echo "Disabling checker libraries"
1259else
1260 CHECKER_CMT=
1261 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
1262 echo "Building checker libraries"
1263fi
1264
1265else
1266 CHECKER_CMT=#
1267MAKEFILE_CHECKER=/dev/null
1268echo "Disabling checker libraries by default"
1269
1270fi
1271
1272
1273
1274
1275
1276
Theodore Ts'o782bebf2002-11-08 18:46:45 -05001277# Check whether --enable-jbd-debug or --disable-jbd-debug was given.
1278if test "${enable_jbd_debug+set}" = set; then
1279 enableval="$enable_jbd_debug"
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00001280 if test "$enableval" = "no"
1281then
1282 echo "Disabling journal debugging"
1283else
1284 cat >> confdefs.h <<\EOF
Theodore Ts'o8cf93332001-12-16 02:23:36 -05001285#define CONFIG_JBD_DEBUG 1
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00001286EOF
1287
1288 echo "Enabling journal debugging"
1289fi
1290
1291else
1292 echo "Disabling journal debugging by default"
1293
1294fi
1295
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001296# Check whether --enable-swapfs or --disable-swapfs was given.
1297if test "${enable_swapfs+set}" = set; then
1298 enableval="$enable_swapfs"
1299 if test "$enableval" = "no"
1300then
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05001301 SWAPFS_CMT=#
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001302 echo "Disabling swapfs support"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001303else
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05001304 SWAPFS_CMT=
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001305 cat >> confdefs.h <<\EOF
1306#define ENABLE_SWAPFS 1
1307EOF
1308
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001309 echo "Enabling swapfs support"
1310fi
1311
1312else
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05001313 SWAPFS_CMT=
1314echo "Enabling swapfs support by default"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001315cat >> confdefs.h <<\EOF
1316#define ENABLE_SWAPFS 1
1317EOF
1318
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001319
1320fi
1321
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05001322
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001323# Check whether --enable-debugfs or --disable-debugfs was given.
1324if test "${enable_debugfs+set}" = set; then
1325 enableval="$enable_debugfs"
1326 if test "$enableval" = "no"
1327then
1328 echo "Disabling debugfs support"
1329 DEBUGFS_CMT="#"
1330else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001331 DEBUGFS_CMT=
1332 echo "Enabling debugfs support"
1333fi
1334
1335else
1336 echo "Enabling debugfs support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001337DEBUGFS_CMT=
1338
1339fi
1340
1341
1342# Check whether --enable-imager or --disable-imager was given.
1343if test "${enable_imager+set}" = set; then
1344 enableval="$enable_imager"
1345 if test "$enableval" = "no"
1346then
1347 echo "Disabling e2image support"
1348 IMAGER_CMT="#"
1349else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001350 IMAGER_CMT=
1351 echo "Enabling e2image support"
1352fi
1353
1354else
1355 echo "Enabling e2image support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001356IMAGER_CMT=
1357
1358fi
1359
1360
1361# Check whether --enable-resizer or --disable-resizer was given.
1362if test "${enable_resizer+set}" = set; then
1363 enableval="$enable_resizer"
1364 if test "$enableval" = "no"
1365then
1366 echo "Disabling e2resize support"
1367 RESIZER_CMT="#"
1368else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001369 RESIZER_CMT=
1370 echo "Enabling e2resize support"
1371fi
1372
1373else
1374 echo "Enabling e2resize support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001375RESIZER_CMT=
1376
1377fi
1378
1379
1380# Check whether --enable-dynamic-e2fsck or --disable-dynamic-e2fsck was given.
1381if test "${enable_dynamic_e2fsck+set}" = set; then
1382 enableval="$enable_dynamic_e2fsck"
1383 if test "$enableval" = "no"
1384then
1385 E2FSCK_TYPE=static
1386 echo "Building e2fsck statically"
1387else
1388 E2FSCK_TYPE=shared
1389 echo "Building e2fsck dynamically"
1390fi
1391
1392else
1393 E2FSCK_TYPE=static
1394echo "Building e2fsck statically by default"
1395
1396fi
1397
1398
1399# Check whether --enable-fsck or --disable-fsck was given.
1400if test "${enable_fsck+set}" = set; then
1401 enableval="$enable_fsck"
1402 if test "$enableval" = "no"
1403then
1404 FSCK_PROG='' FSCK_MAN=''
1405 echo "Not building fsck wrapper"
1406else
1407 FSCK_PROG=fsck FSCK_MAN=fsck.8
1408 echo "Building fsck wrapper"
1409fi
1410
1411else
1412 case "$host_os" in
1413 gnu*)
1414 FSCK_PROG='' FSCK_MAN=''
1415 echo "Not building fsck wrapper by default"
1416 ;;
1417 *)
1418 FSCK_PROG=fsck FSCK_MAN=fsck.8
1419 echo "Building fsck wrapper by default"
1420esac
1421
1422fi
1423
1424
1425
1426MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
1427
1428# Check whether --enable-old-bitops or --disable-old-bitops was given.
1429if test "${enable_old_bitops+set}" = set; then
1430 enableval="$enable_old_bitops"
1431 if test "$enableval" = "no"
1432then
1433 echo "Using new (standard) bitmask operations"
1434else
1435 cat >> confdefs.h <<\EOF
1436#define EXT2_OLD_BITOPS 1
1437EOF
1438
1439 echo "Using old (native) bitmask operations"
1440
1441fi
1442
1443else
1444 echo "Using standard bitmask operations by default"
1445
1446fi
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001447
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001448PACKAGE=e2fsprogs
1449VERSION="$E2FSPROGS_VERSION"
1450cat >> confdefs.h <<EOF
1451#define PACKAGE "$PACKAGE"
1452EOF
1453
1454cat >> confdefs.h <<EOF
1455#define VERSION "$VERSION"
1456EOF
1457
1458
1459
1460
Theodore Ts'o6e71e672001-10-08 12:51:00 -04001461ALL_LINGUAS="it nyc tr"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001462echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05001463echo "configure:1464: checking whether ${MAKE-make} sets \${MAKE}" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001464set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1465if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1466 echo $ac_n "(cached) $ac_c" 1>&6
1467else
1468 cat > conftestmake <<\EOF
1469all:
1470 @echo 'ac_maketemp="${MAKE}"'
1471EOF
1472# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1473eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1474if test -n "$ac_maketemp"; then
1475 eval ac_cv_prog_make_${ac_make}_set=yes
1476else
1477 eval ac_cv_prog_make_${ac_make}_set=no
1478fi
1479rm -f conftestmake
1480fi
1481if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1482 echo "$ac_t""yes" 1>&6
1483 SET_MAKE=
1484else
1485 echo "$ac_t""no" 1>&6
1486 SET_MAKE="MAKE=${MAKE-make}"
1487fi
1488
1489# Extract the first word of "ranlib", so it can be a program name with args.
1490set dummy ranlib; ac_word=$2
1491echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05001492echo "configure:1493: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001493if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1494 echo $ac_n "(cached) $ac_c" 1>&6
1495else
1496 if test -n "$RANLIB"; then
1497 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1498else
1499 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1500 ac_dummy="$PATH"
1501 for ac_dir in $ac_dummy; do
1502 test -z "$ac_dir" && ac_dir=.
1503 if test -f $ac_dir/$ac_word; then
1504 ac_cv_prog_RANLIB="ranlib"
1505 break
1506 fi
1507 done
1508 IFS="$ac_save_ifs"
1509 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1510fi
1511fi
1512RANLIB="$ac_cv_prog_RANLIB"
1513if test -n "$RANLIB"; then
1514 echo "$ac_t""$RANLIB" 1>&6
1515else
1516 echo "$ac_t""no" 1>&6
1517fi
1518
1519echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05001520echo "configure:1521: checking for POSIXized ISC" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001521if test -d /etc/conf/kconfig.d &&
1522 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1523then
1524 echo "$ac_t""yes" 1>&6
1525 ISC=yes # If later tests want to check for ISC.
1526 cat >> confdefs.h <<\EOF
1527#define _POSIX_SOURCE 1
1528EOF
1529
1530 if test "$GCC" = yes; then
1531 CC="$CC -posix"
1532 else
1533 CC="$CC -Xp"
1534 fi
1535else
1536 echo "$ac_t""no" 1>&6
1537 ISC=
1538fi
1539
1540echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05001541echo "configure:1542: checking for ANSI C header files" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001542if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1543 echo $ac_n "(cached) $ac_c" 1>&6
1544else
1545 cat > conftest.$ac_ext <<EOF
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05001546#line 1547 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001547#include "confdefs.h"
1548#include <stdlib.h>
1549#include <stdarg.h>
1550#include <string.h>
1551#include <float.h>
1552EOF
1553ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05001554{ (eval echo configure:1555: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001555ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1556if test -z "$ac_err"; then
1557 rm -rf conftest*
1558 ac_cv_header_stdc=yes
1559else
1560 echo "$ac_err" >&5
1561 echo "configure: failed program was:" >&5
1562 cat conftest.$ac_ext >&5
1563 rm -rf conftest*
1564 ac_cv_header_stdc=no
1565fi
1566rm -f conftest*
1567
1568if test $ac_cv_header_stdc = yes; then
1569 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1570cat > conftest.$ac_ext <<EOF
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05001571#line 1572 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001572#include "confdefs.h"
1573#include <string.h>
1574EOF
1575if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1576 egrep "memchr" >/dev/null 2>&1; then
1577 :
1578else
1579 rm -rf conftest*
1580 ac_cv_header_stdc=no
1581fi
1582rm -f conftest*
1583
1584fi
1585
1586if test $ac_cv_header_stdc = yes; then
1587 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1588cat > conftest.$ac_ext <<EOF
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05001589#line 1590 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001590#include "confdefs.h"
1591#include <stdlib.h>
1592EOF
1593if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1594 egrep "free" >/dev/null 2>&1; then
1595 :
1596else
1597 rm -rf conftest*
1598 ac_cv_header_stdc=no
1599fi
1600rm -f conftest*
1601
1602fi
1603
1604if test $ac_cv_header_stdc = yes; then
1605 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1606if test "$cross_compiling" = yes; then
1607 :
1608else
1609 cat > conftest.$ac_ext <<EOF
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05001610#line 1611 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001611#include "confdefs.h"
1612#include <ctype.h>
1613#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1614#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1615#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1616int main () { int i; for (i = 0; i < 256; i++)
1617if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1618exit (0); }
1619
1620EOF
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05001621if { (eval echo configure:1622: \"$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 +00001622then
1623 :
1624else
1625 echo "configure: failed program was:" >&5
1626 cat conftest.$ac_ext >&5
1627 rm -fr conftest*
1628 ac_cv_header_stdc=no
1629fi
1630rm -fr conftest*
1631fi
1632
1633fi
1634fi
1635
1636echo "$ac_t""$ac_cv_header_stdc" 1>&6
1637if test $ac_cv_header_stdc = yes; then
1638 cat >> confdefs.h <<\EOF
1639#define STDC_HEADERS 1
1640EOF
1641
1642fi
1643
1644echo $ac_n "checking for working const""... $ac_c" 1>&6
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05001645echo "configure:1646: checking for working const" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001646if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1647 echo $ac_n "(cached) $ac_c" 1>&6
1648else
1649 cat > conftest.$ac_ext <<EOF
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05001650#line 1651 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001651#include "confdefs.h"
1652
1653int main() {
1654
1655/* Ultrix mips cc rejects this. */
Theodore Ts'o250f79f2001-05-19 22:02:22 +00001656typedef int charset[2]; const charset x;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001657/* SunOS 4.1.1 cc rejects this. */
1658char const *const *ccp;
1659char **p;
1660/* NEC SVR4.0.2 mips cc rejects this. */
1661struct point {int x, y;};
1662static struct point const zero = {0,0};
1663/* AIX XL C 1.02.0.0 rejects this.
1664 It does not let you subtract one const X* pointer from another in an arm
1665 of an if-expression whose if-part is not a constant expression */
1666const char *g = "string";
1667ccp = &g + (g ? g-g : 0);
1668/* HPUX 7.0 cc rejects these. */
1669++ccp;
1670p = (char**) ccp;
1671ccp = (char const *const *) p;
1672{ /* SCO 3.2v4 cc rejects this. */
1673 char *t;
1674 char const *s = 0 ? (char *) 0 : (char const *) 0;
1675
1676 *t++ = 0;
1677}
1678{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1679 int x[] = {25, 17};
1680 const int *foo = &x[0];
1681 ++foo;
1682}
1683{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1684 typedef const int *iptr;
1685 iptr p = 0;
1686 ++p;
1687}
1688{ /* AIX XL C 1.02.0.0 rejects this saying
1689 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1690 struct s { int j; const int *ap[3]; };
1691 struct s *b; b->j = 5;
1692}
1693{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1694 const int foo = 10;
1695}
1696
1697; return 0; }
1698EOF
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05001699if { (eval echo configure:1700: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001700 rm -rf conftest*
1701 ac_cv_c_const=yes
1702else
1703 echo "configure: failed program was:" >&5
1704 cat conftest.$ac_ext >&5
1705 rm -rf conftest*
1706 ac_cv_c_const=no
1707fi
1708rm -f conftest*
1709fi
1710
1711echo "$ac_t""$ac_cv_c_const" 1>&6
1712if test $ac_cv_c_const = no; then
1713 cat >> confdefs.h <<\EOF
1714#define const
1715EOF
1716
1717fi
1718
1719echo $ac_n "checking for inline""... $ac_c" 1>&6
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05001720echo "configure:1721: checking for inline" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001721if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1722 echo $ac_n "(cached) $ac_c" 1>&6
1723else
1724 ac_cv_c_inline=no
1725for ac_kw in inline __inline__ __inline; do
1726 cat > conftest.$ac_ext <<EOF
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05001727#line 1728 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001728#include "confdefs.h"
1729
1730int main() {
Theodore Ts'o250f79f2001-05-19 22:02:22 +00001731} $ac_kw foo() {
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001732; return 0; }
1733EOF
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05001734if { (eval echo configure:1735: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001735 rm -rf conftest*
1736 ac_cv_c_inline=$ac_kw; break
1737else
1738 echo "configure: failed program was:" >&5
1739 cat conftest.$ac_ext >&5
1740fi
1741rm -f conftest*
1742done
1743
1744fi
1745
1746echo "$ac_t""$ac_cv_c_inline" 1>&6
1747case "$ac_cv_c_inline" in
1748 inline | yes) ;;
1749 no) cat >> confdefs.h <<\EOF
1750#define inline
1751EOF
1752 ;;
1753 *) cat >> confdefs.h <<EOF
1754#define inline $ac_cv_c_inline
1755EOF
1756 ;;
1757esac
1758
1759echo $ac_n "checking for off_t""... $ac_c" 1>&6
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05001760echo "configure:1761: checking for off_t" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001761if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1762 echo $ac_n "(cached) $ac_c" 1>&6
1763else
1764 cat > conftest.$ac_ext <<EOF
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05001765#line 1766 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001766#include "confdefs.h"
1767#include <sys/types.h>
1768#if STDC_HEADERS
1769#include <stdlib.h>
1770#include <stddef.h>
1771#endif
1772EOF
1773if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1774 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1775 rm -rf conftest*
1776 ac_cv_type_off_t=yes
1777else
1778 rm -rf conftest*
1779 ac_cv_type_off_t=no
1780fi
1781rm -f conftest*
1782
1783fi
1784echo "$ac_t""$ac_cv_type_off_t" 1>&6
1785if test $ac_cv_type_off_t = no; then
1786 cat >> confdefs.h <<\EOF
1787#define off_t long
1788EOF
1789
1790fi
1791
1792echo $ac_n "checking for size_t""... $ac_c" 1>&6
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05001793echo "configure:1794: checking for size_t" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001794if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1795 echo $ac_n "(cached) $ac_c" 1>&6
1796else
1797 cat > conftest.$ac_ext <<EOF
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05001798#line 1799 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001799#include "confdefs.h"
1800#include <sys/types.h>
1801#if STDC_HEADERS
1802#include <stdlib.h>
1803#include <stddef.h>
1804#endif
1805EOF
1806if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1807 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1808 rm -rf conftest*
1809 ac_cv_type_size_t=yes
1810else
1811 rm -rf conftest*
1812 ac_cv_type_size_t=no
1813fi
1814rm -f conftest*
1815
1816fi
1817echo "$ac_t""$ac_cv_type_size_t" 1>&6
1818if test $ac_cv_type_size_t = no; then
1819 cat >> confdefs.h <<\EOF
1820#define size_t unsigned
1821EOF
1822
1823fi
1824
1825# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1826# for constant arguments. Useless!
1827echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05001828echo "configure:1829: checking for working alloca.h" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001829if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1830 echo $ac_n "(cached) $ac_c" 1>&6
1831else
1832 cat > conftest.$ac_ext <<EOF
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05001833#line 1834 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001834#include "confdefs.h"
1835#include <alloca.h>
1836int main() {
Theodore Ts'o250f79f2001-05-19 22:02:22 +00001837char *p = alloca(2 * sizeof(int));
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001838; return 0; }
1839EOF
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05001840if { (eval echo configure:1841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001841 rm -rf conftest*
1842 ac_cv_header_alloca_h=yes
1843else
1844 echo "configure: failed program was:" >&5
1845 cat conftest.$ac_ext >&5
1846 rm -rf conftest*
1847 ac_cv_header_alloca_h=no
1848fi
1849rm -f conftest*
1850fi
1851
1852echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1853if test $ac_cv_header_alloca_h = yes; then
1854 cat >> confdefs.h <<\EOF
1855#define HAVE_ALLOCA_H 1
1856EOF
1857
1858fi
1859
1860echo $ac_n "checking for alloca""... $ac_c" 1>&6
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05001861echo "configure:1862: checking for alloca" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001862if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1863 echo $ac_n "(cached) $ac_c" 1>&6
1864else
1865 cat > conftest.$ac_ext <<EOF
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05001866#line 1867 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001867#include "confdefs.h"
1868
1869#ifdef __GNUC__
1870# define alloca __builtin_alloca
1871#else
1872# ifdef _MSC_VER
1873# include <malloc.h>
1874# define alloca _alloca
1875# else
1876# if HAVE_ALLOCA_H
1877# include <alloca.h>
1878# else
1879# ifdef _AIX
1880 #pragma alloca
1881# else
1882# ifndef alloca /* predefined by HP cc +Olibcalls */
1883char *alloca ();
1884# endif
1885# endif
1886# endif
1887# endif
1888#endif
1889
1890int main() {
1891char *p = (char *) alloca(1);
1892; return 0; }
1893EOF
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05001894if { (eval echo configure:1895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001895 rm -rf conftest*
1896 ac_cv_func_alloca_works=yes
1897else
1898 echo "configure: failed program was:" >&5
1899 cat conftest.$ac_ext >&5
1900 rm -rf conftest*
1901 ac_cv_func_alloca_works=no
1902fi
1903rm -f conftest*
1904fi
1905
1906echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1907if test $ac_cv_func_alloca_works = yes; then
1908 cat >> confdefs.h <<\EOF
1909#define HAVE_ALLOCA 1
1910EOF
1911
1912fi
1913
1914if test $ac_cv_func_alloca_works = no; then
1915 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1916 # that cause trouble. Some versions do not even contain alloca or
1917 # contain a buggy version. If you still want to use their alloca,
1918 # use ar to extract alloca.o from them instead of compiling alloca.c.
1919 ALLOCA=alloca.${ac_objext}
1920 cat >> confdefs.h <<\EOF
1921#define C_ALLOCA 1
1922EOF
1923
1924
1925echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05001926echo "configure:1927: checking whether alloca needs Cray hooks" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001927if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1928 echo $ac_n "(cached) $ac_c" 1>&6
1929else
1930 cat > conftest.$ac_ext <<EOF
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05001931#line 1932 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001932#include "confdefs.h"
1933#if defined(CRAY) && ! defined(CRAY2)
1934webecray
1935#else
1936wenotbecray
1937#endif
1938
1939EOF
1940if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1941 egrep "webecray" >/dev/null 2>&1; then
1942 rm -rf conftest*
1943 ac_cv_os_cray=yes
1944else
1945 rm -rf conftest*
1946 ac_cv_os_cray=no
1947fi
1948rm -f conftest*
1949
1950fi
1951
1952echo "$ac_t""$ac_cv_os_cray" 1>&6
1953if test $ac_cv_os_cray = yes; then
1954for ac_func in _getb67 GETB67 getb67; do
1955 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05001956echo "configure:1957: checking for $ac_func" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001957if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1958 echo $ac_n "(cached) $ac_c" 1>&6
1959else
1960 cat > conftest.$ac_ext <<EOF
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05001961#line 1962 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001962#include "confdefs.h"
1963/* System header to define __stub macros and hopefully few prototypes,
1964 which can conflict with char $ac_func(); below. */
1965#include <assert.h>
1966/* Override any gcc2 internal prototype to avoid an error. */
1967/* We use char because int might match the return type of a gcc2
1968 builtin and then its argument prototype would still apply. */
1969char $ac_func();
1970
1971int main() {
1972
1973/* The GNU C library defines this for functions which it implements
1974 to always fail with ENOSYS. Some functions are actually named
1975 something starting with __ and the normal name is an alias. */
1976#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1977choke me
1978#else
1979$ac_func();
1980#endif
1981
1982; return 0; }
1983EOF
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05001984if { (eval echo configure:1985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001985 rm -rf conftest*
1986 eval "ac_cv_func_$ac_func=yes"
1987else
1988 echo "configure: failed program was:" >&5
1989 cat conftest.$ac_ext >&5
1990 rm -rf conftest*
1991 eval "ac_cv_func_$ac_func=no"
1992fi
1993rm -f conftest*
1994fi
1995
1996if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1997 echo "$ac_t""yes" 1>&6
1998 cat >> confdefs.h <<EOF
1999#define CRAY_STACKSEG_END $ac_func
2000EOF
2001
2002 break
2003else
2004 echo "$ac_t""no" 1>&6
2005fi
2006
2007done
2008fi
2009
2010echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05002011echo "configure:2012: checking stack direction for C alloca" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002012if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2013 echo $ac_n "(cached) $ac_c" 1>&6
2014else
2015 if test "$cross_compiling" = yes; then
2016 ac_cv_c_stack_direction=0
2017else
2018 cat > conftest.$ac_ext <<EOF
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05002019#line 2020 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002020#include "confdefs.h"
2021find_stack_direction ()
2022{
2023 static char *addr = 0;
2024 auto char dummy;
2025 if (addr == 0)
2026 {
2027 addr = &dummy;
2028 return find_stack_direction ();
2029 }
2030 else
2031 return (&dummy > addr) ? 1 : -1;
2032}
2033main ()
2034{
2035 exit (find_stack_direction() < 0);
2036}
2037EOF
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05002038if { (eval echo configure:2039: \"$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 +00002039then
2040 ac_cv_c_stack_direction=1
2041else
2042 echo "configure: failed program was:" >&5
2043 cat conftest.$ac_ext >&5
2044 rm -fr conftest*
2045 ac_cv_c_stack_direction=-1
2046fi
2047rm -fr conftest*
2048fi
2049
2050fi
2051
2052echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2053cat >> confdefs.h <<EOF
2054#define STACK_DIRECTION $ac_cv_c_stack_direction
2055EOF
2056
2057fi
2058
2059for ac_hdr in unistd.h
2060do
2061ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2062echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05002063echo "configure:2064: checking for $ac_hdr" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002064if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2065 echo $ac_n "(cached) $ac_c" 1>&6
2066else
2067 cat > conftest.$ac_ext <<EOF
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05002068#line 2069 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002069#include "confdefs.h"
2070#include <$ac_hdr>
2071EOF
2072ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05002073{ (eval echo configure:2074: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002074ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2075if test -z "$ac_err"; then
2076 rm -rf conftest*
2077 eval "ac_cv_header_$ac_safe=yes"
2078else
2079 echo "$ac_err" >&5
2080 echo "configure: failed program was:" >&5
2081 cat conftest.$ac_ext >&5
2082 rm -rf conftest*
2083 eval "ac_cv_header_$ac_safe=no"
2084fi
2085rm -f conftest*
2086fi
2087if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2088 echo "$ac_t""yes" 1>&6
2089 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2090 cat >> confdefs.h <<EOF
2091#define $ac_tr_hdr 1
2092EOF
2093
2094else
2095 echo "$ac_t""no" 1>&6
2096fi
2097done
2098
2099for ac_func in getpagesize
2100do
2101echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05002102echo "configure:2103: checking for $ac_func" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002103if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2104 echo $ac_n "(cached) $ac_c" 1>&6
2105else
2106 cat > conftest.$ac_ext <<EOF
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05002107#line 2108 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002108#include "confdefs.h"
2109/* System header to define __stub macros and hopefully few prototypes,
2110 which can conflict with char $ac_func(); below. */
2111#include <assert.h>
2112/* Override any gcc2 internal prototype to avoid an error. */
2113/* We use char because int might match the return type of a gcc2
2114 builtin and then its argument prototype would still apply. */
2115char $ac_func();
2116
2117int main() {
2118
2119/* The GNU C library defines this for functions which it implements
2120 to always fail with ENOSYS. Some functions are actually named
2121 something starting with __ and the normal name is an alias. */
2122#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2123choke me
2124#else
2125$ac_func();
2126#endif
2127
2128; return 0; }
2129EOF
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05002130if { (eval echo configure:2131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002131 rm -rf conftest*
2132 eval "ac_cv_func_$ac_func=yes"
2133else
2134 echo "configure: failed program was:" >&5
2135 cat conftest.$ac_ext >&5
2136 rm -rf conftest*
2137 eval "ac_cv_func_$ac_func=no"
2138fi
2139rm -f conftest*
2140fi
2141
2142if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2143 echo "$ac_t""yes" 1>&6
2144 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2145 cat >> confdefs.h <<EOF
2146#define $ac_tr_func 1
2147EOF
2148
2149else
2150 echo "$ac_t""no" 1>&6
2151fi
2152done
2153
2154echo $ac_n "checking for working mmap""... $ac_c" 1>&6
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05002155echo "configure:2156: checking for working mmap" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002156if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2157 echo $ac_n "(cached) $ac_c" 1>&6
2158else
2159 if test "$cross_compiling" = yes; then
2160 ac_cv_func_mmap_fixed_mapped=no
2161else
2162 cat > conftest.$ac_ext <<EOF
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05002163#line 2164 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002164#include "confdefs.h"
2165
2166/* Thanks to Mike Haertel and Jim Avera for this test.
2167 Here is a matrix of mmap possibilities:
2168 mmap private not fixed
2169 mmap private fixed at somewhere currently unmapped
2170 mmap private fixed at somewhere already mapped
2171 mmap shared not fixed
2172 mmap shared fixed at somewhere currently unmapped
2173 mmap shared fixed at somewhere already mapped
2174 For private mappings, we should verify that changes cannot be read()
2175 back from the file, nor mmap's back from the file at a different
2176 address. (There have been systems where private was not correctly
2177 implemented like the infamous i386 svr4.0, and systems where the
2178 VM page cache was not coherent with the filesystem buffer cache
2179 like early versions of FreeBSD and possibly contemporary NetBSD.)
2180 For shared mappings, we should conversely verify that changes get
2181 propogated back to all the places they're supposed to be.
2182
2183 Grep wants private fixed already mapped.
2184 The main things grep needs to know about mmap are:
2185 * does it exist and is it safe to write into the mmap'd area
2186 * how to use it (BSD variants) */
2187#include <sys/types.h>
2188#include <fcntl.h>
2189#include <sys/mman.h>
2190
2191/* This mess was copied from the GNU getpagesize.h. */
2192#ifndef HAVE_GETPAGESIZE
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002193# ifdef HAVE_UNISTD_H
2194# include <unistd.h>
2195# endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002196
2197/* Assume that all systems that can run configure have sys/param.h. */
2198# ifndef HAVE_SYS_PARAM_H
2199# define HAVE_SYS_PARAM_H 1
2200# endif
2201
2202# ifdef _SC_PAGESIZE
2203# define getpagesize() sysconf(_SC_PAGESIZE)
2204# else /* no _SC_PAGESIZE */
2205# ifdef HAVE_SYS_PARAM_H
2206# include <sys/param.h>
2207# ifdef EXEC_PAGESIZE
2208# define getpagesize() EXEC_PAGESIZE
2209# else /* no EXEC_PAGESIZE */
2210# ifdef NBPG
2211# define getpagesize() NBPG * CLSIZE
2212# ifndef CLSIZE
2213# define CLSIZE 1
2214# endif /* no CLSIZE */
2215# else /* no NBPG */
2216# ifdef NBPC
2217# define getpagesize() NBPC
2218# else /* no NBPC */
2219# ifdef PAGESIZE
2220# define getpagesize() PAGESIZE
2221# endif /* PAGESIZE */
2222# endif /* no NBPC */
2223# endif /* no NBPG */
2224# endif /* no EXEC_PAGESIZE */
2225# else /* no HAVE_SYS_PARAM_H */
2226# define getpagesize() 8192 /* punt totally */
2227# endif /* no HAVE_SYS_PARAM_H */
2228# endif /* no _SC_PAGESIZE */
2229
2230#endif /* no HAVE_GETPAGESIZE */
2231
2232#ifdef __cplusplus
2233extern "C" { void *malloc(unsigned); }
2234#else
2235char *malloc();
2236#endif
2237
2238int
2239main()
2240{
2241 char *data, *data2, *data3;
2242 int i, pagesize;
2243 int fd;
2244
2245 pagesize = getpagesize();
2246
2247 /*
2248 * First, make a file with some known garbage in it.
2249 */
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002250 data = malloc(pagesize);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002251 if (!data)
2252 exit(1);
2253 for (i = 0; i < pagesize; ++i)
2254 *(data + i) = rand();
2255 umask(0);
2256 fd = creat("conftestmmap", 0600);
2257 if (fd < 0)
2258 exit(1);
2259 if (write(fd, data, pagesize) != pagesize)
2260 exit(1);
2261 close(fd);
2262
2263 /*
2264 * Next, try to mmap the file at a fixed address which
2265 * already has something else allocated at it. If we can,
2266 * also make sure that we see the same garbage.
2267 */
2268 fd = open("conftestmmap", O_RDWR);
2269 if (fd < 0)
2270 exit(1);
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002271 data2 = malloc(2 * pagesize);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002272 if (!data2)
2273 exit(1);
2274 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2275 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2276 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2277 exit(1);
2278 for (i = 0; i < pagesize; ++i)
2279 if (*(data + i) != *(data2 + i))
2280 exit(1);
2281
2282 /*
2283 * Finally, make sure that changes to the mapped area
2284 * do not percolate back to the file as seen by read().
2285 * (This is a bug on some variants of i386 svr4.0.)
2286 */
2287 for (i = 0; i < pagesize; ++i)
2288 *(data2 + i) = *(data2 + i) + 1;
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002289 data3 = malloc(pagesize);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002290 if (!data3)
2291 exit(1);
2292 if (read(fd, data3, pagesize) != pagesize)
2293 exit(1);
2294 for (i = 0; i < pagesize; ++i)
2295 if (*(data + i) != *(data3 + i))
2296 exit(1);
2297 close(fd);
2298 unlink("conftestmmap");
2299 exit(0);
2300}
2301
2302EOF
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05002303if { (eval echo configure:2304: \"$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 +00002304then
2305 ac_cv_func_mmap_fixed_mapped=yes
2306else
2307 echo "configure: failed program was:" >&5
2308 cat conftest.$ac_ext >&5
2309 rm -fr conftest*
2310 ac_cv_func_mmap_fixed_mapped=no
2311fi
2312rm -fr conftest*
2313fi
2314
2315fi
2316
2317echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2318if test $ac_cv_func_mmap_fixed_mapped = yes; then
2319 cat >> confdefs.h <<\EOF
2320#define HAVE_MMAP 1
2321EOF
2322
2323fi
2324
2325
2326 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2327unistd.h sys/param.h
2328do
2329ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2330echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05002331echo "configure:2332: checking for $ac_hdr" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002332if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2333 echo $ac_n "(cached) $ac_c" 1>&6
2334else
2335 cat > conftest.$ac_ext <<EOF
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05002336#line 2337 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002337#include "confdefs.h"
2338#include <$ac_hdr>
2339EOF
2340ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05002341{ (eval echo configure:2342: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002342ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2343if test -z "$ac_err"; then
2344 rm -rf conftest*
2345 eval "ac_cv_header_$ac_safe=yes"
2346else
2347 echo "$ac_err" >&5
2348 echo "configure: failed program was:" >&5
2349 cat conftest.$ac_ext >&5
2350 rm -rf conftest*
2351 eval "ac_cv_header_$ac_safe=no"
2352fi
2353rm -f conftest*
2354fi
2355if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2356 echo "$ac_t""yes" 1>&6
2357 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2358 cat >> confdefs.h <<EOF
2359#define $ac_tr_hdr 1
2360EOF
2361
2362else
2363 echo "$ac_t""no" 1>&6
2364fi
2365done
2366
2367 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2368strdup __argz_count __argz_stringify __argz_next
2369do
2370echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05002371echo "configure:2372: checking for $ac_func" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002372if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2373 echo $ac_n "(cached) $ac_c" 1>&6
2374else
2375 cat > conftest.$ac_ext <<EOF
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05002376#line 2377 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002377#include "confdefs.h"
2378/* System header to define __stub macros and hopefully few prototypes,
2379 which can conflict with char $ac_func(); below. */
2380#include <assert.h>
2381/* Override any gcc2 internal prototype to avoid an error. */
2382/* We use char because int might match the return type of a gcc2
2383 builtin and then its argument prototype would still apply. */
2384char $ac_func();
2385
2386int main() {
2387
2388/* The GNU C library defines this for functions which it implements
2389 to always fail with ENOSYS. Some functions are actually named
2390 something starting with __ and the normal name is an alias. */
2391#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2392choke me
2393#else
2394$ac_func();
2395#endif
2396
2397; return 0; }
2398EOF
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05002399if { (eval echo configure:2400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002400 rm -rf conftest*
2401 eval "ac_cv_func_$ac_func=yes"
2402else
2403 echo "configure: failed program was:" >&5
2404 cat conftest.$ac_ext >&5
2405 rm -rf conftest*
2406 eval "ac_cv_func_$ac_func=no"
2407fi
2408rm -f conftest*
2409fi
2410
2411if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2412 echo "$ac_t""yes" 1>&6
2413 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2414 cat >> confdefs.h <<EOF
2415#define $ac_tr_func 1
2416EOF
2417
2418else
2419 echo "$ac_t""no" 1>&6
2420fi
2421done
2422
2423
2424 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2425 for ac_func in stpcpy
2426do
2427echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05002428echo "configure:2429: checking for $ac_func" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002429if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2430 echo $ac_n "(cached) $ac_c" 1>&6
2431else
2432 cat > conftest.$ac_ext <<EOF
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05002433#line 2434 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002434#include "confdefs.h"
2435/* System header to define __stub macros and hopefully few prototypes,
2436 which can conflict with char $ac_func(); below. */
2437#include <assert.h>
2438/* Override any gcc2 internal prototype to avoid an error. */
2439/* We use char because int might match the return type of a gcc2
2440 builtin and then its argument prototype would still apply. */
2441char $ac_func();
2442
2443int main() {
2444
2445/* The GNU C library defines this for functions which it implements
2446 to always fail with ENOSYS. Some functions are actually named
2447 something starting with __ and the normal name is an alias. */
2448#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2449choke me
2450#else
2451$ac_func();
2452#endif
2453
2454; return 0; }
2455EOF
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05002456if { (eval echo configure:2457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002457 rm -rf conftest*
2458 eval "ac_cv_func_$ac_func=yes"
2459else
2460 echo "configure: failed program was:" >&5
2461 cat conftest.$ac_ext >&5
2462 rm -rf conftest*
2463 eval "ac_cv_func_$ac_func=no"
2464fi
2465rm -f conftest*
2466fi
2467
2468if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2469 echo "$ac_t""yes" 1>&6
2470 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2471 cat >> confdefs.h <<EOF
2472#define $ac_tr_func 1
2473EOF
2474
2475else
2476 echo "$ac_t""no" 1>&6
2477fi
2478done
2479
2480 fi
2481 if test "${ac_cv_func_stpcpy}" = "yes"; then
2482 cat >> confdefs.h <<\EOF
2483#define HAVE_STPCPY 1
2484EOF
2485
2486 fi
2487
2488 if test $ac_cv_header_locale_h = yes; then
2489 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05002490echo "configure:2491: checking for LC_MESSAGES" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002491if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2492 echo $ac_n "(cached) $ac_c" 1>&6
2493else
2494 cat > conftest.$ac_ext <<EOF
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05002495#line 2496 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002496#include "confdefs.h"
2497#include <locale.h>
2498int main() {
2499return LC_MESSAGES
2500; return 0; }
2501EOF
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05002502if { (eval echo configure:2503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002503 rm -rf conftest*
2504 am_cv_val_LC_MESSAGES=yes
2505else
2506 echo "configure: failed program was:" >&5
2507 cat conftest.$ac_ext >&5
2508 rm -rf conftest*
2509 am_cv_val_LC_MESSAGES=no
2510fi
2511rm -f conftest*
2512fi
2513
2514echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2515 if test $am_cv_val_LC_MESSAGES = yes; then
2516 cat >> confdefs.h <<\EOF
2517#define HAVE_LC_MESSAGES 1
2518EOF
2519
2520 fi
2521 fi
2522 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05002523echo "configure:2524: checking whether NLS is requested" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002524 # Check whether --enable-nls or --disable-nls was given.
2525if test "${enable_nls+set}" = set; then
2526 enableval="$enable_nls"
2527 USE_NLS=$enableval
2528else
2529 USE_NLS=no
2530fi
2531
2532 echo "$ac_t""$USE_NLS" 1>&6
2533
2534
2535 USE_INCLUDED_LIBINTL=no
2536
2537 if test "$USE_NLS" = "yes"; then
2538 cat >> confdefs.h <<\EOF
2539#define ENABLE_NLS 1
2540EOF
2541
2542 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05002543echo "configure:2544: checking whether included gettext is requested" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002544 # Check whether --with-included-gettext or --without-included-gettext was given.
2545if test "${with_included_gettext+set}" = set; then
2546 withval="$with_included_gettext"
2547 nls_cv_force_use_gnu_gettext=$withval
2548else
2549 nls_cv_force_use_gnu_gettext=no
2550fi
2551
2552 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2553
2554 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2555 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2556 nls_cv_header_intl=
2557 nls_cv_header_libgt=
2558 CATOBJEXT=NONE
2559
2560 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2561echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05002562echo "configure:2563: checking for libintl.h" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002563if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2564 echo $ac_n "(cached) $ac_c" 1>&6
2565else
2566 cat > conftest.$ac_ext <<EOF
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05002567#line 2568 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002568#include "confdefs.h"
2569#include <libintl.h>
2570EOF
2571ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05002572{ (eval echo configure:2573: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002573ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2574if test -z "$ac_err"; then
2575 rm -rf conftest*
2576 eval "ac_cv_header_$ac_safe=yes"
2577else
2578 echo "$ac_err" >&5
2579 echo "configure: failed program was:" >&5
2580 cat conftest.$ac_ext >&5
2581 rm -rf conftest*
2582 eval "ac_cv_header_$ac_safe=no"
2583fi
2584rm -f conftest*
2585fi
2586if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2587 echo "$ac_t""yes" 1>&6
2588 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05002589echo "configure:2590: checking for gettext in libc" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002590if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2591 echo $ac_n "(cached) $ac_c" 1>&6
2592else
2593 cat > conftest.$ac_ext <<EOF
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05002594#line 2595 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002595#include "confdefs.h"
2596#include <libintl.h>
2597int main() {
2598return (int) gettext ("")
2599; return 0; }
2600EOF
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05002601if { (eval echo configure:2602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002602 rm -rf conftest*
2603 gt_cv_func_gettext_libc=yes
2604else
2605 echo "configure: failed program was:" >&5
2606 cat conftest.$ac_ext >&5
2607 rm -rf conftest*
2608 gt_cv_func_gettext_libc=no
2609fi
2610rm -f conftest*
2611fi
2612
2613echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2614
2615 if test "$gt_cv_func_gettext_libc" != "yes"; then
2616 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05002617echo "configure:2618: checking for bindtextdomain in -lintl" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002618ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2619if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2620 echo $ac_n "(cached) $ac_c" 1>&6
2621else
2622 ac_save_LIBS="$LIBS"
2623LIBS="-lintl $LIBS"
2624cat > conftest.$ac_ext <<EOF
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05002625#line 2626 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002626#include "confdefs.h"
2627/* Override any gcc2 internal prototype to avoid an error. */
2628/* We use char because int might match the return type of a gcc2
2629 builtin and then its argument prototype would still apply. */
2630char bindtextdomain();
2631
2632int main() {
2633bindtextdomain()
2634; return 0; }
2635EOF
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05002636if { (eval echo configure:2637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002637 rm -rf conftest*
2638 eval "ac_cv_lib_$ac_lib_var=yes"
2639else
2640 echo "configure: failed program was:" >&5
2641 cat conftest.$ac_ext >&5
2642 rm -rf conftest*
2643 eval "ac_cv_lib_$ac_lib_var=no"
2644fi
2645rm -f conftest*
2646LIBS="$ac_save_LIBS"
2647
2648fi
2649if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2650 echo "$ac_t""yes" 1>&6
2651 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05002652echo "configure:2653: checking for gettext in libintl" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002653if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2654 echo $ac_n "(cached) $ac_c" 1>&6
2655else
2656 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05002657echo "configure:2658: checking for gettext in -lintl" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002658ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
2659if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2660 echo $ac_n "(cached) $ac_c" 1>&6
2661else
2662 ac_save_LIBS="$LIBS"
2663LIBS="-lintl $LIBS"
2664cat > conftest.$ac_ext <<EOF
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05002665#line 2666 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002666#include "confdefs.h"
2667/* Override any gcc2 internal prototype to avoid an error. */
2668/* We use char because int might match the return type of a gcc2
2669 builtin and then its argument prototype would still apply. */
2670char gettext();
2671
2672int main() {
2673gettext()
2674; return 0; }
2675EOF
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05002676if { (eval echo configure:2677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002677 rm -rf conftest*
2678 eval "ac_cv_lib_$ac_lib_var=yes"
2679else
2680 echo "configure: failed program was:" >&5
2681 cat conftest.$ac_ext >&5
2682 rm -rf conftest*
2683 eval "ac_cv_lib_$ac_lib_var=no"
2684fi
2685rm -f conftest*
2686LIBS="$ac_save_LIBS"
2687
2688fi
2689if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2690 echo "$ac_t""yes" 1>&6
2691 gt_cv_func_gettext_libintl=yes
2692else
2693 echo "$ac_t""no" 1>&6
2694gt_cv_func_gettext_libintl=no
2695fi
2696
2697fi
2698
2699echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2700else
2701 echo "$ac_t""no" 1>&6
2702fi
2703
2704 fi
2705
2706 if test "$gt_cv_func_gettext_libc" = "yes" \
2707 || test "$gt_cv_func_gettext_libintl" = "yes"; then
2708 cat >> confdefs.h <<\EOF
2709#define HAVE_GETTEXT 1
2710EOF
2711
2712 # Extract the first word of "msgfmt", so it can be a program name with args.
2713set dummy msgfmt; ac_word=$2
2714echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05002715echo "configure:2716: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002716if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2717 echo $ac_n "(cached) $ac_c" 1>&6
2718else
2719 case "$MSGFMT" in
2720 /*)
2721 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2722 ;;
2723 *)
2724 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2725 for ac_dir in $PATH; do
2726 test -z "$ac_dir" && ac_dir=.
2727 if test -f $ac_dir/$ac_word; then
2728 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2729 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2730 break
2731 fi
2732 fi
2733 done
2734 IFS="$ac_save_ifs"
2735 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
2736 ;;
2737esac
2738fi
2739MSGFMT="$ac_cv_path_MSGFMT"
2740if test -n "$MSGFMT"; then
2741 echo "$ac_t""$MSGFMT" 1>&6
2742else
2743 echo "$ac_t""no" 1>&6
2744fi
2745 if test "$MSGFMT" != "no"; then
2746 for ac_func in dcgettext
2747do
2748echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05002749echo "configure:2750: checking for $ac_func" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002750if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2751 echo $ac_n "(cached) $ac_c" 1>&6
2752else
2753 cat > conftest.$ac_ext <<EOF
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05002754#line 2755 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002755#include "confdefs.h"
2756/* System header to define __stub macros and hopefully few prototypes,
2757 which can conflict with char $ac_func(); below. */
2758#include <assert.h>
2759/* Override any gcc2 internal prototype to avoid an error. */
2760/* We use char because int might match the return type of a gcc2
2761 builtin and then its argument prototype would still apply. */
2762char $ac_func();
2763
2764int main() {
2765
2766/* The GNU C library defines this for functions which it implements
2767 to always fail with ENOSYS. Some functions are actually named
2768 something starting with __ and the normal name is an alias. */
2769#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2770choke me
2771#else
2772$ac_func();
2773#endif
2774
2775; return 0; }
2776EOF
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05002777if { (eval echo configure:2778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002778 rm -rf conftest*
2779 eval "ac_cv_func_$ac_func=yes"
2780else
2781 echo "configure: failed program was:" >&5
2782 cat conftest.$ac_ext >&5
2783 rm -rf conftest*
2784 eval "ac_cv_func_$ac_func=no"
2785fi
2786rm -f conftest*
2787fi
2788
2789if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2790 echo "$ac_t""yes" 1>&6
2791 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2792 cat >> confdefs.h <<EOF
2793#define $ac_tr_func 1
2794EOF
2795
2796else
2797 echo "$ac_t""no" 1>&6
2798fi
2799done
2800
2801 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2802set dummy gmsgfmt; ac_word=$2
2803echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05002804echo "configure:2805: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002805if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2806 echo $ac_n "(cached) $ac_c" 1>&6
2807else
2808 case "$GMSGFMT" in
2809 /*)
2810 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2811 ;;
2812 ?:/*)
2813 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2814 ;;
2815 *)
2816 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2817 ac_dummy="$PATH"
2818 for ac_dir in $ac_dummy; do
2819 test -z "$ac_dir" && ac_dir=.
2820 if test -f $ac_dir/$ac_word; then
2821 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2822 break
2823 fi
2824 done
2825 IFS="$ac_save_ifs"
2826 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2827 ;;
2828esac
2829fi
2830GMSGFMT="$ac_cv_path_GMSGFMT"
2831if test -n "$GMSGFMT"; then
2832 echo "$ac_t""$GMSGFMT" 1>&6
2833else
2834 echo "$ac_t""no" 1>&6
2835fi
2836
2837 # Extract the first word of "xgettext", so it can be a program name with args.
2838set dummy xgettext; ac_word=$2
2839echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05002840echo "configure:2841: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002841if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2842 echo $ac_n "(cached) $ac_c" 1>&6
2843else
2844 case "$XGETTEXT" in
2845 /*)
2846 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2847 ;;
2848 *)
2849 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2850 for ac_dir in $PATH; do
2851 test -z "$ac_dir" && ac_dir=.
2852 if test -f $ac_dir/$ac_word; then
2853 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2854 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2855 break
2856 fi
2857 fi
2858 done
2859 IFS="$ac_save_ifs"
2860 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2861 ;;
2862esac
2863fi
2864XGETTEXT="$ac_cv_path_XGETTEXT"
2865if test -n "$XGETTEXT"; then
2866 echo "$ac_t""$XGETTEXT" 1>&6
2867else
2868 echo "$ac_t""no" 1>&6
2869fi
2870
2871 cat > conftest.$ac_ext <<EOF
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05002872#line 2873 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002873#include "confdefs.h"
2874
2875int main() {
2876extern int _nl_msg_cat_cntr;
2877 return _nl_msg_cat_cntr
2878; return 0; }
2879EOF
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05002880if { (eval echo configure:2881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002881 rm -rf conftest*
2882 CATOBJEXT=.gmo
2883 DATADIRNAME=share
2884else
2885 echo "configure: failed program was:" >&5
2886 cat conftest.$ac_ext >&5
2887 rm -rf conftest*
2888 CATOBJEXT=.mo
2889 DATADIRNAME=lib
2890fi
2891rm -f conftest*
2892 INSTOBJEXT=.mo
2893 fi
2894 fi
2895
2896else
2897 echo "$ac_t""no" 1>&6
2898fi
2899
2900
2901 if test "$CATOBJEXT" = "NONE"; then
2902 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05002903echo "configure:2904: checking whether catgets can be used" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002904 # Check whether --with-catgets or --without-catgets was given.
2905if test "${with_catgets+set}" = set; then
2906 withval="$with_catgets"
2907 nls_cv_use_catgets=$withval
2908else
2909 nls_cv_use_catgets=no
2910fi
2911
2912 echo "$ac_t""$nls_cv_use_catgets" 1>&6
2913
2914 if test "$nls_cv_use_catgets" = "yes"; then
2915 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05002916echo "configure:2917: checking for main in -li" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002917ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'`
2918if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2919 echo $ac_n "(cached) $ac_c" 1>&6
2920else
2921 ac_save_LIBS="$LIBS"
2922LIBS="-li $LIBS"
2923cat > conftest.$ac_ext <<EOF
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05002924#line 2925 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002925#include "confdefs.h"
2926
2927int main() {
2928main()
2929; return 0; }
2930EOF
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05002931if { (eval echo configure:2932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002932 rm -rf conftest*
2933 eval "ac_cv_lib_$ac_lib_var=yes"
2934else
2935 echo "configure: failed program was:" >&5
2936 cat conftest.$ac_ext >&5
2937 rm -rf conftest*
2938 eval "ac_cv_lib_$ac_lib_var=no"
2939fi
2940rm -f conftest*
2941LIBS="$ac_save_LIBS"
2942
2943fi
2944if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2945 echo "$ac_t""yes" 1>&6
2946 ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2947 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2948 cat >> confdefs.h <<EOF
2949#define $ac_tr_lib 1
2950EOF
2951
2952 LIBS="-li $LIBS"
2953
2954else
2955 echo "$ac_t""no" 1>&6
2956fi
2957
2958 echo $ac_n "checking for catgets""... $ac_c" 1>&6
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05002959echo "configure:2960: checking for catgets" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002960if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
2961 echo $ac_n "(cached) $ac_c" 1>&6
2962else
2963 cat > conftest.$ac_ext <<EOF
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05002964#line 2965 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002965#include "confdefs.h"
2966/* System header to define __stub macros and hopefully few prototypes,
2967 which can conflict with char catgets(); below. */
2968#include <assert.h>
2969/* Override any gcc2 internal prototype to avoid an error. */
2970/* We use char because int might match the return type of a gcc2
2971 builtin and then its argument prototype would still apply. */
2972char catgets();
2973
2974int main() {
2975
2976/* The GNU C library defines this for functions which it implements
2977 to always fail with ENOSYS. Some functions are actually named
2978 something starting with __ and the normal name is an alias. */
2979#if defined (__stub_catgets) || defined (__stub___catgets)
2980choke me
2981#else
2982catgets();
2983#endif
2984
2985; return 0; }
2986EOF
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05002987if { (eval echo configure:2988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002988 rm -rf conftest*
2989 eval "ac_cv_func_catgets=yes"
2990else
2991 echo "configure: failed program was:" >&5
2992 cat conftest.$ac_ext >&5
2993 rm -rf conftest*
2994 eval "ac_cv_func_catgets=no"
2995fi
2996rm -f conftest*
2997fi
2998
2999if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
3000 echo "$ac_t""yes" 1>&6
3001 cat >> confdefs.h <<\EOF
3002#define HAVE_CATGETS 1
3003EOF
3004
3005 INTLOBJS="\$(CATOBJS)"
3006 # Extract the first word of "gencat", so it can be a program name with args.
3007set dummy gencat; ac_word=$2
3008echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05003009echo "configure:3010: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003010if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
3011 echo $ac_n "(cached) $ac_c" 1>&6
3012else
3013 case "$GENCAT" in
3014 /*)
3015 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
3016 ;;
3017 ?:/*)
3018 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path.
3019 ;;
3020 *)
3021 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3022 ac_dummy="$PATH"
3023 for ac_dir in $ac_dummy; do
3024 test -z "$ac_dir" && ac_dir=.
3025 if test -f $ac_dir/$ac_word; then
3026 ac_cv_path_GENCAT="$ac_dir/$ac_word"
3027 break
3028 fi
3029 done
3030 IFS="$ac_save_ifs"
3031 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
3032 ;;
3033esac
3034fi
3035GENCAT="$ac_cv_path_GENCAT"
3036if test -n "$GENCAT"; then
3037 echo "$ac_t""$GENCAT" 1>&6
3038else
3039 echo "$ac_t""no" 1>&6
3040fi
3041 if test "$GENCAT" != "no"; then
3042 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3043set dummy gmsgfmt; ac_word=$2
3044echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05003045echo "configure:3046: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003046if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3047 echo $ac_n "(cached) $ac_c" 1>&6
3048else
3049 case "$GMSGFMT" in
3050 /*)
3051 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3052 ;;
3053 ?:/*)
3054 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3055 ;;
3056 *)
3057 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3058 ac_dummy="$PATH"
3059 for ac_dir in $ac_dummy; do
3060 test -z "$ac_dir" && ac_dir=.
3061 if test -f $ac_dir/$ac_word; then
3062 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3063 break
3064 fi
3065 done
3066 IFS="$ac_save_ifs"
3067 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
3068 ;;
3069esac
3070fi
3071GMSGFMT="$ac_cv_path_GMSGFMT"
3072if test -n "$GMSGFMT"; then
3073 echo "$ac_t""$GMSGFMT" 1>&6
3074else
3075 echo "$ac_t""no" 1>&6
3076fi
3077
3078 if test "$GMSGFMT" = "no"; then
3079 # Extract the first word of "msgfmt", so it can be a program name with args.
3080set dummy msgfmt; ac_word=$2
3081echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05003082echo "configure:3083: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003083if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3084 echo $ac_n "(cached) $ac_c" 1>&6
3085else
3086 case "$GMSGFMT" in
3087 /*)
3088 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3089 ;;
3090 *)
3091 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3092 for ac_dir in $PATH; do
3093 test -z "$ac_dir" && ac_dir=.
3094 if test -f $ac_dir/$ac_word; then
3095 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3096 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3097 break
3098 fi
3099 fi
3100 done
3101 IFS="$ac_save_ifs"
3102 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
3103 ;;
3104esac
3105fi
3106GMSGFMT="$ac_cv_path_GMSGFMT"
3107if test -n "$GMSGFMT"; then
3108 echo "$ac_t""$GMSGFMT" 1>&6
3109else
3110 echo "$ac_t""no" 1>&6
3111fi
3112
3113 fi
3114 # Extract the first word of "xgettext", so it can be a program name with args.
3115set dummy xgettext; ac_word=$2
3116echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05003117echo "configure:3118: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003118if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3119 echo $ac_n "(cached) $ac_c" 1>&6
3120else
3121 case "$XGETTEXT" in
3122 /*)
3123 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3124 ;;
3125 *)
3126 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3127 for ac_dir in $PATH; do
3128 test -z "$ac_dir" && ac_dir=.
3129 if test -f $ac_dir/$ac_word; then
3130 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3131 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3132 break
3133 fi
3134 fi
3135 done
3136 IFS="$ac_save_ifs"
3137 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3138 ;;
3139esac
3140fi
3141XGETTEXT="$ac_cv_path_XGETTEXT"
3142if test -n "$XGETTEXT"; then
3143 echo "$ac_t""$XGETTEXT" 1>&6
3144else
3145 echo "$ac_t""no" 1>&6
3146fi
3147
3148 USE_INCLUDED_LIBINTL=yes
3149 CATOBJEXT=.cat
3150 INSTOBJEXT=.cat
3151 DATADIRNAME=lib
3152 INTLDEPS='$(top_builddir)/intl/libintl.a'
3153 INTLLIBS=$INTLDEPS
3154 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
3155 nls_cv_header_intl=intl/libintl.h
3156 nls_cv_header_libgt=intl/libgettext.h
3157 fi
3158else
3159 echo "$ac_t""no" 1>&6
3160fi
3161
3162 fi
3163 fi
3164
3165 if test "$CATOBJEXT" = "NONE"; then
3166 nls_cv_use_gnu_gettext=yes
3167 fi
3168 fi
3169
3170 if test "$nls_cv_use_gnu_gettext" = "yes"; then
3171 INTLOBJS="\$(GETTOBJS)"
3172 # Extract the first word of "msgfmt", so it can be a program name with args.
3173set dummy msgfmt; ac_word=$2
3174echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05003175echo "configure:3176: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003176if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3177 echo $ac_n "(cached) $ac_c" 1>&6
3178else
3179 case "$MSGFMT" in
3180 /*)
3181 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3182 ;;
3183 *)
3184 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3185 for ac_dir in $PATH; do
3186 test -z "$ac_dir" && ac_dir=.
3187 if test -f $ac_dir/$ac_word; then
3188 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3189 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3190 break
3191 fi
3192 fi
3193 done
3194 IFS="$ac_save_ifs"
3195 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
3196 ;;
3197esac
3198fi
3199MSGFMT="$ac_cv_path_MSGFMT"
3200if test -n "$MSGFMT"; then
3201 echo "$ac_t""$MSGFMT" 1>&6
3202else
3203 echo "$ac_t""no" 1>&6
3204fi
3205
3206 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3207set dummy gmsgfmt; ac_word=$2
3208echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05003209echo "configure:3210: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003210if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3211 echo $ac_n "(cached) $ac_c" 1>&6
3212else
3213 case "$GMSGFMT" in
3214 /*)
3215 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3216 ;;
3217 ?:/*)
3218 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3219 ;;
3220 *)
3221 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3222 ac_dummy="$PATH"
3223 for ac_dir in $ac_dummy; do
3224 test -z "$ac_dir" && ac_dir=.
3225 if test -f $ac_dir/$ac_word; then
3226 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3227 break
3228 fi
3229 done
3230 IFS="$ac_save_ifs"
3231 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3232 ;;
3233esac
3234fi
3235GMSGFMT="$ac_cv_path_GMSGFMT"
3236if test -n "$GMSGFMT"; then
3237 echo "$ac_t""$GMSGFMT" 1>&6
3238else
3239 echo "$ac_t""no" 1>&6
3240fi
3241
3242 # Extract the first word of "xgettext", so it can be a program name with args.
3243set dummy xgettext; ac_word=$2
3244echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05003245echo "configure:3246: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003246if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3247 echo $ac_n "(cached) $ac_c" 1>&6
3248else
3249 case "$XGETTEXT" in
3250 /*)
3251 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3252 ;;
3253 *)
3254 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3255 for ac_dir in $PATH; do
3256 test -z "$ac_dir" && ac_dir=.
3257 if test -f $ac_dir/$ac_word; then
3258 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3259 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3260 break
3261 fi
3262 fi
3263 done
3264 IFS="$ac_save_ifs"
3265 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3266 ;;
3267esac
3268fi
3269XGETTEXT="$ac_cv_path_XGETTEXT"
3270if test -n "$XGETTEXT"; then
3271 echo "$ac_t""$XGETTEXT" 1>&6
3272else
3273 echo "$ac_t""no" 1>&6
3274fi
3275
3276
3277 USE_INCLUDED_LIBINTL=yes
3278 CATOBJEXT=.gmo
3279 INSTOBJEXT=.mo
3280 DATADIRNAME=share
3281 INTLDEPS='$(top_builddir)/intl/libintl.a'
3282 INTLLIBS=$INTLDEPS
3283 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
3284 nls_cv_header_intl=intl/libintl.h
3285 nls_cv_header_libgt=intl/libgettext.h
3286 fi
3287
3288 if test "$XGETTEXT" != ":"; then
3289 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
3290 : ;
3291 else
3292 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
3293 XGETTEXT=":"
3294 fi
3295 fi
3296
3297 # We need to process the po/ directory.
3298 POSUB=po
3299 else
3300 DATADIRNAME=share
3301 nls_cv_header_intl=intl/libintl.h
3302 nls_cv_header_libgt=intl/libgettext.h
3303 fi
3304
3305
3306
3307
3308 # If this is used in GNU gettext we have to set USE_NLS to `yes'
3309 # because some of the sources are only built for this goal.
3310 if test "$PACKAGE" = gettext; then
3311 USE_NLS=yes
3312 USE_INCLUDED_LIBINTL=yes
3313 fi
3314
3315 for lang in $ALL_LINGUAS; do
3316 GMOFILES="$GMOFILES $lang.gmo"
3317 POFILES="$POFILES $lang.po"
3318 done
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333 if test "x$CATOBJEXT" != "x"; then
3334 if test "x$ALL_LINGUAS" = "x"; then
3335 LINGUAS=
3336 else
3337 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05003338echo "configure:3339: checking for catalogs to be installed" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003339 NEW_LINGUAS=
3340 for lang in ${LINGUAS=$ALL_LINGUAS}; do
3341 case "$ALL_LINGUAS" in
3342 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
3343 esac
3344 done
3345 LINGUAS=$NEW_LINGUAS
3346 echo "$ac_t""$LINGUAS" 1>&6
3347 fi
3348
3349 if test -n "$LINGUAS"; then
3350 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
3351 fi
3352 fi
3353
3354 if test $ac_cv_header_locale_h = yes; then
3355 INCLUDE_LOCALE_H="#include <locale.h>"
3356 else
3357 INCLUDE_LOCALE_H="\
3358/* The system does not provide the header <locale.h>. Take care yourself. */"
3359 fi
3360
3361
3362 test -d intl || mkdir intl
3363 if test "$CATOBJEXT" = ".cat"; then
3364 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
3365echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05003366echo "configure:3367: checking for linux/version.h" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003367if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3368 echo $ac_n "(cached) $ac_c" 1>&6
3369else
3370 cat > conftest.$ac_ext <<EOF
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05003371#line 3372 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003372#include "confdefs.h"
3373#include <linux/version.h>
3374EOF
3375ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05003376{ (eval echo configure:3377: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003377ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3378if test -z "$ac_err"; then
3379 rm -rf conftest*
3380 eval "ac_cv_header_$ac_safe=yes"
3381else
3382 echo "$ac_err" >&5
3383 echo "configure: failed program was:" >&5
3384 cat conftest.$ac_ext >&5
3385 rm -rf conftest*
3386 eval "ac_cv_header_$ac_safe=no"
3387fi
3388rm -f conftest*
3389fi
3390if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3391 echo "$ac_t""yes" 1>&6
3392 msgformat=linux
3393else
3394 echo "$ac_t""no" 1>&6
3395msgformat=xopen
3396fi
3397
3398
3399 sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
3400 fi
3401 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
3402 $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
3403
3404 if test "$PACKAGE" = "gettext"; then
3405 GT_NO="#NO#"
3406 GT_YES=
3407 else
3408 GT_NO=
3409 GT_YES="#YES#"
3410 fi
3411
3412
3413
3414 MKINSTALLDIRS=
3415 if test -n "$ac_aux_dir"; then
3416 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
3417 fi
3418 if test -z "$MKINSTALLDIRS"; then
3419 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3420 fi
3421
3422
3423 l=
3424
3425
3426 test -d po || mkdir po
3427 if test "x$srcdir" != "x."; then
3428 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
3429 posrcprefix="$srcdir/"
3430 else
3431 posrcprefix="../$srcdir/"
3432 fi
3433 else
3434 posrcprefix="../"
3435 fi
3436 rm -f po/POTFILES
3437 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
3438 < $srcdir/po/POTFILES.in > po/POTFILES
3439
Theodore Ts'o74becf31997-04-26 14:37:06 +00003440
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003441echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05003442echo "configure:3443: checking whether ${MAKE-make} sets \${MAKE}" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003443set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003444if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
3445 echo $ac_n "(cached) $ac_c" 1>&6
3446else
3447 cat > conftestmake <<\EOF
3448all:
3449 @echo 'ac_maketemp="${MAKE}"'
3450EOF
3451# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3452eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
3453if test -n "$ac_maketemp"; then
3454 eval ac_cv_prog_make_${ac_make}_set=yes
3455else
3456 eval ac_cv_prog_make_${ac_make}_set=no
3457fi
3458rm -f conftestmake
3459fi
3460if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3461 echo "$ac_t""yes" 1>&6
3462 SET_MAKE=
3463else
3464 echo "$ac_t""no" 1>&6
3465 SET_MAKE="MAKE=${MAKE-make}"
3466fi
3467
3468# Extract the first word of "ln", so it can be a program name with args.
3469set dummy ln; ac_word=$2
3470echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05003471echo "configure:3472: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003472if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then
3473 echo $ac_n "(cached) $ac_c" 1>&6
3474else
3475 case "$LN" in
3476 /*)
3477 ac_cv_path_LN="$LN" # Let the user override the test with a path.
3478 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003479 ?:/*)
3480 ac_cv_path_LN="$LN" # Let the user override the test with a dos path.
3481 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003482 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003483 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3484 ac_dummy="$PATH"
3485 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003486 test -z "$ac_dir" && ac_dir=.
3487 if test -f $ac_dir/$ac_word; then
3488 ac_cv_path_LN="$ac_dir/$ac_word"
3489 break
3490 fi
3491 done
3492 IFS="$ac_save_ifs"
3493 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
3494 ;;
3495esac
3496fi
3497LN="$ac_cv_path_LN"
3498if test -n "$LN"; then
3499 echo "$ac_t""$LN" 1>&6
3500else
3501 echo "$ac_t""no" 1>&6
3502fi
3503
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00003504echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05003505echo "configure:3506: checking whether ln -s works" >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00003506if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
3507 echo $ac_n "(cached) $ac_c" 1>&6
3508else
3509 rm -f conftestdata
3510if ln -s X conftestdata 2>/dev/null
3511then
3512 rm -f conftestdata
3513 ac_cv_prog_LN_S="ln -s"
3514else
3515 ac_cv_prog_LN_S=ln
3516fi
3517fi
3518LN_S="$ac_cv_prog_LN_S"
3519if test "$ac_cv_prog_LN_S" = "ln -s"; then
3520 echo "$ac_t""yes" 1>&6
3521else
3522 echo "$ac_t""no" 1>&6
3523fi
3524
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003525# Extract the first word of "mv", so it can be a program name with args.
3526set dummy mv; ac_word=$2
3527echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05003528echo "configure:3529: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003529if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
3530 echo $ac_n "(cached) $ac_c" 1>&6
3531else
3532 case "$MV" in
3533 /*)
3534 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3535 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003536 ?:/*)
3537 ac_cv_path_MV="$MV" # Let the user override the test with a dos path.
3538 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003539 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003540 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3541 ac_dummy="$PATH"
3542 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003543 test -z "$ac_dir" && ac_dir=.
3544 if test -f $ac_dir/$ac_word; then
3545 ac_cv_path_MV="$ac_dir/$ac_word"
3546 break
3547 fi
3548 done
3549 IFS="$ac_save_ifs"
3550 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3551 ;;
3552esac
3553fi
3554MV="$ac_cv_path_MV"
3555if test -n "$MV"; then
3556 echo "$ac_t""$MV" 1>&6
3557else
3558 echo "$ac_t""no" 1>&6
3559fi
3560
3561# Extract the first word of "cp", so it can be a program name with args.
3562set dummy cp; ac_word=$2
3563echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05003564echo "configure:3565: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003565if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then
3566 echo $ac_n "(cached) $ac_c" 1>&6
3567else
3568 case "$CP" in
3569 /*)
3570 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3571 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003572 ?:/*)
3573 ac_cv_path_CP="$CP" # Let the user override the test with a dos path.
3574 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003575 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003576 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3577 ac_dummy="$PATH"
3578 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003579 test -z "$ac_dir" && ac_dir=.
3580 if test -f $ac_dir/$ac_word; then
3581 ac_cv_path_CP="$ac_dir/$ac_word"
3582 break
3583 fi
3584 done
3585 IFS="$ac_save_ifs"
3586 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3587 ;;
3588esac
3589fi
3590CP="$ac_cv_path_CP"
3591if test -n "$CP"; then
3592 echo "$ac_t""$CP" 1>&6
3593else
3594 echo "$ac_t""no" 1>&6
3595fi
3596
3597# Extract the first word of "rm", so it can be a program name with args.
3598set dummy rm; ac_word=$2
3599echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05003600echo "configure:3601: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003601if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
3602 echo $ac_n "(cached) $ac_c" 1>&6
3603else
3604 case "$RM" in
3605 /*)
3606 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3607 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003608 ?:/*)
3609 ac_cv_path_RM="$RM" # Let the user override the test with a dos path.
3610 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003611 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003612 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3613 ac_dummy="$PATH"
3614 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003615 test -z "$ac_dir" && ac_dir=.
3616 if test -f $ac_dir/$ac_word; then
3617 ac_cv_path_RM="$ac_dir/$ac_word"
3618 break
3619 fi
3620 done
3621 IFS="$ac_save_ifs"
3622 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3623 ;;
3624esac
3625fi
3626RM="$ac_cv_path_RM"
3627if test -n "$RM"; then
3628 echo "$ac_t""$RM" 1>&6
3629else
3630 echo "$ac_t""no" 1>&6
3631fi
3632
3633# Extract the first word of "chmod", so it can be a program name with args.
3634set dummy chmod; ac_word=$2
3635echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05003636echo "configure:3637: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003637if eval "test \"`echo '$''{'ac_cv_path_CHMOD'+set}'`\" = set"; then
3638 echo $ac_n "(cached) $ac_c" 1>&6
3639else
3640 case "$CHMOD" in
3641 /*)
3642 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
3643 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003644 ?:/*)
3645 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a dos path.
3646 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003647 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003648 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3649 ac_dummy="$PATH"
3650 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003651 test -z "$ac_dir" && ac_dir=.
3652 if test -f $ac_dir/$ac_word; then
3653 ac_cv_path_CHMOD="$ac_dir/$ac_word"
3654 break
3655 fi
3656 done
3657 IFS="$ac_save_ifs"
3658 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
3659 ;;
3660esac
3661fi
3662CHMOD="$ac_cv_path_CHMOD"
3663if test -n "$CHMOD"; then
3664 echo "$ac_t""$CHMOD" 1>&6
3665else
3666 echo "$ac_t""no" 1>&6
3667fi
3668
3669# Extract the first word of "awk", so it can be a program name with args.
3670set dummy awk; ac_word=$2
3671echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05003672echo "configure:3673: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003673if eval "test \"`echo '$''{'ac_cv_path_AWK'+set}'`\" = set"; then
3674 echo $ac_n "(cached) $ac_c" 1>&6
3675else
3676 case "$AWK" in
3677 /*)
3678 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3679 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003680 ?:/*)
3681 ac_cv_path_AWK="$AWK" # Let the user override the test with a dos path.
3682 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003683 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003684 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3685 ac_dummy="$PATH"
3686 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003687 test -z "$ac_dir" && ac_dir=.
3688 if test -f $ac_dir/$ac_word; then
3689 ac_cv_path_AWK="$ac_dir/$ac_word"
3690 break
3691 fi
3692 done
3693 IFS="$ac_save_ifs"
3694 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3695 ;;
3696esac
3697fi
3698AWK="$ac_cv_path_AWK"
3699if test -n "$AWK"; then
3700 echo "$ac_t""$AWK" 1>&6
3701else
3702 echo "$ac_t""no" 1>&6
3703fi
3704
3705# Extract the first word of "sed", so it can be a program name with args.
3706set dummy sed; ac_word=$2
3707echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05003708echo "configure:3709: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003709if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then
3710 echo $ac_n "(cached) $ac_c" 1>&6
3711else
3712 case "$SED" in
3713 /*)
3714 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3715 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003716 ?:/*)
3717 ac_cv_path_SED="$SED" # Let the user override the test with a dos path.
3718 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003719 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003720 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3721 ac_dummy="$PATH"
3722 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003723 test -z "$ac_dir" && ac_dir=.
3724 if test -f $ac_dir/$ac_word; then
3725 ac_cv_path_SED="$ac_dir/$ac_word"
3726 break
3727 fi
3728 done
3729 IFS="$ac_save_ifs"
3730 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3731 ;;
3732esac
3733fi
3734SED="$ac_cv_path_SED"
3735if test -n "$SED"; then
3736 echo "$ac_t""$SED" 1>&6
3737else
3738 echo "$ac_t""no" 1>&6
3739fi
3740
Theodore Ts'o9d564f71999-07-03 20:25:58 +00003741# Extract the first word of "perl", so it can be a program name with args.
3742set dummy perl; ac_word=$2
3743echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05003744echo "configure:3745: checking for $ac_word" >&5
Theodore Ts'o9d564f71999-07-03 20:25:58 +00003745if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
3746 echo $ac_n "(cached) $ac_c" 1>&6
3747else
3748 case "$PERL" in
3749 /*)
3750 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3751 ;;
3752 ?:/*)
3753 ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
3754 ;;
3755 *)
3756 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3757 ac_dummy="$PATH"
3758 for ac_dir in $ac_dummy; do
3759 test -z "$ac_dir" && ac_dir=.
3760 if test -f $ac_dir/$ac_word; then
3761 ac_cv_path_PERL="$ac_dir/$ac_word"
3762 break
3763 fi
3764 done
3765 IFS="$ac_save_ifs"
3766 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
3767 ;;
3768esac
3769fi
3770PERL="$ac_cv_path_PERL"
3771if test -n "$PERL"; then
3772 echo "$ac_t""$PERL" 1>&6
3773else
3774 echo "$ac_t""no" 1>&6
3775fi
3776
Theodore Ts'o250f79f2001-05-19 22:02:22 +00003777# Extract the first word of "ldconfig", so it can be a program name with args.
3778set dummy ldconfig; ac_word=$2
3779echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05003780echo "configure:3781: checking for $ac_word" >&5
Theodore Ts'o250f79f2001-05-19 22:02:22 +00003781if eval "test \"`echo '$''{'ac_cv_path_LDCONFIG'+set}'`\" = set"; then
3782 echo $ac_n "(cached) $ac_c" 1>&6
3783else
3784 case "$LDCONFIG" in
3785 /*)
3786 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
3787 ;;
3788 ?:/*)
3789 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a dos path.
3790 ;;
3791 *)
3792 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3793 ac_dummy="$PATH"
3794 for ac_dir in $ac_dummy; do
3795 test -z "$ac_dir" && ac_dir=.
3796 if test -f $ac_dir/$ac_word; then
3797 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
3798 break
3799 fi
3800 done
3801 IFS="$ac_save_ifs"
3802 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
3803 ;;
3804esac
3805fi
3806LDCONFIG="$ac_cv_path_LDCONFIG"
3807if test -n "$LDCONFIG"; then
3808 echo "$ac_t""$LDCONFIG" 1>&6
3809else
3810 echo "$ac_t""no" 1>&6
3811fi
3812
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003813echo $ac_n "checking build system type""... $ac_c" 1>&6
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05003814echo "configure:3815: checking build system type" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003815
3816build_alias=$build
3817case "$build_alias" in
3818NONE)
3819 case $nonopt in
3820 NONE) build_alias=$host_alias ;;
3821 *) build_alias=$nonopt ;;
3822 esac ;;
3823esac
3824
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003825build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003826build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3827build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3828build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003829echo "$ac_t""$build" 1>&6
3830
3831if test $host != $build; then
3832 ac_tool_prefix=${host_alias}-
3833else
3834 ac_tool_prefix=
3835fi
3836
3837# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3838set dummy ${ac_tool_prefix}ar; ac_word=$2
3839echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05003840echo "configure:3841: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003841if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3842 echo $ac_n "(cached) $ac_c" 1>&6
3843else
3844 if test -n "$AR"; then
3845 ac_cv_prog_AR="$AR" # Let the user override the test.
3846else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003847 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3848 ac_dummy="$PATH"
3849 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003850 test -z "$ac_dir" && ac_dir=.
3851 if test -f $ac_dir/$ac_word; then
3852 ac_cv_prog_AR="${ac_tool_prefix}ar"
3853 break
3854 fi
3855 done
3856 IFS="$ac_save_ifs"
3857fi
3858fi
3859AR="$ac_cv_prog_AR"
3860if test -n "$AR"; then
3861 echo "$ac_t""$AR" 1>&6
3862else
3863 echo "$ac_t""no" 1>&6
3864fi
3865
3866
3867if test -z "$ac_cv_prog_AR"; then
3868if test -n "$ac_tool_prefix"; then
3869 # Extract the first word of "ar", so it can be a program name with args.
3870set dummy ar; ac_word=$2
3871echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05003872echo "configure:3873: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003873if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3874 echo $ac_n "(cached) $ac_c" 1>&6
3875else
3876 if test -n "$AR"; then
3877 ac_cv_prog_AR="$AR" # Let the user override the test.
3878else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003879 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3880 ac_dummy="$PATH"
3881 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003882 test -z "$ac_dir" && ac_dir=.
3883 if test -f $ac_dir/$ac_word; then
3884 ac_cv_prog_AR="ar"
3885 break
3886 fi
3887 done
3888 IFS="$ac_save_ifs"
3889 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
3890fi
3891fi
3892AR="$ac_cv_prog_AR"
3893if test -n "$AR"; then
3894 echo "$ac_t""$AR" 1>&6
3895else
3896 echo "$ac_t""no" 1>&6
3897fi
3898
3899else
3900 AR="ar"
3901fi
3902fi
3903
3904# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3905set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3906echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05003907echo "configure:3908: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003908if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3909 echo $ac_n "(cached) $ac_c" 1>&6
3910else
3911 if test -n "$RANLIB"; then
3912 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3913else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003914 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3915 ac_dummy="$PATH"
3916 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003917 test -z "$ac_dir" && ac_dir=.
3918 if test -f $ac_dir/$ac_word; then
3919 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3920 break
3921 fi
3922 done
3923 IFS="$ac_save_ifs"
3924fi
3925fi
3926RANLIB="$ac_cv_prog_RANLIB"
3927if test -n "$RANLIB"; then
3928 echo "$ac_t""$RANLIB" 1>&6
3929else
3930 echo "$ac_t""no" 1>&6
3931fi
3932
3933
3934if test -z "$ac_cv_prog_RANLIB"; then
3935if test -n "$ac_tool_prefix"; then
3936 # Extract the first word of "ranlib", so it can be a program name with args.
3937set dummy ranlib; ac_word=$2
3938echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05003939echo "configure:3940: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003940if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3941 echo $ac_n "(cached) $ac_c" 1>&6
3942else
3943 if test -n "$RANLIB"; then
3944 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3945else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003946 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3947 ac_dummy="$PATH"
3948 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003949 test -z "$ac_dir" && ac_dir=.
3950 if test -f $ac_dir/$ac_word; then
3951 ac_cv_prog_RANLIB="ranlib"
3952 break
3953 fi
3954 done
3955 IFS="$ac_save_ifs"
3956 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3957fi
3958fi
3959RANLIB="$ac_cv_prog_RANLIB"
3960if test -n "$RANLIB"; then
3961 echo "$ac_t""$RANLIB" 1>&6
3962else
3963 echo "$ac_t""no" 1>&6
3964fi
3965
3966else
3967 RANLIB=":"
3968fi
3969fi
3970
3971# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3972set dummy ${ac_tool_prefix}strip; ac_word=$2
3973echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05003974echo "configure:3975: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003975if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
3976 echo $ac_n "(cached) $ac_c" 1>&6
3977else
3978 if test -n "$STRIP"; then
3979 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3980else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003981 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3982 ac_dummy="$PATH"
3983 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003984 test -z "$ac_dir" && ac_dir=.
3985 if test -f $ac_dir/$ac_word; then
3986 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3987 break
3988 fi
3989 done
3990 IFS="$ac_save_ifs"
3991fi
3992fi
3993STRIP="$ac_cv_prog_STRIP"
3994if test -n "$STRIP"; then
3995 echo "$ac_t""$STRIP" 1>&6
3996else
3997 echo "$ac_t""no" 1>&6
3998fi
3999
4000
4001if test -z "$ac_cv_prog_STRIP"; then
4002if test -n "$ac_tool_prefix"; then
4003 # Extract the first word of "strip", so it can be a program name with args.
4004set dummy strip; ac_word=$2
4005echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05004006echo "configure:4007: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004007if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
4008 echo $ac_n "(cached) $ac_c" 1>&6
4009else
4010 if test -n "$STRIP"; then
4011 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4012else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004013 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4014 ac_dummy="$PATH"
4015 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004016 test -z "$ac_dir" && ac_dir=.
4017 if test -f $ac_dir/$ac_word; then
4018 ac_cv_prog_STRIP="strip"
4019 break
4020 fi
4021 done
4022 IFS="$ac_save_ifs"
4023 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
4024fi
4025fi
4026STRIP="$ac_cv_prog_STRIP"
4027if test -n "$STRIP"; then
4028 echo "$ac_t""$STRIP" 1>&6
4029else
4030 echo "$ac_t""no" 1>&6
4031fi
4032
4033else
4034 STRIP=":"
4035fi
4036fi
4037
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004038# Find a good install program. We prefer a C program (faster),
4039# so one script is as good as another. But avoid the broken or
4040# incompatible versions:
4041# SysV /etc/install, /usr/sbin/install
4042# SunOS /usr/etc/install
4043# IRIX /sbin/install
4044# AIX /bin/install
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004045# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004046# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4047# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4048# ./install, which can be erroneously created by make from ./install.sh.
4049echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05004050echo "configure:4051: checking for a BSD compatible install" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004051if test -z "$INSTALL"; then
4052if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
4053 echo $ac_n "(cached) $ac_c" 1>&6
4054else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004055 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004056 for ac_dir in $PATH; do
4057 # Account for people who put trailing slashes in PATH elements.
4058 case "$ac_dir/" in
4059 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
4060 *)
4061 # OSF1 and SCO ODT 3.0 have their own names for install.
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004062 # Don't use installbsd from OSF since it installs stuff as root
4063 # by default.
4064 for ac_prog in ginstall scoinst install; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004065 if test -f $ac_dir/$ac_prog; then
4066 if test $ac_prog = install &&
4067 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
4068 # AIX install. It has an incompatible calling convention.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004069 :
4070 else
4071 ac_cv_path_install="$ac_dir/$ac_prog -c"
4072 break 2
4073 fi
4074 fi
4075 done
4076 ;;
4077 esac
4078 done
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004079 IFS="$ac_save_IFS"
4080
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004081fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004082 if test "${ac_cv_path_install+set}" = set; then
4083 INSTALL="$ac_cv_path_install"
4084 else
4085 # As a last resort, use the slow shell script. We don't cache a
4086 # path for INSTALL within a source directory, because that will
4087 # break other packages using the cache if that directory is
4088 # removed, or if the path is relative.
4089 INSTALL="$ac_install_sh"
4090 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004091fi
4092echo "$ac_t""$INSTALL" 1>&6
4093
4094# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4095# It thinks the first close brace ends the variable substitution.
4096test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4097
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004098test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
4099
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004100test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4101
Theodore Ts'o6c133521999-07-03 20:37:03 +00004102# See if we need a separate native compiler.
4103if test $cross_compiling = no; then
4104 BUILD_CC="$CC"
4105
4106else
4107 for ac_prog in gcc cc
4108do
4109# Extract the first word of "$ac_prog", so it can be a program name with args.
4110set dummy $ac_prog; ac_word=$2
4111echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05004112echo "configure:4113: checking for $ac_word" >&5
Theodore Ts'o6c133521999-07-03 20:37:03 +00004113if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
4114 echo $ac_n "(cached) $ac_c" 1>&6
4115else
4116 if test -n "$BUILD_CC"; then
4117 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4118else
4119 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4120 ac_dummy="$PATH"
4121 for ac_dir in $ac_dummy; do
4122 test -z "$ac_dir" && ac_dir=.
4123 if test -f $ac_dir/$ac_word; then
4124 ac_cv_prog_BUILD_CC="$ac_prog"
4125 break
4126 fi
4127 done
4128 IFS="$ac_save_ifs"
4129fi
4130fi
4131BUILD_CC="$ac_cv_prog_BUILD_CC"
4132if test -n "$BUILD_CC"; then
4133 echo "$ac_t""$BUILD_CC" 1>&6
4134else
4135 echo "$ac_t""no" 1>&6
4136fi
4137
4138test -n "$BUILD_CC" && break
4139done
4140
4141fi
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00004142for ac_hdr in stdlib.h unistd.h stdarg.h errno.h malloc.h mntent.h paths.h dirent.h getopt.h setjmp.h signal.h termios.h linux/fd.h linux/major.h sys/disklabel.h sys/ioctl.h sys/mkdev.h sys/mount.h sys/sockio.h sys/sysmacros.h sys/time.h sys/stat.h sys/types.h net/if.h netinet/in.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004143do
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004144ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004145echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05004146echo "configure:4147: checking for $ac_hdr" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004147if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4148 echo $ac_n "(cached) $ac_c" 1>&6
4149else
4150 cat > conftest.$ac_ext <<EOF
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05004151#line 4152 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004152#include "confdefs.h"
4153#include <$ac_hdr>
4154EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004155ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05004156{ (eval echo configure:4157: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004157ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004158if test -z "$ac_err"; then
4159 rm -rf conftest*
4160 eval "ac_cv_header_$ac_safe=yes"
4161else
4162 echo "$ac_err" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004163 echo "configure: failed program was:" >&5
4164 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004165 rm -rf conftest*
4166 eval "ac_cv_header_$ac_safe=no"
4167fi
4168rm -f conftest*
4169fi
4170if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4171 echo "$ac_t""yes" 1>&6
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004172 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004173 cat >> confdefs.h <<EOF
4174#define $ac_tr_hdr 1
4175EOF
4176
4177else
4178 echo "$ac_t""no" 1>&6
4179fi
4180done
4181
4182echo $ac_n "checking for vprintf""... $ac_c" 1>&6
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05004183echo "configure:4184: checking for vprintf" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004184if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
4185 echo $ac_n "(cached) $ac_c" 1>&6
4186else
4187 cat > conftest.$ac_ext <<EOF
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05004188#line 4189 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004189#include "confdefs.h"
4190/* System header to define __stub macros and hopefully few prototypes,
4191 which can conflict with char vprintf(); below. */
4192#include <assert.h>
4193/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004194/* We use char because int might match the return type of a gcc2
4195 builtin and then its argument prototype would still apply. */
4196char vprintf();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004197
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004198int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004199
4200/* The GNU C library defines this for functions which it implements
4201 to always fail with ENOSYS. Some functions are actually named
4202 something starting with __ and the normal name is an alias. */
4203#if defined (__stub_vprintf) || defined (__stub___vprintf)
4204choke me
4205#else
4206vprintf();
4207#endif
4208
4209; return 0; }
4210EOF
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05004211if { (eval echo configure:4212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004212 rm -rf conftest*
4213 eval "ac_cv_func_vprintf=yes"
4214else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004215 echo "configure: failed program was:" >&5
4216 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004217 rm -rf conftest*
4218 eval "ac_cv_func_vprintf=no"
4219fi
4220rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004221fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004222
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004223if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
4224 echo "$ac_t""yes" 1>&6
4225 cat >> confdefs.h <<\EOF
4226#define HAVE_VPRINTF 1
4227EOF
4228
4229else
4230 echo "$ac_t""no" 1>&6
4231fi
4232
4233if test "$ac_cv_func_vprintf" != yes; then
4234echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05004235echo "configure:4236: checking for _doprnt" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004236if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
4237 echo $ac_n "(cached) $ac_c" 1>&6
4238else
4239 cat > conftest.$ac_ext <<EOF
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05004240#line 4241 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004241#include "confdefs.h"
4242/* System header to define __stub macros and hopefully few prototypes,
4243 which can conflict with char _doprnt(); below. */
4244#include <assert.h>
4245/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004246/* We use char because int might match the return type of a gcc2
4247 builtin and then its argument prototype would still apply. */
4248char _doprnt();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004249
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004250int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004251
4252/* The GNU C library defines this for functions which it implements
4253 to always fail with ENOSYS. Some functions are actually named
4254 something starting with __ and the normal name is an alias. */
4255#if defined (__stub__doprnt) || defined (__stub____doprnt)
4256choke me
4257#else
4258_doprnt();
4259#endif
4260
4261; return 0; }
4262EOF
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05004263if { (eval echo configure:4264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004264 rm -rf conftest*
4265 eval "ac_cv_func__doprnt=yes"
4266else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004267 echo "configure: failed program was:" >&5
4268 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004269 rm -rf conftest*
4270 eval "ac_cv_func__doprnt=no"
4271fi
4272rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004273fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004274
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004275if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
4276 echo "$ac_t""yes" 1>&6
4277 cat >> confdefs.h <<\EOF
4278#define HAVE_DOPRNT 1
4279EOF
4280
4281else
4282 echo "$ac_t""no" 1>&6
4283fi
4284
4285fi
4286
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00004287echo $ac_n "checking whether llseek declared in unistd.h""... $ac_c" 1>&6
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05004288echo "configure:4289: checking whether llseek declared in unistd.h" >&5
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00004289if eval "test \"`echo '$''{'e2fsprogs_cv_have_llseek_prototype'+set}'`\" = set"; then
4290 echo $ac_n "(cached) $ac_c" 1>&6
4291else
4292 cat > conftest.$ac_ext <<EOF
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05004293#line 4294 "configure"
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00004294#include "confdefs.h"
4295#include <unistd.h>
4296int main() {
4297extern int llseek(int);
4298; return 0; }
4299EOF
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05004300if { (eval echo configure:4301: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00004301 rm -rf conftest*
4302 e2fsprogs_cv_have_llseek_prototype=no
4303else
4304 echo "configure: failed program was:" >&5
4305 cat conftest.$ac_ext >&5
4306 rm -rf conftest*
4307 e2fsprogs_cv_have_llseek_prototype=yes
4308fi
4309rm -f conftest*
4310fi
4311
4312echo "$ac_t""$e2fsprogs_cv_have_llseek_prototype" 1>&6
4313if test "$e2fsprogs_cv_have_llseek_prototype" = yes; then
4314 cat >> confdefs.h <<\EOF
4315#define HAVE_LLSEEK_PROTOTYPE 1
4316EOF
4317
4318fi
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004319echo $ac_n "checking whether lseek64 declared in unistd.h""... $ac_c" 1>&6
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05004320echo "configure:4321: checking whether lseek64 declared in unistd.h" >&5
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004321if eval "test \"`echo '$''{'e2fsprogs_cv_have_lseek64_prototype'+set}'`\" = set"; then
4322 echo $ac_n "(cached) $ac_c" 1>&6
4323else
4324 cat > conftest.$ac_ext <<EOF
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05004325#line 4326 "configure"
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004326#include "confdefs.h"
4327#define _LARGEFILE_SOURCE
4328#define _LARGEFILE64_SOURCE
4329#include <unistd.h>
4330int main() {
4331extern int lseek64(int);
4332; return 0; }
4333EOF
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05004334if { (eval echo configure:4335: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004335 rm -rf conftest*
4336 e2fsprogs_cv_have_lseek64_prototype=no
4337else
4338 echo "configure: failed program was:" >&5
4339 cat conftest.$ac_ext >&5
4340 rm -rf conftest*
4341 e2fsprogs_cv_have_lseek64_prototype=yes
4342fi
4343rm -f conftest*
4344fi
4345
4346echo "$ac_t""$e2fsprogs_cv_have_lseek64_prototype" 1>&6
4347if test "$e2fsprogs_cv_have_lseek64_prototype" = yes; then
4348 cat >> confdefs.h <<\EOF
4349#define HAVE_LSEEK64_PROTOTYPE 1
4350EOF
4351
4352fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004353if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
4354 # if cross-compiling, with no cached values, just assume something common.
4355 ac_cv_sizeof_short=2
4356 ac_cv_sizeof_int=4
4357 ac_cv_sizeof_long=4
Theodore Ts'o6c133521999-07-03 20:37:03 +00004358 ac_cv_sizeof_long_long=8
4359 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 +00004360fi
4361echo $ac_n "checking size of short""... $ac_c" 1>&6
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05004362echo "configure:4363: checking size of short" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004363if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
4364 echo $ac_n "(cached) $ac_c" 1>&6
4365else
4366 if test "$cross_compiling" = yes; then
4367 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4368else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004369 cat > conftest.$ac_ext <<EOF
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05004370#line 4371 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004371#include "confdefs.h"
4372#include <stdio.h>
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004373#include <sys/types.h>
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004374main()
4375{
4376 FILE *f=fopen("conftestval", "w");
4377 if (!f) exit(1);
4378 fprintf(f, "%d\n", sizeof(short));
4379 exit(0);
4380}
4381EOF
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05004382if { (eval echo configure:4383: \"$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 +00004383then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004384 ac_cv_sizeof_short=`cat conftestval`
4385else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004386 echo "configure: failed program was:" >&5
4387 cat conftest.$ac_ext >&5
4388 rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004389 ac_cv_sizeof_short=0
4390fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004391rm -fr conftest*
4392fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004393
4394fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004395echo "$ac_t""$ac_cv_sizeof_short" 1>&6
4396cat >> confdefs.h <<EOF
4397#define SIZEOF_SHORT $ac_cv_sizeof_short
4398EOF
4399
4400
4401echo $ac_n "checking size of int""... $ac_c" 1>&6
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05004402echo "configure:4403: checking size of int" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004403if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
4404 echo $ac_n "(cached) $ac_c" 1>&6
4405else
4406 if test "$cross_compiling" = yes; then
4407 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4408else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004409 cat > conftest.$ac_ext <<EOF
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05004410#line 4411 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004411#include "confdefs.h"
4412#include <stdio.h>
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004413#include <sys/types.h>
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004414main()
4415{
4416 FILE *f=fopen("conftestval", "w");
4417 if (!f) exit(1);
4418 fprintf(f, "%d\n", sizeof(int));
4419 exit(0);
4420}
4421EOF
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05004422if { (eval echo configure:4423: \"$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 +00004423then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004424 ac_cv_sizeof_int=`cat conftestval`
4425else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004426 echo "configure: failed program was:" >&5
4427 cat conftest.$ac_ext >&5
4428 rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004429 ac_cv_sizeof_int=0
4430fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004431rm -fr conftest*
4432fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004433
4434fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004435echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4436cat >> confdefs.h <<EOF
4437#define SIZEOF_INT $ac_cv_sizeof_int
4438EOF
4439
4440
4441echo $ac_n "checking size of long""... $ac_c" 1>&6
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05004442echo "configure:4443: checking size of long" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004443if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
4444 echo $ac_n "(cached) $ac_c" 1>&6
4445else
4446 if test "$cross_compiling" = yes; then
4447 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4448else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004449 cat > conftest.$ac_ext <<EOF
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05004450#line 4451 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004451#include "confdefs.h"
4452#include <stdio.h>
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004453#include <sys/types.h>
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004454main()
4455{
4456 FILE *f=fopen("conftestval", "w");
4457 if (!f) exit(1);
4458 fprintf(f, "%d\n", sizeof(long));
4459 exit(0);
4460}
4461EOF
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05004462if { (eval echo configure:4463: \"$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 +00004463then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004464 ac_cv_sizeof_long=`cat conftestval`
4465else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004466 echo "configure: failed program was:" >&5
4467 cat conftest.$ac_ext >&5
4468 rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004469 ac_cv_sizeof_long=0
4470fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004471rm -fr conftest*
4472fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004473
4474fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004475echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4476cat >> confdefs.h <<EOF
4477#define SIZEOF_LONG $ac_cv_sizeof_long
4478EOF
4479
4480
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004481echo $ac_n "checking size of long long""... $ac_c" 1>&6
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05004482echo "configure:4483: checking size of long long" >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004483if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
4484 echo $ac_n "(cached) $ac_c" 1>&6
4485else
4486 if test "$cross_compiling" = yes; then
4487 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4488else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004489 cat > conftest.$ac_ext <<EOF
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05004490#line 4491 "configure"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004491#include "confdefs.h"
4492#include <stdio.h>
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004493#include <sys/types.h>
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004494main()
4495{
4496 FILE *f=fopen("conftestval", "w");
4497 if (!f) exit(1);
4498 fprintf(f, "%d\n", sizeof(long long));
4499 exit(0);
4500}
4501EOF
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05004502if { (eval echo configure:4503: \"$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 +00004503then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004504 ac_cv_sizeof_long_long=`cat conftestval`
4505else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004506 echo "configure: failed program was:" >&5
4507 cat conftest.$ac_ext >&5
4508 rm -fr conftest*
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004509 ac_cv_sizeof_long_long=0
4510fi
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004511rm -fr conftest*
4512fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004513
4514fi
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004515echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4516cat >> confdefs.h <<EOF
4517#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4518EOF
4519
4520
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004521SIZEOF_SHORT=$ac_cv_sizeof_short
4522SIZEOF_INT=$ac_cv_sizeof_int
4523SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004524SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
4525
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004526
4527
4528
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004529echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05004530echo "configure:4531: checking whether byte ordering is bigendian" >&5
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004531if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
4532 echo $ac_n "(cached) $ac_c" 1>&6
4533else
4534 ac_cv_c_bigendian=unknown
4535# See if sys/param.h defines the BYTE_ORDER macro.
4536cat > conftest.$ac_ext <<EOF
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05004537#line 4538 "configure"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004538#include "confdefs.h"
4539#include <sys/types.h>
4540#include <sys/param.h>
4541int main() {
4542
4543#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4544 bogus endian macros
4545#endif
4546; return 0; }
4547EOF
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05004548if { (eval echo configure:4549: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004549 rm -rf conftest*
4550 # It does; now see whether it defined to BIG_ENDIAN or not.
4551cat > conftest.$ac_ext <<EOF
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05004552#line 4553 "configure"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004553#include "confdefs.h"
4554#include <sys/types.h>
4555#include <sys/param.h>
4556int main() {
4557
4558#if BYTE_ORDER != BIG_ENDIAN
4559 not big endian
4560#endif
4561; return 0; }
4562EOF
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05004563if { (eval echo configure:4564: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004564 rm -rf conftest*
4565 ac_cv_c_bigendian=yes
4566else
4567 echo "configure: failed program was:" >&5
4568 cat conftest.$ac_ext >&5
4569 rm -rf conftest*
4570 ac_cv_c_bigendian=no
4571fi
4572rm -f conftest*
4573else
4574 echo "configure: failed program was:" >&5
4575 cat conftest.$ac_ext >&5
4576fi
4577rm -f conftest*
4578if test $ac_cv_c_bigendian = unknown; then
4579if test "$cross_compiling" = yes; then
4580 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4581else
4582 cat > conftest.$ac_ext <<EOF
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05004583#line 4584 "configure"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004584#include "confdefs.h"
4585main () {
4586 /* Are we little or big endian? From Harbison&Steele. */
4587 union
4588 {
4589 long l;
4590 char c[sizeof (long)];
4591 } u;
4592 u.l = 1;
4593 exit (u.c[sizeof (long) - 1] == 1);
4594}
4595EOF
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05004596if { (eval echo configure:4597: \"$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 +00004597then
4598 ac_cv_c_bigendian=no
4599else
4600 echo "configure: failed program was:" >&5
4601 cat conftest.$ac_ext >&5
4602 rm -fr conftest*
4603 ac_cv_c_bigendian=yes
4604fi
4605rm -fr conftest*
4606fi
4607
4608fi
4609fi
4610
4611echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4612if test $ac_cv_c_bigendian = yes; then
4613 cat >> confdefs.h <<\EOF
4614#define WORDS_BIGENDIAN 1
4615EOF
4616
4617fi
4618
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004619echo $ac_n "checking whether struct stat has a st_flags field""... $ac_c" 1>&6
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05004620echo "configure:4621: checking whether struct stat has a st_flags field" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004621if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags'+set}'`\" = set"; then
4622 echo $ac_n "(cached) $ac_c" 1>&6
4623else
4624 cat > conftest.$ac_ext <<EOF
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05004625#line 4626 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004626#include "confdefs.h"
4627#include <sys/stat.h>
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004628int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004629struct stat stat; stat.st_flags = 0;
4630; return 0; }
4631EOF
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05004632if { (eval echo configure:4633: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004633 rm -rf conftest*
4634 e2fsprogs_cv_struct_st_flags=yes
4635else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004636 echo "configure: failed program was:" >&5
4637 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004638 rm -rf conftest*
4639 e2fsprogs_cv_struct_st_flags=no
4640fi
4641rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004642fi
4643
4644echo "$ac_t""$e2fsprogs_cv_struct_st_flags" 1>&6
4645if test "$e2fsprogs_cv_struct_st_flags" = yes; then
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00004646 echo $ac_n "checking whether st_flags field is useful""... $ac_c" 1>&6
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05004647echo "configure:4648: checking whether st_flags field is useful" >&5
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00004648 if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags_immut'+set}'`\" = set"; then
4649 echo $ac_n "(cached) $ac_c" 1>&6
4650else
4651 cat > conftest.$ac_ext <<EOF
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05004652#line 4653 "configure"
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00004653#include "confdefs.h"
4654#include <sys/stat.h>
4655int main() {
4656struct stat stat; stat.st_flags |= UF_IMMUTABLE;
4657; return 0; }
4658EOF
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05004659if { (eval echo configure:4660: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00004660 rm -rf conftest*
4661 e2fsprogs_cv_struct_st_flags_immut=yes
4662else
4663 echo "configure: failed program was:" >&5
4664 cat conftest.$ac_ext >&5
4665 rm -rf conftest*
4666 e2fsprogs_cv_struct_st_flags_immut=no
4667fi
4668rm -f conftest*
4669fi
4670
4671 echo "$ac_t""$e2fsprogs_cv_struct_st_flags_immut" 1>&6
4672 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
4673 cat >> confdefs.h <<\EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004674#define HAVE_STAT_FLAGS 1
4675EOF
4676
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00004677 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004678fi
Theodore Ts'o593c6ea2002-07-14 15:58:38 -04004679for ac_func in chflags getrusage llseek lseek64 open64 getmntinfo strcasecmp srandom fchown mallinfo fdatasync strnlen sysconf pathconf
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004680do
4681echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05004682echo "configure:4683: checking for $ac_func" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004683if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4684 echo $ac_n "(cached) $ac_c" 1>&6
4685else
4686 cat > conftest.$ac_ext <<EOF
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05004687#line 4688 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004688#include "confdefs.h"
4689/* System header to define __stub macros and hopefully few prototypes,
4690 which can conflict with char $ac_func(); below. */
4691#include <assert.h>
4692/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004693/* We use char because int might match the return type of a gcc2
4694 builtin and then its argument prototype would still apply. */
4695char $ac_func();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004696
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004697int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004698
4699/* The GNU C library defines this for functions which it implements
4700 to always fail with ENOSYS. Some functions are actually named
4701 something starting with __ and the normal name is an alias. */
4702#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4703choke me
4704#else
4705$ac_func();
4706#endif
4707
4708; return 0; }
4709EOF
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05004710if { (eval echo configure:4711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004711 rm -rf conftest*
4712 eval "ac_cv_func_$ac_func=yes"
4713else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004714 echo "configure: failed program was:" >&5
4715 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004716 rm -rf conftest*
4717 eval "ac_cv_func_$ac_func=no"
4718fi
4719rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004720fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004721
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004722if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4723 echo "$ac_t""yes" 1>&6
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004724 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004725 cat >> confdefs.h <<EOF
4726#define $ac_tr_func 1
4727EOF
4728
4729else
4730 echo "$ac_t""no" 1>&6
4731fi
4732done
4733
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004734SOCKET_LIB=''
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004735echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05004736echo "configure:4737: checking for socket in -lsocket" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004737ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
4738if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004739 echo $ac_n "(cached) $ac_c" 1>&6
4740else
4741 ac_save_LIBS="$LIBS"
4742LIBS="-lsocket $LIBS"
4743cat > conftest.$ac_ext <<EOF
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05004744#line 4745 "configure"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004745#include "confdefs.h"
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004746/* Override any gcc2 internal prototype to avoid an error. */
4747/* We use char because int might match the return type of a gcc2
4748 builtin and then its argument prototype would still apply. */
4749char socket();
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004750
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004751int main() {
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004752socket()
4753; return 0; }
4754EOF
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05004755if { (eval echo configure:4756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004756 rm -rf conftest*
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004757 eval "ac_cv_lib_$ac_lib_var=yes"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004758else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004759 echo "configure: failed program was:" >&5
4760 cat conftest.$ac_ext >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004761 rm -rf conftest*
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004762 eval "ac_cv_lib_$ac_lib_var=no"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004763fi
4764rm -f conftest*
4765LIBS="$ac_save_LIBS"
4766
4767fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004768if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004769 echo "$ac_t""yes" 1>&6
4770 SOCKET_LIB=-lsocket
4771else
4772 echo "$ac_t""no" 1>&6
4773fi
4774
4775
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004776echo $ac_n "checking for optreset""... $ac_c" 1>&6
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05004777echo "configure:4778: checking for optreset" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004778if eval "test \"`echo '$''{'ac_cv_have_optreset'+set}'`\" = set"; then
4779 echo $ac_n "(cached) $ac_c" 1>&6
4780else
4781 cat > conftest.$ac_ext <<EOF
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05004782#line 4783 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004783#include "confdefs.h"
4784#include <unistd.h>
4785EOF
4786if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4787 egrep "optreset" >/dev/null 2>&1; then
4788 rm -rf conftest*
4789 ac_cv_have_optreset=yes
4790else
4791 rm -rf conftest*
4792 ac_cv_have_optreset=no
4793fi
4794rm -f conftest*
4795
4796fi
4797echo "$ac_t""$ac_cv_have_optreset" 1>&6
4798if test $ac_cv_have_optreset = yes; then
4799 cat >> confdefs.h <<\EOF
4800#define HAVE_OPTRESET 1
4801EOF
4802
4803fi
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +00004804case "$host_os" in
4805linux*)
4806 cat >> confdefs.h <<\EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004807#define HAVE_EXT2_IOCTLS 1
4808EOF
4809
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +00004810 ;;
4811esac
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -04004812LINUX_CMT="#"
4813case "$host_os" in
4814linux*)
4815 LINUX_CMT=
4816 ;;
4817esac
4818
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004819case "$host_os" in
Theodore Ts'o6c133521999-07-03 20:37:03 +00004820linux* | gnu*)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004821 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
4822 root_prefix="";
4823 echo "On $host_os systems, root_prefix defaults to ''"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004824 fi
4825 ;;
4826esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004827case "$host_os" in
4828linux* | gnu*)
4829 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004830 prefix="/usr";
4831 echo "On $host_os systems, prefix defaults to /usr"
Theodore Ts'obff61a72002-05-21 22:21:38 -04004832 if test "$mandir" = '${prefix}/man' ; then
4833 echo "...and mandir defaults to /usr/share/man"
4834 mandir=/usr/share/man
4835 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004836 fi
4837;;
4838esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004839if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +00004840 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004841 root_prefix="$ac_default_prefix"
4842 else
4843 root_prefix="$prefix"
4844 fi
Theodore Ts'ob5ffead2002-05-11 19:17:00 -04004845 root_bindir=$bindir
4846 root_sbindir=$sbindir
4847 root_libdir=$libdir
4848 root_sysconfdir=$sysconfdir
4849else
4850 root_bindir='${root_prefix}/bin'
4851 root_sbindir='${root_prefix}/sbin'
4852 root_libdir='${root_prefix}/lib'
4853 root_sysconfdir='${root_prefix}/etc'
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004854fi
4855
Theodore Ts'ob5ffead2002-05-11 19:17:00 -04004856
4857
4858
4859
Theodore Ts'oae851481997-04-29 18:13:24 +00004860echo $ac_n "checking whether linker accepts -static""... $ac_c" 1>&6
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05004861echo "configure:4862: checking whether linker accepts -static" >&5
Theodore Ts'oae851481997-04-29 18:13:24 +00004862if eval "test \"`echo '$''{'ac_cv_e2fsprogs_use_static'+set}'`\" = set"; then
4863 echo $ac_n "(cached) $ac_c" 1>&6
4864else
4865 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
4866cat > conftest.$ac_ext <<EOF
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05004867#line 4868 "configure"
Theodore Ts'oae851481997-04-29 18:13:24 +00004868#include "confdefs.h"
4869#include <stdio.h>
4870int main() {
4871fflush(stdout);
4872; return 0; }
4873EOF
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05004874if { (eval echo configure:4875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oae851481997-04-29 18:13:24 +00004875 rm -rf conftest*
4876 ac_cv_e2fsprogs_use_static=yes
4877else
4878 echo "configure: failed program was:" >&5
4879 cat conftest.$ac_ext >&5
4880 rm -rf conftest*
4881 ac_cv_e2fsprogs_use_static=no
4882fi
4883rm -f conftest*
4884LDFLAGS=$SAVE_LDFLAGS
4885fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004886
Theodore Ts'odefde781999-01-04 07:39:19 +00004887case "$host_os" in
4888solaris2.*)
4889 ac_cv_e2fsprogs_use_static=no
4890;;
4891esac
Theodore Ts'oae851481997-04-29 18:13:24 +00004892echo "$ac_t""$ac_cv_e2fsprogs_use_static" 1>&6
Theodore Ts'o74becf31997-04-26 14:37:06 +00004893LDFLAG_STATIC=
Theodore Ts'oae851481997-04-29 18:13:24 +00004894if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004895 LDFLAG_STATIC=-static
Theodore Ts'oae851481997-04-29 18:13:24 +00004896fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004897
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004898SS_DIR=`cd ${srcdir}/lib/ss; pwd`
4899ET_DIR=`cd ${srcdir}/lib/et; pwd`
4900
4901
4902if test "$cross_compiling" = yes ; then
4903 DO_TEST_SUITE=
4904else
4905 DO_TEST_SUITE=check
4906fi
4907
4908test -d lib || mkdir lib
4909test -d include || mkdir include
4910test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +00004911test -d include/asm || mkdir include/asm
Theodore Ts'obc210071997-06-17 05:41:36 +00004912rmakefile=
4913if test -d ${srcdir}/resize ; then
4914 rmakefile=resize/Makefile
4915fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004916trap '' 1 2 15
4917cat > confcache <<\EOF
4918# This file is a shell script that caches the results of configure
4919# tests run on this system so they can be shared between configure
4920# scripts and configure runs. It is not useful on other systems.
4921# If it contains results you don't want to keep, you may remove or edit it.
4922#
4923# By default, configure uses ./config.cache as the cache file,
4924# creating it if it does not exist already. You can give configure
4925# the --cache-file=FILE option to use a different cache file; that is
4926# what configure does when it calls configure scripts in
4927# subdirectories, so they share the cache.
4928# Giving --cache-file=/dev/null disables caching, for debugging configure.
4929# config.status only pays attention to the cache file if you give it the
4930# --recheck option to rerun configure.
4931#
4932EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004933# The following way of writing the cache mishandles newlines in values,
4934# but we know of no workaround that is simple, portable, and efficient.
4935# So, don't put newlines in cache variables' values.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004936# Ultrix sh set writes to stderr and can't be redirected directly,
4937# and sets the high bit in the cache file unless we assign to the vars.
4938(set) 2>&1 |
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004939 case `(ac_space=' '; set | grep ac_space) 2>&1` in
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004940 *ac_space=\ *)
4941 # `set' does not quote correctly, so add quotes (double-quote substitution
4942 # turns \\\\ into \\, and sed turns \\ into \).
4943 sed -n \
4944 -e "s/'/'\\\\''/g" \
4945 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4946 ;;
4947 *)
4948 # `set' quotes correctly as required by POSIX, so do not add quotes.
4949 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4950 ;;
4951 esac >> confcache
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004952if cmp -s $cache_file confcache; then
4953 :
4954else
4955 if test -w $cache_file; then
4956 echo "updating cache $cache_file"
4957 cat confcache > $cache_file
4958 else
4959 echo "not updating unwritable cache $cache_file"
4960 fi
4961fi
4962rm -f confcache
4963
4964trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4965
4966test "x$prefix" = xNONE && prefix=$ac_default_prefix
4967# Let make expand exec_prefix.
4968test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4969
4970# Any assignment to VPATH causes Sun make to only execute
4971# the first set of double-colon rules, so remove it if not needed.
4972# If there is a colon in the path, we need to keep it.
4973if test "x$srcdir" = x.; then
4974 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4975fi
4976
4977trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4978
4979# Transform confdefs.h into DEFS.
4980# Protect against shell expansion while executing Makefile rules.
4981# Protect against Makefile macro expansion.
4982cat > conftest.defs <<\EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004983s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004984s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
4985s%\[%\\&%g
4986s%\]%\\&%g
4987s%\$%$$%g
4988EOF
4989DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
4990rm -f conftest.defs
4991
4992
4993# Without the "./", some shells look in PATH for config.status.
4994: ${CONFIG_STATUS=./config.status}
4995
4996echo creating $CONFIG_STATUS
4997rm -f $CONFIG_STATUS
4998cat > $CONFIG_STATUS <<EOF
4999#! /bin/sh
5000# Generated automatically by configure.
5001# Run this file to recreate the current configuration.
5002# This directory was configured as follows,
5003# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5004#
5005# $0 $ac_configure_args
5006#
5007# Compiler output produced by configure, useful for debugging
5008# configure, is in ./config.log if it exists.
5009
5010ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5011for ac_option
5012do
5013 case "\$ac_option" in
5014 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5015 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5016 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5017 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00005018 echo "$CONFIG_STATUS generated by autoconf version 2.13"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005019 exit 0 ;;
5020 -help | --help | --hel | --he | --h)
5021 echo "\$ac_cs_usage"; exit 0 ;;
5022 *) echo "\$ac_cs_usage"; exit 1 ;;
5023 esac
5024done
5025
5026ac_given_srcdir=$srcdir
5027ac_given_INSTALL="$INSTALL"
5028
Theodore Ts'o44339bd1997-10-15 02:47:20 +00005029trap 'rm -fr `echo "MCONFIG Makefile util/Makefile util/subst.conf lib/et/Makefile
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005030 lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile lib/uuid/Makefile
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04005031 lib/evms/Makefile
Theodore Ts'ob5ffead2002-05-11 19:17:00 -04005032 misc/Makefile ext2ed/Makefile e2fsck/Makefile debugfs/Makefile \
5033 tests/Makefile tests/progs/Makefile $rmakefile doc/Makefile
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005034 intl/Makefile po/Makefile.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005035EOF
5036cat >> $CONFIG_STATUS <<EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005037
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005038# Protect against being on the right side of a sed subst in config.status.
5039sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5040 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005041$ac_vpsub
5042$extrasub
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00005043s%@SHELL@%$SHELL%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005044s%@CFLAGS@%$CFLAGS%g
5045s%@CPPFLAGS@%$CPPFLAGS%g
5046s%@CXXFLAGS@%$CXXFLAGS%g
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00005047s%@FFLAGS@%$FFLAGS%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005048s%@DEFS@%$DEFS%g
5049s%@LDFLAGS@%$LDFLAGS%g
5050s%@LIBS@%$LIBS%g
5051s%@exec_prefix@%$exec_prefix%g
5052s%@prefix@%$prefix%g
5053s%@program_transform_name@%$program_transform_name%g
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005054s%@bindir@%$bindir%g
5055s%@sbindir@%$sbindir%g
5056s%@libexecdir@%$libexecdir%g
5057s%@datadir@%$datadir%g
5058s%@sysconfdir@%$sysconfdir%g
5059s%@sharedstatedir@%$sharedstatedir%g
5060s%@localstatedir@%$localstatedir%g
5061s%@libdir@%$libdir%g
5062s%@includedir@%$includedir%g
5063s%@oldincludedir@%$oldincludedir%g
5064s%@infodir@%$infodir%g
5065s%@mandir@%$mandir%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005066/@MCONFIG@/r $MCONFIG
5067s%@MCONFIG@%%g
Theodore Ts'o74becf31997-04-26 14:37:06 +00005068s%@E2FSPROGS_YEAR@%$E2FSPROGS_YEAR%g
5069s%@E2FSPROGS_MONTH@%$E2FSPROGS_MONTH%g
5070s%@E2FSPROGS_VERSION@%$E2FSPROGS_VERSION%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005071s%@host@%$host%g
5072s%@host_alias@%$host_alias%g
5073s%@host_cpu@%$host_cpu%g
5074s%@host_vendor@%$host_vendor%g
5075s%@host_os@%$host_os%g
Theodore Ts'o74becf31997-04-26 14:37:06 +00005076s%@CC@%$CC%g
5077s%@LD@%$LD%g
Theodore Ts'of8bd9801999-10-26 04:19:45 +00005078s%@CPP@%$CPP%g
5079s%@LINUX_INCLUDE@%$LINUX_INCLUDE%g
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04005080s%@HTREE_CMT@%$HTREE_CMT%g
5081s%@HTREE_CLR_CMT@%$HTREE_CLR_CMT%g
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05005082s%@EVMS_ABI_CODE@%$EVMS_ABI_CODE%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005083s%@DLL_CMT@%$DLL_CMT%g
5084/@MAKEFILE_DLL@/r $MAKEFILE_DLL
5085s%@MAKEFILE_DLL@%%g
5086s%@ELF_CMT@%$ELF_CMT%g
5087/@MAKEFILE_ELF@/r $MAKEFILE_ELF
5088s%@MAKEFILE_ELF@%%g
5089s%@BSDLIB_CMT@%$BSDLIB_CMT%g
5090/@MAKEFILE_BSDLIB@/r $MAKEFILE_BSDLIB
5091s%@MAKEFILE_BSDLIB@%%g
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005092s%@PROFILE_CMT@%$PROFILE_CMT%g
5093/@MAKEFILE_PROFILE@/r $MAKEFILE_PROFILE
5094s%@MAKEFILE_PROFILE@%%g
5095s%@CHECKER_CMT@%$CHECKER_CMT%g
5096/@MAKEFILE_CHECKER@/r $MAKEFILE_CHECKER
5097s%@MAKEFILE_CHECKER@%%g
5098s%@LIB_EXT@%$LIB_EXT%g
5099s%@STATIC_LIB_EXT@%$STATIC_LIB_EXT%g
5100s%@PROFILED_LIB_EXT@%$PROFILED_LIB_EXT%g
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05005101s%@SWAPFS_CMT@%$SWAPFS_CMT%g
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005102s%@DEBUGFS_CMT@%$DEBUGFS_CMT%g
5103s%@IMAGER_CMT@%$IMAGER_CMT%g
5104s%@RESIZER_CMT@%$RESIZER_CMT%g
5105s%@E2FSCK_TYPE@%$E2FSCK_TYPE%g
5106s%@FSCK_PROG@%$FSCK_PROG%g
5107s%@FSCK_MAN@%$FSCK_MAN%g
5108/@MAKEFILE_LIBRARY@/r $MAKEFILE_LIBRARY
5109s%@MAKEFILE_LIBRARY@%%g
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005110s%@PACKAGE@%$PACKAGE%g
5111s%@VERSION@%$VERSION%g
5112s%@SET_MAKE@%$SET_MAKE%g
5113s%@RANLIB@%$RANLIB%g
5114s%@ALLOCA@%$ALLOCA%g
5115s%@USE_NLS@%$USE_NLS%g
5116s%@MSGFMT@%$MSGFMT%g
5117s%@GMSGFMT@%$GMSGFMT%g
5118s%@XGETTEXT@%$XGETTEXT%g
5119s%@GENCAT@%$GENCAT%g
5120s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
5121s%@CATALOGS@%$CATALOGS%g
5122s%@CATOBJEXT@%$CATOBJEXT%g
5123s%@DATADIRNAME@%$DATADIRNAME%g
5124s%@GMOFILES@%$GMOFILES%g
5125s%@INSTOBJEXT@%$INSTOBJEXT%g
5126s%@INTLDEPS@%$INTLDEPS%g
5127s%@INTLLIBS@%$INTLLIBS%g
5128s%@INTLOBJS@%$INTLOBJS%g
5129s%@POFILES@%$POFILES%g
5130s%@POSUB@%$POSUB%g
5131s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
5132s%@GT_NO@%$GT_NO%g
5133s%@GT_YES@%$GT_YES%g
5134s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
5135s%@l@%$l%g
Theodore Ts'o74becf31997-04-26 14:37:06 +00005136s%@BINARY_TYPE@%$BINARY_TYPE%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005137s%@LN@%$LN%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005138s%@LN_S@%$LN_S%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005139s%@MV@%$MV%g
5140s%@CP@%$CP%g
5141s%@RM@%$RM%g
5142s%@CHMOD@%$CHMOD%g
5143s%@AWK@%$AWK%g
5144s%@SED@%$SED%g
Theodore Ts'o9d564f71999-07-03 20:25:58 +00005145s%@PERL@%$PERL%g
Theodore Ts'o250f79f2001-05-19 22:02:22 +00005146s%@LDCONFIG@%$LDCONFIG%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005147s%@build@%$build%g
5148s%@build_alias@%$build_alias%g
5149s%@build_cpu@%$build_cpu%g
5150s%@build_vendor@%$build_vendor%g
5151s%@build_os@%$build_os%g
5152s%@AR@%$AR%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005153s%@STRIP@%$STRIP%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005154s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00005155s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005156s%@INSTALL_DATA@%$INSTALL_DATA%g
Theodore Ts'o6c133521999-07-03 20:37:03 +00005157s%@BUILD_CC@%$BUILD_CC%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005158s%@SIZEOF_SHORT@%$SIZEOF_SHORT%g
5159s%@SIZEOF_INT@%$SIZEOF_INT%g
5160s%@SIZEOF_LONG@%$SIZEOF_LONG%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005161s%@SIZEOF_LONG_LONG@%$SIZEOF_LONG_LONG%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005162s%@SOCKET_LIB@%$SOCKET_LIB%g
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -04005163s%@LINUX_CMT@%$LINUX_CMT%g
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00005164s%@root_prefix@%$root_prefix%g
Theodore Ts'ob5ffead2002-05-11 19:17:00 -04005165s%@root_bindir@%$root_bindir%g
5166s%@root_sbindir@%$root_sbindir%g
5167s%@root_libdir@%$root_libdir%g
5168s%@root_sysconfdir@%$root_sysconfdir%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005169s%@LDFLAG_STATIC@%$LDFLAG_STATIC%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005170s%@SS_DIR@%$SS_DIR%g
5171s%@ET_DIR@%$ET_DIR%g
5172s%@DO_TEST_SUITE@%$DO_TEST_SUITE%g
5173
5174CEOF
5175EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005176
5177cat >> $CONFIG_STATUS <<\EOF
5178
5179# Split the substitutions into bite-sized pieces for seds with
5180# small command number limits, like on Digital OSF/1 and HP-UX.
5181ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5182ac_file=1 # Number of current file.
5183ac_beg=1 # First line for current file.
5184ac_end=$ac_max_sed_cmds # Line after last line for current file.
5185ac_more_lines=:
5186ac_sed_cmds=""
5187while $ac_more_lines; do
5188 if test $ac_beg -gt 1; then
5189 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5190 else
5191 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5192 fi
5193 if test ! -s conftest.s$ac_file; then
5194 ac_more_lines=false
5195 rm -f conftest.s$ac_file
5196 else
5197 if test -z "$ac_sed_cmds"; then
5198 ac_sed_cmds="sed -f conftest.s$ac_file"
5199 else
5200 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5201 fi
5202 ac_file=`expr $ac_file + 1`
5203 ac_beg=$ac_end
5204 ac_end=`expr $ac_end + $ac_max_sed_cmds`
5205 fi
5206done
5207if test -z "$ac_sed_cmds"; then
5208 ac_sed_cmds=cat
5209fi
5210EOF
5211
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005212cat >> $CONFIG_STATUS <<EOF
5213
Theodore Ts'o44339bd1997-10-15 02:47:20 +00005214CONFIG_FILES=\${CONFIG_FILES-"MCONFIG Makefile util/Makefile util/subst.conf lib/et/Makefile
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005215 lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile lib/uuid/Makefile
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04005216 lib/evms/Makefile
Theodore Ts'ob5ffead2002-05-11 19:17:00 -04005217 misc/Makefile ext2ed/Makefile e2fsck/Makefile debugfs/Makefile \
5218 tests/Makefile tests/progs/Makefile $rmakefile doc/Makefile
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005219 intl/Makefile po/Makefile.in"}
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005220EOF
5221cat >> $CONFIG_STATUS <<\EOF
5222for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005223 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005224 case "$ac_file" in
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005225 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005226 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5227 *) ac_file_in="${ac_file}.in" ;;
5228 esac
5229
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005230 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005231
5232 # Remove last slash and all that follows it. Not all systems have dirname.
5233 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5234 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5235 # The file is in a subdirectory.
5236 test ! -d "$ac_dir" && mkdir "$ac_dir"
5237 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5238 # A "../" for each directory in $ac_dir_suffix.
5239 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5240 else
5241 ac_dir_suffix= ac_dots=
5242 fi
5243
5244 case "$ac_given_srcdir" in
5245 .) srcdir=.
5246 if test -z "$ac_dots"; then top_srcdir=.
5247 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5248 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5249 *) # Relative path.
5250 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5251 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5252 esac
5253
5254 case "$ac_given_INSTALL" in
5255 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5256 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5257 esac
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005258
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005259 echo creating "$ac_file"
5260 rm -f "$ac_file"
5261 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5262 case "$ac_file" in
5263 *Makefile*) ac_comsub="1i\\
5264# $configure_input" ;;
5265 *) ac_comsub= ;;
5266 esac
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005267
5268 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 +00005269 sed -e "$ac_comsub
5270s%@configure_input@%$configure_input%g
5271s%@srcdir@%$srcdir%g
5272s%@top_srcdir@%$top_srcdir%g
5273s%@INSTALL@%$INSTALL%g
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005274" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005275fi; done
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005276rm -f conftest.s*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005277
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005278EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005279
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005280cat >> $CONFIG_STATUS <<EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005281ac_sources="$nls_cv_header_libgt"
5282ac_dests="$nls_cv_header_intl"
5283EOF
5284
5285cat >> $CONFIG_STATUS <<\EOF
5286srcdir=$ac_given_srcdir
5287while test -n "$ac_sources"; do
5288 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
5289 set $ac_sources; ac_source=$1; shift; ac_sources=$*
5290
5291 echo "linking $srcdir/$ac_source to $ac_dest"
5292
5293 if test ! -r $srcdir/$ac_source; then
5294 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
5295 fi
5296 rm -f $ac_dest
5297
5298 # Make relative symlinks.
5299 # Remove last slash and all that follows it. Not all systems have dirname.
5300 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
5301 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
5302 # The dest file is in a subdirectory.
5303 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
5304 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
5305 # A "../" for each directory in $ac_dest_dir_suffix.
5306 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
5307 else
5308 ac_dest_dir_suffix= ac_dots=
5309 fi
5310
5311 case "$srcdir" in
5312 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
5313 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
5314 esac
5315
5316 # Make a symlink if possible; otherwise try a hard link.
5317 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
5318 ln $srcdir/$ac_source $ac_dest; then :
5319 else
5320 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
5321 fi
5322done
5323EOF
5324cat >> $CONFIG_STATUS <<EOF
5325
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005326
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005327EOF
5328cat >> $CONFIG_STATUS <<\EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005329case "$CONFIG_FILES" in *po/Makefile.in*)
5330 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
5331 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005332
5333exit 0
5334EOF
5335chmod +x $CONFIG_STATUS
5336rm -fr confdefs* $ac_clean_files
5337test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
5338