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