3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --with-cc=COMPILER select compiler to use"
17 --with-linker=LINKER select linker to use"
19 --with-ccopts=CCOPTS select compiler command line options"
21 --with-ldopts=LDOPTS select linker command line options"
23 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root"
25 --enable-compression enable EXPERIMENTAL compression support"
27 --enable-dll-shlibs select DLL libraries"
29 --enable-elf-shlibs select ELF shared libraries"
31 --enable-bsd-shlibs select BSD shared libraries"
33 --enable-nls Turn on Native Language Support"
35 --with-included-gettext use the GNU gettext library included here"
37 --with-catgets use catgets functions if available"
39 --enable-profile build profiling libraries"
41 --enable-checker build checker libraries"
43 --enable-gcc-wall enable GCC anal warnings (DON'T USE IN PRODUCTION)"
45 --enable-dynamic-e2fsck build e2fsck dynamically"
47 --enable-fsck build fsck wrapper program"
49 --enable-old-bitops Use old (non-standard but native) bitmask operations"
51 # Initialize some variables set by options.
52 # The variables have the same names as the options, with
53 # dashes changed to underlines.
55 cache_file=./config.cache
64 program_transform_name=s,x,x,
72 bindir='${exec_prefix}/bin'
73 sbindir='${exec_prefix}/sbin'
74 libexecdir='${exec_prefix}/libexec'
75 datadir='${prefix}/share'
76 sysconfdir='${prefix}/etc'
77 sharedstatedir='${prefix}/com'
78 localstatedir='${prefix}/var'
79 libdir='${exec_prefix}/lib'
80 includedir='${prefix}/include'
81 oldincludedir='/usr/include'
82 infodir='${prefix}/info'
83 mandir='${prefix}/man'
85 # Initialize some other variables.
88 SHELL=${CONFIG_SHELL-/bin/sh}
89 # Maximum number of lines to put in a shell here document.
96 # If the previous option needs an argument, assign it.
97 if test -n "$ac_prev"; then
98 eval "$ac_prev=\$ac_option"
104 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
108 # Accept the important Cygnus configure options, so we can diagnose typos.
112 -bindir | --bindir | --bindi | --bind | --bin | --bi)
114 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
115 bindir="$ac_optarg" ;;
117 -build | --build | --buil | --bui | --bu)
119 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
120 build="$ac_optarg" ;;
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" ;;
129 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
131 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
133 datadir="$ac_optarg" ;;
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; }
141 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
142 eval "enable_${ac_feature}=no" ;;
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; }
150 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
155 eval "enable_${ac_feature}='$ac_optarg'" ;;
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" ;;
166 -gas | --gas | --ga | --g)
167 # Obsolete; use --with-gas.
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.
174 Usage: configure [options] [host]
175 Options: [defaults in brackets after descriptions]
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
182 Directory and file names:
183 --prefix=PREFIX install architecture-independent files in PREFIX
185 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
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
192 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
193 --sharedstatedir=DIR modifiable architecture-independent data in DIR
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]
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
204 --program-transform-name=PROGRAM
205 run sed PROGRAM on installed program names
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]
212 Features 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
220 if test -n "$ac_help"; then
221 echo "--enable and --with options recognized:$ac_help"
225 -host | --host | --hos | --ho)
227 -host=* | --host=* | --hos=* | --ho=*)
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" ;;
237 -infodir | --infodir | --infodi | --infod | --info | --inf)
239 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
240 infodir="$ac_optarg" ;;
242 -libdir | --libdir | --libdi | --libd)
244 -libdir=* | --libdir=* | --libdi=* | --libd=*)
245 libdir="$ac_optarg" ;;
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" ;;
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" ;;
263 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
265 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
266 mandir="$ac_optarg" ;;
269 # Obsolete; use --without-fp.
272 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
276 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
277 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
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" ;;
289 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
291 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
292 prefix="$ac_optarg" ;;
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" ;;
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" ;;
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" ;;
325 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
326 | -silent | --silent | --silen | --sile | --sil)
329 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
331 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
333 sbindir="$ac_optarg" ;;
335 -sharedstatedir | --sharedstatedir | --sharedstatedi \
336 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
337 | --sharedst | --shareds | --shared | --share | --shar \
339 ac_prev=sharedstatedir ;;
340 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
341 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
342 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
344 sharedstatedir="$ac_optarg" ;;
346 -site | --site | --sit)
348 -site=* | --site=* | --sit=*)
351 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
353 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
354 srcdir="$ac_optarg" ;;
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" ;;
363 -target | --target | --targe | --targ | --tar | --ta | --t)
365 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
366 target="$ac_optarg" ;;
368 -v | -verbose | --verbose | --verbos | --verbo | --verb)
371 -version | --version | --versio | --versi | --vers)
372 echo "configure generated by autoconf version 2.13"
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; }
381 ac_package=`echo $ac_package| sed 's/-/_/g'`
386 eval "with_${ac_package}='$ac_optarg'" ;;
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; }
394 ac_package=`echo $ac_package| sed 's/-/_/g'`
395 eval "with_${ac_package}=no" ;;
398 # Obsolete; use --with-x.
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" ;;
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" ;;
415 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
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
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; }
431 if test -n "$ac_prev"; then
432 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
435 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
437 # File descriptor usage:
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
445 if test "$silent" = yes; then
453 This file contains any messages produced by compilers while
454 running configure, to aid debugging if configure makes a mistake.
457 # Strip out --no-create and --no-recursion so they do not pile up.
458 # Also quote any args containing shell metacharacters.
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" ;;
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.
478 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
479 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
480 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
481 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
483 # confdefs.h avoids OS command line length limits that DEFS can exceed.
484 rm -rf conftest* confdefs.h
485 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
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.
490 ac_unique_file=version.h
492 # Find the source files, if location was not specified.
493 if test -z "$srcdir"; then
494 ac_srcdir_defaulted=yes
495 # Try the directory containing this script, then its parent.
497 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
498 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
500 if test ! -r $srcdir/$ac_unique_file; then
504 ac_srcdir_defaulted=no
506 if 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; }
510 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
513 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
515 # Prefer explicitly selected file to automatically selected ones.
516 if test -z "$CONFIG_SITE"; then
517 if test "x$prefix" != xNONE; then
518 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
520 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
523 for ac_site_file in $CONFIG_SITE; do
524 if test -r "$ac_site_file"; then
525 echo "loading site script $ac_site_file"
530 if test -r "$cache_file"; then
531 echo "loading cache $cache_file"
534 echo "creating cache $cache_file"
539 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
540 ac_cpp='$CPP $CPPFLAGS'
541 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
542 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
543 cross_compiling=$ac_cv_prog_cc_cross
547 if (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
556 ac_n= ac_c='\c' ac_t=
564 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
565 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
566 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
568 MONTH=`echo $DATE | awk -F- '{print $2}'`
569 YEAR=`echo $DATE | awk -F- '{print $3}'`
571 if expr $YEAR ">" 1900 > /dev/null ; then
573 elif expr $YEAR ">" 90 >/dev/null ; then
574 E2FSPROGS_YEAR=19$YEAR
576 E2FSPROGS_YEAR=20$YEAR
580 Jan) E2FSPROGS_MONTH="January" ;;
581 Feb) E2FSPROGS_MONTH="February" ;;
582 Mar) E2FSPROGS_MONTH="March" ;;
583 Apr) E2FSPROGS_MONTH="April" ;;
584 May) E2FSPROGS_MONTH="May" ;;
585 Jun) E2FSPROGS_MONTH="June" ;;
586 Jul) E2FSPROGS_MONTH="July" ;;
587 Aug) E2FSPROGS_MONTH="August" ;;
588 Sep) E2FSPROGS_MONTH="September" ;;
589 Oct) E2FSPROGS_MONTH="October" ;;
590 Nov) E2FSPROGS_MONTH="November" ;;
591 Dec) E2FSPROGS_MONTH="December" ;;
592 *) echo "Unknown month $MONTH??" ;;
595 unset DATE MONTH YEAR
596 echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION"
597 echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}"
603 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
604 if test -f $ac_dir/install-sh; then
606 ac_install_sh="$ac_aux_dir/install-sh -c"
608 elif test -f $ac_dir/install.sh; then
610 ac_install_sh="$ac_aux_dir/install.sh -c"
614 if 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; }
617 ac_config_guess=$ac_aux_dir/config.guess
618 ac_config_sub=$ac_aux_dir/config.sub
619 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
622 # Make sure we can run config.sub.
623 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
624 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
627 echo $ac_n "checking host system type""... $ac_c" 1>&6
628 echo "configure:629: checking host system type" >&5
631 case "$host_alias" in
635 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
636 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
638 *) host_alias=$nonopt ;;
642 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
643 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
644 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
645 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
646 echo "$ac_t""$host" 1>&6
648 # Check whether --with-cc or --without-cc was given.
649 if test "${with_cc+set}" = set; then
651 echo "$ac_t""CC=$withval" 1>&6
654 if test -z "$CC" ; then CC=cc; fi
655 echo "$ac_t""CC defaults to $CC" 1>&6
659 # Extract the first word of "gcc", so it can be a program name with args.
660 set dummy gcc; ac_word=$2
661 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
662 echo "configure:663: checking for $ac_word" >&5
663 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
664 echo $ac_n "(cached) $ac_c" 1>&6
666 if test -n "$CC"; then
667 ac_cv_prog_CC="$CC" # Let the user override the test.
669 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
671 for ac_dir in $ac_dummy; do
672 test -z "$ac_dir" && ac_dir=.
673 if test -f $ac_dir/$ac_word; then
682 if test -n "$CC"; then
683 echo "$ac_t""$CC" 1>&6
685 echo "$ac_t""no" 1>&6
688 if test -z "$CC"; then
689 # Extract the first word of "cc", so it can be a program name with args.
690 set dummy cc; ac_word=$2
691 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
692 echo "configure:693: checking for $ac_word" >&5
693 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
694 echo $ac_n "(cached) $ac_c" 1>&6
696 if test -n "$CC"; then
697 ac_cv_prog_CC="$CC" # Let the user override the test.
699 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
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
714 if 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
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.
723 set dummy "$ac_dir/$ac_word" "$@"
731 if test -n "$CC"; then
732 echo "$ac_t""$CC" 1>&6
734 echo "$ac_t""no" 1>&6
737 if test -z "$CC"; then
740 # Extract the first word of "cl", so it can be a program name with args.
741 set dummy cl; ac_word=$2
742 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
743 echo "configure:744: checking for $ac_word" >&5
744 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
745 echo $ac_n "(cached) $ac_c" 1>&6
747 if test -n "$CC"; then
748 ac_cv_prog_CC="$CC" # Let the user override the test.
750 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
752 for ac_dir in $ac_dummy; do
753 test -z "$ac_dir" && ac_dir=.
754 if test -f $ac_dir/$ac_word; then
763 if test -n "$CC"; then
764 echo "$ac_t""$CC" 1>&6
766 echo "$ac_t""no" 1>&6
771 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
774 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
775 echo "configure:776: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
778 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
779 ac_cpp='$CPP $CPPFLAGS'
780 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
781 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
782 cross_compiling=$ac_cv_prog_cc_cross
784 cat > conftest.$ac_ext << EOF
786 #line 787 "configure"
787 #include "confdefs.h"
791 if { (eval echo configure:792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
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
797 ac_cv_prog_cc_cross=yes
800 echo "configure: failed program was:" >&5
801 cat conftest.$ac_ext >&5
802 ac_cv_prog_cc_works=no
806 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
807 ac_cpp='$CPP $CPPFLAGS'
808 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
809 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
810 cross_compiling=$ac_cv_prog_cc_cross
812 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
813 if 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; }
816 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
817 echo "configure:818: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
818 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
819 cross_compiling=$ac_cv_prog_cc_cross
821 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
822 echo "configure:823: checking whether we are using GNU C" >&5
823 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
824 echo $ac_n "(cached) $ac_c" 1>&6
826 cat > conftest.c <<EOF
831 if { 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
838 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
840 if test $ac_cv_prog_gcc = yes; then
846 ac_test_CFLAGS="${CFLAGS+set}"
847 ac_save_CFLAGS="$CFLAGS"
849 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
850 echo "configure:851: checking whether ${CC-cc} accepts -g" >&5
851 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
852 echo $ac_n "(cached) $ac_c" 1>&6
854 echo 'void f(){}' > conftest.c
855 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
864 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
865 if test "$ac_test_CFLAGS" = set; then
866 CFLAGS="$ac_save_CFLAGS"
867 elif test $ac_cv_prog_cc_g = yes; then
868 if test "$GCC" = yes; then
874 if test "$GCC" = yes; then
881 # Check whether --with-linker or --without-linker was given.
882 if test "${with_linker+set}" = set; then
883 withval="$with_linker"
884 echo "$ac_t""LD=$withval" 1>&6
887 if test -z "$LD" ; then LD=$CC; fi
888 echo "$ac_t""LD defaults to $LD" 1>&6
892 # Check whether --with-ccopts or --without-ccopts was given.
893 if test "${with_ccopts+set}" = set; then
894 withval="$with_ccopts"
895 echo "$ac_t""CCOPTS is $withval" 1>&6
897 CFLAGS="$CFLAGS $withval"
902 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
903 echo "configure:904: checking how to run the C preprocessor" >&5
904 # On Suns, sometimes $CPP names a directory.
905 if test -n "$CPP" && test -d "$CPP"; then
908 if test -z "$CPP"; then
909 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
910 echo $ac_n "(cached) $ac_c" 1>&6
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.
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
918 #line 919 "configure"
919 #include "confdefs.h"
923 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
924 { (eval echo configure:925: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
925 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
926 if test -z "$ac_err"; then
930 echo "configure: failed program was:" >&5
931 cat conftest.$ac_ext >&5
933 CPP="${CC-cc} -E -traditional-cpp"
934 cat > conftest.$ac_ext <<EOF
935 #line 936 "configure"
936 #include "confdefs.h"
940 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
941 { (eval echo configure:942: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
942 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
943 if test -z "$ac_err"; then
947 echo "configure: failed program was:" >&5
948 cat conftest.$ac_ext >&5
950 CPP="${CC-cc} -nologo -E"
951 cat > conftest.$ac_ext <<EOF
952 #line 953 "configure"
953 #include "confdefs.h"
957 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
958 { (eval echo configure:959: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
959 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
960 if test -z "$ac_err"; then
964 echo "configure: failed program was:" >&5
965 cat conftest.$ac_ext >&5
974 ac_cv_prog_CPP="$CPP"
976 CPP="$ac_cv_prog_CPP"
978 ac_cv_prog_CPP="$CPP"
980 echo "$ac_t""$CPP" 1>&6
982 ac_safe=`echo "linux/fs.h" | sed 'y%./+-%__p_%'`
983 echo $ac_n "checking for linux/fs.h""... $ac_c" 1>&6
984 echo "configure:985: checking for linux/fs.h" >&5
985 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
986 echo $ac_n "(cached) $ac_c" 1>&6
988 cat > conftest.$ac_ext <<EOF
989 #line 990 "configure"
990 #include "confdefs.h"
991 #include <linux/fs.h>
993 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
994 { (eval echo configure:995: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
995 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
996 if test -z "$ac_err"; then
998 eval "ac_cv_header_$ac_safe=yes"
1001 echo "configure: failed program was:" >&5
1002 cat conftest.$ac_ext >&5
1004 eval "ac_cv_header_$ac_safe=no"
1008 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1009 echo "$ac_t""yes" 1>&6
1012 echo "$ac_t""no" 1>&6
1016 if test "$linux_headers" != yes; then
1017 LINUX_INCLUDE='-I$(top_builddir)/include'
1023 # Check whether --with-ldopts or --without-ldopts was given.
1024 if test "${with_ldopts+set}" = set; then
1025 withval="$with_ldopts"
1026 echo "$ac_t""LDFLAGS is $withval" 1>&6
1032 # Check whether --with-root-prefix or --without-root-prefix was given.
1033 if test "${with_root_prefix+set}" = set; then
1034 withval="$with_root_prefix"
1035 root_prefix=$withval
1039 # Check whether --enable-compression or --disable-compression was given.
1040 if test "${enable_compression+set}" = set; then
1041 enableval="$enable_compression"
1042 if test "$enableval" = "no"
1044 echo "Disabling compression support"
1046 cat >> confdefs.h <<\EOF
1047 #define ENABLE_COMPRESSION 1
1050 echo "Enabling compression support"
1051 echo "WARNING: Compression support is experimental"
1055 echo "Disabling compression support by default"
1059 # Check whether --enable-dll-shlibs or --disable-dll-shlibs was given.
1060 if test "${enable_dll_shlibs+set}" = set; then
1061 enableval="$enable_dll_shlibs"
1062 if test "$enableval" = "no"
1065 MAKEFILE_DLL=/dev/null
1066 echo "Disabling DLL shared libraries"
1069 MAKEFILE_DLL=$srcdir/lib/Makefile.dll-lib
1072 echo "Enabling DLL shared libraries"
1076 MAKEFILE_DLL=/dev/null
1078 echo "Disabling DLL shared libraries by default"
1084 # Check whether --enable-elf-shlibs or --disable-elf-shlibs was given.
1085 if test "${enable_elf_shlibs+set}" = set; then
1086 enableval="$enable_elf_shlibs"
1087 if test "$enableval" = "no"
1090 MAKEFILE_ELF=/dev/null
1091 echo "Disabling ELF shared libraries"
1094 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
1097 echo "Enabling ELF shared libraries"
1101 MAKEFILE_ELF=/dev/null
1103 echo "Disabling ELF shared libraries by default"
1109 # Check whether --enable-bsd-shlibs or --disable-bsd-shlibs was given.
1110 if test "${enable_bsd_shlibs+set}" = set; then
1111 enableval="$enable_bsd_shlibs"
1112 if test "$enableval" = "no"
1115 MAKEFILE_BSDLIB=/dev/null
1116 echo "Disabling BSD shared libraries"
1119 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
1121 echo "Enabling BSD shared libraries"
1125 MAKEFILE_BSDLIB=/dev/null
1127 echo "Disabling BSD shared libraries by default"
1134 VERSION="$E2FSPROGS_VERSION"
1135 cat >> confdefs.h <<EOF
1136 #define PACKAGE "$PACKAGE"
1139 cat >> confdefs.h <<EOF
1140 #define VERSION "$VERSION"
1146 ALL_LINGUAS="it nyc"
1147 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1148 echo "configure:1149: checking whether ${MAKE-make} sets \${MAKE}" >&5
1149 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1150 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1151 echo $ac_n "(cached) $ac_c" 1>&6
1153 cat > conftestmake <<\EOF
1155 @echo 'ac_maketemp="${MAKE}"'
1157 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1158 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1159 if test -n "$ac_maketemp"; then
1160 eval ac_cv_prog_make_${ac_make}_set=yes
1162 eval ac_cv_prog_make_${ac_make}_set=no
1166 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1167 echo "$ac_t""yes" 1>&6
1170 echo "$ac_t""no" 1>&6
1171 SET_MAKE="MAKE=${MAKE-make}"
1174 # Extract the first word of "ranlib", so it can be a program name with args.
1175 set dummy ranlib; ac_word=$2
1176 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1177 echo "configure:1178: checking for $ac_word" >&5
1178 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1179 echo $ac_n "(cached) $ac_c" 1>&6
1181 if test -n "$RANLIB"; then
1182 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1184 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1186 for ac_dir in $ac_dummy; do
1187 test -z "$ac_dir" && ac_dir=.
1188 if test -f $ac_dir/$ac_word; then
1189 ac_cv_prog_RANLIB="ranlib"
1194 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1197 RANLIB="$ac_cv_prog_RANLIB"
1198 if test -n "$RANLIB"; then
1199 echo "$ac_t""$RANLIB" 1>&6
1201 echo "$ac_t""no" 1>&6
1204 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1205 echo "configure:1206: checking for POSIXized ISC" >&5
1206 if test -d /etc/conf/kconfig.d &&
1207 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1209 echo "$ac_t""yes" 1>&6
1210 ISC=yes # If later tests want to check for ISC.
1211 cat >> confdefs.h <<\EOF
1212 #define _POSIX_SOURCE 1
1215 if test "$GCC" = yes; then
1221 echo "$ac_t""no" 1>&6
1225 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1226 echo "configure:1227: checking for ANSI C header files" >&5
1227 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1228 echo $ac_n "(cached) $ac_c" 1>&6
1230 cat > conftest.$ac_ext <<EOF
1231 #line 1232 "configure"
1232 #include "confdefs.h"
1238 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1239 { (eval echo configure:1240: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1240 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1241 if test -z "$ac_err"; then
1243 ac_cv_header_stdc=yes
1246 echo "configure: failed program was:" >&5
1247 cat conftest.$ac_ext >&5
1249 ac_cv_header_stdc=no
1253 if test $ac_cv_header_stdc = yes; then
1254 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1255 cat > conftest.$ac_ext <<EOF
1256 #line 1257 "configure"
1257 #include "confdefs.h"
1260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1261 egrep "memchr" >/dev/null 2>&1; then
1265 ac_cv_header_stdc=no
1271 if test $ac_cv_header_stdc = yes; then
1272 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1273 cat > conftest.$ac_ext <<EOF
1274 #line 1275 "configure"
1275 #include "confdefs.h"
1278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1279 egrep "free" >/dev/null 2>&1; then
1283 ac_cv_header_stdc=no
1289 if test $ac_cv_header_stdc = yes; then
1290 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1291 if test "$cross_compiling" = yes; then
1294 cat > conftest.$ac_ext <<EOF
1295 #line 1296 "configure"
1296 #include "confdefs.h"
1298 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1299 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1300 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1301 int main () { int i; for (i = 0; i < 256; i++)
1302 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1306 if { (eval echo configure:1307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1310 echo "configure: failed program was:" >&5
1311 cat conftest.$ac_ext >&5
1313 ac_cv_header_stdc=no
1321 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1322 if test $ac_cv_header_stdc = yes; then
1323 cat >> confdefs.h <<\EOF
1324 #define STDC_HEADERS 1
1329 echo $ac_n "checking for working const""... $ac_c" 1>&6
1330 echo "configure:1331: checking for working const" >&5
1331 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1332 echo $ac_n "(cached) $ac_c" 1>&6
1334 cat > conftest.$ac_ext <<EOF
1335 #line 1336 "configure"
1336 #include "confdefs.h"
1340 /* Ultrix mips cc rejects this. */
1341 typedef int charset[2]; const charset x;
1342 /* SunOS 4.1.1 cc rejects this. */
1343 char const *const *ccp;
1345 /* NEC SVR4.0.2 mips cc rejects this. */
1346 struct point {int x, y;};
1347 static struct point const zero = {0,0};
1348 /* AIX XL C 1.02.0.0 rejects this.
1349 It does not let you subtract one const X* pointer from another in an arm
1350 of an if-expression whose if-part is not a constant expression */
1351 const char *g = "string";
1352 ccp = &g + (g ? g-g : 0);
1353 /* HPUX 7.0 cc rejects these. */
1356 ccp = (char const *const *) p;
1357 { /* SCO 3.2v4 cc rejects this. */
1359 char const *s = 0 ? (char *) 0 : (char const *) 0;
1363 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1365 const int *foo = &x[0];
1368 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1369 typedef const int *iptr;
1373 { /* AIX XL C 1.02.0.0 rejects this saying
1374 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1375 struct s { int j; const int *ap[3]; };
1376 struct s *b; b->j = 5;
1378 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1384 if { (eval echo configure:1385: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1388 echo "configure: failed program was:" >&5
1389 cat conftest.$ac_ext >&5
1396 echo "$ac_t""$ac_cv_c_const" 1>&6
1397 if test $ac_cv_c_const = no; then
1398 cat >> confdefs.h <<\EOF
1404 echo $ac_n "checking for inline""... $ac_c" 1>&6
1405 echo "configure:1406: checking for inline" >&5
1406 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1407 echo $ac_n "(cached) $ac_c" 1>&6
1410 for ac_kw in inline __inline__ __inline; do
1411 cat > conftest.$ac_ext <<EOF
1412 #line 1413 "configure"
1413 #include "confdefs.h"
1419 if { (eval echo configure:1420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1421 ac_cv_c_inline=$ac_kw; break
1423 echo "configure: failed program was:" >&5
1424 cat conftest.$ac_ext >&5
1431 echo "$ac_t""$ac_cv_c_inline" 1>&6
1432 case "$ac_cv_c_inline" in
1434 no) cat >> confdefs.h <<\EOF
1438 *) cat >> confdefs.h <<EOF
1439 #define inline $ac_cv_c_inline
1444 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1445 echo "configure:1446: checking for off_t" >&5
1446 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1447 echo $ac_n "(cached) $ac_c" 1>&6
1449 cat > conftest.$ac_ext <<EOF
1450 #line 1451 "configure"
1451 #include "confdefs.h"
1452 #include <sys/types.h>
1458 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1459 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1461 ac_cv_type_off_t=yes
1469 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1470 if test $ac_cv_type_off_t = no; then
1471 cat >> confdefs.h <<\EOF
1477 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1478 echo "configure:1479: checking for size_t" >&5
1479 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1480 echo $ac_n "(cached) $ac_c" 1>&6
1482 cat > conftest.$ac_ext <<EOF
1483 #line 1484 "configure"
1484 #include "confdefs.h"
1485 #include <sys/types.h>
1491 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1492 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1494 ac_cv_type_size_t=yes
1497 ac_cv_type_size_t=no
1502 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1503 if test $ac_cv_type_size_t = no; then
1504 cat >> confdefs.h <<\EOF
1505 #define size_t unsigned
1510 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1511 # for constant arguments. Useless!
1512 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1513 echo "configure:1514: checking for working alloca.h" >&5
1514 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1515 echo $ac_n "(cached) $ac_c" 1>&6
1517 cat > conftest.$ac_ext <<EOF
1518 #line 1519 "configure"
1519 #include "confdefs.h"
1522 char *p = alloca(2 * sizeof(int));
1525 if { (eval echo configure:1526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1527 ac_cv_header_alloca_h=yes
1529 echo "configure: failed program was:" >&5
1530 cat conftest.$ac_ext >&5
1532 ac_cv_header_alloca_h=no
1537 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1538 if test $ac_cv_header_alloca_h = yes; then
1539 cat >> confdefs.h <<\EOF
1540 #define HAVE_ALLOCA_H 1
1545 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1546 echo "configure:1547: checking for alloca" >&5
1547 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1548 echo $ac_n "(cached) $ac_c" 1>&6
1550 cat > conftest.$ac_ext <<EOF
1551 #line 1552 "configure"
1552 #include "confdefs.h"
1555 # define alloca __builtin_alloca
1558 # include <malloc.h>
1559 # define alloca _alloca
1562 # include <alloca.h>
1567 # ifndef alloca /* predefined by HP cc +Olibcalls */
1576 char *p = (char *) alloca(1);
1579 if { (eval echo configure:1580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1581 ac_cv_func_alloca_works=yes
1583 echo "configure: failed program was:" >&5
1584 cat conftest.$ac_ext >&5
1586 ac_cv_func_alloca_works=no
1591 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1592 if test $ac_cv_func_alloca_works = yes; then
1593 cat >> confdefs.h <<\EOF
1594 #define HAVE_ALLOCA 1
1599 if test $ac_cv_func_alloca_works = no; then
1600 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1601 # that cause trouble. Some versions do not even contain alloca or
1602 # contain a buggy version. If you still want to use their alloca,
1603 # use ar to extract alloca.o from them instead of compiling alloca.c.
1604 ALLOCA=alloca.${ac_objext}
1605 cat >> confdefs.h <<\EOF
1610 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1611 echo "configure:1612: checking whether alloca needs Cray hooks" >&5
1612 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1613 echo $ac_n "(cached) $ac_c" 1>&6
1615 cat > conftest.$ac_ext <<EOF
1616 #line 1617 "configure"
1617 #include "confdefs.h"
1618 #if defined(CRAY) && ! defined(CRAY2)
1625 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1626 egrep "webecray" >/dev/null 2>&1; then
1637 echo "$ac_t""$ac_cv_os_cray" 1>&6
1638 if test $ac_cv_os_cray = yes; then
1639 for ac_func in _getb67 GETB67 getb67; do
1640 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1641 echo "configure:1642: checking for $ac_func" >&5
1642 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1643 echo $ac_n "(cached) $ac_c" 1>&6
1645 cat > conftest.$ac_ext <<EOF
1646 #line 1647 "configure"
1647 #include "confdefs.h"
1648 /* System header to define __stub macros and hopefully few prototypes,
1649 which can conflict with char $ac_func(); below. */
1651 /* Override any gcc2 internal prototype to avoid an error. */
1652 /* We use char because int might match the return type of a gcc2
1653 builtin and then its argument prototype would still apply. */
1658 /* The GNU C library defines this for functions which it implements
1659 to always fail with ENOSYS. Some functions are actually named
1660 something starting with __ and the normal name is an alias. */
1661 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1669 if { (eval echo configure:1670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1671 eval "ac_cv_func_$ac_func=yes"
1673 echo "configure: failed program was:" >&5
1674 cat conftest.$ac_ext >&5
1676 eval "ac_cv_func_$ac_func=no"
1681 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1682 echo "$ac_t""yes" 1>&6
1683 cat >> confdefs.h <<EOF
1684 #define CRAY_STACKSEG_END $ac_func
1689 echo "$ac_t""no" 1>&6
1695 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1696 echo "configure:1697: checking stack direction for C alloca" >&5
1697 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1698 echo $ac_n "(cached) $ac_c" 1>&6
1700 if test "$cross_compiling" = yes; then
1701 ac_cv_c_stack_direction=0
1703 cat > conftest.$ac_ext <<EOF
1704 #line 1705 "configure"
1705 #include "confdefs.h"
1706 find_stack_direction ()
1708 static char *addr = 0;
1713 return find_stack_direction ();
1716 return (&dummy > addr) ? 1 : -1;
1720 exit (find_stack_direction() < 0);
1723 if { (eval echo configure:1724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1725 ac_cv_c_stack_direction=1
1727 echo "configure: failed program was:" >&5
1728 cat conftest.$ac_ext >&5
1730 ac_cv_c_stack_direction=-1
1737 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1738 cat >> confdefs.h <<EOF
1739 #define STACK_DIRECTION $ac_cv_c_stack_direction
1744 for ac_hdr in unistd.h
1746 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1747 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1748 echo "configure:1749: checking for $ac_hdr" >&5
1749 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1750 echo $ac_n "(cached) $ac_c" 1>&6
1752 cat > conftest.$ac_ext <<EOF
1753 #line 1754 "configure"
1754 #include "confdefs.h"
1757 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1758 { (eval echo configure:1759: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1759 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1760 if test -z "$ac_err"; then
1762 eval "ac_cv_header_$ac_safe=yes"
1765 echo "configure: failed program was:" >&5
1766 cat conftest.$ac_ext >&5
1768 eval "ac_cv_header_$ac_safe=no"
1772 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1773 echo "$ac_t""yes" 1>&6
1774 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1775 cat >> confdefs.h <<EOF
1776 #define $ac_tr_hdr 1
1780 echo "$ac_t""no" 1>&6
1784 for ac_func in getpagesize
1786 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1787 echo "configure:1788: checking for $ac_func" >&5
1788 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1789 echo $ac_n "(cached) $ac_c" 1>&6
1791 cat > conftest.$ac_ext <<EOF
1792 #line 1793 "configure"
1793 #include "confdefs.h"
1794 /* System header to define __stub macros and hopefully few prototypes,
1795 which can conflict with char $ac_func(); below. */
1797 /* Override any gcc2 internal prototype to avoid an error. */
1798 /* We use char because int might match the return type of a gcc2
1799 builtin and then its argument prototype would still apply. */
1804 /* The GNU C library defines this for functions which it implements
1805 to always fail with ENOSYS. Some functions are actually named
1806 something starting with __ and the normal name is an alias. */
1807 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1815 if { (eval echo configure:1816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1817 eval "ac_cv_func_$ac_func=yes"
1819 echo "configure: failed program was:" >&5
1820 cat conftest.$ac_ext >&5
1822 eval "ac_cv_func_$ac_func=no"
1827 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1828 echo "$ac_t""yes" 1>&6
1829 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1830 cat >> confdefs.h <<EOF
1831 #define $ac_tr_func 1
1835 echo "$ac_t""no" 1>&6
1839 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1840 echo "configure:1841: checking for working mmap" >&5
1841 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1842 echo $ac_n "(cached) $ac_c" 1>&6
1844 if test "$cross_compiling" = yes; then
1845 ac_cv_func_mmap_fixed_mapped=no
1847 cat > conftest.$ac_ext <<EOF
1848 #line 1849 "configure"
1849 #include "confdefs.h"
1851 /* Thanks to Mike Haertel and Jim Avera for this test.
1852 Here is a matrix of mmap possibilities:
1853 mmap private not fixed
1854 mmap private fixed at somewhere currently unmapped
1855 mmap private fixed at somewhere already mapped
1856 mmap shared not fixed
1857 mmap shared fixed at somewhere currently unmapped
1858 mmap shared fixed at somewhere already mapped
1859 For private mappings, we should verify that changes cannot be read()
1860 back from the file, nor mmap's back from the file at a different
1861 address. (There have been systems where private was not correctly
1862 implemented like the infamous i386 svr4.0, and systems where the
1863 VM page cache was not coherent with the filesystem buffer cache
1864 like early versions of FreeBSD and possibly contemporary NetBSD.)
1865 For shared mappings, we should conversely verify that changes get
1866 propogated back to all the places they're supposed to be.
1868 Grep wants private fixed already mapped.
1869 The main things grep needs to know about mmap are:
1870 * does it exist and is it safe to write into the mmap'd area
1871 * how to use it (BSD variants) */
1872 #include <sys/types.h>
1874 #include <sys/mman.h>
1876 /* This mess was copied from the GNU getpagesize.h. */
1877 #ifndef HAVE_GETPAGESIZE
1878 # ifdef HAVE_UNISTD_H
1879 # include <unistd.h>
1882 /* Assume that all systems that can run configure have sys/param.h. */
1883 # ifndef HAVE_SYS_PARAM_H
1884 # define HAVE_SYS_PARAM_H 1
1887 # ifdef _SC_PAGESIZE
1888 # define getpagesize() sysconf(_SC_PAGESIZE)
1889 # else /* no _SC_PAGESIZE */
1890 # ifdef HAVE_SYS_PARAM_H
1891 # include <sys/param.h>
1892 # ifdef EXEC_PAGESIZE
1893 # define getpagesize() EXEC_PAGESIZE
1894 # else /* no EXEC_PAGESIZE */
1896 # define getpagesize() NBPG * CLSIZE
1899 # endif /* no CLSIZE */
1900 # else /* no NBPG */
1902 # define getpagesize() NBPC
1903 # else /* no NBPC */
1905 # define getpagesize() PAGESIZE
1906 # endif /* PAGESIZE */
1907 # endif /* no NBPC */
1908 # endif /* no NBPG */
1909 # endif /* no EXEC_PAGESIZE */
1910 # else /* no HAVE_SYS_PARAM_H */
1911 # define getpagesize() 8192 /* punt totally */
1912 # endif /* no HAVE_SYS_PARAM_H */
1913 # endif /* no _SC_PAGESIZE */
1915 #endif /* no HAVE_GETPAGESIZE */
1918 extern "C" { void *malloc(unsigned); }
1926 char *data, *data2, *data3;
1930 pagesize = getpagesize();
1933 * First, make a file with some known garbage in it.
1935 data = malloc(pagesize);
1938 for (i = 0; i < pagesize; ++i)
1939 *(data + i) = rand();
1941 fd = creat("conftestmmap", 0600);
1944 if (write(fd, data, pagesize) != pagesize)
1949 * Next, try to mmap the file at a fixed address which
1950 * already has something else allocated at it. If we can,
1951 * also make sure that we see the same garbage.
1953 fd = open("conftestmmap", O_RDWR);
1956 data2 = malloc(2 * pagesize);
1959 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1960 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1961 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1963 for (i = 0; i < pagesize; ++i)
1964 if (*(data + i) != *(data2 + i))
1968 * Finally, make sure that changes to the mapped area
1969 * do not percolate back to the file as seen by read().
1970 * (This is a bug on some variants of i386 svr4.0.)
1972 for (i = 0; i < pagesize; ++i)
1973 *(data2 + i) = *(data2 + i) + 1;
1974 data3 = malloc(pagesize);
1977 if (read(fd, data3, pagesize) != pagesize)
1979 for (i = 0; i < pagesize; ++i)
1980 if (*(data + i) != *(data3 + i))
1983 unlink("conftestmmap");
1988 if { (eval echo configure:1989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1990 ac_cv_func_mmap_fixed_mapped=yes
1992 echo "configure: failed program was:" >&5
1993 cat conftest.$ac_ext >&5
1995 ac_cv_func_mmap_fixed_mapped=no
2002 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2003 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2004 cat >> confdefs.h <<\EOF
2011 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2012 unistd.h sys/param.h
2014 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2015 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2016 echo "configure:2017: checking for $ac_hdr" >&5
2017 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2018 echo $ac_n "(cached) $ac_c" 1>&6
2020 cat > conftest.$ac_ext <<EOF
2021 #line 2022 "configure"
2022 #include "confdefs.h"
2025 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2026 { (eval echo configure:2027: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2027 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2028 if test -z "$ac_err"; then
2030 eval "ac_cv_header_$ac_safe=yes"
2033 echo "configure: failed program was:" >&5
2034 cat conftest.$ac_ext >&5
2036 eval "ac_cv_header_$ac_safe=no"
2040 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2041 echo "$ac_t""yes" 1>&6
2042 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2043 cat >> confdefs.h <<EOF
2044 #define $ac_tr_hdr 1
2048 echo "$ac_t""no" 1>&6
2052 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2053 strdup __argz_count __argz_stringify __argz_next
2055 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2056 echo "configure:2057: checking for $ac_func" >&5
2057 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2058 echo $ac_n "(cached) $ac_c" 1>&6
2060 cat > conftest.$ac_ext <<EOF
2061 #line 2062 "configure"
2062 #include "confdefs.h"
2063 /* System header to define __stub macros and hopefully few prototypes,
2064 which can conflict with char $ac_func(); below. */
2066 /* Override any gcc2 internal prototype to avoid an error. */
2067 /* We use char because int might match the return type of a gcc2
2068 builtin and then its argument prototype would still apply. */
2073 /* The GNU C library defines this for functions which it implements
2074 to always fail with ENOSYS. Some functions are actually named
2075 something starting with __ and the normal name is an alias. */
2076 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2084 if { (eval echo configure:2085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2086 eval "ac_cv_func_$ac_func=yes"
2088 echo "configure: failed program was:" >&5
2089 cat conftest.$ac_ext >&5
2091 eval "ac_cv_func_$ac_func=no"
2096 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2097 echo "$ac_t""yes" 1>&6
2098 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2099 cat >> confdefs.h <<EOF
2100 #define $ac_tr_func 1
2104 echo "$ac_t""no" 1>&6
2109 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2110 for ac_func in stpcpy
2112 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2113 echo "configure:2114: checking for $ac_func" >&5
2114 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2115 echo $ac_n "(cached) $ac_c" 1>&6
2117 cat > conftest.$ac_ext <<EOF
2118 #line 2119 "configure"
2119 #include "confdefs.h"
2120 /* System header to define __stub macros and hopefully few prototypes,
2121 which can conflict with char $ac_func(); below. */
2123 /* Override any gcc2 internal prototype to avoid an error. */
2124 /* We use char because int might match the return type of a gcc2
2125 builtin and then its argument prototype would still apply. */
2130 /* The GNU C library defines this for functions which it implements
2131 to always fail with ENOSYS. Some functions are actually named
2132 something starting with __ and the normal name is an alias. */
2133 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2141 if { (eval echo configure:2142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2143 eval "ac_cv_func_$ac_func=yes"
2145 echo "configure: failed program was:" >&5
2146 cat conftest.$ac_ext >&5
2148 eval "ac_cv_func_$ac_func=no"
2153 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2154 echo "$ac_t""yes" 1>&6
2155 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2156 cat >> confdefs.h <<EOF
2157 #define $ac_tr_func 1
2161 echo "$ac_t""no" 1>&6
2166 if test "${ac_cv_func_stpcpy}" = "yes"; then
2167 cat >> confdefs.h <<\EOF
2168 #define HAVE_STPCPY 1
2173 if test $ac_cv_header_locale_h = yes; then
2174 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2175 echo "configure:2176: checking for LC_MESSAGES" >&5
2176 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2177 echo $ac_n "(cached) $ac_c" 1>&6
2179 cat > conftest.$ac_ext <<EOF
2180 #line 2181 "configure"
2181 #include "confdefs.h"
2187 if { (eval echo configure:2188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2189 am_cv_val_LC_MESSAGES=yes
2191 echo "configure: failed program was:" >&5
2192 cat conftest.$ac_ext >&5
2194 am_cv_val_LC_MESSAGES=no
2199 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2200 if test $am_cv_val_LC_MESSAGES = yes; then
2201 cat >> confdefs.h <<\EOF
2202 #define HAVE_LC_MESSAGES 1
2207 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2208 echo "configure:2209: checking whether NLS is requested" >&5
2209 # Check whether --enable-nls or --disable-nls was given.
2210 if test "${enable_nls+set}" = set; then
2211 enableval="$enable_nls"
2217 echo "$ac_t""$USE_NLS" 1>&6
2220 USE_INCLUDED_LIBINTL=no
2222 if test "$USE_NLS" = "yes"; then
2223 cat >> confdefs.h <<\EOF
2224 #define ENABLE_NLS 1
2227 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2228 echo "configure:2229: checking whether included gettext is requested" >&5
2229 # Check whether --with-included-gettext or --without-included-gettext was given.
2230 if test "${with_included_gettext+set}" = set; then
2231 withval="$with_included_gettext"
2232 nls_cv_force_use_gnu_gettext=$withval
2234 nls_cv_force_use_gnu_gettext=no
2237 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2239 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2240 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2242 nls_cv_header_libgt=
2245 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2246 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2247 echo "configure:2248: checking for libintl.h" >&5
2248 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2249 echo $ac_n "(cached) $ac_c" 1>&6
2251 cat > conftest.$ac_ext <<EOF
2252 #line 2253 "configure"
2253 #include "confdefs.h"
2254 #include <libintl.h>
2256 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2257 { (eval echo configure:2258: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2258 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2259 if test -z "$ac_err"; then
2261 eval "ac_cv_header_$ac_safe=yes"
2264 echo "configure: failed program was:" >&5
2265 cat conftest.$ac_ext >&5
2267 eval "ac_cv_header_$ac_safe=no"
2271 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2272 echo "$ac_t""yes" 1>&6
2273 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2274 echo "configure:2275: checking for gettext in libc" >&5
2275 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2276 echo $ac_n "(cached) $ac_c" 1>&6
2278 cat > conftest.$ac_ext <<EOF
2279 #line 2280 "configure"
2280 #include "confdefs.h"
2281 #include <libintl.h>
2283 return (int) gettext ("")
2286 if { (eval echo configure:2287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2288 gt_cv_func_gettext_libc=yes
2290 echo "configure: failed program was:" >&5
2291 cat conftest.$ac_ext >&5
2293 gt_cv_func_gettext_libc=no
2298 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2300 if test "$gt_cv_func_gettext_libc" != "yes"; then
2301 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2302 echo "configure:2303: checking for bindtextdomain in -lintl" >&5
2303 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2304 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2305 echo $ac_n "(cached) $ac_c" 1>&6
2307 ac_save_LIBS="$LIBS"
2309 cat > conftest.$ac_ext <<EOF
2310 #line 2311 "configure"
2311 #include "confdefs.h"
2312 /* Override any gcc2 internal prototype to avoid an error. */
2313 /* We use char because int might match the return type of a gcc2
2314 builtin and then its argument prototype would still apply. */
2315 char bindtextdomain();
2321 if { (eval echo configure:2322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2323 eval "ac_cv_lib_$ac_lib_var=yes"
2325 echo "configure: failed program was:" >&5
2326 cat conftest.$ac_ext >&5
2328 eval "ac_cv_lib_$ac_lib_var=no"
2331 LIBS="$ac_save_LIBS"
2334 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2335 echo "$ac_t""yes" 1>&6
2336 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2337 echo "configure:2338: checking for gettext in libintl" >&5
2338 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2339 echo $ac_n "(cached) $ac_c" 1>&6
2341 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
2342 echo "configure:2343: checking for gettext in -lintl" >&5
2343 ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
2344 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2345 echo $ac_n "(cached) $ac_c" 1>&6
2347 ac_save_LIBS="$LIBS"
2349 cat > conftest.$ac_ext <<EOF
2350 #line 2351 "configure"
2351 #include "confdefs.h"
2352 /* Override any gcc2 internal prototype to avoid an error. */
2353 /* We use char because int might match the return type of a gcc2
2354 builtin and then its argument prototype would still apply. */
2361 if { (eval echo configure:2362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2363 eval "ac_cv_lib_$ac_lib_var=yes"
2365 echo "configure: failed program was:" >&5
2366 cat conftest.$ac_ext >&5
2368 eval "ac_cv_lib_$ac_lib_var=no"
2371 LIBS="$ac_save_LIBS"
2374 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2375 echo "$ac_t""yes" 1>&6
2376 gt_cv_func_gettext_libintl=yes
2378 echo "$ac_t""no" 1>&6
2379 gt_cv_func_gettext_libintl=no
2384 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2386 echo "$ac_t""no" 1>&6
2391 if test "$gt_cv_func_gettext_libc" = "yes" \
2392 || test "$gt_cv_func_gettext_libintl" = "yes"; then
2393 cat >> confdefs.h <<\EOF
2394 #define HAVE_GETTEXT 1
2397 # Extract the first word of "msgfmt", so it can be a program name with args.
2398 set dummy msgfmt; ac_word=$2
2399 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2400 echo "configure:2401: checking for $ac_word" >&5
2401 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2402 echo $ac_n "(cached) $ac_c" 1>&6
2406 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2409 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2410 for ac_dir in $PATH; do
2411 test -z "$ac_dir" && ac_dir=.
2412 if test -f $ac_dir/$ac_word; then
2413 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2414 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2420 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
2424 MSGFMT="$ac_cv_path_MSGFMT"
2425 if test -n "$MSGFMT"; then
2426 echo "$ac_t""$MSGFMT" 1>&6
2428 echo "$ac_t""no" 1>&6
2430 if test "$MSGFMT" != "no"; then
2431 for ac_func in dcgettext
2433 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2434 echo "configure:2435: checking for $ac_func" >&5
2435 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2436 echo $ac_n "(cached) $ac_c" 1>&6
2438 cat > conftest.$ac_ext <<EOF
2439 #line 2440 "configure"
2440 #include "confdefs.h"
2441 /* System header to define __stub macros and hopefully few prototypes,
2442 which can conflict with char $ac_func(); below. */
2444 /* Override any gcc2 internal prototype to avoid an error. */
2445 /* We use char because int might match the return type of a gcc2
2446 builtin and then its argument prototype would still apply. */
2451 /* The GNU C library defines this for functions which it implements
2452 to always fail with ENOSYS. Some functions are actually named
2453 something starting with __ and the normal name is an alias. */
2454 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2462 if { (eval echo configure:2463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2464 eval "ac_cv_func_$ac_func=yes"
2466 echo "configure: failed program was:" >&5
2467 cat conftest.$ac_ext >&5
2469 eval "ac_cv_func_$ac_func=no"
2474 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2475 echo "$ac_t""yes" 1>&6
2476 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2477 cat >> confdefs.h <<EOF
2478 #define $ac_tr_func 1
2482 echo "$ac_t""no" 1>&6
2486 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2487 set dummy gmsgfmt; ac_word=$2
2488 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2489 echo "configure:2490: checking for $ac_word" >&5
2490 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2491 echo $ac_n "(cached) $ac_c" 1>&6
2495 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2498 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2501 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2503 for ac_dir in $ac_dummy; do
2504 test -z "$ac_dir" && ac_dir=.
2505 if test -f $ac_dir/$ac_word; then
2506 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2511 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2515 GMSGFMT="$ac_cv_path_GMSGFMT"
2516 if test -n "$GMSGFMT"; then
2517 echo "$ac_t""$GMSGFMT" 1>&6
2519 echo "$ac_t""no" 1>&6
2522 # Extract the first word of "xgettext", so it can be a program name with args.
2523 set dummy xgettext; ac_word=$2
2524 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2525 echo "configure:2526: checking for $ac_word" >&5
2526 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2527 echo $ac_n "(cached) $ac_c" 1>&6
2531 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2534 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2535 for ac_dir in $PATH; do
2536 test -z "$ac_dir" && ac_dir=.
2537 if test -f $ac_dir/$ac_word; then
2538 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2539 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2545 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2549 XGETTEXT="$ac_cv_path_XGETTEXT"
2550 if test -n "$XGETTEXT"; then
2551 echo "$ac_t""$XGETTEXT" 1>&6
2553 echo "$ac_t""no" 1>&6
2556 cat > conftest.$ac_ext <<EOF
2557 #line 2558 "configure"
2558 #include "confdefs.h"
2561 extern int _nl_msg_cat_cntr;
2562 return _nl_msg_cat_cntr
2565 if { (eval echo configure:2566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2570 echo "configure: failed program was:" >&5
2571 cat conftest.$ac_ext >&5
2582 echo "$ac_t""no" 1>&6
2586 if test "$CATOBJEXT" = "NONE"; then
2587 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
2588 echo "configure:2589: checking whether catgets can be used" >&5
2589 # Check whether --with-catgets or --without-catgets was given.
2590 if test "${with_catgets+set}" = set; then
2591 withval="$with_catgets"
2592 nls_cv_use_catgets=$withval
2594 nls_cv_use_catgets=no
2597 echo "$ac_t""$nls_cv_use_catgets" 1>&6
2599 if test "$nls_cv_use_catgets" = "yes"; then
2600 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
2601 echo "configure:2602: checking for main in -li" >&5
2602 ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'`
2603 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2604 echo $ac_n "(cached) $ac_c" 1>&6
2606 ac_save_LIBS="$LIBS"
2608 cat > conftest.$ac_ext <<EOF
2609 #line 2610 "configure"
2610 #include "confdefs.h"
2616 if { (eval echo configure:2617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2618 eval "ac_cv_lib_$ac_lib_var=yes"
2620 echo "configure: failed program was:" >&5
2621 cat conftest.$ac_ext >&5
2623 eval "ac_cv_lib_$ac_lib_var=no"
2626 LIBS="$ac_save_LIBS"
2629 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2630 echo "$ac_t""yes" 1>&6
2631 ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2632 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2633 cat >> confdefs.h <<EOF
2634 #define $ac_tr_lib 1
2640 echo "$ac_t""no" 1>&6
2643 echo $ac_n "checking for catgets""... $ac_c" 1>&6
2644 echo "configure:2645: checking for catgets" >&5
2645 if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
2646 echo $ac_n "(cached) $ac_c" 1>&6
2648 cat > conftest.$ac_ext <<EOF
2649 #line 2650 "configure"
2650 #include "confdefs.h"
2651 /* System header to define __stub macros and hopefully few prototypes,
2652 which can conflict with char catgets(); below. */
2654 /* Override any gcc2 internal prototype to avoid an error. */
2655 /* We use char because int might match the return type of a gcc2
2656 builtin and then its argument prototype would still apply. */
2661 /* The GNU C library defines this for functions which it implements
2662 to always fail with ENOSYS. Some functions are actually named
2663 something starting with __ and the normal name is an alias. */
2664 #if defined (__stub_catgets) || defined (__stub___catgets)
2672 if { (eval echo configure:2673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2674 eval "ac_cv_func_catgets=yes"
2676 echo "configure: failed program was:" >&5
2677 cat conftest.$ac_ext >&5
2679 eval "ac_cv_func_catgets=no"
2684 if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
2685 echo "$ac_t""yes" 1>&6
2686 cat >> confdefs.h <<\EOF
2687 #define HAVE_CATGETS 1
2690 INTLOBJS="\$(CATOBJS)"
2691 # Extract the first word of "gencat", so it can be a program name with args.
2692 set dummy gencat; ac_word=$2
2693 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2694 echo "configure:2695: checking for $ac_word" >&5
2695 if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
2696 echo $ac_n "(cached) $ac_c" 1>&6
2700 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
2703 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path.
2706 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2708 for ac_dir in $ac_dummy; do
2709 test -z "$ac_dir" && ac_dir=.
2710 if test -f $ac_dir/$ac_word; then
2711 ac_cv_path_GENCAT="$ac_dir/$ac_word"
2716 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
2720 GENCAT="$ac_cv_path_GENCAT"
2721 if test -n "$GENCAT"; then
2722 echo "$ac_t""$GENCAT" 1>&6
2724 echo "$ac_t""no" 1>&6
2726 if test "$GENCAT" != "no"; then
2727 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2728 set dummy gmsgfmt; ac_word=$2
2729 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2730 echo "configure:2731: checking for $ac_word" >&5
2731 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2732 echo $ac_n "(cached) $ac_c" 1>&6
2736 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2739 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2742 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2744 for ac_dir in $ac_dummy; do
2745 test -z "$ac_dir" && ac_dir=.
2746 if test -f $ac_dir/$ac_word; then
2747 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2752 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
2756 GMSGFMT="$ac_cv_path_GMSGFMT"
2757 if test -n "$GMSGFMT"; then
2758 echo "$ac_t""$GMSGFMT" 1>&6
2760 echo "$ac_t""no" 1>&6
2763 if test "$GMSGFMT" = "no"; then
2764 # Extract the first word of "msgfmt", so it can be a program name with args.
2765 set dummy msgfmt; ac_word=$2
2766 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2767 echo "configure:2768: checking for $ac_word" >&5
2768 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2769 echo $ac_n "(cached) $ac_c" 1>&6
2773 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2776 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2777 for ac_dir in $PATH; do
2778 test -z "$ac_dir" && ac_dir=.
2779 if test -f $ac_dir/$ac_word; then
2780 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2781 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2787 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
2791 GMSGFMT="$ac_cv_path_GMSGFMT"
2792 if test -n "$GMSGFMT"; then
2793 echo "$ac_t""$GMSGFMT" 1>&6
2795 echo "$ac_t""no" 1>&6
2799 # Extract the first word of "xgettext", so it can be a program name with args.
2800 set dummy xgettext; ac_word=$2
2801 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2802 echo "configure:2803: checking for $ac_word" >&5
2803 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2804 echo $ac_n "(cached) $ac_c" 1>&6
2808 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2811 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2812 for ac_dir in $PATH; do
2813 test -z "$ac_dir" && ac_dir=.
2814 if test -f $ac_dir/$ac_word; then
2815 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2816 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2822 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2826 XGETTEXT="$ac_cv_path_XGETTEXT"
2827 if test -n "$XGETTEXT"; then
2828 echo "$ac_t""$XGETTEXT" 1>&6
2830 echo "$ac_t""no" 1>&6
2833 USE_INCLUDED_LIBINTL=yes
2837 INTLDEPS='$(top_builddir)/intl/libintl.a'
2839 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
2840 nls_cv_header_intl=intl/libintl.h
2841 nls_cv_header_libgt=intl/libgettext.h
2844 echo "$ac_t""no" 1>&6
2850 if test "$CATOBJEXT" = "NONE"; then
2851 nls_cv_use_gnu_gettext=yes
2855 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2856 INTLOBJS="\$(GETTOBJS)"
2857 # Extract the first word of "msgfmt", so it can be a program name with args.
2858 set dummy msgfmt; ac_word=$2
2859 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2860 echo "configure:2861: checking for $ac_word" >&5
2861 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2862 echo $ac_n "(cached) $ac_c" 1>&6
2866 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2869 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2870 for ac_dir in $PATH; do
2871 test -z "$ac_dir" && ac_dir=.
2872 if test -f $ac_dir/$ac_word; then
2873 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2874 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2880 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
2884 MSGFMT="$ac_cv_path_MSGFMT"
2885 if test -n "$MSGFMT"; then
2886 echo "$ac_t""$MSGFMT" 1>&6
2888 echo "$ac_t""no" 1>&6
2891 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2892 set dummy gmsgfmt; ac_word=$2
2893 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2894 echo "configure:2895: checking for $ac_word" >&5
2895 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2896 echo $ac_n "(cached) $ac_c" 1>&6
2900 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2903 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2906 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2908 for ac_dir in $ac_dummy; do
2909 test -z "$ac_dir" && ac_dir=.
2910 if test -f $ac_dir/$ac_word; then
2911 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2916 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2920 GMSGFMT="$ac_cv_path_GMSGFMT"
2921 if test -n "$GMSGFMT"; then
2922 echo "$ac_t""$GMSGFMT" 1>&6
2924 echo "$ac_t""no" 1>&6
2927 # Extract the first word of "xgettext", so it can be a program name with args.
2928 set dummy xgettext; ac_word=$2
2929 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2930 echo "configure:2931: checking for $ac_word" >&5
2931 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2932 echo $ac_n "(cached) $ac_c" 1>&6
2936 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2939 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2940 for ac_dir in $PATH; do
2941 test -z "$ac_dir" && ac_dir=.
2942 if test -f $ac_dir/$ac_word; then
2943 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2944 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2950 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2954 XGETTEXT="$ac_cv_path_XGETTEXT"
2955 if test -n "$XGETTEXT"; then
2956 echo "$ac_t""$XGETTEXT" 1>&6
2958 echo "$ac_t""no" 1>&6
2962 USE_INCLUDED_LIBINTL=yes
2966 INTLDEPS='$(top_builddir)/intl/libintl.a'
2968 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
2969 nls_cv_header_intl=intl/libintl.h
2970 nls_cv_header_libgt=intl/libgettext.h
2973 if test "$XGETTEXT" != ":"; then
2974 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
2977 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
2982 # We need to process the po/ directory.
2986 nls_cv_header_intl=intl/libintl.h
2987 nls_cv_header_libgt=intl/libgettext.h
2993 # If this is used in GNU gettext we have to set USE_NLS to `yes'
2994 # because some of the sources are only built for this goal.
2995 if test "$PACKAGE" = gettext; then
2997 USE_INCLUDED_LIBINTL=yes
3000 for lang in $ALL_LINGUAS; do
3001 GMOFILES="$GMOFILES $lang.gmo"
3002 POFILES="$POFILES $lang.po"
3018 if test "x$CATOBJEXT" != "x"; then
3019 if test "x$ALL_LINGUAS" = "x"; then
3022 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3023 echo "configure:3024: checking for catalogs to be installed" >&5
3025 for lang in ${LINGUAS=$ALL_LINGUAS}; do
3026 case "$ALL_LINGUAS" in
3027 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
3030 LINGUAS=$NEW_LINGUAS
3031 echo "$ac_t""$LINGUAS" 1>&6
3034 if test -n "$LINGUAS"; then
3035 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
3039 if test $ac_cv_header_locale_h = yes; then
3040 INCLUDE_LOCALE_H="#include <locale.h>"
3043 /* The system does not provide the header <locale.h>. Take care yourself. */"
3047 test -d intl || mkdir intl
3048 if test "$CATOBJEXT" = ".cat"; then
3049 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
3050 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
3051 echo "configure:3052: checking for linux/version.h" >&5
3052 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3053 echo $ac_n "(cached) $ac_c" 1>&6
3055 cat > conftest.$ac_ext <<EOF
3056 #line 3057 "configure"
3057 #include "confdefs.h"
3058 #include <linux/version.h>
3060 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3061 { (eval echo configure:3062: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3062 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3063 if test -z "$ac_err"; then
3065 eval "ac_cv_header_$ac_safe=yes"
3068 echo "configure: failed program was:" >&5
3069 cat conftest.$ac_ext >&5
3071 eval "ac_cv_header_$ac_safe=no"
3075 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3076 echo "$ac_t""yes" 1>&6
3079 echo "$ac_t""no" 1>&6
3084 sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
3086 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
3087 $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
3089 if test "$PACKAGE" = "gettext"; then
3100 if test -n "$ac_aux_dir"; then
3101 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
3103 if test -z "$MKINSTALLDIRS"; then
3104 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3111 test -d po || mkdir po
3112 if test "x$srcdir" != "x."; then
3113 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
3114 posrcprefix="$srcdir/"
3116 posrcprefix="../$srcdir/"
3122 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
3123 < $srcdir/po/POTFILES.in > po/POTFILES
3125 # Check whether --enable-profile or --disable-profile was given.
3126 if test "${enable_profile+set}" = set; then
3127 enableval="$enable_profile"
3128 if test "$enableval" = "no"
3131 MAKEFILE_PROFILE=/dev/null
3132 echo "Disabling profiling libraries"
3135 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
3136 PROFILED_LIB_EXT=_p.a
3137 echo "Building profiling libraries"
3142 MAKEFILE_PROFILE=/dev/null
3143 echo "Disabling profiling libraries by default"
3149 # Check whether --enable-checker or --disable-checker was given.
3150 if test "${enable_checker+set}" = set; then
3151 enableval="$enable_checker"
3152 if test "$enableval" = "no"
3155 MAKEFILE_CHECKER=/dev/null
3156 echo "Disabling checker libraries"
3159 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
3160 echo "Building checker libraries"
3165 MAKEFILE_CHECKER=/dev/null
3166 echo "Disabling checker libraries by default"
3175 # Check whether --enable-gcc-wall or --disable-gcc-wall was given.
3176 if test "${enable_gcc_wall+set}" = set; then
3177 enableval="$enable_gcc_wall"
3178 if test "$enableval" = "no"
3181 echo "Disabling GCC warnings"
3184 echo "Enabling GCC warnings"
3189 echo "Disabling GCC warnings by default"
3194 # Check whether --enable-dynamic-e2fsck or --disable-dynamic-e2fsck was given.
3195 if test "${enable_dynamic_e2fsck+set}" = set; then
3196 enableval="$enable_dynamic_e2fsck"
3197 if test "$enableval" = "no"
3200 echo "Building e2fsck statically"
3203 echo "Building e2fsck dynamically"
3208 echo "Building e2fsck statically by default"
3213 # Check whether --enable-fsck or --disable-fsck was given.
3214 if test "${enable_fsck+set}" = set; then
3215 enableval="$enable_fsck"
3216 if test "$enableval" = "no"
3218 FSCK_PROG='' FSCK_MAN=''
3219 echo "Not building fsck wrapper"
3221 FSCK_PROG=fsck FSCK_MAN=fsck.8
3222 echo "Building fsck wrapper"
3228 FSCK_PROG='' FSCK_MAN=''
3229 echo "Not building fsck wrapper by default"
3232 FSCK_PROG=fsck FSCK_MAN=fsck.8
3233 echo "Building fsck wrapper by default"
3240 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
3242 # Check whether --enable-old-bitops or --disable-old-bitops was given.
3243 if test "${enable_old_bitops+set}" = set; then
3244 enableval="$enable_old_bitops"
3245 if test "$enableval" = "no"
3247 echo "Using new (standard) bitmask operations"
3249 cat >> confdefs.h <<\EOF
3250 #define EXT2_OLD_BITOPS 1
3253 echo "Using old (native) bitmask operations"
3258 echo "Using standard bitmask operations by default"
3263 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
3264 echo "configure:3265: checking whether ${MAKE-make} sets \${MAKE}" >&5
3265 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
3266 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
3267 echo $ac_n "(cached) $ac_c" 1>&6
3269 cat > conftestmake <<\EOF
3271 @echo 'ac_maketemp="${MAKE}"'
3273 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3274 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
3275 if test -n "$ac_maketemp"; then
3276 eval ac_cv_prog_make_${ac_make}_set=yes
3278 eval ac_cv_prog_make_${ac_make}_set=no
3282 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3283 echo "$ac_t""yes" 1>&6
3286 echo "$ac_t""no" 1>&6
3287 SET_MAKE="MAKE=${MAKE-make}"
3290 # Extract the first word of "ln", so it can be a program name with args.
3291 set dummy ln; ac_word=$2
3292 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3293 echo "configure:3294: checking for $ac_word" >&5
3294 if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then
3295 echo $ac_n "(cached) $ac_c" 1>&6
3299 ac_cv_path_LN="$LN" # Let the user override the test with a path.
3302 ac_cv_path_LN="$LN" # Let the user override the test with a dos path.
3305 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3307 for ac_dir in $ac_dummy; do
3308 test -z "$ac_dir" && ac_dir=.
3309 if test -f $ac_dir/$ac_word; then
3310 ac_cv_path_LN="$ac_dir/$ac_word"
3315 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
3320 if test -n "$LN"; then
3321 echo "$ac_t""$LN" 1>&6
3323 echo "$ac_t""no" 1>&6
3326 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3327 echo "configure:3328: checking whether ln -s works" >&5
3328 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
3329 echo $ac_n "(cached) $ac_c" 1>&6
3332 if ln -s X conftestdata 2>/dev/null
3335 ac_cv_prog_LN_S="ln -s"
3340 LN_S="$ac_cv_prog_LN_S"
3341 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3342 echo "$ac_t""yes" 1>&6
3344 echo "$ac_t""no" 1>&6
3347 # Extract the first word of "mv", so it can be a program name with args.
3348 set dummy mv; ac_word=$2
3349 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3350 echo "configure:3351: checking for $ac_word" >&5
3351 if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
3352 echo $ac_n "(cached) $ac_c" 1>&6
3356 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3359 ac_cv_path_MV="$MV" # Let the user override the test with a dos path.
3362 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3364 for ac_dir in $ac_dummy; do
3365 test -z "$ac_dir" && ac_dir=.
3366 if test -f $ac_dir/$ac_word; then
3367 ac_cv_path_MV="$ac_dir/$ac_word"
3372 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3377 if test -n "$MV"; then
3378 echo "$ac_t""$MV" 1>&6
3380 echo "$ac_t""no" 1>&6
3383 # Extract the first word of "cp", so it can be a program name with args.
3384 set dummy cp; ac_word=$2
3385 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3386 echo "configure:3387: checking for $ac_word" >&5
3387 if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then
3388 echo $ac_n "(cached) $ac_c" 1>&6
3392 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3395 ac_cv_path_CP="$CP" # Let the user override the test with a dos path.
3398 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3400 for ac_dir in $ac_dummy; do
3401 test -z "$ac_dir" && ac_dir=.
3402 if test -f $ac_dir/$ac_word; then
3403 ac_cv_path_CP="$ac_dir/$ac_word"
3408 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3413 if test -n "$CP"; then
3414 echo "$ac_t""$CP" 1>&6
3416 echo "$ac_t""no" 1>&6
3419 # Extract the first word of "rm", so it can be a program name with args.
3420 set dummy rm; ac_word=$2
3421 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3422 echo "configure:3423: checking for $ac_word" >&5
3423 if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
3424 echo $ac_n "(cached) $ac_c" 1>&6
3428 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3431 ac_cv_path_RM="$RM" # Let the user override the test with a dos path.
3434 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3436 for ac_dir in $ac_dummy; do
3437 test -z "$ac_dir" && ac_dir=.
3438 if test -f $ac_dir/$ac_word; then
3439 ac_cv_path_RM="$ac_dir/$ac_word"
3444 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3449 if test -n "$RM"; then
3450 echo "$ac_t""$RM" 1>&6
3452 echo "$ac_t""no" 1>&6
3455 # Extract the first word of "chmod", so it can be a program name with args.
3456 set dummy chmod; ac_word=$2
3457 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3458 echo "configure:3459: checking for $ac_word" >&5
3459 if eval "test \"`echo '$''{'ac_cv_path_CHMOD'+set}'`\" = set"; then
3460 echo $ac_n "(cached) $ac_c" 1>&6
3464 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
3467 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a dos path.
3470 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3472 for ac_dir in $ac_dummy; do
3473 test -z "$ac_dir" && ac_dir=.
3474 if test -f $ac_dir/$ac_word; then
3475 ac_cv_path_CHMOD="$ac_dir/$ac_word"
3480 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
3484 CHMOD="$ac_cv_path_CHMOD"
3485 if test -n "$CHMOD"; then
3486 echo "$ac_t""$CHMOD" 1>&6
3488 echo "$ac_t""no" 1>&6
3491 # Extract the first word of "awk", so it can be a program name with args.
3492 set dummy awk; ac_word=$2
3493 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3494 echo "configure:3495: checking for $ac_word" >&5
3495 if eval "test \"`echo '$''{'ac_cv_path_AWK'+set}'`\" = set"; then
3496 echo $ac_n "(cached) $ac_c" 1>&6
3500 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3503 ac_cv_path_AWK="$AWK" # Let the user override the test with a dos path.
3506 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3508 for ac_dir in $ac_dummy; do
3509 test -z "$ac_dir" && ac_dir=.
3510 if test -f $ac_dir/$ac_word; then
3511 ac_cv_path_AWK="$ac_dir/$ac_word"
3516 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3520 AWK="$ac_cv_path_AWK"
3521 if test -n "$AWK"; then
3522 echo "$ac_t""$AWK" 1>&6
3524 echo "$ac_t""no" 1>&6
3527 # Extract the first word of "sed", so it can be a program name with args.
3528 set dummy sed; ac_word=$2
3529 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3530 echo "configure:3531: checking for $ac_word" >&5
3531 if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then
3532 echo $ac_n "(cached) $ac_c" 1>&6
3536 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3539 ac_cv_path_SED="$SED" # Let the user override the test with a dos path.
3542 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3544 for ac_dir in $ac_dummy; do
3545 test -z "$ac_dir" && ac_dir=.
3546 if test -f $ac_dir/$ac_word; then
3547 ac_cv_path_SED="$ac_dir/$ac_word"
3552 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3556 SED="$ac_cv_path_SED"
3557 if test -n "$SED"; then
3558 echo "$ac_t""$SED" 1>&6
3560 echo "$ac_t""no" 1>&6
3563 # Extract the first word of "perl", so it can be a program name with args.
3564 set dummy perl; ac_word=$2
3565 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3566 echo "configure:3567: checking for $ac_word" >&5
3567 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
3568 echo $ac_n "(cached) $ac_c" 1>&6
3572 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3575 ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
3578 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3580 for ac_dir in $ac_dummy; do
3581 test -z "$ac_dir" && ac_dir=.
3582 if test -f $ac_dir/$ac_word; then
3583 ac_cv_path_PERL="$ac_dir/$ac_word"
3588 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
3592 PERL="$ac_cv_path_PERL"
3593 if test -n "$PERL"; then
3594 echo "$ac_t""$PERL" 1>&6
3596 echo "$ac_t""no" 1>&6
3599 echo $ac_n "checking build system type""... $ac_c" 1>&6
3600 echo "configure:3601: checking build system type" >&5
3603 case "$build_alias" in
3606 NONE) build_alias=$host_alias ;;
3607 *) build_alias=$nonopt ;;
3611 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
3612 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3613 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3614 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3615 echo "$ac_t""$build" 1>&6
3617 if test $host != $build; then
3618 ac_tool_prefix=${host_alias}-
3623 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3624 set dummy ${ac_tool_prefix}ar; ac_word=$2
3625 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3626 echo "configure:3627: checking for $ac_word" >&5
3627 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3628 echo $ac_n "(cached) $ac_c" 1>&6
3630 if test -n "$AR"; then
3631 ac_cv_prog_AR="$AR" # Let the user override the test.
3633 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3635 for ac_dir in $ac_dummy; do
3636 test -z "$ac_dir" && ac_dir=.
3637 if test -f $ac_dir/$ac_word; then
3638 ac_cv_prog_AR="${ac_tool_prefix}ar"
3646 if test -n "$AR"; then
3647 echo "$ac_t""$AR" 1>&6
3649 echo "$ac_t""no" 1>&6
3653 if test -z "$ac_cv_prog_AR"; then
3654 if test -n "$ac_tool_prefix"; then
3655 # Extract the first word of "ar", so it can be a program name with args.
3656 set dummy ar; ac_word=$2
3657 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3658 echo "configure:3659: checking for $ac_word" >&5
3659 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3660 echo $ac_n "(cached) $ac_c" 1>&6
3662 if test -n "$AR"; then
3663 ac_cv_prog_AR="$AR" # Let the user override the test.
3665 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3667 for ac_dir in $ac_dummy; do
3668 test -z "$ac_dir" && ac_dir=.
3669 if test -f $ac_dir/$ac_word; then
3675 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
3679 if test -n "$AR"; then
3680 echo "$ac_t""$AR" 1>&6
3682 echo "$ac_t""no" 1>&6
3690 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3691 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3692 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3693 echo "configure:3694: checking for $ac_word" >&5
3694 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3695 echo $ac_n "(cached) $ac_c" 1>&6
3697 if test -n "$RANLIB"; then
3698 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3700 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3702 for ac_dir in $ac_dummy; do
3703 test -z "$ac_dir" && ac_dir=.
3704 if test -f $ac_dir/$ac_word; then
3705 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3712 RANLIB="$ac_cv_prog_RANLIB"
3713 if test -n "$RANLIB"; then
3714 echo "$ac_t""$RANLIB" 1>&6
3716 echo "$ac_t""no" 1>&6
3720 if test -z "$ac_cv_prog_RANLIB"; then
3721 if test -n "$ac_tool_prefix"; then
3722 # Extract the first word of "ranlib", so it can be a program name with args.
3723 set dummy ranlib; ac_word=$2
3724 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3725 echo "configure:3726: checking for $ac_word" >&5
3726 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3727 echo $ac_n "(cached) $ac_c" 1>&6
3729 if test -n "$RANLIB"; then
3730 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3732 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3734 for ac_dir in $ac_dummy; do
3735 test -z "$ac_dir" && ac_dir=.
3736 if test -f $ac_dir/$ac_word; then
3737 ac_cv_prog_RANLIB="ranlib"
3742 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3745 RANLIB="$ac_cv_prog_RANLIB"
3746 if test -n "$RANLIB"; then
3747 echo "$ac_t""$RANLIB" 1>&6
3749 echo "$ac_t""no" 1>&6
3757 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3758 set dummy ${ac_tool_prefix}strip; ac_word=$2
3759 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3760 echo "configure:3761: checking for $ac_word" >&5
3761 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
3762 echo $ac_n "(cached) $ac_c" 1>&6
3764 if test -n "$STRIP"; then
3765 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3767 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3769 for ac_dir in $ac_dummy; do
3770 test -z "$ac_dir" && ac_dir=.
3771 if test -f $ac_dir/$ac_word; then
3772 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3779 STRIP="$ac_cv_prog_STRIP"
3780 if test -n "$STRIP"; then
3781 echo "$ac_t""$STRIP" 1>&6
3783 echo "$ac_t""no" 1>&6
3787 if test -z "$ac_cv_prog_STRIP"; then
3788 if test -n "$ac_tool_prefix"; then
3789 # Extract the first word of "strip", so it can be a program name with args.
3790 set dummy strip; ac_word=$2
3791 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3792 echo "configure:3793: checking for $ac_word" >&5
3793 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
3794 echo $ac_n "(cached) $ac_c" 1>&6
3796 if test -n "$STRIP"; then
3797 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3799 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3801 for ac_dir in $ac_dummy; do
3802 test -z "$ac_dir" && ac_dir=.
3803 if test -f $ac_dir/$ac_word; then
3804 ac_cv_prog_STRIP="strip"
3809 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
3812 STRIP="$ac_cv_prog_STRIP"
3813 if test -n "$STRIP"; then
3814 echo "$ac_t""$STRIP" 1>&6
3816 echo "$ac_t""no" 1>&6
3824 # Find a good install program. We prefer a C program (faster),
3825 # so one script is as good as another. But avoid the broken or
3826 # incompatible versions:
3827 # SysV /etc/install, /usr/sbin/install
3828 # SunOS /usr/etc/install
3829 # IRIX /sbin/install
3831 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3832 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3833 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3834 # ./install, which can be erroneously created by make from ./install.sh.
3835 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3836 echo "configure:3837: checking for a BSD compatible install" >&5
3837 if test -z "$INSTALL"; then
3838 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3839 echo $ac_n "(cached) $ac_c" 1>&6
3841 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3842 for ac_dir in $PATH; do
3843 # Account for people who put trailing slashes in PATH elements.
3845 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3847 # OSF1 and SCO ODT 3.0 have their own names for install.
3848 # Don't use installbsd from OSF since it installs stuff as root
3850 for ac_prog in ginstall scoinst install; do
3851 if test -f $ac_dir/$ac_prog; then
3852 if test $ac_prog = install &&
3853 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3854 # AIX install. It has an incompatible calling convention.
3857 ac_cv_path_install="$ac_dir/$ac_prog -c"
3868 if test "${ac_cv_path_install+set}" = set; then
3869 INSTALL="$ac_cv_path_install"
3871 # As a last resort, use the slow shell script. We don't cache a
3872 # path for INSTALL within a source directory, because that will
3873 # break other packages using the cache if that directory is
3874 # removed, or if the path is relative.
3875 INSTALL="$ac_install_sh"
3878 echo "$ac_t""$INSTALL" 1>&6
3880 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3881 # It thinks the first close brace ends the variable substitution.
3882 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3884 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3886 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3888 # See if we need a separate native compiler.
3889 if test $cross_compiling = no; then
3893 for ac_prog in gcc cc
3895 # Extract the first word of "$ac_prog", so it can be a program name with args.
3896 set dummy $ac_prog; ac_word=$2
3897 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3898 echo "configure:3899: checking for $ac_word" >&5
3899 if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
3900 echo $ac_n "(cached) $ac_c" 1>&6
3902 if test -n "$BUILD_CC"; then
3903 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3905 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3907 for ac_dir in $ac_dummy; do
3908 test -z "$ac_dir" && ac_dir=.
3909 if test -f $ac_dir/$ac_word; then
3910 ac_cv_prog_BUILD_CC="$ac_prog"
3917 BUILD_CC="$ac_cv_prog_BUILD_CC"
3918 if test -n "$BUILD_CC"; then
3919 echo "$ac_t""$BUILD_CC" 1>&6
3921 echo "$ac_t""no" 1>&6
3924 test -n "$BUILD_CC" && break
3928 for ac_hdr in stdlib.h unistd.h stdarg.h errno.h malloc.h mntent.h paths.h dirent.h getopt.h setjmp.h signal.h termios.h linux/fd.h linux/major.h sys/disklabel.h sys/sockio.h sys/time.h sys/stat.h sys/types.h net/if.h netinet/in.h
3930 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3931 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3932 echo "configure:3933: checking for $ac_hdr" >&5
3933 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3934 echo $ac_n "(cached) $ac_c" 1>&6
3936 cat > conftest.$ac_ext <<EOF
3937 #line 3938 "configure"
3938 #include "confdefs.h"
3941 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3942 { (eval echo configure:3943: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3943 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3944 if test -z "$ac_err"; then
3946 eval "ac_cv_header_$ac_safe=yes"
3949 echo "configure: failed program was:" >&5
3950 cat conftest.$ac_ext >&5
3952 eval "ac_cv_header_$ac_safe=no"
3956 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3957 echo "$ac_t""yes" 1>&6
3958 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3959 cat >> confdefs.h <<EOF
3960 #define $ac_tr_hdr 1
3964 echo "$ac_t""no" 1>&6
3968 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
3969 echo "configure:3970: checking for vprintf" >&5
3970 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
3971 echo $ac_n "(cached) $ac_c" 1>&6
3973 cat > conftest.$ac_ext <<EOF
3974 #line 3975 "configure"
3975 #include "confdefs.h"
3976 /* System header to define __stub macros and hopefully few prototypes,
3977 which can conflict with char vprintf(); below. */
3979 /* Override any gcc2 internal prototype to avoid an error. */
3980 /* We use char because int might match the return type of a gcc2
3981 builtin and then its argument prototype would still apply. */
3986 /* The GNU C library defines this for functions which it implements
3987 to always fail with ENOSYS. Some functions are actually named
3988 something starting with __ and the normal name is an alias. */
3989 #if defined (__stub_vprintf) || defined (__stub___vprintf)
3997 if { (eval echo configure:3998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3999 eval "ac_cv_func_vprintf=yes"
4001 echo "configure: failed program was:" >&5
4002 cat conftest.$ac_ext >&5
4004 eval "ac_cv_func_vprintf=no"
4009 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
4010 echo "$ac_t""yes" 1>&6
4011 cat >> confdefs.h <<\EOF
4012 #define HAVE_VPRINTF 1
4016 echo "$ac_t""no" 1>&6
4019 if test "$ac_cv_func_vprintf" != yes; then
4020 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
4021 echo "configure:4022: checking for _doprnt" >&5
4022 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
4023 echo $ac_n "(cached) $ac_c" 1>&6
4025 cat > conftest.$ac_ext <<EOF
4026 #line 4027 "configure"
4027 #include "confdefs.h"
4028 /* System header to define __stub macros and hopefully few prototypes,
4029 which can conflict with char _doprnt(); below. */
4031 /* Override any gcc2 internal prototype to avoid an error. */
4032 /* We use char because int might match the return type of a gcc2
4033 builtin and then its argument prototype would still apply. */
4038 /* The GNU C library defines this for functions which it implements
4039 to always fail with ENOSYS. Some functions are actually named
4040 something starting with __ and the normal name is an alias. */
4041 #if defined (__stub__doprnt) || defined (__stub____doprnt)
4049 if { (eval echo configure:4050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4051 eval "ac_cv_func__doprnt=yes"
4053 echo "configure: failed program was:" >&5
4054 cat conftest.$ac_ext >&5
4056 eval "ac_cv_func__doprnt=no"
4061 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
4062 echo "$ac_t""yes" 1>&6
4063 cat >> confdefs.h <<\EOF
4064 #define HAVE_DOPRNT 1
4068 echo "$ac_t""no" 1>&6
4073 echo $ac_n "checking whether struct dirent has a d_namlen field""... $ac_c" 1>&6
4074 echo "configure:4075: checking whether struct dirent has a d_namlen field" >&5
4075 if eval "test \"`echo '$''{'e2fsprogs_cv_struct_d_namlen'+set}'`\" = set"; then
4076 echo $ac_n "(cached) $ac_c" 1>&6
4078 cat > conftest.$ac_ext <<EOF
4079 #line 4080 "configure"
4080 #include "confdefs.h"
4081 #include <sys/types.h>
4084 struct dirent de; de.d_namlen = 0;
4087 if { (eval echo configure:4088: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4089 e2fsprogs_cv_struct_d_namlen=yes
4091 echo "configure: failed program was:" >&5
4092 cat conftest.$ac_ext >&5
4094 e2fsprogs_cv_struct_d_namlen=no
4099 echo "$ac_t""$e2fsprogs_cv_struct_d_namlen" 1>&6
4100 if test "$e2fsprogs_cv_struct_d_namlen" = yes; then
4101 cat >> confdefs.h <<\EOF
4102 #define HAVE_DIRENT_NAMLEN 1
4106 echo $ac_n "checking whether llseek declared in unistd.h""... $ac_c" 1>&6
4107 echo "configure:4108: checking whether llseek declared in unistd.h" >&5
4108 if eval "test \"`echo '$''{'e2fsprogs_cv_have_llseek_prototype'+set}'`\" = set"; then
4109 echo $ac_n "(cached) $ac_c" 1>&6
4111 cat > conftest.$ac_ext <<EOF
4112 #line 4113 "configure"
4113 #include "confdefs.h"
4116 extern int llseek(int);
4119 if { (eval echo configure:4120: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4121 e2fsprogs_cv_have_llseek_prototype=no
4123 echo "configure: failed program was:" >&5
4124 cat conftest.$ac_ext >&5
4126 e2fsprogs_cv_have_llseek_prototype=yes
4131 echo "$ac_t""$e2fsprogs_cv_have_llseek_prototype" 1>&6
4132 if test "$e2fsprogs_cv_have_llseek_prototype" = yes; then
4133 cat >> confdefs.h <<\EOF
4134 #define HAVE_LLSEEK_PROTOTYPE 1
4138 echo $ac_n "checking whether lseek64 declared in unistd.h""... $ac_c" 1>&6
4139 echo "configure:4140: checking whether lseek64 declared in unistd.h" >&5
4140 if eval "test \"`echo '$''{'e2fsprogs_cv_have_lseek64_prototype'+set}'`\" = set"; then
4141 echo $ac_n "(cached) $ac_c" 1>&6
4143 cat > conftest.$ac_ext <<EOF
4144 #line 4145 "configure"
4145 #include "confdefs.h"
4146 #define _LARGEFILE_SOURCE
4147 #define _LARGEFILE64_SOURCE
4150 extern int lseek64(int);
4153 if { (eval echo configure:4154: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4155 e2fsprogs_cv_have_lseek64_prototype=no
4157 echo "configure: failed program was:" >&5
4158 cat conftest.$ac_ext >&5
4160 e2fsprogs_cv_have_lseek64_prototype=yes
4165 echo "$ac_t""$e2fsprogs_cv_have_lseek64_prototype" 1>&6
4166 if test "$e2fsprogs_cv_have_lseek64_prototype" = yes; then
4167 cat >> confdefs.h <<\EOF
4168 #define HAVE_LSEEK64_PROTOTYPE 1
4172 if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
4173 # if cross-compiling, with no cached values, just assume something common.
4174 ac_cv_sizeof_short=2
4177 ac_cv_sizeof_long_long=8
4178 echo "configure: warning: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" 1>&2
4180 echo $ac_n "checking size of short""... $ac_c" 1>&6
4181 echo "configure:4182: checking size of short" >&5
4182 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
4183 echo $ac_n "(cached) $ac_c" 1>&6
4185 if test "$cross_compiling" = yes; then
4186 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4188 cat > conftest.$ac_ext <<EOF
4189 #line 4190 "configure"
4190 #include "confdefs.h"
4194 FILE *f=fopen("conftestval", "w");
4196 fprintf(f, "%d\n", sizeof(short));
4200 if { (eval echo configure:4201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4202 ac_cv_sizeof_short=`cat conftestval`
4204 echo "configure: failed program was:" >&5
4205 cat conftest.$ac_ext >&5
4207 ac_cv_sizeof_short=0
4213 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
4214 cat >> confdefs.h <<EOF
4215 #define SIZEOF_SHORT $ac_cv_sizeof_short
4219 echo $ac_n "checking size of int""... $ac_c" 1>&6
4220 echo "configure:4221: checking size of int" >&5
4221 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
4222 echo $ac_n "(cached) $ac_c" 1>&6
4224 if test "$cross_compiling" = yes; then
4225 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4227 cat > conftest.$ac_ext <<EOF
4228 #line 4229 "configure"
4229 #include "confdefs.h"
4233 FILE *f=fopen("conftestval", "w");
4235 fprintf(f, "%d\n", sizeof(int));
4239 if { (eval echo configure:4240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4241 ac_cv_sizeof_int=`cat conftestval`
4243 echo "configure: failed program was:" >&5
4244 cat conftest.$ac_ext >&5
4252 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4253 cat >> confdefs.h <<EOF
4254 #define SIZEOF_INT $ac_cv_sizeof_int
4258 echo $ac_n "checking size of long""... $ac_c" 1>&6
4259 echo "configure:4260: checking size of long" >&5
4260 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
4261 echo $ac_n "(cached) $ac_c" 1>&6
4263 if test "$cross_compiling" = yes; then
4264 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4266 cat > conftest.$ac_ext <<EOF
4267 #line 4268 "configure"
4268 #include "confdefs.h"
4272 FILE *f=fopen("conftestval", "w");
4274 fprintf(f, "%d\n", sizeof(long));
4278 if { (eval echo configure:4279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4280 ac_cv_sizeof_long=`cat conftestval`
4282 echo "configure: failed program was:" >&5
4283 cat conftest.$ac_ext >&5
4291 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4292 cat >> confdefs.h <<EOF
4293 #define SIZEOF_LONG $ac_cv_sizeof_long
4297 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4298 echo "configure:4299: checking size of long long" >&5
4299 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
4300 echo $ac_n "(cached) $ac_c" 1>&6
4302 if test "$cross_compiling" = yes; then
4303 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4305 cat > conftest.$ac_ext <<EOF
4306 #line 4307 "configure"
4307 #include "confdefs.h"
4311 FILE *f=fopen("conftestval", "w");
4313 fprintf(f, "%d\n", sizeof(long long));
4317 if { (eval echo configure:4318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4319 ac_cv_sizeof_long_long=`cat conftestval`
4321 echo "configure: failed program was:" >&5
4322 cat conftest.$ac_ext >&5
4324 ac_cv_sizeof_long_long=0
4330 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4331 cat >> confdefs.h <<EOF
4332 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4336 SIZEOF_SHORT=$ac_cv_sizeof_short
4337 SIZEOF_INT=$ac_cv_sizeof_int
4338 SIZEOF_LONG=$ac_cv_sizeof_long
4339 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
4344 echo $ac_n "checking whether struct stat has a st_flags field""... $ac_c" 1>&6
4345 echo "configure:4346: checking whether struct stat has a st_flags field" >&5
4346 if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags'+set}'`\" = set"; then
4347 echo $ac_n "(cached) $ac_c" 1>&6
4349 cat > conftest.$ac_ext <<EOF
4350 #line 4351 "configure"
4351 #include "confdefs.h"
4352 #include <sys/stat.h>
4354 struct stat stat; stat.st_flags = 0;
4357 if { (eval echo configure:4358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4359 e2fsprogs_cv_struct_st_flags=yes
4361 echo "configure: failed program was:" >&5
4362 cat conftest.$ac_ext >&5
4364 e2fsprogs_cv_struct_st_flags=no
4369 echo "$ac_t""$e2fsprogs_cv_struct_st_flags" 1>&6
4370 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
4371 echo $ac_n "checking whether st_flags field is useful""... $ac_c" 1>&6
4372 echo "configure:4373: checking whether st_flags field is useful" >&5
4373 if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags_immut'+set}'`\" = set"; then
4374 echo $ac_n "(cached) $ac_c" 1>&6
4376 cat > conftest.$ac_ext <<EOF
4377 #line 4378 "configure"
4378 #include "confdefs.h"
4379 #include <sys/stat.h>
4381 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
4384 if { (eval echo configure:4385: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4386 e2fsprogs_cv_struct_st_flags_immut=yes
4388 echo "configure: failed program was:" >&5
4389 cat conftest.$ac_ext >&5
4391 e2fsprogs_cv_struct_st_flags_immut=no
4396 echo "$ac_t""$e2fsprogs_cv_struct_st_flags_immut" 1>&6
4397 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
4398 cat >> confdefs.h <<\EOF
4399 #define HAVE_STAT_FLAGS 1
4404 for ac_func in chflags getrusage llseek lseek64 open64 strdup getmntinfo strcasecmp srandom fchown mallinfo fdatasync
4406 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4407 echo "configure:4408: checking for $ac_func" >&5
4408 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4409 echo $ac_n "(cached) $ac_c" 1>&6
4411 cat > conftest.$ac_ext <<EOF
4412 #line 4413 "configure"
4413 #include "confdefs.h"
4414 /* System header to define __stub macros and hopefully few prototypes,
4415 which can conflict with char $ac_func(); below. */
4417 /* Override any gcc2 internal prototype to avoid an error. */
4418 /* We use char because int might match the return type of a gcc2
4419 builtin and then its argument prototype would still apply. */
4424 /* The GNU C library defines this for functions which it implements
4425 to always fail with ENOSYS. Some functions are actually named
4426 something starting with __ and the normal name is an alias. */
4427 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4435 if { (eval echo configure:4436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4437 eval "ac_cv_func_$ac_func=yes"
4439 echo "configure: failed program was:" >&5
4440 cat conftest.$ac_ext >&5
4442 eval "ac_cv_func_$ac_func=no"
4447 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4448 echo "$ac_t""yes" 1>&6
4449 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4450 cat >> confdefs.h <<EOF
4451 #define $ac_tr_func 1
4455 echo "$ac_t""no" 1>&6
4459 echo $ac_n "checking ino_t defined by sys/types.h""... $ac_c" 1>&6
4460 echo "configure:4461: checking ino_t defined by sys/types.h" >&5
4461 if eval "test \"`echo '$''{'e2fsprogs_cv_ino_t'+set}'`\" = set"; then
4462 echo $ac_n "(cached) $ac_c" 1>&6
4464 cat > conftest.$ac_ext <<EOF
4465 #line 4466 "configure"
4466 #include "confdefs.h"
4467 #include <sys/types.h>
4472 if { (eval echo configure:4473: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4474 e2fsprogs_cv_ino_t=yes
4476 echo "configure: failed program was:" >&5
4477 cat conftest.$ac_ext >&5
4479 e2fsprogs_cv_ino_t=no
4484 echo "$ac_t""$e2fsprogs_cv_ino_t" 1>&6
4485 if test "$e2fsprogs_cv_ino_t" = yes; then
4486 cat >> confdefs.h <<\EOF
4487 #define HAVE_INO_T 1
4492 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
4493 echo "configure:4494: checking for socket in -lsocket" >&5
4494 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
4495 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4496 echo $ac_n "(cached) $ac_c" 1>&6
4498 ac_save_LIBS="$LIBS"
4499 LIBS="-lsocket $LIBS"
4500 cat > conftest.$ac_ext <<EOF
4501 #line 4502 "configure"
4502 #include "confdefs.h"
4503 /* Override any gcc2 internal prototype to avoid an error. */
4504 /* We use char because int might match the return type of a gcc2
4505 builtin and then its argument prototype would still apply. */
4512 if { (eval echo configure:4513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4514 eval "ac_cv_lib_$ac_lib_var=yes"
4516 echo "configure: failed program was:" >&5
4517 cat conftest.$ac_ext >&5
4519 eval "ac_cv_lib_$ac_lib_var=no"
4522 LIBS="$ac_save_LIBS"
4525 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4526 echo "$ac_t""yes" 1>&6
4529 echo "$ac_t""no" 1>&6
4533 echo $ac_n "checking for optreset""... $ac_c" 1>&6
4534 echo "configure:4535: checking for optreset" >&5
4535 if eval "test \"`echo '$''{'ac_cv_have_optreset'+set}'`\" = set"; then
4536 echo $ac_n "(cached) $ac_c" 1>&6
4538 cat > conftest.$ac_ext <<EOF
4539 #line 4540 "configure"
4540 #include "confdefs.h"
4543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4544 egrep "optreset" >/dev/null 2>&1; then
4546 ac_cv_have_optreset=yes
4549 ac_cv_have_optreset=no
4554 echo "$ac_t""$ac_cv_have_optreset" 1>&6
4555 if test $ac_cv_have_optreset = yes; then
4556 cat >> confdefs.h <<\EOF
4557 #define HAVE_OPTRESET 1
4563 cat >> confdefs.h <<\EOF
4564 #define HAVE_EXT2_IOCTLS 1
4571 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
4573 echo "On $host_os systems, root_prefix defaults to ''"
4579 if test "$prefix" = NONE ; then
4581 echo "On $host_os systems, prefix defaults to /usr"
4585 if test "$root_prefix" = NONE ; then
4586 if test "$prefix" = NONE ; then
4587 root_prefix="$ac_default_prefix"
4589 root_prefix="$prefix"
4593 echo $ac_n "checking whether linker accepts -static""... $ac_c" 1>&6
4594 echo "configure:4595: checking whether linker accepts -static" >&5
4595 if eval "test \"`echo '$''{'ac_cv_e2fsprogs_use_static'+set}'`\" = set"; then
4596 echo $ac_n "(cached) $ac_c" 1>&6
4598 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
4599 cat > conftest.$ac_ext <<EOF
4600 #line 4601 "configure"
4601 #include "confdefs.h"
4607 if { (eval echo configure:4608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4609 ac_cv_e2fsprogs_use_static=yes
4611 echo "configure: failed program was:" >&5
4612 cat conftest.$ac_ext >&5
4614 ac_cv_e2fsprogs_use_static=no
4617 LDFLAGS=$SAVE_LDFLAGS
4622 ac_cv_e2fsprogs_use_static=no
4625 echo "$ac_t""$ac_cv_e2fsprogs_use_static" 1>&6
4627 if test $ac_cv_e2fsprogs_use_static = yes; then
4628 LDFLAG_STATIC=-static
4631 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
4632 ET_DIR=`cd ${srcdir}/lib/et; pwd`
4635 if test "$cross_compiling" = yes ; then
4641 test -d lib || mkdir lib
4642 test -d include || mkdir include
4643 test -d include/linux || mkdir include/linux
4644 test -d include/asm || mkdir include/asm
4646 if test -d ${srcdir}/resize ; then
4647 rmakefile=resize/Makefile
4650 cat > confcache <<\EOF
4651 # This file is a shell script that caches the results of configure
4652 # tests run on this system so they can be shared between configure
4653 # scripts and configure runs. It is not useful on other systems.
4654 # If it contains results you don't want to keep, you may remove or edit it.
4656 # By default, configure uses ./config.cache as the cache file,
4657 # creating it if it does not exist already. You can give configure
4658 # the --cache-file=FILE option to use a different cache file; that is
4659 # what configure does when it calls configure scripts in
4660 # subdirectories, so they share the cache.
4661 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4662 # config.status only pays attention to the cache file if you give it the
4663 # --recheck option to rerun configure.
4666 # The following way of writing the cache mishandles newlines in values,
4667 # but we know of no workaround that is simple, portable, and efficient.
4668 # So, don't put newlines in cache variables' values.
4669 # Ultrix sh set writes to stderr and can't be redirected directly,
4670 # and sets the high bit in the cache file unless we assign to the vars.
4672 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4674 # `set' does not quote correctly, so add quotes (double-quote substitution
4675 # turns \\\\ into \\, and sed turns \\ into \).
4677 -e "s/'/'\\\\''/g" \
4678 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4681 # `set' quotes correctly as required by POSIX, so do not add quotes.
4682 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4685 if cmp -s $cache_file confcache; then
4688 if test -w $cache_file; then
4689 echo "updating cache $cache_file"
4690 cat confcache > $cache_file
4692 echo "not updating unwritable cache $cache_file"
4697 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4699 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4700 # Let make expand exec_prefix.
4701 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4703 # Any assignment to VPATH causes Sun make to only execute
4704 # the first set of double-colon rules, so remove it if not needed.
4705 # If there is a colon in the path, we need to keep it.
4706 if test "x$srcdir" = x.; then
4707 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4710 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4712 # Transform confdefs.h into DEFS.
4713 # Protect against shell expansion while executing Makefile rules.
4714 # Protect against Makefile macro expansion.
4715 cat > conftest.defs <<\EOF
4716 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
4717 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
4722 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
4726 # Without the "./", some shells look in PATH for config.status.
4727 : ${CONFIG_STATUS=./config.status}
4729 echo creating $CONFIG_STATUS
4730 rm -f $CONFIG_STATUS
4731 cat > $CONFIG_STATUS <<EOF
4733 # Generated automatically by configure.
4734 # Run this file to recreate the current configuration.
4735 # This directory was configured as follows,
4736 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4738 # $0 $ac_configure_args
4740 # Compiler output produced by configure, useful for debugging
4741 # configure, is in ./config.log if it exists.
4743 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4746 case "\$ac_option" in
4747 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4748 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4749 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4750 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4751 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4753 -help | --help | --hel | --he | --h)
4754 echo "\$ac_cs_usage"; exit 0 ;;
4755 *) echo "\$ac_cs_usage"; exit 1 ;;
4759 ac_given_srcdir=$srcdir
4760 ac_given_INSTALL="$INSTALL"
4762 trap 'rm -fr `echo "MCONFIG Makefile util/Makefile util/subst.conf lib/et/Makefile
4763 lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile lib/uuid/Makefile
4764 misc/Makefile e2fsck/Makefile debugfs/Makefile tests/Makefile
4765 tests/progs/Makefile $rmakefile doc/Makefile
4766 intl/Makefile po/Makefile.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4768 cat >> $CONFIG_STATUS <<EOF
4770 # Protect against being on the right side of a sed subst in config.status.
4771 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4772 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4776 s%@CFLAGS@%$CFLAGS%g
4777 s%@CPPFLAGS@%$CPPFLAGS%g
4778 s%@CXXFLAGS@%$CXXFLAGS%g
4779 s%@FFLAGS@%$FFLAGS%g
4781 s%@LDFLAGS@%$LDFLAGS%g
4783 s%@exec_prefix@%$exec_prefix%g
4784 s%@prefix@%$prefix%g
4785 s%@program_transform_name@%$program_transform_name%g
4786 s%@bindir@%$bindir%g
4787 s%@sbindir@%$sbindir%g
4788 s%@libexecdir@%$libexecdir%g
4789 s%@datadir@%$datadir%g
4790 s%@sysconfdir@%$sysconfdir%g
4791 s%@sharedstatedir@%$sharedstatedir%g
4792 s%@localstatedir@%$localstatedir%g
4793 s%@libdir@%$libdir%g
4794 s%@includedir@%$includedir%g
4795 s%@oldincludedir@%$oldincludedir%g
4796 s%@infodir@%$infodir%g
4797 s%@mandir@%$mandir%g
4798 /@MCONFIG@/r $MCONFIG
4800 s%@E2FSPROGS_YEAR@%$E2FSPROGS_YEAR%g
4801 s%@E2FSPROGS_MONTH@%$E2FSPROGS_MONTH%g
4802 s%@E2FSPROGS_VERSION@%$E2FSPROGS_VERSION%g
4804 s%@host_alias@%$host_alias%g
4805 s%@host_cpu@%$host_cpu%g
4806 s%@host_vendor@%$host_vendor%g
4807 s%@host_os@%$host_os%g
4810 s%@CCOPTS@%$CCOPTS%g
4812 s%@LINUX_INCLUDE@%$LINUX_INCLUDE%g
4813 s%@DLL_CMT@%$DLL_CMT%g
4814 /@MAKEFILE_DLL@/r $MAKEFILE_DLL
4816 s%@ELF_CMT@%$ELF_CMT%g
4817 /@MAKEFILE_ELF@/r $MAKEFILE_ELF
4819 s%@BSDLIB_CMT@%$BSDLIB_CMT%g
4820 /@MAKEFILE_BSDLIB@/r $MAKEFILE_BSDLIB
4821 s%@MAKEFILE_BSDLIB@%%g
4822 s%@PACKAGE@%$PACKAGE%g
4823 s%@VERSION@%$VERSION%g
4824 s%@SET_MAKE@%$SET_MAKE%g
4825 s%@RANLIB@%$RANLIB%g
4826 s%@ALLOCA@%$ALLOCA%g
4827 s%@USE_NLS@%$USE_NLS%g
4828 s%@MSGFMT@%$MSGFMT%g
4829 s%@GMSGFMT@%$GMSGFMT%g
4830 s%@XGETTEXT@%$XGETTEXT%g
4831 s%@GENCAT@%$GENCAT%g
4832 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
4833 s%@CATALOGS@%$CATALOGS%g
4834 s%@CATOBJEXT@%$CATOBJEXT%g
4835 s%@DATADIRNAME@%$DATADIRNAME%g
4836 s%@GMOFILES@%$GMOFILES%g
4837 s%@INSTOBJEXT@%$INSTOBJEXT%g
4838 s%@INTLDEPS@%$INTLDEPS%g
4839 s%@INTLLIBS@%$INTLLIBS%g
4840 s%@INTLOBJS@%$INTLOBJS%g
4841 s%@POFILES@%$POFILES%g
4843 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
4845 s%@GT_YES@%$GT_YES%g
4846 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
4848 s%@PROFILE_CMT@%$PROFILE_CMT%g
4849 /@MAKEFILE_PROFILE@/r $MAKEFILE_PROFILE
4850 s%@MAKEFILE_PROFILE@%%g
4851 s%@CHECKER_CMT@%$CHECKER_CMT%g
4852 /@MAKEFILE_CHECKER@/r $MAKEFILE_CHECKER
4853 s%@MAKEFILE_CHECKER@%%g
4854 s%@LIB_EXT@%$LIB_EXT%g
4855 s%@STATIC_LIB_EXT@%$STATIC_LIB_EXT%g
4856 s%@PROFILED_LIB_EXT@%$PROFILED_LIB_EXT%g
4858 s%@E2FSCK_TYPE@%$E2FSCK_TYPE%g
4859 s%@FSCK_PROG@%$FSCK_PROG%g
4860 s%@FSCK_MAN@%$FSCK_MAN%g
4861 /@MAKEFILE_LIBRARY@/r $MAKEFILE_LIBRARY
4862 s%@MAKEFILE_LIBRARY@%%g
4863 s%@BINARY_TYPE@%$BINARY_TYPE%g
4874 s%@build_alias@%$build_alias%g
4875 s%@build_cpu@%$build_cpu%g
4876 s%@build_vendor@%$build_vendor%g
4877 s%@build_os@%$build_os%g
4880 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4881 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4882 s%@INSTALL_DATA@%$INSTALL_DATA%g
4883 s%@BUILD_CC@%$BUILD_CC%g
4884 s%@SIZEOF_SHORT@%$SIZEOF_SHORT%g
4885 s%@SIZEOF_INT@%$SIZEOF_INT%g
4886 s%@SIZEOF_LONG@%$SIZEOF_LONG%g
4887 s%@SIZEOF_LONG_LONG@%$SIZEOF_LONG_LONG%g
4888 s%@SOCKET_LIB@%$SOCKET_LIB%g
4889 s%@root_prefix@%$root_prefix%g
4890 s%@LDFLAG_STATIC@%$LDFLAG_STATIC%g
4891 s%@SS_DIR@%$SS_DIR%g
4892 s%@ET_DIR@%$ET_DIR%g
4893 s%@DO_TEST_SUITE@%$DO_TEST_SUITE%g
4898 cat >> $CONFIG_STATUS <<\EOF
4900 # Split the substitutions into bite-sized pieces for seds with
4901 # small command number limits, like on Digital OSF/1 and HP-UX.
4902 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4903 ac_file=1 # Number of current file.
4904 ac_beg=1 # First line for current file.
4905 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4908 while $ac_more_lines; do
4909 if test $ac_beg -gt 1; then
4910 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4912 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4914 if test ! -s conftest.s$ac_file; then
4916 rm -f conftest.s$ac_file
4918 if test -z "$ac_sed_cmds"; then
4919 ac_sed_cmds="sed -f conftest.s$ac_file"
4921 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4923 ac_file=`expr $ac_file + 1`
4925 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4928 if test -z "$ac_sed_cmds"; then
4933 cat >> $CONFIG_STATUS <<EOF
4935 CONFIG_FILES=\${CONFIG_FILES-"MCONFIG Makefile util/Makefile util/subst.conf lib/et/Makefile
4936 lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile lib/uuid/Makefile
4937 misc/Makefile e2fsck/Makefile debugfs/Makefile tests/Makefile
4938 tests/progs/Makefile $rmakefile doc/Makefile
4939 intl/Makefile po/Makefile.in"}
4941 cat >> $CONFIG_STATUS <<\EOF
4942 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4943 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4945 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4946 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4947 *) ac_file_in="${ac_file}.in" ;;
4950 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4952 # Remove last slash and all that follows it. Not all systems have dirname.
4953 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4954 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4955 # The file is in a subdirectory.
4956 test ! -d "$ac_dir" && mkdir "$ac_dir"
4957 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4958 # A "../" for each directory in $ac_dir_suffix.
4959 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4961 ac_dir_suffix= ac_dots=
4964 case "$ac_given_srcdir" in
4966 if test -z "$ac_dots"; then top_srcdir=.
4967 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4968 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4970 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4971 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4974 case "$ac_given_INSTALL" in
4975 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4976 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4979 echo creating "$ac_file"
4981 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4983 *Makefile*) ac_comsub="1i\\
4984 # $configure_input" ;;
4988 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4990 s%@configure_input@%$configure_input%g
4991 s%@srcdir@%$srcdir%g
4992 s%@top_srcdir@%$top_srcdir%g
4993 s%@INSTALL@%$INSTALL%g
4994 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5000 cat >> $CONFIG_STATUS <<EOF
5001 ac_sources="$nls_cv_header_libgt"
5002 ac_dests="$nls_cv_header_intl"
5005 cat >> $CONFIG_STATUS <<\EOF
5006 srcdir=$ac_given_srcdir
5007 while test -n "$ac_sources"; do
5008 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
5009 set $ac_sources; ac_source=$1; shift; ac_sources=$*
5011 echo "linking $srcdir/$ac_source to $ac_dest"
5013 if test ! -r $srcdir/$ac_source; then
5014 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
5018 # Make relative symlinks.
5019 # Remove last slash and all that follows it. Not all systems have dirname.
5020 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
5021 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
5022 # The dest file is in a subdirectory.
5023 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
5024 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
5025 # A "../" for each directory in $ac_dest_dir_suffix.
5026 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
5028 ac_dest_dir_suffix= ac_dots=
5032 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
5033 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
5036 # Make a symlink if possible; otherwise try a hard link.
5037 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
5038 ln $srcdir/$ac_source $ac_dest; then :
5040 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
5044 cat >> $CONFIG_STATUS <<EOF
5048 cat >> $CONFIG_STATUS <<\EOF
5049 case "$CONFIG_FILES" in *po/Makefile.in*)
5050 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
5055 chmod +x $CONFIG_STATUS
5056 rm -fr confdefs* $ac_clean_files
5057 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1