blob: 8bfaaae96c9b64feac83641bfdd6062d6672cb83 [file] [log] [blame]
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004# Generated automatically using autoconf version 2.13
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006#
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Defaults:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
14ac_help="$ac_help
Theodore Ts'o74becf31997-04-26 14:37:06 +000015 --with-cc=COMPILER select compiler to use"
16ac_help="$ac_help
17 --with-linker=LINKER select linker to use"
18ac_help="$ac_help
19 --with-ccopts=CCOPTS select compiler command line options"
20ac_help="$ac_help
21 --with-ldopts=LDOPTS select linker command line options"
22ac_help="$ac_help
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000023 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000024ac_help="$ac_help
Theodore Ts'o19178752000-02-11 15:55:07 +000025 --enable-compression enable EXPERIMENTAL compression support"
26ac_help="$ac_help
Theodore Ts'oa4d09611997-04-29 14:28:00 +000027 --enable-dll-shlibs select DLL libraries"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000028ac_help="$ac_help
Theodore Ts'oa4d09611997-04-29 14:28:00 +000029 --enable-elf-shlibs select ELF shared libraries"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000030ac_help="$ac_help
Theodore Ts'oa4d09611997-04-29 14:28:00 +000031 --enable-bsd-shlibs select BSD shared libraries"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000032ac_help="$ac_help
Theodore Ts'ocdf186e2001-06-13 22:16:47 +000033 --enable-profile build profiling libraries"
34ac_help="$ac_help
35 --enable-checker build checker libraries"
36ac_help="$ac_help
Theodore Ts'o80bfaa32000-08-18 15:08:37 +000037 --enable-jfs-debug enable journal debugging"
38ac_help="$ac_help
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000039 --disable-swapfs disable support of legacy byte-swapped filesystems"
40ac_help="$ac_help
Theodore Ts'ocdf186e2001-06-13 22:16:47 +000041 --disable-debugfs disable support of debugfs program"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000042ac_help="$ac_help
Theodore Ts'ocdf186e2001-06-13 22:16:47 +000043 --disable-imager disable support of e2image program"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000044ac_help="$ac_help
Theodore Ts'ocdf186e2001-06-13 22:16:47 +000045 --disable-resizer disable support of e2resize program"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000046ac_help="$ac_help
Theodore Ts'oa4d09611997-04-29 14:28:00 +000047 --enable-dynamic-e2fsck build e2fsck dynamically"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000048ac_help="$ac_help
49 --enable-fsck build fsck wrapper program"
50ac_help="$ac_help
51 --enable-old-bitops Use old (non-standard but native) bitmask operations"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +000052ac_help="$ac_help
53 --enable-nls Turn on Native Language Support"
54ac_help="$ac_help
55 --with-included-gettext use the GNU gettext library included here"
56ac_help="$ac_help
57 --with-catgets use catgets functions if available"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000058
59# Initialize some variables set by options.
60# The variables have the same names as the options, with
61# dashes changed to underlines.
62build=NONE
63cache_file=./config.cache
64exec_prefix=NONE
65host=NONE
66no_create=
67nonopt=NONE
68no_recursion=
69prefix=NONE
70program_prefix=NONE
71program_suffix=NONE
72program_transform_name=s,x,x,
73silent=
74site=
75srcdir=
76target=NONE
77verbose=
78x_includes=NONE
79x_libraries=NONE
Theodore Ts'o21c84b71997-04-29 16:15:03 +000080bindir='${exec_prefix}/bin'
81sbindir='${exec_prefix}/sbin'
82libexecdir='${exec_prefix}/libexec'
83datadir='${prefix}/share'
84sysconfdir='${prefix}/etc'
85sharedstatedir='${prefix}/com'
86localstatedir='${prefix}/var'
87libdir='${exec_prefix}/lib'
88includedir='${prefix}/include'
89oldincludedir='/usr/include'
90infodir='${prefix}/info'
91mandir='${prefix}/man'
Theodore Ts'o50e1e101997-04-26 13:58:21 +000092
93# Initialize some other variables.
94subdirs=
Theodore Ts'o21c84b71997-04-29 16:15:03 +000095MFLAGS= MAKEFLAGS=
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +000096SHELL=${CONFIG_SHELL-/bin/sh}
Theodore Ts'o21c84b71997-04-29 16:15:03 +000097# Maximum number of lines to put in a shell here document.
98ac_max_here_lines=12
Theodore Ts'o50e1e101997-04-26 13:58:21 +000099
100ac_prev=
101for ac_option
102do
103
104 # If the previous option needs an argument, assign it.
105 if test -n "$ac_prev"; then
106 eval "$ac_prev=\$ac_option"
107 ac_prev=
108 continue
109 fi
110
111 case "$ac_option" in
112 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
113 *) ac_optarg= ;;
114 esac
115
116 # Accept the important Cygnus configure options, so we can diagnose typos.
117
118 case "$ac_option" in
119
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000120 -bindir | --bindir | --bindi | --bind | --bin | --bi)
121 ac_prev=bindir ;;
122 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
123 bindir="$ac_optarg" ;;
124
125 -build | --build | --buil | --bui | --bu)
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000126 ac_prev=build ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000127 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000128 build="$ac_optarg" ;;
129
130 -cache-file | --cache-file | --cache-fil | --cache-fi \
131 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
132 ac_prev=cache_file ;;
133 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
134 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
135 cache_file="$ac_optarg" ;;
136
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000137 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
138 ac_prev=datadir ;;
139 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
140 | --da=*)
141 datadir="$ac_optarg" ;;
142
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000143 -disable-* | --disable-*)
144 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
145 # Reject names that are not valid shell variable names.
146 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
147 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
148 fi
149 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
150 eval "enable_${ac_feature}=no" ;;
151
152 -enable-* | --enable-*)
153 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
154 # Reject names that are not valid shell variable names.
155 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
156 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
157 fi
158 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
159 case "$ac_option" in
160 *=*) ;;
161 *) ac_optarg=yes ;;
162 esac
163 eval "enable_${ac_feature}='$ac_optarg'" ;;
164
165 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
166 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
167 | --exec | --exe | --ex)
168 ac_prev=exec_prefix ;;
169 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
170 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
171 | --exec=* | --exe=* | --ex=*)
172 exec_prefix="$ac_optarg" ;;
173
174 -gas | --gas | --ga | --g)
175 # Obsolete; use --with-gas.
176 with_gas=yes ;;
177
178 -help | --help | --hel | --he)
179 # Omit some internal or obsolete options to make the list less imposing.
180 # This message is too long to be a string in the A/UX 3.1 sh.
181 cat << EOF
182Usage: configure [options] [host]
183Options: [defaults in brackets after descriptions]
184Configuration:
185 --cache-file=FILE cache test results in FILE
186 --help print this message
187 --no-create do not create output files
188 --quiet, --silent do not print \`checking...' messages
189 --version print the version of autoconf that created configure
190Directory and file names:
191 --prefix=PREFIX install architecture-independent files in PREFIX
192 [$ac_default_prefix]
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000193 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000194 [same as prefix]
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000195 --bindir=DIR user executables in DIR [EPREFIX/bin]
196 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
197 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
198 --datadir=DIR read-only architecture-independent data in DIR
199 [PREFIX/share]
200 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
201 --sharedstatedir=DIR modifiable architecture-independent data in DIR
202 [PREFIX/com]
203 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
204 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
205 --includedir=DIR C header files in DIR [PREFIX/include]
206 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
207 --infodir=DIR info documentation in DIR [PREFIX/info]
208 --mandir=DIR man documentation in DIR [PREFIX/man]
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000209 --srcdir=DIR find the sources in DIR [configure dir or ..]
210 --program-prefix=PREFIX prepend PREFIX to installed program names
211 --program-suffix=SUFFIX append SUFFIX to installed program names
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000212 --program-transform-name=PROGRAM
213 run sed PROGRAM on installed program names
214EOF
215 cat << EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000216Host type:
217 --build=BUILD configure for building on BUILD [BUILD=HOST]
218 --host=HOST configure for HOST [guessed]
219 --target=TARGET configure for TARGET [TARGET=HOST]
220Features and packages:
221 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
222 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
223 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
224 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
225 --x-includes=DIR X include files are in DIR
226 --x-libraries=DIR X library files are in DIR
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000227EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000228 if test -n "$ac_help"; then
229 echo "--enable and --with options recognized:$ac_help"
230 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000231 exit 0 ;;
232
233 -host | --host | --hos | --ho)
234 ac_prev=host ;;
235 -host=* | --host=* | --hos=* | --ho=*)
236 host="$ac_optarg" ;;
237
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000238 -includedir | --includedir | --includedi | --included | --include \
239 | --includ | --inclu | --incl | --inc)
240 ac_prev=includedir ;;
241 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
242 | --includ=* | --inclu=* | --incl=* | --inc=*)
243 includedir="$ac_optarg" ;;
244
245 -infodir | --infodir | --infodi | --infod | --info | --inf)
246 ac_prev=infodir ;;
247 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
248 infodir="$ac_optarg" ;;
249
250 -libdir | --libdir | --libdi | --libd)
251 ac_prev=libdir ;;
252 -libdir=* | --libdir=* | --libdi=* | --libd=*)
253 libdir="$ac_optarg" ;;
254
255 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
256 | --libexe | --libex | --libe)
257 ac_prev=libexecdir ;;
258 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
259 | --libexe=* | --libex=* | --libe=*)
260 libexecdir="$ac_optarg" ;;
261
262 -localstatedir | --localstatedir | --localstatedi | --localstated \
263 | --localstate | --localstat | --localsta | --localst \
264 | --locals | --local | --loca | --loc | --lo)
265 ac_prev=localstatedir ;;
266 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
267 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
268 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
269 localstatedir="$ac_optarg" ;;
270
271 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
272 ac_prev=mandir ;;
273 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
274 mandir="$ac_optarg" ;;
275
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000276 -nfp | --nfp | --nf)
277 # Obsolete; use --without-fp.
278 with_fp=no ;;
279
280 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
281 | --no-cr | --no-c)
282 no_create=yes ;;
283
284 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
285 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
286 no_recursion=yes ;;
287
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000288 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
289 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
290 | --oldin | --oldi | --old | --ol | --o)
291 ac_prev=oldincludedir ;;
292 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
293 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
294 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
295 oldincludedir="$ac_optarg" ;;
296
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000297 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
298 ac_prev=prefix ;;
299 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
300 prefix="$ac_optarg" ;;
301
302 -program-prefix | --program-prefix | --program-prefi | --program-pref \
303 | --program-pre | --program-pr | --program-p)
304 ac_prev=program_prefix ;;
305 -program-prefix=* | --program-prefix=* | --program-prefi=* \
306 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
307 program_prefix="$ac_optarg" ;;
308
309 -program-suffix | --program-suffix | --program-suffi | --program-suff \
310 | --program-suf | --program-su | --program-s)
311 ac_prev=program_suffix ;;
312 -program-suffix=* | --program-suffix=* | --program-suffi=* \
313 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
314 program_suffix="$ac_optarg" ;;
315
316 -program-transform-name | --program-transform-name \
317 | --program-transform-nam | --program-transform-na \
318 | --program-transform-n | --program-transform- \
319 | --program-transform | --program-transfor \
320 | --program-transfo | --program-transf \
321 | --program-trans | --program-tran \
322 | --progr-tra | --program-tr | --program-t)
323 ac_prev=program_transform_name ;;
324 -program-transform-name=* | --program-transform-name=* \
325 | --program-transform-nam=* | --program-transform-na=* \
326 | --program-transform-n=* | --program-transform-=* \
327 | --program-transform=* | --program-transfor=* \
328 | --program-transfo=* | --program-transf=* \
329 | --program-trans=* | --program-tran=* \
330 | --progr-tra=* | --program-tr=* | --program-t=*)
331 program_transform_name="$ac_optarg" ;;
332
333 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
334 | -silent | --silent | --silen | --sile | --sil)
335 silent=yes ;;
336
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000337 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
338 ac_prev=sbindir ;;
339 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
340 | --sbi=* | --sb=*)
341 sbindir="$ac_optarg" ;;
342
343 -sharedstatedir | --sharedstatedir | --sharedstatedi \
344 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
345 | --sharedst | --shareds | --shared | --share | --shar \
346 | --sha | --sh)
347 ac_prev=sharedstatedir ;;
348 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
349 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
350 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
351 | --sha=* | --sh=*)
352 sharedstatedir="$ac_optarg" ;;
353
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000354 -site | --site | --sit)
355 ac_prev=site ;;
356 -site=* | --site=* | --sit=*)
357 site="$ac_optarg" ;;
358
359 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
360 ac_prev=srcdir ;;
361 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
362 srcdir="$ac_optarg" ;;
363
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000364 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
365 | --syscon | --sysco | --sysc | --sys | --sy)
366 ac_prev=sysconfdir ;;
367 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
368 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
369 sysconfdir="$ac_optarg" ;;
370
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000371 -target | --target | --targe | --targ | --tar | --ta | --t)
372 ac_prev=target ;;
373 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
374 target="$ac_optarg" ;;
375
376 -v | -verbose | --verbose | --verbos | --verbo | --verb)
377 verbose=yes ;;
378
379 -version | --version | --versio | --versi | --vers)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000380 echo "configure generated by autoconf version 2.13"
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000381 exit 0 ;;
382
383 -with-* | --with-*)
384 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
385 # Reject names that are not valid shell variable names.
386 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
387 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
388 fi
389 ac_package=`echo $ac_package| sed 's/-/_/g'`
390 case "$ac_option" in
391 *=*) ;;
392 *) ac_optarg=yes ;;
393 esac
394 eval "with_${ac_package}='$ac_optarg'" ;;
395
396 -without-* | --without-*)
397 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
398 # Reject names that are not valid shell variable names.
399 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
400 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
401 fi
402 ac_package=`echo $ac_package| sed 's/-/_/g'`
403 eval "with_${ac_package}=no" ;;
404
405 --x)
406 # Obsolete; use --with-x.
407 with_x=yes ;;
408
409 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
410 | --x-incl | --x-inc | --x-in | --x-i)
411 ac_prev=x_includes ;;
412 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
413 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
414 x_includes="$ac_optarg" ;;
415
416 -x-libraries | --x-libraries | --x-librarie | --x-librari \
417 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
418 ac_prev=x_libraries ;;
419 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
420 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
421 x_libraries="$ac_optarg" ;;
422
423 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
424 ;;
425
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000426 *)
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000427 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
428 echo "configure: warning: $ac_option: invalid host type" 1>&2
429 fi
430 if test "x$nonopt" != xNONE; then
431 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
432 fi
433 nonopt="$ac_option"
434 ;;
435
436 esac
437done
438
439if test -n "$ac_prev"; then
440 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
441fi
442
443trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
444
445# File descriptor usage:
446# 0 standard input
447# 1 file creation
448# 2 errors and warnings
449# 3 some systems may open it to /dev/tty
450# 4 used on the Kubota Titan
451# 6 checking for... messages and results
452# 5 compiler messages saved in config.log
453if test "$silent" = yes; then
454 exec 6>/dev/null
455else
456 exec 6>&1
457fi
458exec 5>./config.log
459
460echo "\
461This file contains any messages produced by compilers while
462running configure, to aid debugging if configure makes a mistake.
463" 1>&5
464
465# Strip out --no-create and --no-recursion so they do not pile up.
466# Also quote any args containing shell metacharacters.
467ac_configure_args=
468for ac_arg
469do
470 case "$ac_arg" in
471 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
472 | --no-cr | --no-c) ;;
473 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
474 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
475 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
476 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
477 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
478 esac
479done
480
481# NLS nuisances.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000482# Only set these to C if already set. These must not be set unconditionally
483# because not all systems understand e.g. LANG=C (notably SCO).
484# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
485# Non-C LC_CTYPE values break the ctype check.
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000486if test "${LANG+set}" = set; then LANG=C; export LANG; fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000487if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
488if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
489if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000490
491# confdefs.h avoids OS command line length limits that DEFS can exceed.
492rm -rf conftest* confdefs.h
493# AIX cpp loses on an empty file, so make sure it contains at least a newline.
494echo > confdefs.h
495
496# A filename unique to this package, relative to the directory that
497# configure is in, which we can look for to find out if srcdir is correct.
498ac_unique_file=version.h
499
500# Find the source files, if location was not specified.
501if test -z "$srcdir"; then
502 ac_srcdir_defaulted=yes
503 # Try the directory containing this script, then its parent.
504 ac_prog=$0
505 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
506 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
507 srcdir=$ac_confdir
508 if test ! -r $srcdir/$ac_unique_file; then
509 srcdir=..
510 fi
511else
512 ac_srcdir_defaulted=no
513fi
514if test ! -r $srcdir/$ac_unique_file; then
515 if test "$ac_srcdir_defaulted" = yes; then
516 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
517 else
518 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
519 fi
520fi
521srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
522
523# Prefer explicitly selected file to automatically selected ones.
524if test -z "$CONFIG_SITE"; then
525 if test "x$prefix" != xNONE; then
526 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
527 else
528 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
529 fi
530fi
531for ac_site_file in $CONFIG_SITE; do
532 if test -r "$ac_site_file"; then
533 echo "loading site script $ac_site_file"
534 . "$ac_site_file"
535 fi
536done
537
538if test -r "$cache_file"; then
539 echo "loading cache $cache_file"
540 . $cache_file
541else
542 echo "creating cache $cache_file"
543 > $cache_file
544fi
545
546ac_ext=c
547# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
548ac_cpp='$CPP $CPPFLAGS'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000549ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000550ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000551cross_compiling=$ac_cv_prog_cc_cross
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000552
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000553ac_exeext=
554ac_objext=o
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000555if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
556 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
557 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
558 ac_n= ac_c='
559' ac_t=' '
560 else
561 ac_n=-n ac_c= ac_t=
562 fi
563else
564 ac_n= ac_c='\c' ac_t=
565fi
566
567
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +0000568
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000569MCONFIG=./MCONFIG
570
Theodore Ts'o74becf31997-04-26 14:37:06 +0000571BINARY_TYPE=bin
572E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
573 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
574DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
575 | tr \" " "`
576MONTH=`echo $DATE | awk -F- '{print $2}'`
577YEAR=`echo $DATE | awk -F- '{print $3}'`
578
Theodore Ts'o14790ed1999-01-12 23:32:52 +0000579if expr $YEAR ">" 1900 > /dev/null ; then
580 E2FSPROGS_YEAR=$YEAR
581elif expr $YEAR ">" 90 >/dev/null ; then
Theodore Ts'o74becf31997-04-26 14:37:06 +0000582 E2FSPROGS_YEAR=19$YEAR
583else
584 E2FSPROGS_YEAR=20$YEAR
585fi
586
587case $MONTH in
588Jan) E2FSPROGS_MONTH="January" ;;
589Feb) E2FSPROGS_MONTH="February" ;;
590Mar) E2FSPROGS_MONTH="March" ;;
591Apr) E2FSPROGS_MONTH="April" ;;
592May) E2FSPROGS_MONTH="May" ;;
593Jun) E2FSPROGS_MONTH="June" ;;
594Jul) E2FSPROGS_MONTH="July" ;;
595Aug) E2FSPROGS_MONTH="August" ;;
596Sep) E2FSPROGS_MONTH="September" ;;
597Oct) E2FSPROGS_MONTH="October" ;;
598Nov) E2FSPROGS_MONTH="November" ;;
599Dec) E2FSPROGS_MONTH="December" ;;
600*) echo "Unknown month $MONTH??" ;;
601esac
602
603unset DATE MONTH YEAR
604echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION"
605echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}"
606
607
608
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000609
610ac_aux_dir=
611for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
612 if test -f $ac_dir/install-sh; then
613 ac_aux_dir=$ac_dir
614 ac_install_sh="$ac_aux_dir/install-sh -c"
615 break
616 elif test -f $ac_dir/install.sh; then
617 ac_aux_dir=$ac_dir
618 ac_install_sh="$ac_aux_dir/install.sh -c"
619 break
620 fi
621done
622if test -z "$ac_aux_dir"; then
623 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
624fi
625ac_config_guess=$ac_aux_dir/config.guess
626ac_config_sub=$ac_aux_dir/config.sub
627ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
628
629
630# Make sure we can run config.sub.
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000631if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000632else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
633fi
634
635echo $ac_n "checking host system type""... $ac_c" 1>&6
Theodore Ts'ocdf186e2001-06-13 22:16:47 +0000636echo "configure:637: checking host system type" >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000637
638host_alias=$host
639case "$host_alias" in
640NONE)
641 case $nonopt in
642 NONE)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000643 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000644 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
645 fi ;;
646 *) host_alias=$nonopt ;;
647 esac ;;
648esac
649
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000650host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000651host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
652host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
653host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000654echo "$ac_t""$host" 1>&6
655
Theodore Ts'o74becf31997-04-26 14:37:06 +0000656# Check whether --with-cc or --without-cc was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000657if test "${with_cc+set}" = set; then
658 withval="$with_cc"
Theodore Ts'o74becf31997-04-26 14:37:06 +0000659 echo "$ac_t""CC=$withval" 1>&6
660CC=$withval
661else
662 if test -z "$CC" ; then CC=cc; fi
663echo "$ac_t""CC defaults to $CC" 1>&6
664fi
665export CC
666
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000667# Extract the first word of "gcc", so it can be a program name with args.
668set dummy gcc; ac_word=$2
669echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'ocdf186e2001-06-13 22:16:47 +0000670echo "configure:671: checking for $ac_word" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000671if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
672 echo $ac_n "(cached) $ac_c" 1>&6
673else
674 if test -n "$CC"; then
675 ac_cv_prog_CC="$CC" # Let the user override the test.
676else
677 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
678 ac_dummy="$PATH"
679 for ac_dir in $ac_dummy; do
680 test -z "$ac_dir" && ac_dir=.
681 if test -f $ac_dir/$ac_word; then
682 ac_cv_prog_CC="gcc"
683 break
684 fi
685 done
686 IFS="$ac_save_ifs"
687fi
688fi
689CC="$ac_cv_prog_CC"
690if test -n "$CC"; then
691 echo "$ac_t""$CC" 1>&6
692else
693 echo "$ac_t""no" 1>&6
694fi
695
696if test -z "$CC"; then
697 # Extract the first word of "cc", so it can be a program name with args.
698set dummy cc; ac_word=$2
699echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'ocdf186e2001-06-13 22:16:47 +0000700echo "configure:701: checking for $ac_word" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000701if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
702 echo $ac_n "(cached) $ac_c" 1>&6
703else
704 if test -n "$CC"; then
705 ac_cv_prog_CC="$CC" # Let the user override the test.
706else
707 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
708 ac_prog_rejected=no
709 ac_dummy="$PATH"
710 for ac_dir in $ac_dummy; do
711 test -z "$ac_dir" && ac_dir=.
712 if test -f $ac_dir/$ac_word; then
713 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
714 ac_prog_rejected=yes
715 continue
716 fi
717 ac_cv_prog_CC="cc"
718 break
719 fi
720 done
721 IFS="$ac_save_ifs"
722if test $ac_prog_rejected = yes; then
723 # We found a bogon in the path, so make sure we never use it.
724 set dummy $ac_cv_prog_CC
725 shift
726 if test $# -gt 0; then
727 # We chose a different compiler from the bogus one.
728 # However, it has the same basename, so the bogon will be chosen
729 # first if we set CC to just the basename; use the full file name.
730 shift
731 set dummy "$ac_dir/$ac_word" "$@"
732 shift
733 ac_cv_prog_CC="$@"
734 fi
735fi
736fi
737fi
738CC="$ac_cv_prog_CC"
739if test -n "$CC"; then
740 echo "$ac_t""$CC" 1>&6
741else
742 echo "$ac_t""no" 1>&6
743fi
744
745 if test -z "$CC"; then
746 case "`uname -s`" in
747 *win32* | *WIN32*)
748 # Extract the first word of "cl", so it can be a program name with args.
749set dummy cl; ac_word=$2
750echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'ocdf186e2001-06-13 22:16:47 +0000751echo "configure:752: checking for $ac_word" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000752if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
753 echo $ac_n "(cached) $ac_c" 1>&6
754else
755 if test -n "$CC"; then
756 ac_cv_prog_CC="$CC" # Let the user override the test.
757else
758 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
759 ac_dummy="$PATH"
760 for ac_dir in $ac_dummy; do
761 test -z "$ac_dir" && ac_dir=.
762 if test -f $ac_dir/$ac_word; then
763 ac_cv_prog_CC="cl"
764 break
765 fi
766 done
767 IFS="$ac_save_ifs"
768fi
769fi
770CC="$ac_cv_prog_CC"
771if test -n "$CC"; then
772 echo "$ac_t""$CC" 1>&6
773else
774 echo "$ac_t""no" 1>&6
775fi
776 ;;
777 esac
778 fi
779 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
780fi
781
782echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
Theodore Ts'ocdf186e2001-06-13 22:16:47 +0000783echo "configure:784: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000784
785ac_ext=c
786# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
787ac_cpp='$CPP $CPPFLAGS'
788ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
789ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
790cross_compiling=$ac_cv_prog_cc_cross
791
792cat > conftest.$ac_ext << EOF
793
Theodore Ts'ocdf186e2001-06-13 22:16:47 +0000794#line 795 "configure"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000795#include "confdefs.h"
796
797main(){return(0);}
798EOF
Theodore Ts'ocdf186e2001-06-13 22:16:47 +0000799if { (eval echo configure:800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000800 ac_cv_prog_cc_works=yes
801 # If we can't run a trivial program, we are probably using a cross compiler.
802 if (./conftest; exit) 2>/dev/null; then
803 ac_cv_prog_cc_cross=no
804 else
805 ac_cv_prog_cc_cross=yes
806 fi
807else
808 echo "configure: failed program was:" >&5
809 cat conftest.$ac_ext >&5
810 ac_cv_prog_cc_works=no
811fi
812rm -fr conftest*
813ac_ext=c
814# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
815ac_cpp='$CPP $CPPFLAGS'
816ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
817ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
818cross_compiling=$ac_cv_prog_cc_cross
819
820echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
821if test $ac_cv_prog_cc_works = no; then
822 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
823fi
824echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
Theodore Ts'ocdf186e2001-06-13 22:16:47 +0000825echo "configure:826: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000826echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
827cross_compiling=$ac_cv_prog_cc_cross
828
829echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
Theodore Ts'ocdf186e2001-06-13 22:16:47 +0000830echo "configure:831: checking whether we are using GNU C" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000831if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
832 echo $ac_n "(cached) $ac_c" 1>&6
833else
834 cat > conftest.c <<EOF
835#ifdef __GNUC__
836 yes;
837#endif
838EOF
Theodore Ts'ocdf186e2001-06-13 22:16:47 +0000839if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:840: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000840 ac_cv_prog_gcc=yes
841else
842 ac_cv_prog_gcc=no
843fi
844fi
845
846echo "$ac_t""$ac_cv_prog_gcc" 1>&6
847
848if test $ac_cv_prog_gcc = yes; then
849 GCC=yes
850else
851 GCC=
852fi
853
854ac_test_CFLAGS="${CFLAGS+set}"
855ac_save_CFLAGS="$CFLAGS"
856CFLAGS=
857echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
Theodore Ts'ocdf186e2001-06-13 22:16:47 +0000858echo "configure:859: checking whether ${CC-cc} accepts -g" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000859if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
860 echo $ac_n "(cached) $ac_c" 1>&6
861else
862 echo 'void f(){}' > conftest.c
863if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
864 ac_cv_prog_cc_g=yes
865else
866 ac_cv_prog_cc_g=no
867fi
868rm -f conftest*
869
870fi
871
872echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
873if test "$ac_test_CFLAGS" = set; then
874 CFLAGS="$ac_save_CFLAGS"
875elif test $ac_cv_prog_cc_g = yes; then
876 if test "$GCC" = yes; then
877 CFLAGS="-g -O2"
878 else
879 CFLAGS="-g"
880 fi
881else
882 if test "$GCC" = yes; then
883 CFLAGS="-O2"
884 else
885 CFLAGS=
886 fi
887fi
888
Theodore Ts'o74becf31997-04-26 14:37:06 +0000889# Check whether --with-linker or --without-linker was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000890if test "${with_linker+set}" = set; then
891 withval="$with_linker"
Theodore Ts'o74becf31997-04-26 14:37:06 +0000892 echo "$ac_t""LD=$withval" 1>&6
893LD=$withval
894else
895 if test -z "$LD" ; then LD=$CC; fi
896echo "$ac_t""LD defaults to $LD" 1>&6
897fi
898export LD
899
900# Check whether --with-ccopts or --without-ccopts was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000901if test "${with_ccopts+set}" = set; then
902 withval="$with_ccopts"
Theodore Ts'o74becf31997-04-26 14:37:06 +0000903 echo "$ac_t""CCOPTS is $withval" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +0000904CFLAGS=$withval
Theodore Ts'o74becf31997-04-26 14:37:06 +0000905fi
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000906echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
Theodore Ts'ocdf186e2001-06-13 22:16:47 +0000907echo "configure:908: checking how to run the C preprocessor" >&5
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000908# On Suns, sometimes $CPP names a directory.
909if test -n "$CPP" && test -d "$CPP"; then
910 CPP=
911fi
912if test -z "$CPP"; then
913if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
914 echo $ac_n "(cached) $ac_c" 1>&6
915else
916 # This must be in double quotes, not single quotes, because CPP may get
917 # substituted into the Makefile and "${CC-cc}" will confuse make.
918 CPP="${CC-cc} -E"
919 # On the NeXT, cc -E runs the code through the compiler's parser,
920 # not just through cpp.
921 cat > conftest.$ac_ext <<EOF
Theodore Ts'ocdf186e2001-06-13 22:16:47 +0000922#line 923 "configure"
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000923#include "confdefs.h"
924#include <assert.h>
925Syntax Error
926EOF
927ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +0000928{ (eval echo configure:929: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000929ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
930if test -z "$ac_err"; then
931 :
932else
933 echo "$ac_err" >&5
934 echo "configure: failed program was:" >&5
935 cat conftest.$ac_ext >&5
936 rm -rf conftest*
937 CPP="${CC-cc} -E -traditional-cpp"
938 cat > conftest.$ac_ext <<EOF
Theodore Ts'ocdf186e2001-06-13 22:16:47 +0000939#line 940 "configure"
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000940#include "confdefs.h"
941#include <assert.h>
942Syntax Error
943EOF
944ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +0000945{ (eval echo configure:946: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000946ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
947if test -z "$ac_err"; then
948 :
949else
950 echo "$ac_err" >&5
951 echo "configure: failed program was:" >&5
952 cat conftest.$ac_ext >&5
953 rm -rf conftest*
954 CPP="${CC-cc} -nologo -E"
955 cat > conftest.$ac_ext <<EOF
Theodore Ts'ocdf186e2001-06-13 22:16:47 +0000956#line 957 "configure"
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000957#include "confdefs.h"
958#include <assert.h>
959Syntax Error
960EOF
961ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +0000962{ (eval echo configure:963: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000963ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
964if test -z "$ac_err"; then
965 :
966else
967 echo "$ac_err" >&5
968 echo "configure: failed program was:" >&5
969 cat conftest.$ac_ext >&5
970 rm -rf conftest*
971 CPP=/lib/cpp
972fi
973rm -f conftest*
974fi
975rm -f conftest*
976fi
977rm -f conftest*
978 ac_cv_prog_CPP="$CPP"
979fi
980 CPP="$ac_cv_prog_CPP"
981else
982 ac_cv_prog_CPP="$CPP"
983fi
984echo "$ac_t""$CPP" 1>&6
985
986ac_safe=`echo "linux/fs.h" | sed 'y%./+-%__p_%'`
987echo $ac_n "checking for linux/fs.h""... $ac_c" 1>&6
Theodore Ts'ocdf186e2001-06-13 22:16:47 +0000988echo "configure:989: checking for linux/fs.h" >&5
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000989if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
990 echo $ac_n "(cached) $ac_c" 1>&6
991else
992 cat > conftest.$ac_ext <<EOF
Theodore Ts'ocdf186e2001-06-13 22:16:47 +0000993#line 994 "configure"
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000994#include "confdefs.h"
995#include <linux/fs.h>
996EOF
997ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +0000998{ (eval echo configure:999: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000999ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1000if test -z "$ac_err"; then
1001 rm -rf conftest*
1002 eval "ac_cv_header_$ac_safe=yes"
1003else
1004 echo "$ac_err" >&5
1005 echo "configure: failed program was:" >&5
1006 cat conftest.$ac_ext >&5
1007 rm -rf conftest*
1008 eval "ac_cv_header_$ac_safe=no"
1009fi
1010rm -f conftest*
1011fi
1012if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1013 echo "$ac_t""yes" 1>&6
1014 linux_headers=yes
1015else
1016 echo "$ac_t""no" 1>&6
1017linux_headers=no
1018fi
1019
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001020if test "$linux_headers" != yes; then
1021 LINUX_INCLUDE='-I$(top_builddir)/include'
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001022fi
1023
Theodore Ts'oa4d09611997-04-29 14:28:00 +00001024LIB_EXT=.a
1025STATIC_LIB_EXT=.a
1026PROFILE_LIB_EXT=.a
Theodore Ts'o74becf31997-04-26 14:37:06 +00001027# Check whether --with-ldopts or --without-ldopts was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001028if test "${with_ldopts+set}" = set; then
1029 withval="$with_ldopts"
Theodore Ts'o74becf31997-04-26 14:37:06 +00001030 echo "$ac_t""LDFLAGS is $withval" 1>&6
1031LDFLAGS=$withval
1032else
1033 LDFLAGS=
1034fi
1035
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00001036# Check whether --with-root-prefix or --without-root-prefix was given.
1037if test "${with_root_prefix+set}" = set; then
1038 withval="$with_root_prefix"
1039 root_prefix=$withval
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001040else
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00001041 root_prefix=NONE
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001042fi
Theodore Ts'o19178752000-02-11 15:55:07 +00001043# Check whether --enable-compression or --disable-compression was given.
1044if test "${enable_compression+set}" = set; then
1045 enableval="$enable_compression"
1046 if test "$enableval" = "no"
1047then
1048 echo "Disabling compression support"
1049else
1050 cat >> confdefs.h <<\EOF
1051#define ENABLE_COMPRESSION 1
1052EOF
1053
1054 echo "Enabling compression support"
1055 echo "WARNING: Compression support is experimental"
1056fi
1057
1058else
1059 echo "Disabling compression support by default"
1060
1061fi
1062
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001063# Check whether --enable-dll-shlibs or --disable-dll-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001064if test "${enable_dll_shlibs+set}" = set; then
1065 enableval="$enable_dll_shlibs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001066 if test "$enableval" = "no"
1067then
1068 DLL_CMT=#
1069 MAKEFILE_DLL=/dev/null
1070 echo "Disabling DLL shared libraries"
1071else
1072 DLL_CMT=
1073 MAKEFILE_DLL=$srcdir/lib/Makefile.dll-lib
Theodore Ts'o74becf31997-04-26 14:37:06 +00001074 BINARY_TYPE=dllbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00001075 LIB_EXT=.sa
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001076 echo "Enabling DLL shared libraries"
1077fi
1078
1079else
1080 MAKEFILE_DLL=/dev/null
1081DLL_CMT=#
1082echo "Disabling DLL shared libraries by default"
1083
1084fi
1085
1086
1087
1088# Check whether --enable-elf-shlibs or --disable-elf-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001089if test "${enable_elf_shlibs+set}" = set; then
1090 enableval="$enable_elf_shlibs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001091 if test "$enableval" = "no"
1092then
1093 ELF_CMT=#
1094 MAKEFILE_ELF=/dev/null
1095 echo "Disabling ELF shared libraries"
1096else
1097 ELF_CMT=
1098 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
Theodore Ts'of5955dd2000-10-25 02:38:39 +00001099 case "$host_os" in
1100 solaris2.*)
1101 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
1102 ;;
1103 esac
Theodore Ts'o74becf31997-04-26 14:37:06 +00001104 BINARY_TYPE=elfbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00001105 LIB_EXT=.so
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001106 echo "Enabling ELF shared libraries"
1107fi
1108
1109else
1110 MAKEFILE_ELF=/dev/null
1111ELF_CMT=#
1112echo "Disabling ELF shared libraries by default"
1113
1114fi
1115
1116
1117
1118# Check whether --enable-bsd-shlibs or --disable-bsd-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001119if test "${enable_bsd_shlibs+set}" = set; then
1120 enableval="$enable_bsd_shlibs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001121 if test "$enableval" = "no"
1122then
1123 BSDLIB_CMT=#
1124 MAKEFILE_BSDLIB=/dev/null
1125 echo "Disabling BSD shared libraries"
1126else
1127 BSDLIB_CMT=
1128 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
Theodore Ts'oa4d09611997-04-29 14:28:00 +00001129 LIB_EXT=.so
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001130 echo "Enabling BSD shared libraries"
1131fi
1132
1133else
1134 MAKEFILE_BSDLIB=/dev/null
1135BSDLIB_CMT=#
1136echo "Disabling BSD shared libraries by default"
1137
1138fi
1139
1140
1141
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001142# Check whether --enable-profile or --disable-profile was given.
1143if test "${enable_profile+set}" = set; then
1144 enableval="$enable_profile"
1145 if test "$enableval" = "no"
1146then
1147 PROFILE_CMT=#
1148 MAKEFILE_PROFILE=/dev/null
1149 echo "Disabling profiling libraries"
1150else
1151 PROFILE_CMT=
1152 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
1153 PROFILED_LIB_EXT=_p.a
1154 echo "Building profiling libraries"
1155fi
1156
1157else
1158 PROFILE_CMT=#
1159MAKEFILE_PROFILE=/dev/null
1160echo "Disabling profiling libraries by default"
1161
1162fi
1163
1164
1165
1166# Check whether --enable-checker or --disable-checker was given.
1167if test "${enable_checker+set}" = set; then
1168 enableval="$enable_checker"
1169 if test "$enableval" = "no"
1170then
1171 CHECKER_CMT=#
1172 MAKEFILE_CHECKER=/dev/null
1173 echo "Disabling checker libraries"
1174else
1175 CHECKER_CMT=
1176 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
1177 echo "Building checker libraries"
1178fi
1179
1180else
1181 CHECKER_CMT=#
1182MAKEFILE_CHECKER=/dev/null
1183echo "Disabling checker libraries by default"
1184
1185fi
1186
1187
1188
1189
1190
1191
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00001192# Check whether --enable-jfs-debug or --disable-jfs-debug was given.
1193if test "${enable_jfs_debug+set}" = set; then
1194 enableval="$enable_jfs_debug"
1195 if test "$enableval" = "no"
1196then
1197 echo "Disabling journal debugging"
1198else
1199 cat >> confdefs.h <<\EOF
1200#define JFS_DEBUG 1
1201EOF
1202
1203 echo "Enabling journal debugging"
1204fi
1205
1206else
1207 echo "Disabling journal debugging by default"
1208
1209fi
1210
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001211# Check whether --enable-swapfs or --disable-swapfs was given.
1212if test "${enable_swapfs+set}" = set; then
1213 enableval="$enable_swapfs"
1214 if test "$enableval" = "no"
1215then
1216 echo "Disabling swapfs support"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001217else
1218 cat >> confdefs.h <<\EOF
1219#define ENABLE_SWAPFS 1
1220EOF
1221
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001222 echo "Enabling swapfs support"
1223fi
1224
1225else
1226 echo "Enabling swapfs support by default"
1227cat >> confdefs.h <<\EOF
1228#define ENABLE_SWAPFS 1
1229EOF
1230
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001231
1232fi
1233
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001234# Check whether --enable-debugfs or --disable-debugfs was given.
1235if test "${enable_debugfs+set}" = set; then
1236 enableval="$enable_debugfs"
1237 if test "$enableval" = "no"
1238then
1239 echo "Disabling debugfs support"
1240 DEBUGFS_CMT="#"
1241else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001242 DEBUGFS_CMT=
1243 echo "Enabling debugfs support"
1244fi
1245
1246else
1247 echo "Enabling debugfs support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001248DEBUGFS_CMT=
1249
1250fi
1251
1252
1253# Check whether --enable-imager or --disable-imager was given.
1254if test "${enable_imager+set}" = set; then
1255 enableval="$enable_imager"
1256 if test "$enableval" = "no"
1257then
1258 echo "Disabling e2image support"
1259 IMAGER_CMT="#"
1260else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001261 IMAGER_CMT=
1262 echo "Enabling e2image support"
1263fi
1264
1265else
1266 echo "Enabling e2image support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001267IMAGER_CMT=
1268
1269fi
1270
1271
1272# Check whether --enable-resizer or --disable-resizer was given.
1273if test "${enable_resizer+set}" = set; then
1274 enableval="$enable_resizer"
1275 if test "$enableval" = "no"
1276then
1277 echo "Disabling e2resize support"
1278 RESIZER_CMT="#"
1279else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001280 RESIZER_CMT=
1281 echo "Enabling e2resize support"
1282fi
1283
1284else
1285 echo "Enabling e2resize support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001286RESIZER_CMT=
1287
1288fi
1289
1290
1291# Check whether --enable-dynamic-e2fsck or --disable-dynamic-e2fsck was given.
1292if test "${enable_dynamic_e2fsck+set}" = set; then
1293 enableval="$enable_dynamic_e2fsck"
1294 if test "$enableval" = "no"
1295then
1296 E2FSCK_TYPE=static
1297 echo "Building e2fsck statically"
1298else
1299 E2FSCK_TYPE=shared
1300 echo "Building e2fsck dynamically"
1301fi
1302
1303else
1304 E2FSCK_TYPE=static
1305echo "Building e2fsck statically by default"
1306
1307fi
1308
1309
1310# Check whether --enable-fsck or --disable-fsck was given.
1311if test "${enable_fsck+set}" = set; then
1312 enableval="$enable_fsck"
1313 if test "$enableval" = "no"
1314then
1315 FSCK_PROG='' FSCK_MAN=''
1316 echo "Not building fsck wrapper"
1317else
1318 FSCK_PROG=fsck FSCK_MAN=fsck.8
1319 echo "Building fsck wrapper"
1320fi
1321
1322else
1323 case "$host_os" in
1324 gnu*)
1325 FSCK_PROG='' FSCK_MAN=''
1326 echo "Not building fsck wrapper by default"
1327 ;;
1328 *)
1329 FSCK_PROG=fsck FSCK_MAN=fsck.8
1330 echo "Building fsck wrapper by default"
1331esac
1332
1333fi
1334
1335
1336
1337MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
1338
1339# Check whether --enable-old-bitops or --disable-old-bitops was given.
1340if test "${enable_old_bitops+set}" = set; then
1341 enableval="$enable_old_bitops"
1342 if test "$enableval" = "no"
1343then
1344 echo "Using new (standard) bitmask operations"
1345else
1346 cat >> confdefs.h <<\EOF
1347#define EXT2_OLD_BITOPS 1
1348EOF
1349
1350 echo "Using old (native) bitmask operations"
1351
1352fi
1353
1354else
1355 echo "Using standard bitmask operations by default"
1356
1357fi
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001358
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001359PACKAGE=e2fsprogs
1360VERSION="$E2FSPROGS_VERSION"
1361cat >> confdefs.h <<EOF
1362#define PACKAGE "$PACKAGE"
1363EOF
1364
1365cat >> confdefs.h <<EOF
1366#define VERSION "$VERSION"
1367EOF
1368
1369
1370
1371
Theodore Ts'o19178752000-02-11 15:55:07 +00001372ALL_LINGUAS="it nyc"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001373echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00001374echo "configure:1375: checking whether ${MAKE-make} sets \${MAKE}" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001375set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1376if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1377 echo $ac_n "(cached) $ac_c" 1>&6
1378else
1379 cat > conftestmake <<\EOF
1380all:
1381 @echo 'ac_maketemp="${MAKE}"'
1382EOF
1383# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1384eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1385if test -n "$ac_maketemp"; then
1386 eval ac_cv_prog_make_${ac_make}_set=yes
1387else
1388 eval ac_cv_prog_make_${ac_make}_set=no
1389fi
1390rm -f conftestmake
1391fi
1392if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1393 echo "$ac_t""yes" 1>&6
1394 SET_MAKE=
1395else
1396 echo "$ac_t""no" 1>&6
1397 SET_MAKE="MAKE=${MAKE-make}"
1398fi
1399
1400# Extract the first word of "ranlib", so it can be a program name with args.
1401set dummy ranlib; ac_word=$2
1402echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00001403echo "configure:1404: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001404if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1405 echo $ac_n "(cached) $ac_c" 1>&6
1406else
1407 if test -n "$RANLIB"; then
1408 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1409else
1410 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1411 ac_dummy="$PATH"
1412 for ac_dir in $ac_dummy; do
1413 test -z "$ac_dir" && ac_dir=.
1414 if test -f $ac_dir/$ac_word; then
1415 ac_cv_prog_RANLIB="ranlib"
1416 break
1417 fi
1418 done
1419 IFS="$ac_save_ifs"
1420 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1421fi
1422fi
1423RANLIB="$ac_cv_prog_RANLIB"
1424if test -n "$RANLIB"; then
1425 echo "$ac_t""$RANLIB" 1>&6
1426else
1427 echo "$ac_t""no" 1>&6
1428fi
1429
1430echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00001431echo "configure:1432: checking for POSIXized ISC" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001432if test -d /etc/conf/kconfig.d &&
1433 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1434then
1435 echo "$ac_t""yes" 1>&6
1436 ISC=yes # If later tests want to check for ISC.
1437 cat >> confdefs.h <<\EOF
1438#define _POSIX_SOURCE 1
1439EOF
1440
1441 if test "$GCC" = yes; then
1442 CC="$CC -posix"
1443 else
1444 CC="$CC -Xp"
1445 fi
1446else
1447 echo "$ac_t""no" 1>&6
1448 ISC=
1449fi
1450
1451echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00001452echo "configure:1453: checking for ANSI C header files" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001453if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1454 echo $ac_n "(cached) $ac_c" 1>&6
1455else
1456 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00001457#line 1458 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001458#include "confdefs.h"
1459#include <stdlib.h>
1460#include <stdarg.h>
1461#include <string.h>
1462#include <float.h>
1463EOF
1464ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00001465{ (eval echo configure:1466: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001466ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1467if test -z "$ac_err"; then
1468 rm -rf conftest*
1469 ac_cv_header_stdc=yes
1470else
1471 echo "$ac_err" >&5
1472 echo "configure: failed program was:" >&5
1473 cat conftest.$ac_ext >&5
1474 rm -rf conftest*
1475 ac_cv_header_stdc=no
1476fi
1477rm -f conftest*
1478
1479if test $ac_cv_header_stdc = yes; then
1480 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1481cat > conftest.$ac_ext <<EOF
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00001482#line 1483 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001483#include "confdefs.h"
1484#include <string.h>
1485EOF
1486if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1487 egrep "memchr" >/dev/null 2>&1; then
1488 :
1489else
1490 rm -rf conftest*
1491 ac_cv_header_stdc=no
1492fi
1493rm -f conftest*
1494
1495fi
1496
1497if test $ac_cv_header_stdc = yes; then
1498 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1499cat > conftest.$ac_ext <<EOF
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00001500#line 1501 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001501#include "confdefs.h"
1502#include <stdlib.h>
1503EOF
1504if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1505 egrep "free" >/dev/null 2>&1; then
1506 :
1507else
1508 rm -rf conftest*
1509 ac_cv_header_stdc=no
1510fi
1511rm -f conftest*
1512
1513fi
1514
1515if test $ac_cv_header_stdc = yes; then
1516 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1517if test "$cross_compiling" = yes; then
1518 :
1519else
1520 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00001521#line 1522 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001522#include "confdefs.h"
1523#include <ctype.h>
1524#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1525#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1526#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1527int main () { int i; for (i = 0; i < 256; i++)
1528if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1529exit (0); }
1530
1531EOF
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00001532if { (eval echo configure:1533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001533then
1534 :
1535else
1536 echo "configure: failed program was:" >&5
1537 cat conftest.$ac_ext >&5
1538 rm -fr conftest*
1539 ac_cv_header_stdc=no
1540fi
1541rm -fr conftest*
1542fi
1543
1544fi
1545fi
1546
1547echo "$ac_t""$ac_cv_header_stdc" 1>&6
1548if test $ac_cv_header_stdc = yes; then
1549 cat >> confdefs.h <<\EOF
1550#define STDC_HEADERS 1
1551EOF
1552
1553fi
1554
1555echo $ac_n "checking for working const""... $ac_c" 1>&6
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00001556echo "configure:1557: checking for working const" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001557if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1558 echo $ac_n "(cached) $ac_c" 1>&6
1559else
1560 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00001561#line 1562 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001562#include "confdefs.h"
1563
1564int main() {
1565
1566/* Ultrix mips cc rejects this. */
Theodore Ts'o250f79f2001-05-19 22:02:22 +00001567typedef int charset[2]; const charset x;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001568/* SunOS 4.1.1 cc rejects this. */
1569char const *const *ccp;
1570char **p;
1571/* NEC SVR4.0.2 mips cc rejects this. */
1572struct point {int x, y;};
1573static struct point const zero = {0,0};
1574/* AIX XL C 1.02.0.0 rejects this.
1575 It does not let you subtract one const X* pointer from another in an arm
1576 of an if-expression whose if-part is not a constant expression */
1577const char *g = "string";
1578ccp = &g + (g ? g-g : 0);
1579/* HPUX 7.0 cc rejects these. */
1580++ccp;
1581p = (char**) ccp;
1582ccp = (char const *const *) p;
1583{ /* SCO 3.2v4 cc rejects this. */
1584 char *t;
1585 char const *s = 0 ? (char *) 0 : (char const *) 0;
1586
1587 *t++ = 0;
1588}
1589{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1590 int x[] = {25, 17};
1591 const int *foo = &x[0];
1592 ++foo;
1593}
1594{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1595 typedef const int *iptr;
1596 iptr p = 0;
1597 ++p;
1598}
1599{ /* AIX XL C 1.02.0.0 rejects this saying
1600 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1601 struct s { int j; const int *ap[3]; };
1602 struct s *b; b->j = 5;
1603}
1604{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1605 const int foo = 10;
1606}
1607
1608; return 0; }
1609EOF
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00001610if { (eval echo configure:1611: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001611 rm -rf conftest*
1612 ac_cv_c_const=yes
1613else
1614 echo "configure: failed program was:" >&5
1615 cat conftest.$ac_ext >&5
1616 rm -rf conftest*
1617 ac_cv_c_const=no
1618fi
1619rm -f conftest*
1620fi
1621
1622echo "$ac_t""$ac_cv_c_const" 1>&6
1623if test $ac_cv_c_const = no; then
1624 cat >> confdefs.h <<\EOF
1625#define const
1626EOF
1627
1628fi
1629
1630echo $ac_n "checking for inline""... $ac_c" 1>&6
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00001631echo "configure:1632: checking for inline" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001632if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1633 echo $ac_n "(cached) $ac_c" 1>&6
1634else
1635 ac_cv_c_inline=no
1636for ac_kw in inline __inline__ __inline; do
1637 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00001638#line 1639 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001639#include "confdefs.h"
1640
1641int main() {
Theodore Ts'o250f79f2001-05-19 22:02:22 +00001642} $ac_kw foo() {
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001643; return 0; }
1644EOF
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00001645if { (eval echo configure:1646: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001646 rm -rf conftest*
1647 ac_cv_c_inline=$ac_kw; break
1648else
1649 echo "configure: failed program was:" >&5
1650 cat conftest.$ac_ext >&5
1651fi
1652rm -f conftest*
1653done
1654
1655fi
1656
1657echo "$ac_t""$ac_cv_c_inline" 1>&6
1658case "$ac_cv_c_inline" in
1659 inline | yes) ;;
1660 no) cat >> confdefs.h <<\EOF
1661#define inline
1662EOF
1663 ;;
1664 *) cat >> confdefs.h <<EOF
1665#define inline $ac_cv_c_inline
1666EOF
1667 ;;
1668esac
1669
1670echo $ac_n "checking for off_t""... $ac_c" 1>&6
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00001671echo "configure:1672: checking for off_t" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001672if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1673 echo $ac_n "(cached) $ac_c" 1>&6
1674else
1675 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00001676#line 1677 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001677#include "confdefs.h"
1678#include <sys/types.h>
1679#if STDC_HEADERS
1680#include <stdlib.h>
1681#include <stddef.h>
1682#endif
1683EOF
1684if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1685 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1686 rm -rf conftest*
1687 ac_cv_type_off_t=yes
1688else
1689 rm -rf conftest*
1690 ac_cv_type_off_t=no
1691fi
1692rm -f conftest*
1693
1694fi
1695echo "$ac_t""$ac_cv_type_off_t" 1>&6
1696if test $ac_cv_type_off_t = no; then
1697 cat >> confdefs.h <<\EOF
1698#define off_t long
1699EOF
1700
1701fi
1702
1703echo $ac_n "checking for size_t""... $ac_c" 1>&6
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00001704echo "configure:1705: checking for size_t" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001705if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1706 echo $ac_n "(cached) $ac_c" 1>&6
1707else
1708 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00001709#line 1710 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001710#include "confdefs.h"
1711#include <sys/types.h>
1712#if STDC_HEADERS
1713#include <stdlib.h>
1714#include <stddef.h>
1715#endif
1716EOF
1717if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1718 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1719 rm -rf conftest*
1720 ac_cv_type_size_t=yes
1721else
1722 rm -rf conftest*
1723 ac_cv_type_size_t=no
1724fi
1725rm -f conftest*
1726
1727fi
1728echo "$ac_t""$ac_cv_type_size_t" 1>&6
1729if test $ac_cv_type_size_t = no; then
1730 cat >> confdefs.h <<\EOF
1731#define size_t unsigned
1732EOF
1733
1734fi
1735
1736# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1737# for constant arguments. Useless!
1738echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00001739echo "configure:1740: checking for working alloca.h" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001740if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1741 echo $ac_n "(cached) $ac_c" 1>&6
1742else
1743 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00001744#line 1745 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001745#include "confdefs.h"
1746#include <alloca.h>
1747int main() {
Theodore Ts'o250f79f2001-05-19 22:02:22 +00001748char *p = alloca(2 * sizeof(int));
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001749; return 0; }
1750EOF
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00001751if { (eval echo configure:1752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001752 rm -rf conftest*
1753 ac_cv_header_alloca_h=yes
1754else
1755 echo "configure: failed program was:" >&5
1756 cat conftest.$ac_ext >&5
1757 rm -rf conftest*
1758 ac_cv_header_alloca_h=no
1759fi
1760rm -f conftest*
1761fi
1762
1763echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1764if test $ac_cv_header_alloca_h = yes; then
1765 cat >> confdefs.h <<\EOF
1766#define HAVE_ALLOCA_H 1
1767EOF
1768
1769fi
1770
1771echo $ac_n "checking for alloca""... $ac_c" 1>&6
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00001772echo "configure:1773: checking for alloca" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001773if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1774 echo $ac_n "(cached) $ac_c" 1>&6
1775else
1776 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00001777#line 1778 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001778#include "confdefs.h"
1779
1780#ifdef __GNUC__
1781# define alloca __builtin_alloca
1782#else
1783# ifdef _MSC_VER
1784# include <malloc.h>
1785# define alloca _alloca
1786# else
1787# if HAVE_ALLOCA_H
1788# include <alloca.h>
1789# else
1790# ifdef _AIX
1791 #pragma alloca
1792# else
1793# ifndef alloca /* predefined by HP cc +Olibcalls */
1794char *alloca ();
1795# endif
1796# endif
1797# endif
1798# endif
1799#endif
1800
1801int main() {
1802char *p = (char *) alloca(1);
1803; return 0; }
1804EOF
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00001805if { (eval echo configure:1806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001806 rm -rf conftest*
1807 ac_cv_func_alloca_works=yes
1808else
1809 echo "configure: failed program was:" >&5
1810 cat conftest.$ac_ext >&5
1811 rm -rf conftest*
1812 ac_cv_func_alloca_works=no
1813fi
1814rm -f conftest*
1815fi
1816
1817echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1818if test $ac_cv_func_alloca_works = yes; then
1819 cat >> confdefs.h <<\EOF
1820#define HAVE_ALLOCA 1
1821EOF
1822
1823fi
1824
1825if test $ac_cv_func_alloca_works = no; then
1826 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1827 # that cause trouble. Some versions do not even contain alloca or
1828 # contain a buggy version. If you still want to use their alloca,
1829 # use ar to extract alloca.o from them instead of compiling alloca.c.
1830 ALLOCA=alloca.${ac_objext}
1831 cat >> confdefs.h <<\EOF
1832#define C_ALLOCA 1
1833EOF
1834
1835
1836echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00001837echo "configure:1838: checking whether alloca needs Cray hooks" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001838if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1839 echo $ac_n "(cached) $ac_c" 1>&6
1840else
1841 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00001842#line 1843 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001843#include "confdefs.h"
1844#if defined(CRAY) && ! defined(CRAY2)
1845webecray
1846#else
1847wenotbecray
1848#endif
1849
1850EOF
1851if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1852 egrep "webecray" >/dev/null 2>&1; then
1853 rm -rf conftest*
1854 ac_cv_os_cray=yes
1855else
1856 rm -rf conftest*
1857 ac_cv_os_cray=no
1858fi
1859rm -f conftest*
1860
1861fi
1862
1863echo "$ac_t""$ac_cv_os_cray" 1>&6
1864if test $ac_cv_os_cray = yes; then
1865for ac_func in _getb67 GETB67 getb67; do
1866 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00001867echo "configure:1868: checking for $ac_func" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001868if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1869 echo $ac_n "(cached) $ac_c" 1>&6
1870else
1871 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00001872#line 1873 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001873#include "confdefs.h"
1874/* System header to define __stub macros and hopefully few prototypes,
1875 which can conflict with char $ac_func(); below. */
1876#include <assert.h>
1877/* Override any gcc2 internal prototype to avoid an error. */
1878/* We use char because int might match the return type of a gcc2
1879 builtin and then its argument prototype would still apply. */
1880char $ac_func();
1881
1882int main() {
1883
1884/* The GNU C library defines this for functions which it implements
1885 to always fail with ENOSYS. Some functions are actually named
1886 something starting with __ and the normal name is an alias. */
1887#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1888choke me
1889#else
1890$ac_func();
1891#endif
1892
1893; return 0; }
1894EOF
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00001895if { (eval echo configure:1896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001896 rm -rf conftest*
1897 eval "ac_cv_func_$ac_func=yes"
1898else
1899 echo "configure: failed program was:" >&5
1900 cat conftest.$ac_ext >&5
1901 rm -rf conftest*
1902 eval "ac_cv_func_$ac_func=no"
1903fi
1904rm -f conftest*
1905fi
1906
1907if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1908 echo "$ac_t""yes" 1>&6
1909 cat >> confdefs.h <<EOF
1910#define CRAY_STACKSEG_END $ac_func
1911EOF
1912
1913 break
1914else
1915 echo "$ac_t""no" 1>&6
1916fi
1917
1918done
1919fi
1920
1921echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00001922echo "configure:1923: checking stack direction for C alloca" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001923if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1924 echo $ac_n "(cached) $ac_c" 1>&6
1925else
1926 if test "$cross_compiling" = yes; then
1927 ac_cv_c_stack_direction=0
1928else
1929 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00001930#line 1931 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001931#include "confdefs.h"
1932find_stack_direction ()
1933{
1934 static char *addr = 0;
1935 auto char dummy;
1936 if (addr == 0)
1937 {
1938 addr = &dummy;
1939 return find_stack_direction ();
1940 }
1941 else
1942 return (&dummy > addr) ? 1 : -1;
1943}
1944main ()
1945{
1946 exit (find_stack_direction() < 0);
1947}
1948EOF
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00001949if { (eval echo configure:1950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001950then
1951 ac_cv_c_stack_direction=1
1952else
1953 echo "configure: failed program was:" >&5
1954 cat conftest.$ac_ext >&5
1955 rm -fr conftest*
1956 ac_cv_c_stack_direction=-1
1957fi
1958rm -fr conftest*
1959fi
1960
1961fi
1962
1963echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1964cat >> confdefs.h <<EOF
1965#define STACK_DIRECTION $ac_cv_c_stack_direction
1966EOF
1967
1968fi
1969
1970for ac_hdr in unistd.h
1971do
1972ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1973echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00001974echo "configure:1975: checking for $ac_hdr" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001975if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1976 echo $ac_n "(cached) $ac_c" 1>&6
1977else
1978 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00001979#line 1980 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001980#include "confdefs.h"
1981#include <$ac_hdr>
1982EOF
1983ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00001984{ (eval echo configure:1985: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001985ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1986if test -z "$ac_err"; then
1987 rm -rf conftest*
1988 eval "ac_cv_header_$ac_safe=yes"
1989else
1990 echo "$ac_err" >&5
1991 echo "configure: failed program was:" >&5
1992 cat conftest.$ac_ext >&5
1993 rm -rf conftest*
1994 eval "ac_cv_header_$ac_safe=no"
1995fi
1996rm -f conftest*
1997fi
1998if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1999 echo "$ac_t""yes" 1>&6
2000 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2001 cat >> confdefs.h <<EOF
2002#define $ac_tr_hdr 1
2003EOF
2004
2005else
2006 echo "$ac_t""no" 1>&6
2007fi
2008done
2009
2010for ac_func in getpagesize
2011do
2012echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00002013echo "configure:2014: checking for $ac_func" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002014if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2015 echo $ac_n "(cached) $ac_c" 1>&6
2016else
2017 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00002018#line 2019 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002019#include "confdefs.h"
2020/* System header to define __stub macros and hopefully few prototypes,
2021 which can conflict with char $ac_func(); below. */
2022#include <assert.h>
2023/* Override any gcc2 internal prototype to avoid an error. */
2024/* We use char because int might match the return type of a gcc2
2025 builtin and then its argument prototype would still apply. */
2026char $ac_func();
2027
2028int main() {
2029
2030/* The GNU C library defines this for functions which it implements
2031 to always fail with ENOSYS. Some functions are actually named
2032 something starting with __ and the normal name is an alias. */
2033#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2034choke me
2035#else
2036$ac_func();
2037#endif
2038
2039; return 0; }
2040EOF
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00002041if { (eval echo configure:2042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002042 rm -rf conftest*
2043 eval "ac_cv_func_$ac_func=yes"
2044else
2045 echo "configure: failed program was:" >&5
2046 cat conftest.$ac_ext >&5
2047 rm -rf conftest*
2048 eval "ac_cv_func_$ac_func=no"
2049fi
2050rm -f conftest*
2051fi
2052
2053if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2054 echo "$ac_t""yes" 1>&6
2055 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2056 cat >> confdefs.h <<EOF
2057#define $ac_tr_func 1
2058EOF
2059
2060else
2061 echo "$ac_t""no" 1>&6
2062fi
2063done
2064
2065echo $ac_n "checking for working mmap""... $ac_c" 1>&6
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00002066echo "configure:2067: checking for working mmap" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002067if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2068 echo $ac_n "(cached) $ac_c" 1>&6
2069else
2070 if test "$cross_compiling" = yes; then
2071 ac_cv_func_mmap_fixed_mapped=no
2072else
2073 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00002074#line 2075 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002075#include "confdefs.h"
2076
2077/* Thanks to Mike Haertel and Jim Avera for this test.
2078 Here is a matrix of mmap possibilities:
2079 mmap private not fixed
2080 mmap private fixed at somewhere currently unmapped
2081 mmap private fixed at somewhere already mapped
2082 mmap shared not fixed
2083 mmap shared fixed at somewhere currently unmapped
2084 mmap shared fixed at somewhere already mapped
2085 For private mappings, we should verify that changes cannot be read()
2086 back from the file, nor mmap's back from the file at a different
2087 address. (There have been systems where private was not correctly
2088 implemented like the infamous i386 svr4.0, and systems where the
2089 VM page cache was not coherent with the filesystem buffer cache
2090 like early versions of FreeBSD and possibly contemporary NetBSD.)
2091 For shared mappings, we should conversely verify that changes get
2092 propogated back to all the places they're supposed to be.
2093
2094 Grep wants private fixed already mapped.
2095 The main things grep needs to know about mmap are:
2096 * does it exist and is it safe to write into the mmap'd area
2097 * how to use it (BSD variants) */
2098#include <sys/types.h>
2099#include <fcntl.h>
2100#include <sys/mman.h>
2101
2102/* This mess was copied from the GNU getpagesize.h. */
2103#ifndef HAVE_GETPAGESIZE
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002104# ifdef HAVE_UNISTD_H
2105# include <unistd.h>
2106# endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002107
2108/* Assume that all systems that can run configure have sys/param.h. */
2109# ifndef HAVE_SYS_PARAM_H
2110# define HAVE_SYS_PARAM_H 1
2111# endif
2112
2113# ifdef _SC_PAGESIZE
2114# define getpagesize() sysconf(_SC_PAGESIZE)
2115# else /* no _SC_PAGESIZE */
2116# ifdef HAVE_SYS_PARAM_H
2117# include <sys/param.h>
2118# ifdef EXEC_PAGESIZE
2119# define getpagesize() EXEC_PAGESIZE
2120# else /* no EXEC_PAGESIZE */
2121# ifdef NBPG
2122# define getpagesize() NBPG * CLSIZE
2123# ifndef CLSIZE
2124# define CLSIZE 1
2125# endif /* no CLSIZE */
2126# else /* no NBPG */
2127# ifdef NBPC
2128# define getpagesize() NBPC
2129# else /* no NBPC */
2130# ifdef PAGESIZE
2131# define getpagesize() PAGESIZE
2132# endif /* PAGESIZE */
2133# endif /* no NBPC */
2134# endif /* no NBPG */
2135# endif /* no EXEC_PAGESIZE */
2136# else /* no HAVE_SYS_PARAM_H */
2137# define getpagesize() 8192 /* punt totally */
2138# endif /* no HAVE_SYS_PARAM_H */
2139# endif /* no _SC_PAGESIZE */
2140
2141#endif /* no HAVE_GETPAGESIZE */
2142
2143#ifdef __cplusplus
2144extern "C" { void *malloc(unsigned); }
2145#else
2146char *malloc();
2147#endif
2148
2149int
2150main()
2151{
2152 char *data, *data2, *data3;
2153 int i, pagesize;
2154 int fd;
2155
2156 pagesize = getpagesize();
2157
2158 /*
2159 * First, make a file with some known garbage in it.
2160 */
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002161 data = malloc(pagesize);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002162 if (!data)
2163 exit(1);
2164 for (i = 0; i < pagesize; ++i)
2165 *(data + i) = rand();
2166 umask(0);
2167 fd = creat("conftestmmap", 0600);
2168 if (fd < 0)
2169 exit(1);
2170 if (write(fd, data, pagesize) != pagesize)
2171 exit(1);
2172 close(fd);
2173
2174 /*
2175 * Next, try to mmap the file at a fixed address which
2176 * already has something else allocated at it. If we can,
2177 * also make sure that we see the same garbage.
2178 */
2179 fd = open("conftestmmap", O_RDWR);
2180 if (fd < 0)
2181 exit(1);
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002182 data2 = malloc(2 * pagesize);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002183 if (!data2)
2184 exit(1);
2185 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2186 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2187 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2188 exit(1);
2189 for (i = 0; i < pagesize; ++i)
2190 if (*(data + i) != *(data2 + i))
2191 exit(1);
2192
2193 /*
2194 * Finally, make sure that changes to the mapped area
2195 * do not percolate back to the file as seen by read().
2196 * (This is a bug on some variants of i386 svr4.0.)
2197 */
2198 for (i = 0; i < pagesize; ++i)
2199 *(data2 + i) = *(data2 + i) + 1;
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002200 data3 = malloc(pagesize);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002201 if (!data3)
2202 exit(1);
2203 if (read(fd, data3, pagesize) != pagesize)
2204 exit(1);
2205 for (i = 0; i < pagesize; ++i)
2206 if (*(data + i) != *(data3 + i))
2207 exit(1);
2208 close(fd);
2209 unlink("conftestmmap");
2210 exit(0);
2211}
2212
2213EOF
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00002214if { (eval echo configure:2215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002215then
2216 ac_cv_func_mmap_fixed_mapped=yes
2217else
2218 echo "configure: failed program was:" >&5
2219 cat conftest.$ac_ext >&5
2220 rm -fr conftest*
2221 ac_cv_func_mmap_fixed_mapped=no
2222fi
2223rm -fr conftest*
2224fi
2225
2226fi
2227
2228echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2229if test $ac_cv_func_mmap_fixed_mapped = yes; then
2230 cat >> confdefs.h <<\EOF
2231#define HAVE_MMAP 1
2232EOF
2233
2234fi
2235
2236
2237 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2238unistd.h sys/param.h
2239do
2240ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2241echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00002242echo "configure:2243: checking for $ac_hdr" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002243if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2244 echo $ac_n "(cached) $ac_c" 1>&6
2245else
2246 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00002247#line 2248 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002248#include "confdefs.h"
2249#include <$ac_hdr>
2250EOF
2251ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00002252{ (eval echo configure:2253: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002253ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2254if test -z "$ac_err"; then
2255 rm -rf conftest*
2256 eval "ac_cv_header_$ac_safe=yes"
2257else
2258 echo "$ac_err" >&5
2259 echo "configure: failed program was:" >&5
2260 cat conftest.$ac_ext >&5
2261 rm -rf conftest*
2262 eval "ac_cv_header_$ac_safe=no"
2263fi
2264rm -f conftest*
2265fi
2266if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2267 echo "$ac_t""yes" 1>&6
2268 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2269 cat >> confdefs.h <<EOF
2270#define $ac_tr_hdr 1
2271EOF
2272
2273else
2274 echo "$ac_t""no" 1>&6
2275fi
2276done
2277
2278 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2279strdup __argz_count __argz_stringify __argz_next
2280do
2281echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00002282echo "configure:2283: checking for $ac_func" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002283if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2284 echo $ac_n "(cached) $ac_c" 1>&6
2285else
2286 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00002287#line 2288 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002288#include "confdefs.h"
2289/* System header to define __stub macros and hopefully few prototypes,
2290 which can conflict with char $ac_func(); below. */
2291#include <assert.h>
2292/* Override any gcc2 internal prototype to avoid an error. */
2293/* We use char because int might match the return type of a gcc2
2294 builtin and then its argument prototype would still apply. */
2295char $ac_func();
2296
2297int main() {
2298
2299/* The GNU C library defines this for functions which it implements
2300 to always fail with ENOSYS. Some functions are actually named
2301 something starting with __ and the normal name is an alias. */
2302#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2303choke me
2304#else
2305$ac_func();
2306#endif
2307
2308; return 0; }
2309EOF
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00002310if { (eval echo configure:2311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002311 rm -rf conftest*
2312 eval "ac_cv_func_$ac_func=yes"
2313else
2314 echo "configure: failed program was:" >&5
2315 cat conftest.$ac_ext >&5
2316 rm -rf conftest*
2317 eval "ac_cv_func_$ac_func=no"
2318fi
2319rm -f conftest*
2320fi
2321
2322if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2323 echo "$ac_t""yes" 1>&6
2324 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2325 cat >> confdefs.h <<EOF
2326#define $ac_tr_func 1
2327EOF
2328
2329else
2330 echo "$ac_t""no" 1>&6
2331fi
2332done
2333
2334
2335 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2336 for ac_func in stpcpy
2337do
2338echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00002339echo "configure:2340: checking for $ac_func" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002340if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2341 echo $ac_n "(cached) $ac_c" 1>&6
2342else
2343 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00002344#line 2345 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002345#include "confdefs.h"
2346/* System header to define __stub macros and hopefully few prototypes,
2347 which can conflict with char $ac_func(); below. */
2348#include <assert.h>
2349/* Override any gcc2 internal prototype to avoid an error. */
2350/* We use char because int might match the return type of a gcc2
2351 builtin and then its argument prototype would still apply. */
2352char $ac_func();
2353
2354int main() {
2355
2356/* The GNU C library defines this for functions which it implements
2357 to always fail with ENOSYS. Some functions are actually named
2358 something starting with __ and the normal name is an alias. */
2359#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2360choke me
2361#else
2362$ac_func();
2363#endif
2364
2365; return 0; }
2366EOF
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00002367if { (eval echo configure:2368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002368 rm -rf conftest*
2369 eval "ac_cv_func_$ac_func=yes"
2370else
2371 echo "configure: failed program was:" >&5
2372 cat conftest.$ac_ext >&5
2373 rm -rf conftest*
2374 eval "ac_cv_func_$ac_func=no"
2375fi
2376rm -f conftest*
2377fi
2378
2379if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2380 echo "$ac_t""yes" 1>&6
2381 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2382 cat >> confdefs.h <<EOF
2383#define $ac_tr_func 1
2384EOF
2385
2386else
2387 echo "$ac_t""no" 1>&6
2388fi
2389done
2390
2391 fi
2392 if test "${ac_cv_func_stpcpy}" = "yes"; then
2393 cat >> confdefs.h <<\EOF
2394#define HAVE_STPCPY 1
2395EOF
2396
2397 fi
2398
2399 if test $ac_cv_header_locale_h = yes; then
2400 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00002401echo "configure:2402: checking for LC_MESSAGES" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002402if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2403 echo $ac_n "(cached) $ac_c" 1>&6
2404else
2405 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00002406#line 2407 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002407#include "confdefs.h"
2408#include <locale.h>
2409int main() {
2410return LC_MESSAGES
2411; return 0; }
2412EOF
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00002413if { (eval echo configure:2414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002414 rm -rf conftest*
2415 am_cv_val_LC_MESSAGES=yes
2416else
2417 echo "configure: failed program was:" >&5
2418 cat conftest.$ac_ext >&5
2419 rm -rf conftest*
2420 am_cv_val_LC_MESSAGES=no
2421fi
2422rm -f conftest*
2423fi
2424
2425echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2426 if test $am_cv_val_LC_MESSAGES = yes; then
2427 cat >> confdefs.h <<\EOF
2428#define HAVE_LC_MESSAGES 1
2429EOF
2430
2431 fi
2432 fi
2433 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00002434echo "configure:2435: checking whether NLS is requested" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002435 # Check whether --enable-nls or --disable-nls was given.
2436if test "${enable_nls+set}" = set; then
2437 enableval="$enable_nls"
2438 USE_NLS=$enableval
2439else
2440 USE_NLS=no
2441fi
2442
2443 echo "$ac_t""$USE_NLS" 1>&6
2444
2445
2446 USE_INCLUDED_LIBINTL=no
2447
2448 if test "$USE_NLS" = "yes"; then
2449 cat >> confdefs.h <<\EOF
2450#define ENABLE_NLS 1
2451EOF
2452
2453 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00002454echo "configure:2455: checking whether included gettext is requested" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002455 # Check whether --with-included-gettext or --without-included-gettext was given.
2456if test "${with_included_gettext+set}" = set; then
2457 withval="$with_included_gettext"
2458 nls_cv_force_use_gnu_gettext=$withval
2459else
2460 nls_cv_force_use_gnu_gettext=no
2461fi
2462
2463 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2464
2465 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2466 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2467 nls_cv_header_intl=
2468 nls_cv_header_libgt=
2469 CATOBJEXT=NONE
2470
2471 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2472echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00002473echo "configure:2474: checking for libintl.h" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002474if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2475 echo $ac_n "(cached) $ac_c" 1>&6
2476else
2477 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00002478#line 2479 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002479#include "confdefs.h"
2480#include <libintl.h>
2481EOF
2482ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00002483{ (eval echo configure:2484: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002484ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2485if test -z "$ac_err"; then
2486 rm -rf conftest*
2487 eval "ac_cv_header_$ac_safe=yes"
2488else
2489 echo "$ac_err" >&5
2490 echo "configure: failed program was:" >&5
2491 cat conftest.$ac_ext >&5
2492 rm -rf conftest*
2493 eval "ac_cv_header_$ac_safe=no"
2494fi
2495rm -f conftest*
2496fi
2497if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2498 echo "$ac_t""yes" 1>&6
2499 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00002500echo "configure:2501: checking for gettext in libc" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002501if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2502 echo $ac_n "(cached) $ac_c" 1>&6
2503else
2504 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00002505#line 2506 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002506#include "confdefs.h"
2507#include <libintl.h>
2508int main() {
2509return (int) gettext ("")
2510; return 0; }
2511EOF
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00002512if { (eval echo configure:2513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002513 rm -rf conftest*
2514 gt_cv_func_gettext_libc=yes
2515else
2516 echo "configure: failed program was:" >&5
2517 cat conftest.$ac_ext >&5
2518 rm -rf conftest*
2519 gt_cv_func_gettext_libc=no
2520fi
2521rm -f conftest*
2522fi
2523
2524echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2525
2526 if test "$gt_cv_func_gettext_libc" != "yes"; then
2527 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00002528echo "configure:2529: checking for bindtextdomain in -lintl" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002529ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2530if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2531 echo $ac_n "(cached) $ac_c" 1>&6
2532else
2533 ac_save_LIBS="$LIBS"
2534LIBS="-lintl $LIBS"
2535cat > conftest.$ac_ext <<EOF
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00002536#line 2537 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002537#include "confdefs.h"
2538/* Override any gcc2 internal prototype to avoid an error. */
2539/* We use char because int might match the return type of a gcc2
2540 builtin and then its argument prototype would still apply. */
2541char bindtextdomain();
2542
2543int main() {
2544bindtextdomain()
2545; return 0; }
2546EOF
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00002547if { (eval echo configure:2548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002548 rm -rf conftest*
2549 eval "ac_cv_lib_$ac_lib_var=yes"
2550else
2551 echo "configure: failed program was:" >&5
2552 cat conftest.$ac_ext >&5
2553 rm -rf conftest*
2554 eval "ac_cv_lib_$ac_lib_var=no"
2555fi
2556rm -f conftest*
2557LIBS="$ac_save_LIBS"
2558
2559fi
2560if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2561 echo "$ac_t""yes" 1>&6
2562 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00002563echo "configure:2564: checking for gettext in libintl" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002564if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2565 echo $ac_n "(cached) $ac_c" 1>&6
2566else
2567 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00002568echo "configure:2569: checking for gettext in -lintl" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002569ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
2570if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2571 echo $ac_n "(cached) $ac_c" 1>&6
2572else
2573 ac_save_LIBS="$LIBS"
2574LIBS="-lintl $LIBS"
2575cat > conftest.$ac_ext <<EOF
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00002576#line 2577 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002577#include "confdefs.h"
2578/* Override any gcc2 internal prototype to avoid an error. */
2579/* We use char because int might match the return type of a gcc2
2580 builtin and then its argument prototype would still apply. */
2581char gettext();
2582
2583int main() {
2584gettext()
2585; return 0; }
2586EOF
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00002587if { (eval echo configure:2588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002588 rm -rf conftest*
2589 eval "ac_cv_lib_$ac_lib_var=yes"
2590else
2591 echo "configure: failed program was:" >&5
2592 cat conftest.$ac_ext >&5
2593 rm -rf conftest*
2594 eval "ac_cv_lib_$ac_lib_var=no"
2595fi
2596rm -f conftest*
2597LIBS="$ac_save_LIBS"
2598
2599fi
2600if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2601 echo "$ac_t""yes" 1>&6
2602 gt_cv_func_gettext_libintl=yes
2603else
2604 echo "$ac_t""no" 1>&6
2605gt_cv_func_gettext_libintl=no
2606fi
2607
2608fi
2609
2610echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2611else
2612 echo "$ac_t""no" 1>&6
2613fi
2614
2615 fi
2616
2617 if test "$gt_cv_func_gettext_libc" = "yes" \
2618 || test "$gt_cv_func_gettext_libintl" = "yes"; then
2619 cat >> confdefs.h <<\EOF
2620#define HAVE_GETTEXT 1
2621EOF
2622
2623 # Extract the first word of "msgfmt", so it can be a program name with args.
2624set dummy msgfmt; ac_word=$2
2625echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00002626echo "configure:2627: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002627if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2628 echo $ac_n "(cached) $ac_c" 1>&6
2629else
2630 case "$MSGFMT" in
2631 /*)
2632 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2633 ;;
2634 *)
2635 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2636 for ac_dir in $PATH; do
2637 test -z "$ac_dir" && ac_dir=.
2638 if test -f $ac_dir/$ac_word; then
2639 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2640 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2641 break
2642 fi
2643 fi
2644 done
2645 IFS="$ac_save_ifs"
2646 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
2647 ;;
2648esac
2649fi
2650MSGFMT="$ac_cv_path_MSGFMT"
2651if test -n "$MSGFMT"; then
2652 echo "$ac_t""$MSGFMT" 1>&6
2653else
2654 echo "$ac_t""no" 1>&6
2655fi
2656 if test "$MSGFMT" != "no"; then
2657 for ac_func in dcgettext
2658do
2659echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00002660echo "configure:2661: checking for $ac_func" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002661if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2662 echo $ac_n "(cached) $ac_c" 1>&6
2663else
2664 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00002665#line 2666 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002666#include "confdefs.h"
2667/* System header to define __stub macros and hopefully few prototypes,
2668 which can conflict with char $ac_func(); below. */
2669#include <assert.h>
2670/* Override any gcc2 internal prototype to avoid an error. */
2671/* We use char because int might match the return type of a gcc2
2672 builtin and then its argument prototype would still apply. */
2673char $ac_func();
2674
2675int main() {
2676
2677/* The GNU C library defines this for functions which it implements
2678 to always fail with ENOSYS. Some functions are actually named
2679 something starting with __ and the normal name is an alias. */
2680#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2681choke me
2682#else
2683$ac_func();
2684#endif
2685
2686; return 0; }
2687EOF
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00002688if { (eval echo configure:2689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002689 rm -rf conftest*
2690 eval "ac_cv_func_$ac_func=yes"
2691else
2692 echo "configure: failed program was:" >&5
2693 cat conftest.$ac_ext >&5
2694 rm -rf conftest*
2695 eval "ac_cv_func_$ac_func=no"
2696fi
2697rm -f conftest*
2698fi
2699
2700if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2701 echo "$ac_t""yes" 1>&6
2702 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2703 cat >> confdefs.h <<EOF
2704#define $ac_tr_func 1
2705EOF
2706
2707else
2708 echo "$ac_t""no" 1>&6
2709fi
2710done
2711
2712 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2713set dummy gmsgfmt; ac_word=$2
2714echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00002715echo "configure:2716: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002716if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2717 echo $ac_n "(cached) $ac_c" 1>&6
2718else
2719 case "$GMSGFMT" in
2720 /*)
2721 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2722 ;;
2723 ?:/*)
2724 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2725 ;;
2726 *)
2727 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2728 ac_dummy="$PATH"
2729 for ac_dir in $ac_dummy; do
2730 test -z "$ac_dir" && ac_dir=.
2731 if test -f $ac_dir/$ac_word; then
2732 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2733 break
2734 fi
2735 done
2736 IFS="$ac_save_ifs"
2737 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2738 ;;
2739esac
2740fi
2741GMSGFMT="$ac_cv_path_GMSGFMT"
2742if test -n "$GMSGFMT"; then
2743 echo "$ac_t""$GMSGFMT" 1>&6
2744else
2745 echo "$ac_t""no" 1>&6
2746fi
2747
2748 # Extract the first word of "xgettext", so it can be a program name with args.
2749set dummy xgettext; ac_word=$2
2750echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00002751echo "configure:2752: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002752if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2753 echo $ac_n "(cached) $ac_c" 1>&6
2754else
2755 case "$XGETTEXT" in
2756 /*)
2757 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2758 ;;
2759 *)
2760 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2761 for ac_dir in $PATH; do
2762 test -z "$ac_dir" && ac_dir=.
2763 if test -f $ac_dir/$ac_word; then
2764 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2765 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2766 break
2767 fi
2768 fi
2769 done
2770 IFS="$ac_save_ifs"
2771 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2772 ;;
2773esac
2774fi
2775XGETTEXT="$ac_cv_path_XGETTEXT"
2776if test -n "$XGETTEXT"; then
2777 echo "$ac_t""$XGETTEXT" 1>&6
2778else
2779 echo "$ac_t""no" 1>&6
2780fi
2781
2782 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00002783#line 2784 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002784#include "confdefs.h"
2785
2786int main() {
2787extern int _nl_msg_cat_cntr;
2788 return _nl_msg_cat_cntr
2789; return 0; }
2790EOF
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00002791if { (eval echo configure:2792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002792 rm -rf conftest*
2793 CATOBJEXT=.gmo
2794 DATADIRNAME=share
2795else
2796 echo "configure: failed program was:" >&5
2797 cat conftest.$ac_ext >&5
2798 rm -rf conftest*
2799 CATOBJEXT=.mo
2800 DATADIRNAME=lib
2801fi
2802rm -f conftest*
2803 INSTOBJEXT=.mo
2804 fi
2805 fi
2806
2807else
2808 echo "$ac_t""no" 1>&6
2809fi
2810
2811
2812 if test "$CATOBJEXT" = "NONE"; then
2813 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00002814echo "configure:2815: checking whether catgets can be used" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002815 # Check whether --with-catgets or --without-catgets was given.
2816if test "${with_catgets+set}" = set; then
2817 withval="$with_catgets"
2818 nls_cv_use_catgets=$withval
2819else
2820 nls_cv_use_catgets=no
2821fi
2822
2823 echo "$ac_t""$nls_cv_use_catgets" 1>&6
2824
2825 if test "$nls_cv_use_catgets" = "yes"; then
2826 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00002827echo "configure:2828: checking for main in -li" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002828ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'`
2829if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2830 echo $ac_n "(cached) $ac_c" 1>&6
2831else
2832 ac_save_LIBS="$LIBS"
2833LIBS="-li $LIBS"
2834cat > conftest.$ac_ext <<EOF
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00002835#line 2836 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002836#include "confdefs.h"
2837
2838int main() {
2839main()
2840; return 0; }
2841EOF
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00002842if { (eval echo configure:2843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002843 rm -rf conftest*
2844 eval "ac_cv_lib_$ac_lib_var=yes"
2845else
2846 echo "configure: failed program was:" >&5
2847 cat conftest.$ac_ext >&5
2848 rm -rf conftest*
2849 eval "ac_cv_lib_$ac_lib_var=no"
2850fi
2851rm -f conftest*
2852LIBS="$ac_save_LIBS"
2853
2854fi
2855if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2856 echo "$ac_t""yes" 1>&6
2857 ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2858 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2859 cat >> confdefs.h <<EOF
2860#define $ac_tr_lib 1
2861EOF
2862
2863 LIBS="-li $LIBS"
2864
2865else
2866 echo "$ac_t""no" 1>&6
2867fi
2868
2869 echo $ac_n "checking for catgets""... $ac_c" 1>&6
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00002870echo "configure:2871: checking for catgets" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002871if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
2872 echo $ac_n "(cached) $ac_c" 1>&6
2873else
2874 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00002875#line 2876 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002876#include "confdefs.h"
2877/* System header to define __stub macros and hopefully few prototypes,
2878 which can conflict with char catgets(); below. */
2879#include <assert.h>
2880/* Override any gcc2 internal prototype to avoid an error. */
2881/* We use char because int might match the return type of a gcc2
2882 builtin and then its argument prototype would still apply. */
2883char catgets();
2884
2885int main() {
2886
2887/* The GNU C library defines this for functions which it implements
2888 to always fail with ENOSYS. Some functions are actually named
2889 something starting with __ and the normal name is an alias. */
2890#if defined (__stub_catgets) || defined (__stub___catgets)
2891choke me
2892#else
2893catgets();
2894#endif
2895
2896; return 0; }
2897EOF
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00002898if { (eval echo configure:2899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002899 rm -rf conftest*
2900 eval "ac_cv_func_catgets=yes"
2901else
2902 echo "configure: failed program was:" >&5
2903 cat conftest.$ac_ext >&5
2904 rm -rf conftest*
2905 eval "ac_cv_func_catgets=no"
2906fi
2907rm -f conftest*
2908fi
2909
2910if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
2911 echo "$ac_t""yes" 1>&6
2912 cat >> confdefs.h <<\EOF
2913#define HAVE_CATGETS 1
2914EOF
2915
2916 INTLOBJS="\$(CATOBJS)"
2917 # Extract the first word of "gencat", so it can be a program name with args.
2918set dummy gencat; ac_word=$2
2919echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00002920echo "configure:2921: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002921if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
2922 echo $ac_n "(cached) $ac_c" 1>&6
2923else
2924 case "$GENCAT" in
2925 /*)
2926 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
2927 ;;
2928 ?:/*)
2929 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path.
2930 ;;
2931 *)
2932 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2933 ac_dummy="$PATH"
2934 for ac_dir in $ac_dummy; do
2935 test -z "$ac_dir" && ac_dir=.
2936 if test -f $ac_dir/$ac_word; then
2937 ac_cv_path_GENCAT="$ac_dir/$ac_word"
2938 break
2939 fi
2940 done
2941 IFS="$ac_save_ifs"
2942 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
2943 ;;
2944esac
2945fi
2946GENCAT="$ac_cv_path_GENCAT"
2947if test -n "$GENCAT"; then
2948 echo "$ac_t""$GENCAT" 1>&6
2949else
2950 echo "$ac_t""no" 1>&6
2951fi
2952 if test "$GENCAT" != "no"; then
2953 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2954set dummy gmsgfmt; ac_word=$2
2955echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00002956echo "configure:2957: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002957if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2958 echo $ac_n "(cached) $ac_c" 1>&6
2959else
2960 case "$GMSGFMT" in
2961 /*)
2962 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2963 ;;
2964 ?:/*)
2965 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2966 ;;
2967 *)
2968 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2969 ac_dummy="$PATH"
2970 for ac_dir in $ac_dummy; do
2971 test -z "$ac_dir" && ac_dir=.
2972 if test -f $ac_dir/$ac_word; then
2973 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2974 break
2975 fi
2976 done
2977 IFS="$ac_save_ifs"
2978 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
2979 ;;
2980esac
2981fi
2982GMSGFMT="$ac_cv_path_GMSGFMT"
2983if test -n "$GMSGFMT"; then
2984 echo "$ac_t""$GMSGFMT" 1>&6
2985else
2986 echo "$ac_t""no" 1>&6
2987fi
2988
2989 if test "$GMSGFMT" = "no"; then
2990 # Extract the first word of "msgfmt", so it can be a program name with args.
2991set dummy msgfmt; ac_word=$2
2992echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00002993echo "configure:2994: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002994if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2995 echo $ac_n "(cached) $ac_c" 1>&6
2996else
2997 case "$GMSGFMT" in
2998 /*)
2999 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3000 ;;
3001 *)
3002 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3003 for ac_dir in $PATH; do
3004 test -z "$ac_dir" && ac_dir=.
3005 if test -f $ac_dir/$ac_word; then
3006 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3007 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3008 break
3009 fi
3010 fi
3011 done
3012 IFS="$ac_save_ifs"
3013 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
3014 ;;
3015esac
3016fi
3017GMSGFMT="$ac_cv_path_GMSGFMT"
3018if test -n "$GMSGFMT"; then
3019 echo "$ac_t""$GMSGFMT" 1>&6
3020else
3021 echo "$ac_t""no" 1>&6
3022fi
3023
3024 fi
3025 # Extract the first word of "xgettext", so it can be a program name with args.
3026set dummy xgettext; ac_word=$2
3027echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00003028echo "configure:3029: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003029if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3030 echo $ac_n "(cached) $ac_c" 1>&6
3031else
3032 case "$XGETTEXT" in
3033 /*)
3034 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3035 ;;
3036 *)
3037 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3038 for ac_dir in $PATH; do
3039 test -z "$ac_dir" && ac_dir=.
3040 if test -f $ac_dir/$ac_word; then
3041 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3042 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3043 break
3044 fi
3045 fi
3046 done
3047 IFS="$ac_save_ifs"
3048 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3049 ;;
3050esac
3051fi
3052XGETTEXT="$ac_cv_path_XGETTEXT"
3053if test -n "$XGETTEXT"; then
3054 echo "$ac_t""$XGETTEXT" 1>&6
3055else
3056 echo "$ac_t""no" 1>&6
3057fi
3058
3059 USE_INCLUDED_LIBINTL=yes
3060 CATOBJEXT=.cat
3061 INSTOBJEXT=.cat
3062 DATADIRNAME=lib
3063 INTLDEPS='$(top_builddir)/intl/libintl.a'
3064 INTLLIBS=$INTLDEPS
3065 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
3066 nls_cv_header_intl=intl/libintl.h
3067 nls_cv_header_libgt=intl/libgettext.h
3068 fi
3069else
3070 echo "$ac_t""no" 1>&6
3071fi
3072
3073 fi
3074 fi
3075
3076 if test "$CATOBJEXT" = "NONE"; then
3077 nls_cv_use_gnu_gettext=yes
3078 fi
3079 fi
3080
3081 if test "$nls_cv_use_gnu_gettext" = "yes"; then
3082 INTLOBJS="\$(GETTOBJS)"
3083 # Extract the first word of "msgfmt", so it can be a program name with args.
3084set dummy msgfmt; ac_word=$2
3085echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00003086echo "configure:3087: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003087if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3088 echo $ac_n "(cached) $ac_c" 1>&6
3089else
3090 case "$MSGFMT" in
3091 /*)
3092 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3093 ;;
3094 *)
3095 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3096 for ac_dir in $PATH; do
3097 test -z "$ac_dir" && ac_dir=.
3098 if test -f $ac_dir/$ac_word; then
3099 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3100 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3101 break
3102 fi
3103 fi
3104 done
3105 IFS="$ac_save_ifs"
3106 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
3107 ;;
3108esac
3109fi
3110MSGFMT="$ac_cv_path_MSGFMT"
3111if test -n "$MSGFMT"; then
3112 echo "$ac_t""$MSGFMT" 1>&6
3113else
3114 echo "$ac_t""no" 1>&6
3115fi
3116
3117 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3118set dummy gmsgfmt; ac_word=$2
3119echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00003120echo "configure:3121: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003121if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3122 echo $ac_n "(cached) $ac_c" 1>&6
3123else
3124 case "$GMSGFMT" in
3125 /*)
3126 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3127 ;;
3128 ?:/*)
3129 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3130 ;;
3131 *)
3132 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3133 ac_dummy="$PATH"
3134 for ac_dir in $ac_dummy; do
3135 test -z "$ac_dir" && ac_dir=.
3136 if test -f $ac_dir/$ac_word; then
3137 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3138 break
3139 fi
3140 done
3141 IFS="$ac_save_ifs"
3142 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3143 ;;
3144esac
3145fi
3146GMSGFMT="$ac_cv_path_GMSGFMT"
3147if test -n "$GMSGFMT"; then
3148 echo "$ac_t""$GMSGFMT" 1>&6
3149else
3150 echo "$ac_t""no" 1>&6
3151fi
3152
3153 # Extract the first word of "xgettext", so it can be a program name with args.
3154set dummy xgettext; ac_word=$2
3155echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00003156echo "configure:3157: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003157if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3158 echo $ac_n "(cached) $ac_c" 1>&6
3159else
3160 case "$XGETTEXT" in
3161 /*)
3162 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3163 ;;
3164 *)
3165 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3166 for ac_dir in $PATH; do
3167 test -z "$ac_dir" && ac_dir=.
3168 if test -f $ac_dir/$ac_word; then
3169 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3170 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3171 break
3172 fi
3173 fi
3174 done
3175 IFS="$ac_save_ifs"
3176 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3177 ;;
3178esac
3179fi
3180XGETTEXT="$ac_cv_path_XGETTEXT"
3181if test -n "$XGETTEXT"; then
3182 echo "$ac_t""$XGETTEXT" 1>&6
3183else
3184 echo "$ac_t""no" 1>&6
3185fi
3186
3187
3188 USE_INCLUDED_LIBINTL=yes
3189 CATOBJEXT=.gmo
3190 INSTOBJEXT=.mo
3191 DATADIRNAME=share
3192 INTLDEPS='$(top_builddir)/intl/libintl.a'
3193 INTLLIBS=$INTLDEPS
3194 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
3195 nls_cv_header_intl=intl/libintl.h
3196 nls_cv_header_libgt=intl/libgettext.h
3197 fi
3198
3199 if test "$XGETTEXT" != ":"; then
3200 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
3201 : ;
3202 else
3203 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
3204 XGETTEXT=":"
3205 fi
3206 fi
3207
3208 # We need to process the po/ directory.
3209 POSUB=po
3210 else
3211 DATADIRNAME=share
3212 nls_cv_header_intl=intl/libintl.h
3213 nls_cv_header_libgt=intl/libgettext.h
3214 fi
3215
3216
3217
3218
3219 # If this is used in GNU gettext we have to set USE_NLS to `yes'
3220 # because some of the sources are only built for this goal.
3221 if test "$PACKAGE" = gettext; then
3222 USE_NLS=yes
3223 USE_INCLUDED_LIBINTL=yes
3224 fi
3225
3226 for lang in $ALL_LINGUAS; do
3227 GMOFILES="$GMOFILES $lang.gmo"
3228 POFILES="$POFILES $lang.po"
3229 done
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244 if test "x$CATOBJEXT" != "x"; then
3245 if test "x$ALL_LINGUAS" = "x"; then
3246 LINGUAS=
3247 else
3248 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00003249echo "configure:3250: checking for catalogs to be installed" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003250 NEW_LINGUAS=
3251 for lang in ${LINGUAS=$ALL_LINGUAS}; do
3252 case "$ALL_LINGUAS" in
3253 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
3254 esac
3255 done
3256 LINGUAS=$NEW_LINGUAS
3257 echo "$ac_t""$LINGUAS" 1>&6
3258 fi
3259
3260 if test -n "$LINGUAS"; then
3261 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
3262 fi
3263 fi
3264
3265 if test $ac_cv_header_locale_h = yes; then
3266 INCLUDE_LOCALE_H="#include <locale.h>"
3267 else
3268 INCLUDE_LOCALE_H="\
3269/* The system does not provide the header <locale.h>. Take care yourself. */"
3270 fi
3271
3272
3273 test -d intl || mkdir intl
3274 if test "$CATOBJEXT" = ".cat"; then
3275 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
3276echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00003277echo "configure:3278: checking for linux/version.h" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003278if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3279 echo $ac_n "(cached) $ac_c" 1>&6
3280else
3281 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00003282#line 3283 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003283#include "confdefs.h"
3284#include <linux/version.h>
3285EOF
3286ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00003287{ (eval echo configure:3288: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003288ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3289if test -z "$ac_err"; then
3290 rm -rf conftest*
3291 eval "ac_cv_header_$ac_safe=yes"
3292else
3293 echo "$ac_err" >&5
3294 echo "configure: failed program was:" >&5
3295 cat conftest.$ac_ext >&5
3296 rm -rf conftest*
3297 eval "ac_cv_header_$ac_safe=no"
3298fi
3299rm -f conftest*
3300fi
3301if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3302 echo "$ac_t""yes" 1>&6
3303 msgformat=linux
3304else
3305 echo "$ac_t""no" 1>&6
3306msgformat=xopen
3307fi
3308
3309
3310 sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
3311 fi
3312 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
3313 $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
3314
3315 if test "$PACKAGE" = "gettext"; then
3316 GT_NO="#NO#"
3317 GT_YES=
3318 else
3319 GT_NO=
3320 GT_YES="#YES#"
3321 fi
3322
3323
3324
3325 MKINSTALLDIRS=
3326 if test -n "$ac_aux_dir"; then
3327 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
3328 fi
3329 if test -z "$MKINSTALLDIRS"; then
3330 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3331 fi
3332
3333
3334 l=
3335
3336
3337 test -d po || mkdir po
3338 if test "x$srcdir" != "x."; then
3339 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
3340 posrcprefix="$srcdir/"
3341 else
3342 posrcprefix="../$srcdir/"
3343 fi
3344 else
3345 posrcprefix="../"
3346 fi
3347 rm -f po/POTFILES
3348 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
3349 < $srcdir/po/POTFILES.in > po/POTFILES
3350
Theodore Ts'o74becf31997-04-26 14:37:06 +00003351
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003352echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00003353echo "configure:3354: checking whether ${MAKE-make} sets \${MAKE}" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003354set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003355if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
3356 echo $ac_n "(cached) $ac_c" 1>&6
3357else
3358 cat > conftestmake <<\EOF
3359all:
3360 @echo 'ac_maketemp="${MAKE}"'
3361EOF
3362# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3363eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
3364if test -n "$ac_maketemp"; then
3365 eval ac_cv_prog_make_${ac_make}_set=yes
3366else
3367 eval ac_cv_prog_make_${ac_make}_set=no
3368fi
3369rm -f conftestmake
3370fi
3371if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3372 echo "$ac_t""yes" 1>&6
3373 SET_MAKE=
3374else
3375 echo "$ac_t""no" 1>&6
3376 SET_MAKE="MAKE=${MAKE-make}"
3377fi
3378
3379# Extract the first word of "ln", so it can be a program name with args.
3380set dummy ln; ac_word=$2
3381echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00003382echo "configure:3383: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003383if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then
3384 echo $ac_n "(cached) $ac_c" 1>&6
3385else
3386 case "$LN" in
3387 /*)
3388 ac_cv_path_LN="$LN" # Let the user override the test with a path.
3389 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003390 ?:/*)
3391 ac_cv_path_LN="$LN" # Let the user override the test with a dos path.
3392 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003393 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003394 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3395 ac_dummy="$PATH"
3396 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003397 test -z "$ac_dir" && ac_dir=.
3398 if test -f $ac_dir/$ac_word; then
3399 ac_cv_path_LN="$ac_dir/$ac_word"
3400 break
3401 fi
3402 done
3403 IFS="$ac_save_ifs"
3404 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
3405 ;;
3406esac
3407fi
3408LN="$ac_cv_path_LN"
3409if test -n "$LN"; then
3410 echo "$ac_t""$LN" 1>&6
3411else
3412 echo "$ac_t""no" 1>&6
3413fi
3414
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00003415echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00003416echo "configure:3417: checking whether ln -s works" >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00003417if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
3418 echo $ac_n "(cached) $ac_c" 1>&6
3419else
3420 rm -f conftestdata
3421if ln -s X conftestdata 2>/dev/null
3422then
3423 rm -f conftestdata
3424 ac_cv_prog_LN_S="ln -s"
3425else
3426 ac_cv_prog_LN_S=ln
3427fi
3428fi
3429LN_S="$ac_cv_prog_LN_S"
3430if test "$ac_cv_prog_LN_S" = "ln -s"; then
3431 echo "$ac_t""yes" 1>&6
3432else
3433 echo "$ac_t""no" 1>&6
3434fi
3435
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003436# Extract the first word of "mv", so it can be a program name with args.
3437set dummy mv; ac_word=$2
3438echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00003439echo "configure:3440: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003440if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
3441 echo $ac_n "(cached) $ac_c" 1>&6
3442else
3443 case "$MV" in
3444 /*)
3445 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3446 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003447 ?:/*)
3448 ac_cv_path_MV="$MV" # Let the user override the test with a dos path.
3449 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003450 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003451 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3452 ac_dummy="$PATH"
3453 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003454 test -z "$ac_dir" && ac_dir=.
3455 if test -f $ac_dir/$ac_word; then
3456 ac_cv_path_MV="$ac_dir/$ac_word"
3457 break
3458 fi
3459 done
3460 IFS="$ac_save_ifs"
3461 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3462 ;;
3463esac
3464fi
3465MV="$ac_cv_path_MV"
3466if test -n "$MV"; then
3467 echo "$ac_t""$MV" 1>&6
3468else
3469 echo "$ac_t""no" 1>&6
3470fi
3471
3472# Extract the first word of "cp", so it can be a program name with args.
3473set dummy cp; ac_word=$2
3474echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00003475echo "configure:3476: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003476if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then
3477 echo $ac_n "(cached) $ac_c" 1>&6
3478else
3479 case "$CP" in
3480 /*)
3481 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3482 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003483 ?:/*)
3484 ac_cv_path_CP="$CP" # Let the user override the test with a dos path.
3485 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003486 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003487 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3488 ac_dummy="$PATH"
3489 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003490 test -z "$ac_dir" && ac_dir=.
3491 if test -f $ac_dir/$ac_word; then
3492 ac_cv_path_CP="$ac_dir/$ac_word"
3493 break
3494 fi
3495 done
3496 IFS="$ac_save_ifs"
3497 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3498 ;;
3499esac
3500fi
3501CP="$ac_cv_path_CP"
3502if test -n "$CP"; then
3503 echo "$ac_t""$CP" 1>&6
3504else
3505 echo "$ac_t""no" 1>&6
3506fi
3507
3508# Extract the first word of "rm", so it can be a program name with args.
3509set dummy rm; ac_word=$2
3510echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00003511echo "configure:3512: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003512if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
3513 echo $ac_n "(cached) $ac_c" 1>&6
3514else
3515 case "$RM" in
3516 /*)
3517 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3518 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003519 ?:/*)
3520 ac_cv_path_RM="$RM" # Let the user override the test with a dos path.
3521 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003522 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003523 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3524 ac_dummy="$PATH"
3525 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003526 test -z "$ac_dir" && ac_dir=.
3527 if test -f $ac_dir/$ac_word; then
3528 ac_cv_path_RM="$ac_dir/$ac_word"
3529 break
3530 fi
3531 done
3532 IFS="$ac_save_ifs"
3533 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3534 ;;
3535esac
3536fi
3537RM="$ac_cv_path_RM"
3538if test -n "$RM"; then
3539 echo "$ac_t""$RM" 1>&6
3540else
3541 echo "$ac_t""no" 1>&6
3542fi
3543
3544# Extract the first word of "chmod", so it can be a program name with args.
3545set dummy chmod; ac_word=$2
3546echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00003547echo "configure:3548: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003548if eval "test \"`echo '$''{'ac_cv_path_CHMOD'+set}'`\" = set"; then
3549 echo $ac_n "(cached) $ac_c" 1>&6
3550else
3551 case "$CHMOD" in
3552 /*)
3553 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
3554 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003555 ?:/*)
3556 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a dos path.
3557 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003558 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003559 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3560 ac_dummy="$PATH"
3561 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003562 test -z "$ac_dir" && ac_dir=.
3563 if test -f $ac_dir/$ac_word; then
3564 ac_cv_path_CHMOD="$ac_dir/$ac_word"
3565 break
3566 fi
3567 done
3568 IFS="$ac_save_ifs"
3569 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
3570 ;;
3571esac
3572fi
3573CHMOD="$ac_cv_path_CHMOD"
3574if test -n "$CHMOD"; then
3575 echo "$ac_t""$CHMOD" 1>&6
3576else
3577 echo "$ac_t""no" 1>&6
3578fi
3579
3580# Extract the first word of "awk", so it can be a program name with args.
3581set dummy awk; ac_word=$2
3582echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00003583echo "configure:3584: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003584if eval "test \"`echo '$''{'ac_cv_path_AWK'+set}'`\" = set"; then
3585 echo $ac_n "(cached) $ac_c" 1>&6
3586else
3587 case "$AWK" in
3588 /*)
3589 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3590 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003591 ?:/*)
3592 ac_cv_path_AWK="$AWK" # Let the user override the test with a dos path.
3593 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003594 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003595 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3596 ac_dummy="$PATH"
3597 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003598 test -z "$ac_dir" && ac_dir=.
3599 if test -f $ac_dir/$ac_word; then
3600 ac_cv_path_AWK="$ac_dir/$ac_word"
3601 break
3602 fi
3603 done
3604 IFS="$ac_save_ifs"
3605 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3606 ;;
3607esac
3608fi
3609AWK="$ac_cv_path_AWK"
3610if test -n "$AWK"; then
3611 echo "$ac_t""$AWK" 1>&6
3612else
3613 echo "$ac_t""no" 1>&6
3614fi
3615
3616# Extract the first word of "sed", so it can be a program name with args.
3617set dummy sed; ac_word=$2
3618echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00003619echo "configure:3620: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003620if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then
3621 echo $ac_n "(cached) $ac_c" 1>&6
3622else
3623 case "$SED" in
3624 /*)
3625 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3626 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003627 ?:/*)
3628 ac_cv_path_SED="$SED" # Let the user override the test with a dos path.
3629 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003630 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003631 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3632 ac_dummy="$PATH"
3633 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003634 test -z "$ac_dir" && ac_dir=.
3635 if test -f $ac_dir/$ac_word; then
3636 ac_cv_path_SED="$ac_dir/$ac_word"
3637 break
3638 fi
3639 done
3640 IFS="$ac_save_ifs"
3641 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3642 ;;
3643esac
3644fi
3645SED="$ac_cv_path_SED"
3646if test -n "$SED"; then
3647 echo "$ac_t""$SED" 1>&6
3648else
3649 echo "$ac_t""no" 1>&6
3650fi
3651
Theodore Ts'o9d564f71999-07-03 20:25:58 +00003652# Extract the first word of "perl", so it can be a program name with args.
3653set dummy perl; ac_word=$2
3654echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00003655echo "configure:3656: checking for $ac_word" >&5
Theodore Ts'o9d564f71999-07-03 20:25:58 +00003656if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
3657 echo $ac_n "(cached) $ac_c" 1>&6
3658else
3659 case "$PERL" in
3660 /*)
3661 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3662 ;;
3663 ?:/*)
3664 ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
3665 ;;
3666 *)
3667 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3668 ac_dummy="$PATH"
3669 for ac_dir in $ac_dummy; do
3670 test -z "$ac_dir" && ac_dir=.
3671 if test -f $ac_dir/$ac_word; then
3672 ac_cv_path_PERL="$ac_dir/$ac_word"
3673 break
3674 fi
3675 done
3676 IFS="$ac_save_ifs"
3677 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
3678 ;;
3679esac
3680fi
3681PERL="$ac_cv_path_PERL"
3682if test -n "$PERL"; then
3683 echo "$ac_t""$PERL" 1>&6
3684else
3685 echo "$ac_t""no" 1>&6
3686fi
3687
Theodore Ts'o250f79f2001-05-19 22:02:22 +00003688# Extract the first word of "ldconfig", so it can be a program name with args.
3689set dummy ldconfig; ac_word=$2
3690echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00003691echo "configure:3692: checking for $ac_word" >&5
Theodore Ts'o250f79f2001-05-19 22:02:22 +00003692if eval "test \"`echo '$''{'ac_cv_path_LDCONFIG'+set}'`\" = set"; then
3693 echo $ac_n "(cached) $ac_c" 1>&6
3694else
3695 case "$LDCONFIG" in
3696 /*)
3697 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
3698 ;;
3699 ?:/*)
3700 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a dos path.
3701 ;;
3702 *)
3703 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3704 ac_dummy="$PATH"
3705 for ac_dir in $ac_dummy; do
3706 test -z "$ac_dir" && ac_dir=.
3707 if test -f $ac_dir/$ac_word; then
3708 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
3709 break
3710 fi
3711 done
3712 IFS="$ac_save_ifs"
3713 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
3714 ;;
3715esac
3716fi
3717LDCONFIG="$ac_cv_path_LDCONFIG"
3718if test -n "$LDCONFIG"; then
3719 echo "$ac_t""$LDCONFIG" 1>&6
3720else
3721 echo "$ac_t""no" 1>&6
3722fi
3723
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003724echo $ac_n "checking build system type""... $ac_c" 1>&6
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00003725echo "configure:3726: checking build system type" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003726
3727build_alias=$build
3728case "$build_alias" in
3729NONE)
3730 case $nonopt in
3731 NONE) build_alias=$host_alias ;;
3732 *) build_alias=$nonopt ;;
3733 esac ;;
3734esac
3735
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003736build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003737build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3738build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3739build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003740echo "$ac_t""$build" 1>&6
3741
3742if test $host != $build; then
3743 ac_tool_prefix=${host_alias}-
3744else
3745 ac_tool_prefix=
3746fi
3747
3748# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3749set dummy ${ac_tool_prefix}ar; ac_word=$2
3750echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00003751echo "configure:3752: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003752if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3753 echo $ac_n "(cached) $ac_c" 1>&6
3754else
3755 if test -n "$AR"; then
3756 ac_cv_prog_AR="$AR" # Let the user override the test.
3757else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003758 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3759 ac_dummy="$PATH"
3760 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003761 test -z "$ac_dir" && ac_dir=.
3762 if test -f $ac_dir/$ac_word; then
3763 ac_cv_prog_AR="${ac_tool_prefix}ar"
3764 break
3765 fi
3766 done
3767 IFS="$ac_save_ifs"
3768fi
3769fi
3770AR="$ac_cv_prog_AR"
3771if test -n "$AR"; then
3772 echo "$ac_t""$AR" 1>&6
3773else
3774 echo "$ac_t""no" 1>&6
3775fi
3776
3777
3778if test -z "$ac_cv_prog_AR"; then
3779if test -n "$ac_tool_prefix"; then
3780 # Extract the first word of "ar", so it can be a program name with args.
3781set dummy ar; ac_word=$2
3782echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00003783echo "configure:3784: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003784if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3785 echo $ac_n "(cached) $ac_c" 1>&6
3786else
3787 if test -n "$AR"; then
3788 ac_cv_prog_AR="$AR" # Let the user override the test.
3789else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003790 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3791 ac_dummy="$PATH"
3792 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003793 test -z "$ac_dir" && ac_dir=.
3794 if test -f $ac_dir/$ac_word; then
3795 ac_cv_prog_AR="ar"
3796 break
3797 fi
3798 done
3799 IFS="$ac_save_ifs"
3800 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
3801fi
3802fi
3803AR="$ac_cv_prog_AR"
3804if test -n "$AR"; then
3805 echo "$ac_t""$AR" 1>&6
3806else
3807 echo "$ac_t""no" 1>&6
3808fi
3809
3810else
3811 AR="ar"
3812fi
3813fi
3814
3815# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3816set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3817echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00003818echo "configure:3819: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003819if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3820 echo $ac_n "(cached) $ac_c" 1>&6
3821else
3822 if test -n "$RANLIB"; then
3823 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3824else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003825 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3826 ac_dummy="$PATH"
3827 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003828 test -z "$ac_dir" && ac_dir=.
3829 if test -f $ac_dir/$ac_word; then
3830 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3831 break
3832 fi
3833 done
3834 IFS="$ac_save_ifs"
3835fi
3836fi
3837RANLIB="$ac_cv_prog_RANLIB"
3838if test -n "$RANLIB"; then
3839 echo "$ac_t""$RANLIB" 1>&6
3840else
3841 echo "$ac_t""no" 1>&6
3842fi
3843
3844
3845if test -z "$ac_cv_prog_RANLIB"; then
3846if test -n "$ac_tool_prefix"; then
3847 # Extract the first word of "ranlib", so it can be a program name with args.
3848set dummy ranlib; ac_word=$2
3849echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00003850echo "configure:3851: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003851if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3852 echo $ac_n "(cached) $ac_c" 1>&6
3853else
3854 if test -n "$RANLIB"; then
3855 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3856else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003857 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3858 ac_dummy="$PATH"
3859 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003860 test -z "$ac_dir" && ac_dir=.
3861 if test -f $ac_dir/$ac_word; then
3862 ac_cv_prog_RANLIB="ranlib"
3863 break
3864 fi
3865 done
3866 IFS="$ac_save_ifs"
3867 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3868fi
3869fi
3870RANLIB="$ac_cv_prog_RANLIB"
3871if test -n "$RANLIB"; then
3872 echo "$ac_t""$RANLIB" 1>&6
3873else
3874 echo "$ac_t""no" 1>&6
3875fi
3876
3877else
3878 RANLIB=":"
3879fi
3880fi
3881
3882# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3883set dummy ${ac_tool_prefix}strip; ac_word=$2
3884echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00003885echo "configure:3886: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003886if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
3887 echo $ac_n "(cached) $ac_c" 1>&6
3888else
3889 if test -n "$STRIP"; then
3890 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3891else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003892 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3893 ac_dummy="$PATH"
3894 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003895 test -z "$ac_dir" && ac_dir=.
3896 if test -f $ac_dir/$ac_word; then
3897 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3898 break
3899 fi
3900 done
3901 IFS="$ac_save_ifs"
3902fi
3903fi
3904STRIP="$ac_cv_prog_STRIP"
3905if test -n "$STRIP"; then
3906 echo "$ac_t""$STRIP" 1>&6
3907else
3908 echo "$ac_t""no" 1>&6
3909fi
3910
3911
3912if test -z "$ac_cv_prog_STRIP"; then
3913if test -n "$ac_tool_prefix"; then
3914 # Extract the first word of "strip", so it can be a program name with args.
3915set dummy strip; ac_word=$2
3916echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00003917echo "configure:3918: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003918if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
3919 echo $ac_n "(cached) $ac_c" 1>&6
3920else
3921 if test -n "$STRIP"; then
3922 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3923else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003924 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3925 ac_dummy="$PATH"
3926 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003927 test -z "$ac_dir" && ac_dir=.
3928 if test -f $ac_dir/$ac_word; then
3929 ac_cv_prog_STRIP="strip"
3930 break
3931 fi
3932 done
3933 IFS="$ac_save_ifs"
3934 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
3935fi
3936fi
3937STRIP="$ac_cv_prog_STRIP"
3938if test -n "$STRIP"; then
3939 echo "$ac_t""$STRIP" 1>&6
3940else
3941 echo "$ac_t""no" 1>&6
3942fi
3943
3944else
3945 STRIP=":"
3946fi
3947fi
3948
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003949# Find a good install program. We prefer a C program (faster),
3950# so one script is as good as another. But avoid the broken or
3951# incompatible versions:
3952# SysV /etc/install, /usr/sbin/install
3953# SunOS /usr/etc/install
3954# IRIX /sbin/install
3955# AIX /bin/install
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003956# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003957# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3958# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3959# ./install, which can be erroneously created by make from ./install.sh.
3960echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00003961echo "configure:3962: checking for a BSD compatible install" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003962if test -z "$INSTALL"; then
3963if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3964 echo $ac_n "(cached) $ac_c" 1>&6
3965else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003966 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003967 for ac_dir in $PATH; do
3968 # Account for people who put trailing slashes in PATH elements.
3969 case "$ac_dir/" in
3970 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3971 *)
3972 # OSF1 and SCO ODT 3.0 have their own names for install.
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003973 # Don't use installbsd from OSF since it installs stuff as root
3974 # by default.
3975 for ac_prog in ginstall scoinst install; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003976 if test -f $ac_dir/$ac_prog; then
3977 if test $ac_prog = install &&
3978 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3979 # AIX install. It has an incompatible calling convention.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003980 :
3981 else
3982 ac_cv_path_install="$ac_dir/$ac_prog -c"
3983 break 2
3984 fi
3985 fi
3986 done
3987 ;;
3988 esac
3989 done
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003990 IFS="$ac_save_IFS"
3991
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003992fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003993 if test "${ac_cv_path_install+set}" = set; then
3994 INSTALL="$ac_cv_path_install"
3995 else
3996 # As a last resort, use the slow shell script. We don't cache a
3997 # path for INSTALL within a source directory, because that will
3998 # break other packages using the cache if that directory is
3999 # removed, or if the path is relative.
4000 INSTALL="$ac_install_sh"
4001 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004002fi
4003echo "$ac_t""$INSTALL" 1>&6
4004
4005# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4006# It thinks the first close brace ends the variable substitution.
4007test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4008
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004009test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
4010
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004011test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4012
Theodore Ts'o6c133521999-07-03 20:37:03 +00004013# See if we need a separate native compiler.
4014if test $cross_compiling = no; then
4015 BUILD_CC="$CC"
4016
4017else
4018 for ac_prog in gcc cc
4019do
4020# Extract the first word of "$ac_prog", so it can be a program name with args.
4021set dummy $ac_prog; ac_word=$2
4022echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00004023echo "configure:4024: checking for $ac_word" >&5
Theodore Ts'o6c133521999-07-03 20:37:03 +00004024if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
4025 echo $ac_n "(cached) $ac_c" 1>&6
4026else
4027 if test -n "$BUILD_CC"; then
4028 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4029else
4030 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4031 ac_dummy="$PATH"
4032 for ac_dir in $ac_dummy; do
4033 test -z "$ac_dir" && ac_dir=.
4034 if test -f $ac_dir/$ac_word; then
4035 ac_cv_prog_BUILD_CC="$ac_prog"
4036 break
4037 fi
4038 done
4039 IFS="$ac_save_ifs"
4040fi
4041fi
4042BUILD_CC="$ac_cv_prog_BUILD_CC"
4043if test -n "$BUILD_CC"; then
4044 echo "$ac_t""$BUILD_CC" 1>&6
4045else
4046 echo "$ac_t""no" 1>&6
4047fi
4048
4049test -n "$BUILD_CC" && break
4050done
4051
4052fi
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00004053for ac_hdr in stdlib.h unistd.h stdarg.h errno.h malloc.h mntent.h paths.h dirent.h getopt.h setjmp.h signal.h termios.h linux/fd.h linux/major.h sys/disklabel.h sys/ioctl.h sys/mkdev.h sys/mount.h sys/sockio.h sys/sysmacros.h sys/time.h sys/stat.h sys/types.h net/if.h netinet/in.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004054do
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004055ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004056echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00004057echo "configure:4058: checking for $ac_hdr" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004058if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4059 echo $ac_n "(cached) $ac_c" 1>&6
4060else
4061 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00004062#line 4063 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004063#include "confdefs.h"
4064#include <$ac_hdr>
4065EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004066ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00004067{ (eval echo configure:4068: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004068ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004069if test -z "$ac_err"; then
4070 rm -rf conftest*
4071 eval "ac_cv_header_$ac_safe=yes"
4072else
4073 echo "$ac_err" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004074 echo "configure: failed program was:" >&5
4075 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004076 rm -rf conftest*
4077 eval "ac_cv_header_$ac_safe=no"
4078fi
4079rm -f conftest*
4080fi
4081if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4082 echo "$ac_t""yes" 1>&6
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004083 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004084 cat >> confdefs.h <<EOF
4085#define $ac_tr_hdr 1
4086EOF
4087
4088else
4089 echo "$ac_t""no" 1>&6
4090fi
4091done
4092
4093echo $ac_n "checking for vprintf""... $ac_c" 1>&6
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00004094echo "configure:4095: checking for vprintf" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004095if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
4096 echo $ac_n "(cached) $ac_c" 1>&6
4097else
4098 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00004099#line 4100 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004100#include "confdefs.h"
4101/* System header to define __stub macros and hopefully few prototypes,
4102 which can conflict with char vprintf(); below. */
4103#include <assert.h>
4104/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004105/* We use char because int might match the return type of a gcc2
4106 builtin and then its argument prototype would still apply. */
4107char vprintf();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004108
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004109int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004110
4111/* The GNU C library defines this for functions which it implements
4112 to always fail with ENOSYS. Some functions are actually named
4113 something starting with __ and the normal name is an alias. */
4114#if defined (__stub_vprintf) || defined (__stub___vprintf)
4115choke me
4116#else
4117vprintf();
4118#endif
4119
4120; return 0; }
4121EOF
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00004122if { (eval echo configure:4123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004123 rm -rf conftest*
4124 eval "ac_cv_func_vprintf=yes"
4125else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004126 echo "configure: failed program was:" >&5
4127 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004128 rm -rf conftest*
4129 eval "ac_cv_func_vprintf=no"
4130fi
4131rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004132fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004133
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004134if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
4135 echo "$ac_t""yes" 1>&6
4136 cat >> confdefs.h <<\EOF
4137#define HAVE_VPRINTF 1
4138EOF
4139
4140else
4141 echo "$ac_t""no" 1>&6
4142fi
4143
4144if test "$ac_cv_func_vprintf" != yes; then
4145echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00004146echo "configure:4147: checking for _doprnt" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004147if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
4148 echo $ac_n "(cached) $ac_c" 1>&6
4149else
4150 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00004151#line 4152 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004152#include "confdefs.h"
4153/* System header to define __stub macros and hopefully few prototypes,
4154 which can conflict with char _doprnt(); below. */
4155#include <assert.h>
4156/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004157/* We use char because int might match the return type of a gcc2
4158 builtin and then its argument prototype would still apply. */
4159char _doprnt();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004160
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004161int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004162
4163/* The GNU C library defines this for functions which it implements
4164 to always fail with ENOSYS. Some functions are actually named
4165 something starting with __ and the normal name is an alias. */
4166#if defined (__stub__doprnt) || defined (__stub____doprnt)
4167choke me
4168#else
4169_doprnt();
4170#endif
4171
4172; return 0; }
4173EOF
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00004174if { (eval echo configure:4175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004175 rm -rf conftest*
4176 eval "ac_cv_func__doprnt=yes"
4177else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004178 echo "configure: failed program was:" >&5
4179 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004180 rm -rf conftest*
4181 eval "ac_cv_func__doprnt=no"
4182fi
4183rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004184fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004185
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004186if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
4187 echo "$ac_t""yes" 1>&6
4188 cat >> confdefs.h <<\EOF
4189#define HAVE_DOPRNT 1
4190EOF
4191
4192else
4193 echo "$ac_t""no" 1>&6
4194fi
4195
4196fi
4197
4198echo $ac_n "checking whether struct dirent has a d_namlen field""... $ac_c" 1>&6
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00004199echo "configure:4200: checking whether struct dirent has a d_namlen field" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004200if eval "test \"`echo '$''{'e2fsprogs_cv_struct_d_namlen'+set}'`\" = set"; then
4201 echo $ac_n "(cached) $ac_c" 1>&6
4202else
4203 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00004204#line 4205 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004205#include "confdefs.h"
4206#include <sys/types.h>
4207#include <dirent.h>
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004208int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004209struct dirent de; de.d_namlen = 0;
4210; return 0; }
4211EOF
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00004212if { (eval echo configure:4213: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004213 rm -rf conftest*
4214 e2fsprogs_cv_struct_d_namlen=yes
4215else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004216 echo "configure: failed program was:" >&5
4217 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004218 rm -rf conftest*
4219 e2fsprogs_cv_struct_d_namlen=no
4220fi
4221rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004222fi
4223
4224echo "$ac_t""$e2fsprogs_cv_struct_d_namlen" 1>&6
4225if test "$e2fsprogs_cv_struct_d_namlen" = yes; then
4226 cat >> confdefs.h <<\EOF
4227#define HAVE_DIRENT_NAMLEN 1
4228EOF
4229
4230fi
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00004231echo $ac_n "checking whether llseek declared in unistd.h""... $ac_c" 1>&6
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00004232echo "configure:4233: checking whether llseek declared in unistd.h" >&5
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00004233if eval "test \"`echo '$''{'e2fsprogs_cv_have_llseek_prototype'+set}'`\" = set"; then
4234 echo $ac_n "(cached) $ac_c" 1>&6
4235else
4236 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00004237#line 4238 "configure"
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00004238#include "confdefs.h"
4239#include <unistd.h>
4240int main() {
4241extern int llseek(int);
4242; return 0; }
4243EOF
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00004244if { (eval echo configure:4245: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00004245 rm -rf conftest*
4246 e2fsprogs_cv_have_llseek_prototype=no
4247else
4248 echo "configure: failed program was:" >&5
4249 cat conftest.$ac_ext >&5
4250 rm -rf conftest*
4251 e2fsprogs_cv_have_llseek_prototype=yes
4252fi
4253rm -f conftest*
4254fi
4255
4256echo "$ac_t""$e2fsprogs_cv_have_llseek_prototype" 1>&6
4257if test "$e2fsprogs_cv_have_llseek_prototype" = yes; then
4258 cat >> confdefs.h <<\EOF
4259#define HAVE_LLSEEK_PROTOTYPE 1
4260EOF
4261
4262fi
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004263echo $ac_n "checking whether lseek64 declared in unistd.h""... $ac_c" 1>&6
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00004264echo "configure:4265: checking whether lseek64 declared in unistd.h" >&5
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004265if eval "test \"`echo '$''{'e2fsprogs_cv_have_lseek64_prototype'+set}'`\" = set"; then
4266 echo $ac_n "(cached) $ac_c" 1>&6
4267else
4268 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00004269#line 4270 "configure"
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004270#include "confdefs.h"
4271#define _LARGEFILE_SOURCE
4272#define _LARGEFILE64_SOURCE
4273#include <unistd.h>
4274int main() {
4275extern int lseek64(int);
4276; return 0; }
4277EOF
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00004278if { (eval echo configure:4279: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004279 rm -rf conftest*
4280 e2fsprogs_cv_have_lseek64_prototype=no
4281else
4282 echo "configure: failed program was:" >&5
4283 cat conftest.$ac_ext >&5
4284 rm -rf conftest*
4285 e2fsprogs_cv_have_lseek64_prototype=yes
4286fi
4287rm -f conftest*
4288fi
4289
4290echo "$ac_t""$e2fsprogs_cv_have_lseek64_prototype" 1>&6
4291if test "$e2fsprogs_cv_have_lseek64_prototype" = yes; then
4292 cat >> confdefs.h <<\EOF
4293#define HAVE_LSEEK64_PROTOTYPE 1
4294EOF
4295
4296fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004297if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
4298 # if cross-compiling, with no cached values, just assume something common.
4299 ac_cv_sizeof_short=2
4300 ac_cv_sizeof_int=4
4301 ac_cv_sizeof_long=4
Theodore Ts'o6c133521999-07-03 20:37:03 +00004302 ac_cv_sizeof_long_long=8
4303 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 +00004304fi
4305echo $ac_n "checking size of short""... $ac_c" 1>&6
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00004306echo "configure:4307: checking size of short" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004307if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
4308 echo $ac_n "(cached) $ac_c" 1>&6
4309else
4310 if test "$cross_compiling" = yes; then
4311 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4312else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004313 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00004314#line 4315 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004315#include "confdefs.h"
4316#include <stdio.h>
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004317#include <sys/types.h>
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004318main()
4319{
4320 FILE *f=fopen("conftestval", "w");
4321 if (!f) exit(1);
4322 fprintf(f, "%d\n", sizeof(short));
4323 exit(0);
4324}
4325EOF
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00004326if { (eval echo configure:4327: \"$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 +00004327then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004328 ac_cv_sizeof_short=`cat conftestval`
4329else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004330 echo "configure: failed program was:" >&5
4331 cat conftest.$ac_ext >&5
4332 rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004333 ac_cv_sizeof_short=0
4334fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004335rm -fr conftest*
4336fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004337
4338fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004339echo "$ac_t""$ac_cv_sizeof_short" 1>&6
4340cat >> confdefs.h <<EOF
4341#define SIZEOF_SHORT $ac_cv_sizeof_short
4342EOF
4343
4344
4345echo $ac_n "checking size of int""... $ac_c" 1>&6
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00004346echo "configure:4347: checking size of int" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004347if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
4348 echo $ac_n "(cached) $ac_c" 1>&6
4349else
4350 if test "$cross_compiling" = yes; then
4351 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4352else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004353 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00004354#line 4355 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004355#include "confdefs.h"
4356#include <stdio.h>
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004357#include <sys/types.h>
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004358main()
4359{
4360 FILE *f=fopen("conftestval", "w");
4361 if (!f) exit(1);
4362 fprintf(f, "%d\n", sizeof(int));
4363 exit(0);
4364}
4365EOF
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00004366if { (eval echo configure:4367: \"$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 +00004367then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004368 ac_cv_sizeof_int=`cat conftestval`
4369else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004370 echo "configure: failed program was:" >&5
4371 cat conftest.$ac_ext >&5
4372 rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004373 ac_cv_sizeof_int=0
4374fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004375rm -fr conftest*
4376fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004377
4378fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004379echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4380cat >> confdefs.h <<EOF
4381#define SIZEOF_INT $ac_cv_sizeof_int
4382EOF
4383
4384
4385echo $ac_n "checking size of long""... $ac_c" 1>&6
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00004386echo "configure:4387: checking size of long" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004387if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
4388 echo $ac_n "(cached) $ac_c" 1>&6
4389else
4390 if test "$cross_compiling" = yes; then
4391 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4392else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004393 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00004394#line 4395 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004395#include "confdefs.h"
4396#include <stdio.h>
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004397#include <sys/types.h>
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004398main()
4399{
4400 FILE *f=fopen("conftestval", "w");
4401 if (!f) exit(1);
4402 fprintf(f, "%d\n", sizeof(long));
4403 exit(0);
4404}
4405EOF
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00004406if { (eval echo configure:4407: \"$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 +00004407then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004408 ac_cv_sizeof_long=`cat conftestval`
4409else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004410 echo "configure: failed program was:" >&5
4411 cat conftest.$ac_ext >&5
4412 rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004413 ac_cv_sizeof_long=0
4414fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004415rm -fr conftest*
4416fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004417
4418fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004419echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4420cat >> confdefs.h <<EOF
4421#define SIZEOF_LONG $ac_cv_sizeof_long
4422EOF
4423
4424
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004425echo $ac_n "checking size of long long""... $ac_c" 1>&6
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00004426echo "configure:4427: checking size of long long" >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004427if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
4428 echo $ac_n "(cached) $ac_c" 1>&6
4429else
4430 if test "$cross_compiling" = yes; then
4431 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4432else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004433 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00004434#line 4435 "configure"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004435#include "confdefs.h"
4436#include <stdio.h>
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004437#include <sys/types.h>
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004438main()
4439{
4440 FILE *f=fopen("conftestval", "w");
4441 if (!f) exit(1);
4442 fprintf(f, "%d\n", sizeof(long long));
4443 exit(0);
4444}
4445EOF
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00004446if { (eval echo configure:4447: \"$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 +00004447then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004448 ac_cv_sizeof_long_long=`cat conftestval`
4449else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004450 echo "configure: failed program was:" >&5
4451 cat conftest.$ac_ext >&5
4452 rm -fr conftest*
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004453 ac_cv_sizeof_long_long=0
4454fi
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004455rm -fr conftest*
4456fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004457
4458fi
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004459echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4460cat >> confdefs.h <<EOF
4461#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4462EOF
4463
4464
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004465SIZEOF_SHORT=$ac_cv_sizeof_short
4466SIZEOF_INT=$ac_cv_sizeof_int
4467SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004468SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
4469
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004470
4471
4472
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004473echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00004474echo "configure:4475: checking whether byte ordering is bigendian" >&5
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004475if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
4476 echo $ac_n "(cached) $ac_c" 1>&6
4477else
4478 ac_cv_c_bigendian=unknown
4479# See if sys/param.h defines the BYTE_ORDER macro.
4480cat > conftest.$ac_ext <<EOF
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00004481#line 4482 "configure"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004482#include "confdefs.h"
4483#include <sys/types.h>
4484#include <sys/param.h>
4485int main() {
4486
4487#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4488 bogus endian macros
4489#endif
4490; return 0; }
4491EOF
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00004492if { (eval echo configure:4493: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004493 rm -rf conftest*
4494 # It does; now see whether it defined to BIG_ENDIAN or not.
4495cat > conftest.$ac_ext <<EOF
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00004496#line 4497 "configure"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004497#include "confdefs.h"
4498#include <sys/types.h>
4499#include <sys/param.h>
4500int main() {
4501
4502#if BYTE_ORDER != BIG_ENDIAN
4503 not big endian
4504#endif
4505; return 0; }
4506EOF
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00004507if { (eval echo configure:4508: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004508 rm -rf conftest*
4509 ac_cv_c_bigendian=yes
4510else
4511 echo "configure: failed program was:" >&5
4512 cat conftest.$ac_ext >&5
4513 rm -rf conftest*
4514 ac_cv_c_bigendian=no
4515fi
4516rm -f conftest*
4517else
4518 echo "configure: failed program was:" >&5
4519 cat conftest.$ac_ext >&5
4520fi
4521rm -f conftest*
4522if test $ac_cv_c_bigendian = unknown; then
4523if test "$cross_compiling" = yes; then
4524 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4525else
4526 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00004527#line 4528 "configure"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004528#include "confdefs.h"
4529main () {
4530 /* Are we little or big endian? From Harbison&Steele. */
4531 union
4532 {
4533 long l;
4534 char c[sizeof (long)];
4535 } u;
4536 u.l = 1;
4537 exit (u.c[sizeof (long) - 1] == 1);
4538}
4539EOF
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00004540if { (eval echo configure:4541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004541then
4542 ac_cv_c_bigendian=no
4543else
4544 echo "configure: failed program was:" >&5
4545 cat conftest.$ac_ext >&5
4546 rm -fr conftest*
4547 ac_cv_c_bigendian=yes
4548fi
4549rm -fr conftest*
4550fi
4551
4552fi
4553fi
4554
4555echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4556if test $ac_cv_c_bigendian = yes; then
4557 cat >> confdefs.h <<\EOF
4558#define WORDS_BIGENDIAN 1
4559EOF
4560
4561fi
4562
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004563echo $ac_n "checking whether struct stat has a st_flags field""... $ac_c" 1>&6
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00004564echo "configure:4565: checking whether struct stat has a st_flags field" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004565if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags'+set}'`\" = set"; then
4566 echo $ac_n "(cached) $ac_c" 1>&6
4567else
4568 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00004569#line 4570 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004570#include "confdefs.h"
4571#include <sys/stat.h>
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004572int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004573struct stat stat; stat.st_flags = 0;
4574; return 0; }
4575EOF
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00004576if { (eval echo configure:4577: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004577 rm -rf conftest*
4578 e2fsprogs_cv_struct_st_flags=yes
4579else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004580 echo "configure: failed program was:" >&5
4581 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004582 rm -rf conftest*
4583 e2fsprogs_cv_struct_st_flags=no
4584fi
4585rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004586fi
4587
4588echo "$ac_t""$e2fsprogs_cv_struct_st_flags" 1>&6
4589if test "$e2fsprogs_cv_struct_st_flags" = yes; then
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00004590 echo $ac_n "checking whether st_flags field is useful""... $ac_c" 1>&6
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00004591echo "configure:4592: checking whether st_flags field is useful" >&5
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00004592 if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags_immut'+set}'`\" = set"; then
4593 echo $ac_n "(cached) $ac_c" 1>&6
4594else
4595 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00004596#line 4597 "configure"
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00004597#include "confdefs.h"
4598#include <sys/stat.h>
4599int main() {
4600struct stat stat; stat.st_flags |= UF_IMMUTABLE;
4601; return 0; }
4602EOF
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00004603if { (eval echo configure:4604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00004604 rm -rf conftest*
4605 e2fsprogs_cv_struct_st_flags_immut=yes
4606else
4607 echo "configure: failed program was:" >&5
4608 cat conftest.$ac_ext >&5
4609 rm -rf conftest*
4610 e2fsprogs_cv_struct_st_flags_immut=no
4611fi
4612rm -f conftest*
4613fi
4614
4615 echo "$ac_t""$e2fsprogs_cv_struct_st_flags_immut" 1>&6
4616 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
4617 cat >> confdefs.h <<\EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004618#define HAVE_STAT_FLAGS 1
4619EOF
4620
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00004621 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004622fi
Theodore Ts'o53abed02001-08-27 12:18:16 -04004623for ac_func in chflags getrusage llseek lseek64 open64 getmntinfo strcasecmp srandom fchown mallinfo fdatasync strnlen
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004624do
4625echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00004626echo "configure:4627: checking for $ac_func" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004627if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4628 echo $ac_n "(cached) $ac_c" 1>&6
4629else
4630 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00004631#line 4632 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004632#include "confdefs.h"
4633/* System header to define __stub macros and hopefully few prototypes,
4634 which can conflict with char $ac_func(); below. */
4635#include <assert.h>
4636/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004637/* We use char because int might match the return type of a gcc2
4638 builtin and then its argument prototype would still apply. */
4639char $ac_func();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004640
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004641int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004642
4643/* The GNU C library defines this for functions which it implements
4644 to always fail with ENOSYS. Some functions are actually named
4645 something starting with __ and the normal name is an alias. */
4646#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4647choke me
4648#else
4649$ac_func();
4650#endif
4651
4652; return 0; }
4653EOF
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00004654if { (eval echo configure:4655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004655 rm -rf conftest*
4656 eval "ac_cv_func_$ac_func=yes"
4657else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004658 echo "configure: failed program was:" >&5
4659 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004660 rm -rf conftest*
4661 eval "ac_cv_func_$ac_func=no"
4662fi
4663rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004664fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004665
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004666if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4667 echo "$ac_t""yes" 1>&6
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004668 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004669 cat >> confdefs.h <<EOF
4670#define $ac_tr_func 1
4671EOF
4672
4673else
4674 echo "$ac_t""no" 1>&6
4675fi
4676done
4677
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004678SOCKET_LIB=''
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004679echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00004680echo "configure:4681: checking for socket in -lsocket" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004681ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
4682if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004683 echo $ac_n "(cached) $ac_c" 1>&6
4684else
4685 ac_save_LIBS="$LIBS"
4686LIBS="-lsocket $LIBS"
4687cat > conftest.$ac_ext <<EOF
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00004688#line 4689 "configure"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004689#include "confdefs.h"
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004690/* Override any gcc2 internal prototype to avoid an error. */
4691/* We use char because int might match the return type of a gcc2
4692 builtin and then its argument prototype would still apply. */
4693char socket();
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004694
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004695int main() {
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004696socket()
4697; return 0; }
4698EOF
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00004699if { (eval echo configure:4700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004700 rm -rf conftest*
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004701 eval "ac_cv_lib_$ac_lib_var=yes"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004702else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004703 echo "configure: failed program was:" >&5
4704 cat conftest.$ac_ext >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004705 rm -rf conftest*
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004706 eval "ac_cv_lib_$ac_lib_var=no"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004707fi
4708rm -f conftest*
4709LIBS="$ac_save_LIBS"
4710
4711fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004712if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004713 echo "$ac_t""yes" 1>&6
4714 SOCKET_LIB=-lsocket
4715else
4716 echo "$ac_t""no" 1>&6
4717fi
4718
4719
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004720echo $ac_n "checking for optreset""... $ac_c" 1>&6
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00004721echo "configure:4722: checking for optreset" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004722if eval "test \"`echo '$''{'ac_cv_have_optreset'+set}'`\" = set"; then
4723 echo $ac_n "(cached) $ac_c" 1>&6
4724else
4725 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00004726#line 4727 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004727#include "confdefs.h"
4728#include <unistd.h>
4729EOF
4730if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4731 egrep "optreset" >/dev/null 2>&1; then
4732 rm -rf conftest*
4733 ac_cv_have_optreset=yes
4734else
4735 rm -rf conftest*
4736 ac_cv_have_optreset=no
4737fi
4738rm -f conftest*
4739
4740fi
4741echo "$ac_t""$ac_cv_have_optreset" 1>&6
4742if test $ac_cv_have_optreset = yes; then
4743 cat >> confdefs.h <<\EOF
4744#define HAVE_OPTRESET 1
4745EOF
4746
4747fi
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +00004748case "$host_os" in
4749linux*)
4750 cat >> confdefs.h <<\EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004751#define HAVE_EXT2_IOCTLS 1
4752EOF
4753
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +00004754 ;;
4755esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004756case "$host_os" in
Theodore Ts'o6c133521999-07-03 20:37:03 +00004757linux* | gnu*)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004758 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
4759 root_prefix="";
4760 echo "On $host_os systems, root_prefix defaults to ''"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004761 fi
4762 ;;
4763esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004764case "$host_os" in
4765linux* | gnu*)
4766 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004767 prefix="/usr";
4768 echo "On $host_os systems, prefix defaults to /usr"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004769 fi
4770;;
4771esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004772if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +00004773 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004774 root_prefix="$ac_default_prefix"
4775 else
4776 root_prefix="$prefix"
4777 fi
4778fi
4779
Theodore Ts'oae851481997-04-29 18:13:24 +00004780echo $ac_n "checking whether linker accepts -static""... $ac_c" 1>&6
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00004781echo "configure:4782: checking whether linker accepts -static" >&5
Theodore Ts'oae851481997-04-29 18:13:24 +00004782if eval "test \"`echo '$''{'ac_cv_e2fsprogs_use_static'+set}'`\" = set"; then
4783 echo $ac_n "(cached) $ac_c" 1>&6
4784else
4785 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
4786cat > conftest.$ac_ext <<EOF
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00004787#line 4788 "configure"
Theodore Ts'oae851481997-04-29 18:13:24 +00004788#include "confdefs.h"
4789#include <stdio.h>
4790int main() {
4791fflush(stdout);
4792; return 0; }
4793EOF
Theodore Ts'oa35bcab2001-06-14 07:20:12 +00004794if { (eval echo configure:4795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oae851481997-04-29 18:13:24 +00004795 rm -rf conftest*
4796 ac_cv_e2fsprogs_use_static=yes
4797else
4798 echo "configure: failed program was:" >&5
4799 cat conftest.$ac_ext >&5
4800 rm -rf conftest*
4801 ac_cv_e2fsprogs_use_static=no
4802fi
4803rm -f conftest*
4804LDFLAGS=$SAVE_LDFLAGS
4805fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004806
Theodore Ts'odefde781999-01-04 07:39:19 +00004807case "$host_os" in
4808solaris2.*)
4809 ac_cv_e2fsprogs_use_static=no
4810;;
4811esac
Theodore Ts'oae851481997-04-29 18:13:24 +00004812echo "$ac_t""$ac_cv_e2fsprogs_use_static" 1>&6
Theodore Ts'o74becf31997-04-26 14:37:06 +00004813LDFLAG_STATIC=
Theodore Ts'oae851481997-04-29 18:13:24 +00004814if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004815 LDFLAG_STATIC=-static
Theodore Ts'oae851481997-04-29 18:13:24 +00004816fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004817
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004818SS_DIR=`cd ${srcdir}/lib/ss; pwd`
4819ET_DIR=`cd ${srcdir}/lib/et; pwd`
4820
4821
4822if test "$cross_compiling" = yes ; then
4823 DO_TEST_SUITE=
4824else
4825 DO_TEST_SUITE=check
4826fi
4827
4828test -d lib || mkdir lib
4829test -d include || mkdir include
4830test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +00004831test -d include/asm || mkdir include/asm
Theodore Ts'obc210071997-06-17 05:41:36 +00004832rmakefile=
4833if test -d ${srcdir}/resize ; then
4834 rmakefile=resize/Makefile
4835fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004836trap '' 1 2 15
4837cat > confcache <<\EOF
4838# This file is a shell script that caches the results of configure
4839# tests run on this system so they can be shared between configure
4840# scripts and configure runs. It is not useful on other systems.
4841# If it contains results you don't want to keep, you may remove or edit it.
4842#
4843# By default, configure uses ./config.cache as the cache file,
4844# creating it if it does not exist already. You can give configure
4845# the --cache-file=FILE option to use a different cache file; that is
4846# what configure does when it calls configure scripts in
4847# subdirectories, so they share the cache.
4848# Giving --cache-file=/dev/null disables caching, for debugging configure.
4849# config.status only pays attention to the cache file if you give it the
4850# --recheck option to rerun configure.
4851#
4852EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004853# The following way of writing the cache mishandles newlines in values,
4854# but we know of no workaround that is simple, portable, and efficient.
4855# So, don't put newlines in cache variables' values.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004856# Ultrix sh set writes to stderr and can't be redirected directly,
4857# and sets the high bit in the cache file unless we assign to the vars.
4858(set) 2>&1 |
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004859 case `(ac_space=' '; set | grep ac_space) 2>&1` in
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004860 *ac_space=\ *)
4861 # `set' does not quote correctly, so add quotes (double-quote substitution
4862 # turns \\\\ into \\, and sed turns \\ into \).
4863 sed -n \
4864 -e "s/'/'\\\\''/g" \
4865 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4866 ;;
4867 *)
4868 # `set' quotes correctly as required by POSIX, so do not add quotes.
4869 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4870 ;;
4871 esac >> confcache
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004872if cmp -s $cache_file confcache; then
4873 :
4874else
4875 if test -w $cache_file; then
4876 echo "updating cache $cache_file"
4877 cat confcache > $cache_file
4878 else
4879 echo "not updating unwritable cache $cache_file"
4880 fi
4881fi
4882rm -f confcache
4883
4884trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4885
4886test "x$prefix" = xNONE && prefix=$ac_default_prefix
4887# Let make expand exec_prefix.
4888test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4889
4890# Any assignment to VPATH causes Sun make to only execute
4891# the first set of double-colon rules, so remove it if not needed.
4892# If there is a colon in the path, we need to keep it.
4893if test "x$srcdir" = x.; then
4894 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4895fi
4896
4897trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4898
4899# Transform confdefs.h into DEFS.
4900# Protect against shell expansion while executing Makefile rules.
4901# Protect against Makefile macro expansion.
4902cat > conftest.defs <<\EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004903s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004904s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
4905s%\[%\\&%g
4906s%\]%\\&%g
4907s%\$%$$%g
4908EOF
4909DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
4910rm -f conftest.defs
4911
4912
4913# Without the "./", some shells look in PATH for config.status.
4914: ${CONFIG_STATUS=./config.status}
4915
4916echo creating $CONFIG_STATUS
4917rm -f $CONFIG_STATUS
4918cat > $CONFIG_STATUS <<EOF
4919#! /bin/sh
4920# Generated automatically by configure.
4921# Run this file to recreate the current configuration.
4922# This directory was configured as follows,
4923# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4924#
4925# $0 $ac_configure_args
4926#
4927# Compiler output produced by configure, useful for debugging
4928# configure, is in ./config.log if it exists.
4929
4930ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4931for ac_option
4932do
4933 case "\$ac_option" in
4934 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4935 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4936 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4937 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004938 echo "$CONFIG_STATUS generated by autoconf version 2.13"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004939 exit 0 ;;
4940 -help | --help | --hel | --he | --h)
4941 echo "\$ac_cs_usage"; exit 0 ;;
4942 *) echo "\$ac_cs_usage"; exit 1 ;;
4943 esac
4944done
4945
4946ac_given_srcdir=$srcdir
4947ac_given_INSTALL="$INSTALL"
4948
Theodore Ts'o44339bd1997-10-15 02:47:20 +00004949trap 'rm -fr `echo "MCONFIG Makefile util/Makefile util/subst.conf lib/et/Makefile
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004950 lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile lib/uuid/Makefile
4951 misc/Makefile e2fsck/Makefile debugfs/Makefile tests/Makefile
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004952 tests/progs/Makefile $rmakefile doc/Makefile
4953 intl/Makefile po/Makefile.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004954EOF
4955cat >> $CONFIG_STATUS <<EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004956
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004957# Protect against being on the right side of a sed subst in config.status.
4958sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4959 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004960$ac_vpsub
4961$extrasub
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004962s%@SHELL@%$SHELL%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004963s%@CFLAGS@%$CFLAGS%g
4964s%@CPPFLAGS@%$CPPFLAGS%g
4965s%@CXXFLAGS@%$CXXFLAGS%g
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004966s%@FFLAGS@%$FFLAGS%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004967s%@DEFS@%$DEFS%g
4968s%@LDFLAGS@%$LDFLAGS%g
4969s%@LIBS@%$LIBS%g
4970s%@exec_prefix@%$exec_prefix%g
4971s%@prefix@%$prefix%g
4972s%@program_transform_name@%$program_transform_name%g
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004973s%@bindir@%$bindir%g
4974s%@sbindir@%$sbindir%g
4975s%@libexecdir@%$libexecdir%g
4976s%@datadir@%$datadir%g
4977s%@sysconfdir@%$sysconfdir%g
4978s%@sharedstatedir@%$sharedstatedir%g
4979s%@localstatedir@%$localstatedir%g
4980s%@libdir@%$libdir%g
4981s%@includedir@%$includedir%g
4982s%@oldincludedir@%$oldincludedir%g
4983s%@infodir@%$infodir%g
4984s%@mandir@%$mandir%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004985/@MCONFIG@/r $MCONFIG
4986s%@MCONFIG@%%g
Theodore Ts'o74becf31997-04-26 14:37:06 +00004987s%@E2FSPROGS_YEAR@%$E2FSPROGS_YEAR%g
4988s%@E2FSPROGS_MONTH@%$E2FSPROGS_MONTH%g
4989s%@E2FSPROGS_VERSION@%$E2FSPROGS_VERSION%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004990s%@host@%$host%g
4991s%@host_alias@%$host_alias%g
4992s%@host_cpu@%$host_cpu%g
4993s%@host_vendor@%$host_vendor%g
4994s%@host_os@%$host_os%g
Theodore Ts'o74becf31997-04-26 14:37:06 +00004995s%@CC@%$CC%g
4996s%@LD@%$LD%g
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004997s%@CPP@%$CPP%g
4998s%@LINUX_INCLUDE@%$LINUX_INCLUDE%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004999s%@DLL_CMT@%$DLL_CMT%g
5000/@MAKEFILE_DLL@/r $MAKEFILE_DLL
5001s%@MAKEFILE_DLL@%%g
5002s%@ELF_CMT@%$ELF_CMT%g
5003/@MAKEFILE_ELF@/r $MAKEFILE_ELF
5004s%@MAKEFILE_ELF@%%g
5005s%@BSDLIB_CMT@%$BSDLIB_CMT%g
5006/@MAKEFILE_BSDLIB@/r $MAKEFILE_BSDLIB
5007s%@MAKEFILE_BSDLIB@%%g
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005008s%@PROFILE_CMT@%$PROFILE_CMT%g
5009/@MAKEFILE_PROFILE@/r $MAKEFILE_PROFILE
5010s%@MAKEFILE_PROFILE@%%g
5011s%@CHECKER_CMT@%$CHECKER_CMT%g
5012/@MAKEFILE_CHECKER@/r $MAKEFILE_CHECKER
5013s%@MAKEFILE_CHECKER@%%g
5014s%@LIB_EXT@%$LIB_EXT%g
5015s%@STATIC_LIB_EXT@%$STATIC_LIB_EXT%g
5016s%@PROFILED_LIB_EXT@%$PROFILED_LIB_EXT%g
5017s%@DEBUGFS_CMT@%$DEBUGFS_CMT%g
5018s%@IMAGER_CMT@%$IMAGER_CMT%g
5019s%@RESIZER_CMT@%$RESIZER_CMT%g
5020s%@E2FSCK_TYPE@%$E2FSCK_TYPE%g
5021s%@FSCK_PROG@%$FSCK_PROG%g
5022s%@FSCK_MAN@%$FSCK_MAN%g
5023/@MAKEFILE_LIBRARY@/r $MAKEFILE_LIBRARY
5024s%@MAKEFILE_LIBRARY@%%g
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005025s%@PACKAGE@%$PACKAGE%g
5026s%@VERSION@%$VERSION%g
5027s%@SET_MAKE@%$SET_MAKE%g
5028s%@RANLIB@%$RANLIB%g
5029s%@ALLOCA@%$ALLOCA%g
5030s%@USE_NLS@%$USE_NLS%g
5031s%@MSGFMT@%$MSGFMT%g
5032s%@GMSGFMT@%$GMSGFMT%g
5033s%@XGETTEXT@%$XGETTEXT%g
5034s%@GENCAT@%$GENCAT%g
5035s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
5036s%@CATALOGS@%$CATALOGS%g
5037s%@CATOBJEXT@%$CATOBJEXT%g
5038s%@DATADIRNAME@%$DATADIRNAME%g
5039s%@GMOFILES@%$GMOFILES%g
5040s%@INSTOBJEXT@%$INSTOBJEXT%g
5041s%@INTLDEPS@%$INTLDEPS%g
5042s%@INTLLIBS@%$INTLLIBS%g
5043s%@INTLOBJS@%$INTLOBJS%g
5044s%@POFILES@%$POFILES%g
5045s%@POSUB@%$POSUB%g
5046s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
5047s%@GT_NO@%$GT_NO%g
5048s%@GT_YES@%$GT_YES%g
5049s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
5050s%@l@%$l%g
Theodore Ts'o74becf31997-04-26 14:37:06 +00005051s%@BINARY_TYPE@%$BINARY_TYPE%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005052s%@LN@%$LN%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005053s%@LN_S@%$LN_S%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005054s%@MV@%$MV%g
5055s%@CP@%$CP%g
5056s%@RM@%$RM%g
5057s%@CHMOD@%$CHMOD%g
5058s%@AWK@%$AWK%g
5059s%@SED@%$SED%g
Theodore Ts'o9d564f71999-07-03 20:25:58 +00005060s%@PERL@%$PERL%g
Theodore Ts'o250f79f2001-05-19 22:02:22 +00005061s%@LDCONFIG@%$LDCONFIG%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005062s%@build@%$build%g
5063s%@build_alias@%$build_alias%g
5064s%@build_cpu@%$build_cpu%g
5065s%@build_vendor@%$build_vendor%g
5066s%@build_os@%$build_os%g
5067s%@AR@%$AR%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005068s%@STRIP@%$STRIP%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005069s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00005070s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005071s%@INSTALL_DATA@%$INSTALL_DATA%g
Theodore Ts'o6c133521999-07-03 20:37:03 +00005072s%@BUILD_CC@%$BUILD_CC%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005073s%@SIZEOF_SHORT@%$SIZEOF_SHORT%g
5074s%@SIZEOF_INT@%$SIZEOF_INT%g
5075s%@SIZEOF_LONG@%$SIZEOF_LONG%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005076s%@SIZEOF_LONG_LONG@%$SIZEOF_LONG_LONG%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005077s%@SOCKET_LIB@%$SOCKET_LIB%g
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00005078s%@root_prefix@%$root_prefix%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005079s%@LDFLAG_STATIC@%$LDFLAG_STATIC%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005080s%@SS_DIR@%$SS_DIR%g
5081s%@ET_DIR@%$ET_DIR%g
5082s%@DO_TEST_SUITE@%$DO_TEST_SUITE%g
5083
5084CEOF
5085EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005086
5087cat >> $CONFIG_STATUS <<\EOF
5088
5089# Split the substitutions into bite-sized pieces for seds with
5090# small command number limits, like on Digital OSF/1 and HP-UX.
5091ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5092ac_file=1 # Number of current file.
5093ac_beg=1 # First line for current file.
5094ac_end=$ac_max_sed_cmds # Line after last line for current file.
5095ac_more_lines=:
5096ac_sed_cmds=""
5097while $ac_more_lines; do
5098 if test $ac_beg -gt 1; then
5099 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5100 else
5101 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5102 fi
5103 if test ! -s conftest.s$ac_file; then
5104 ac_more_lines=false
5105 rm -f conftest.s$ac_file
5106 else
5107 if test -z "$ac_sed_cmds"; then
5108 ac_sed_cmds="sed -f conftest.s$ac_file"
5109 else
5110 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5111 fi
5112 ac_file=`expr $ac_file + 1`
5113 ac_beg=$ac_end
5114 ac_end=`expr $ac_end + $ac_max_sed_cmds`
5115 fi
5116done
5117if test -z "$ac_sed_cmds"; then
5118 ac_sed_cmds=cat
5119fi
5120EOF
5121
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005122cat >> $CONFIG_STATUS <<EOF
5123
Theodore Ts'o44339bd1997-10-15 02:47:20 +00005124CONFIG_FILES=\${CONFIG_FILES-"MCONFIG Makefile util/Makefile util/subst.conf lib/et/Makefile
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005125 lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile lib/uuid/Makefile
5126 misc/Makefile e2fsck/Makefile debugfs/Makefile tests/Makefile
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005127 tests/progs/Makefile $rmakefile doc/Makefile
5128 intl/Makefile po/Makefile.in"}
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005129EOF
5130cat >> $CONFIG_STATUS <<\EOF
5131for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005132 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005133 case "$ac_file" in
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005134 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005135 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5136 *) ac_file_in="${ac_file}.in" ;;
5137 esac
5138
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005139 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005140
5141 # Remove last slash and all that follows it. Not all systems have dirname.
5142 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5143 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5144 # The file is in a subdirectory.
5145 test ! -d "$ac_dir" && mkdir "$ac_dir"
5146 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5147 # A "../" for each directory in $ac_dir_suffix.
5148 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5149 else
5150 ac_dir_suffix= ac_dots=
5151 fi
5152
5153 case "$ac_given_srcdir" in
5154 .) srcdir=.
5155 if test -z "$ac_dots"; then top_srcdir=.
5156 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5157 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5158 *) # Relative path.
5159 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5160 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5161 esac
5162
5163 case "$ac_given_INSTALL" in
5164 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5165 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5166 esac
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005167
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005168 echo creating "$ac_file"
5169 rm -f "$ac_file"
5170 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5171 case "$ac_file" in
5172 *Makefile*) ac_comsub="1i\\
5173# $configure_input" ;;
5174 *) ac_comsub= ;;
5175 esac
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005176
5177 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 +00005178 sed -e "$ac_comsub
5179s%@configure_input@%$configure_input%g
5180s%@srcdir@%$srcdir%g
5181s%@top_srcdir@%$top_srcdir%g
5182s%@INSTALL@%$INSTALL%g
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005183" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005184fi; done
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005185rm -f conftest.s*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005186
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005187EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005188
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005189cat >> $CONFIG_STATUS <<EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005190ac_sources="$nls_cv_header_libgt"
5191ac_dests="$nls_cv_header_intl"
5192EOF
5193
5194cat >> $CONFIG_STATUS <<\EOF
5195srcdir=$ac_given_srcdir
5196while test -n "$ac_sources"; do
5197 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
5198 set $ac_sources; ac_source=$1; shift; ac_sources=$*
5199
5200 echo "linking $srcdir/$ac_source to $ac_dest"
5201
5202 if test ! -r $srcdir/$ac_source; then
5203 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
5204 fi
5205 rm -f $ac_dest
5206
5207 # Make relative symlinks.
5208 # Remove last slash and all that follows it. Not all systems have dirname.
5209 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
5210 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
5211 # The dest file is in a subdirectory.
5212 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
5213 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
5214 # A "../" for each directory in $ac_dest_dir_suffix.
5215 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
5216 else
5217 ac_dest_dir_suffix= ac_dots=
5218 fi
5219
5220 case "$srcdir" in
5221 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
5222 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
5223 esac
5224
5225 # Make a symlink if possible; otherwise try a hard link.
5226 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
5227 ln $srcdir/$ac_source $ac_dest; then :
5228 else
5229 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
5230 fi
5231done
5232EOF
5233cat >> $CONFIG_STATUS <<EOF
5234
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005235
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005236EOF
5237cat >> $CONFIG_STATUS <<\EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005238case "$CONFIG_FILES" in *po/Makefile.in*)
5239 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
5240 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005241
5242exit 0
5243EOF
5244chmod +x $CONFIG_STATUS
5245rm -fr confdefs* $ac_clean_files
5246test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
5247