blob: f9eab551a41b5e0a17633bd2264a6c44c9ba7ae7 [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'oa4d09611997-04-29 14:28:00 +000025 --enable-dll-shlibs select DLL libraries"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000026ac_help="$ac_help
Theodore Ts'oa4d09611997-04-29 14:28:00 +000027 --enable-elf-shlibs select ELF shared libraries"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000028ac_help="$ac_help
Theodore Ts'oa4d09611997-04-29 14:28:00 +000029 --enable-bsd-shlibs select BSD shared libraries"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000030ac_help="$ac_help
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000031 --enable-nls Turn on Native Language Support"
32ac_help="$ac_help
33 --with-included-gettext use the GNU gettext library included here"
34ac_help="$ac_help
35 --with-catgets use catgets functions if available"
36ac_help="$ac_help
Theodore Ts'oa4d09611997-04-29 14:28:00 +000037 --enable-profile build profiling libraries"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000038ac_help="$ac_help
Theodore Ts'oa4d09611997-04-29 14:28:00 +000039 --enable-checker build checker libraries"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000040ac_help="$ac_help
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000041 --enable-gcc-wall enable GCC anal warnings (DON'T USE IN PRODUCTION)"
Theodore Ts'oa4d09611997-04-29 14:28:00 +000042ac_help="$ac_help
43 --enable-dynamic-e2fsck build e2fsck dynamically"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000044ac_help="$ac_help
45 --enable-fsck build fsck wrapper program"
46ac_help="$ac_help
47 --enable-old-bitops Use old (non-standard but native) bitmask operations"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000048
49# Initialize some variables set by options.
50# The variables have the same names as the options, with
51# dashes changed to underlines.
52build=NONE
53cache_file=./config.cache
54exec_prefix=NONE
55host=NONE
56no_create=
57nonopt=NONE
58no_recursion=
59prefix=NONE
60program_prefix=NONE
61program_suffix=NONE
62program_transform_name=s,x,x,
63silent=
64site=
65srcdir=
66target=NONE
67verbose=
68x_includes=NONE
69x_libraries=NONE
Theodore Ts'o21c84b71997-04-29 16:15:03 +000070bindir='${exec_prefix}/bin'
71sbindir='${exec_prefix}/sbin'
72libexecdir='${exec_prefix}/libexec'
73datadir='${prefix}/share'
74sysconfdir='${prefix}/etc'
75sharedstatedir='${prefix}/com'
76localstatedir='${prefix}/var'
77libdir='${exec_prefix}/lib'
78includedir='${prefix}/include'
79oldincludedir='/usr/include'
80infodir='${prefix}/info'
81mandir='${prefix}/man'
Theodore Ts'o50e1e101997-04-26 13:58:21 +000082
83# Initialize some other variables.
84subdirs=
Theodore Ts'o21c84b71997-04-29 16:15:03 +000085MFLAGS= MAKEFLAGS=
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +000086SHELL=${CONFIG_SHELL-/bin/sh}
Theodore Ts'o21c84b71997-04-29 16:15:03 +000087# Maximum number of lines to put in a shell here document.
88ac_max_here_lines=12
Theodore Ts'o50e1e101997-04-26 13:58:21 +000089
90ac_prev=
91for ac_option
92do
93
94 # If the previous option needs an argument, assign it.
95 if test -n "$ac_prev"; then
96 eval "$ac_prev=\$ac_option"
97 ac_prev=
98 continue
99 fi
100
101 case "$ac_option" in
102 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
103 *) ac_optarg= ;;
104 esac
105
106 # Accept the important Cygnus configure options, so we can diagnose typos.
107
108 case "$ac_option" in
109
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000110 -bindir | --bindir | --bindi | --bind | --bin | --bi)
111 ac_prev=bindir ;;
112 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
113 bindir="$ac_optarg" ;;
114
115 -build | --build | --buil | --bui | --bu)
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000116 ac_prev=build ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000117 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000118 build="$ac_optarg" ;;
119
120 -cache-file | --cache-file | --cache-fil | --cache-fi \
121 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
122 ac_prev=cache_file ;;
123 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
124 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
125 cache_file="$ac_optarg" ;;
126
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000127 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
128 ac_prev=datadir ;;
129 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
130 | --da=*)
131 datadir="$ac_optarg" ;;
132
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000133 -disable-* | --disable-*)
134 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
135 # Reject names that are not valid shell variable names.
136 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
137 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
138 fi
139 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
140 eval "enable_${ac_feature}=no" ;;
141
142 -enable-* | --enable-*)
143 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
144 # Reject names that are not valid shell variable names.
145 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
146 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
147 fi
148 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
149 case "$ac_option" in
150 *=*) ;;
151 *) ac_optarg=yes ;;
152 esac
153 eval "enable_${ac_feature}='$ac_optarg'" ;;
154
155 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
156 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
157 | --exec | --exe | --ex)
158 ac_prev=exec_prefix ;;
159 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
160 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
161 | --exec=* | --exe=* | --ex=*)
162 exec_prefix="$ac_optarg" ;;
163
164 -gas | --gas | --ga | --g)
165 # Obsolete; use --with-gas.
166 with_gas=yes ;;
167
168 -help | --help | --hel | --he)
169 # Omit some internal or obsolete options to make the list less imposing.
170 # This message is too long to be a string in the A/UX 3.1 sh.
171 cat << EOF
172Usage: configure [options] [host]
173Options: [defaults in brackets after descriptions]
174Configuration:
175 --cache-file=FILE cache test results in FILE
176 --help print this message
177 --no-create do not create output files
178 --quiet, --silent do not print \`checking...' messages
179 --version print the version of autoconf that created configure
180Directory and file names:
181 --prefix=PREFIX install architecture-independent files in PREFIX
182 [$ac_default_prefix]
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000183 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000184 [same as prefix]
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000185 --bindir=DIR user executables in DIR [EPREFIX/bin]
186 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
187 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
188 --datadir=DIR read-only architecture-independent data in DIR
189 [PREFIX/share]
190 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
191 --sharedstatedir=DIR modifiable architecture-independent data in DIR
192 [PREFIX/com]
193 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
194 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
195 --includedir=DIR C header files in DIR [PREFIX/include]
196 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
197 --infodir=DIR info documentation in DIR [PREFIX/info]
198 --mandir=DIR man documentation in DIR [PREFIX/man]
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000199 --srcdir=DIR find the sources in DIR [configure dir or ..]
200 --program-prefix=PREFIX prepend PREFIX to installed program names
201 --program-suffix=SUFFIX append SUFFIX to installed program names
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000202 --program-transform-name=PROGRAM
203 run sed PROGRAM on installed program names
204EOF
205 cat << EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000206Host type:
207 --build=BUILD configure for building on BUILD [BUILD=HOST]
208 --host=HOST configure for HOST [guessed]
209 --target=TARGET configure for TARGET [TARGET=HOST]
210Features and packages:
211 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
212 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
213 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
214 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
215 --x-includes=DIR X include files are in DIR
216 --x-libraries=DIR X library files are in DIR
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000217EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000218 if test -n "$ac_help"; then
219 echo "--enable and --with options recognized:$ac_help"
220 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000221 exit 0 ;;
222
223 -host | --host | --hos | --ho)
224 ac_prev=host ;;
225 -host=* | --host=* | --hos=* | --ho=*)
226 host="$ac_optarg" ;;
227
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000228 -includedir | --includedir | --includedi | --included | --include \
229 | --includ | --inclu | --incl | --inc)
230 ac_prev=includedir ;;
231 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
232 | --includ=* | --inclu=* | --incl=* | --inc=*)
233 includedir="$ac_optarg" ;;
234
235 -infodir | --infodir | --infodi | --infod | --info | --inf)
236 ac_prev=infodir ;;
237 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
238 infodir="$ac_optarg" ;;
239
240 -libdir | --libdir | --libdi | --libd)
241 ac_prev=libdir ;;
242 -libdir=* | --libdir=* | --libdi=* | --libd=*)
243 libdir="$ac_optarg" ;;
244
245 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
246 | --libexe | --libex | --libe)
247 ac_prev=libexecdir ;;
248 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
249 | --libexe=* | --libex=* | --libe=*)
250 libexecdir="$ac_optarg" ;;
251
252 -localstatedir | --localstatedir | --localstatedi | --localstated \
253 | --localstate | --localstat | --localsta | --localst \
254 | --locals | --local | --loca | --loc | --lo)
255 ac_prev=localstatedir ;;
256 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
257 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
258 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
259 localstatedir="$ac_optarg" ;;
260
261 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
262 ac_prev=mandir ;;
263 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
264 mandir="$ac_optarg" ;;
265
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000266 -nfp | --nfp | --nf)
267 # Obsolete; use --without-fp.
268 with_fp=no ;;
269
270 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
271 | --no-cr | --no-c)
272 no_create=yes ;;
273
274 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
275 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
276 no_recursion=yes ;;
277
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000278 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
279 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
280 | --oldin | --oldi | --old | --ol | --o)
281 ac_prev=oldincludedir ;;
282 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
283 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
284 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
285 oldincludedir="$ac_optarg" ;;
286
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000287 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
288 ac_prev=prefix ;;
289 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
290 prefix="$ac_optarg" ;;
291
292 -program-prefix | --program-prefix | --program-prefi | --program-pref \
293 | --program-pre | --program-pr | --program-p)
294 ac_prev=program_prefix ;;
295 -program-prefix=* | --program-prefix=* | --program-prefi=* \
296 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
297 program_prefix="$ac_optarg" ;;
298
299 -program-suffix | --program-suffix | --program-suffi | --program-suff \
300 | --program-suf | --program-su | --program-s)
301 ac_prev=program_suffix ;;
302 -program-suffix=* | --program-suffix=* | --program-suffi=* \
303 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
304 program_suffix="$ac_optarg" ;;
305
306 -program-transform-name | --program-transform-name \
307 | --program-transform-nam | --program-transform-na \
308 | --program-transform-n | --program-transform- \
309 | --program-transform | --program-transfor \
310 | --program-transfo | --program-transf \
311 | --program-trans | --program-tran \
312 | --progr-tra | --program-tr | --program-t)
313 ac_prev=program_transform_name ;;
314 -program-transform-name=* | --program-transform-name=* \
315 | --program-transform-nam=* | --program-transform-na=* \
316 | --program-transform-n=* | --program-transform-=* \
317 | --program-transform=* | --program-transfor=* \
318 | --program-transfo=* | --program-transf=* \
319 | --program-trans=* | --program-tran=* \
320 | --progr-tra=* | --program-tr=* | --program-t=*)
321 program_transform_name="$ac_optarg" ;;
322
323 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
324 | -silent | --silent | --silen | --sile | --sil)
325 silent=yes ;;
326
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000327 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
328 ac_prev=sbindir ;;
329 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
330 | --sbi=* | --sb=*)
331 sbindir="$ac_optarg" ;;
332
333 -sharedstatedir | --sharedstatedir | --sharedstatedi \
334 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
335 | --sharedst | --shareds | --shared | --share | --shar \
336 | --sha | --sh)
337 ac_prev=sharedstatedir ;;
338 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
339 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
340 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
341 | --sha=* | --sh=*)
342 sharedstatedir="$ac_optarg" ;;
343
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000344 -site | --site | --sit)
345 ac_prev=site ;;
346 -site=* | --site=* | --sit=*)
347 site="$ac_optarg" ;;
348
349 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
350 ac_prev=srcdir ;;
351 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
352 srcdir="$ac_optarg" ;;
353
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000354 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
355 | --syscon | --sysco | --sysc | --sys | --sy)
356 ac_prev=sysconfdir ;;
357 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
358 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
359 sysconfdir="$ac_optarg" ;;
360
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000361 -target | --target | --targe | --targ | --tar | --ta | --t)
362 ac_prev=target ;;
363 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
364 target="$ac_optarg" ;;
365
366 -v | -verbose | --verbose | --verbos | --verbo | --verb)
367 verbose=yes ;;
368
369 -version | --version | --versio | --versi | --vers)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000370 echo "configure generated by autoconf version 2.13"
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000371 exit 0 ;;
372
373 -with-* | --with-*)
374 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
375 # Reject names that are not valid shell variable names.
376 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
377 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
378 fi
379 ac_package=`echo $ac_package| sed 's/-/_/g'`
380 case "$ac_option" in
381 *=*) ;;
382 *) ac_optarg=yes ;;
383 esac
384 eval "with_${ac_package}='$ac_optarg'" ;;
385
386 -without-* | --without-*)
387 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
388 # Reject names that are not valid shell variable names.
389 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
390 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
391 fi
392 ac_package=`echo $ac_package| sed 's/-/_/g'`
393 eval "with_${ac_package}=no" ;;
394
395 --x)
396 # Obsolete; use --with-x.
397 with_x=yes ;;
398
399 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
400 | --x-incl | --x-inc | --x-in | --x-i)
401 ac_prev=x_includes ;;
402 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
403 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
404 x_includes="$ac_optarg" ;;
405
406 -x-libraries | --x-libraries | --x-librarie | --x-librari \
407 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
408 ac_prev=x_libraries ;;
409 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
410 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
411 x_libraries="$ac_optarg" ;;
412
413 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
414 ;;
415
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000416 *)
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000417 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
418 echo "configure: warning: $ac_option: invalid host type" 1>&2
419 fi
420 if test "x$nonopt" != xNONE; then
421 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
422 fi
423 nonopt="$ac_option"
424 ;;
425
426 esac
427done
428
429if test -n "$ac_prev"; then
430 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
431fi
432
433trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
434
435# File descriptor usage:
436# 0 standard input
437# 1 file creation
438# 2 errors and warnings
439# 3 some systems may open it to /dev/tty
440# 4 used on the Kubota Titan
441# 6 checking for... messages and results
442# 5 compiler messages saved in config.log
443if test "$silent" = yes; then
444 exec 6>/dev/null
445else
446 exec 6>&1
447fi
448exec 5>./config.log
449
450echo "\
451This file contains any messages produced by compilers while
452running configure, to aid debugging if configure makes a mistake.
453" 1>&5
454
455# Strip out --no-create and --no-recursion so they do not pile up.
456# Also quote any args containing shell metacharacters.
457ac_configure_args=
458for ac_arg
459do
460 case "$ac_arg" in
461 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
462 | --no-cr | --no-c) ;;
463 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
464 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
465 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
466 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
467 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
468 esac
469done
470
471# NLS nuisances.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000472# Only set these to C if already set. These must not be set unconditionally
473# because not all systems understand e.g. LANG=C (notably SCO).
474# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
475# Non-C LC_CTYPE values break the ctype check.
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000476if test "${LANG+set}" = set; then LANG=C; export LANG; fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000477if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
478if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
479if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000480
481# confdefs.h avoids OS command line length limits that DEFS can exceed.
482rm -rf conftest* confdefs.h
483# AIX cpp loses on an empty file, so make sure it contains at least a newline.
484echo > confdefs.h
485
486# A filename unique to this package, relative to the directory that
487# configure is in, which we can look for to find out if srcdir is correct.
488ac_unique_file=version.h
489
490# Find the source files, if location was not specified.
491if test -z "$srcdir"; then
492 ac_srcdir_defaulted=yes
493 # Try the directory containing this script, then its parent.
494 ac_prog=$0
495 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
496 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
497 srcdir=$ac_confdir
498 if test ! -r $srcdir/$ac_unique_file; then
499 srcdir=..
500 fi
501else
502 ac_srcdir_defaulted=no
503fi
504if test ! -r $srcdir/$ac_unique_file; then
505 if test "$ac_srcdir_defaulted" = yes; then
506 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
507 else
508 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
509 fi
510fi
511srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
512
513# Prefer explicitly selected file to automatically selected ones.
514if test -z "$CONFIG_SITE"; then
515 if test "x$prefix" != xNONE; then
516 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
517 else
518 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
519 fi
520fi
521for ac_site_file in $CONFIG_SITE; do
522 if test -r "$ac_site_file"; then
523 echo "loading site script $ac_site_file"
524 . "$ac_site_file"
525 fi
526done
527
528if test -r "$cache_file"; then
529 echo "loading cache $cache_file"
530 . $cache_file
531else
532 echo "creating cache $cache_file"
533 > $cache_file
534fi
535
536ac_ext=c
537# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
538ac_cpp='$CPP $CPPFLAGS'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000539ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000540ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000541cross_compiling=$ac_cv_prog_cc_cross
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000542
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000543ac_exeext=
544ac_objext=o
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000545if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
546 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
547 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
548 ac_n= ac_c='
549' ac_t=' '
550 else
551 ac_n=-n ac_c= ac_t=
552 fi
553else
554 ac_n= ac_c='\c' ac_t=
555fi
556
557
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +0000558
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000559MCONFIG=./MCONFIG
560
Theodore Ts'o74becf31997-04-26 14:37:06 +0000561BINARY_TYPE=bin
562E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
563 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
564DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
565 | tr \" " "`
566MONTH=`echo $DATE | awk -F- '{print $2}'`
567YEAR=`echo $DATE | awk -F- '{print $3}'`
568
Theodore Ts'o14790ed1999-01-12 23:32:52 +0000569if expr $YEAR ">" 1900 > /dev/null ; then
570 E2FSPROGS_YEAR=$YEAR
571elif expr $YEAR ">" 90 >/dev/null ; then
Theodore Ts'o74becf31997-04-26 14:37:06 +0000572 E2FSPROGS_YEAR=19$YEAR
573else
574 E2FSPROGS_YEAR=20$YEAR
575fi
576
577case $MONTH in
578Jan) E2FSPROGS_MONTH="January" ;;
579Feb) E2FSPROGS_MONTH="February" ;;
580Mar) E2FSPROGS_MONTH="March" ;;
581Apr) E2FSPROGS_MONTH="April" ;;
582May) E2FSPROGS_MONTH="May" ;;
583Jun) E2FSPROGS_MONTH="June" ;;
584Jul) E2FSPROGS_MONTH="July" ;;
585Aug) E2FSPROGS_MONTH="August" ;;
586Sep) E2FSPROGS_MONTH="September" ;;
587Oct) E2FSPROGS_MONTH="October" ;;
588Nov) E2FSPROGS_MONTH="November" ;;
589Dec) E2FSPROGS_MONTH="December" ;;
590*) echo "Unknown month $MONTH??" ;;
591esac
592
593unset DATE MONTH YEAR
594echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION"
595echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}"
596
597
598
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000599
600ac_aux_dir=
601for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
602 if test -f $ac_dir/install-sh; then
603 ac_aux_dir=$ac_dir
604 ac_install_sh="$ac_aux_dir/install-sh -c"
605 break
606 elif test -f $ac_dir/install.sh; then
607 ac_aux_dir=$ac_dir
608 ac_install_sh="$ac_aux_dir/install.sh -c"
609 break
610 fi
611done
612if test -z "$ac_aux_dir"; then
613 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
614fi
615ac_config_guess=$ac_aux_dir/config.guess
616ac_config_sub=$ac_aux_dir/config.sub
617ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
618
619
620# Make sure we can run config.sub.
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000621if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000622else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
623fi
624
625echo $ac_n "checking host system type""... $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +0000626echo "configure:627: checking host system type" >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000627
628host_alias=$host
629case "$host_alias" in
630NONE)
631 case $nonopt in
632 NONE)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000633 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000634 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
635 fi ;;
636 *) host_alias=$nonopt ;;
637 esac ;;
638esac
639
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000640host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000641host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
642host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
643host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000644echo "$ac_t""$host" 1>&6
645
Theodore Ts'o74becf31997-04-26 14:37:06 +0000646# Check whether --with-cc or --without-cc was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000647if test "${with_cc+set}" = set; then
648 withval="$with_cc"
Theodore Ts'o74becf31997-04-26 14:37:06 +0000649 echo "$ac_t""CC=$withval" 1>&6
650CC=$withval
651else
652 if test -z "$CC" ; then CC=cc; fi
653echo "$ac_t""CC defaults to $CC" 1>&6
654fi
655export CC
656
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000657# Extract the first word of "gcc", so it can be a program name with args.
658set dummy gcc; ac_word=$2
659echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +0000660echo "configure:661: checking for $ac_word" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000661if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
662 echo $ac_n "(cached) $ac_c" 1>&6
663else
664 if test -n "$CC"; then
665 ac_cv_prog_CC="$CC" # Let the user override the test.
666else
667 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
668 ac_dummy="$PATH"
669 for ac_dir in $ac_dummy; do
670 test -z "$ac_dir" && ac_dir=.
671 if test -f $ac_dir/$ac_word; then
672 ac_cv_prog_CC="gcc"
673 break
674 fi
675 done
676 IFS="$ac_save_ifs"
677fi
678fi
679CC="$ac_cv_prog_CC"
680if test -n "$CC"; then
681 echo "$ac_t""$CC" 1>&6
682else
683 echo "$ac_t""no" 1>&6
684fi
685
686if test -z "$CC"; then
687 # Extract the first word of "cc", so it can be a program name with args.
688set dummy cc; ac_word=$2
689echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +0000690echo "configure:691: checking for $ac_word" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000691if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
692 echo $ac_n "(cached) $ac_c" 1>&6
693else
694 if test -n "$CC"; then
695 ac_cv_prog_CC="$CC" # Let the user override the test.
696else
697 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
698 ac_prog_rejected=no
699 ac_dummy="$PATH"
700 for ac_dir in $ac_dummy; do
701 test -z "$ac_dir" && ac_dir=.
702 if test -f $ac_dir/$ac_word; then
703 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
704 ac_prog_rejected=yes
705 continue
706 fi
707 ac_cv_prog_CC="cc"
708 break
709 fi
710 done
711 IFS="$ac_save_ifs"
712if test $ac_prog_rejected = yes; then
713 # We found a bogon in the path, so make sure we never use it.
714 set dummy $ac_cv_prog_CC
715 shift
716 if test $# -gt 0; then
717 # We chose a different compiler from the bogus one.
718 # However, it has the same basename, so the bogon will be chosen
719 # first if we set CC to just the basename; use the full file name.
720 shift
721 set dummy "$ac_dir/$ac_word" "$@"
722 shift
723 ac_cv_prog_CC="$@"
724 fi
725fi
726fi
727fi
728CC="$ac_cv_prog_CC"
729if test -n "$CC"; then
730 echo "$ac_t""$CC" 1>&6
731else
732 echo "$ac_t""no" 1>&6
733fi
734
735 if test -z "$CC"; then
736 case "`uname -s`" in
737 *win32* | *WIN32*)
738 # Extract the first word of "cl", so it can be a program name with args.
739set dummy cl; ac_word=$2
740echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +0000741echo "configure:742: checking for $ac_word" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000742if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
743 echo $ac_n "(cached) $ac_c" 1>&6
744else
745 if test -n "$CC"; then
746 ac_cv_prog_CC="$CC" # Let the user override the test.
747else
748 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
749 ac_dummy="$PATH"
750 for ac_dir in $ac_dummy; do
751 test -z "$ac_dir" && ac_dir=.
752 if test -f $ac_dir/$ac_word; then
753 ac_cv_prog_CC="cl"
754 break
755 fi
756 done
757 IFS="$ac_save_ifs"
758fi
759fi
760CC="$ac_cv_prog_CC"
761if test -n "$CC"; then
762 echo "$ac_t""$CC" 1>&6
763else
764 echo "$ac_t""no" 1>&6
765fi
766 ;;
767 esac
768 fi
769 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
770fi
771
772echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +0000773echo "configure:774: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000774
775ac_ext=c
776# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
777ac_cpp='$CPP $CPPFLAGS'
778ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
779ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
780cross_compiling=$ac_cv_prog_cc_cross
781
782cat > conftest.$ac_ext << EOF
783
Theodore Ts'oa64c9c12000-02-08 20:17:21 +0000784#line 785 "configure"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000785#include "confdefs.h"
786
787main(){return(0);}
788EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +0000789if { (eval echo configure:790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000790 ac_cv_prog_cc_works=yes
791 # If we can't run a trivial program, we are probably using a cross compiler.
792 if (./conftest; exit) 2>/dev/null; then
793 ac_cv_prog_cc_cross=no
794 else
795 ac_cv_prog_cc_cross=yes
796 fi
797else
798 echo "configure: failed program was:" >&5
799 cat conftest.$ac_ext >&5
800 ac_cv_prog_cc_works=no
801fi
802rm -fr conftest*
803ac_ext=c
804# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
805ac_cpp='$CPP $CPPFLAGS'
806ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
807ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
808cross_compiling=$ac_cv_prog_cc_cross
809
810echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
811if test $ac_cv_prog_cc_works = no; then
812 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
813fi
814echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +0000815echo "configure:816: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000816echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
817cross_compiling=$ac_cv_prog_cc_cross
818
819echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +0000820echo "configure:821: checking whether we are using GNU C" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000821if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
822 echo $ac_n "(cached) $ac_c" 1>&6
823else
824 cat > conftest.c <<EOF
825#ifdef __GNUC__
826 yes;
827#endif
828EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +0000829if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:830: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000830 ac_cv_prog_gcc=yes
831else
832 ac_cv_prog_gcc=no
833fi
834fi
835
836echo "$ac_t""$ac_cv_prog_gcc" 1>&6
837
838if test $ac_cv_prog_gcc = yes; then
839 GCC=yes
840else
841 GCC=
842fi
843
844ac_test_CFLAGS="${CFLAGS+set}"
845ac_save_CFLAGS="$CFLAGS"
846CFLAGS=
847echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +0000848echo "configure:849: checking whether ${CC-cc} accepts -g" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000849if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
850 echo $ac_n "(cached) $ac_c" 1>&6
851else
852 echo 'void f(){}' > conftest.c
853if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
854 ac_cv_prog_cc_g=yes
855else
856 ac_cv_prog_cc_g=no
857fi
858rm -f conftest*
859
860fi
861
862echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
863if test "$ac_test_CFLAGS" = set; then
864 CFLAGS="$ac_save_CFLAGS"
865elif test $ac_cv_prog_cc_g = yes; then
866 if test "$GCC" = yes; then
867 CFLAGS="-g -O2"
868 else
869 CFLAGS="-g"
870 fi
871else
872 if test "$GCC" = yes; then
873 CFLAGS="-O2"
874 else
875 CFLAGS=
876 fi
877fi
878
Theodore Ts'o74becf31997-04-26 14:37:06 +0000879# Check whether --with-linker or --without-linker was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000880if test "${with_linker+set}" = set; then
881 withval="$with_linker"
Theodore Ts'o74becf31997-04-26 14:37:06 +0000882 echo "$ac_t""LD=$withval" 1>&6
883LD=$withval
884else
885 if test -z "$LD" ; then LD=$CC; fi
886echo "$ac_t""LD defaults to $LD" 1>&6
887fi
888export LD
889
890# Check whether --with-ccopts or --without-ccopts was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000891if test "${with_ccopts+set}" = set; then
892 withval="$with_ccopts"
Theodore Ts'o74becf31997-04-26 14:37:06 +0000893 echo "$ac_t""CCOPTS is $withval" 1>&6
894CCOPTS=$withval
895CFLAGS="$CFLAGS $withval"
896else
897 CCOPTS=
898fi
899
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000900echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +0000901echo "configure:902: checking how to run the C preprocessor" >&5
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000902# On Suns, sometimes $CPP names a directory.
903if test -n "$CPP" && test -d "$CPP"; then
904 CPP=
905fi
906if test -z "$CPP"; then
907if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
908 echo $ac_n "(cached) $ac_c" 1>&6
909else
910 # This must be in double quotes, not single quotes, because CPP may get
911 # substituted into the Makefile and "${CC-cc}" will confuse make.
912 CPP="${CC-cc} -E"
913 # On the NeXT, cc -E runs the code through the compiler's parser,
914 # not just through cpp.
915 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +0000916#line 917 "configure"
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000917#include "confdefs.h"
918#include <assert.h>
919Syntax Error
920EOF
921ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +0000922{ (eval echo configure:923: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000923ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
924if test -z "$ac_err"; then
925 :
926else
927 echo "$ac_err" >&5
928 echo "configure: failed program was:" >&5
929 cat conftest.$ac_ext >&5
930 rm -rf conftest*
931 CPP="${CC-cc} -E -traditional-cpp"
932 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +0000933#line 934 "configure"
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000934#include "confdefs.h"
935#include <assert.h>
936Syntax Error
937EOF
938ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +0000939{ (eval echo configure:940: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000940ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
941if test -z "$ac_err"; then
942 :
943else
944 echo "$ac_err" >&5
945 echo "configure: failed program was:" >&5
946 cat conftest.$ac_ext >&5
947 rm -rf conftest*
948 CPP="${CC-cc} -nologo -E"
949 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +0000950#line 951 "configure"
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000951#include "confdefs.h"
952#include <assert.h>
953Syntax Error
954EOF
955ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +0000956{ (eval echo configure:957: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000957ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
958if test -z "$ac_err"; then
959 :
960else
961 echo "$ac_err" >&5
962 echo "configure: failed program was:" >&5
963 cat conftest.$ac_ext >&5
964 rm -rf conftest*
965 CPP=/lib/cpp
966fi
967rm -f conftest*
968fi
969rm -f conftest*
970fi
971rm -f conftest*
972 ac_cv_prog_CPP="$CPP"
973fi
974 CPP="$ac_cv_prog_CPP"
975else
976 ac_cv_prog_CPP="$CPP"
977fi
978echo "$ac_t""$CPP" 1>&6
979
980ac_safe=`echo "linux/fs.h" | sed 'y%./+-%__p_%'`
981echo $ac_n "checking for linux/fs.h""... $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +0000982echo "configure:983: checking for linux/fs.h" >&5
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000983if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
984 echo $ac_n "(cached) $ac_c" 1>&6
985else
986 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +0000987#line 988 "configure"
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000988#include "confdefs.h"
989#include <linux/fs.h>
990EOF
991ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +0000992{ (eval echo configure:993: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000993ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
994if test -z "$ac_err"; then
995 rm -rf conftest*
996 eval "ac_cv_header_$ac_safe=yes"
997else
998 echo "$ac_err" >&5
999 echo "configure: failed program was:" >&5
1000 cat conftest.$ac_ext >&5
1001 rm -rf conftest*
1002 eval "ac_cv_header_$ac_safe=no"
1003fi
1004rm -f conftest*
1005fi
1006if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1007 echo "$ac_t""yes" 1>&6
1008 linux_headers=yes
1009else
1010 echo "$ac_t""no" 1>&6
1011linux_headers=no
1012fi
1013
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001014if test "$linux_headers" != yes; then
1015 LINUX_INCLUDE='-I$(top_builddir)/include'
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001016fi
1017
Theodore Ts'oa4d09611997-04-29 14:28:00 +00001018LIB_EXT=.a
1019STATIC_LIB_EXT=.a
1020PROFILE_LIB_EXT=.a
Theodore Ts'o74becf31997-04-26 14:37:06 +00001021# Check whether --with-ldopts or --without-ldopts was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001022if test "${with_ldopts+set}" = set; then
1023 withval="$with_ldopts"
Theodore Ts'o74becf31997-04-26 14:37:06 +00001024 echo "$ac_t""LDFLAGS is $withval" 1>&6
1025LDFLAGS=$withval
1026else
1027 LDFLAGS=
1028fi
1029
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00001030# Check whether --with-root-prefix or --without-root-prefix was given.
1031if test "${with_root_prefix+set}" = set; then
1032 withval="$with_root_prefix"
1033 root_prefix=$withval
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001034else
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00001035 root_prefix=NONE
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001036fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001037# Check whether --enable-dll-shlibs or --disable-dll-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001038if test "${enable_dll_shlibs+set}" = set; then
1039 enableval="$enable_dll_shlibs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001040 if test "$enableval" = "no"
1041then
1042 DLL_CMT=#
1043 MAKEFILE_DLL=/dev/null
1044 echo "Disabling DLL shared libraries"
1045else
1046 DLL_CMT=
1047 MAKEFILE_DLL=$srcdir/lib/Makefile.dll-lib
Theodore Ts'o74becf31997-04-26 14:37:06 +00001048 BINARY_TYPE=dllbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00001049 LIB_EXT=.sa
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001050 echo "Enabling DLL shared libraries"
1051fi
1052
1053else
1054 MAKEFILE_DLL=/dev/null
1055DLL_CMT=#
1056echo "Disabling DLL shared libraries by default"
1057
1058fi
1059
1060
1061
1062# Check whether --enable-elf-shlibs or --disable-elf-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001063if test "${enable_elf_shlibs+set}" = set; then
1064 enableval="$enable_elf_shlibs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001065 if test "$enableval" = "no"
1066then
1067 ELF_CMT=#
1068 MAKEFILE_ELF=/dev/null
1069 echo "Disabling ELF shared libraries"
1070else
1071 ELF_CMT=
1072 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
Theodore Ts'o74becf31997-04-26 14:37:06 +00001073 BINARY_TYPE=elfbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00001074 LIB_EXT=.so
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001075 echo "Enabling ELF shared libraries"
1076fi
1077
1078else
1079 MAKEFILE_ELF=/dev/null
1080ELF_CMT=#
1081echo "Disabling ELF shared libraries by default"
1082
1083fi
1084
1085
1086
1087# Check whether --enable-bsd-shlibs or --disable-bsd-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001088if test "${enable_bsd_shlibs+set}" = set; then
1089 enableval="$enable_bsd_shlibs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001090 if test "$enableval" = "no"
1091then
1092 BSDLIB_CMT=#
1093 MAKEFILE_BSDLIB=/dev/null
1094 echo "Disabling BSD shared libraries"
1095else
1096 BSDLIB_CMT=
1097 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
Theodore Ts'oa4d09611997-04-29 14:28:00 +00001098 LIB_EXT=.so
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001099 echo "Enabling BSD shared libraries"
1100fi
1101
1102else
1103 MAKEFILE_BSDLIB=/dev/null
1104BSDLIB_CMT=#
1105echo "Disabling BSD shared libraries by default"
1106
1107fi
1108
1109
1110
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001111PACKAGE=e2fsprogs
1112VERSION="$E2FSPROGS_VERSION"
1113cat >> confdefs.h <<EOF
1114#define PACKAGE "$PACKAGE"
1115EOF
1116
1117cat >> confdefs.h <<EOF
1118#define VERSION "$VERSION"
1119EOF
1120
1121
1122
1123
1124ALL_LINGUAS="it"
1125echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1126echo "configure:1127: checking whether ${MAKE-make} sets \${MAKE}" >&5
1127set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1128if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1129 echo $ac_n "(cached) $ac_c" 1>&6
1130else
1131 cat > conftestmake <<\EOF
1132all:
1133 @echo 'ac_maketemp="${MAKE}"'
1134EOF
1135# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1136eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1137if test -n "$ac_maketemp"; then
1138 eval ac_cv_prog_make_${ac_make}_set=yes
1139else
1140 eval ac_cv_prog_make_${ac_make}_set=no
1141fi
1142rm -f conftestmake
1143fi
1144if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1145 echo "$ac_t""yes" 1>&6
1146 SET_MAKE=
1147else
1148 echo "$ac_t""no" 1>&6
1149 SET_MAKE="MAKE=${MAKE-make}"
1150fi
1151
1152# Extract the first word of "ranlib", so it can be a program name with args.
1153set dummy ranlib; ac_word=$2
1154echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1155echo "configure:1156: checking for $ac_word" >&5
1156if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1157 echo $ac_n "(cached) $ac_c" 1>&6
1158else
1159 if test -n "$RANLIB"; then
1160 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1161else
1162 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1163 ac_dummy="$PATH"
1164 for ac_dir in $ac_dummy; do
1165 test -z "$ac_dir" && ac_dir=.
1166 if test -f $ac_dir/$ac_word; then
1167 ac_cv_prog_RANLIB="ranlib"
1168 break
1169 fi
1170 done
1171 IFS="$ac_save_ifs"
1172 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1173fi
1174fi
1175RANLIB="$ac_cv_prog_RANLIB"
1176if test -n "$RANLIB"; then
1177 echo "$ac_t""$RANLIB" 1>&6
1178else
1179 echo "$ac_t""no" 1>&6
1180fi
1181
1182echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1183echo "configure:1184: checking for POSIXized ISC" >&5
1184if test -d /etc/conf/kconfig.d &&
1185 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1186then
1187 echo "$ac_t""yes" 1>&6
1188 ISC=yes # If later tests want to check for ISC.
1189 cat >> confdefs.h <<\EOF
1190#define _POSIX_SOURCE 1
1191EOF
1192
1193 if test "$GCC" = yes; then
1194 CC="$CC -posix"
1195 else
1196 CC="$CC -Xp"
1197 fi
1198else
1199 echo "$ac_t""no" 1>&6
1200 ISC=
1201fi
1202
1203echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1204echo "configure:1205: checking for ANSI C header files" >&5
1205if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1206 echo $ac_n "(cached) $ac_c" 1>&6
1207else
1208 cat > conftest.$ac_ext <<EOF
1209#line 1210 "configure"
1210#include "confdefs.h"
1211#include <stdlib.h>
1212#include <stdarg.h>
1213#include <string.h>
1214#include <float.h>
1215EOF
1216ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1217{ (eval echo configure:1218: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1218ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1219if test -z "$ac_err"; then
1220 rm -rf conftest*
1221 ac_cv_header_stdc=yes
1222else
1223 echo "$ac_err" >&5
1224 echo "configure: failed program was:" >&5
1225 cat conftest.$ac_ext >&5
1226 rm -rf conftest*
1227 ac_cv_header_stdc=no
1228fi
1229rm -f conftest*
1230
1231if test $ac_cv_header_stdc = yes; then
1232 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1233cat > conftest.$ac_ext <<EOF
1234#line 1235 "configure"
1235#include "confdefs.h"
1236#include <string.h>
1237EOF
1238if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1239 egrep "memchr" >/dev/null 2>&1; then
1240 :
1241else
1242 rm -rf conftest*
1243 ac_cv_header_stdc=no
1244fi
1245rm -f conftest*
1246
1247fi
1248
1249if test $ac_cv_header_stdc = yes; then
1250 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1251cat > conftest.$ac_ext <<EOF
1252#line 1253 "configure"
1253#include "confdefs.h"
1254#include <stdlib.h>
1255EOF
1256if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1257 egrep "free" >/dev/null 2>&1; then
1258 :
1259else
1260 rm -rf conftest*
1261 ac_cv_header_stdc=no
1262fi
1263rm -f conftest*
1264
1265fi
1266
1267if test $ac_cv_header_stdc = yes; then
1268 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1269if test "$cross_compiling" = yes; then
1270 :
1271else
1272 cat > conftest.$ac_ext <<EOF
1273#line 1274 "configure"
1274#include "confdefs.h"
1275#include <ctype.h>
1276#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1277#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1278#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1279int main () { int i; for (i = 0; i < 256; i++)
1280if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1281exit (0); }
1282
1283EOF
1284if { (eval echo configure:1285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1285then
1286 :
1287else
1288 echo "configure: failed program was:" >&5
1289 cat conftest.$ac_ext >&5
1290 rm -fr conftest*
1291 ac_cv_header_stdc=no
1292fi
1293rm -fr conftest*
1294fi
1295
1296fi
1297fi
1298
1299echo "$ac_t""$ac_cv_header_stdc" 1>&6
1300if test $ac_cv_header_stdc = yes; then
1301 cat >> confdefs.h <<\EOF
1302#define STDC_HEADERS 1
1303EOF
1304
1305fi
1306
1307echo $ac_n "checking for working const""... $ac_c" 1>&6
1308echo "configure:1309: checking for working const" >&5
1309if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1310 echo $ac_n "(cached) $ac_c" 1>&6
1311else
1312 cat > conftest.$ac_ext <<EOF
1313#line 1314 "configure"
1314#include "confdefs.h"
1315
1316int main() {
1317
1318/* Ultrix mips cc rejects this. */
1319typedef int charset[2]; const charset x;
1320/* SunOS 4.1.1 cc rejects this. */
1321char const *const *ccp;
1322char **p;
1323/* NEC SVR4.0.2 mips cc rejects this. */
1324struct point {int x, y;};
1325static struct point const zero = {0,0};
1326/* AIX XL C 1.02.0.0 rejects this.
1327 It does not let you subtract one const X* pointer from another in an arm
1328 of an if-expression whose if-part is not a constant expression */
1329const char *g = "string";
1330ccp = &g + (g ? g-g : 0);
1331/* HPUX 7.0 cc rejects these. */
1332++ccp;
1333p = (char**) ccp;
1334ccp = (char const *const *) p;
1335{ /* SCO 3.2v4 cc rejects this. */
1336 char *t;
1337 char const *s = 0 ? (char *) 0 : (char const *) 0;
1338
1339 *t++ = 0;
1340}
1341{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1342 int x[] = {25, 17};
1343 const int *foo = &x[0];
1344 ++foo;
1345}
1346{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1347 typedef const int *iptr;
1348 iptr p = 0;
1349 ++p;
1350}
1351{ /* AIX XL C 1.02.0.0 rejects this saying
1352 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1353 struct s { int j; const int *ap[3]; };
1354 struct s *b; b->j = 5;
1355}
1356{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1357 const int foo = 10;
1358}
1359
1360; return 0; }
1361EOF
1362if { (eval echo configure:1363: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1363 rm -rf conftest*
1364 ac_cv_c_const=yes
1365else
1366 echo "configure: failed program was:" >&5
1367 cat conftest.$ac_ext >&5
1368 rm -rf conftest*
1369 ac_cv_c_const=no
1370fi
1371rm -f conftest*
1372fi
1373
1374echo "$ac_t""$ac_cv_c_const" 1>&6
1375if test $ac_cv_c_const = no; then
1376 cat >> confdefs.h <<\EOF
1377#define const
1378EOF
1379
1380fi
1381
1382echo $ac_n "checking for inline""... $ac_c" 1>&6
1383echo "configure:1384: checking for inline" >&5
1384if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1385 echo $ac_n "(cached) $ac_c" 1>&6
1386else
1387 ac_cv_c_inline=no
1388for ac_kw in inline __inline__ __inline; do
1389 cat > conftest.$ac_ext <<EOF
1390#line 1391 "configure"
1391#include "confdefs.h"
1392
1393int main() {
1394} $ac_kw foo() {
1395; return 0; }
1396EOF
1397if { (eval echo configure:1398: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1398 rm -rf conftest*
1399 ac_cv_c_inline=$ac_kw; break
1400else
1401 echo "configure: failed program was:" >&5
1402 cat conftest.$ac_ext >&5
1403fi
1404rm -f conftest*
1405done
1406
1407fi
1408
1409echo "$ac_t""$ac_cv_c_inline" 1>&6
1410case "$ac_cv_c_inline" in
1411 inline | yes) ;;
1412 no) cat >> confdefs.h <<\EOF
1413#define inline
1414EOF
1415 ;;
1416 *) cat >> confdefs.h <<EOF
1417#define inline $ac_cv_c_inline
1418EOF
1419 ;;
1420esac
1421
1422echo $ac_n "checking for off_t""... $ac_c" 1>&6
1423echo "configure:1424: checking for off_t" >&5
1424if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1425 echo $ac_n "(cached) $ac_c" 1>&6
1426else
1427 cat > conftest.$ac_ext <<EOF
1428#line 1429 "configure"
1429#include "confdefs.h"
1430#include <sys/types.h>
1431#if STDC_HEADERS
1432#include <stdlib.h>
1433#include <stddef.h>
1434#endif
1435EOF
1436if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1437 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1438 rm -rf conftest*
1439 ac_cv_type_off_t=yes
1440else
1441 rm -rf conftest*
1442 ac_cv_type_off_t=no
1443fi
1444rm -f conftest*
1445
1446fi
1447echo "$ac_t""$ac_cv_type_off_t" 1>&6
1448if test $ac_cv_type_off_t = no; then
1449 cat >> confdefs.h <<\EOF
1450#define off_t long
1451EOF
1452
1453fi
1454
1455echo $ac_n "checking for size_t""... $ac_c" 1>&6
1456echo "configure:1457: checking for size_t" >&5
1457if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1458 echo $ac_n "(cached) $ac_c" 1>&6
1459else
1460 cat > conftest.$ac_ext <<EOF
1461#line 1462 "configure"
1462#include "confdefs.h"
1463#include <sys/types.h>
1464#if STDC_HEADERS
1465#include <stdlib.h>
1466#include <stddef.h>
1467#endif
1468EOF
1469if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1470 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1471 rm -rf conftest*
1472 ac_cv_type_size_t=yes
1473else
1474 rm -rf conftest*
1475 ac_cv_type_size_t=no
1476fi
1477rm -f conftest*
1478
1479fi
1480echo "$ac_t""$ac_cv_type_size_t" 1>&6
1481if test $ac_cv_type_size_t = no; then
1482 cat >> confdefs.h <<\EOF
1483#define size_t unsigned
1484EOF
1485
1486fi
1487
1488# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1489# for constant arguments. Useless!
1490echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1491echo "configure:1492: checking for working alloca.h" >&5
1492if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1493 echo $ac_n "(cached) $ac_c" 1>&6
1494else
1495 cat > conftest.$ac_ext <<EOF
1496#line 1497 "configure"
1497#include "confdefs.h"
1498#include <alloca.h>
1499int main() {
1500char *p = alloca(2 * sizeof(int));
1501; return 0; }
1502EOF
1503if { (eval echo configure:1504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1504 rm -rf conftest*
1505 ac_cv_header_alloca_h=yes
1506else
1507 echo "configure: failed program was:" >&5
1508 cat conftest.$ac_ext >&5
1509 rm -rf conftest*
1510 ac_cv_header_alloca_h=no
1511fi
1512rm -f conftest*
1513fi
1514
1515echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1516if test $ac_cv_header_alloca_h = yes; then
1517 cat >> confdefs.h <<\EOF
1518#define HAVE_ALLOCA_H 1
1519EOF
1520
1521fi
1522
1523echo $ac_n "checking for alloca""... $ac_c" 1>&6
1524echo "configure:1525: checking for alloca" >&5
1525if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1526 echo $ac_n "(cached) $ac_c" 1>&6
1527else
1528 cat > conftest.$ac_ext <<EOF
1529#line 1530 "configure"
1530#include "confdefs.h"
1531
1532#ifdef __GNUC__
1533# define alloca __builtin_alloca
1534#else
1535# ifdef _MSC_VER
1536# include <malloc.h>
1537# define alloca _alloca
1538# else
1539# if HAVE_ALLOCA_H
1540# include <alloca.h>
1541# else
1542# ifdef _AIX
1543 #pragma alloca
1544# else
1545# ifndef alloca /* predefined by HP cc +Olibcalls */
1546char *alloca ();
1547# endif
1548# endif
1549# endif
1550# endif
1551#endif
1552
1553int main() {
1554char *p = (char *) alloca(1);
1555; return 0; }
1556EOF
1557if { (eval echo configure:1558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1558 rm -rf conftest*
1559 ac_cv_func_alloca_works=yes
1560else
1561 echo "configure: failed program was:" >&5
1562 cat conftest.$ac_ext >&5
1563 rm -rf conftest*
1564 ac_cv_func_alloca_works=no
1565fi
1566rm -f conftest*
1567fi
1568
1569echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1570if test $ac_cv_func_alloca_works = yes; then
1571 cat >> confdefs.h <<\EOF
1572#define HAVE_ALLOCA 1
1573EOF
1574
1575fi
1576
1577if test $ac_cv_func_alloca_works = no; then
1578 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1579 # that cause trouble. Some versions do not even contain alloca or
1580 # contain a buggy version. If you still want to use their alloca,
1581 # use ar to extract alloca.o from them instead of compiling alloca.c.
1582 ALLOCA=alloca.${ac_objext}
1583 cat >> confdefs.h <<\EOF
1584#define C_ALLOCA 1
1585EOF
1586
1587
1588echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1589echo "configure:1590: checking whether alloca needs Cray hooks" >&5
1590if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1591 echo $ac_n "(cached) $ac_c" 1>&6
1592else
1593 cat > conftest.$ac_ext <<EOF
1594#line 1595 "configure"
1595#include "confdefs.h"
1596#if defined(CRAY) && ! defined(CRAY2)
1597webecray
1598#else
1599wenotbecray
1600#endif
1601
1602EOF
1603if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1604 egrep "webecray" >/dev/null 2>&1; then
1605 rm -rf conftest*
1606 ac_cv_os_cray=yes
1607else
1608 rm -rf conftest*
1609 ac_cv_os_cray=no
1610fi
1611rm -f conftest*
1612
1613fi
1614
1615echo "$ac_t""$ac_cv_os_cray" 1>&6
1616if test $ac_cv_os_cray = yes; then
1617for ac_func in _getb67 GETB67 getb67; do
1618 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1619echo "configure:1620: checking for $ac_func" >&5
1620if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1621 echo $ac_n "(cached) $ac_c" 1>&6
1622else
1623 cat > conftest.$ac_ext <<EOF
1624#line 1625 "configure"
1625#include "confdefs.h"
1626/* System header to define __stub macros and hopefully few prototypes,
1627 which can conflict with char $ac_func(); below. */
1628#include <assert.h>
1629/* Override any gcc2 internal prototype to avoid an error. */
1630/* We use char because int might match the return type of a gcc2
1631 builtin and then its argument prototype would still apply. */
1632char $ac_func();
1633
1634int main() {
1635
1636/* The GNU C library defines this for functions which it implements
1637 to always fail with ENOSYS. Some functions are actually named
1638 something starting with __ and the normal name is an alias. */
1639#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1640choke me
1641#else
1642$ac_func();
1643#endif
1644
1645; return 0; }
1646EOF
1647if { (eval echo configure:1648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1648 rm -rf conftest*
1649 eval "ac_cv_func_$ac_func=yes"
1650else
1651 echo "configure: failed program was:" >&5
1652 cat conftest.$ac_ext >&5
1653 rm -rf conftest*
1654 eval "ac_cv_func_$ac_func=no"
1655fi
1656rm -f conftest*
1657fi
1658
1659if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1660 echo "$ac_t""yes" 1>&6
1661 cat >> confdefs.h <<EOF
1662#define CRAY_STACKSEG_END $ac_func
1663EOF
1664
1665 break
1666else
1667 echo "$ac_t""no" 1>&6
1668fi
1669
1670done
1671fi
1672
1673echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1674echo "configure:1675: checking stack direction for C alloca" >&5
1675if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1676 echo $ac_n "(cached) $ac_c" 1>&6
1677else
1678 if test "$cross_compiling" = yes; then
1679 ac_cv_c_stack_direction=0
1680else
1681 cat > conftest.$ac_ext <<EOF
1682#line 1683 "configure"
1683#include "confdefs.h"
1684find_stack_direction ()
1685{
1686 static char *addr = 0;
1687 auto char dummy;
1688 if (addr == 0)
1689 {
1690 addr = &dummy;
1691 return find_stack_direction ();
1692 }
1693 else
1694 return (&dummy > addr) ? 1 : -1;
1695}
1696main ()
1697{
1698 exit (find_stack_direction() < 0);
1699}
1700EOF
1701if { (eval echo configure:1702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1702then
1703 ac_cv_c_stack_direction=1
1704else
1705 echo "configure: failed program was:" >&5
1706 cat conftest.$ac_ext >&5
1707 rm -fr conftest*
1708 ac_cv_c_stack_direction=-1
1709fi
1710rm -fr conftest*
1711fi
1712
1713fi
1714
1715echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1716cat >> confdefs.h <<EOF
1717#define STACK_DIRECTION $ac_cv_c_stack_direction
1718EOF
1719
1720fi
1721
1722for ac_hdr in unistd.h
1723do
1724ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1725echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1726echo "configure:1727: checking for $ac_hdr" >&5
1727if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1728 echo $ac_n "(cached) $ac_c" 1>&6
1729else
1730 cat > conftest.$ac_ext <<EOF
1731#line 1732 "configure"
1732#include "confdefs.h"
1733#include <$ac_hdr>
1734EOF
1735ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1736{ (eval echo configure:1737: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1737ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1738if test -z "$ac_err"; then
1739 rm -rf conftest*
1740 eval "ac_cv_header_$ac_safe=yes"
1741else
1742 echo "$ac_err" >&5
1743 echo "configure: failed program was:" >&5
1744 cat conftest.$ac_ext >&5
1745 rm -rf conftest*
1746 eval "ac_cv_header_$ac_safe=no"
1747fi
1748rm -f conftest*
1749fi
1750if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1751 echo "$ac_t""yes" 1>&6
1752 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1753 cat >> confdefs.h <<EOF
1754#define $ac_tr_hdr 1
1755EOF
1756
1757else
1758 echo "$ac_t""no" 1>&6
1759fi
1760done
1761
1762for ac_func in getpagesize
1763do
1764echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1765echo "configure:1766: checking for $ac_func" >&5
1766if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1767 echo $ac_n "(cached) $ac_c" 1>&6
1768else
1769 cat > conftest.$ac_ext <<EOF
1770#line 1771 "configure"
1771#include "confdefs.h"
1772/* System header to define __stub macros and hopefully few prototypes,
1773 which can conflict with char $ac_func(); below. */
1774#include <assert.h>
1775/* Override any gcc2 internal prototype to avoid an error. */
1776/* We use char because int might match the return type of a gcc2
1777 builtin and then its argument prototype would still apply. */
1778char $ac_func();
1779
1780int main() {
1781
1782/* The GNU C library defines this for functions which it implements
1783 to always fail with ENOSYS. Some functions are actually named
1784 something starting with __ and the normal name is an alias. */
1785#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1786choke me
1787#else
1788$ac_func();
1789#endif
1790
1791; return 0; }
1792EOF
1793if { (eval echo configure:1794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1794 rm -rf conftest*
1795 eval "ac_cv_func_$ac_func=yes"
1796else
1797 echo "configure: failed program was:" >&5
1798 cat conftest.$ac_ext >&5
1799 rm -rf conftest*
1800 eval "ac_cv_func_$ac_func=no"
1801fi
1802rm -f conftest*
1803fi
1804
1805if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1806 echo "$ac_t""yes" 1>&6
1807 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1808 cat >> confdefs.h <<EOF
1809#define $ac_tr_func 1
1810EOF
1811
1812else
1813 echo "$ac_t""no" 1>&6
1814fi
1815done
1816
1817echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1818echo "configure:1819: checking for working mmap" >&5
1819if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1820 echo $ac_n "(cached) $ac_c" 1>&6
1821else
1822 if test "$cross_compiling" = yes; then
1823 ac_cv_func_mmap_fixed_mapped=no
1824else
1825 cat > conftest.$ac_ext <<EOF
1826#line 1827 "configure"
1827#include "confdefs.h"
1828
1829/* Thanks to Mike Haertel and Jim Avera for this test.
1830 Here is a matrix of mmap possibilities:
1831 mmap private not fixed
1832 mmap private fixed at somewhere currently unmapped
1833 mmap private fixed at somewhere already mapped
1834 mmap shared not fixed
1835 mmap shared fixed at somewhere currently unmapped
1836 mmap shared fixed at somewhere already mapped
1837 For private mappings, we should verify that changes cannot be read()
1838 back from the file, nor mmap's back from the file at a different
1839 address. (There have been systems where private was not correctly
1840 implemented like the infamous i386 svr4.0, and systems where the
1841 VM page cache was not coherent with the filesystem buffer cache
1842 like early versions of FreeBSD and possibly contemporary NetBSD.)
1843 For shared mappings, we should conversely verify that changes get
1844 propogated back to all the places they're supposed to be.
1845
1846 Grep wants private fixed already mapped.
1847 The main things grep needs to know about mmap are:
1848 * does it exist and is it safe to write into the mmap'd area
1849 * how to use it (BSD variants) */
1850#include <sys/types.h>
1851#include <fcntl.h>
1852#include <sys/mman.h>
1853
1854/* This mess was copied from the GNU getpagesize.h. */
1855#ifndef HAVE_GETPAGESIZE
1856# ifdef HAVE_UNISTD_H
1857# include <unistd.h>
1858# endif
1859
1860/* Assume that all systems that can run configure have sys/param.h. */
1861# ifndef HAVE_SYS_PARAM_H
1862# define HAVE_SYS_PARAM_H 1
1863# endif
1864
1865# ifdef _SC_PAGESIZE
1866# define getpagesize() sysconf(_SC_PAGESIZE)
1867# else /* no _SC_PAGESIZE */
1868# ifdef HAVE_SYS_PARAM_H
1869# include <sys/param.h>
1870# ifdef EXEC_PAGESIZE
1871# define getpagesize() EXEC_PAGESIZE
1872# else /* no EXEC_PAGESIZE */
1873# ifdef NBPG
1874# define getpagesize() NBPG * CLSIZE
1875# ifndef CLSIZE
1876# define CLSIZE 1
1877# endif /* no CLSIZE */
1878# else /* no NBPG */
1879# ifdef NBPC
1880# define getpagesize() NBPC
1881# else /* no NBPC */
1882# ifdef PAGESIZE
1883# define getpagesize() PAGESIZE
1884# endif /* PAGESIZE */
1885# endif /* no NBPC */
1886# endif /* no NBPG */
1887# endif /* no EXEC_PAGESIZE */
1888# else /* no HAVE_SYS_PARAM_H */
1889# define getpagesize() 8192 /* punt totally */
1890# endif /* no HAVE_SYS_PARAM_H */
1891# endif /* no _SC_PAGESIZE */
1892
1893#endif /* no HAVE_GETPAGESIZE */
1894
1895#ifdef __cplusplus
1896extern "C" { void *malloc(unsigned); }
1897#else
1898char *malloc();
1899#endif
1900
1901int
1902main()
1903{
1904 char *data, *data2, *data3;
1905 int i, pagesize;
1906 int fd;
1907
1908 pagesize = getpagesize();
1909
1910 /*
1911 * First, make a file with some known garbage in it.
1912 */
1913 data = malloc(pagesize);
1914 if (!data)
1915 exit(1);
1916 for (i = 0; i < pagesize; ++i)
1917 *(data + i) = rand();
1918 umask(0);
1919 fd = creat("conftestmmap", 0600);
1920 if (fd < 0)
1921 exit(1);
1922 if (write(fd, data, pagesize) != pagesize)
1923 exit(1);
1924 close(fd);
1925
1926 /*
1927 * Next, try to mmap the file at a fixed address which
1928 * already has something else allocated at it. If we can,
1929 * also make sure that we see the same garbage.
1930 */
1931 fd = open("conftestmmap", O_RDWR);
1932 if (fd < 0)
1933 exit(1);
1934 data2 = malloc(2 * pagesize);
1935 if (!data2)
1936 exit(1);
1937 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1938 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1939 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1940 exit(1);
1941 for (i = 0; i < pagesize; ++i)
1942 if (*(data + i) != *(data2 + i))
1943 exit(1);
1944
1945 /*
1946 * Finally, make sure that changes to the mapped area
1947 * do not percolate back to the file as seen by read().
1948 * (This is a bug on some variants of i386 svr4.0.)
1949 */
1950 for (i = 0; i < pagesize; ++i)
1951 *(data2 + i) = *(data2 + i) + 1;
1952 data3 = malloc(pagesize);
1953 if (!data3)
1954 exit(1);
1955 if (read(fd, data3, pagesize) != pagesize)
1956 exit(1);
1957 for (i = 0; i < pagesize; ++i)
1958 if (*(data + i) != *(data3 + i))
1959 exit(1);
1960 close(fd);
1961 unlink("conftestmmap");
1962 exit(0);
1963}
1964
1965EOF
1966if { (eval echo configure:1967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1967then
1968 ac_cv_func_mmap_fixed_mapped=yes
1969else
1970 echo "configure: failed program was:" >&5
1971 cat conftest.$ac_ext >&5
1972 rm -fr conftest*
1973 ac_cv_func_mmap_fixed_mapped=no
1974fi
1975rm -fr conftest*
1976fi
1977
1978fi
1979
1980echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
1981if test $ac_cv_func_mmap_fixed_mapped = yes; then
1982 cat >> confdefs.h <<\EOF
1983#define HAVE_MMAP 1
1984EOF
1985
1986fi
1987
1988
1989 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
1990unistd.h sys/param.h
1991do
1992ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1993echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1994echo "configure:1995: checking for $ac_hdr" >&5
1995if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1996 echo $ac_n "(cached) $ac_c" 1>&6
1997else
1998 cat > conftest.$ac_ext <<EOF
1999#line 2000 "configure"
2000#include "confdefs.h"
2001#include <$ac_hdr>
2002EOF
2003ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2004{ (eval echo configure:2005: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2005ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2006if test -z "$ac_err"; then
2007 rm -rf conftest*
2008 eval "ac_cv_header_$ac_safe=yes"
2009else
2010 echo "$ac_err" >&5
2011 echo "configure: failed program was:" >&5
2012 cat conftest.$ac_ext >&5
2013 rm -rf conftest*
2014 eval "ac_cv_header_$ac_safe=no"
2015fi
2016rm -f conftest*
2017fi
2018if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2019 echo "$ac_t""yes" 1>&6
2020 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2021 cat >> confdefs.h <<EOF
2022#define $ac_tr_hdr 1
2023EOF
2024
2025else
2026 echo "$ac_t""no" 1>&6
2027fi
2028done
2029
2030 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2031strdup __argz_count __argz_stringify __argz_next
2032do
2033echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2034echo "configure:2035: checking for $ac_func" >&5
2035if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2036 echo $ac_n "(cached) $ac_c" 1>&6
2037else
2038 cat > conftest.$ac_ext <<EOF
2039#line 2040 "configure"
2040#include "confdefs.h"
2041/* System header to define __stub macros and hopefully few prototypes,
2042 which can conflict with char $ac_func(); below. */
2043#include <assert.h>
2044/* Override any gcc2 internal prototype to avoid an error. */
2045/* We use char because int might match the return type of a gcc2
2046 builtin and then its argument prototype would still apply. */
2047char $ac_func();
2048
2049int main() {
2050
2051/* The GNU C library defines this for functions which it implements
2052 to always fail with ENOSYS. Some functions are actually named
2053 something starting with __ and the normal name is an alias. */
2054#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2055choke me
2056#else
2057$ac_func();
2058#endif
2059
2060; return 0; }
2061EOF
2062if { (eval echo configure:2063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2063 rm -rf conftest*
2064 eval "ac_cv_func_$ac_func=yes"
2065else
2066 echo "configure: failed program was:" >&5
2067 cat conftest.$ac_ext >&5
2068 rm -rf conftest*
2069 eval "ac_cv_func_$ac_func=no"
2070fi
2071rm -f conftest*
2072fi
2073
2074if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2075 echo "$ac_t""yes" 1>&6
2076 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2077 cat >> confdefs.h <<EOF
2078#define $ac_tr_func 1
2079EOF
2080
2081else
2082 echo "$ac_t""no" 1>&6
2083fi
2084done
2085
2086
2087 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2088 for ac_func in stpcpy
2089do
2090echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2091echo "configure:2092: checking for $ac_func" >&5
2092if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2093 echo $ac_n "(cached) $ac_c" 1>&6
2094else
2095 cat > conftest.$ac_ext <<EOF
2096#line 2097 "configure"
2097#include "confdefs.h"
2098/* System header to define __stub macros and hopefully few prototypes,
2099 which can conflict with char $ac_func(); below. */
2100#include <assert.h>
2101/* Override any gcc2 internal prototype to avoid an error. */
2102/* We use char because int might match the return type of a gcc2
2103 builtin and then its argument prototype would still apply. */
2104char $ac_func();
2105
2106int main() {
2107
2108/* The GNU C library defines this for functions which it implements
2109 to always fail with ENOSYS. Some functions are actually named
2110 something starting with __ and the normal name is an alias. */
2111#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2112choke me
2113#else
2114$ac_func();
2115#endif
2116
2117; return 0; }
2118EOF
2119if { (eval echo configure:2120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2120 rm -rf conftest*
2121 eval "ac_cv_func_$ac_func=yes"
2122else
2123 echo "configure: failed program was:" >&5
2124 cat conftest.$ac_ext >&5
2125 rm -rf conftest*
2126 eval "ac_cv_func_$ac_func=no"
2127fi
2128rm -f conftest*
2129fi
2130
2131if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2132 echo "$ac_t""yes" 1>&6
2133 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2134 cat >> confdefs.h <<EOF
2135#define $ac_tr_func 1
2136EOF
2137
2138else
2139 echo "$ac_t""no" 1>&6
2140fi
2141done
2142
2143 fi
2144 if test "${ac_cv_func_stpcpy}" = "yes"; then
2145 cat >> confdefs.h <<\EOF
2146#define HAVE_STPCPY 1
2147EOF
2148
2149 fi
2150
2151 if test $ac_cv_header_locale_h = yes; then
2152 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2153echo "configure:2154: checking for LC_MESSAGES" >&5
2154if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2155 echo $ac_n "(cached) $ac_c" 1>&6
2156else
2157 cat > conftest.$ac_ext <<EOF
2158#line 2159 "configure"
2159#include "confdefs.h"
2160#include <locale.h>
2161int main() {
2162return LC_MESSAGES
2163; return 0; }
2164EOF
2165if { (eval echo configure:2166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2166 rm -rf conftest*
2167 am_cv_val_LC_MESSAGES=yes
2168else
2169 echo "configure: failed program was:" >&5
2170 cat conftest.$ac_ext >&5
2171 rm -rf conftest*
2172 am_cv_val_LC_MESSAGES=no
2173fi
2174rm -f conftest*
2175fi
2176
2177echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2178 if test $am_cv_val_LC_MESSAGES = yes; then
2179 cat >> confdefs.h <<\EOF
2180#define HAVE_LC_MESSAGES 1
2181EOF
2182
2183 fi
2184 fi
2185 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2186echo "configure:2187: checking whether NLS is requested" >&5
2187 # Check whether --enable-nls or --disable-nls was given.
2188if test "${enable_nls+set}" = set; then
2189 enableval="$enable_nls"
2190 USE_NLS=$enableval
2191else
2192 USE_NLS=no
2193fi
2194
2195 echo "$ac_t""$USE_NLS" 1>&6
2196
2197
2198 USE_INCLUDED_LIBINTL=no
2199
2200 if test "$USE_NLS" = "yes"; then
2201 cat >> confdefs.h <<\EOF
2202#define ENABLE_NLS 1
2203EOF
2204
2205 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2206echo "configure:2207: checking whether included gettext is requested" >&5
2207 # Check whether --with-included-gettext or --without-included-gettext was given.
2208if test "${with_included_gettext+set}" = set; then
2209 withval="$with_included_gettext"
2210 nls_cv_force_use_gnu_gettext=$withval
2211else
2212 nls_cv_force_use_gnu_gettext=no
2213fi
2214
2215 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2216
2217 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2218 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2219 nls_cv_header_intl=
2220 nls_cv_header_libgt=
2221 CATOBJEXT=NONE
2222
2223 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2224echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2225echo "configure:2226: checking for libintl.h" >&5
2226if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2227 echo $ac_n "(cached) $ac_c" 1>&6
2228else
2229 cat > conftest.$ac_ext <<EOF
2230#line 2231 "configure"
2231#include "confdefs.h"
2232#include <libintl.h>
2233EOF
2234ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2235{ (eval echo configure:2236: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2236ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2237if test -z "$ac_err"; then
2238 rm -rf conftest*
2239 eval "ac_cv_header_$ac_safe=yes"
2240else
2241 echo "$ac_err" >&5
2242 echo "configure: failed program was:" >&5
2243 cat conftest.$ac_ext >&5
2244 rm -rf conftest*
2245 eval "ac_cv_header_$ac_safe=no"
2246fi
2247rm -f conftest*
2248fi
2249if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2250 echo "$ac_t""yes" 1>&6
2251 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2252echo "configure:2253: checking for gettext in libc" >&5
2253if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2254 echo $ac_n "(cached) $ac_c" 1>&6
2255else
2256 cat > conftest.$ac_ext <<EOF
2257#line 2258 "configure"
2258#include "confdefs.h"
2259#include <libintl.h>
2260int main() {
2261return (int) gettext ("")
2262; return 0; }
2263EOF
2264if { (eval echo configure:2265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2265 rm -rf conftest*
2266 gt_cv_func_gettext_libc=yes
2267else
2268 echo "configure: failed program was:" >&5
2269 cat conftest.$ac_ext >&5
2270 rm -rf conftest*
2271 gt_cv_func_gettext_libc=no
2272fi
2273rm -f conftest*
2274fi
2275
2276echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2277
2278 if test "$gt_cv_func_gettext_libc" != "yes"; then
2279 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2280echo "configure:2281: checking for bindtextdomain in -lintl" >&5
2281ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2282if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2283 echo $ac_n "(cached) $ac_c" 1>&6
2284else
2285 ac_save_LIBS="$LIBS"
2286LIBS="-lintl $LIBS"
2287cat > conftest.$ac_ext <<EOF
2288#line 2289 "configure"
2289#include "confdefs.h"
2290/* Override any gcc2 internal prototype to avoid an error. */
2291/* We use char because int might match the return type of a gcc2
2292 builtin and then its argument prototype would still apply. */
2293char bindtextdomain();
2294
2295int main() {
2296bindtextdomain()
2297; return 0; }
2298EOF
2299if { (eval echo configure:2300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2300 rm -rf conftest*
2301 eval "ac_cv_lib_$ac_lib_var=yes"
2302else
2303 echo "configure: failed program was:" >&5
2304 cat conftest.$ac_ext >&5
2305 rm -rf conftest*
2306 eval "ac_cv_lib_$ac_lib_var=no"
2307fi
2308rm -f conftest*
2309LIBS="$ac_save_LIBS"
2310
2311fi
2312if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2313 echo "$ac_t""yes" 1>&6
2314 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2315echo "configure:2316: checking for gettext in libintl" >&5
2316if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2317 echo $ac_n "(cached) $ac_c" 1>&6
2318else
2319 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
2320echo "configure:2321: checking for gettext in -lintl" >&5
2321ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
2322if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2323 echo $ac_n "(cached) $ac_c" 1>&6
2324else
2325 ac_save_LIBS="$LIBS"
2326LIBS="-lintl $LIBS"
2327cat > conftest.$ac_ext <<EOF
2328#line 2329 "configure"
2329#include "confdefs.h"
2330/* Override any gcc2 internal prototype to avoid an error. */
2331/* We use char because int might match the return type of a gcc2
2332 builtin and then its argument prototype would still apply. */
2333char gettext();
2334
2335int main() {
2336gettext()
2337; return 0; }
2338EOF
2339if { (eval echo configure:2340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2340 rm -rf conftest*
2341 eval "ac_cv_lib_$ac_lib_var=yes"
2342else
2343 echo "configure: failed program was:" >&5
2344 cat conftest.$ac_ext >&5
2345 rm -rf conftest*
2346 eval "ac_cv_lib_$ac_lib_var=no"
2347fi
2348rm -f conftest*
2349LIBS="$ac_save_LIBS"
2350
2351fi
2352if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2353 echo "$ac_t""yes" 1>&6
2354 gt_cv_func_gettext_libintl=yes
2355else
2356 echo "$ac_t""no" 1>&6
2357gt_cv_func_gettext_libintl=no
2358fi
2359
2360fi
2361
2362echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2363else
2364 echo "$ac_t""no" 1>&6
2365fi
2366
2367 fi
2368
2369 if test "$gt_cv_func_gettext_libc" = "yes" \
2370 || test "$gt_cv_func_gettext_libintl" = "yes"; then
2371 cat >> confdefs.h <<\EOF
2372#define HAVE_GETTEXT 1
2373EOF
2374
2375 # Extract the first word of "msgfmt", so it can be a program name with args.
2376set dummy msgfmt; ac_word=$2
2377echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2378echo "configure:2379: checking for $ac_word" >&5
2379if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2380 echo $ac_n "(cached) $ac_c" 1>&6
2381else
2382 case "$MSGFMT" in
2383 /*)
2384 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2385 ;;
2386 *)
2387 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2388 for ac_dir in $PATH; do
2389 test -z "$ac_dir" && ac_dir=.
2390 if test -f $ac_dir/$ac_word; then
2391 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2392 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2393 break
2394 fi
2395 fi
2396 done
2397 IFS="$ac_save_ifs"
2398 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
2399 ;;
2400esac
2401fi
2402MSGFMT="$ac_cv_path_MSGFMT"
2403if test -n "$MSGFMT"; then
2404 echo "$ac_t""$MSGFMT" 1>&6
2405else
2406 echo "$ac_t""no" 1>&6
2407fi
2408 if test "$MSGFMT" != "no"; then
2409 for ac_func in dcgettext
2410do
2411echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2412echo "configure:2413: checking for $ac_func" >&5
2413if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2414 echo $ac_n "(cached) $ac_c" 1>&6
2415else
2416 cat > conftest.$ac_ext <<EOF
2417#line 2418 "configure"
2418#include "confdefs.h"
2419/* System header to define __stub macros and hopefully few prototypes,
2420 which can conflict with char $ac_func(); below. */
2421#include <assert.h>
2422/* Override any gcc2 internal prototype to avoid an error. */
2423/* We use char because int might match the return type of a gcc2
2424 builtin and then its argument prototype would still apply. */
2425char $ac_func();
2426
2427int main() {
2428
2429/* The GNU C library defines this for functions which it implements
2430 to always fail with ENOSYS. Some functions are actually named
2431 something starting with __ and the normal name is an alias. */
2432#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2433choke me
2434#else
2435$ac_func();
2436#endif
2437
2438; return 0; }
2439EOF
2440if { (eval echo configure:2441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2441 rm -rf conftest*
2442 eval "ac_cv_func_$ac_func=yes"
2443else
2444 echo "configure: failed program was:" >&5
2445 cat conftest.$ac_ext >&5
2446 rm -rf conftest*
2447 eval "ac_cv_func_$ac_func=no"
2448fi
2449rm -f conftest*
2450fi
2451
2452if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2453 echo "$ac_t""yes" 1>&6
2454 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2455 cat >> confdefs.h <<EOF
2456#define $ac_tr_func 1
2457EOF
2458
2459else
2460 echo "$ac_t""no" 1>&6
2461fi
2462done
2463
2464 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2465set dummy gmsgfmt; ac_word=$2
2466echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2467echo "configure:2468: checking for $ac_word" >&5
2468if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2469 echo $ac_n "(cached) $ac_c" 1>&6
2470else
2471 case "$GMSGFMT" in
2472 /*)
2473 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2474 ;;
2475 ?:/*)
2476 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2477 ;;
2478 *)
2479 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2480 ac_dummy="$PATH"
2481 for ac_dir in $ac_dummy; do
2482 test -z "$ac_dir" && ac_dir=.
2483 if test -f $ac_dir/$ac_word; then
2484 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2485 break
2486 fi
2487 done
2488 IFS="$ac_save_ifs"
2489 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2490 ;;
2491esac
2492fi
2493GMSGFMT="$ac_cv_path_GMSGFMT"
2494if test -n "$GMSGFMT"; then
2495 echo "$ac_t""$GMSGFMT" 1>&6
2496else
2497 echo "$ac_t""no" 1>&6
2498fi
2499
2500 # Extract the first word of "xgettext", so it can be a program name with args.
2501set dummy xgettext; ac_word=$2
2502echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2503echo "configure:2504: checking for $ac_word" >&5
2504if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2505 echo $ac_n "(cached) $ac_c" 1>&6
2506else
2507 case "$XGETTEXT" in
2508 /*)
2509 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2510 ;;
2511 *)
2512 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2513 for ac_dir in $PATH; do
2514 test -z "$ac_dir" && ac_dir=.
2515 if test -f $ac_dir/$ac_word; then
2516 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2517 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2518 break
2519 fi
2520 fi
2521 done
2522 IFS="$ac_save_ifs"
2523 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2524 ;;
2525esac
2526fi
2527XGETTEXT="$ac_cv_path_XGETTEXT"
2528if test -n "$XGETTEXT"; then
2529 echo "$ac_t""$XGETTEXT" 1>&6
2530else
2531 echo "$ac_t""no" 1>&6
2532fi
2533
2534 cat > conftest.$ac_ext <<EOF
2535#line 2536 "configure"
2536#include "confdefs.h"
2537
2538int main() {
2539extern int _nl_msg_cat_cntr;
2540 return _nl_msg_cat_cntr
2541; return 0; }
2542EOF
2543if { (eval echo configure:2544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2544 rm -rf conftest*
2545 CATOBJEXT=.gmo
2546 DATADIRNAME=share
2547else
2548 echo "configure: failed program was:" >&5
2549 cat conftest.$ac_ext >&5
2550 rm -rf conftest*
2551 CATOBJEXT=.mo
2552 DATADIRNAME=lib
2553fi
2554rm -f conftest*
2555 INSTOBJEXT=.mo
2556 fi
2557 fi
2558
2559else
2560 echo "$ac_t""no" 1>&6
2561fi
2562
2563
2564 if test "$CATOBJEXT" = "NONE"; then
2565 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
2566echo "configure:2567: checking whether catgets can be used" >&5
2567 # Check whether --with-catgets or --without-catgets was given.
2568if test "${with_catgets+set}" = set; then
2569 withval="$with_catgets"
2570 nls_cv_use_catgets=$withval
2571else
2572 nls_cv_use_catgets=no
2573fi
2574
2575 echo "$ac_t""$nls_cv_use_catgets" 1>&6
2576
2577 if test "$nls_cv_use_catgets" = "yes"; then
2578 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
2579echo "configure:2580: checking for main in -li" >&5
2580ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'`
2581if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2582 echo $ac_n "(cached) $ac_c" 1>&6
2583else
2584 ac_save_LIBS="$LIBS"
2585LIBS="-li $LIBS"
2586cat > conftest.$ac_ext <<EOF
2587#line 2588 "configure"
2588#include "confdefs.h"
2589
2590int main() {
2591main()
2592; return 0; }
2593EOF
2594if { (eval echo configure:2595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2595 rm -rf conftest*
2596 eval "ac_cv_lib_$ac_lib_var=yes"
2597else
2598 echo "configure: failed program was:" >&5
2599 cat conftest.$ac_ext >&5
2600 rm -rf conftest*
2601 eval "ac_cv_lib_$ac_lib_var=no"
2602fi
2603rm -f conftest*
2604LIBS="$ac_save_LIBS"
2605
2606fi
2607if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2608 echo "$ac_t""yes" 1>&6
2609 ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2610 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2611 cat >> confdefs.h <<EOF
2612#define $ac_tr_lib 1
2613EOF
2614
2615 LIBS="-li $LIBS"
2616
2617else
2618 echo "$ac_t""no" 1>&6
2619fi
2620
2621 echo $ac_n "checking for catgets""... $ac_c" 1>&6
2622echo "configure:2623: checking for catgets" >&5
2623if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
2624 echo $ac_n "(cached) $ac_c" 1>&6
2625else
2626 cat > conftest.$ac_ext <<EOF
2627#line 2628 "configure"
2628#include "confdefs.h"
2629/* System header to define __stub macros and hopefully few prototypes,
2630 which can conflict with char catgets(); below. */
2631#include <assert.h>
2632/* Override any gcc2 internal prototype to avoid an error. */
2633/* We use char because int might match the return type of a gcc2
2634 builtin and then its argument prototype would still apply. */
2635char catgets();
2636
2637int main() {
2638
2639/* The GNU C library defines this for functions which it implements
2640 to always fail with ENOSYS. Some functions are actually named
2641 something starting with __ and the normal name is an alias. */
2642#if defined (__stub_catgets) || defined (__stub___catgets)
2643choke me
2644#else
2645catgets();
2646#endif
2647
2648; return 0; }
2649EOF
2650if { (eval echo configure:2651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2651 rm -rf conftest*
2652 eval "ac_cv_func_catgets=yes"
2653else
2654 echo "configure: failed program was:" >&5
2655 cat conftest.$ac_ext >&5
2656 rm -rf conftest*
2657 eval "ac_cv_func_catgets=no"
2658fi
2659rm -f conftest*
2660fi
2661
2662if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
2663 echo "$ac_t""yes" 1>&6
2664 cat >> confdefs.h <<\EOF
2665#define HAVE_CATGETS 1
2666EOF
2667
2668 INTLOBJS="\$(CATOBJS)"
2669 # Extract the first word of "gencat", so it can be a program name with args.
2670set dummy gencat; ac_word=$2
2671echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2672echo "configure:2673: checking for $ac_word" >&5
2673if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
2674 echo $ac_n "(cached) $ac_c" 1>&6
2675else
2676 case "$GENCAT" in
2677 /*)
2678 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
2679 ;;
2680 ?:/*)
2681 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path.
2682 ;;
2683 *)
2684 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2685 ac_dummy="$PATH"
2686 for ac_dir in $ac_dummy; do
2687 test -z "$ac_dir" && ac_dir=.
2688 if test -f $ac_dir/$ac_word; then
2689 ac_cv_path_GENCAT="$ac_dir/$ac_word"
2690 break
2691 fi
2692 done
2693 IFS="$ac_save_ifs"
2694 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
2695 ;;
2696esac
2697fi
2698GENCAT="$ac_cv_path_GENCAT"
2699if test -n "$GENCAT"; then
2700 echo "$ac_t""$GENCAT" 1>&6
2701else
2702 echo "$ac_t""no" 1>&6
2703fi
2704 if test "$GENCAT" != "no"; then
2705 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2706set dummy gmsgfmt; ac_word=$2
2707echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2708echo "configure:2709: checking for $ac_word" >&5
2709if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2710 echo $ac_n "(cached) $ac_c" 1>&6
2711else
2712 case "$GMSGFMT" in
2713 /*)
2714 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2715 ;;
2716 ?:/*)
2717 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2718 ;;
2719 *)
2720 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2721 ac_dummy="$PATH"
2722 for ac_dir in $ac_dummy; do
2723 test -z "$ac_dir" && ac_dir=.
2724 if test -f $ac_dir/$ac_word; then
2725 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2726 break
2727 fi
2728 done
2729 IFS="$ac_save_ifs"
2730 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
2731 ;;
2732esac
2733fi
2734GMSGFMT="$ac_cv_path_GMSGFMT"
2735if test -n "$GMSGFMT"; then
2736 echo "$ac_t""$GMSGFMT" 1>&6
2737else
2738 echo "$ac_t""no" 1>&6
2739fi
2740
2741 if test "$GMSGFMT" = "no"; then
2742 # Extract the first word of "msgfmt", so it can be a program name with args.
2743set dummy msgfmt; ac_word=$2
2744echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2745echo "configure:2746: checking for $ac_word" >&5
2746if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2747 echo $ac_n "(cached) $ac_c" 1>&6
2748else
2749 case "$GMSGFMT" in
2750 /*)
2751 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2752 ;;
2753 *)
2754 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2755 for ac_dir in $PATH; do
2756 test -z "$ac_dir" && ac_dir=.
2757 if test -f $ac_dir/$ac_word; then
2758 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2759 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2760 break
2761 fi
2762 fi
2763 done
2764 IFS="$ac_save_ifs"
2765 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
2766 ;;
2767esac
2768fi
2769GMSGFMT="$ac_cv_path_GMSGFMT"
2770if test -n "$GMSGFMT"; then
2771 echo "$ac_t""$GMSGFMT" 1>&6
2772else
2773 echo "$ac_t""no" 1>&6
2774fi
2775
2776 fi
2777 # Extract the first word of "xgettext", so it can be a program name with args.
2778set dummy xgettext; ac_word=$2
2779echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2780echo "configure:2781: checking for $ac_word" >&5
2781if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2782 echo $ac_n "(cached) $ac_c" 1>&6
2783else
2784 case "$XGETTEXT" in
2785 /*)
2786 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2787 ;;
2788 *)
2789 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2790 for ac_dir in $PATH; do
2791 test -z "$ac_dir" && ac_dir=.
2792 if test -f $ac_dir/$ac_word; then
2793 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2794 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2795 break
2796 fi
2797 fi
2798 done
2799 IFS="$ac_save_ifs"
2800 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2801 ;;
2802esac
2803fi
2804XGETTEXT="$ac_cv_path_XGETTEXT"
2805if test -n "$XGETTEXT"; then
2806 echo "$ac_t""$XGETTEXT" 1>&6
2807else
2808 echo "$ac_t""no" 1>&6
2809fi
2810
2811 USE_INCLUDED_LIBINTL=yes
2812 CATOBJEXT=.cat
2813 INSTOBJEXT=.cat
2814 DATADIRNAME=lib
2815 INTLDEPS='$(top_builddir)/intl/libintl.a'
2816 INTLLIBS=$INTLDEPS
2817 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
2818 nls_cv_header_intl=intl/libintl.h
2819 nls_cv_header_libgt=intl/libgettext.h
2820 fi
2821else
2822 echo "$ac_t""no" 1>&6
2823fi
2824
2825 fi
2826 fi
2827
2828 if test "$CATOBJEXT" = "NONE"; then
2829 nls_cv_use_gnu_gettext=yes
2830 fi
2831 fi
2832
2833 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2834 INTLOBJS="\$(GETTOBJS)"
2835 # Extract the first word of "msgfmt", so it can be a program name with args.
2836set dummy msgfmt; ac_word=$2
2837echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2838echo "configure:2839: checking for $ac_word" >&5
2839if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2840 echo $ac_n "(cached) $ac_c" 1>&6
2841else
2842 case "$MSGFMT" in
2843 /*)
2844 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2845 ;;
2846 *)
2847 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2848 for ac_dir in $PATH; do
2849 test -z "$ac_dir" && ac_dir=.
2850 if test -f $ac_dir/$ac_word; then
2851 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2852 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2853 break
2854 fi
2855 fi
2856 done
2857 IFS="$ac_save_ifs"
2858 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
2859 ;;
2860esac
2861fi
2862MSGFMT="$ac_cv_path_MSGFMT"
2863if test -n "$MSGFMT"; then
2864 echo "$ac_t""$MSGFMT" 1>&6
2865else
2866 echo "$ac_t""no" 1>&6
2867fi
2868
2869 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2870set dummy gmsgfmt; ac_word=$2
2871echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2872echo "configure:2873: checking for $ac_word" >&5
2873if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2874 echo $ac_n "(cached) $ac_c" 1>&6
2875else
2876 case "$GMSGFMT" in
2877 /*)
2878 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2879 ;;
2880 ?:/*)
2881 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2882 ;;
2883 *)
2884 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2885 ac_dummy="$PATH"
2886 for ac_dir in $ac_dummy; do
2887 test -z "$ac_dir" && ac_dir=.
2888 if test -f $ac_dir/$ac_word; then
2889 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2890 break
2891 fi
2892 done
2893 IFS="$ac_save_ifs"
2894 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2895 ;;
2896esac
2897fi
2898GMSGFMT="$ac_cv_path_GMSGFMT"
2899if test -n "$GMSGFMT"; then
2900 echo "$ac_t""$GMSGFMT" 1>&6
2901else
2902 echo "$ac_t""no" 1>&6
2903fi
2904
2905 # Extract the first word of "xgettext", so it can be a program name with args.
2906set dummy xgettext; ac_word=$2
2907echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2908echo "configure:2909: checking for $ac_word" >&5
2909if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2910 echo $ac_n "(cached) $ac_c" 1>&6
2911else
2912 case "$XGETTEXT" in
2913 /*)
2914 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2915 ;;
2916 *)
2917 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2918 for ac_dir in $PATH; do
2919 test -z "$ac_dir" && ac_dir=.
2920 if test -f $ac_dir/$ac_word; then
2921 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2922 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2923 break
2924 fi
2925 fi
2926 done
2927 IFS="$ac_save_ifs"
2928 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2929 ;;
2930esac
2931fi
2932XGETTEXT="$ac_cv_path_XGETTEXT"
2933if test -n "$XGETTEXT"; then
2934 echo "$ac_t""$XGETTEXT" 1>&6
2935else
2936 echo "$ac_t""no" 1>&6
2937fi
2938
2939
2940 USE_INCLUDED_LIBINTL=yes
2941 CATOBJEXT=.gmo
2942 INSTOBJEXT=.mo
2943 DATADIRNAME=share
2944 INTLDEPS='$(top_builddir)/intl/libintl.a'
2945 INTLLIBS=$INTLDEPS
2946 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
2947 nls_cv_header_intl=intl/libintl.h
2948 nls_cv_header_libgt=intl/libgettext.h
2949 fi
2950
2951 if test "$XGETTEXT" != ":"; then
2952 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
2953 : ;
2954 else
2955 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
2956 XGETTEXT=":"
2957 fi
2958 fi
2959
2960 # We need to process the po/ directory.
2961 POSUB=po
2962 else
2963 DATADIRNAME=share
2964 nls_cv_header_intl=intl/libintl.h
2965 nls_cv_header_libgt=intl/libgettext.h
2966 fi
2967
2968
2969
2970
2971 # If this is used in GNU gettext we have to set USE_NLS to `yes'
2972 # because some of the sources are only built for this goal.
2973 if test "$PACKAGE" = gettext; then
2974 USE_NLS=yes
2975 USE_INCLUDED_LIBINTL=yes
2976 fi
2977
2978 for lang in $ALL_LINGUAS; do
2979 GMOFILES="$GMOFILES $lang.gmo"
2980 POFILES="$POFILES $lang.po"
2981 done
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996 if test "x$CATOBJEXT" != "x"; then
2997 if test "x$ALL_LINGUAS" = "x"; then
2998 LINGUAS=
2999 else
3000 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3001echo "configure:3002: checking for catalogs to be installed" >&5
3002 NEW_LINGUAS=
3003 for lang in ${LINGUAS=$ALL_LINGUAS}; do
3004 case "$ALL_LINGUAS" in
3005 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
3006 esac
3007 done
3008 LINGUAS=$NEW_LINGUAS
3009 echo "$ac_t""$LINGUAS" 1>&6
3010 fi
3011
3012 if test -n "$LINGUAS"; then
3013 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
3014 fi
3015 fi
3016
3017 if test $ac_cv_header_locale_h = yes; then
3018 INCLUDE_LOCALE_H="#include <locale.h>"
3019 else
3020 INCLUDE_LOCALE_H="\
3021/* The system does not provide the header <locale.h>. Take care yourself. */"
3022 fi
3023
3024
3025 test -d intl || mkdir intl
3026 if test "$CATOBJEXT" = ".cat"; then
3027 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
3028echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
3029echo "configure:3030: checking for linux/version.h" >&5
3030if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3031 echo $ac_n "(cached) $ac_c" 1>&6
3032else
3033 cat > conftest.$ac_ext <<EOF
3034#line 3035 "configure"
3035#include "confdefs.h"
3036#include <linux/version.h>
3037EOF
3038ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3039{ (eval echo configure:3040: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3040ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3041if test -z "$ac_err"; then
3042 rm -rf conftest*
3043 eval "ac_cv_header_$ac_safe=yes"
3044else
3045 echo "$ac_err" >&5
3046 echo "configure: failed program was:" >&5
3047 cat conftest.$ac_ext >&5
3048 rm -rf conftest*
3049 eval "ac_cv_header_$ac_safe=no"
3050fi
3051rm -f conftest*
3052fi
3053if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3054 echo "$ac_t""yes" 1>&6
3055 msgformat=linux
3056else
3057 echo "$ac_t""no" 1>&6
3058msgformat=xopen
3059fi
3060
3061
3062 sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
3063 fi
3064 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
3065 $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
3066
3067 if test "$PACKAGE" = "gettext"; then
3068 GT_NO="#NO#"
3069 GT_YES=
3070 else
3071 GT_NO=
3072 GT_YES="#YES#"
3073 fi
3074
3075
3076
3077 MKINSTALLDIRS=
3078 if test -n "$ac_aux_dir"; then
3079 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
3080 fi
3081 if test -z "$MKINSTALLDIRS"; then
3082 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3083 fi
3084
3085
3086 l=
3087
3088
3089 test -d po || mkdir po
3090 if test "x$srcdir" != "x."; then
3091 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
3092 posrcprefix="$srcdir/"
3093 else
3094 posrcprefix="../$srcdir/"
3095 fi
3096 else
3097 posrcprefix="../"
3098 fi
3099 rm -f po/POTFILES
3100 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
3101 < $srcdir/po/POTFILES.in > po/POTFILES
3102
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003103# Check whether --enable-profile or --disable-profile was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003104if test "${enable_profile+set}" = set; then
3105 enableval="$enable_profile"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003106 if test "$enableval" = "no"
3107then
3108 PROFILE_CMT=#
3109 MAKEFILE_PROFILE=/dev/null
3110 echo "Disabling profiling libraries"
3111else
3112 PROFILE_CMT=
3113 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003114 PROFILED_LIB_EXT=_p.a
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003115 echo "Building profiling libraries"
3116fi
3117
3118else
3119 PROFILE_CMT=#
3120MAKEFILE_PROFILE=/dev/null
3121echo "Disabling profiling libraries by default"
3122
3123fi
3124
3125
3126
3127# Check whether --enable-checker or --disable-checker was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003128if test "${enable_checker+set}" = set; then
3129 enableval="$enable_checker"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003130 if test "$enableval" = "no"
3131then
3132 CHECKER_CMT=#
3133 MAKEFILE_CHECKER=/dev/null
3134 echo "Disabling checker libraries"
3135else
3136 CHECKER_CMT=
3137 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
3138 echo "Building checker libraries"
3139fi
3140
3141else
3142 CHECKER_CMT=#
3143MAKEFILE_CHECKER=/dev/null
3144echo "Disabling checker libraries by default"
3145
3146fi
3147
3148
3149
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003150
3151
3152
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003153# Check whether --enable-gcc-wall or --disable-gcc-wall was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003154if test "${enable_gcc_wall+set}" = set; then
3155 enableval="$enable_gcc_wall"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003156 if test "$enableval" = "no"
3157then
3158 W=#
3159 echo "Disabling GCC warnings"
3160else
3161 W=
3162 echo "Enabling GCC warnings"
3163fi
3164
3165else
3166 W=#
3167echo "Disabling GCC warnings by default"
3168
3169fi
3170
3171
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003172# Check whether --enable-dynamic-e2fsck or --disable-dynamic-e2fsck was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003173if test "${enable_dynamic_e2fsck+set}" = set; then
3174 enableval="$enable_dynamic_e2fsck"
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003175 if test "$enableval" = "no"
3176then
3177 E2FSCK_TYPE=static
3178 echo "Building e2fsck statically"
3179else
3180 E2FSCK_TYPE=shared
3181 echo "Building e2fsck dynamically"
3182fi
3183
3184else
3185 E2FSCK_TYPE=static
3186echo "Building e2fsck statically by default"
3187
3188fi
3189
3190
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00003191# Check whether --enable-fsck or --disable-fsck was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003192if test "${enable_fsck+set}" = set; then
3193 enableval="$enable_fsck"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00003194 if test "$enableval" = "no"
3195then
3196 FSCK_PROG='' FSCK_MAN=''
3197 echo "Not building fsck wrapper"
3198else
3199 FSCK_PROG=fsck FSCK_MAN=fsck.8
3200 echo "Building fsck wrapper"
3201fi
3202
3203else
3204 case "$host_os" in
3205 gnu*)
3206 FSCK_PROG='' FSCK_MAN=''
3207 echo "Not building fsck wrapper by default"
3208 ;;
3209 *)
3210 FSCK_PROG=fsck FSCK_MAN=fsck.8
3211 echo "Building fsck wrapper by default"
3212esac
3213
3214fi
3215
3216
3217
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003218MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
3219
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00003220# Check whether --enable-old-bitops or --disable-old-bitops was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003221if test "${enable_old_bitops+set}" = set; then
3222 enableval="$enable_old_bitops"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00003223 if test "$enableval" = "no"
3224then
3225 echo "Using new (standard) bitmask operations"
3226else
3227 cat >> confdefs.h <<\EOF
3228#define EXT2_OLD_BITOPS 1
3229EOF
3230
3231 echo "Using old (native) bitmask operations"
3232
3233fi
3234
3235else
3236 echo "Using standard bitmask operations by default"
3237
3238fi
3239
Theodore Ts'o74becf31997-04-26 14:37:06 +00003240
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003241echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003242echo "configure:3243: checking whether ${MAKE-make} sets \${MAKE}" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003243set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003244if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
3245 echo $ac_n "(cached) $ac_c" 1>&6
3246else
3247 cat > conftestmake <<\EOF
3248all:
3249 @echo 'ac_maketemp="${MAKE}"'
3250EOF
3251# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3252eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
3253if test -n "$ac_maketemp"; then
3254 eval ac_cv_prog_make_${ac_make}_set=yes
3255else
3256 eval ac_cv_prog_make_${ac_make}_set=no
3257fi
3258rm -f conftestmake
3259fi
3260if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3261 echo "$ac_t""yes" 1>&6
3262 SET_MAKE=
3263else
3264 echo "$ac_t""no" 1>&6
3265 SET_MAKE="MAKE=${MAKE-make}"
3266fi
3267
3268# Extract the first word of "ln", so it can be a program name with args.
3269set dummy ln; ac_word=$2
3270echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003271echo "configure:3272: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003272if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then
3273 echo $ac_n "(cached) $ac_c" 1>&6
3274else
3275 case "$LN" in
3276 /*)
3277 ac_cv_path_LN="$LN" # Let the user override the test with a path.
3278 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003279 ?:/*)
3280 ac_cv_path_LN="$LN" # Let the user override the test with a dos path.
3281 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003282 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003283 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3284 ac_dummy="$PATH"
3285 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003286 test -z "$ac_dir" && ac_dir=.
3287 if test -f $ac_dir/$ac_word; then
3288 ac_cv_path_LN="$ac_dir/$ac_word"
3289 break
3290 fi
3291 done
3292 IFS="$ac_save_ifs"
3293 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
3294 ;;
3295esac
3296fi
3297LN="$ac_cv_path_LN"
3298if test -n "$LN"; then
3299 echo "$ac_t""$LN" 1>&6
3300else
3301 echo "$ac_t""no" 1>&6
3302fi
3303
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00003304echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003305echo "configure:3306: checking whether ln -s works" >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00003306if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
3307 echo $ac_n "(cached) $ac_c" 1>&6
3308else
3309 rm -f conftestdata
3310if ln -s X conftestdata 2>/dev/null
3311then
3312 rm -f conftestdata
3313 ac_cv_prog_LN_S="ln -s"
3314else
3315 ac_cv_prog_LN_S=ln
3316fi
3317fi
3318LN_S="$ac_cv_prog_LN_S"
3319if test "$ac_cv_prog_LN_S" = "ln -s"; then
3320 echo "$ac_t""yes" 1>&6
3321else
3322 echo "$ac_t""no" 1>&6
3323fi
3324
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003325# Extract the first word of "mv", so it can be a program name with args.
3326set dummy mv; ac_word=$2
3327echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003328echo "configure:3329: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003329if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
3330 echo $ac_n "(cached) $ac_c" 1>&6
3331else
3332 case "$MV" in
3333 /*)
3334 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3335 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003336 ?:/*)
3337 ac_cv_path_MV="$MV" # Let the user override the test with a dos path.
3338 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003339 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003340 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3341 ac_dummy="$PATH"
3342 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003343 test -z "$ac_dir" && ac_dir=.
3344 if test -f $ac_dir/$ac_word; then
3345 ac_cv_path_MV="$ac_dir/$ac_word"
3346 break
3347 fi
3348 done
3349 IFS="$ac_save_ifs"
3350 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3351 ;;
3352esac
3353fi
3354MV="$ac_cv_path_MV"
3355if test -n "$MV"; then
3356 echo "$ac_t""$MV" 1>&6
3357else
3358 echo "$ac_t""no" 1>&6
3359fi
3360
3361# Extract the first word of "cp", so it can be a program name with args.
3362set dummy cp; ac_word=$2
3363echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003364echo "configure:3365: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003365if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then
3366 echo $ac_n "(cached) $ac_c" 1>&6
3367else
3368 case "$CP" in
3369 /*)
3370 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3371 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003372 ?:/*)
3373 ac_cv_path_CP="$CP" # Let the user override the test with a dos path.
3374 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003375 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003376 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3377 ac_dummy="$PATH"
3378 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003379 test -z "$ac_dir" && ac_dir=.
3380 if test -f $ac_dir/$ac_word; then
3381 ac_cv_path_CP="$ac_dir/$ac_word"
3382 break
3383 fi
3384 done
3385 IFS="$ac_save_ifs"
3386 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3387 ;;
3388esac
3389fi
3390CP="$ac_cv_path_CP"
3391if test -n "$CP"; then
3392 echo "$ac_t""$CP" 1>&6
3393else
3394 echo "$ac_t""no" 1>&6
3395fi
3396
3397# Extract the first word of "rm", so it can be a program name with args.
3398set dummy rm; ac_word=$2
3399echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003400echo "configure:3401: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003401if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
3402 echo $ac_n "(cached) $ac_c" 1>&6
3403else
3404 case "$RM" in
3405 /*)
3406 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3407 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003408 ?:/*)
3409 ac_cv_path_RM="$RM" # Let the user override the test with a dos path.
3410 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003411 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003412 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3413 ac_dummy="$PATH"
3414 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003415 test -z "$ac_dir" && ac_dir=.
3416 if test -f $ac_dir/$ac_word; then
3417 ac_cv_path_RM="$ac_dir/$ac_word"
3418 break
3419 fi
3420 done
3421 IFS="$ac_save_ifs"
3422 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3423 ;;
3424esac
3425fi
3426RM="$ac_cv_path_RM"
3427if test -n "$RM"; then
3428 echo "$ac_t""$RM" 1>&6
3429else
3430 echo "$ac_t""no" 1>&6
3431fi
3432
3433# Extract the first word of "chmod", so it can be a program name with args.
3434set dummy chmod; ac_word=$2
3435echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003436echo "configure:3437: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003437if eval "test \"`echo '$''{'ac_cv_path_CHMOD'+set}'`\" = set"; then
3438 echo $ac_n "(cached) $ac_c" 1>&6
3439else
3440 case "$CHMOD" in
3441 /*)
3442 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
3443 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003444 ?:/*)
3445 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a dos path.
3446 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003447 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003448 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3449 ac_dummy="$PATH"
3450 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003451 test -z "$ac_dir" && ac_dir=.
3452 if test -f $ac_dir/$ac_word; then
3453 ac_cv_path_CHMOD="$ac_dir/$ac_word"
3454 break
3455 fi
3456 done
3457 IFS="$ac_save_ifs"
3458 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
3459 ;;
3460esac
3461fi
3462CHMOD="$ac_cv_path_CHMOD"
3463if test -n "$CHMOD"; then
3464 echo "$ac_t""$CHMOD" 1>&6
3465else
3466 echo "$ac_t""no" 1>&6
3467fi
3468
3469# Extract the first word of "awk", so it can be a program name with args.
3470set dummy awk; ac_word=$2
3471echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003472echo "configure:3473: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003473if eval "test \"`echo '$''{'ac_cv_path_AWK'+set}'`\" = set"; then
3474 echo $ac_n "(cached) $ac_c" 1>&6
3475else
3476 case "$AWK" in
3477 /*)
3478 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3479 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003480 ?:/*)
3481 ac_cv_path_AWK="$AWK" # Let the user override the test with a dos path.
3482 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003483 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003484 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3485 ac_dummy="$PATH"
3486 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003487 test -z "$ac_dir" && ac_dir=.
3488 if test -f $ac_dir/$ac_word; then
3489 ac_cv_path_AWK="$ac_dir/$ac_word"
3490 break
3491 fi
3492 done
3493 IFS="$ac_save_ifs"
3494 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3495 ;;
3496esac
3497fi
3498AWK="$ac_cv_path_AWK"
3499if test -n "$AWK"; then
3500 echo "$ac_t""$AWK" 1>&6
3501else
3502 echo "$ac_t""no" 1>&6
3503fi
3504
3505# Extract the first word of "sed", so it can be a program name with args.
3506set dummy sed; ac_word=$2
3507echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003508echo "configure:3509: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003509if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then
3510 echo $ac_n "(cached) $ac_c" 1>&6
3511else
3512 case "$SED" in
3513 /*)
3514 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3515 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003516 ?:/*)
3517 ac_cv_path_SED="$SED" # Let the user override the test with a dos path.
3518 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003519 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003520 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3521 ac_dummy="$PATH"
3522 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003523 test -z "$ac_dir" && ac_dir=.
3524 if test -f $ac_dir/$ac_word; then
3525 ac_cv_path_SED="$ac_dir/$ac_word"
3526 break
3527 fi
3528 done
3529 IFS="$ac_save_ifs"
3530 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3531 ;;
3532esac
3533fi
3534SED="$ac_cv_path_SED"
3535if test -n "$SED"; then
3536 echo "$ac_t""$SED" 1>&6
3537else
3538 echo "$ac_t""no" 1>&6
3539fi
3540
Theodore Ts'o9d564f71999-07-03 20:25:58 +00003541# Extract the first word of "perl", so it can be a program name with args.
3542set dummy perl; ac_word=$2
3543echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003544echo "configure:3545: checking for $ac_word" >&5
Theodore Ts'o9d564f71999-07-03 20:25:58 +00003545if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
3546 echo $ac_n "(cached) $ac_c" 1>&6
3547else
3548 case "$PERL" in
3549 /*)
3550 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3551 ;;
3552 ?:/*)
3553 ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
3554 ;;
3555 *)
3556 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3557 ac_dummy="$PATH"
3558 for ac_dir in $ac_dummy; do
3559 test -z "$ac_dir" && ac_dir=.
3560 if test -f $ac_dir/$ac_word; then
3561 ac_cv_path_PERL="$ac_dir/$ac_word"
3562 break
3563 fi
3564 done
3565 IFS="$ac_save_ifs"
3566 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
3567 ;;
3568esac
3569fi
3570PERL="$ac_cv_path_PERL"
3571if test -n "$PERL"; then
3572 echo "$ac_t""$PERL" 1>&6
3573else
3574 echo "$ac_t""no" 1>&6
3575fi
3576
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003577echo $ac_n "checking build system type""... $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003578echo "configure:3579: checking build system type" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003579
3580build_alias=$build
3581case "$build_alias" in
3582NONE)
3583 case $nonopt in
3584 NONE) build_alias=$host_alias ;;
3585 *) build_alias=$nonopt ;;
3586 esac ;;
3587esac
3588
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003589build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003590build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3591build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3592build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003593echo "$ac_t""$build" 1>&6
3594
3595if test $host != $build; then
3596 ac_tool_prefix=${host_alias}-
3597else
3598 ac_tool_prefix=
3599fi
3600
3601# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3602set dummy ${ac_tool_prefix}ar; ac_word=$2
3603echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003604echo "configure:3605: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003605if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3606 echo $ac_n "(cached) $ac_c" 1>&6
3607else
3608 if test -n "$AR"; then
3609 ac_cv_prog_AR="$AR" # Let the user override the test.
3610else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003611 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3612 ac_dummy="$PATH"
3613 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003614 test -z "$ac_dir" && ac_dir=.
3615 if test -f $ac_dir/$ac_word; then
3616 ac_cv_prog_AR="${ac_tool_prefix}ar"
3617 break
3618 fi
3619 done
3620 IFS="$ac_save_ifs"
3621fi
3622fi
3623AR="$ac_cv_prog_AR"
3624if test -n "$AR"; then
3625 echo "$ac_t""$AR" 1>&6
3626else
3627 echo "$ac_t""no" 1>&6
3628fi
3629
3630
3631if test -z "$ac_cv_prog_AR"; then
3632if test -n "$ac_tool_prefix"; then
3633 # Extract the first word of "ar", so it can be a program name with args.
3634set dummy ar; ac_word=$2
3635echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003636echo "configure:3637: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003637if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3638 echo $ac_n "(cached) $ac_c" 1>&6
3639else
3640 if test -n "$AR"; then
3641 ac_cv_prog_AR="$AR" # Let the user override the test.
3642else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003643 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3644 ac_dummy="$PATH"
3645 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003646 test -z "$ac_dir" && ac_dir=.
3647 if test -f $ac_dir/$ac_word; then
3648 ac_cv_prog_AR="ar"
3649 break
3650 fi
3651 done
3652 IFS="$ac_save_ifs"
3653 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
3654fi
3655fi
3656AR="$ac_cv_prog_AR"
3657if test -n "$AR"; then
3658 echo "$ac_t""$AR" 1>&6
3659else
3660 echo "$ac_t""no" 1>&6
3661fi
3662
3663else
3664 AR="ar"
3665fi
3666fi
3667
3668# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3669set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3670echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003671echo "configure:3672: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003672if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3673 echo $ac_n "(cached) $ac_c" 1>&6
3674else
3675 if test -n "$RANLIB"; then
3676 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3677else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003678 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3679 ac_dummy="$PATH"
3680 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003681 test -z "$ac_dir" && ac_dir=.
3682 if test -f $ac_dir/$ac_word; then
3683 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3684 break
3685 fi
3686 done
3687 IFS="$ac_save_ifs"
3688fi
3689fi
3690RANLIB="$ac_cv_prog_RANLIB"
3691if test -n "$RANLIB"; then
3692 echo "$ac_t""$RANLIB" 1>&6
3693else
3694 echo "$ac_t""no" 1>&6
3695fi
3696
3697
3698if test -z "$ac_cv_prog_RANLIB"; then
3699if test -n "$ac_tool_prefix"; then
3700 # Extract the first word of "ranlib", so it can be a program name with args.
3701set dummy ranlib; ac_word=$2
3702echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003703echo "configure:3704: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003704if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3705 echo $ac_n "(cached) $ac_c" 1>&6
3706else
3707 if test -n "$RANLIB"; then
3708 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3709else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003710 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3711 ac_dummy="$PATH"
3712 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003713 test -z "$ac_dir" && ac_dir=.
3714 if test -f $ac_dir/$ac_word; then
3715 ac_cv_prog_RANLIB="ranlib"
3716 break
3717 fi
3718 done
3719 IFS="$ac_save_ifs"
3720 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3721fi
3722fi
3723RANLIB="$ac_cv_prog_RANLIB"
3724if test -n "$RANLIB"; then
3725 echo "$ac_t""$RANLIB" 1>&6
3726else
3727 echo "$ac_t""no" 1>&6
3728fi
3729
3730else
3731 RANLIB=":"
3732fi
3733fi
3734
3735# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3736set dummy ${ac_tool_prefix}strip; ac_word=$2
3737echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003738echo "configure:3739: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003739if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
3740 echo $ac_n "(cached) $ac_c" 1>&6
3741else
3742 if test -n "$STRIP"; then
3743 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3744else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003745 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3746 ac_dummy="$PATH"
3747 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003748 test -z "$ac_dir" && ac_dir=.
3749 if test -f $ac_dir/$ac_word; then
3750 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3751 break
3752 fi
3753 done
3754 IFS="$ac_save_ifs"
3755fi
3756fi
3757STRIP="$ac_cv_prog_STRIP"
3758if test -n "$STRIP"; then
3759 echo "$ac_t""$STRIP" 1>&6
3760else
3761 echo "$ac_t""no" 1>&6
3762fi
3763
3764
3765if test -z "$ac_cv_prog_STRIP"; then
3766if test -n "$ac_tool_prefix"; then
3767 # Extract the first word of "strip", so it can be a program name with args.
3768set dummy strip; ac_word=$2
3769echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003770echo "configure:3771: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003771if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
3772 echo $ac_n "(cached) $ac_c" 1>&6
3773else
3774 if test -n "$STRIP"; then
3775 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3776else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003777 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3778 ac_dummy="$PATH"
3779 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003780 test -z "$ac_dir" && ac_dir=.
3781 if test -f $ac_dir/$ac_word; then
3782 ac_cv_prog_STRIP="strip"
3783 break
3784 fi
3785 done
3786 IFS="$ac_save_ifs"
3787 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
3788fi
3789fi
3790STRIP="$ac_cv_prog_STRIP"
3791if test -n "$STRIP"; then
3792 echo "$ac_t""$STRIP" 1>&6
3793else
3794 echo "$ac_t""no" 1>&6
3795fi
3796
3797else
3798 STRIP=":"
3799fi
3800fi
3801
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003802# Find a good install program. We prefer a C program (faster),
3803# so one script is as good as another. But avoid the broken or
3804# incompatible versions:
3805# SysV /etc/install, /usr/sbin/install
3806# SunOS /usr/etc/install
3807# IRIX /sbin/install
3808# AIX /bin/install
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003809# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003810# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3811# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3812# ./install, which can be erroneously created by make from ./install.sh.
3813echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003814echo "configure:3815: checking for a BSD compatible install" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003815if test -z "$INSTALL"; then
3816if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3817 echo $ac_n "(cached) $ac_c" 1>&6
3818else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003819 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003820 for ac_dir in $PATH; do
3821 # Account for people who put trailing slashes in PATH elements.
3822 case "$ac_dir/" in
3823 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3824 *)
3825 # OSF1 and SCO ODT 3.0 have their own names for install.
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003826 # Don't use installbsd from OSF since it installs stuff as root
3827 # by default.
3828 for ac_prog in ginstall scoinst install; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003829 if test -f $ac_dir/$ac_prog; then
3830 if test $ac_prog = install &&
3831 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3832 # AIX install. It has an incompatible calling convention.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003833 :
3834 else
3835 ac_cv_path_install="$ac_dir/$ac_prog -c"
3836 break 2
3837 fi
3838 fi
3839 done
3840 ;;
3841 esac
3842 done
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003843 IFS="$ac_save_IFS"
3844
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003845fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003846 if test "${ac_cv_path_install+set}" = set; then
3847 INSTALL="$ac_cv_path_install"
3848 else
3849 # As a last resort, use the slow shell script. We don't cache a
3850 # path for INSTALL within a source directory, because that will
3851 # break other packages using the cache if that directory is
3852 # removed, or if the path is relative.
3853 INSTALL="$ac_install_sh"
3854 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003855fi
3856echo "$ac_t""$INSTALL" 1>&6
3857
3858# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3859# It thinks the first close brace ends the variable substitution.
3860test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3861
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003862test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3863
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003864test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3865
Theodore Ts'o6c133521999-07-03 20:37:03 +00003866# See if we need a separate native compiler.
3867if test $cross_compiling = no; then
3868 BUILD_CC="$CC"
3869
3870else
3871 for ac_prog in gcc cc
3872do
3873# Extract the first word of "$ac_prog", so it can be a program name with args.
3874set dummy $ac_prog; ac_word=$2
3875echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003876echo "configure:3877: checking for $ac_word" >&5
Theodore Ts'o6c133521999-07-03 20:37:03 +00003877if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
3878 echo $ac_n "(cached) $ac_c" 1>&6
3879else
3880 if test -n "$BUILD_CC"; then
3881 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3882else
3883 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3884 ac_dummy="$PATH"
3885 for ac_dir in $ac_dummy; do
3886 test -z "$ac_dir" && ac_dir=.
3887 if test -f $ac_dir/$ac_word; then
3888 ac_cv_prog_BUILD_CC="$ac_prog"
3889 break
3890 fi
3891 done
3892 IFS="$ac_save_ifs"
3893fi
3894fi
3895BUILD_CC="$ac_cv_prog_BUILD_CC"
3896if test -n "$BUILD_CC"; then
3897 echo "$ac_t""$BUILD_CC" 1>&6
3898else
3899 echo "$ac_t""no" 1>&6
3900fi
3901
3902test -n "$BUILD_CC" && break
3903done
3904
3905fi
Theodore Ts'oc81c6ce1999-10-26 04:28:53 +00003906for 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/sockio.h sys/time.h sys/stat.h sys/types.h net/if.h netinet/in.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003907do
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003908ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003909echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003910echo "configure:3911: checking for $ac_hdr" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003911if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3912 echo $ac_n "(cached) $ac_c" 1>&6
3913else
3914 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003915#line 3916 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003916#include "confdefs.h"
3917#include <$ac_hdr>
3918EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003919ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003920{ (eval echo configure:3921: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003921ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003922if test -z "$ac_err"; then
3923 rm -rf conftest*
3924 eval "ac_cv_header_$ac_safe=yes"
3925else
3926 echo "$ac_err" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003927 echo "configure: failed program was:" >&5
3928 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003929 rm -rf conftest*
3930 eval "ac_cv_header_$ac_safe=no"
3931fi
3932rm -f conftest*
3933fi
3934if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3935 echo "$ac_t""yes" 1>&6
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003936 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003937 cat >> confdefs.h <<EOF
3938#define $ac_tr_hdr 1
3939EOF
3940
3941else
3942 echo "$ac_t""no" 1>&6
3943fi
3944done
3945
3946echo $ac_n "checking for vprintf""... $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003947echo "configure:3948: checking for vprintf" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003948if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
3949 echo $ac_n "(cached) $ac_c" 1>&6
3950else
3951 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003952#line 3953 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003953#include "confdefs.h"
3954/* System header to define __stub macros and hopefully few prototypes,
3955 which can conflict with char vprintf(); below. */
3956#include <assert.h>
3957/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003958/* We use char because int might match the return type of a gcc2
3959 builtin and then its argument prototype would still apply. */
3960char vprintf();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003961
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003962int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003963
3964/* The GNU C library defines this for functions which it implements
3965 to always fail with ENOSYS. Some functions are actually named
3966 something starting with __ and the normal name is an alias. */
3967#if defined (__stub_vprintf) || defined (__stub___vprintf)
3968choke me
3969#else
3970vprintf();
3971#endif
3972
3973; return 0; }
3974EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003975if { (eval echo configure:3976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003976 rm -rf conftest*
3977 eval "ac_cv_func_vprintf=yes"
3978else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003979 echo "configure: failed program was:" >&5
3980 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003981 rm -rf conftest*
3982 eval "ac_cv_func_vprintf=no"
3983fi
3984rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003985fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003986
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003987if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
3988 echo "$ac_t""yes" 1>&6
3989 cat >> confdefs.h <<\EOF
3990#define HAVE_VPRINTF 1
3991EOF
3992
3993else
3994 echo "$ac_t""no" 1>&6
3995fi
3996
3997if test "$ac_cv_func_vprintf" != yes; then
3998echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003999echo "configure:4000: checking for _doprnt" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004000if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
4001 echo $ac_n "(cached) $ac_c" 1>&6
4002else
4003 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004004#line 4005 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004005#include "confdefs.h"
4006/* System header to define __stub macros and hopefully few prototypes,
4007 which can conflict with char _doprnt(); below. */
4008#include <assert.h>
4009/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004010/* We use char because int might match the return type of a gcc2
4011 builtin and then its argument prototype would still apply. */
4012char _doprnt();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004013
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004014int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004015
4016/* The GNU C library defines this for functions which it implements
4017 to always fail with ENOSYS. Some functions are actually named
4018 something starting with __ and the normal name is an alias. */
4019#if defined (__stub__doprnt) || defined (__stub____doprnt)
4020choke me
4021#else
4022_doprnt();
4023#endif
4024
4025; return 0; }
4026EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004027if { (eval echo configure:4028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004028 rm -rf conftest*
4029 eval "ac_cv_func__doprnt=yes"
4030else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004031 echo "configure: failed program was:" >&5
4032 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004033 rm -rf conftest*
4034 eval "ac_cv_func__doprnt=no"
4035fi
4036rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004037fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004038
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004039if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
4040 echo "$ac_t""yes" 1>&6
4041 cat >> confdefs.h <<\EOF
4042#define HAVE_DOPRNT 1
4043EOF
4044
4045else
4046 echo "$ac_t""no" 1>&6
4047fi
4048
4049fi
4050
4051echo $ac_n "checking whether struct dirent has a d_namlen field""... $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004052echo "configure:4053: checking whether struct dirent has a d_namlen field" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004053if eval "test \"`echo '$''{'e2fsprogs_cv_struct_d_namlen'+set}'`\" = set"; then
4054 echo $ac_n "(cached) $ac_c" 1>&6
4055else
4056 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004057#line 4058 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004058#include "confdefs.h"
4059#include <sys/types.h>
4060#include <dirent.h>
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004061int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004062struct dirent de; de.d_namlen = 0;
4063; return 0; }
4064EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004065if { (eval echo configure:4066: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004066 rm -rf conftest*
4067 e2fsprogs_cv_struct_d_namlen=yes
4068else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004069 echo "configure: failed program was:" >&5
4070 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004071 rm -rf conftest*
4072 e2fsprogs_cv_struct_d_namlen=no
4073fi
4074rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004075fi
4076
4077echo "$ac_t""$e2fsprogs_cv_struct_d_namlen" 1>&6
4078if test "$e2fsprogs_cv_struct_d_namlen" = yes; then
4079 cat >> confdefs.h <<\EOF
4080#define HAVE_DIRENT_NAMLEN 1
4081EOF
4082
4083fi
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00004084echo $ac_n "checking whether llseek declared in unistd.h""... $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004085echo "configure:4086: checking whether llseek declared in unistd.h" >&5
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00004086if eval "test \"`echo '$''{'e2fsprogs_cv_have_llseek_prototype'+set}'`\" = set"; then
4087 echo $ac_n "(cached) $ac_c" 1>&6
4088else
4089 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004090#line 4091 "configure"
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00004091#include "confdefs.h"
4092#include <unistd.h>
4093int main() {
4094extern int llseek(int);
4095; return 0; }
4096EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004097if { (eval echo configure:4098: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00004098 rm -rf conftest*
4099 e2fsprogs_cv_have_llseek_prototype=no
4100else
4101 echo "configure: failed program was:" >&5
4102 cat conftest.$ac_ext >&5
4103 rm -rf conftest*
4104 e2fsprogs_cv_have_llseek_prototype=yes
4105fi
4106rm -f conftest*
4107fi
4108
4109echo "$ac_t""$e2fsprogs_cv_have_llseek_prototype" 1>&6
4110if test "$e2fsprogs_cv_have_llseek_prototype" = yes; then
4111 cat >> confdefs.h <<\EOF
4112#define HAVE_LLSEEK_PROTOTYPE 1
4113EOF
4114
4115fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004116if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
4117 # if cross-compiling, with no cached values, just assume something common.
4118 ac_cv_sizeof_short=2
4119 ac_cv_sizeof_int=4
4120 ac_cv_sizeof_long=4
Theodore Ts'o6c133521999-07-03 20:37:03 +00004121 ac_cv_sizeof_long_long=8
4122 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 +00004123fi
4124echo $ac_n "checking size of short""... $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004125echo "configure:4126: checking size of short" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004126if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
4127 echo $ac_n "(cached) $ac_c" 1>&6
4128else
4129 if test "$cross_compiling" = yes; then
4130 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4131else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004132 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004133#line 4134 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004134#include "confdefs.h"
4135#include <stdio.h>
4136main()
4137{
4138 FILE *f=fopen("conftestval", "w");
4139 if (!f) exit(1);
4140 fprintf(f, "%d\n", sizeof(short));
4141 exit(0);
4142}
4143EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004144if { (eval echo configure:4145: \"$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 +00004145then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004146 ac_cv_sizeof_short=`cat conftestval`
4147else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004148 echo "configure: failed program was:" >&5
4149 cat conftest.$ac_ext >&5
4150 rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004151 ac_cv_sizeof_short=0
4152fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004153rm -fr conftest*
4154fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004155
4156fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004157echo "$ac_t""$ac_cv_sizeof_short" 1>&6
4158cat >> confdefs.h <<EOF
4159#define SIZEOF_SHORT $ac_cv_sizeof_short
4160EOF
4161
4162
4163echo $ac_n "checking size of int""... $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004164echo "configure:4165: checking size of int" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004165if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
4166 echo $ac_n "(cached) $ac_c" 1>&6
4167else
4168 if test "$cross_compiling" = yes; then
4169 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4170else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004171 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004172#line 4173 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004173#include "confdefs.h"
4174#include <stdio.h>
4175main()
4176{
4177 FILE *f=fopen("conftestval", "w");
4178 if (!f) exit(1);
4179 fprintf(f, "%d\n", sizeof(int));
4180 exit(0);
4181}
4182EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004183if { (eval echo configure:4184: \"$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 +00004184then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004185 ac_cv_sizeof_int=`cat conftestval`
4186else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004187 echo "configure: failed program was:" >&5
4188 cat conftest.$ac_ext >&5
4189 rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004190 ac_cv_sizeof_int=0
4191fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004192rm -fr conftest*
4193fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004194
4195fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004196echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4197cat >> confdefs.h <<EOF
4198#define SIZEOF_INT $ac_cv_sizeof_int
4199EOF
4200
4201
4202echo $ac_n "checking size of long""... $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004203echo "configure:4204: checking size of long" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004204if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
4205 echo $ac_n "(cached) $ac_c" 1>&6
4206else
4207 if test "$cross_compiling" = yes; then
4208 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4209else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004210 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004211#line 4212 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004212#include "confdefs.h"
4213#include <stdio.h>
4214main()
4215{
4216 FILE *f=fopen("conftestval", "w");
4217 if (!f) exit(1);
4218 fprintf(f, "%d\n", sizeof(long));
4219 exit(0);
4220}
4221EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004222if { (eval echo configure:4223: \"$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 +00004223then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004224 ac_cv_sizeof_long=`cat conftestval`
4225else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004226 echo "configure: failed program was:" >&5
4227 cat conftest.$ac_ext >&5
4228 rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004229 ac_cv_sizeof_long=0
4230fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004231rm -fr conftest*
4232fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004233
4234fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004235echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4236cat >> confdefs.h <<EOF
4237#define SIZEOF_LONG $ac_cv_sizeof_long
4238EOF
4239
4240
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004241echo $ac_n "checking size of long long""... $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004242echo "configure:4243: checking size of long long" >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004243if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
4244 echo $ac_n "(cached) $ac_c" 1>&6
4245else
4246 if test "$cross_compiling" = yes; then
4247 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4248else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004249 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004250#line 4251 "configure"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004251#include "confdefs.h"
4252#include <stdio.h>
4253main()
4254{
4255 FILE *f=fopen("conftestval", "w");
4256 if (!f) exit(1);
4257 fprintf(f, "%d\n", sizeof(long long));
4258 exit(0);
4259}
4260EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004261if { (eval echo configure:4262: \"$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 +00004262then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004263 ac_cv_sizeof_long_long=`cat conftestval`
4264else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004265 echo "configure: failed program was:" >&5
4266 cat conftest.$ac_ext >&5
4267 rm -fr conftest*
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004268 ac_cv_sizeof_long_long=0
4269fi
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004270rm -fr conftest*
4271fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004272
4273fi
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004274echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4275cat >> confdefs.h <<EOF
4276#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4277EOF
4278
4279
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004280SIZEOF_SHORT=$ac_cv_sizeof_short
4281SIZEOF_INT=$ac_cv_sizeof_int
4282SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004283SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
4284
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004285
4286
4287
4288echo $ac_n "checking whether struct stat has a st_flags field""... $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004289echo "configure:4290: checking whether struct stat has a st_flags field" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004290if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags'+set}'`\" = set"; then
4291 echo $ac_n "(cached) $ac_c" 1>&6
4292else
4293 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004294#line 4295 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004295#include "confdefs.h"
4296#include <sys/stat.h>
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004297int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004298struct stat stat; stat.st_flags = 0;
4299; return 0; }
4300EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004301if { (eval echo configure:4302: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004302 rm -rf conftest*
4303 e2fsprogs_cv_struct_st_flags=yes
4304else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004305 echo "configure: failed program was:" >&5
4306 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004307 rm -rf conftest*
4308 e2fsprogs_cv_struct_st_flags=no
4309fi
4310rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004311fi
4312
4313echo "$ac_t""$e2fsprogs_cv_struct_st_flags" 1>&6
4314if test "$e2fsprogs_cv_struct_st_flags" = yes; then
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00004315 echo $ac_n "checking whether st_flags field is useful""... $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004316echo "configure:4317: checking whether st_flags field is useful" >&5
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00004317 if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags_immut'+set}'`\" = set"; then
4318 echo $ac_n "(cached) $ac_c" 1>&6
4319else
4320 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004321#line 4322 "configure"
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00004322#include "confdefs.h"
4323#include <sys/stat.h>
4324int main() {
4325struct stat stat; stat.st_flags |= UF_IMMUTABLE;
4326; return 0; }
4327EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004328if { (eval echo configure:4329: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00004329 rm -rf conftest*
4330 e2fsprogs_cv_struct_st_flags_immut=yes
4331else
4332 echo "configure: failed program was:" >&5
4333 cat conftest.$ac_ext >&5
4334 rm -rf conftest*
4335 e2fsprogs_cv_struct_st_flags_immut=no
4336fi
4337rm -f conftest*
4338fi
4339
4340 echo "$ac_t""$e2fsprogs_cv_struct_st_flags_immut" 1>&6
4341 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
4342 cat >> confdefs.h <<\EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004343#define HAVE_STAT_FLAGS 1
4344EOF
4345
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00004346 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004347fi
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004348for ac_func in chflags getrusage llseek strdup getmntinfo strcasecmp srandom fchown mallinfo
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004349do
4350echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004351echo "configure:4352: checking for $ac_func" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004352if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4353 echo $ac_n "(cached) $ac_c" 1>&6
4354else
4355 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004356#line 4357 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004357#include "confdefs.h"
4358/* System header to define __stub macros and hopefully few prototypes,
4359 which can conflict with char $ac_func(); below. */
4360#include <assert.h>
4361/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004362/* We use char because int might match the return type of a gcc2
4363 builtin and then its argument prototype would still apply. */
4364char $ac_func();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004365
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004366int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004367
4368/* The GNU C library defines this for functions which it implements
4369 to always fail with ENOSYS. Some functions are actually named
4370 something starting with __ and the normal name is an alias. */
4371#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4372choke me
4373#else
4374$ac_func();
4375#endif
4376
4377; return 0; }
4378EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004379if { (eval echo configure:4380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004380 rm -rf conftest*
4381 eval "ac_cv_func_$ac_func=yes"
4382else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004383 echo "configure: failed program was:" >&5
4384 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004385 rm -rf conftest*
4386 eval "ac_cv_func_$ac_func=no"
4387fi
4388rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004389fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004390
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004391if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4392 echo "$ac_t""yes" 1>&6
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004393 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004394 cat >> confdefs.h <<EOF
4395#define $ac_tr_func 1
4396EOF
4397
4398else
4399 echo "$ac_t""no" 1>&6
4400fi
4401done
4402
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004403echo $ac_n "checking ino_t defined by sys/types.h""... $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004404echo "configure:4405: checking ino_t defined by sys/types.h" >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004405if eval "test \"`echo '$''{'e2fsprogs_cv_ino_t'+set}'`\" = set"; then
4406 echo $ac_n "(cached) $ac_c" 1>&6
4407else
4408 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004409#line 4410 "configure"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004410#include "confdefs.h"
4411#include <sys/types.h>
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004412int main() {
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004413ino_t ino; ino = 0;
4414; return 0; }
4415EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004416if { (eval echo configure:4417: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004417 rm -rf conftest*
4418 e2fsprogs_cv_ino_t=yes
4419else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004420 echo "configure: failed program was:" >&5
4421 cat conftest.$ac_ext >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004422 rm -rf conftest*
4423 e2fsprogs_cv_ino_t=no
4424fi
4425rm -f conftest*
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004426fi
4427
4428echo "$ac_t""$e2fsprogs_cv_ino_t" 1>&6
4429if test "$e2fsprogs_cv_ino_t" = yes; then
4430 cat >> confdefs.h <<\EOF
4431#define HAVE_INO_T 1
4432EOF
4433
4434fi
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004435SOCKET_LIB=''
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004436echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004437echo "configure:4438: checking for socket in -lsocket" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004438ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
4439if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004440 echo $ac_n "(cached) $ac_c" 1>&6
4441else
4442 ac_save_LIBS="$LIBS"
4443LIBS="-lsocket $LIBS"
4444cat > conftest.$ac_ext <<EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004445#line 4446 "configure"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004446#include "confdefs.h"
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004447/* Override any gcc2 internal prototype to avoid an error. */
4448/* We use char because int might match the return type of a gcc2
4449 builtin and then its argument prototype would still apply. */
4450char socket();
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004451
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004452int main() {
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004453socket()
4454; return 0; }
4455EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004456if { (eval echo configure:4457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004457 rm -rf conftest*
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004458 eval "ac_cv_lib_$ac_lib_var=yes"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004459else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004460 echo "configure: failed program was:" >&5
4461 cat conftest.$ac_ext >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004462 rm -rf conftest*
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004463 eval "ac_cv_lib_$ac_lib_var=no"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004464fi
4465rm -f conftest*
4466LIBS="$ac_save_LIBS"
4467
4468fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004469if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004470 echo "$ac_t""yes" 1>&6
4471 SOCKET_LIB=-lsocket
4472else
4473 echo "$ac_t""no" 1>&6
4474fi
4475
4476
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004477echo $ac_n "checking for optreset""... $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004478echo "configure:4479: checking for optreset" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004479if eval "test \"`echo '$''{'ac_cv_have_optreset'+set}'`\" = set"; then
4480 echo $ac_n "(cached) $ac_c" 1>&6
4481else
4482 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004483#line 4484 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004484#include "confdefs.h"
4485#include <unistd.h>
4486EOF
4487if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4488 egrep "optreset" >/dev/null 2>&1; then
4489 rm -rf conftest*
4490 ac_cv_have_optreset=yes
4491else
4492 rm -rf conftest*
4493 ac_cv_have_optreset=no
4494fi
4495rm -f conftest*
4496
4497fi
4498echo "$ac_t""$ac_cv_have_optreset" 1>&6
4499if test $ac_cv_have_optreset = yes; then
4500 cat >> confdefs.h <<\EOF
4501#define HAVE_OPTRESET 1
4502EOF
4503
4504fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004505echo $ac_n "checking whether the ext2 ioctls compile""... $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004506echo "configure:4507: checking whether the ext2 ioctls compile" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004507if eval "test \"`echo '$''{'e2fsprogs_cv_ioctl_ext2'+set}'`\" = set"; then
4508 echo $ac_n "(cached) $ac_c" 1>&6
4509else
4510 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004511#line 4512 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004512#include "confdefs.h"
4513#include <linux/ext2_fs.h>
4514#include <sys/ioctl.h>
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004515int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004516ioctl (0, EXT2_IOC_SETVERSION, 0);
4517; return 0; }
4518EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004519if { (eval echo configure:4520: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004520 rm -rf conftest*
4521 e2fsprogs_cv_ioctl_ext2=yes
4522else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004523 echo "configure: failed program was:" >&5
4524 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004525 rm -rf conftest*
4526 e2fsprogs_cv_ioctl_ext2=no
4527fi
4528rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004529fi
4530
4531echo "$ac_t""$e2fsprogs_cv_ioctl_ext2" 1>&6
4532if test "$e2fsprogs_cv_ioctl_ext2" = yes; then
4533 cat >> confdefs.h <<\EOF
4534#define HAVE_EXT2_IOCTLS 1
4535EOF
4536
4537fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004538case "$host_os" in
Theodore Ts'o6c133521999-07-03 20:37:03 +00004539linux* | gnu*)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004540 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
4541 root_prefix="";
4542 echo "On $host_os systems, root_prefix defaults to ''"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004543 fi
4544 ;;
4545esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004546case "$host_os" in
4547linux* | gnu*)
4548 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004549 prefix="/usr";
4550 echo "On $host_os systems, prefix defaults to /usr"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004551 fi
4552;;
4553esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004554if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +00004555 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004556 root_prefix="$ac_default_prefix"
4557 else
4558 root_prefix="$prefix"
4559 fi
4560fi
4561
Theodore Ts'oae851481997-04-29 18:13:24 +00004562echo $ac_n "checking whether linker accepts -static""... $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004563echo "configure:4564: checking whether linker accepts -static" >&5
Theodore Ts'oae851481997-04-29 18:13:24 +00004564if eval "test \"`echo '$''{'ac_cv_e2fsprogs_use_static'+set}'`\" = set"; then
4565 echo $ac_n "(cached) $ac_c" 1>&6
4566else
4567 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
4568cat > conftest.$ac_ext <<EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004569#line 4570 "configure"
Theodore Ts'oae851481997-04-29 18:13:24 +00004570#include "confdefs.h"
4571#include <stdio.h>
4572int main() {
4573fflush(stdout);
4574; return 0; }
4575EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004576if { (eval echo configure:4577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oae851481997-04-29 18:13:24 +00004577 rm -rf conftest*
4578 ac_cv_e2fsprogs_use_static=yes
4579else
4580 echo "configure: failed program was:" >&5
4581 cat conftest.$ac_ext >&5
4582 rm -rf conftest*
4583 ac_cv_e2fsprogs_use_static=no
4584fi
4585rm -f conftest*
4586LDFLAGS=$SAVE_LDFLAGS
4587fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004588
Theodore Ts'odefde781999-01-04 07:39:19 +00004589case "$host_os" in
4590solaris2.*)
4591 ac_cv_e2fsprogs_use_static=no
4592;;
4593esac
Theodore Ts'oae851481997-04-29 18:13:24 +00004594echo "$ac_t""$ac_cv_e2fsprogs_use_static" 1>&6
Theodore Ts'o74becf31997-04-26 14:37:06 +00004595LDFLAG_STATIC=
Theodore Ts'oae851481997-04-29 18:13:24 +00004596if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004597 LDFLAG_STATIC=-static
Theodore Ts'oae851481997-04-29 18:13:24 +00004598fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004599
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004600SS_DIR=`cd ${srcdir}/lib/ss; pwd`
4601ET_DIR=`cd ${srcdir}/lib/et; pwd`
4602
4603
4604if test "$cross_compiling" = yes ; then
4605 DO_TEST_SUITE=
4606else
4607 DO_TEST_SUITE=check
4608fi
4609
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004610DO_SUBSTITUTE_SCRIPT=$srcdir/lib/do_substitute
4611
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004612test -d lib || mkdir lib
4613test -d include || mkdir include
4614test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +00004615test -d include/asm || mkdir include/asm
Theodore Ts'obc210071997-06-17 05:41:36 +00004616rmakefile=
4617if test -d ${srcdir}/resize ; then
4618 rmakefile=resize/Makefile
4619fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004620trap '' 1 2 15
4621cat > confcache <<\EOF
4622# This file is a shell script that caches the results of configure
4623# tests run on this system so they can be shared between configure
4624# scripts and configure runs. It is not useful on other systems.
4625# If it contains results you don't want to keep, you may remove or edit it.
4626#
4627# By default, configure uses ./config.cache as the cache file,
4628# creating it if it does not exist already. You can give configure
4629# the --cache-file=FILE option to use a different cache file; that is
4630# what configure does when it calls configure scripts in
4631# subdirectories, so they share the cache.
4632# Giving --cache-file=/dev/null disables caching, for debugging configure.
4633# config.status only pays attention to the cache file if you give it the
4634# --recheck option to rerun configure.
4635#
4636EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004637# The following way of writing the cache mishandles newlines in values,
4638# but we know of no workaround that is simple, portable, and efficient.
4639# So, don't put newlines in cache variables' values.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004640# Ultrix sh set writes to stderr and can't be redirected directly,
4641# and sets the high bit in the cache file unless we assign to the vars.
4642(set) 2>&1 |
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004643 case `(ac_space=' '; set | grep ac_space) 2>&1` in
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004644 *ac_space=\ *)
4645 # `set' does not quote correctly, so add quotes (double-quote substitution
4646 # turns \\\\ into \\, and sed turns \\ into \).
4647 sed -n \
4648 -e "s/'/'\\\\''/g" \
4649 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4650 ;;
4651 *)
4652 # `set' quotes correctly as required by POSIX, so do not add quotes.
4653 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4654 ;;
4655 esac >> confcache
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004656if cmp -s $cache_file confcache; then
4657 :
4658else
4659 if test -w $cache_file; then
4660 echo "updating cache $cache_file"
4661 cat confcache > $cache_file
4662 else
4663 echo "not updating unwritable cache $cache_file"
4664 fi
4665fi
4666rm -f confcache
4667
4668trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4669
4670test "x$prefix" = xNONE && prefix=$ac_default_prefix
4671# Let make expand exec_prefix.
4672test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4673
4674# Any assignment to VPATH causes Sun make to only execute
4675# the first set of double-colon rules, so remove it if not needed.
4676# If there is a colon in the path, we need to keep it.
4677if test "x$srcdir" = x.; then
4678 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4679fi
4680
4681trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4682
4683# Transform confdefs.h into DEFS.
4684# Protect against shell expansion while executing Makefile rules.
4685# Protect against Makefile macro expansion.
4686cat > conftest.defs <<\EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004687s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004688s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
4689s%\[%\\&%g
4690s%\]%\\&%g
4691s%\$%$$%g
4692EOF
4693DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
4694rm -f conftest.defs
4695
4696
4697# Without the "./", some shells look in PATH for config.status.
4698: ${CONFIG_STATUS=./config.status}
4699
4700echo creating $CONFIG_STATUS
4701rm -f $CONFIG_STATUS
4702cat > $CONFIG_STATUS <<EOF
4703#! /bin/sh
4704# Generated automatically by configure.
4705# Run this file to recreate the current configuration.
4706# This directory was configured as follows,
4707# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4708#
4709# $0 $ac_configure_args
4710#
4711# Compiler output produced by configure, useful for debugging
4712# configure, is in ./config.log if it exists.
4713
4714ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4715for ac_option
4716do
4717 case "\$ac_option" in
4718 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4719 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4720 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4721 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004722 echo "$CONFIG_STATUS generated by autoconf version 2.13"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004723 exit 0 ;;
4724 -help | --help | --hel | --he | --h)
4725 echo "\$ac_cs_usage"; exit 0 ;;
4726 *) echo "\$ac_cs_usage"; exit 1 ;;
4727 esac
4728done
4729
4730ac_given_srcdir=$srcdir
4731ac_given_INSTALL="$INSTALL"
4732
Theodore Ts'o44339bd1997-10-15 02:47:20 +00004733trap 'rm -fr `echo "MCONFIG Makefile util/Makefile util/subst.conf lib/et/Makefile
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004734 lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile lib/uuid/Makefile
4735 misc/Makefile e2fsck/Makefile debugfs/Makefile tests/Makefile
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004736 tests/progs/Makefile $rmakefile doc/Makefile
4737 intl/Makefile po/Makefile.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004738EOF
4739cat >> $CONFIG_STATUS <<EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004740
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004741# Protect against being on the right side of a sed subst in config.status.
4742sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4743 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004744$ac_vpsub
4745$extrasub
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004746s%@SHELL@%$SHELL%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004747s%@CFLAGS@%$CFLAGS%g
4748s%@CPPFLAGS@%$CPPFLAGS%g
4749s%@CXXFLAGS@%$CXXFLAGS%g
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004750s%@FFLAGS@%$FFLAGS%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004751s%@DEFS@%$DEFS%g
4752s%@LDFLAGS@%$LDFLAGS%g
4753s%@LIBS@%$LIBS%g
4754s%@exec_prefix@%$exec_prefix%g
4755s%@prefix@%$prefix%g
4756s%@program_transform_name@%$program_transform_name%g
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004757s%@bindir@%$bindir%g
4758s%@sbindir@%$sbindir%g
4759s%@libexecdir@%$libexecdir%g
4760s%@datadir@%$datadir%g
4761s%@sysconfdir@%$sysconfdir%g
4762s%@sharedstatedir@%$sharedstatedir%g
4763s%@localstatedir@%$localstatedir%g
4764s%@libdir@%$libdir%g
4765s%@includedir@%$includedir%g
4766s%@oldincludedir@%$oldincludedir%g
4767s%@infodir@%$infodir%g
4768s%@mandir@%$mandir%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004769/@MCONFIG@/r $MCONFIG
4770s%@MCONFIG@%%g
Theodore Ts'o74becf31997-04-26 14:37:06 +00004771s%@E2FSPROGS_YEAR@%$E2FSPROGS_YEAR%g
4772s%@E2FSPROGS_MONTH@%$E2FSPROGS_MONTH%g
4773s%@E2FSPROGS_VERSION@%$E2FSPROGS_VERSION%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004774s%@host@%$host%g
4775s%@host_alias@%$host_alias%g
4776s%@host_cpu@%$host_cpu%g
4777s%@host_vendor@%$host_vendor%g
4778s%@host_os@%$host_os%g
Theodore Ts'o74becf31997-04-26 14:37:06 +00004779s%@CC@%$CC%g
4780s%@LD@%$LD%g
4781s%@CCOPTS@%$CCOPTS%g
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004782s%@CPP@%$CPP%g
4783s%@LINUX_INCLUDE@%$LINUX_INCLUDE%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004784s%@DLL_CMT@%$DLL_CMT%g
4785/@MAKEFILE_DLL@/r $MAKEFILE_DLL
4786s%@MAKEFILE_DLL@%%g
4787s%@ELF_CMT@%$ELF_CMT%g
4788/@MAKEFILE_ELF@/r $MAKEFILE_ELF
4789s%@MAKEFILE_ELF@%%g
4790s%@BSDLIB_CMT@%$BSDLIB_CMT%g
4791/@MAKEFILE_BSDLIB@/r $MAKEFILE_BSDLIB
4792s%@MAKEFILE_BSDLIB@%%g
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004793s%@PACKAGE@%$PACKAGE%g
4794s%@VERSION@%$VERSION%g
4795s%@SET_MAKE@%$SET_MAKE%g
4796s%@RANLIB@%$RANLIB%g
4797s%@ALLOCA@%$ALLOCA%g
4798s%@USE_NLS@%$USE_NLS%g
4799s%@MSGFMT@%$MSGFMT%g
4800s%@GMSGFMT@%$GMSGFMT%g
4801s%@XGETTEXT@%$XGETTEXT%g
4802s%@GENCAT@%$GENCAT%g
4803s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
4804s%@CATALOGS@%$CATALOGS%g
4805s%@CATOBJEXT@%$CATOBJEXT%g
4806s%@DATADIRNAME@%$DATADIRNAME%g
4807s%@GMOFILES@%$GMOFILES%g
4808s%@INSTOBJEXT@%$INSTOBJEXT%g
4809s%@INTLDEPS@%$INTLDEPS%g
4810s%@INTLLIBS@%$INTLLIBS%g
4811s%@INTLOBJS@%$INTLOBJS%g
4812s%@POFILES@%$POFILES%g
4813s%@POSUB@%$POSUB%g
4814s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
4815s%@GT_NO@%$GT_NO%g
4816s%@GT_YES@%$GT_YES%g
4817s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
4818s%@l@%$l%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004819s%@PROFILE_CMT@%$PROFILE_CMT%g
4820/@MAKEFILE_PROFILE@/r $MAKEFILE_PROFILE
4821s%@MAKEFILE_PROFILE@%%g
4822s%@CHECKER_CMT@%$CHECKER_CMT%g
4823/@MAKEFILE_CHECKER@/r $MAKEFILE_CHECKER
4824s%@MAKEFILE_CHECKER@%%g
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004825s%@LIB_EXT@%$LIB_EXT%g
4826s%@STATIC_LIB_EXT@%$STATIC_LIB_EXT%g
4827s%@PROFILED_LIB_EXT@%$PROFILED_LIB_EXT%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004828s%@W@%$W%g
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004829s%@E2FSCK_TYPE@%$E2FSCK_TYPE%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004830s%@FSCK_PROG@%$FSCK_PROG%g
4831s%@FSCK_MAN@%$FSCK_MAN%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004832/@MAKEFILE_LIBRARY@/r $MAKEFILE_LIBRARY
4833s%@MAKEFILE_LIBRARY@%%g
Theodore Ts'o74becf31997-04-26 14:37:06 +00004834s%@BINARY_TYPE@%$BINARY_TYPE%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004835s%@LN@%$LN%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004836s%@LN_S@%$LN_S%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004837s%@MV@%$MV%g
4838s%@CP@%$CP%g
4839s%@RM@%$RM%g
4840s%@CHMOD@%$CHMOD%g
4841s%@AWK@%$AWK%g
4842s%@SED@%$SED%g
Theodore Ts'o9d564f71999-07-03 20:25:58 +00004843s%@PERL@%$PERL%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004844s%@build@%$build%g
4845s%@build_alias@%$build_alias%g
4846s%@build_cpu@%$build_cpu%g
4847s%@build_vendor@%$build_vendor%g
4848s%@build_os@%$build_os%g
4849s%@AR@%$AR%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004850s%@STRIP@%$STRIP%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004851s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004852s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004853s%@INSTALL_DATA@%$INSTALL_DATA%g
Theodore Ts'o6c133521999-07-03 20:37:03 +00004854s%@BUILD_CC@%$BUILD_CC%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004855s%@SIZEOF_SHORT@%$SIZEOF_SHORT%g
4856s%@SIZEOF_INT@%$SIZEOF_INT%g
4857s%@SIZEOF_LONG@%$SIZEOF_LONG%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004858s%@SIZEOF_LONG_LONG@%$SIZEOF_LONG_LONG%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004859s%@SOCKET_LIB@%$SOCKET_LIB%g
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004860s%@root_prefix@%$root_prefix%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004861s%@LDFLAG_STATIC@%$LDFLAG_STATIC%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004862s%@SS_DIR@%$SS_DIR%g
4863s%@ET_DIR@%$ET_DIR%g
4864s%@DO_TEST_SUITE@%$DO_TEST_SUITE%g
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004865/@DO_SUBSTITUTE_SCRIPT@/r $DO_SUBSTITUTE_SCRIPT
4866s%@DO_SUBSTITUTE_SCRIPT@%%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004867
4868CEOF
4869EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004870
4871cat >> $CONFIG_STATUS <<\EOF
4872
4873# Split the substitutions into bite-sized pieces for seds with
4874# small command number limits, like on Digital OSF/1 and HP-UX.
4875ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4876ac_file=1 # Number of current file.
4877ac_beg=1 # First line for current file.
4878ac_end=$ac_max_sed_cmds # Line after last line for current file.
4879ac_more_lines=:
4880ac_sed_cmds=""
4881while $ac_more_lines; do
4882 if test $ac_beg -gt 1; then
4883 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4884 else
4885 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4886 fi
4887 if test ! -s conftest.s$ac_file; then
4888 ac_more_lines=false
4889 rm -f conftest.s$ac_file
4890 else
4891 if test -z "$ac_sed_cmds"; then
4892 ac_sed_cmds="sed -f conftest.s$ac_file"
4893 else
4894 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4895 fi
4896 ac_file=`expr $ac_file + 1`
4897 ac_beg=$ac_end
4898 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4899 fi
4900done
4901if test -z "$ac_sed_cmds"; then
4902 ac_sed_cmds=cat
4903fi
4904EOF
4905
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004906cat >> $CONFIG_STATUS <<EOF
4907
Theodore Ts'o44339bd1997-10-15 02:47:20 +00004908CONFIG_FILES=\${CONFIG_FILES-"MCONFIG Makefile util/Makefile util/subst.conf lib/et/Makefile
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004909 lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile lib/uuid/Makefile
4910 misc/Makefile e2fsck/Makefile debugfs/Makefile tests/Makefile
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004911 tests/progs/Makefile $rmakefile doc/Makefile
4912 intl/Makefile po/Makefile.in"}
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004913EOF
4914cat >> $CONFIG_STATUS <<\EOF
4915for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004916 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004917 case "$ac_file" in
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004918 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004919 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4920 *) ac_file_in="${ac_file}.in" ;;
4921 esac
4922
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004923 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004924
4925 # Remove last slash and all that follows it. Not all systems have dirname.
4926 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4927 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4928 # The file is in a subdirectory.
4929 test ! -d "$ac_dir" && mkdir "$ac_dir"
4930 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4931 # A "../" for each directory in $ac_dir_suffix.
4932 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4933 else
4934 ac_dir_suffix= ac_dots=
4935 fi
4936
4937 case "$ac_given_srcdir" in
4938 .) srcdir=.
4939 if test -z "$ac_dots"; then top_srcdir=.
4940 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4941 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4942 *) # Relative path.
4943 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4944 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4945 esac
4946
4947 case "$ac_given_INSTALL" in
4948 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4949 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4950 esac
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004951
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004952 echo creating "$ac_file"
4953 rm -f "$ac_file"
4954 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4955 case "$ac_file" in
4956 *Makefile*) ac_comsub="1i\\
4957# $configure_input" ;;
4958 *) ac_comsub= ;;
4959 esac
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004960
4961 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 +00004962 sed -e "$ac_comsub
4963s%@configure_input@%$configure_input%g
4964s%@srcdir@%$srcdir%g
4965s%@top_srcdir@%$top_srcdir%g
4966s%@INSTALL@%$INSTALL%g
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004967" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004968fi; done
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004969rm -f conftest.s*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004970
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004971EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004972
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004973cat >> $CONFIG_STATUS <<EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004974ac_sources="$nls_cv_header_libgt"
4975ac_dests="$nls_cv_header_intl"
4976EOF
4977
4978cat >> $CONFIG_STATUS <<\EOF
4979srcdir=$ac_given_srcdir
4980while test -n "$ac_sources"; do
4981 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
4982 set $ac_sources; ac_source=$1; shift; ac_sources=$*
4983
4984 echo "linking $srcdir/$ac_source to $ac_dest"
4985
4986 if test ! -r $srcdir/$ac_source; then
4987 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
4988 fi
4989 rm -f $ac_dest
4990
4991 # Make relative symlinks.
4992 # Remove last slash and all that follows it. Not all systems have dirname.
4993 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
4994 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
4995 # The dest file is in a subdirectory.
4996 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
4997 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
4998 # A "../" for each directory in $ac_dest_dir_suffix.
4999 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
5000 else
5001 ac_dest_dir_suffix= ac_dots=
5002 fi
5003
5004 case "$srcdir" in
5005 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
5006 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
5007 esac
5008
5009 # Make a symlink if possible; otherwise try a hard link.
5010 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
5011 ln $srcdir/$ac_source $ac_dest; then :
5012 else
5013 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
5014 fi
5015done
5016EOF
5017cat >> $CONFIG_STATUS <<EOF
5018
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005019
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005020EOF
5021cat >> $CONFIG_STATUS <<\EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005022case "$CONFIG_FILES" in *po/Makefile.in*)
5023 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
5024 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005025
5026exit 0
5027EOF
5028chmod +x $CONFIG_STATUS
5029rm -fr confdefs* $ac_clean_files
5030test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
5031