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-jfs-debug enable journal debugging"
35 --enable-nls Turn on Native Language Support"
37 --with-included-gettext use the GNU gettext library included here"
39 --with-catgets use catgets functions if available"
41 --enable-profile build profiling libraries"
43 --enable-checker build checker libraries"
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 MAKEFILE_ELF
=$srcdir/lib
/Makefile.solaris-lib
1102 echo "Enabling ELF shared libraries"
1106 MAKEFILE_ELF
=/dev
/null
1108 echo "Disabling ELF shared libraries by default"
1114 # Check whether --enable-bsd-shlibs or --disable-bsd-shlibs was given.
1115 if test "${enable_bsd_shlibs+set}" = set; then
1116 enableval
="$enable_bsd_shlibs"
1117 if test "$enableval" = "no"
1120 MAKEFILE_BSDLIB
=/dev
/null
1121 echo "Disabling BSD shared libraries"
1124 MAKEFILE_BSDLIB
=$srcdir/lib
/Makefile.bsd-lib
1126 echo "Enabling BSD shared libraries"
1130 MAKEFILE_BSDLIB
=/dev
/null
1132 echo "Disabling BSD shared libraries by default"
1138 # Check whether --enable-jfs-debug or --disable-jfs-debug was given.
1139 if test "${enable_jfs_debug+set}" = set; then
1140 enableval
="$enable_jfs_debug"
1141 if test "$enableval" = "no"
1143 echo "Disabling journal debugging"
1145 cat >> confdefs.h
<<\EOF
1149 echo "Enabling journal debugging"
1153 echo "Disabling journal debugging by default"
1158 VERSION
="$E2FSPROGS_VERSION"
1159 cat >> confdefs.h
<<EOF
1160 #define PACKAGE "$PACKAGE"
1163 cat >> confdefs.h
<<EOF
1164 #define VERSION "$VERSION"
1170 ALL_LINGUAS
="it nyc"
1171 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1172 echo "configure:1173: checking whether ${MAKE-make} sets \${MAKE}" >&5
1173 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1174 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1175 echo $ac_n "(cached) $ac_c" 1>&6
1177 cat > conftestmake
<<\EOF
1179 @
echo 'ac_maketemp="${MAKE}"'
1181 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1182 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1183 if test -n "$ac_maketemp"; then
1184 eval ac_cv_prog_make_
${ac_make}_set
=yes
1186 eval ac_cv_prog_make_
${ac_make}_set
=no
1190 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1191 echo "$ac_t""yes" 1>&6
1194 echo "$ac_t""no" 1>&6
1195 SET_MAKE
="MAKE=${MAKE-make}"
1198 # Extract the first word of "ranlib", so it can be a program name with args.
1199 set dummy ranlib
; ac_word
=$2
1200 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1201 echo "configure:1202: checking for $ac_word" >&5
1202 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1203 echo $ac_n "(cached) $ac_c" 1>&6
1205 if test -n "$RANLIB"; then
1206 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1208 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1210 for ac_dir
in $ac_dummy; do
1211 test -z "$ac_dir" && ac_dir
=.
1212 if test -f $ac_dir/$ac_word; then
1213 ac_cv_prog_RANLIB
="ranlib"
1218 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1221 RANLIB
="$ac_cv_prog_RANLIB"
1222 if test -n "$RANLIB"; then
1223 echo "$ac_t""$RANLIB" 1>&6
1225 echo "$ac_t""no" 1>&6
1228 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1229 echo "configure:1230: checking for POSIXized ISC" >&5
1230 if test -d /etc
/conf
/kconfig.d
&&
1231 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
1233 echo "$ac_t""yes" 1>&6
1234 ISC
=yes # If later tests want to check for ISC.
1235 cat >> confdefs.h
<<\EOF
1236 #define _POSIX_SOURCE 1
1239 if test "$GCC" = yes; then
1245 echo "$ac_t""no" 1>&6
1249 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1250 echo "configure:1251: checking for ANSI C header files" >&5
1251 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1252 echo $ac_n "(cached) $ac_c" 1>&6
1254 cat > conftest.
$ac_ext <<EOF
1255 #line 1256 "configure"
1256 #include "confdefs.h"
1262 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1263 { (eval echo configure
:1264: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1264 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1265 if test -z "$ac_err"; then
1267 ac_cv_header_stdc
=yes
1270 echo "configure: failed program was:" >&5
1271 cat conftest.
$ac_ext >&5
1273 ac_cv_header_stdc
=no
1277 if test $ac_cv_header_stdc = yes; then
1278 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1279 cat > conftest.
$ac_ext <<EOF
1280 #line 1281 "configure"
1281 #include "confdefs.h"
1284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1285 egrep "memchr" >/dev
/null
2>&1; then
1289 ac_cv_header_stdc
=no
1295 if test $ac_cv_header_stdc = yes; then
1296 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1297 cat > conftest.
$ac_ext <<EOF
1298 #line 1299 "configure"
1299 #include "confdefs.h"
1302 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1303 egrep "free" >/dev
/null
2>&1; then
1307 ac_cv_header_stdc
=no
1313 if test $ac_cv_header_stdc = yes; then
1314 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1315 if test "$cross_compiling" = yes; then
1318 cat > conftest.
$ac_ext <<EOF
1319 #line 1320 "configure"
1320 #include "confdefs.h"
1322 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1323 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1324 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1325 int main () { int i; for (i = 0; i < 256; i++)
1326 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1330 if { (eval echo configure
:1331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1334 echo "configure: failed program was:" >&5
1335 cat conftest.
$ac_ext >&5
1337 ac_cv_header_stdc
=no
1345 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1346 if test $ac_cv_header_stdc = yes; then
1347 cat >> confdefs.h
<<\EOF
1348 #define STDC_HEADERS 1
1353 echo $ac_n "checking for working const""... $ac_c" 1>&6
1354 echo "configure:1355: checking for working const" >&5
1355 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1356 echo $ac_n "(cached) $ac_c" 1>&6
1358 cat > conftest.
$ac_ext <<EOF
1359 #line 1360 "configure"
1360 #include "confdefs.h"
1364 /* Ultrix mips cc rejects this. */
1365 typedef int charset[2]; const charset x = {0,0};
1366 /* SunOS 4.1.1 cc rejects this. */
1367 char const *const *ccp;
1369 /* NEC SVR4.0.2 mips cc rejects this. */
1370 struct point {int x, y;};
1371 static struct point const zero = {0,0};
1372 /* AIX XL C 1.02.0.0 rejects this.
1373 It does not let you subtract one const X* pointer from another in an arm
1374 of an if-expression whose if-part is not a constant expression */
1375 const char *g = "string";
1376 ccp = &g + (g ? g-g : 0);
1377 /* HPUX 7.0 cc rejects these. */
1380 ccp = (char const *const *) p;
1381 { /* SCO 3.2v4 cc rejects this. */
1383 char const *s = 0 ? (char *) 0 : (char const *) 0;
1387 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1389 const int *foo = &x[0];
1392 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1393 typedef const int *iptr;
1397 { /* AIX XL C 1.02.0.0 rejects this saying
1398 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1399 struct s { int j; const int *ap[3]; };
1400 struct s *b; b->j = 5;
1402 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1408 if { (eval echo configure
:1409: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1412 echo "configure: failed program was:" >&5
1413 cat conftest.
$ac_ext >&5
1420 echo "$ac_t""$ac_cv_c_const" 1>&6
1421 if test $ac_cv_c_const = no
; then
1422 cat >> confdefs.h
<<\EOF
1428 echo $ac_n "checking for inline""... $ac_c" 1>&6
1429 echo "configure:1430: checking for inline" >&5
1430 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1431 echo $ac_n "(cached) $ac_c" 1>&6
1434 for ac_kw
in inline __inline__ __inline
; do
1435 cat > conftest.
$ac_ext <<EOF
1436 #line 1437 "configure"
1437 #include "confdefs.h"
1440 } int $ac_kw foo() {
1443 if { (eval echo configure
:1444: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1445 ac_cv_c_inline
=$ac_kw; break
1447 echo "configure: failed program was:" >&5
1448 cat conftest.
$ac_ext >&5
1455 echo "$ac_t""$ac_cv_c_inline" 1>&6
1456 case "$ac_cv_c_inline" in
1458 no
) cat >> confdefs.h
<<\EOF
1462 *) cat >> confdefs.h
<<EOF
1463 #define inline $ac_cv_c_inline
1468 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1469 echo "configure:1470: checking for off_t" >&5
1470 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1471 echo $ac_n "(cached) $ac_c" 1>&6
1473 cat > conftest.
$ac_ext <<EOF
1474 #line 1475 "configure"
1475 #include "confdefs.h"
1476 #include <sys/types.h>
1482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1483 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1485 ac_cv_type_off_t
=yes
1493 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1494 if test $ac_cv_type_off_t = no
; then
1495 cat >> confdefs.h
<<\EOF
1501 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1502 echo "configure:1503: checking for size_t" >&5
1503 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1504 echo $ac_n "(cached) $ac_c" 1>&6
1506 cat > conftest.
$ac_ext <<EOF
1507 #line 1508 "configure"
1508 #include "confdefs.h"
1509 #include <sys/types.h>
1515 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1516 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1518 ac_cv_type_size_t
=yes
1521 ac_cv_type_size_t
=no
1526 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1527 if test $ac_cv_type_size_t = no
; then
1528 cat >> confdefs.h
<<\EOF
1529 #define size_t unsigned
1534 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1535 # for constant arguments. Useless!
1536 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1537 echo "configure:1538: checking for working alloca.h" >&5
1538 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1539 echo $ac_n "(cached) $ac_c" 1>&6
1541 cat > conftest.
$ac_ext <<EOF
1542 #line 1543 "configure"
1543 #include "confdefs.h"
1546 void *p = alloca(2 * sizeof(int));
1549 if { (eval echo configure
:1550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1551 ac_cv_header_alloca_h
=yes
1553 echo "configure: failed program was:" >&5
1554 cat conftest.
$ac_ext >&5
1556 ac_cv_header_alloca_h
=no
1561 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1562 if test $ac_cv_header_alloca_h = yes; then
1563 cat >> confdefs.h
<<\EOF
1564 #define HAVE_ALLOCA_H 1
1569 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1570 echo "configure:1571: checking for alloca" >&5
1571 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1572 echo $ac_n "(cached) $ac_c" 1>&6
1574 cat > conftest.
$ac_ext <<EOF
1575 #line 1576 "configure"
1576 #include "confdefs.h"
1579 # define alloca __builtin_alloca
1582 # include <malloc.h>
1583 # define alloca _alloca
1586 # include <alloca.h>
1591 # ifndef alloca /* predefined by HP cc +Olibcalls */
1600 char *p = (char *) alloca(1);
1603 if { (eval echo configure
:1604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1605 ac_cv_func_alloca_works
=yes
1607 echo "configure: failed program was:" >&5
1608 cat conftest.
$ac_ext >&5
1610 ac_cv_func_alloca_works
=no
1615 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1616 if test $ac_cv_func_alloca_works = yes; then
1617 cat >> confdefs.h
<<\EOF
1618 #define HAVE_ALLOCA 1
1623 if test $ac_cv_func_alloca_works = no
; then
1624 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1625 # that cause trouble. Some versions do not even contain alloca or
1626 # contain a buggy version. If you still want to use their alloca,
1627 # use ar to extract alloca.o from them instead of compiling alloca.c.
1628 ALLOCA
=alloca.
${ac_objext}
1629 cat >> confdefs.h
<<\EOF
1634 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1635 echo "configure:1636: checking whether alloca needs Cray hooks" >&5
1636 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1637 echo $ac_n "(cached) $ac_c" 1>&6
1639 cat > conftest.
$ac_ext <<EOF
1640 #line 1641 "configure"
1641 #include "confdefs.h"
1642 #if defined(CRAY) && ! defined(CRAY2)
1649 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1650 egrep "webecray" >/dev
/null
2>&1; then
1661 echo "$ac_t""$ac_cv_os_cray" 1>&6
1662 if test $ac_cv_os_cray = yes; then
1663 for ac_func
in _getb67 GETB67 getb67
; do
1664 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1665 echo "configure:1666: checking for $ac_func" >&5
1666 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1667 echo $ac_n "(cached) $ac_c" 1>&6
1669 cat > conftest.
$ac_ext <<EOF
1670 #line 1671 "configure"
1671 #include "confdefs.h"
1672 /* System header to define __stub macros and hopefully few prototypes,
1673 which can conflict with char $ac_func(); below. */
1675 /* Override any gcc2 internal prototype to avoid an error. */
1676 /* We use char because int might match the return type of a gcc2
1677 builtin and then its argument prototype would still apply. */
1682 /* The GNU C library defines this for functions which it implements
1683 to always fail with ENOSYS. Some functions are actually named
1684 something starting with __ and the normal name is an alias. */
1685 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1693 if { (eval echo configure
:1694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1695 eval "ac_cv_func_$ac_func=yes"
1697 echo "configure: failed program was:" >&5
1698 cat conftest.
$ac_ext >&5
1700 eval "ac_cv_func_$ac_func=no"
1705 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1706 echo "$ac_t""yes" 1>&6
1707 cat >> confdefs.h
<<EOF
1708 #define CRAY_STACKSEG_END $ac_func
1713 echo "$ac_t""no" 1>&6
1719 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1720 echo "configure:1721: checking stack direction for C alloca" >&5
1721 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1722 echo $ac_n "(cached) $ac_c" 1>&6
1724 if test "$cross_compiling" = yes; then
1725 ac_cv_c_stack_direction
=0
1727 cat > conftest.
$ac_ext <<EOF
1728 #line 1729 "configure"
1729 #include "confdefs.h"
1730 find_stack_direction ()
1732 static char *addr = 0;
1737 return find_stack_direction ();
1740 return (&dummy > addr) ? 1 : -1;
1744 exit (find_stack_direction() < 0);
1747 if { (eval echo configure
:1748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1749 ac_cv_c_stack_direction
=1
1751 echo "configure: failed program was:" >&5
1752 cat conftest.
$ac_ext >&5
1754 ac_cv_c_stack_direction
=-1
1761 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1762 cat >> confdefs.h
<<EOF
1763 #define STACK_DIRECTION $ac_cv_c_stack_direction
1768 for ac_hdr
in unistd.h
1770 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1771 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1772 echo "configure:1773: checking for $ac_hdr" >&5
1773 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1774 echo $ac_n "(cached) $ac_c" 1>&6
1776 cat > conftest.
$ac_ext <<EOF
1777 #line 1778 "configure"
1778 #include "confdefs.h"
1781 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1782 { (eval echo configure
:1783: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1783 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1784 if test -z "$ac_err"; then
1786 eval "ac_cv_header_$ac_safe=yes"
1789 echo "configure: failed program was:" >&5
1790 cat conftest.
$ac_ext >&5
1792 eval "ac_cv_header_$ac_safe=no"
1796 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1797 echo "$ac_t""yes" 1>&6
1798 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1799 cat >> confdefs.h
<<EOF
1800 #define $ac_tr_hdr 1
1804 echo "$ac_t""no" 1>&6
1808 for ac_func
in getpagesize
1810 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1811 echo "configure:1812: checking for $ac_func" >&5
1812 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1813 echo $ac_n "(cached) $ac_c" 1>&6
1815 cat > conftest.
$ac_ext <<EOF
1816 #line 1817 "configure"
1817 #include "confdefs.h"
1818 /* System header to define __stub macros and hopefully few prototypes,
1819 which can conflict with char $ac_func(); below. */
1821 /* Override any gcc2 internal prototype to avoid an error. */
1822 /* We use char because int might match the return type of a gcc2
1823 builtin and then its argument prototype would still apply. */
1828 /* The GNU C library defines this for functions which it implements
1829 to always fail with ENOSYS. Some functions are actually named
1830 something starting with __ and the normal name is an alias. */
1831 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1839 if { (eval echo configure
:1840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1841 eval "ac_cv_func_$ac_func=yes"
1843 echo "configure: failed program was:" >&5
1844 cat conftest.
$ac_ext >&5
1846 eval "ac_cv_func_$ac_func=no"
1851 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1852 echo "$ac_t""yes" 1>&6
1853 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1854 cat >> confdefs.h
<<EOF
1855 #define $ac_tr_func 1
1859 echo "$ac_t""no" 1>&6
1863 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1864 echo "configure:1865: checking for working mmap" >&5
1865 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1866 echo $ac_n "(cached) $ac_c" 1>&6
1868 if test "$cross_compiling" = yes; then
1869 ac_cv_func_mmap_fixed_mapped
=no
1871 cat > conftest.
$ac_ext <<EOF
1872 #line 1873 "configure"
1873 #include "confdefs.h"
1875 /* Thanks to Mike Haertel and Jim Avera for this test.
1876 Here is a matrix of mmap possibilities:
1877 mmap private not fixed
1878 mmap private fixed at somewhere currently unmapped
1879 mmap private fixed at somewhere already mapped
1880 mmap shared not fixed
1881 mmap shared fixed at somewhere currently unmapped
1882 mmap shared fixed at somewhere already mapped
1883 For private mappings, we should verify that changes cannot be read()
1884 back from the file, nor mmap's back from the file at a different
1885 address. (There have been systems where private was not correctly
1886 implemented like the infamous i386 svr4.0, and systems where the
1887 VM page cache was not coherent with the filesystem buffer cache
1888 like early versions of FreeBSD and possibly contemporary NetBSD.)
1889 For shared mappings, we should conversely verify that changes get
1890 propogated back to all the places they're supposed to be.
1892 Grep wants private fixed already mapped.
1893 The main things grep needs to know about mmap are:
1894 * does it exist and is it safe to write into the mmap'd area
1895 * how to use it (BSD variants) */
1896 #include <sys/types.h>
1898 #include <sys/mman.h>
1900 #include <sys/stat.h>
1902 #ifdef HAVE_UNISTD_H
1903 # include <unistd.h>
1906 /* This mess was copied from the GNU getpagesize.h. */
1907 #ifndef HAVE_GETPAGESIZE
1909 /* Assume that all systems that can run configure have sys/param.h. */
1910 # ifndef HAVE_SYS_PARAM_H
1911 # define HAVE_SYS_PARAM_H 1
1914 # ifdef _SC_PAGESIZE
1915 # define getpagesize() sysconf(_SC_PAGESIZE)
1916 # else /* no _SC_PAGESIZE */
1917 # ifdef HAVE_SYS_PARAM_H
1918 # include <sys/param.h>
1919 # ifdef EXEC_PAGESIZE
1920 # define getpagesize() EXEC_PAGESIZE
1921 # else /* no EXEC_PAGESIZE */
1923 # define getpagesize() NBPG * CLSIZE
1926 # endif /* no CLSIZE */
1927 # else /* no NBPG */
1929 # define getpagesize() NBPC
1930 # else /* no NBPC */
1932 # define getpagesize() PAGESIZE
1933 # endif /* PAGESIZE */
1934 # endif /* no NBPC */
1935 # endif /* no NBPG */
1936 # endif /* no EXEC_PAGESIZE */
1937 # else /* no HAVE_SYS_PARAM_H */
1938 # define getpagesize() 8192 /* punt totally */
1939 # endif /* no HAVE_SYS_PARAM_H */
1940 # endif /* no _SC_PAGESIZE */
1942 #endif /* no HAVE_GETPAGESIZE */
1945 extern "C" { void *malloc(unsigned); }
1953 char *data, *data2, *data3;
1957 pagesize = getpagesize();
1960 * First, make a file with some known garbage in it.
1962 data = (char*)malloc(pagesize);
1965 for (i = 0; i < pagesize; ++i)
1966 *(data + i) = rand();
1968 fd = creat("conftestmmap", 0600);
1971 if (write(fd, data, pagesize) != pagesize)
1976 * Next, try to mmap the file at a fixed address which
1977 * already has something else allocated at it. If we can,
1978 * also make sure that we see the same garbage.
1980 fd = open("conftestmmap", O_RDWR);
1983 data2 = (char*)malloc(2 * pagesize);
1986 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1987 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1988 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1990 for (i = 0; i < pagesize; ++i)
1991 if (*(data + i) != *(data2 + i))
1995 * Finally, make sure that changes to the mapped area
1996 * do not percolate back to the file as seen by read().
1997 * (This is a bug on some variants of i386 svr4.0.)
1999 for (i = 0; i < pagesize; ++i)
2000 *(data2 + i) = *(data2 + i) + 1;
2001 data3 = (char*)malloc(pagesize);
2004 if (read(fd, data3, pagesize) != pagesize)
2006 for (i = 0; i < pagesize; ++i)
2007 if (*(data + i) != *(data3 + i))
2010 unlink("conftestmmap");
2015 if { (eval echo configure
:2016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2017 ac_cv_func_mmap_fixed_mapped
=yes
2019 echo "configure: failed program was:" >&5
2020 cat conftest.
$ac_ext >&5
2022 ac_cv_func_mmap_fixed_mapped
=no
2029 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2030 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2031 cat >> confdefs.h
<<\EOF
2038 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2039 unistd.h sys
/param.h
2041 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2042 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2043 echo "configure:2044: checking for $ac_hdr" >&5
2044 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2045 echo $ac_n "(cached) $ac_c" 1>&6
2047 cat > conftest.
$ac_ext <<EOF
2048 #line 2049 "configure"
2049 #include "confdefs.h"
2052 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2053 { (eval echo configure
:2054: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2054 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2055 if test -z "$ac_err"; then
2057 eval "ac_cv_header_$ac_safe=yes"
2060 echo "configure: failed program was:" >&5
2061 cat conftest.
$ac_ext >&5
2063 eval "ac_cv_header_$ac_safe=no"
2067 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2068 echo "$ac_t""yes" 1>&6
2069 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2070 cat >> confdefs.h
<<EOF
2071 #define $ac_tr_hdr 1
2075 echo "$ac_t""no" 1>&6
2079 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2080 strdup __argz_count __argz_stringify __argz_next
2082 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2083 echo "configure:2084: checking for $ac_func" >&5
2084 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2085 echo $ac_n "(cached) $ac_c" 1>&6
2087 cat > conftest.
$ac_ext <<EOF
2088 #line 2089 "configure"
2089 #include "confdefs.h"
2090 /* System header to define __stub macros and hopefully few prototypes,
2091 which can conflict with char $ac_func(); below. */
2093 /* Override any gcc2 internal prototype to avoid an error. */
2094 /* We use char because int might match the return type of a gcc2
2095 builtin and then its argument prototype would still apply. */
2100 /* The GNU C library defines this for functions which it implements
2101 to always fail with ENOSYS. Some functions are actually named
2102 something starting with __ and the normal name is an alias. */
2103 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2111 if { (eval echo configure
:2112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2113 eval "ac_cv_func_$ac_func=yes"
2115 echo "configure: failed program was:" >&5
2116 cat conftest.
$ac_ext >&5
2118 eval "ac_cv_func_$ac_func=no"
2123 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2124 echo "$ac_t""yes" 1>&6
2125 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2126 cat >> confdefs.h
<<EOF
2127 #define $ac_tr_func 1
2131 echo "$ac_t""no" 1>&6
2136 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2137 for ac_func
in stpcpy
2139 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2140 echo "configure:2141: checking for $ac_func" >&5
2141 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2142 echo $ac_n "(cached) $ac_c" 1>&6
2144 cat > conftest.
$ac_ext <<EOF
2145 #line 2146 "configure"
2146 #include "confdefs.h"
2147 /* System header to define __stub macros and hopefully few prototypes,
2148 which can conflict with char $ac_func(); below. */
2150 /* Override any gcc2 internal prototype to avoid an error. */
2151 /* We use char because int might match the return type of a gcc2
2152 builtin and then its argument prototype would still apply. */
2157 /* The GNU C library defines this for functions which it implements
2158 to always fail with ENOSYS. Some functions are actually named
2159 something starting with __ and the normal name is an alias. */
2160 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2168 if { (eval echo configure
:2169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2170 eval "ac_cv_func_$ac_func=yes"
2172 echo "configure: failed program was:" >&5
2173 cat conftest.
$ac_ext >&5
2175 eval "ac_cv_func_$ac_func=no"
2180 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2181 echo "$ac_t""yes" 1>&6
2182 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2183 cat >> confdefs.h
<<EOF
2184 #define $ac_tr_func 1
2188 echo "$ac_t""no" 1>&6
2193 if test "${ac_cv_func_stpcpy}" = "yes"; then
2194 cat >> confdefs.h
<<\EOF
2195 #define HAVE_STPCPY 1
2200 if test $ac_cv_header_locale_h = yes; then
2201 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2202 echo "configure:2203: checking for LC_MESSAGES" >&5
2203 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2204 echo $ac_n "(cached) $ac_c" 1>&6
2206 cat > conftest.
$ac_ext <<EOF
2207 #line 2208 "configure"
2208 #include "confdefs.h"
2214 if { (eval echo configure
:2215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2216 am_cv_val_LC_MESSAGES
=yes
2218 echo "configure: failed program was:" >&5
2219 cat conftest.
$ac_ext >&5
2221 am_cv_val_LC_MESSAGES
=no
2226 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2227 if test $am_cv_val_LC_MESSAGES = yes; then
2228 cat >> confdefs.h
<<\EOF
2229 #define HAVE_LC_MESSAGES 1
2234 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2235 echo "configure:2236: checking whether NLS is requested" >&5
2236 # Check whether --enable-nls or --disable-nls was given.
2237 if test "${enable_nls+set}" = set; then
2238 enableval
="$enable_nls"
2244 echo "$ac_t""$USE_NLS" 1>&6
2247 USE_INCLUDED_LIBINTL
=no
2249 if test "$USE_NLS" = "yes"; then
2250 cat >> confdefs.h
<<\EOF
2251 #define ENABLE_NLS 1
2254 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2255 echo "configure:2256: checking whether included gettext is requested" >&5
2256 # Check whether --with-included-gettext or --without-included-gettext was given.
2257 if test "${with_included_gettext+set}" = set; then
2258 withval
="$with_included_gettext"
2259 nls_cv_force_use_gnu_gettext
=$withval
2261 nls_cv_force_use_gnu_gettext
=no
2264 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2266 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
2267 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2269 nls_cv_header_libgt
=
2272 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2273 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2274 echo "configure:2275: checking for libintl.h" >&5
2275 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+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 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2284 { (eval echo configure
:2285: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2285 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2286 if test -z "$ac_err"; then
2288 eval "ac_cv_header_$ac_safe=yes"
2291 echo "configure: failed program was:" >&5
2292 cat conftest.
$ac_ext >&5
2294 eval "ac_cv_header_$ac_safe=no"
2298 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2299 echo "$ac_t""yes" 1>&6
2300 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2301 echo "configure:2302: checking for gettext in libc" >&5
2302 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2303 echo $ac_n "(cached) $ac_c" 1>&6
2305 cat > conftest.
$ac_ext <<EOF
2306 #line 2307 "configure"
2307 #include "confdefs.h"
2308 #include <libintl.h>
2310 return (int) gettext ("")
2313 if { (eval echo configure
:2314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2315 gt_cv_func_gettext_libc
=yes
2317 echo "configure: failed program was:" >&5
2318 cat conftest.
$ac_ext >&5
2320 gt_cv_func_gettext_libc
=no
2325 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2327 if test "$gt_cv_func_gettext_libc" != "yes"; then
2328 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2329 echo "configure:2330: checking for bindtextdomain in -lintl" >&5
2330 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2331 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2332 echo $ac_n "(cached) $ac_c" 1>&6
2334 ac_save_LIBS
="$LIBS"
2336 cat > conftest.
$ac_ext <<EOF
2337 #line 2338 "configure"
2338 #include "confdefs.h"
2339 /* Override any gcc2 internal prototype to avoid an error. */
2340 /* We use char because int might match the return type of a gcc2
2341 builtin and then its argument prototype would still apply. */
2342 char bindtextdomain();
2348 if { (eval echo configure
:2349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2350 eval "ac_cv_lib_$ac_lib_var=yes"
2352 echo "configure: failed program was:" >&5
2353 cat conftest.
$ac_ext >&5
2355 eval "ac_cv_lib_$ac_lib_var=no"
2358 LIBS
="$ac_save_LIBS"
2361 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2362 echo "$ac_t""yes" 1>&6
2363 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2364 echo "configure:2365: checking for gettext in libintl" >&5
2365 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2366 echo $ac_n "(cached) $ac_c" 1>&6
2368 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
2369 echo "configure:2370: checking for gettext in -lintl" >&5
2370 ac_lib_var
=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
2371 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2372 echo $ac_n "(cached) $ac_c" 1>&6
2374 ac_save_LIBS
="$LIBS"
2376 cat > conftest.
$ac_ext <<EOF
2377 #line 2378 "configure"
2378 #include "confdefs.h"
2379 /* Override any gcc2 internal prototype to avoid an error. */
2380 /* We use char because int might match the return type of a gcc2
2381 builtin and then its argument prototype would still apply. */
2388 if { (eval echo configure
:2389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2390 eval "ac_cv_lib_$ac_lib_var=yes"
2392 echo "configure: failed program was:" >&5
2393 cat conftest.
$ac_ext >&5
2395 eval "ac_cv_lib_$ac_lib_var=no"
2398 LIBS
="$ac_save_LIBS"
2401 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2402 echo "$ac_t""yes" 1>&6
2403 gt_cv_func_gettext_libintl
=yes
2405 echo "$ac_t""no" 1>&6
2406 gt_cv_func_gettext_libintl
=no
2411 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2413 echo "$ac_t""no" 1>&6
2418 if test "$gt_cv_func_gettext_libc" = "yes" \
2419 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
2420 cat >> confdefs.h
<<\EOF
2421 #define HAVE_GETTEXT 1
2424 # Extract the first word of "msgfmt", so it can be a program name with args.
2425 set dummy msgfmt
; ac_word
=$2
2426 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2427 echo "configure:2428: checking for $ac_word" >&5
2428 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2429 echo $ac_n "(cached) $ac_c" 1>&6
2433 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2436 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2437 for ac_dir
in $PATH; do
2438 test -z "$ac_dir" && ac_dir
=.
2439 if test -f $ac_dir/$ac_word; then
2440 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2441 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2447 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
2451 MSGFMT
="$ac_cv_path_MSGFMT"
2452 if test -n "$MSGFMT"; then
2453 echo "$ac_t""$MSGFMT" 1>&6
2455 echo "$ac_t""no" 1>&6
2457 if test "$MSGFMT" != "no"; then
2458 for ac_func
in dcgettext
2460 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2461 echo "configure:2462: checking for $ac_func" >&5
2462 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2463 echo $ac_n "(cached) $ac_c" 1>&6
2465 cat > conftest.
$ac_ext <<EOF
2466 #line 2467 "configure"
2467 #include "confdefs.h"
2468 /* System header to define __stub macros and hopefully few prototypes,
2469 which can conflict with char $ac_func(); below. */
2471 /* Override any gcc2 internal prototype to avoid an error. */
2472 /* We use char because int might match the return type of a gcc2
2473 builtin and then its argument prototype would still apply. */
2478 /* The GNU C library defines this for functions which it implements
2479 to always fail with ENOSYS. Some functions are actually named
2480 something starting with __ and the normal name is an alias. */
2481 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2489 if { (eval echo configure
:2490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2491 eval "ac_cv_func_$ac_func=yes"
2493 echo "configure: failed program was:" >&5
2494 cat conftest.
$ac_ext >&5
2496 eval "ac_cv_func_$ac_func=no"
2501 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2502 echo "$ac_t""yes" 1>&6
2503 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2504 cat >> confdefs.h
<<EOF
2505 #define $ac_tr_func 1
2509 echo "$ac_t""no" 1>&6
2513 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2514 set dummy gmsgfmt
; ac_word
=$2
2515 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2516 echo "configure:2517: checking for $ac_word" >&5
2517 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2518 echo $ac_n "(cached) $ac_c" 1>&6
2522 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2525 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2528 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2530 for ac_dir
in $ac_dummy; do
2531 test -z "$ac_dir" && ac_dir
=.
2532 if test -f $ac_dir/$ac_word; then
2533 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2538 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2542 GMSGFMT
="$ac_cv_path_GMSGFMT"
2543 if test -n "$GMSGFMT"; then
2544 echo "$ac_t""$GMSGFMT" 1>&6
2546 echo "$ac_t""no" 1>&6
2549 # Extract the first word of "xgettext", so it can be a program name with args.
2550 set dummy xgettext
; ac_word
=$2
2551 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2552 echo "configure:2553: checking for $ac_word" >&5
2553 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2554 echo $ac_n "(cached) $ac_c" 1>&6
2558 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2561 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2562 for ac_dir
in $PATH; do
2563 test -z "$ac_dir" && ac_dir
=.
2564 if test -f $ac_dir/$ac_word; then
2565 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2566 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2572 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2576 XGETTEXT
="$ac_cv_path_XGETTEXT"
2577 if test -n "$XGETTEXT"; then
2578 echo "$ac_t""$XGETTEXT" 1>&6
2580 echo "$ac_t""no" 1>&6
2583 cat > conftest.
$ac_ext <<EOF
2584 #line 2585 "configure"
2585 #include "confdefs.h"
2588 extern int _nl_msg_cat_cntr;
2589 return _nl_msg_cat_cntr
2592 if { (eval echo configure
:2593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2597 echo "configure: failed program was:" >&5
2598 cat conftest.
$ac_ext >&5
2609 echo "$ac_t""no" 1>&6
2613 if test "$CATOBJEXT" = "NONE"; then
2614 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
2615 echo "configure:2616: checking whether catgets can be used" >&5
2616 # Check whether --with-catgets or --without-catgets was given.
2617 if test "${with_catgets+set}" = set; then
2618 withval
="$with_catgets"
2619 nls_cv_use_catgets
=$withval
2621 nls_cv_use_catgets
=no
2624 echo "$ac_t""$nls_cv_use_catgets" 1>&6
2626 if test "$nls_cv_use_catgets" = "yes"; then
2627 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
2628 echo "configure:2629: checking for main in -li" >&5
2629 ac_lib_var
=`echo i'_'main | sed 'y%./+-%__p_%'`
2630 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2631 echo $ac_n "(cached) $ac_c" 1>&6
2633 ac_save_LIBS
="$LIBS"
2635 cat > conftest.
$ac_ext <<EOF
2636 #line 2637 "configure"
2637 #include "confdefs.h"
2643 if { (eval echo configure
:2644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2645 eval "ac_cv_lib_$ac_lib_var=yes"
2647 echo "configure: failed program was:" >&5
2648 cat conftest.
$ac_ext >&5
2650 eval "ac_cv_lib_$ac_lib_var=no"
2653 LIBS
="$ac_save_LIBS"
2656 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2657 echo "$ac_t""yes" 1>&6
2658 ac_tr_lib
=HAVE_LIB
`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2659 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2660 cat >> confdefs.h
<<EOF
2661 #define $ac_tr_lib 1
2667 echo "$ac_t""no" 1>&6
2670 echo $ac_n "checking for catgets""... $ac_c" 1>&6
2671 echo "configure:2672: checking for catgets" >&5
2672 if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
2673 echo $ac_n "(cached) $ac_c" 1>&6
2675 cat > conftest.
$ac_ext <<EOF
2676 #line 2677 "configure"
2677 #include "confdefs.h"
2678 /* System header to define __stub macros and hopefully few prototypes,
2679 which can conflict with char catgets(); below. */
2681 /* Override any gcc2 internal prototype to avoid an error. */
2682 /* We use char because int might match the return type of a gcc2
2683 builtin and then its argument prototype would still apply. */
2688 /* The GNU C library defines this for functions which it implements
2689 to always fail with ENOSYS. Some functions are actually named
2690 something starting with __ and the normal name is an alias. */
2691 #if defined (__stub_catgets) || defined (__stub___catgets)
2699 if { (eval echo configure
:2700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2701 eval "ac_cv_func_catgets=yes"
2703 echo "configure: failed program was:" >&5
2704 cat conftest.
$ac_ext >&5
2706 eval "ac_cv_func_catgets=no"
2711 if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
2712 echo "$ac_t""yes" 1>&6
2713 cat >> confdefs.h
<<\EOF
2714 #define HAVE_CATGETS 1
2717 INTLOBJS
="\$(CATOBJS)"
2718 # Extract the first word of "gencat", so it can be a program name with args.
2719 set dummy gencat
; ac_word
=$2
2720 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2721 echo "configure:2722: checking for $ac_word" >&5
2722 if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
2723 echo $ac_n "(cached) $ac_c" 1>&6
2727 ac_cv_path_GENCAT
="$GENCAT" # Let the user override the test with a path.
2730 ac_cv_path_GENCAT
="$GENCAT" # Let the user override the test with a dos path.
2733 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2735 for ac_dir
in $ac_dummy; do
2736 test -z "$ac_dir" && ac_dir
=.
2737 if test -f $ac_dir/$ac_word; then
2738 ac_cv_path_GENCAT
="$ac_dir/$ac_word"
2743 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT
="no"
2747 GENCAT
="$ac_cv_path_GENCAT"
2748 if test -n "$GENCAT"; then
2749 echo "$ac_t""$GENCAT" 1>&6
2751 echo "$ac_t""no" 1>&6
2753 if test "$GENCAT" != "no"; then
2754 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2755 set dummy gmsgfmt
; ac_word
=$2
2756 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2757 echo "configure:2758: checking for $ac_word" >&5
2758 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2759 echo $ac_n "(cached) $ac_c" 1>&6
2763 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2766 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2769 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2771 for ac_dir
in $ac_dummy; do
2772 test -z "$ac_dir" && ac_dir
=.
2773 if test -f $ac_dir/$ac_word; then
2774 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2779 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="no"
2783 GMSGFMT
="$ac_cv_path_GMSGFMT"
2784 if test -n "$GMSGFMT"; then
2785 echo "$ac_t""$GMSGFMT" 1>&6
2787 echo "$ac_t""no" 1>&6
2790 if test "$GMSGFMT" = "no"; then
2791 # Extract the first word of "msgfmt", so it can be a program name with args.
2792 set dummy msgfmt
; ac_word
=$2
2793 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2794 echo "configure:2795: checking for $ac_word" >&5
2795 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2796 echo $ac_n "(cached) $ac_c" 1>&6
2800 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2803 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2804 for ac_dir
in $PATH; do
2805 test -z "$ac_dir" && ac_dir
=.
2806 if test -f $ac_dir/$ac_word; then
2807 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2808 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2814 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="no"
2818 GMSGFMT
="$ac_cv_path_GMSGFMT"
2819 if test -n "$GMSGFMT"; then
2820 echo "$ac_t""$GMSGFMT" 1>&6
2822 echo "$ac_t""no" 1>&6
2826 # Extract the first word of "xgettext", so it can be a program name with args.
2827 set dummy xgettext
; ac_word
=$2
2828 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2829 echo "configure:2830: checking for $ac_word" >&5
2830 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2831 echo $ac_n "(cached) $ac_c" 1>&6
2835 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2838 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2839 for ac_dir
in $PATH; do
2840 test -z "$ac_dir" && ac_dir
=.
2841 if test -f $ac_dir/$ac_word; then
2842 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2843 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2849 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2853 XGETTEXT
="$ac_cv_path_XGETTEXT"
2854 if test -n "$XGETTEXT"; then
2855 echo "$ac_t""$XGETTEXT" 1>&6
2857 echo "$ac_t""no" 1>&6
2860 USE_INCLUDED_LIBINTL
=yes
2864 INTLDEPS
='$(top_builddir)/intl/libintl.a'
2866 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
2867 nls_cv_header_intl
=intl
/libintl.h
2868 nls_cv_header_libgt
=intl
/libgettext.h
2871 echo "$ac_t""no" 1>&6
2877 if test "$CATOBJEXT" = "NONE"; then
2878 nls_cv_use_gnu_gettext
=yes
2882 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2883 INTLOBJS
="\$(GETTOBJS)"
2884 # Extract the first word of "msgfmt", so it can be a program name with args.
2885 set dummy msgfmt
; ac_word
=$2
2886 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2887 echo "configure:2888: checking for $ac_word" >&5
2888 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2889 echo $ac_n "(cached) $ac_c" 1>&6
2893 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2896 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2897 for ac_dir
in $PATH; do
2898 test -z "$ac_dir" && ac_dir
=.
2899 if test -f $ac_dir/$ac_word; then
2900 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2901 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2907 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
2911 MSGFMT
="$ac_cv_path_MSGFMT"
2912 if test -n "$MSGFMT"; then
2913 echo "$ac_t""$MSGFMT" 1>&6
2915 echo "$ac_t""no" 1>&6
2918 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2919 set dummy gmsgfmt
; ac_word
=$2
2920 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2921 echo "configure:2922: checking for $ac_word" >&5
2922 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2923 echo $ac_n "(cached) $ac_c" 1>&6
2927 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2930 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2933 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2935 for ac_dir
in $ac_dummy; do
2936 test -z "$ac_dir" && ac_dir
=.
2937 if test -f $ac_dir/$ac_word; then
2938 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2943 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2947 GMSGFMT
="$ac_cv_path_GMSGFMT"
2948 if test -n "$GMSGFMT"; then
2949 echo "$ac_t""$GMSGFMT" 1>&6
2951 echo "$ac_t""no" 1>&6
2954 # Extract the first word of "xgettext", so it can be a program name with args.
2955 set dummy xgettext
; ac_word
=$2
2956 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2957 echo "configure:2958: checking for $ac_word" >&5
2958 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2959 echo $ac_n "(cached) $ac_c" 1>&6
2963 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2966 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2967 for ac_dir
in $PATH; do
2968 test -z "$ac_dir" && ac_dir
=.
2969 if test -f $ac_dir/$ac_word; then
2970 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2971 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2977 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2981 XGETTEXT
="$ac_cv_path_XGETTEXT"
2982 if test -n "$XGETTEXT"; then
2983 echo "$ac_t""$XGETTEXT" 1>&6
2985 echo "$ac_t""no" 1>&6
2989 USE_INCLUDED_LIBINTL
=yes
2993 INTLDEPS
='$(top_builddir)/intl/libintl.a'
2995 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
2996 nls_cv_header_intl
=intl
/libintl.h
2997 nls_cv_header_libgt
=intl
/libgettext.h
3000 if test "$XGETTEXT" != ":"; then
3001 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
3004 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
3009 # We need to process the po/ directory.
3013 nls_cv_header_intl
=intl
/libintl.h
3014 nls_cv_header_libgt
=intl
/libgettext.h
3020 # If this is used in GNU gettext we have to set USE_NLS to `yes'
3021 # because some of the sources are only built for this goal.
3022 if test "$PACKAGE" = gettext; then
3024 USE_INCLUDED_LIBINTL
=yes
3027 for lang
in $ALL_LINGUAS; do
3028 GMOFILES
="$GMOFILES $lang.gmo"
3029 POFILES
="$POFILES $lang.po"
3045 if test "x$CATOBJEXT" != "x"; then
3046 if test "x$ALL_LINGUAS" = "x"; then
3049 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3050 echo "configure:3051: checking for catalogs to be installed" >&5
3052 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
3053 case "$ALL_LINGUAS" in
3054 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
3057 LINGUAS
=$NEW_LINGUAS
3058 echo "$ac_t""$LINGUAS" 1>&6
3061 if test -n "$LINGUAS"; then
3062 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
3066 if test $ac_cv_header_locale_h = yes; then
3067 INCLUDE_LOCALE_H
="#include <locale.h>"
3070 /* The system does not provide the header <locale.h>. Take care yourself. */"
3074 test -d intl || mkdir intl
3075 if test "$CATOBJEXT" = ".cat"; then
3076 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
3077 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
3078 echo "configure:3079: checking for linux/version.h" >&5
3079 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3080 echo $ac_n "(cached) $ac_c" 1>&6
3082 cat > conftest.
$ac_ext <<EOF
3083 #line 3084 "configure"
3084 #include "confdefs.h"
3085 #include <linux/version.h>
3087 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3088 { (eval echo configure
:3089: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3089 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3090 if test -z "$ac_err"; then
3092 eval "ac_cv_header_$ac_safe=yes"
3095 echo "configure: failed program was:" >&5
3096 cat conftest.
$ac_ext >&5
3098 eval "ac_cv_header_$ac_safe=no"
3102 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3103 echo "$ac_t""yes" 1>&6
3106 echo "$ac_t""no" 1>&6
3111 sed -e '/^#/d' $srcdir/intl
/$msgformat-msg.
sed > intl
/po2msg.
sed
3113 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
3114 $srcdir/intl
/po2tbl.
sed.
in > intl
/po2tbl.
sed
3116 if test "$PACKAGE" = "gettext"; then
3127 if test -n "$ac_aux_dir"; then
3128 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
3130 if test -z "$MKINSTALLDIRS"; then
3131 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
3138 test -d po || mkdir po
3139 if test "x$srcdir" != "x."; then
3140 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
3141 posrcprefix
="$srcdir/"
3143 posrcprefix
="../$srcdir/"
3149 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
3150 < $srcdir/po
/POTFILES.
in > po
/POTFILES
3152 # Check whether --enable-profile or --disable-profile was given.
3153 if test "${enable_profile+set}" = set; then
3154 enableval
="$enable_profile"
3155 if test "$enableval" = "no"
3158 MAKEFILE_PROFILE
=/dev
/null
3159 echo "Disabling profiling libraries"
3162 MAKEFILE_PROFILE
=$srcdir/lib
/Makefile.profile
3163 PROFILED_LIB_EXT
=_p.a
3164 echo "Building profiling libraries"
3169 MAKEFILE_PROFILE
=/dev
/null
3170 echo "Disabling profiling libraries by default"
3176 # Check whether --enable-checker or --disable-checker was given.
3177 if test "${enable_checker+set}" = set; then
3178 enableval
="$enable_checker"
3179 if test "$enableval" = "no"
3182 MAKEFILE_CHECKER
=/dev
/null
3183 echo "Disabling checker libraries"
3186 MAKEFILE_CHECKER
=$srcdir/lib
/Makefile.checker
3187 echo "Building checker libraries"
3192 MAKEFILE_CHECKER
=/dev
/null
3193 echo "Disabling checker libraries by default"
3202 # Check whether --enable-dynamic-e2fsck or --disable-dynamic-e2fsck was given.
3203 if test "${enable_dynamic_e2fsck+set}" = set; then
3204 enableval
="$enable_dynamic_e2fsck"
3205 if test "$enableval" = "no"
3208 echo "Building e2fsck statically"
3211 echo "Building e2fsck dynamically"
3216 echo "Building e2fsck statically by default"
3221 # Check whether --enable-fsck or --disable-fsck was given.
3222 if test "${enable_fsck+set}" = set; then
3223 enableval
="$enable_fsck"
3224 if test "$enableval" = "no"
3226 FSCK_PROG
='' FSCK_MAN
=''
3227 echo "Not building fsck wrapper"
3229 FSCK_PROG
=fsck FSCK_MAN
=fsck
.8
3230 echo "Building fsck wrapper"
3236 FSCK_PROG
='' FSCK_MAN
=''
3237 echo "Not building fsck wrapper by default"
3240 FSCK_PROG
=fsck FSCK_MAN
=fsck
.8
3241 echo "Building fsck wrapper by default"
3248 MAKEFILE_LIBRARY
=$srcdir/lib
/Makefile.library
3250 # Check whether --enable-old-bitops or --disable-old-bitops was given.
3251 if test "${enable_old_bitops+set}" = set; then
3252 enableval
="$enable_old_bitops"
3253 if test "$enableval" = "no"
3255 echo "Using new (standard) bitmask operations"
3257 cat >> confdefs.h
<<\EOF
3258 #define EXT2_OLD_BITOPS 1
3261 echo "Using old (native) bitmask operations"
3266 echo "Using standard bitmask operations by default"
3271 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
3272 echo "configure:3273: checking whether ${MAKE-make} sets \${MAKE}" >&5
3273 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
3274 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
3275 echo $ac_n "(cached) $ac_c" 1>&6
3277 cat > conftestmake
<<\EOF
3279 @
echo 'ac_maketemp="${MAKE}"'
3281 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3282 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
3283 if test -n "$ac_maketemp"; then
3284 eval ac_cv_prog_make_
${ac_make}_set
=yes
3286 eval ac_cv_prog_make_
${ac_make}_set
=no
3290 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3291 echo "$ac_t""yes" 1>&6
3294 echo "$ac_t""no" 1>&6
3295 SET_MAKE
="MAKE=${MAKE-make}"
3298 # Extract the first word of "ln", so it can be a program name with args.
3299 set dummy
ln; ac_word
=$2
3300 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3301 echo "configure:3302: checking for $ac_word" >&5
3302 if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then
3303 echo $ac_n "(cached) $ac_c" 1>&6
3307 ac_cv_path_LN
="$LN" # Let the user override the test with a path.
3310 ac_cv_path_LN
="$LN" # Let the user override the test with a dos path.
3313 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3315 for ac_dir
in $ac_dummy; do
3316 test -z "$ac_dir" && ac_dir
=.
3317 if test -f $ac_dir/$ac_word; then
3318 ac_cv_path_LN
="$ac_dir/$ac_word"
3323 test -z "$ac_cv_path_LN" && ac_cv_path_LN
="ln"
3328 if test -n "$LN"; then
3329 echo "$ac_t""$LN" 1>&6
3331 echo "$ac_t""no" 1>&6
3334 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3335 echo "configure:3336: checking whether ln -s works" >&5
3336 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
3337 echo $ac_n "(cached) $ac_c" 1>&6
3340 if ln -s X conftestdata
2>/dev
/null
3343 ac_cv_prog_LN_S
="ln -s"
3348 LN_S
="$ac_cv_prog_LN_S"
3349 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3350 echo "$ac_t""yes" 1>&6
3352 echo "$ac_t""no" 1>&6
3355 # Extract the first word of "mv", so it can be a program name with args.
3356 set dummy
mv; ac_word
=$2
3357 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3358 echo "configure:3359: checking for $ac_word" >&5
3359 if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
3360 echo $ac_n "(cached) $ac_c" 1>&6
3364 ac_cv_path_MV
="$MV" # Let the user override the test with a path.
3367 ac_cv_path_MV
="$MV" # Let the user override the test with a dos path.
3370 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3372 for ac_dir
in $ac_dummy; do
3373 test -z "$ac_dir" && ac_dir
=.
3374 if test -f $ac_dir/$ac_word; then
3375 ac_cv_path_MV
="$ac_dir/$ac_word"
3380 test -z "$ac_cv_path_MV" && ac_cv_path_MV
="mv"
3385 if test -n "$MV"; then
3386 echo "$ac_t""$MV" 1>&6
3388 echo "$ac_t""no" 1>&6
3391 # Extract the first word of "cp", so it can be a program name with args.
3392 set dummy
cp; ac_word
=$2
3393 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3394 echo "configure:3395: checking for $ac_word" >&5
3395 if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then
3396 echo $ac_n "(cached) $ac_c" 1>&6
3400 ac_cv_path_CP
="$CP" # Let the user override the test with a path.
3403 ac_cv_path_CP
="$CP" # Let the user override the test with a dos path.
3406 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3408 for ac_dir
in $ac_dummy; do
3409 test -z "$ac_dir" && ac_dir
=.
3410 if test -f $ac_dir/$ac_word; then
3411 ac_cv_path_CP
="$ac_dir/$ac_word"
3416 test -z "$ac_cv_path_CP" && ac_cv_path_CP
="cp"
3421 if test -n "$CP"; then
3422 echo "$ac_t""$CP" 1>&6
3424 echo "$ac_t""no" 1>&6
3427 # Extract the first word of "rm", so it can be a program name with args.
3428 set dummy
rm; ac_word
=$2
3429 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3430 echo "configure:3431: checking for $ac_word" >&5
3431 if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
3432 echo $ac_n "(cached) $ac_c" 1>&6
3436 ac_cv_path_RM
="$RM" # Let the user override the test with a path.
3439 ac_cv_path_RM
="$RM" # Let the user override the test with a dos path.
3442 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3444 for ac_dir
in $ac_dummy; do
3445 test -z "$ac_dir" && ac_dir
=.
3446 if test -f $ac_dir/$ac_word; then
3447 ac_cv_path_RM
="$ac_dir/$ac_word"
3452 test -z "$ac_cv_path_RM" && ac_cv_path_RM
="rm"
3457 if test -n "$RM"; then
3458 echo "$ac_t""$RM" 1>&6
3460 echo "$ac_t""no" 1>&6
3463 # Extract the first word of "chmod", so it can be a program name with args.
3464 set dummy
chmod; ac_word
=$2
3465 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3466 echo "configure:3467: checking for $ac_word" >&5
3467 if eval "test \"`echo '$''{'ac_cv_path_CHMOD'+set}'`\" = set"; then
3468 echo $ac_n "(cached) $ac_c" 1>&6
3472 ac_cv_path_CHMOD
="$CHMOD" # Let the user override the test with a path.
3475 ac_cv_path_CHMOD
="$CHMOD" # Let the user override the test with a dos path.
3478 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3480 for ac_dir
in $ac_dummy; do
3481 test -z "$ac_dir" && ac_dir
=.
3482 if test -f $ac_dir/$ac_word; then
3483 ac_cv_path_CHMOD
="$ac_dir/$ac_word"
3488 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD
=":"
3492 CHMOD
="$ac_cv_path_CHMOD"
3493 if test -n "$CHMOD"; then
3494 echo "$ac_t""$CHMOD" 1>&6
3496 echo "$ac_t""no" 1>&6
3499 # Extract the first word of "awk", so it can be a program name with args.
3500 set dummy
awk; ac_word
=$2
3501 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3502 echo "configure:3503: checking for $ac_word" >&5
3503 if eval "test \"`echo '$''{'ac_cv_path_AWK'+set}'`\" = set"; then
3504 echo $ac_n "(cached) $ac_c" 1>&6
3508 ac_cv_path_AWK
="$AWK" # Let the user override the test with a path.
3511 ac_cv_path_AWK
="$AWK" # Let the user override the test with a dos path.
3514 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3516 for ac_dir
in $ac_dummy; do
3517 test -z "$ac_dir" && ac_dir
=.
3518 if test -f $ac_dir/$ac_word; then
3519 ac_cv_path_AWK
="$ac_dir/$ac_word"
3524 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK
="awk"
3528 AWK
="$ac_cv_path_AWK"
3529 if test -n "$AWK"; then
3530 echo "$ac_t""$AWK" 1>&6
3532 echo "$ac_t""no" 1>&6
3535 # Extract the first word of "sed", so it can be a program name with args.
3536 set dummy
sed; ac_word
=$2
3537 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3538 echo "configure:3539: checking for $ac_word" >&5
3539 if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then
3540 echo $ac_n "(cached) $ac_c" 1>&6
3544 ac_cv_path_SED
="$SED" # Let the user override the test with a path.
3547 ac_cv_path_SED
="$SED" # Let the user override the test with a dos path.
3550 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3552 for ac_dir
in $ac_dummy; do
3553 test -z "$ac_dir" && ac_dir
=.
3554 if test -f $ac_dir/$ac_word; then
3555 ac_cv_path_SED
="$ac_dir/$ac_word"
3560 test -z "$ac_cv_path_SED" && ac_cv_path_SED
="sed"
3564 SED
="$ac_cv_path_SED"
3565 if test -n "$SED"; then
3566 echo "$ac_t""$SED" 1>&6
3568 echo "$ac_t""no" 1>&6
3571 # Extract the first word of "perl", so it can be a program name with args.
3572 set dummy perl
; ac_word
=$2
3573 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3574 echo "configure:3575: checking for $ac_word" >&5
3575 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
3576 echo $ac_n "(cached) $ac_c" 1>&6
3580 ac_cv_path_PERL
="$PERL" # Let the user override the test with a path.
3583 ac_cv_path_PERL
="$PERL" # Let the user override the test with a dos path.
3586 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3588 for ac_dir
in $ac_dummy; do
3589 test -z "$ac_dir" && ac_dir
=.
3590 if test -f $ac_dir/$ac_word; then
3591 ac_cv_path_PERL
="$ac_dir/$ac_word"
3596 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL
="perl"
3600 PERL
="$ac_cv_path_PERL"
3601 if test -n "$PERL"; then
3602 echo "$ac_t""$PERL" 1>&6
3604 echo "$ac_t""no" 1>&6
3607 echo $ac_n "checking build system type""... $ac_c" 1>&6
3608 echo "configure:3609: checking build system type" >&5
3611 case "$build_alias" in
3614 NONE
) build_alias
=$host_alias ;;
3615 *) build_alias
=$nonopt ;;
3619 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
3620 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3621 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3622 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3623 echo "$ac_t""$build" 1>&6
3625 if test $host != $build; then
3626 ac_tool_prefix
=${host_alias}-
3631 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3632 set dummy
${ac_tool_prefix}ar; ac_word
=$2
3633 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3634 echo "configure:3635: checking for $ac_word" >&5
3635 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3636 echo $ac_n "(cached) $ac_c" 1>&6
3638 if test -n "$AR"; then
3639 ac_cv_prog_AR
="$AR" # Let the user override the test.
3641 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3643 for ac_dir
in $ac_dummy; do
3644 test -z "$ac_dir" && ac_dir
=.
3645 if test -f $ac_dir/$ac_word; then
3646 ac_cv_prog_AR
="${ac_tool_prefix}ar"
3654 if test -n "$AR"; then
3655 echo "$ac_t""$AR" 1>&6
3657 echo "$ac_t""no" 1>&6
3661 if test -z "$ac_cv_prog_AR"; then
3662 if test -n "$ac_tool_prefix"; then
3663 # Extract the first word of "ar", so it can be a program name with args.
3664 set dummy
ar; ac_word
=$2
3665 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3666 echo "configure:3667: checking for $ac_word" >&5
3667 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3668 echo $ac_n "(cached) $ac_c" 1>&6
3670 if test -n "$AR"; then
3671 ac_cv_prog_AR
="$AR" # Let the user override the test.
3673 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3675 for ac_dir
in $ac_dummy; do
3676 test -z "$ac_dir" && ac_dir
=.
3677 if test -f $ac_dir/$ac_word; then
3683 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
3687 if test -n "$AR"; then
3688 echo "$ac_t""$AR" 1>&6
3690 echo "$ac_t""no" 1>&6
3698 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3699 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3700 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3701 echo "configure:3702: checking for $ac_word" >&5
3702 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3703 echo $ac_n "(cached) $ac_c" 1>&6
3705 if test -n "$RANLIB"; then
3706 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3708 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3710 for ac_dir
in $ac_dummy; do
3711 test -z "$ac_dir" && ac_dir
=.
3712 if test -f $ac_dir/$ac_word; then
3713 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3720 RANLIB
="$ac_cv_prog_RANLIB"
3721 if test -n "$RANLIB"; then
3722 echo "$ac_t""$RANLIB" 1>&6
3724 echo "$ac_t""no" 1>&6
3728 if test -z "$ac_cv_prog_RANLIB"; then
3729 if test -n "$ac_tool_prefix"; then
3730 # Extract the first word of "ranlib", so it can be a program name with args.
3731 set dummy ranlib
; ac_word
=$2
3732 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3733 echo "configure:3734: checking for $ac_word" >&5
3734 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3735 echo $ac_n "(cached) $ac_c" 1>&6
3737 if test -n "$RANLIB"; then
3738 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3740 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3742 for ac_dir
in $ac_dummy; do
3743 test -z "$ac_dir" && ac_dir
=.
3744 if test -f $ac_dir/$ac_word; then
3745 ac_cv_prog_RANLIB
="ranlib"
3750 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
3753 RANLIB
="$ac_cv_prog_RANLIB"
3754 if test -n "$RANLIB"; then
3755 echo "$ac_t""$RANLIB" 1>&6
3757 echo "$ac_t""no" 1>&6
3765 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3766 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3767 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3768 echo "configure:3769: checking for $ac_word" >&5
3769 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
3770 echo $ac_n "(cached) $ac_c" 1>&6
3772 if test -n "$STRIP"; then
3773 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3775 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3777 for ac_dir
in $ac_dummy; do
3778 test -z "$ac_dir" && ac_dir
=.
3779 if test -f $ac_dir/$ac_word; then
3780 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3787 STRIP
="$ac_cv_prog_STRIP"
3788 if test -n "$STRIP"; then
3789 echo "$ac_t""$STRIP" 1>&6
3791 echo "$ac_t""no" 1>&6
3795 if test -z "$ac_cv_prog_STRIP"; then
3796 if test -n "$ac_tool_prefix"; then
3797 # Extract the first word of "strip", so it can be a program name with args.
3798 set dummy strip
; ac_word
=$2
3799 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3800 echo "configure:3801: checking for $ac_word" >&5
3801 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
3802 echo $ac_n "(cached) $ac_c" 1>&6
3804 if test -n "$STRIP"; then
3805 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3807 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3809 for ac_dir
in $ac_dummy; do
3810 test -z "$ac_dir" && ac_dir
=.
3811 if test -f $ac_dir/$ac_word; then
3812 ac_cv_prog_STRIP
="strip"
3817 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP
=":"
3820 STRIP
="$ac_cv_prog_STRIP"
3821 if test -n "$STRIP"; then
3822 echo "$ac_t""$STRIP" 1>&6
3824 echo "$ac_t""no" 1>&6
3832 # Find a good install program. We prefer a C program (faster),
3833 # so one script is as good as another. But avoid the broken or
3834 # incompatible versions:
3835 # SysV /etc/install, /usr/sbin/install
3836 # SunOS /usr/etc/install
3837 # IRIX /sbin/install
3839 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3840 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3841 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3842 # ./install, which can be erroneously created by make from ./install.sh.
3843 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3844 echo "configure:3845: checking for a BSD compatible install" >&5
3845 if test -z "$INSTALL"; then
3846 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3847 echo $ac_n "(cached) $ac_c" 1>&6
3849 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
3850 for ac_dir
in $PATH; do
3851 # Account for people who put trailing slashes in PATH elements.
3853 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
3855 # OSF1 and SCO ODT 3.0 have their own names for install.
3856 # Don't use installbsd from OSF since it installs stuff as root
3858 for ac_prog
in ginstall scoinst
install; do
3859 if test -f $ac_dir/$ac_prog; then
3860 if test $ac_prog = install &&
3861 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
3862 # AIX install. It has an incompatible calling convention.
3865 ac_cv_path_install
="$ac_dir/$ac_prog -c"
3876 if test "${ac_cv_path_install+set}" = set; then
3877 INSTALL
="$ac_cv_path_install"
3879 # As a last resort, use the slow shell script. We don't cache a
3880 # path for INSTALL within a source directory, because that will
3881 # break other packages using the cache if that directory is
3882 # removed, or if the path is relative.
3883 INSTALL
="$ac_install_sh"
3886 echo "$ac_t""$INSTALL" 1>&6
3888 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3889 # It thinks the first close brace ends the variable substitution.
3890 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3892 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
3894 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3896 # See if we need a separate native compiler.
3897 if test $cross_compiling = no
; then
3901 for ac_prog
in gcc cc
3903 # Extract the first word of "$ac_prog", so it can be a program name with args.
3904 set dummy
$ac_prog; ac_word
=$2
3905 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3906 echo "configure:3907: checking for $ac_word" >&5
3907 if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
3908 echo $ac_n "(cached) $ac_c" 1>&6
3910 if test -n "$BUILD_CC"; then
3911 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
3913 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3915 for ac_dir
in $ac_dummy; do
3916 test -z "$ac_dir" && ac_dir
=.
3917 if test -f $ac_dir/$ac_word; then
3918 ac_cv_prog_BUILD_CC
="$ac_prog"
3925 BUILD_CC
="$ac_cv_prog_BUILD_CC"
3926 if test -n "$BUILD_CC"; then
3927 echo "$ac_t""$BUILD_CC" 1>&6
3929 echo "$ac_t""no" 1>&6
3932 test -n "$BUILD_CC" && break
3936 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
/ioctl.h sys
/mkdev.h sys
/mount.h sys
/sockio.h sys
/sysmacros.h sys
/time.h sys
/stat.h sys
/types.h net
/if.h netinet
/in.h
3938 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3939 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3940 echo "configure:3941: checking for $ac_hdr" >&5
3941 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3942 echo $ac_n "(cached) $ac_c" 1>&6
3944 cat > conftest.
$ac_ext <<EOF
3945 #line 3946 "configure"
3946 #include "confdefs.h"
3949 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3950 { (eval echo configure
:3951: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3951 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3952 if test -z "$ac_err"; then
3954 eval "ac_cv_header_$ac_safe=yes"
3957 echo "configure: failed program was:" >&5
3958 cat conftest.
$ac_ext >&5
3960 eval "ac_cv_header_$ac_safe=no"
3964 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3965 echo "$ac_t""yes" 1>&6
3966 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3967 cat >> confdefs.h
<<EOF
3968 #define $ac_tr_hdr 1
3972 echo "$ac_t""no" 1>&6
3976 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
3977 echo "configure:3978: checking for vprintf" >&5
3978 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
3979 echo $ac_n "(cached) $ac_c" 1>&6
3981 cat > conftest.
$ac_ext <<EOF
3982 #line 3983 "configure"
3983 #include "confdefs.h"
3984 /* System header to define __stub macros and hopefully few prototypes,
3985 which can conflict with char vprintf(); below. */
3987 /* Override any gcc2 internal prototype to avoid an error. */
3988 /* We use char because int might match the return type of a gcc2
3989 builtin and then its argument prototype would still apply. */
3994 /* The GNU C library defines this for functions which it implements
3995 to always fail with ENOSYS. Some functions are actually named
3996 something starting with __ and the normal name is an alias. */
3997 #if defined (__stub_vprintf) || defined (__stub___vprintf)
4005 if { (eval echo configure
:4006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4007 eval "ac_cv_func_vprintf=yes"
4009 echo "configure: failed program was:" >&5
4010 cat conftest.
$ac_ext >&5
4012 eval "ac_cv_func_vprintf=no"
4017 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
4018 echo "$ac_t""yes" 1>&6
4019 cat >> confdefs.h
<<\EOF
4020 #define HAVE_VPRINTF 1
4024 echo "$ac_t""no" 1>&6
4027 if test "$ac_cv_func_vprintf" != yes; then
4028 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
4029 echo "configure:4030: checking for _doprnt" >&5
4030 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
4031 echo $ac_n "(cached) $ac_c" 1>&6
4033 cat > conftest.
$ac_ext <<EOF
4034 #line 4035 "configure"
4035 #include "confdefs.h"
4036 /* System header to define __stub macros and hopefully few prototypes,
4037 which can conflict with char _doprnt(); below. */
4039 /* Override any gcc2 internal prototype to avoid an error. */
4040 /* We use char because int might match the return type of a gcc2
4041 builtin and then its argument prototype would still apply. */
4046 /* The GNU C library defines this for functions which it implements
4047 to always fail with ENOSYS. Some functions are actually named
4048 something starting with __ and the normal name is an alias. */
4049 #if defined (__stub__doprnt) || defined (__stub____doprnt)
4057 if { (eval echo configure
:4058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4059 eval "ac_cv_func__doprnt=yes"
4061 echo "configure: failed program was:" >&5
4062 cat conftest.
$ac_ext >&5
4064 eval "ac_cv_func__doprnt=no"
4069 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
4070 echo "$ac_t""yes" 1>&6
4071 cat >> confdefs.h
<<\EOF
4072 #define HAVE_DOPRNT 1
4076 echo "$ac_t""no" 1>&6
4081 echo $ac_n "checking whether struct dirent has a d_namlen field""... $ac_c" 1>&6
4082 echo "configure:4083: checking whether struct dirent has a d_namlen field" >&5
4083 if eval "test \"`echo '$''{'e2fsprogs_cv_struct_d_namlen'+set}'`\" = set"; then
4084 echo $ac_n "(cached) $ac_c" 1>&6
4086 cat > conftest.
$ac_ext <<EOF
4087 #line 4088 "configure"
4088 #include "confdefs.h"
4089 #include <sys/types.h>
4092 struct dirent de; de.d_namlen = 0;
4095 if { (eval echo configure
:4096: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4097 e2fsprogs_cv_struct_d_namlen
=yes
4099 echo "configure: failed program was:" >&5
4100 cat conftest.
$ac_ext >&5
4102 e2fsprogs_cv_struct_d_namlen
=no
4107 echo "$ac_t""$e2fsprogs_cv_struct_d_namlen" 1>&6
4108 if test "$e2fsprogs_cv_struct_d_namlen" = yes; then
4109 cat >> confdefs.h
<<\EOF
4110 #define HAVE_DIRENT_NAMLEN 1
4114 echo $ac_n "checking whether llseek declared in unistd.h""... $ac_c" 1>&6
4115 echo "configure:4116: checking whether llseek declared in unistd.h" >&5
4116 if eval "test \"`echo '$''{'e2fsprogs_cv_have_llseek_prototype'+set}'`\" = set"; then
4117 echo $ac_n "(cached) $ac_c" 1>&6
4119 cat > conftest.
$ac_ext <<EOF
4120 #line 4121 "configure"
4121 #include "confdefs.h"
4124 extern int llseek(int);
4127 if { (eval echo configure
:4128: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4129 e2fsprogs_cv_have_llseek_prototype
=no
4131 echo "configure: failed program was:" >&5
4132 cat conftest.
$ac_ext >&5
4134 e2fsprogs_cv_have_llseek_prototype
=yes
4139 echo "$ac_t""$e2fsprogs_cv_have_llseek_prototype" 1>&6
4140 if test "$e2fsprogs_cv_have_llseek_prototype" = yes; then
4141 cat >> confdefs.h
<<\EOF
4142 #define HAVE_LLSEEK_PROTOTYPE 1
4146 echo $ac_n "checking whether lseek64 declared in unistd.h""... $ac_c" 1>&6
4147 echo "configure:4148: checking whether lseek64 declared in unistd.h" >&5
4148 if eval "test \"`echo '$''{'e2fsprogs_cv_have_lseek64_prototype'+set}'`\" = set"; then
4149 echo $ac_n "(cached) $ac_c" 1>&6
4151 cat > conftest.
$ac_ext <<EOF
4152 #line 4153 "configure"
4153 #include "confdefs.h"
4154 #define _LARGEFILE_SOURCE
4155 #define _LARGEFILE64_SOURCE
4158 extern int lseek64(int);
4161 if { (eval echo configure
:4162: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4163 e2fsprogs_cv_have_lseek64_prototype
=no
4165 echo "configure: failed program was:" >&5
4166 cat conftest.
$ac_ext >&5
4168 e2fsprogs_cv_have_lseek64_prototype
=yes
4173 echo "$ac_t""$e2fsprogs_cv_have_lseek64_prototype" 1>&6
4174 if test "$e2fsprogs_cv_have_lseek64_prototype" = yes; then
4175 cat >> confdefs.h
<<\EOF
4176 #define HAVE_LSEEK64_PROTOTYPE 1
4180 if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
4181 # if cross-compiling, with no cached values, just assume something common.
4182 ac_cv_sizeof_short
=2
4185 ac_cv_sizeof_long_long
=8
4186 echo "configure: warning: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" 1>&2
4188 echo $ac_n "checking size of short""... $ac_c" 1>&6
4189 echo "configure:4190: checking size of short" >&5
4190 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
4191 echo $ac_n "(cached) $ac_c" 1>&6
4193 if test "$cross_compiling" = yes; then
4194 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4196 cat > conftest.
$ac_ext <<EOF
4197 #line 4198 "configure"
4198 #include "confdefs.h"
4202 FILE *f=fopen("conftestval", "w");
4204 fprintf(f, "%d\n", sizeof(short));
4208 if { (eval echo configure
:4209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4210 ac_cv_sizeof_short
=`cat conftestval`
4212 echo "configure: failed program was:" >&5
4213 cat conftest.
$ac_ext >&5
4215 ac_cv_sizeof_short
=0
4221 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
4222 cat >> confdefs.h
<<EOF
4223 #define SIZEOF_SHORT $ac_cv_sizeof_short
4227 echo $ac_n "checking size of int""... $ac_c" 1>&6
4228 echo "configure:4229: checking size of int" >&5
4229 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
4230 echo $ac_n "(cached) $ac_c" 1>&6
4232 if test "$cross_compiling" = yes; then
4233 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4235 cat > conftest.
$ac_ext <<EOF
4236 #line 4237 "configure"
4237 #include "confdefs.h"
4241 FILE *f=fopen("conftestval", "w");
4243 fprintf(f, "%d\n", sizeof(int));
4247 if { (eval echo configure
:4248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4249 ac_cv_sizeof_int
=`cat conftestval`
4251 echo "configure: failed program was:" >&5
4252 cat conftest.
$ac_ext >&5
4260 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4261 cat >> confdefs.h
<<EOF
4262 #define SIZEOF_INT $ac_cv_sizeof_int
4266 echo $ac_n "checking size of long""... $ac_c" 1>&6
4267 echo "configure:4268: checking size of long" >&5
4268 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
4269 echo $ac_n "(cached) $ac_c" 1>&6
4271 if test "$cross_compiling" = yes; then
4272 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4274 cat > conftest.
$ac_ext <<EOF
4275 #line 4276 "configure"
4276 #include "confdefs.h"
4280 FILE *f=fopen("conftestval", "w");
4282 fprintf(f, "%d\n", sizeof(long));
4286 if { (eval echo configure
:4287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4288 ac_cv_sizeof_long
=`cat conftestval`
4290 echo "configure: failed program was:" >&5
4291 cat conftest.
$ac_ext >&5
4299 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4300 cat >> confdefs.h
<<EOF
4301 #define SIZEOF_LONG $ac_cv_sizeof_long
4305 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4306 echo "configure:4307: checking size of long long" >&5
4307 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
4308 echo $ac_n "(cached) $ac_c" 1>&6
4310 if test "$cross_compiling" = yes; then
4311 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4313 cat > conftest.
$ac_ext <<EOF
4314 #line 4315 "configure"
4315 #include "confdefs.h"
4319 FILE *f=fopen("conftestval", "w");
4321 fprintf(f, "%d\n", sizeof(long long));
4325 if { (eval echo configure
:4326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4327 ac_cv_sizeof_long_long
=`cat conftestval`
4329 echo "configure: failed program was:" >&5
4330 cat conftest.
$ac_ext >&5
4332 ac_cv_sizeof_long_long
=0
4338 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4339 cat >> confdefs.h
<<EOF
4340 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4344 SIZEOF_SHORT
=$ac_cv_sizeof_short
4345 SIZEOF_INT
=$ac_cv_sizeof_int
4346 SIZEOF_LONG
=$ac_cv_sizeof_long
4347 SIZEOF_LONG_LONG
=$ac_cv_sizeof_long_long
4352 echo $ac_n "checking whether struct stat has a st_flags field""... $ac_c" 1>&6
4353 echo "configure:4354: checking whether struct stat has a st_flags field" >&5
4354 if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags'+set}'`\" = set"; then
4355 echo $ac_n "(cached) $ac_c" 1>&6
4357 cat > conftest.
$ac_ext <<EOF
4358 #line 4359 "configure"
4359 #include "confdefs.h"
4360 #include <sys/stat.h>
4362 struct stat stat; stat.st_flags = 0;
4365 if { (eval echo configure
:4366: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4367 e2fsprogs_cv_struct_st_flags
=yes
4369 echo "configure: failed program was:" >&5
4370 cat conftest.
$ac_ext >&5
4372 e2fsprogs_cv_struct_st_flags
=no
4377 echo "$ac_t""$e2fsprogs_cv_struct_st_flags" 1>&6
4378 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
4379 echo $ac_n "checking whether st_flags field is useful""... $ac_c" 1>&6
4380 echo "configure:4381: checking whether st_flags field is useful" >&5
4381 if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags_immut'+set}'`\" = set"; then
4382 echo $ac_n "(cached) $ac_c" 1>&6
4384 cat > conftest.
$ac_ext <<EOF
4385 #line 4386 "configure"
4386 #include "confdefs.h"
4387 #include <sys/stat.h>
4389 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
4392 if { (eval echo configure
:4393: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4394 e2fsprogs_cv_struct_st_flags_immut
=yes
4396 echo "configure: failed program was:" >&5
4397 cat conftest.
$ac_ext >&5
4399 e2fsprogs_cv_struct_st_flags_immut
=no
4404 echo "$ac_t""$e2fsprogs_cv_struct_st_flags_immut" 1>&6
4405 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
4406 cat >> confdefs.h
<<\EOF
4407 #define HAVE_STAT_FLAGS 1
4412 for ac_func
in chflags getrusage llseek lseek64 open64 strdup getmntinfo strcasecmp srandom fchown mallinfo fdatasync
4414 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4415 echo "configure:4416: checking for $ac_func" >&5
4416 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4417 echo $ac_n "(cached) $ac_c" 1>&6
4419 cat > conftest.
$ac_ext <<EOF
4420 #line 4421 "configure"
4421 #include "confdefs.h"
4422 /* System header to define __stub macros and hopefully few prototypes,
4423 which can conflict with char $ac_func(); below. */
4425 /* Override any gcc2 internal prototype to avoid an error. */
4426 /* We use char because int might match the return type of a gcc2
4427 builtin and then its argument prototype would still apply. */
4432 /* The GNU C library defines this for functions which it implements
4433 to always fail with ENOSYS. Some functions are actually named
4434 something starting with __ and the normal name is an alias. */
4435 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4443 if { (eval echo configure
:4444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4445 eval "ac_cv_func_$ac_func=yes"
4447 echo "configure: failed program was:" >&5
4448 cat conftest.
$ac_ext >&5
4450 eval "ac_cv_func_$ac_func=no"
4455 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4456 echo "$ac_t""yes" 1>&6
4457 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4458 cat >> confdefs.h
<<EOF
4459 #define $ac_tr_func 1
4463 echo "$ac_t""no" 1>&6
4468 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
4469 echo "configure:4470: checking for socket in -lsocket" >&5
4470 ac_lib_var
=`echo socket'_'socket | sed 'y%./+-%__p_%'`
4471 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4472 echo $ac_n "(cached) $ac_c" 1>&6
4474 ac_save_LIBS
="$LIBS"
4475 LIBS
="-lsocket $LIBS"
4476 cat > conftest.
$ac_ext <<EOF
4477 #line 4478 "configure"
4478 #include "confdefs.h"
4479 /* Override any gcc2 internal prototype to avoid an error. */
4480 /* We use char because int might match the return type of a gcc2
4481 builtin and then its argument prototype would still apply. */
4488 if { (eval echo configure
:4489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4490 eval "ac_cv_lib_$ac_lib_var=yes"
4492 echo "configure: failed program was:" >&5
4493 cat conftest.
$ac_ext >&5
4495 eval "ac_cv_lib_$ac_lib_var=no"
4498 LIBS
="$ac_save_LIBS"
4501 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4502 echo "$ac_t""yes" 1>&6
4505 echo "$ac_t""no" 1>&6
4509 echo $ac_n "checking for optreset""... $ac_c" 1>&6
4510 echo "configure:4511: checking for optreset" >&5
4511 if eval "test \"`echo '$''{'ac_cv_have_optreset'+set}'`\" = set"; then
4512 echo $ac_n "(cached) $ac_c" 1>&6
4514 cat > conftest.
$ac_ext <<EOF
4515 #line 4516 "configure"
4516 #include "confdefs.h"
4519 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4520 egrep "optreset" >/dev
/null
2>&1; then
4522 ac_cv_have_optreset
=yes
4525 ac_cv_have_optreset
=no
4530 echo "$ac_t""$ac_cv_have_optreset" 1>&6
4531 if test $ac_cv_have_optreset = yes; then
4532 cat >> confdefs.h
<<\EOF
4533 #define HAVE_OPTRESET 1
4539 cat >> confdefs.h
<<\EOF
4540 #define HAVE_EXT2_IOCTLS 1
4547 if test "$prefix" = NONE
-a "$root_prefix" = NONE
; then
4549 echo "On $host_os systems, root_prefix defaults to ''"
4555 if test "$prefix" = NONE
; then
4557 echo "On $host_os systems, prefix defaults to /usr"
4561 if test "$root_prefix" = NONE
; then
4562 if test "$prefix" = NONE
; then
4563 root_prefix
="$ac_default_prefix"
4565 root_prefix
="$prefix"
4569 echo $ac_n "checking whether linker accepts -static""... $ac_c" 1>&6
4570 echo "configure:4571: checking whether linker accepts -static" >&5
4571 if eval "test \"`echo '$''{'ac_cv_e2fsprogs_use_static'+set}'`\" = set"; then
4572 echo $ac_n "(cached) $ac_c" 1>&6
4574 SAVE_LDFLAGS
=$LDFLAGS; LDFLAGS
="$LDFLAGS -static"
4575 cat > conftest.
$ac_ext <<EOF
4576 #line 4577 "configure"
4577 #include "confdefs.h"
4583 if { (eval echo configure
:4584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4585 ac_cv_e2fsprogs_use_static
=yes
4587 echo "configure: failed program was:" >&5
4588 cat conftest.
$ac_ext >&5
4590 ac_cv_e2fsprogs_use_static
=no
4593 LDFLAGS
=$SAVE_LDFLAGS
4598 ac_cv_e2fsprogs_use_static
=no
4601 echo "$ac_t""$ac_cv_e2fsprogs_use_static" 1>&6
4603 if test $ac_cv_e2fsprogs_use_static = yes; then
4604 LDFLAG_STATIC
=-static
4607 SS_DIR
=`cd ${srcdir}/lib/ss; pwd`
4608 ET_DIR
=`cd ${srcdir}/lib/et; pwd`
4611 if test "$cross_compiling" = yes ; then
4617 test -d lib || mkdir lib
4618 test -d include || mkdir include
4619 test -d include
/linux || mkdir include
/linux
4620 test -d include
/asm || mkdir include
/asm
4622 if test -d ${srcdir}/resize
; then
4623 rmakefile
=resize
/Makefile
4626 cat > confcache
<<\EOF
4627 # This file is a shell script that caches the results of configure
4628 # tests run on this system so they can be shared between configure
4629 # scripts and configure runs. It is not useful on other systems.
4630 # If it contains results you don't want to keep, you may remove or edit it.
4632 # By default, configure uses ./config.cache as the cache file,
4633 # creating it if it does not exist already. You can give configure
4634 # the --cache-file=FILE option to use a different cache file; that is
4635 # what configure does when it calls configure scripts in
4636 # subdirectories, so they share the cache.
4637 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4638 # config.status only pays attention to the cache file if you give it the
4639 # --recheck option to rerun configure.
4642 # The following way of writing the cache mishandles newlines in values,
4643 # but we know of no workaround that is simple, portable, and efficient.
4644 # So, don't put newlines in cache variables' values.
4645 # Ultrix sh set writes to stderr and can't be redirected directly,
4646 # and sets the high bit in the cache file unless we assign to the vars.
4648 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4650 # `set' does not quote correctly, so add quotes (double-quote substitution
4651 # turns \\\\ into \\, and sed turns \\ into \).
4653 -e "s/'/'\\\\''/g" \
4654 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4657 # `set' quotes correctly as required by POSIX, so do not add quotes.
4658 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4661 if cmp -s $cache_file confcache
; then
4664 if test -w $cache_file; then
4665 echo "updating cache $cache_file"
4666 cat confcache
> $cache_file
4668 echo "not updating unwritable cache $cache_file"
4673 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4675 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
4676 # Let make expand exec_prefix.
4677 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4679 # Any assignment to VPATH causes Sun make to only execute
4680 # the first set of double-colon rules, so remove it if not needed.
4681 # If there is a colon in the path, we need to keep it.
4682 if test "x$srcdir" = x.
; then
4683 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
4686 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4688 # Transform confdefs.h into DEFS.
4689 # Protect against shell expansion while executing Makefile rules.
4690 # Protect against Makefile macro expansion.
4691 cat > conftest.defs
<<\EOF
4692 s
%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
4693 s
%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
4698 DEFS=`sed -f conftest.defs confdefs.h |
tr '\012' ' '`
4702 # Without the "./", some shells look in PATH for config.status.
4703 : ${CONFIG_STATUS=./config.status}
4705 echo creating $CONFIG_STATUS
4706 rm -f $CONFIG_STATUS
4707 cat > $CONFIG_STATUS <<EOF
4709 # Generated automatically by configure.
4710 # Run this file to recreate the current configuration.
4711 # This directory was configured as follows,
4712 # on host `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`:
4714 # $0 $ac_configure_args
4716 # Compiler output produced by configure, useful for debugging
4717 # configure, is in ./config.log if it exists.
4719 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4722 case "\$ac_option" in
4723 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4724 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4725 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4726 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4727 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4729 -help | --help | --hel | --he | --h)
4730 echo "\$ac_cs_usage"; exit 0 ;;
4731 *) echo "\$ac_cs_usage"; exit 1 ;;
4735 ac_given_srcdir=$srcdir
4736 ac_given_INSTALL="$INSTALL"
4738 trap 'rm -fr `echo "MCONFIG Makefile util/Makefile util/subst.conf lib/et/Makefile
4739 lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile lib/uuid/Makefile
4740 lib/finddev/Makefile
4741 misc/Makefile e2fsck/Makefile debugfs/Makefile tests/Makefile
4742 tests/progs/Makefile $rmakefile doc/Makefile
4743 intl/Makefile po/Makefile.in" |
sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4745 cat >> $CONFIG_STATUS <<EOF
4747 # Protect against being on the right side of a sed subst in config.status.
4748 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4749 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4753 s%@CFLAGS@%$CFLAGS%g
4754 s%@CPPFLAGS@%$CPPFLAGS%g
4755 s%@CXXFLAGS@%$CXXFLAGS%g
4756 s%@FFLAGS@%$FFLAGS%g
4758 s%@LDFLAGS@%$LDFLAGS%g
4760 s%@exec_prefix@%$exec_prefix%g
4761 s%@prefix@%$prefix%g
4762 s%@program_transform_name@%$program_transform_name%g
4763 s%@bindir@%$bindir%g
4764 s%@sbindir@%$sbindir%g
4765 s%@libexecdir@%$libexecdir%g
4766 s%@datadir@%$datadir%g
4767 s%@sysconfdir@%$sysconfdir%g
4768 s%@sharedstatedir@%$sharedstatedir%g
4769 s%@localstatedir@%$localstatedir%g
4770 s%@libdir@%$libdir%g
4771 s%@includedir@%$includedir%g
4772 s%@oldincludedir@%$oldincludedir%g
4773 s%@infodir@%$infodir%g
4774 s%@mandir@%$mandir%g
4775 /@MCONFIG@/r $MCONFIG
4777 s%@E2FSPROGS_YEAR@%$E2FSPROGS_YEAR%g
4778 s%@E2FSPROGS_MONTH@%$E2FSPROGS_MONTH%g
4779 s%@E2FSPROGS_VERSION@%$E2FSPROGS_VERSION%g
4781 s%@host_alias@%$host_alias%g
4782 s%@host_cpu@%$host_cpu%g
4783 s%@host_vendor@%$host_vendor%g
4784 s%@host_os@%$host_os%g
4787 s%@CCOPTS@%$CCOPTS%g
4789 s%@LINUX_INCLUDE@%$LINUX_INCLUDE%g
4790 s%@DLL_CMT@%$DLL_CMT%g
4791 /@MAKEFILE_DLL@/r $MAKEFILE_DLL
4793 s%@ELF_CMT@%$ELF_CMT%g
4794 /@MAKEFILE_ELF@/r $MAKEFILE_ELF
4796 s%@BSDLIB_CMT@%$BSDLIB_CMT%g
4797 /@MAKEFILE_BSDLIB@/r $MAKEFILE_BSDLIB
4798 s%@MAKEFILE_BSDLIB@%%g
4799 s%@PACKAGE@%$PACKAGE%g
4800 s%@VERSION@%$VERSION%g
4801 s%@SET_MAKE@%$SET_MAKE%g
4802 s%@RANLIB@%$RANLIB%g
4803 s%@ALLOCA@%$ALLOCA%g
4804 s%@USE_NLS@%$USE_NLS%g
4805 s%@MSGFMT@%$MSGFMT%g
4806 s%@GMSGFMT@%$GMSGFMT%g
4807 s%@XGETTEXT@%$XGETTEXT%g
4808 s%@GENCAT@%$GENCAT%g
4809 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
4810 s%@CATALOGS@%$CATALOGS%g
4811 s%@CATOBJEXT@%$CATOBJEXT%g
4812 s%@DATADIRNAME@%$DATADIRNAME%g
4813 s%@GMOFILES@%$GMOFILES%g
4814 s%@INSTOBJEXT@%$INSTOBJEXT%g
4815 s%@INTLDEPS@%$INTLDEPS%g
4816 s%@INTLLIBS@%$INTLLIBS%g
4817 s%@INTLOBJS@%$INTLOBJS%g
4818 s%@POFILES@%$POFILES%g
4820 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
4822 s%@GT_YES@%$GT_YES%g
4823 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
4825 s%@PROFILE_CMT@%$PROFILE_CMT%g
4826 /@MAKEFILE_PROFILE@/r $MAKEFILE_PROFILE
4827 s%@MAKEFILE_PROFILE@%%g
4828 s%@CHECKER_CMT@%$CHECKER_CMT%g
4829 /@MAKEFILE_CHECKER@/r $MAKEFILE_CHECKER
4830 s%@MAKEFILE_CHECKER@%%g
4831 s%@LIB_EXT@%$LIB_EXT%g
4832 s%@STATIC_LIB_EXT@%$STATIC_LIB_EXT%g
4833 s%@PROFILED_LIB_EXT@%$PROFILED_LIB_EXT%g
4834 s%@E2FSCK_TYPE@%$E2FSCK_TYPE%g
4835 s%@FSCK_PROG@%$FSCK_PROG%g
4836 s%@FSCK_MAN@%$FSCK_MAN%g
4837 /@MAKEFILE_LIBRARY@/r $MAKEFILE_LIBRARY
4838 s%@MAKEFILE_LIBRARY@%%g
4839 s%@BINARY_TYPE@%$BINARY_TYPE%g
4850 s%@build_alias@%$build_alias%g
4851 s%@build_cpu@%$build_cpu%g
4852 s%@build_vendor@%$build_vendor%g
4853 s%@build_os@%$build_os%g
4856 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4857 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4858 s%@INSTALL_DATA@%$INSTALL_DATA%g
4859 s%@BUILD_CC@%$BUILD_CC%g
4860 s%@SIZEOF_SHORT@%$SIZEOF_SHORT%g
4861 s%@SIZEOF_INT@%$SIZEOF_INT%g
4862 s%@SIZEOF_LONG@%$SIZEOF_LONG%g
4863 s%@SIZEOF_LONG_LONG@%$SIZEOF_LONG_LONG%g
4864 s%@SOCKET_LIB@%$SOCKET_LIB%g
4865 s%@root_prefix@%$root_prefix%g
4866 s%@LDFLAG_STATIC@%$LDFLAG_STATIC%g
4867 s%@SS_DIR@%$SS_DIR%g
4868 s%@ET_DIR@%$ET_DIR%g
4869 s%@DO_TEST_SUITE@%$DO_TEST_SUITE%g
4874 cat >> $CONFIG_STATUS <<\EOF
4876 # Split the substitutions into bite-sized pieces for seds with
4877 # small command number limits, like on Digital OSF/1 and HP-UX.
4878 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4879 ac_file=1 # Number of current file.
4880 ac_beg=1 # First line for current file.
4881 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4884 while $ac_more_lines; do
4885 if test $ac_beg -gt 1; then
4886 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4888 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4890 if test ! -s conftest.s$ac_file; then
4892 rm -f conftest.s$ac_file
4894 if test -z "$ac_sed_cmds"; then
4895 ac_sed_cmds="sed -f conftest.s$ac_file"
4897 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4899 ac_file=`expr $ac_file + 1`
4901 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4904 if test -z "$ac_sed_cmds"; then
4909 cat >> $CONFIG_STATUS <<EOF
4911 CONFIG_FILES=\${CONFIG_FILES-"MCONFIG Makefile util/Makefile util/subst.conf lib/et/Makefile
4912 lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile lib/uuid/Makefile
4913 lib/finddev/Makefile
4914 misc/Makefile e2fsck/Makefile debugfs/Makefile tests/Makefile
4915 tests/progs/Makefile $rmakefile doc/Makefile
4916 intl/Makefile po/Makefile.in"}
4918 cat >> $CONFIG_STATUS <<\EOF
4919 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4920 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4922 *:*) ac_file_in=`echo "$ac_file"|
sed 's%[^:]*:%%'`
4923 ac_file=`echo "$ac_file"|
sed 's%:.*%%'` ;;
4924 *) ac_file_in="${ac_file}.in" ;;
4927 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4929 # Remove last slash and all that follows it. Not all systems have dirname.
4930 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
4931 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4932 # The file is in a subdirectory.
4933 test ! -d "$ac_dir" && mkdir "$ac_dir"
4934 ac_dir_suffix="/`echo $ac_dir|
sed 's%^\./%%'`"
4935 # A "../" for each directory in $ac_dir_suffix.
4936 ac_dots=`echo $ac_dir_suffix|
sed 's%/[^/]*%../%g'`
4938 ac_dir_suffix= ac_dots=
4941 case "$ac_given_srcdir" in
4943 if test -z "$ac_dots"; then top_srcdir=.
4944 else top_srcdir=`echo $ac_dots|
sed 's%/$%%'`; fi ;;
4945 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4947 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4948 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4951 case "$ac_given_INSTALL" in
4952 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4953 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4956 echo creating "$ac_file"
4958 configure_input="Generated automatically from `echo $ac_file_in|
sed 's%.*/%%'` by configure."
4960 *Makefile*) ac_comsub="1i\\
4961 # $configure_input" ;;
4965 ac_file_inputs=`echo $ac_file_in|
sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4967 s%@configure_input@%$configure_input%g
4968 s%@srcdir@%$srcdir%g
4969 s%@top_srcdir@%$top_srcdir%g
4970 s%@INSTALL@%$INSTALL%g
4971 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4977 cat >> $CONFIG_STATUS <<EOF
4978 ac_sources="$nls_cv_header_libgt"
4979 ac_dests="$nls_cv_header_intl"
4982 cat >> $CONFIG_STATUS <<\EOF
4983 srcdir=$ac_given_srcdir
4984 while test -n "$ac_sources"; do
4985 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
4986 set $ac_sources; ac_source=$1; shift; ac_sources=$*
4988 echo "linking $srcdir/$ac_source to $ac_dest"
4990 if test ! -r $srcdir/$ac_source; then
4991 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
4995 # Make relative symlinks.
4996 # Remove last slash and all that follows it. Not all systems have dirname.
4997 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
4998 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
4999 # The dest file is in a subdirectory.
5000 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
5001 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
5002 # A "../" for each directory in $ac_dest_dir_suffix.
5003 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
5005 ac_dest_dir_suffix= ac_dots=
5009 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
5010 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
5013 # Make a symlink if possible; otherwise try a hard link.
5014 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
5015 ln $srcdir/$ac_source $ac_dest; then :
5017 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
5021 cat >> $CONFIG_STATUS <<EOF
5025 cat >> $CONFIG_STATUS <<\EOF
5026 case "$CONFIG_FILES" in *po/Makefile.in*)
5027 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
5032 chmod +x $CONFIG_STATUS
5033 rm -fr confdefs* $ac_clean_files
5034 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1