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