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 --enable-gcc-warnings turn on lots of GCC warnings (not recommended)"
17 --disable-nls do not use Native Language Support"
19 --with-included-gettext use the GNU gettext library included here"
21 --with-catgets use catgets functions if available"
23 # Initialize some variables set by options.
24 # The variables have the same names as the options, with
25 # dashes changed to underlines.
27 cache_file
=.
/config.cache
36 program_transform_name
=s
,x
,x
,
44 bindir
='${exec_prefix}/bin'
45 sbindir
='${exec_prefix}/sbin'
46 libexecdir
='${exec_prefix}/libexec'
47 datadir
='${prefix}/share'
48 sysconfdir
='${prefix}/etc'
49 sharedstatedir
='${prefix}/com'
50 localstatedir
='${prefix}/var'
51 libdir
='${exec_prefix}/lib'
52 includedir
='${prefix}/include'
53 oldincludedir
='/usr/include'
54 infodir
='${prefix}/info'
55 mandir
='${prefix}/man'
57 # Initialize some other variables.
60 SHELL
=${CONFIG_SHELL-/bin/sh}
61 # Maximum number of lines to put in a shell here document.
68 # If the previous option needs an argument, assign it.
69 if test -n "$ac_prev"; then
70 eval "$ac_prev=\$ac_option"
76 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
80 # Accept the important Cygnus configure options, so we can diagnose typos.
84 -bindir | --bindir | --bindi | --bind | --bin | --bi)
86 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
87 bindir
="$ac_optarg" ;;
89 -build | --build | --buil | --bui | --bu)
91 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
94 -cache-file | --cache-file | --cache-fil | --cache-fi \
95 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
97 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
98 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
99 cache_file
="$ac_optarg" ;;
101 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
103 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
105 datadir
="$ac_optarg" ;;
107 -disable-* | --disable-*)
108 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
109 # Reject names that are not valid shell variable names.
110 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
111 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
113 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
114 eval "enable_${ac_feature}=no" ;;
116 -enable-* | --enable-*)
117 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
118 # Reject names that are not valid shell variable names.
119 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
120 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
122 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
127 eval "enable_${ac_feature}='$ac_optarg'" ;;
129 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
130 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
131 | --exec | --exe | --ex)
132 ac_prev
=exec_prefix
;;
133 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
134 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
135 | --exec=* | --exe=* | --ex=*)
136 exec_prefix
="$ac_optarg" ;;
138 -gas | --gas | --ga | --g)
139 # Obsolete; use --with-gas.
142 -help | --help | --hel | --he)
143 # Omit some internal or obsolete options to make the list less imposing.
144 # This message is too long to be a string in the A/UX 3.1 sh.
146 Usage: configure [options] [host]
147 Options: [defaults in brackets after descriptions]
149 --cache-file=FILE cache test results in FILE
150 --help print this message
151 --no-create do not create output files
152 --quiet, --silent do not print \`checking...' messages
153 --version print the version of autoconf that created configure
154 Directory and file names:
155 --prefix=PREFIX install architecture-independent files in PREFIX
157 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
159 --bindir=DIR user executables in DIR [EPREFIX/bin]
160 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
161 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
162 --datadir=DIR read-only architecture-independent data in DIR
164 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
165 --sharedstatedir=DIR modifiable architecture-independent data in DIR
167 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
168 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
169 --includedir=DIR C header files in DIR [PREFIX/include]
170 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
171 --infodir=DIR info documentation in DIR [PREFIX/info]
172 --mandir=DIR man documentation in DIR [PREFIX/man]
173 --srcdir=DIR find the sources in DIR [configure dir or ..]
174 --program-prefix=PREFIX prepend PREFIX to installed program names
175 --program-suffix=SUFFIX append SUFFIX to installed program names
176 --program-transform-name=PROGRAM
177 run sed PROGRAM on installed program names
181 --build=BUILD configure for building on BUILD [BUILD=HOST]
182 --host=HOST configure for HOST [guessed]
183 --target=TARGET configure for TARGET [TARGET=HOST]
184 Features and packages:
185 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
186 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
187 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
188 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
189 --x-includes=DIR X include files are in DIR
190 --x-libraries=DIR X library files are in DIR
192 if test -n "$ac_help"; then
193 echo "--enable and --with options recognized:$ac_help"
197 -host | --host | --hos | --ho)
199 -host=* | --host=* | --hos=* | --ho=*)
202 -includedir | --includedir | --includedi | --included | --include \
203 | --includ | --inclu | --incl | --inc)
204 ac_prev
=includedir
;;
205 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
206 | --includ=* | --inclu=* | --incl=* | --inc=*)
207 includedir
="$ac_optarg" ;;
209 -infodir | --infodir | --infodi | --infod | --info | --inf)
211 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
212 infodir
="$ac_optarg" ;;
214 -libdir | --libdir | --libdi | --libd)
216 -libdir=* | --libdir=* | --libdi=* | --libd=*)
217 libdir
="$ac_optarg" ;;
219 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
220 | --libexe | --libex | --libe)
221 ac_prev
=libexecdir
;;
222 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
223 | --libexe=* | --libex=* | --libe=*)
224 libexecdir
="$ac_optarg" ;;
226 -localstatedir | --localstatedir | --localstatedi | --localstated \
227 | --localstate | --localstat | --localsta | --localst \
228 | --locals | --local | --loca | --loc | --lo)
229 ac_prev
=localstatedir
;;
230 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
231 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
232 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
233 localstatedir
="$ac_optarg" ;;
235 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
237 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
238 mandir
="$ac_optarg" ;;
241 # Obsolete; use --without-fp.
244 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
248 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
249 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
252 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
253 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
254 | --oldin | --oldi | --old | --ol | --o)
255 ac_prev
=oldincludedir
;;
256 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
257 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
258 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
259 oldincludedir
="$ac_optarg" ;;
261 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
263 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
264 prefix
="$ac_optarg" ;;
266 -program-prefix | --program-prefix | --program-prefi | --program-pref \
267 | --program-pre | --program-pr | --program-p)
268 ac_prev
=program_prefix
;;
269 -program-prefix=* | --program-prefix=* | --program-prefi=* \
270 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
271 program_prefix
="$ac_optarg" ;;
273 -program-suffix | --program-suffix | --program-suffi | --program-suff \
274 | --program-suf | --program-su | --program-s)
275 ac_prev
=program_suffix
;;
276 -program-suffix=* | --program-suffix=* | --program-suffi=* \
277 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
278 program_suffix
="$ac_optarg" ;;
280 -program-transform-name | --program-transform-name \
281 | --program-transform-nam | --program-transform-na \
282 | --program-transform-n | --program-transform- \
283 | --program-transform | --program-transfor \
284 | --program-transfo | --program-transf \
285 | --program-trans | --program-tran \
286 | --progr-tra | --program-tr | --program-t)
287 ac_prev
=program_transform_name
;;
288 -program-transform-name=* | --program-transform-name=* \
289 | --program-transform-nam=* | --program-transform-na=* \
290 | --program-transform-n=* | --program-transform-=* \
291 | --program-transform=* | --program-transfor=* \
292 | --program-transfo=* | --program-transf=* \
293 | --program-trans=* | --program-tran=* \
294 | --progr-tra=* | --program-tr=* | --program-t=*)
295 program_transform_name
="$ac_optarg" ;;
297 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
298 | -silent | --silent | --silen | --sile | --sil)
301 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
303 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
305 sbindir
="$ac_optarg" ;;
307 -sharedstatedir | --sharedstatedir | --sharedstatedi \
308 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
309 | --sharedst | --shareds | --shared | --share | --shar \
311 ac_prev
=sharedstatedir
;;
312 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
313 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
314 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
316 sharedstatedir
="$ac_optarg" ;;
318 -site | --site | --sit)
320 -site=* | --site=* | --sit=*)
323 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
325 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
326 srcdir
="$ac_optarg" ;;
328 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
329 | --syscon | --sysco | --sysc | --sys | --sy)
330 ac_prev
=sysconfdir
;;
331 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
332 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
333 sysconfdir
="$ac_optarg" ;;
335 -target | --target | --targe | --targ | --tar | --ta | --t)
337 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
338 target
="$ac_optarg" ;;
340 -v | -verbose | --verbose | --verbos | --verbo | --verb)
343 -version | --version | --versio | --versi | --vers)
344 echo "configure generated by autoconf version 2.13"
348 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
349 # Reject names that are not valid shell variable names.
350 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
351 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
353 ac_package
=`echo $ac_package| sed 's/-/_/g'`
358 eval "with_${ac_package}='$ac_optarg'" ;;
360 -without-* | --without-*)
361 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
362 # Reject names that are not valid shell variable names.
363 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
364 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
366 ac_package
=`echo $ac_package| sed 's/-/_/g'`
367 eval "with_${ac_package}=no" ;;
370 # Obsolete; use --with-x.
373 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
374 | --x-incl | --x-inc | --x-in | --x-i)
375 ac_prev
=x_includes
;;
376 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
377 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
378 x_includes
="$ac_optarg" ;;
380 -x-libraries | --x-libraries | --x-librarie | --x-librari \
381 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
382 ac_prev
=x_libraries
;;
383 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
384 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
385 x_libraries
="$ac_optarg" ;;
387 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
391 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
392 echo "configure: warning: $ac_option: invalid host type" 1>&2
394 if test "x$nonopt" != xNONE
; then
395 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
403 if test -n "$ac_prev"; then
404 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
407 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
409 # File descriptor usage:
412 # 2 errors and warnings
413 # 3 some systems may open it to /dev/tty
414 # 4 used on the Kubota Titan
415 # 6 checking for... messages and results
416 # 5 compiler messages saved in config.log
417 if test "$silent" = yes; then
425 This file contains any messages produced by compilers while
426 running configure, to aid debugging if configure makes a mistake.
429 # Strip out --no-create and --no-recursion so they do not pile up.
430 # Also quote any args containing shell metacharacters.
435 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
436 | --no-cr | --no-c) ;;
437 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
438 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
439 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
440 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
441 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
446 # Only set these to C if already set. These must not be set unconditionally
447 # because not all systems understand e.g. LANG=C (notably SCO).
448 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
449 # Non-C LC_CTYPE values break the ctype check.
450 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
451 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
452 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
453 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
455 # confdefs.h avoids OS command line length limits that DEFS can exceed.
456 rm -rf conftest
* confdefs.h
457 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
460 # A filename unique to this package, relative to the directory that
461 # configure is in, which we can look for to find out if srcdir is correct.
462 ac_unique_file
=src
/reduce.c
464 # Find the source files, if location was not specified.
465 if test -z "$srcdir"; then
466 ac_srcdir_defaulted
=yes
467 # Try the directory containing this script, then its parent.
469 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
470 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
472 if test ! -r $srcdir/$ac_unique_file; then
476 ac_srcdir_defaulted
=no
478 if test ! -r $srcdir/$ac_unique_file; then
479 if test "$ac_srcdir_defaulted" = yes; then
480 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
482 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
485 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
487 # Prefer explicitly selected file to automatically selected ones.
488 if test -z "$CONFIG_SITE"; then
489 if test "x$prefix" != xNONE
; then
490 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
492 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
495 for ac_site_file
in $CONFIG_SITE; do
496 if test -r "$ac_site_file"; then
497 echo "loading site script $ac_site_file"
502 if test -r "$cache_file"; then
503 echo "loading cache $cache_file"
506 echo "creating cache $cache_file"
511 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
512 ac_cpp
='$CPP $CPPFLAGS'
513 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
514 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
515 cross_compiling
=$ac_cv_prog_cc_cross
519 if (echo "testing\c"; echo 1,2,3) | grep c
>/dev
/null
; then
520 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
521 if (echo -n testing
; echo 1,2,3) | sed s
/-n/xn
/ | grep xn
>/dev
/null
; then
528 ac_n
= ac_c
='\c' ac_t
=
533 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
534 if test -f $ac_dir/install-sh; then
536 ac_install_sh
="$ac_aux_dir/install-sh -c"
538 elif test -f $ac_dir/install.sh
; then
540 ac_install_sh
="$ac_aux_dir/install.sh -c"
544 if test -z "$ac_aux_dir"; then
545 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
547 ac_config_guess
=$ac_aux_dir/config.guess
548 ac_config_sub
=$ac_aux_dir/config.sub
549 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
551 # Find a good install program. We prefer a C program (faster),
552 # so one script is as good as another. But avoid the broken or
553 # incompatible versions:
554 # SysV /etc/install, /usr/sbin/install
555 # SunOS /usr/etc/install
558 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
559 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
560 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
561 # ./install, which can be erroneously created by make from ./install.sh.
562 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
563 echo "configure:564: checking for a BSD compatible install" >&5
564 if test -z "$INSTALL"; then
565 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
566 echo $ac_n "(cached) $ac_c" 1>&6
568 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
569 for ac_dir
in $PATH; do
570 # Account for people who put trailing slashes in PATH elements.
572 /|.
/|.
//|/etc
/*|/usr
/sbin
/*|/usr
/etc
/*|/sbin
/*|/usr
/afsws
/bin
/*|/usr
/ucb
/*) ;;
574 # OSF1 and SCO ODT 3.0 have their own names for install.
575 # Don't use installbsd from OSF since it installs stuff as root
577 for ac_prog
in ginstall scoinst
install; do
578 if test -f $ac_dir/$ac_prog; then
579 if test $ac_prog = install &&
580 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
581 # AIX install. It has an incompatible calling convention.
584 ac_cv_path_install
="$ac_dir/$ac_prog -c"
595 if test "${ac_cv_path_install+set}" = set; then
596 INSTALL
="$ac_cv_path_install"
598 # As a last resort, use the slow shell script. We don't cache a
599 # path for INSTALL within a source directory, because that will
600 # break other packages using the cache if that directory is
601 # removed, or if the path is relative.
602 INSTALL
="$ac_install_sh"
605 echo "$ac_t""$INSTALL" 1>&6
607 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
608 # It thinks the first close brace ends the variable substitution.
609 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
611 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
613 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
615 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
616 echo "configure:617: checking whether build environment is sane" >&5
619 echo timestamp
> conftestfile
620 # Do `set' in a subshell so we don't clobber the current shell's
621 # arguments. Must try -L first in case configure is actually a
622 # symlink; some systems play weird games with the mod time of symlinks
623 # (eg FreeBSD returns the mod time of the symlink's containing
626 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
627 if test "$*" = "X"; then
629 set X
`ls -t $srcdir/configure conftestfile`
631 if test "$*" != "X $srcdir/configure conftestfile" \
632 && test "$*" != "X conftestfile $srcdir/configure"; then
634 # If neither matched, then we have a broken ls. This can happen
635 # if, for instance, CONFIG_SHELL is bash and it inherits a
636 # broken ls alias from the environment. This has actually
637 # happened. Such a system could not be considered "sane".
638 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
639 alias in your environment" 1>&2; exit 1; }
642 test "$2" = conftestfile
648 { echo "configure: error: newly created file is older than distributed files!
649 Check your system clock" 1>&2; exit 1; }
652 echo "$ac_t""yes" 1>&6
653 if test "$program_transform_name" = s
,x
,x
,; then
654 program_transform_name
=
656 # Double any \ or $. echo might interpret backslashes.
657 cat <<\EOF_SED
> conftestsed
658 s
,\\,\\\\,g
; s
,\$
,$$
,g
660 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
663 test "$program_prefix" != NONE
&&
664 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
665 # Use a double $ so make ignores it.
666 test "$program_suffix" != NONE
&&
667 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
669 # sed with no file args requires a program.
670 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
672 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
673 echo "configure:674: checking whether ${MAKE-make} sets \${MAKE}" >&5
674 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
675 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
676 echo $ac_n "(cached) $ac_c" 1>&6
678 cat > conftestmake
<<\EOF
680 @
echo 'ac_maketemp="${MAKE}"'
682 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
683 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
684 if test -n "$ac_maketemp"; then
685 eval ac_cv_prog_make_
${ac_make}_set
=yes
687 eval ac_cv_prog_make_
${ac_make}_set
=no
691 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
692 echo "$ac_t""yes" 1>&6
695 echo "$ac_t""no" 1>&6
696 SET_MAKE
="MAKE=${MAKE-make}"
704 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
705 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
707 cat >> confdefs.h
<<EOF
708 #define PACKAGE "$PACKAGE"
711 cat >> confdefs.h
<<EOF
712 #define VERSION "$VERSION"
717 missing_dir
=`cd $ac_aux_dir && pwd`
718 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
719 echo "configure:720: checking for working aclocal" >&5
720 # Run test in a subshell; some versions of sh will print an error if
721 # an executable is not found, even if stderr is redirected.
722 # Redirect stdin to placate older versions of autoconf. Sigh.
723 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
725 echo "$ac_t""found" 1>&6
727 ACLOCAL
="$missing_dir/missing aclocal"
728 echo "$ac_t""missing" 1>&6
731 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
732 echo "configure:733: checking for working autoconf" >&5
733 # Run test in a subshell; some versions of sh will print an error if
734 # an executable is not found, even if stderr is redirected.
735 # Redirect stdin to placate older versions of autoconf. Sigh.
736 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
738 echo "$ac_t""found" 1>&6
740 AUTOCONF
="$missing_dir/missing autoconf"
741 echo "$ac_t""missing" 1>&6
744 echo $ac_n "checking for working automake""... $ac_c" 1>&6
745 echo "configure:746: checking for working automake" >&5
746 # Run test in a subshell; some versions of sh will print an error if
747 # an executable is not found, even if stderr is redirected.
748 # Redirect stdin to placate older versions of autoconf. Sigh.
749 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
751 echo "$ac_t""found" 1>&6
753 AUTOMAKE
="$missing_dir/missing automake"
754 echo "$ac_t""missing" 1>&6
757 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
758 echo "configure:759: checking for working autoheader" >&5
759 # Run test in a subshell; some versions of sh will print an error if
760 # an executable is not found, even if stderr is redirected.
761 # Redirect stdin to placate older versions of autoconf. Sigh.
762 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
763 AUTOHEADER
=autoheader
764 echo "$ac_t""found" 1>&6
766 AUTOHEADER
="$missing_dir/missing autoheader"
767 echo "$ac_t""missing" 1>&6
770 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
771 echo "configure:772: checking for working makeinfo" >&5
772 # Run test in a subshell; some versions of sh will print an error if
773 # an executable is not found, even if stderr is redirected.
774 # Redirect stdin to placate older versions of autoconf. Sigh.
775 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
777 echo "$ac_t""found" 1>&6
779 MAKEINFO
="$missing_dir/missing makeinfo"
780 echo "$ac_t""missing" 1>&6
788 # Initialize the test suite.
791 # Try to be compatible with both Autoconf 2.13 and 2.50.
792 if test -z "$ECHO_C$ECHO_N$ECHO_T"; then
802 # Checks for programs.
803 # Extract the first word of "gcc", so it can be a program name with args.
804 set dummy gcc
; ac_word
=$2
805 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
806 echo "configure:807: checking for $ac_word" >&5
807 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
808 echo $ac_n "(cached) $ac_c" 1>&6
810 if test -n "$CC"; then
811 ac_cv_prog_CC
="$CC" # Let the user override the test.
813 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
815 for ac_dir
in $ac_dummy; do
816 test -z "$ac_dir" && ac_dir
=.
817 if test -f $ac_dir/$ac_word; then
826 if test -n "$CC"; then
827 echo "$ac_t""$CC" 1>&6
829 echo "$ac_t""no" 1>&6
832 if test -z "$CC"; then
833 # Extract the first word of "cc", so it can be a program name with args.
834 set dummy cc
; ac_word
=$2
835 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
836 echo "configure:837: checking for $ac_word" >&5
837 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
838 echo $ac_n "(cached) $ac_c" 1>&6
840 if test -n "$CC"; then
841 ac_cv_prog_CC
="$CC" # Let the user override the test.
843 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
846 for ac_dir
in $ac_dummy; do
847 test -z "$ac_dir" && ac_dir
=.
848 if test -f $ac_dir/$ac_word; then
849 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
858 if test $ac_prog_rejected = yes; then
859 # We found a bogon in the path, so make sure we never use it.
860 set dummy
$ac_cv_prog_CC
862 if test $# -gt 0; then
863 # We chose a different compiler from the bogus one.
864 # However, it has the same basename, so the bogon will be chosen
865 # first if we set CC to just the basename; use the full file name.
867 set dummy
"$ac_dir/$ac_word" "$@"
875 if test -n "$CC"; then
876 echo "$ac_t""$CC" 1>&6
878 echo "$ac_t""no" 1>&6
881 if test -z "$CC"; then
884 # Extract the first word of "cl", so it can be a program name with args.
885 set dummy cl
; ac_word
=$2
886 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
887 echo "configure:888: checking for $ac_word" >&5
888 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
889 echo $ac_n "(cached) $ac_c" 1>&6
891 if test -n "$CC"; then
892 ac_cv_prog_CC
="$CC" # Let the user override the test.
894 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
896 for ac_dir
in $ac_dummy; do
897 test -z "$ac_dir" && ac_dir
=.
898 if test -f $ac_dir/$ac_word; then
907 if test -n "$CC"; then
908 echo "$ac_t""$CC" 1>&6
910 echo "$ac_t""no" 1>&6
915 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
918 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
919 echo "configure:920: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
922 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
923 ac_cpp
='$CPP $CPPFLAGS'
924 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
925 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
926 cross_compiling
=$ac_cv_prog_cc_cross
928 cat > conftest.
$ac_ext << EOF
930 #line 931 "configure"
931 #include "confdefs.h"
935 if { (eval echo configure
:936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
936 ac_cv_prog_cc_works
=yes
937 # If we can't run a trivial program, we are probably using a cross compiler.
938 if (.
/conftest
; exit) 2>/dev
/null
; then
939 ac_cv_prog_cc_cross
=no
941 ac_cv_prog_cc_cross
=yes
944 echo "configure: failed program was:" >&5
945 cat conftest.
$ac_ext >&5
946 ac_cv_prog_cc_works
=no
950 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
951 ac_cpp
='$CPP $CPPFLAGS'
952 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
953 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
954 cross_compiling
=$ac_cv_prog_cc_cross
956 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
957 if test $ac_cv_prog_cc_works = no
; then
958 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
960 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
961 echo "configure:962: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
962 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
963 cross_compiling
=$ac_cv_prog_cc_cross
965 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
966 echo "configure:967: checking whether we are using GNU C" >&5
967 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
968 echo $ac_n "(cached) $ac_c" 1>&6
970 cat > conftest.c
<<EOF
975 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:976: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev
/null
2>&1; then
982 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
984 if test $ac_cv_prog_gcc = yes; then
990 ac_test_CFLAGS
="${CFLAGS+set}"
991 ac_save_CFLAGS
="$CFLAGS"
993 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
994 echo "configure:995: checking whether ${CC-cc} accepts -g" >&5
995 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
996 echo $ac_n "(cached) $ac_c" 1>&6
998 echo 'void f(){}' > conftest.c
999 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1008 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1009 if test "$ac_test_CFLAGS" = set; then
1010 CFLAGS
="$ac_save_CFLAGS"
1011 elif test $ac_cv_prog_cc_g = yes; then
1012 if test "$GCC" = yes; then
1018 if test "$GCC" = yes; then
1025 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1026 echo "configure:1027: checking how to run the C preprocessor" >&5
1027 # On Suns, sometimes $CPP names a directory.
1028 if test -n "$CPP" && test -d "$CPP"; then
1031 if test -z "$CPP"; then
1032 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1033 echo $ac_n "(cached) $ac_c" 1>&6
1035 # This must be in double quotes, not single quotes, because CPP may get
1036 # substituted into the Makefile and "${CC-cc}" will confuse make.
1038 # On the NeXT, cc -E runs the code through the compiler's parser,
1039 # not just through cpp.
1040 cat > conftest.
$ac_ext <<EOF
1041 #line 1042 "configure"
1042 #include "confdefs.h"
1046 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1047 { (eval echo configure
:1048: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1048 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1049 if test -z "$ac_err"; then
1053 echo "configure: failed program was:" >&5
1054 cat conftest.
$ac_ext >&5
1056 CPP
="${CC-cc} -E -traditional-cpp"
1057 cat > conftest.
$ac_ext <<EOF
1058 #line 1059 "configure"
1059 #include "confdefs.h"
1063 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1064 { (eval echo configure
:1065: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1065 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1066 if test -z "$ac_err"; then
1070 echo "configure: failed program was:" >&5
1071 cat conftest.
$ac_ext >&5
1073 CPP
="${CC-cc} -nologo -E"
1074 cat > conftest.
$ac_ext <<EOF
1075 #line 1076 "configure"
1076 #include "confdefs.h"
1080 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1081 { (eval echo configure
:1082: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1082 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1083 if test -z "$ac_err"; then
1087 echo "configure: failed program was:" >&5
1088 cat conftest.
$ac_ext >&5
1097 ac_cv_prog_CPP
="$CPP"
1099 CPP
="$ac_cv_prog_CPP"
1101 ac_cv_prog_CPP
="$CPP"
1103 echo "$ac_t""$CPP" 1>&6
1105 ac_safe
=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
1106 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
1107 echo "configure:1108: checking for minix/config.h" >&5
1108 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1109 echo $ac_n "(cached) $ac_c" 1>&6
1111 cat > conftest.
$ac_ext <<EOF
1112 #line 1113 "configure"
1113 #include "confdefs.h"
1114 #include <minix/config.h>
1116 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1117 { (eval echo configure
:1118: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1118 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1119 if test -z "$ac_err"; then
1121 eval "ac_cv_header_$ac_safe=yes"
1124 echo "configure: failed program was:" >&5
1125 cat conftest.
$ac_ext >&5
1127 eval "ac_cv_header_$ac_safe=no"
1131 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1132 echo "$ac_t""yes" 1>&6
1135 echo "$ac_t""no" 1>&6
1139 if test "$MINIX" = yes; then
1140 cat >> confdefs.h
<<\EOF
1141 #define _POSIX_SOURCE 1
1144 cat >> confdefs.h
<<\EOF
1145 #define _POSIX_1_SOURCE 2
1148 cat >> confdefs.h
<<\EOF
1154 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1155 echo "configure:1156: checking for POSIXized ISC" >&5
1156 if test -d /etc
/conf
/kconfig.d
&&
1157 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
1159 echo "$ac_t""yes" 1>&6
1160 ISC
=yes # If later tests want to check for ISC.
1161 cat >> confdefs.h
<<\EOF
1162 #define _POSIX_SOURCE 1
1165 if test "$GCC" = yes; then
1171 echo "$ac_t""no" 1>&6
1178 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
1179 echo "configure:1180: checking for ${CC-cc} option to accept ANSI C" >&5
1180 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
1181 echo $ac_n "(cached) $ac_c" 1>&6
1183 am_cv_prog_cc_stdc
=no
1185 # Don't try gcc -ansi; that turns off useful extensions and
1186 # breaks some systems' header files.
1187 # AIX -qlanglvl=ansi
1188 # Ultrix and OSF/1 -std1
1189 # HP-UX -Aa -D_HPUX_SOURCE
1190 # SVR4 -Xc -D__EXTENSIONS__
1191 for ac_arg
in "" -qlanglvl=ansi
-std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1193 CC
="$ac_save_CC $ac_arg"
1194 cat > conftest.
$ac_ext <<EOF
1195 #line 1196 "configure"
1196 #include "confdefs.h"
1199 #include <sys/types.h>
1200 #include <sys/stat.h>
1201 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1202 struct buf { int x; };
1203 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1204 static char *e (p, i)
1210 static char *f (char * (*g) (char **, int), char **p, ...)
1215 s = g (p, va_arg (v,int));
1219 int test (int i, double x);
1220 struct s1 {int (*f) (int a);};
1221 struct s2 {int (*f) (double a);};
1222 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1228 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1232 if { (eval echo configure
:1233: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1234 am_cv_prog_cc_stdc
="$ac_arg"; break
1236 echo "configure: failed program was:" >&5
1237 cat conftest.
$ac_ext >&5
1245 if test -z "$am_cv_prog_cc_stdc"; then
1246 echo "$ac_t""none needed" 1>&6
1248 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
1250 case "x$am_cv_prog_cc_stdc" in
1252 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
1255 # Find a good install program. We prefer a C program (faster),
1256 # so one script is as good as another. But avoid the broken or
1257 # incompatible versions:
1258 # SysV /etc/install, /usr/sbin/install
1259 # SunOS /usr/etc/install
1260 # IRIX /sbin/install
1262 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1263 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1264 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1265 # ./install, which can be erroneously created by make from ./install.sh.
1266 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1267 echo "configure:1268: checking for a BSD compatible install" >&5
1268 if test -z "$INSTALL"; then
1269 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1270 echo $ac_n "(cached) $ac_c" 1>&6
1272 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1273 for ac_dir
in $PATH; do
1274 # Account for people who put trailing slashes in PATH elements.
1276 /|.
/|.
//|/etc
/*|/usr
/sbin
/*|/usr
/etc
/*|/sbin
/*|/usr
/afsws
/bin
/*|/usr
/ucb
/*) ;;
1278 # OSF1 and SCO ODT 3.0 have their own names for install.
1279 # Don't use installbsd from OSF since it installs stuff as root
1281 for ac_prog
in ginstall scoinst
install; do
1282 if test -f $ac_dir/$ac_prog; then
1283 if test $ac_prog = install &&
1284 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1285 # AIX install. It has an incompatible calling convention.
1288 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1299 if test "${ac_cv_path_install+set}" = set; then
1300 INSTALL
="$ac_cv_path_install"
1302 # As a last resort, use the slow shell script. We don't cache a
1303 # path for INSTALL within a source directory, because that will
1304 # break other packages using the cache if that directory is
1305 # removed, or if the path is relative.
1306 INSTALL
="$ac_install_sh"
1309 echo "$ac_t""$INSTALL" 1>&6
1311 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1312 # It thinks the first close brace ends the variable substitution.
1313 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1315 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1317 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1319 # Extract the first word of "ranlib", so it can be a program name with args.
1320 set dummy ranlib
; ac_word
=$2
1321 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1322 echo "configure:1323: checking for $ac_word" >&5
1323 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1324 echo $ac_n "(cached) $ac_c" 1>&6
1326 if test -n "$RANLIB"; then
1327 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1329 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1331 for ac_dir
in $ac_dummy; do
1332 test -z "$ac_dir" && ac_dir
=.
1333 if test -f $ac_dir/$ac_word; then
1334 ac_cv_prog_RANLIB
="ranlib"
1339 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1342 RANLIB
="$ac_cv_prog_RANLIB"
1343 if test -n "$RANLIB"; then
1344 echo "$ac_t""$RANLIB" 1>&6
1346 echo "$ac_t""no" 1>&6
1349 # GNU M4 is needed to build the testsuite.
1350 for ac_prog
in gm4 gnum4
m4
1352 # Extract the first word of "$ac_prog", so it can be a program name with args.
1353 set dummy
$ac_prog; ac_word
=$2
1354 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1355 echo "configure:1356: checking for $ac_word" >&5
1356 if eval "test \"`echo '$''{'ac_cv_path_M4'+set}'`\" = set"; then
1357 echo $ac_n "(cached) $ac_c" 1>&6
1361 ac_cv_path_M4
="$M4" # Let the user override the test with a path.
1364 ac_cv_path_M4
="$M4" # Let the user override the test with a dos path.
1367 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1369 for ac_dir
in $ac_dummy; do
1370 test -z "$ac_dir" && ac_dir
=.
1371 if test -f $ac_dir/$ac_word; then
1372 ac_cv_path_M4
="$ac_dir/$ac_word"
1381 if test -n "$M4"; then
1382 echo "$ac_t""$M4" 1>&6
1384 echo "$ac_t""no" 1>&6
1387 test -n "$M4" && break
1389 test -n "$M4" || M4
="m4"
1391 echo $ac_n "checking whether m4 supports frozen files""... $ac_c" 1>&6
1392 echo "configure:1393: checking whether m4 supports frozen files" >&5
1393 if eval "test \"`echo '$''{'ac_cv_prog_gnu_m4'+set}'`\" = set"; then
1394 echo $ac_n "(cached) $ac_c" 1>&6
1396 ac_cv_prog_gnu_m4
=no
1397 if test x
"$M4" != x
; then
1398 case `$M4 --help < /dev/null 2>&1` in
1399 *reload
-state*) ac_cv_prog_gnu_m4
=yes ;;
1404 echo "$ac_t""$ac_cv_prog_gnu_m4" 1>&6
1405 if test "$ac_cv_prog_gnu_m4" != yes; then
1406 missing_dir
=`cd $ac_aux_dir && pwd`
1407 M4
="$missing_dir/missing m4"
1410 # Check whether --enable-gcc-warnings or --disable-gcc-warnings was given.
1411 if test "${enable_gcc_warnings+set}" = set; then
1412 enableval
="$enable_gcc_warnings"
1413 case "${enableval}" in
1415 *) { echo "configure: error: bad value ${enableval} for gcc-warnings option" 1>&2; exit 1; } ;;
1423 if test "${enableval}" = yes; then
1424 echo $ac_n "checking whether compiler accepts -Wall""... $ac_c" 1>&6
1425 echo "configure:1426: checking whether compiler accepts -Wall" >&5
1427 ac_save_CFLAGS
="$CFLAGS"
1428 CFLAGS
="$CFLAGS -Wall"
1429 cat > conftest.
$ac_ext <<EOF
1430 #line 1431 "configure"
1431 #include "confdefs.h"
1437 if { (eval echo configure
:1438: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1439 WARNING_CFLAGS
="$WARNING_CFLAGS -Wall"
1440 echo "$ac_t""yes" 1>&6
1442 echo "configure: failed program was:" >&5
1443 cat conftest.
$ac_ext >&5
1445 echo "$ac_t""no" 1>&6
1448 CFLAGS
="$ac_save_CFLAGS"
1449 echo $ac_n "checking whether compiler accepts -W""... $ac_c" 1>&6
1450 echo "configure:1451: checking whether compiler accepts -W" >&5
1452 ac_save_CFLAGS
="$CFLAGS"
1454 cat > conftest.
$ac_ext <<EOF
1455 #line 1456 "configure"
1456 #include "confdefs.h"
1462 if { (eval echo configure
:1463: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1464 WARNING_CFLAGS
="$WARNING_CFLAGS -W"
1465 echo "$ac_t""yes" 1>&6
1467 echo "configure: failed program was:" >&5
1468 cat conftest.
$ac_ext >&5
1470 echo "$ac_t""no" 1>&6
1473 CFLAGS
="$ac_save_CFLAGS"
1474 echo $ac_n "checking whether compiler accepts -Wbad-function-cast""... $ac_c" 1>&6
1475 echo "configure:1476: checking whether compiler accepts -Wbad-function-cast" >&5
1477 ac_save_CFLAGS
="$CFLAGS"
1478 CFLAGS
="$CFLAGS -Wbad-function-cast"
1479 cat > conftest.
$ac_ext <<EOF
1480 #line 1481 "configure"
1481 #include "confdefs.h"
1487 if { (eval echo configure
:1488: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1489 WARNING_CFLAGS
="$WARNING_CFLAGS -Wbad-function-cast"
1490 echo "$ac_t""yes" 1>&6
1492 echo "configure: failed program was:" >&5
1493 cat conftest.
$ac_ext >&5
1495 echo "$ac_t""no" 1>&6
1498 CFLAGS
="$ac_save_CFLAGS"
1499 echo $ac_n "checking whether compiler accepts -Wcast-align""... $ac_c" 1>&6
1500 echo "configure:1501: checking whether compiler accepts -Wcast-align" >&5
1502 ac_save_CFLAGS
="$CFLAGS"
1503 CFLAGS
="$CFLAGS -Wcast-align"
1504 cat > conftest.
$ac_ext <<EOF
1505 #line 1506 "configure"
1506 #include "confdefs.h"
1512 if { (eval echo configure
:1513: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1514 WARNING_CFLAGS
="$WARNING_CFLAGS -Wcast-align"
1515 echo "$ac_t""yes" 1>&6
1517 echo "configure: failed program was:" >&5
1518 cat conftest.
$ac_ext >&5
1520 echo "$ac_t""no" 1>&6
1523 CFLAGS
="$ac_save_CFLAGS"
1524 echo $ac_n "checking whether compiler accepts -Wcast-qual""... $ac_c" 1>&6
1525 echo "configure:1526: checking whether compiler accepts -Wcast-qual" >&5
1527 ac_save_CFLAGS
="$CFLAGS"
1528 CFLAGS
="$CFLAGS -Wcast-qual"
1529 cat > conftest.
$ac_ext <<EOF
1530 #line 1531 "configure"
1531 #include "confdefs.h"
1537 if { (eval echo configure
:1538: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1539 WARNING_CFLAGS
="$WARNING_CFLAGS -Wcast-qual"
1540 echo "$ac_t""yes" 1>&6
1542 echo "configure: failed program was:" >&5
1543 cat conftest.
$ac_ext >&5
1545 echo "$ac_t""no" 1>&6
1548 CFLAGS
="$ac_save_CFLAGS"
1549 echo $ac_n "checking whether compiler accepts -Wmissing-declarations""... $ac_c" 1>&6
1550 echo "configure:1551: checking whether compiler accepts -Wmissing-declarations" >&5
1552 ac_save_CFLAGS
="$CFLAGS"
1553 CFLAGS
="$CFLAGS -Wmissing-declarations"
1554 cat > conftest.
$ac_ext <<EOF
1555 #line 1556 "configure"
1556 #include "confdefs.h"
1562 if { (eval echo configure
:1563: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1564 WARNING_CFLAGS
="$WARNING_CFLAGS -Wmissing-declarations"
1565 echo "$ac_t""yes" 1>&6
1567 echo "configure: failed program was:" >&5
1568 cat conftest.
$ac_ext >&5
1570 echo "$ac_t""no" 1>&6
1573 CFLAGS
="$ac_save_CFLAGS"
1574 echo $ac_n "checking whether compiler accepts -Wmissing-prototypes""... $ac_c" 1>&6
1575 echo "configure:1576: checking whether compiler accepts -Wmissing-prototypes" >&5
1577 ac_save_CFLAGS
="$CFLAGS"
1578 CFLAGS
="$CFLAGS -Wmissing-prototypes"
1579 cat > conftest.
$ac_ext <<EOF
1580 #line 1581 "configure"
1581 #include "confdefs.h"
1587 if { (eval echo configure
:1588: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1589 WARNING_CFLAGS
="$WARNING_CFLAGS -Wmissing-prototypes"
1590 echo "$ac_t""yes" 1>&6
1592 echo "configure: failed program was:" >&5
1593 cat conftest.
$ac_ext >&5
1595 echo "$ac_t""no" 1>&6
1598 CFLAGS
="$ac_save_CFLAGS"
1599 echo $ac_n "checking whether compiler accepts -Wnested-externs""... $ac_c" 1>&6
1600 echo "configure:1601: checking whether compiler accepts -Wnested-externs" >&5
1602 ac_save_CFLAGS
="$CFLAGS"
1603 CFLAGS
="$CFLAGS -Wnested-externs"
1604 cat > conftest.
$ac_ext <<EOF
1605 #line 1606 "configure"
1606 #include "confdefs.h"
1612 if { (eval echo configure
:1613: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1614 WARNING_CFLAGS
="$WARNING_CFLAGS -Wnested-externs"
1615 echo "$ac_t""yes" 1>&6
1617 echo "configure: failed program was:" >&5
1618 cat conftest.
$ac_ext >&5
1620 echo "$ac_t""no" 1>&6
1623 CFLAGS
="$ac_save_CFLAGS"
1624 echo $ac_n "checking whether compiler accepts -Wshadow""... $ac_c" 1>&6
1625 echo "configure:1626: checking whether compiler accepts -Wshadow" >&5
1627 ac_save_CFLAGS
="$CFLAGS"
1628 CFLAGS
="$CFLAGS -Wshadow"
1629 cat > conftest.
$ac_ext <<EOF
1630 #line 1631 "configure"
1631 #include "confdefs.h"
1637 if { (eval echo configure
:1638: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1639 WARNING_CFLAGS
="$WARNING_CFLAGS -Wshadow"
1640 echo "$ac_t""yes" 1>&6
1642 echo "configure: failed program was:" >&5
1643 cat conftest.
$ac_ext >&5
1645 echo "$ac_t""no" 1>&6
1648 CFLAGS
="$ac_save_CFLAGS"
1649 echo $ac_n "checking whether compiler accepts -Wstrict-prototypes""... $ac_c" 1>&6
1650 echo "configure:1651: checking whether compiler accepts -Wstrict-prototypes" >&5
1652 ac_save_CFLAGS
="$CFLAGS"
1653 CFLAGS
="$CFLAGS -Wstrict-prototypes"
1654 cat > conftest.
$ac_ext <<EOF
1655 #line 1656 "configure"
1656 #include "confdefs.h"
1662 if { (eval echo configure
:1663: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1664 WARNING_CFLAGS
="$WARNING_CFLAGS -Wstrict-prototypes"
1665 echo "$ac_t""yes" 1>&6
1667 echo "configure: failed program was:" >&5
1668 cat conftest.
$ac_ext >&5
1670 echo "$ac_t""no" 1>&6
1673 CFLAGS
="$ac_save_CFLAGS"
1674 echo $ac_n "checking whether compiler accepts -Wwrite-strings""... $ac_c" 1>&6
1675 echo "configure:1676: checking whether compiler accepts -Wwrite-strings" >&5
1677 ac_save_CFLAGS
="$CFLAGS"
1678 CFLAGS
="$CFLAGS -Wwrite-strings"
1679 cat > conftest.
$ac_ext <<EOF
1680 #line 1681 "configure"
1681 #include "confdefs.h"
1687 if { (eval echo configure
:1688: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1689 WARNING_CFLAGS
="$WARNING_CFLAGS -Wwrite-strings"
1690 echo "$ac_t""yes" 1>&6
1692 echo "configure: failed program was:" >&5
1693 cat conftest.
$ac_ext >&5
1695 echo "$ac_t""no" 1>&6
1698 CFLAGS
="$ac_save_CFLAGS"
1699 CFLAGS
="$CFLAGS $WARNING_CFLAGS"
1702 # Checks for libraries.
1703 cat >> confdefs.h
<<\EOF
1704 #define _GNU_SOURCE 1
1708 # Checks for header files.
1709 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1710 echo "configure:1711: checking for ANSI C header files" >&5
1711 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1712 echo $ac_n "(cached) $ac_c" 1>&6
1714 cat > conftest.
$ac_ext <<EOF
1715 #line 1716 "configure"
1716 #include "confdefs.h"
1722 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1723 { (eval echo configure
:1724: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1724 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1725 if test -z "$ac_err"; then
1727 ac_cv_header_stdc
=yes
1730 echo "configure: failed program was:" >&5
1731 cat conftest.
$ac_ext >&5
1733 ac_cv_header_stdc
=no
1737 if test $ac_cv_header_stdc = yes; then
1738 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1739 cat > conftest.
$ac_ext <<EOF
1740 #line 1741 "configure"
1741 #include "confdefs.h"
1744 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1745 egrep "memchr" >/dev
/null
2>&1; then
1749 ac_cv_header_stdc
=no
1755 if test $ac_cv_header_stdc = yes; then
1756 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1757 cat > conftest.
$ac_ext <<EOF
1758 #line 1759 "configure"
1759 #include "confdefs.h"
1762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1763 egrep "free" >/dev
/null
2>&1; then
1767 ac_cv_header_stdc
=no
1773 if test $ac_cv_header_stdc = yes; then
1774 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1775 if test "$cross_compiling" = yes; then
1778 cat > conftest.
$ac_ext <<EOF
1779 #line 1780 "configure"
1780 #include "confdefs.h"
1782 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1783 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1784 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1785 int main () { int i; for (i = 0; i < 256; i++)
1786 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1790 if { (eval echo configure
:1791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1794 echo "configure: failed program was:" >&5
1795 cat conftest.
$ac_ext >&5
1797 ac_cv_header_stdc
=no
1805 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1806 if test $ac_cv_header_stdc = yes; then
1807 cat >> confdefs.h
<<\EOF
1808 #define STDC_HEADERS 1
1813 for ac_hdr
in ctype.h locale.h memory.h stdlib.h string.h unistd.h
1815 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1816 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1817 echo "configure:1818: checking for $ac_hdr" >&5
1818 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1819 echo $ac_n "(cached) $ac_c" 1>&6
1821 cat > conftest.
$ac_ext <<EOF
1822 #line 1823 "configure"
1823 #include "confdefs.h"
1826 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1827 { (eval echo configure
:1828: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1828 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1829 if test -z "$ac_err"; then
1831 eval "ac_cv_header_$ac_safe=yes"
1834 echo "configure: failed program was:" >&5
1835 cat conftest.
$ac_ext >&5
1837 eval "ac_cv_header_$ac_safe=no"
1841 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1842 echo "$ac_t""yes" 1>&6
1843 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1844 cat >> confdefs.h
<<EOF
1845 #define $ac_tr_hdr 1
1849 echo "$ac_t""no" 1>&6
1854 # Checks for typedefs.
1856 # Checks for structures.
1858 # Checks for compiler characteristics.
1859 echo $ac_n "checking for working const""... $ac_c" 1>&6
1860 echo "configure:1861: checking for working const" >&5
1861 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1862 echo $ac_n "(cached) $ac_c" 1>&6
1864 cat > conftest.
$ac_ext <<EOF
1865 #line 1866 "configure"
1866 #include "confdefs.h"
1870 /* Ultrix mips cc rejects this. */
1871 typedef int charset[2]; const charset x = {0,0};
1872 /* SunOS 4.1.1 cc rejects this. */
1873 char const *const *ccp;
1875 /* NEC SVR4.0.2 mips cc rejects this. */
1876 struct point {int x, y;};
1877 static struct point const zero = {0,0};
1878 /* AIX XL C 1.02.0.0 rejects this.
1879 It does not let you subtract one const X* pointer from another in an arm
1880 of an if-expression whose if-part is not a constant expression */
1881 const char *g = "string";
1882 ccp = &g + (g ? g-g : 0);
1883 /* HPUX 7.0 cc rejects these. */
1886 ccp = (char const *const *) p;
1887 { /* SCO 3.2v4 cc rejects this. */
1889 char const *s = 0 ? (char *) 0 : (char const *) 0;
1893 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1895 const int *foo = &x[0];
1898 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1899 typedef const int *iptr;
1903 { /* AIX XL C 1.02.0.0 rejects this saying
1904 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1905 struct s { int j; const int *ap[3]; };
1906 struct s *b; b->j = 5;
1908 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1914 if { (eval echo configure
:1915: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1918 echo "configure: failed program was:" >&5
1919 cat conftest.
$ac_ext >&5
1926 echo "$ac_t""$ac_cv_c_const" 1>&6
1927 if test $ac_cv_c_const = no
; then
1928 cat >> confdefs.h
<<\EOF
1934 echo $ac_n "checking for inline""... $ac_c" 1>&6
1935 echo "configure:1936: checking for inline" >&5
1936 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1937 echo $ac_n "(cached) $ac_c" 1>&6
1940 for ac_kw
in inline __inline__ __inline
; do
1941 cat > conftest.
$ac_ext <<EOF
1942 #line 1943 "configure"
1943 #include "confdefs.h"
1946 } int $ac_kw foo() {
1949 if { (eval echo configure
:1950: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1951 ac_cv_c_inline
=$ac_kw; break
1953 echo "configure: failed program was:" >&5
1954 cat conftest.
$ac_ext >&5
1961 echo "$ac_t""$ac_cv_c_inline" 1>&6
1962 case "$ac_cv_c_inline" in
1964 no
) cat >> confdefs.h
<<\EOF
1968 *) cat >> confdefs.h
<<EOF
1969 #define inline $ac_cv_c_inline
1976 echo $ac_n "checking for function prototypes""... $ac_c" 1>&6
1977 echo "configure:1978: checking for function prototypes" >&5
1978 if test "$am_cv_prog_cc_stdc" != no
; then
1979 echo "$ac_t""yes" 1>&6
1980 cat >> confdefs.h
<<\EOF
1981 #define PROTOTYPES 1
1986 echo "$ac_t""no" 1>&6
1987 U
=_ ANSI2KNR
=.
/ansi2knr
1988 # Ensure some checks needed by ansi2knr itself.
1989 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1990 echo "configure:1991: checking for ANSI C header files" >&5
1991 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1992 echo $ac_n "(cached) $ac_c" 1>&6
1994 cat > conftest.
$ac_ext <<EOF
1995 #line 1996 "configure"
1996 #include "confdefs.h"
2002 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2003 { (eval echo configure
:2004: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2004 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2005 if test -z "$ac_err"; then
2007 ac_cv_header_stdc
=yes
2010 echo "configure: failed program was:" >&5
2011 cat conftest.
$ac_ext >&5
2013 ac_cv_header_stdc
=no
2017 if test $ac_cv_header_stdc = yes; then
2018 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2019 cat > conftest.
$ac_ext <<EOF
2020 #line 2021 "configure"
2021 #include "confdefs.h"
2024 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2025 egrep "memchr" >/dev
/null
2>&1; then
2029 ac_cv_header_stdc
=no
2035 if test $ac_cv_header_stdc = yes; then
2036 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2037 cat > conftest.
$ac_ext <<EOF
2038 #line 2039 "configure"
2039 #include "confdefs.h"
2042 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2043 egrep "free" >/dev
/null
2>&1; then
2047 ac_cv_header_stdc
=no
2053 if test $ac_cv_header_stdc = yes; then
2054 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2055 if test "$cross_compiling" = yes; then
2058 cat > conftest.
$ac_ext <<EOF
2059 #line 2060 "configure"
2060 #include "confdefs.h"
2062 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2063 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2064 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2065 int main () { int i; for (i = 0; i < 256; i++)
2066 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2070 if { (eval echo configure
:2071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2074 echo "configure: failed program was:" >&5
2075 cat conftest.
$ac_ext >&5
2077 ac_cv_header_stdc
=no
2085 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2086 if test $ac_cv_header_stdc = yes; then
2087 cat >> confdefs.h
<<\EOF
2088 #define STDC_HEADERS 1
2093 for ac_hdr
in string.h
2095 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2096 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2097 echo "configure:2098: checking for $ac_hdr" >&5
2098 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2099 echo $ac_n "(cached) $ac_c" 1>&6
2101 cat > conftest.
$ac_ext <<EOF
2102 #line 2103 "configure"
2103 #include "confdefs.h"
2106 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2107 { (eval echo configure
:2108: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2108 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2109 if test -z "$ac_err"; then
2111 eval "ac_cv_header_$ac_safe=yes"
2114 echo "configure: failed program was:" >&5
2115 cat conftest.
$ac_ext >&5
2117 eval "ac_cv_header_$ac_safe=no"
2121 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2122 echo "$ac_t""yes" 1>&6
2123 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2124 cat >> confdefs.h
<<EOF
2125 #define $ac_tr_hdr 1
2129 echo "$ac_t""no" 1>&6
2136 # Checks for library functions.
2137 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2138 # for constant arguments. Useless!
2139 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2140 echo "configure:2141: checking for working alloca.h" >&5
2141 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+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"
2149 void *p = alloca(2 * sizeof(int));
2152 if { (eval echo configure
:2153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2154 ac_cv_header_alloca_h
=yes
2156 echo "configure: failed program was:" >&5
2157 cat conftest.
$ac_ext >&5
2159 ac_cv_header_alloca_h
=no
2164 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2165 if test $ac_cv_header_alloca_h = yes; then
2166 cat >> confdefs.h
<<\EOF
2167 #define HAVE_ALLOCA_H 1
2172 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2173 echo "configure:2174: checking for alloca" >&5
2174 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2175 echo $ac_n "(cached) $ac_c" 1>&6
2177 cat > conftest.
$ac_ext <<EOF
2178 #line 2179 "configure"
2179 #include "confdefs.h"
2182 # define alloca __builtin_alloca
2185 # include <malloc.h>
2186 # define alloca _alloca
2189 # include <alloca.h>
2194 # ifndef alloca /* predefined by HP cc +Olibcalls */
2203 char *p = (char *) alloca(1);
2206 if { (eval echo configure
:2207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2208 ac_cv_func_alloca_works
=yes
2210 echo "configure: failed program was:" >&5
2211 cat conftest.
$ac_ext >&5
2213 ac_cv_func_alloca_works
=no
2218 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2219 if test $ac_cv_func_alloca_works = yes; then
2220 cat >> confdefs.h
<<\EOF
2221 #define HAVE_ALLOCA 1
2226 if test $ac_cv_func_alloca_works = no
; then
2227 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2228 # that cause trouble. Some versions do not even contain alloca or
2229 # contain a buggy version. If you still want to use their alloca,
2230 # use ar to extract alloca.o from them instead of compiling alloca.c.
2231 ALLOCA
=alloca.
${ac_objext}
2232 cat >> confdefs.h
<<\EOF
2237 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2238 echo "configure:2239: checking whether alloca needs Cray hooks" >&5
2239 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2240 echo $ac_n "(cached) $ac_c" 1>&6
2242 cat > conftest.
$ac_ext <<EOF
2243 #line 2244 "configure"
2244 #include "confdefs.h"
2245 #if defined(CRAY) && ! defined(CRAY2)
2252 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2253 egrep "webecray" >/dev
/null
2>&1; then
2264 echo "$ac_t""$ac_cv_os_cray" 1>&6
2265 if test $ac_cv_os_cray = yes; then
2266 for ac_func
in _getb67 GETB67 getb67
; do
2267 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2268 echo "configure:2269: checking for $ac_func" >&5
2269 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2270 echo $ac_n "(cached) $ac_c" 1>&6
2272 cat > conftest.
$ac_ext <<EOF
2273 #line 2274 "configure"
2274 #include "confdefs.h"
2275 /* System header to define __stub macros and hopefully few prototypes,
2276 which can conflict with char $ac_func(); below. */
2278 /* Override any gcc2 internal prototype to avoid an error. */
2279 /* We use char because int might match the return type of a gcc2
2280 builtin and then its argument prototype would still apply. */
2285 /* The GNU C library defines this for functions which it implements
2286 to always fail with ENOSYS. Some functions are actually named
2287 something starting with __ and the normal name is an alias. */
2288 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2296 if { (eval echo configure
:2297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2298 eval "ac_cv_func_$ac_func=yes"
2300 echo "configure: failed program was:" >&5
2301 cat conftest.
$ac_ext >&5
2303 eval "ac_cv_func_$ac_func=no"
2308 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2309 echo "$ac_t""yes" 1>&6
2310 cat >> confdefs.h
<<EOF
2311 #define CRAY_STACKSEG_END $ac_func
2316 echo "$ac_t""no" 1>&6
2322 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2323 echo "configure:2324: checking stack direction for C alloca" >&5
2324 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2325 echo $ac_n "(cached) $ac_c" 1>&6
2327 if test "$cross_compiling" = yes; then
2328 ac_cv_c_stack_direction
=0
2330 cat > conftest.
$ac_ext <<EOF
2331 #line 2332 "configure"
2332 #include "confdefs.h"
2333 find_stack_direction ()
2335 static char *addr = 0;
2340 return find_stack_direction ();
2343 return (&dummy > addr) ? 1 : -1;
2347 exit (find_stack_direction() < 0);
2350 if { (eval echo configure
:2351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2352 ac_cv_c_stack_direction
=1
2354 echo "configure: failed program was:" >&5
2355 cat conftest.
$ac_ext >&5
2357 ac_cv_c_stack_direction
=-1
2364 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2365 cat >> confdefs.h
<<EOF
2366 #define STACK_DIRECTION $ac_cv_c_stack_direction
2371 for ac_func
in mkstemp setlocale
2373 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2374 echo "configure:2375: checking for $ac_func" >&5
2375 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2376 echo $ac_n "(cached) $ac_c" 1>&6
2378 cat > conftest.
$ac_ext <<EOF
2379 #line 2380 "configure"
2380 #include "confdefs.h"
2381 /* System header to define __stub macros and hopefully few prototypes,
2382 which can conflict with char $ac_func(); below. */
2384 /* Override any gcc2 internal prototype to avoid an error. */
2385 /* We use char because int might match the return type of a gcc2
2386 builtin and then its argument prototype would still apply. */
2391 /* The GNU C library defines this for functions which it implements
2392 to always fail with ENOSYS. Some functions are actually named
2393 something starting with __ and the normal name is an alias. */
2394 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2402 if { (eval echo configure
:2403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2404 eval "ac_cv_func_$ac_func=yes"
2406 echo "configure: failed program was:" >&5
2407 cat conftest.
$ac_ext >&5
2409 eval "ac_cv_func_$ac_func=no"
2414 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2415 echo "$ac_t""yes" 1>&6
2416 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2417 cat >> confdefs.h
<<EOF
2418 #define $ac_tr_func 1
2422 echo "$ac_t""no" 1>&6
2427 cat >> confdefs.h
<<EOF
2428 #define HAVE_DONE_WORKING_MALLOC_CHECK 1
2432 echo $ac_n "checking for working malloc""... $ac_c" 1>&6
2433 echo "configure:2434: checking for working malloc" >&5
2434 if eval "test \"`echo '$''{'jm_cv_func_working_malloc'+set}'`\" = set"; then
2435 echo $ac_n "(cached) $ac_c" 1>&6
2437 if test "$cross_compiling" = yes; then
2438 jm_cv_func_working_malloc
=no
2440 cat > conftest.
$ac_ext <<EOF
2441 #line 2442 "configure"
2442 #include "confdefs.h"
2448 exit (malloc (0) ? 0 : 1);
2452 if { (eval echo configure
:2453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2454 jm_cv_func_working_malloc
=yes
2456 echo "configure: failed program was:" >&5
2457 cat conftest.
$ac_ext >&5
2459 jm_cv_func_working_malloc
=no
2467 echo "$ac_t""$jm_cv_func_working_malloc" 1>&6
2468 if test $jm_cv_func_working_malloc = no
; then
2470 LIBOBJS
="$LIBOBJS malloc.$ac_objext"
2471 cat >> confdefs.h
<<EOF
2472 #define malloc rpl_malloc
2478 cat >> confdefs.h
<<EOF
2479 #define HAVE_DONE_WORKING_REALLOC_CHECK 1
2483 echo $ac_n "checking for working realloc""... $ac_c" 1>&6
2484 echo "configure:2485: checking for working realloc" >&5
2485 if eval "test \"`echo '$''{'jm_cv_func_working_realloc'+set}'`\" = set"; then
2486 echo $ac_n "(cached) $ac_c" 1>&6
2488 if test "$cross_compiling" = yes; then
2489 jm_cv_func_working_realloc
=no
2491 cat > conftest.
$ac_ext <<EOF
2492 #line 2493 "configure"
2493 #include "confdefs.h"
2499 exit (realloc (0, 0) ? 0 : 1);
2503 if { (eval echo configure
:2504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2505 jm_cv_func_working_realloc
=yes
2507 echo "configure: failed program was:" >&5
2508 cat conftest.
$ac_ext >&5
2510 jm_cv_func_working_realloc
=no
2518 echo "$ac_t""$jm_cv_func_working_realloc" 1>&6
2519 if test $jm_cv_func_working_realloc = no
; then
2521 LIBOBJS
="$LIBOBJS realloc.$ac_objext"
2522 cat >> confdefs.h
<<EOF
2523 #define realloc rpl_realloc
2529 for ac_func
in isascii iswprint mbrtowc
2531 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2532 echo "configure:2533: checking for $ac_func" >&5
2533 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2534 echo $ac_n "(cached) $ac_c" 1>&6
2536 cat > conftest.
$ac_ext <<EOF
2537 #line 2538 "configure"
2538 #include "confdefs.h"
2539 /* System header to define __stub macros and hopefully few prototypes,
2540 which can conflict with char $ac_func(); below. */
2542 /* Override any gcc2 internal prototype to avoid an error. */
2543 /* We use char because int might match the return type of a gcc2
2544 builtin and then its argument prototype would still apply. */
2549 /* The GNU C library defines this for functions which it implements
2550 to always fail with ENOSYS. Some functions are actually named
2551 something starting with __ and the normal name is an alias. */
2552 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2560 if { (eval echo configure
:2561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2562 eval "ac_cv_func_$ac_func=yes"
2564 echo "configure: failed program was:" >&5
2565 cat conftest.
$ac_ext >&5
2567 eval "ac_cv_func_$ac_func=no"
2572 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2573 echo "$ac_t""yes" 1>&6
2574 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2575 cat >> confdefs.h
<<EOF
2576 #define $ac_tr_func 1
2580 echo "$ac_t""no" 1>&6
2584 for ac_hdr
in limits.h stdlib.h string.h wchar.h wctype.h
2586 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2587 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2588 echo "configure:2589: checking for $ac_hdr" >&5
2589 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2590 echo $ac_n "(cached) $ac_c" 1>&6
2592 cat > conftest.
$ac_ext <<EOF
2593 #line 2594 "configure"
2594 #include "confdefs.h"
2597 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2598 { (eval echo configure
:2599: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2599 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2600 if test -z "$ac_err"; then
2602 eval "ac_cv_header_$ac_safe=yes"
2605 echo "configure: failed program was:" >&5
2606 cat conftest.
$ac_ext >&5
2608 eval "ac_cv_header_$ac_safe=no"
2612 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2613 echo "$ac_t""yes" 1>&6
2614 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2615 cat >> confdefs.h
<<EOF
2616 #define $ac_tr_hdr 1
2620 echo "$ac_t""no" 1>&6
2624 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2625 echo "configure:2626: checking for ANSI C header files" >&5
2626 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2627 echo $ac_n "(cached) $ac_c" 1>&6
2629 cat > conftest.
$ac_ext <<EOF
2630 #line 2631 "configure"
2631 #include "confdefs.h"
2637 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2638 { (eval echo configure
:2639: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2639 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2640 if test -z "$ac_err"; then
2642 ac_cv_header_stdc
=yes
2645 echo "configure: failed program was:" >&5
2646 cat conftest.
$ac_ext >&5
2648 ac_cv_header_stdc
=no
2652 if test $ac_cv_header_stdc = yes; then
2653 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2654 cat > conftest.
$ac_ext <<EOF
2655 #line 2656 "configure"
2656 #include "confdefs.h"
2659 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2660 egrep "memchr" >/dev
/null
2>&1; then
2664 ac_cv_header_stdc
=no
2670 if test $ac_cv_header_stdc = yes; then
2671 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2672 cat > conftest.
$ac_ext <<EOF
2673 #line 2674 "configure"
2674 #include "confdefs.h"
2677 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2678 egrep "free" >/dev
/null
2>&1; then
2682 ac_cv_header_stdc
=no
2688 if test $ac_cv_header_stdc = yes; then
2689 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2690 if test "$cross_compiling" = yes; then
2693 cat > conftest.
$ac_ext <<EOF
2694 #line 2695 "configure"
2695 #include "confdefs.h"
2697 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2698 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2699 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2700 int main () { int i; for (i = 0; i < 256; i++)
2701 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2705 if { (eval echo configure
:2706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2709 echo "configure: failed program was:" >&5
2710 cat conftest.
$ac_ext >&5
2712 ac_cv_header_stdc
=no
2720 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2721 if test $ac_cv_header_stdc = yes; then
2722 cat >> confdefs.h
<<\EOF
2723 #define STDC_HEADERS 1
2729 echo $ac_n "checking whether backslash-a works in strings""... $ac_c" 1>&6
2730 echo "configure:2731: checking whether backslash-a works in strings" >&5
2731 if eval "test \"`echo '$''{'ac_cv_c_backslash_a'+set}'`\" = set"; then
2732 echo $ac_n "(cached) $ac_c" 1>&6
2734 cat > conftest.
$ac_ext <<EOF
2735 #line 2736 "configure"
2736 #include "confdefs.h"
2743 char buf['\a' == 'a' ? -1 : 1];
2745 return buf[0] != "\a"[0];
2749 if { (eval echo configure
:2750: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2751 ac_cv_c_backslash_a
=yes
2753 echo "configure: failed program was:" >&5
2754 cat conftest.
$ac_ext >&5
2756 ac_cv_c_backslash_a
=no
2761 echo "$ac_t""$ac_cv_c_backslash_a" 1>&6
2762 if test $ac_cv_c_backslash_a = yes; then
2763 cat >> confdefs.h
<<\EOF
2764 #define HAVE_C_BACKSLASH_A 1
2770 for ac_hdr
in stdlib.h
2772 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2773 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2774 echo "configure:2775: checking for $ac_hdr" >&5
2775 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2776 echo $ac_n "(cached) $ac_c" 1>&6
2778 cat > conftest.
$ac_ext <<EOF
2779 #line 2780 "configure"
2780 #include "confdefs.h"
2783 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2784 { (eval echo configure
:2785: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2785 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2786 if test -z "$ac_err"; then
2788 eval "ac_cv_header_$ac_safe=yes"
2791 echo "configure: failed program was:" >&5
2792 cat conftest.
$ac_ext >&5
2794 eval "ac_cv_header_$ac_safe=no"
2798 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2799 echo "$ac_t""yes" 1>&6
2800 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2801 cat >> confdefs.h
<<EOF
2802 #define $ac_tr_hdr 1
2806 echo "$ac_t""no" 1>&6
2811 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
2812 echo "configure:2813: checking for mbstate_t" >&5
2813 if eval "test \"`echo '$''{'ac_cv_type_mbstate_t'+set}'`\" = set"; then
2814 echo $ac_n "(cached) $ac_c" 1>&6
2816 cat > conftest.
$ac_ext <<EOF
2817 #line 2818 "configure"
2818 #include "confdefs.h"
2821 # include <stdlib.h>
2825 mbstate_t x; return sizeof x;
2828 if { (eval echo configure
:2829: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2830 ac_cv_type_mbstate_t
=yes
2832 echo "configure: failed program was:" >&5
2833 cat conftest.
$ac_ext >&5
2835 ac_cv_type_mbstate_t
=no
2840 echo "$ac_t""$ac_cv_type_mbstate_t" 1>&6
2841 if test $ac_cv_type_mbstate_t = no
; then
2842 cat >> confdefs.h
<<\EOF
2843 #define mbstate_t int
2849 echo $ac_n "checking for function prototypes""... $ac_c" 1>&6
2850 echo "configure:2851: checking for function prototypes" >&5
2851 if test "$am_cv_prog_cc_stdc" != no
; then
2852 echo "$ac_t""yes" 1>&6
2853 cat >> confdefs.h
<<\EOF
2854 #define PROTOTYPES 1
2859 echo "$ac_t""no" 1>&6
2860 U
=_ ANSI2KNR
=.
/ansi2knr
2861 # Ensure some checks needed by ansi2knr itself.
2862 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2863 echo "configure:2864: checking for ANSI C header files" >&5
2864 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2865 echo $ac_n "(cached) $ac_c" 1>&6
2867 cat > conftest.
$ac_ext <<EOF
2868 #line 2869 "configure"
2869 #include "confdefs.h"
2875 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2876 { (eval echo configure
:2877: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2877 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2878 if test -z "$ac_err"; then
2880 ac_cv_header_stdc
=yes
2883 echo "configure: failed program was:" >&5
2884 cat conftest.
$ac_ext >&5
2886 ac_cv_header_stdc
=no
2890 if test $ac_cv_header_stdc = yes; then
2891 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2892 cat > conftest.
$ac_ext <<EOF
2893 #line 2894 "configure"
2894 #include "confdefs.h"
2897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2898 egrep "memchr" >/dev
/null
2>&1; then
2902 ac_cv_header_stdc
=no
2908 if test $ac_cv_header_stdc = yes; then
2909 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2910 cat > conftest.
$ac_ext <<EOF
2911 #line 2912 "configure"
2912 #include "confdefs.h"
2915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2916 egrep "free" >/dev
/null
2>&1; then
2920 ac_cv_header_stdc
=no
2926 if test $ac_cv_header_stdc = yes; then
2927 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2928 if test "$cross_compiling" = yes; then
2931 cat > conftest.
$ac_ext <<EOF
2932 #line 2933 "configure"
2933 #include "confdefs.h"
2935 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2936 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2937 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2938 int main () { int i; for (i = 0; i < 256; i++)
2939 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2943 if { (eval echo configure
:2944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2947 echo "configure: failed program was:" >&5
2948 cat conftest.
$ac_ext >&5
2950 ac_cv_header_stdc
=no
2958 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2959 if test $ac_cv_header_stdc = yes; then
2960 cat >> confdefs.h
<<\EOF
2961 #define STDC_HEADERS 1
2966 for ac_hdr
in string.h
2968 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2969 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2970 echo "configure:2971: checking for $ac_hdr" >&5
2971 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2972 echo $ac_n "(cached) $ac_c" 1>&6
2974 cat > conftest.
$ac_ext <<EOF
2975 #line 2976 "configure"
2976 #include "confdefs.h"
2979 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2980 { (eval echo configure
:2981: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2981 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2982 if test -z "$ac_err"; then
2984 eval "ac_cv_header_$ac_safe=yes"
2987 echo "configure: failed program was:" >&5
2988 cat conftest.
$ac_ext >&5
2990 eval "ac_cv_header_$ac_safe=no"
2994 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2995 echo "$ac_t""yes" 1>&6
2996 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2997 cat >> confdefs.h
<<EOF
2998 #define $ac_tr_hdr 1
3002 echo "$ac_t""no" 1>&6
3010 ALL_LINGUAS
="de es et fr ja nl ru"
3011 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3012 echo "configure:3013: checking for off_t" >&5
3013 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3014 echo $ac_n "(cached) $ac_c" 1>&6
3016 cat > conftest.
$ac_ext <<EOF
3017 #line 3018 "configure"
3018 #include "confdefs.h"
3019 #include <sys/types.h>
3025 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3026 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3028 ac_cv_type_off_t
=yes
3036 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3037 if test $ac_cv_type_off_t = no
; then
3038 cat >> confdefs.h
<<\EOF
3044 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3045 echo "configure:3046: checking for size_t" >&5
3046 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3047 echo $ac_n "(cached) $ac_c" 1>&6
3049 cat > conftest.
$ac_ext <<EOF
3050 #line 3051 "configure"
3051 #include "confdefs.h"
3052 #include <sys/types.h>
3058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3059 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3061 ac_cv_type_size_t
=yes
3064 ac_cv_type_size_t
=no
3069 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3070 if test $ac_cv_type_size_t = no
; then
3071 cat >> confdefs.h
<<\EOF
3072 #define size_t unsigned
3077 for ac_hdr
in unistd.h
3079 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3080 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3081 echo "configure:3082: checking for $ac_hdr" >&5
3082 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3083 echo $ac_n "(cached) $ac_c" 1>&6
3085 cat > conftest.
$ac_ext <<EOF
3086 #line 3087 "configure"
3087 #include "confdefs.h"
3090 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3091 { (eval echo configure
:3092: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3092 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3093 if test -z "$ac_err"; then
3095 eval "ac_cv_header_$ac_safe=yes"
3098 echo "configure: failed program was:" >&5
3099 cat conftest.
$ac_ext >&5
3101 eval "ac_cv_header_$ac_safe=no"
3105 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3106 echo "$ac_t""yes" 1>&6
3107 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3108 cat >> confdefs.h
<<EOF
3109 #define $ac_tr_hdr 1
3113 echo "$ac_t""no" 1>&6
3117 for ac_func
in getpagesize
3119 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3120 echo "configure:3121: checking for $ac_func" >&5
3121 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3122 echo $ac_n "(cached) $ac_c" 1>&6
3124 cat > conftest.
$ac_ext <<EOF
3125 #line 3126 "configure"
3126 #include "confdefs.h"
3127 /* System header to define __stub macros and hopefully few prototypes,
3128 which can conflict with char $ac_func(); below. */
3130 /* Override any gcc2 internal prototype to avoid an error. */
3131 /* We use char because int might match the return type of a gcc2
3132 builtin and then its argument prototype would still apply. */
3137 /* The GNU C library defines this for functions which it implements
3138 to always fail with ENOSYS. Some functions are actually named
3139 something starting with __ and the normal name is an alias. */
3140 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3148 if { (eval echo configure
:3149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3150 eval "ac_cv_func_$ac_func=yes"
3152 echo "configure: failed program was:" >&5
3153 cat conftest.
$ac_ext >&5
3155 eval "ac_cv_func_$ac_func=no"
3160 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3161 echo "$ac_t""yes" 1>&6
3162 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3163 cat >> confdefs.h
<<EOF
3164 #define $ac_tr_func 1
3168 echo "$ac_t""no" 1>&6
3172 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
3173 echo "configure:3174: checking for working mmap" >&5
3174 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
3175 echo $ac_n "(cached) $ac_c" 1>&6
3177 if test "$cross_compiling" = yes; then
3178 ac_cv_func_mmap_fixed_mapped
=no
3180 cat > conftest.
$ac_ext <<EOF
3181 #line 3182 "configure"
3182 #include "confdefs.h"
3184 /* Thanks to Mike Haertel and Jim Avera for this test.
3185 Here is a matrix of mmap possibilities:
3186 mmap private not fixed
3187 mmap private fixed at somewhere currently unmapped
3188 mmap private fixed at somewhere already mapped
3189 mmap shared not fixed
3190 mmap shared fixed at somewhere currently unmapped
3191 mmap shared fixed at somewhere already mapped
3192 For private mappings, we should verify that changes cannot be read()
3193 back from the file, nor mmap's back from the file at a different
3194 address. (There have been systems where private was not correctly
3195 implemented like the infamous i386 svr4.0, and systems where the
3196 VM page cache was not coherent with the filesystem buffer cache
3197 like early versions of FreeBSD and possibly contemporary NetBSD.)
3198 For shared mappings, we should conversely verify that changes get
3199 propogated back to all the places they're supposed to be.
3201 Grep wants private fixed already mapped.
3202 The main things grep needs to know about mmap are:
3203 * does it exist and is it safe to write into the mmap'd area
3204 * how to use it (BSD variants) */
3205 #include <sys/types.h>
3207 #include <sys/mman.h>
3209 #include <sys/stat.h>
3211 #ifdef HAVE_UNISTD_H
3212 # include <unistd.h>
3215 /* This mess was copied from the GNU getpagesize.h. */
3216 #ifndef HAVE_GETPAGESIZE
3218 /* Assume that all systems that can run configure have sys/param.h. */
3219 # ifndef HAVE_SYS_PARAM_H
3220 # define HAVE_SYS_PARAM_H 1
3223 # ifdef _SC_PAGESIZE
3224 # define getpagesize() sysconf(_SC_PAGESIZE)
3225 # else /* no _SC_PAGESIZE */
3226 # ifdef HAVE_SYS_PARAM_H
3227 # include <sys/param.h>
3228 # ifdef EXEC_PAGESIZE
3229 # define getpagesize() EXEC_PAGESIZE
3230 # else /* no EXEC_PAGESIZE */
3232 # define getpagesize() NBPG * CLSIZE
3235 # endif /* no CLSIZE */
3236 # else /* no NBPG */
3238 # define getpagesize() NBPC
3239 # else /* no NBPC */
3241 # define getpagesize() PAGESIZE
3242 # endif /* PAGESIZE */
3243 # endif /* no NBPC */
3244 # endif /* no NBPG */
3245 # endif /* no EXEC_PAGESIZE */
3246 # else /* no HAVE_SYS_PARAM_H */
3247 # define getpagesize() 8192 /* punt totally */
3248 # endif /* no HAVE_SYS_PARAM_H */
3249 # endif /* no _SC_PAGESIZE */
3251 #endif /* no HAVE_GETPAGESIZE */
3254 extern "C" { void *malloc(unsigned); }
3262 char *data, *data2, *data3;
3266 pagesize = getpagesize();
3269 * First, make a file with some known garbage in it.
3271 data = (char*)malloc(pagesize);
3274 for (i = 0; i < pagesize; ++i)
3275 *(data + i) = rand();
3277 fd = creat("conftestmmap", 0600);
3280 if (write(fd, data, pagesize) != pagesize)
3285 * Next, try to mmap the file at a fixed address which
3286 * already has something else allocated at it. If we can,
3287 * also make sure that we see the same garbage.
3289 fd = open("conftestmmap", O_RDWR);
3292 data2 = (char*)malloc(2 * pagesize);
3295 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3296 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3297 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3299 for (i = 0; i < pagesize; ++i)
3300 if (*(data + i) != *(data2 + i))
3304 * Finally, make sure that changes to the mapped area
3305 * do not percolate back to the file as seen by read().
3306 * (This is a bug on some variants of i386 svr4.0.)
3308 for (i = 0; i < pagesize; ++i)
3309 *(data2 + i) = *(data2 + i) + 1;
3310 data3 = (char*)malloc(pagesize);
3313 if (read(fd, data3, pagesize) != pagesize)
3315 for (i = 0; i < pagesize; ++i)
3316 if (*(data + i) != *(data3 + i))
3319 unlink("conftestmmap");
3324 if { (eval echo configure
:3325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3326 ac_cv_func_mmap_fixed_mapped
=yes
3328 echo "configure: failed program was:" >&5
3329 cat conftest.
$ac_ext >&5
3331 ac_cv_func_mmap_fixed_mapped
=no
3338 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3339 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3340 cat >> confdefs.h
<<\EOF
3347 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
3348 unistd.h sys
/param.h
3350 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3351 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3352 echo "configure:3353: checking for $ac_hdr" >&5
3353 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3354 echo $ac_n "(cached) $ac_c" 1>&6
3356 cat > conftest.
$ac_ext <<EOF
3357 #line 3358 "configure"
3358 #include "confdefs.h"
3361 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3362 { (eval echo configure
:3363: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3363 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3364 if test -z "$ac_err"; then
3366 eval "ac_cv_header_$ac_safe=yes"
3369 echo "configure: failed program was:" >&5
3370 cat conftest.
$ac_ext >&5
3372 eval "ac_cv_header_$ac_safe=no"
3376 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3377 echo "$ac_t""yes" 1>&6
3378 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3379 cat >> confdefs.h
<<EOF
3380 #define $ac_tr_hdr 1
3384 echo "$ac_t""no" 1>&6
3388 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
3389 strdup __argz_count __argz_stringify __argz_next
3391 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3392 echo "configure:3393: checking for $ac_func" >&5
3393 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3394 echo $ac_n "(cached) $ac_c" 1>&6
3396 cat > conftest.
$ac_ext <<EOF
3397 #line 3398 "configure"
3398 #include "confdefs.h"
3399 /* System header to define __stub macros and hopefully few prototypes,
3400 which can conflict with char $ac_func(); below. */
3402 /* Override any gcc2 internal prototype to avoid an error. */
3403 /* We use char because int might match the return type of a gcc2
3404 builtin and then its argument prototype would still apply. */
3409 /* The GNU C library defines this for functions which it implements
3410 to always fail with ENOSYS. Some functions are actually named
3411 something starting with __ and the normal name is an alias. */
3412 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3420 if { (eval echo configure
:3421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3422 eval "ac_cv_func_$ac_func=yes"
3424 echo "configure: failed program was:" >&5
3425 cat conftest.
$ac_ext >&5
3427 eval "ac_cv_func_$ac_func=no"
3432 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3433 echo "$ac_t""yes" 1>&6
3434 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3435 cat >> confdefs.h
<<EOF
3436 #define $ac_tr_func 1
3440 echo "$ac_t""no" 1>&6
3445 if test "${ac_cv_func_stpcpy+set}" != "set"; then
3446 for ac_func
in stpcpy
3448 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3449 echo "configure:3450: checking for $ac_func" >&5
3450 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3451 echo $ac_n "(cached) $ac_c" 1>&6
3453 cat > conftest.
$ac_ext <<EOF
3454 #line 3455 "configure"
3455 #include "confdefs.h"
3456 /* System header to define __stub macros and hopefully few prototypes,
3457 which can conflict with char $ac_func(); below. */
3459 /* Override any gcc2 internal prototype to avoid an error. */
3460 /* We use char because int might match the return type of a gcc2
3461 builtin and then its argument prototype would still apply. */
3466 /* The GNU C library defines this for functions which it implements
3467 to always fail with ENOSYS. Some functions are actually named
3468 something starting with __ and the normal name is an alias. */
3469 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3477 if { (eval echo configure
:3478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3479 eval "ac_cv_func_$ac_func=yes"
3481 echo "configure: failed program was:" >&5
3482 cat conftest.
$ac_ext >&5
3484 eval "ac_cv_func_$ac_func=no"
3489 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3490 echo "$ac_t""yes" 1>&6
3491 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3492 cat >> confdefs.h
<<EOF
3493 #define $ac_tr_func 1
3497 echo "$ac_t""no" 1>&6
3502 if test "${ac_cv_func_stpcpy}" = "yes"; then
3503 cat >> confdefs.h
<<\EOF
3504 #define HAVE_STPCPY 1
3509 if test $ac_cv_header_locale_h = yes; then
3510 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3511 echo "configure:3512: checking for LC_MESSAGES" >&5
3512 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3513 echo $ac_n "(cached) $ac_c" 1>&6
3515 cat > conftest.
$ac_ext <<EOF
3516 #line 3517 "configure"
3517 #include "confdefs.h"
3523 if { (eval echo configure
:3524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3525 am_cv_val_LC_MESSAGES
=yes
3527 echo "configure: failed program was:" >&5
3528 cat conftest.
$ac_ext >&5
3530 am_cv_val_LC_MESSAGES
=no
3535 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3536 if test $am_cv_val_LC_MESSAGES = yes; then
3537 cat >> confdefs.h
<<\EOF
3538 #define HAVE_LC_MESSAGES 1
3543 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3544 echo "configure:3545: checking whether NLS is requested" >&5
3545 # Check whether --enable-nls or --disable-nls was given.
3546 if test "${enable_nls+set}" = set; then
3547 enableval
="$enable_nls"
3553 echo "$ac_t""$USE_NLS" 1>&6
3556 USE_INCLUDED_LIBINTL
=no
3558 if test "$USE_NLS" = "yes"; then
3559 cat >> confdefs.h
<<\EOF
3560 #define ENABLE_NLS 1
3563 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3564 echo "configure:3565: checking whether included gettext is requested" >&5
3565 # Check whether --with-included-gettext or --without-included-gettext was given.
3566 if test "${with_included_gettext+set}" = set; then
3567 withval
="$with_included_gettext"
3568 nls_cv_force_use_gnu_gettext
=$withval
3570 nls_cv_force_use_gnu_gettext
=no
3573 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3575 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
3576 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3578 nls_cv_header_libgt
=
3581 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3582 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3583 echo "configure:3584: checking for libintl.h" >&5
3584 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3585 echo $ac_n "(cached) $ac_c" 1>&6
3587 cat > conftest.
$ac_ext <<EOF
3588 #line 3589 "configure"
3589 #include "confdefs.h"
3590 #include <libintl.h>
3592 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3593 { (eval echo configure
:3594: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3594 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3595 if test -z "$ac_err"; then
3597 eval "ac_cv_header_$ac_safe=yes"
3600 echo "configure: failed program was:" >&5
3601 cat conftest.
$ac_ext >&5
3603 eval "ac_cv_header_$ac_safe=no"
3607 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3608 echo "$ac_t""yes" 1>&6
3609 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3610 echo "configure:3611: checking for gettext in libc" >&5
3611 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3612 echo $ac_n "(cached) $ac_c" 1>&6
3614 cat > conftest.
$ac_ext <<EOF
3615 #line 3616 "configure"
3616 #include "confdefs.h"
3617 #include <libintl.h>
3619 return (int) gettext ("")
3622 if { (eval echo configure
:3623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3624 gt_cv_func_gettext_libc
=yes
3626 echo "configure: failed program was:" >&5
3627 cat conftest.
$ac_ext >&5
3629 gt_cv_func_gettext_libc
=no
3634 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3636 if test "$gt_cv_func_gettext_libc" != "yes"; then
3637 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3638 echo "configure:3639: checking for bindtextdomain in -lintl" >&5
3639 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3640 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3641 echo $ac_n "(cached) $ac_c" 1>&6
3643 ac_save_LIBS
="$LIBS"
3645 cat > conftest.
$ac_ext <<EOF
3646 #line 3647 "configure"
3647 #include "confdefs.h"
3648 /* Override any gcc2 internal prototype to avoid an error. */
3649 /* We use char because int might match the return type of a gcc2
3650 builtin and then its argument prototype would still apply. */
3651 char bindtextdomain();
3657 if { (eval echo configure
:3658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3659 eval "ac_cv_lib_$ac_lib_var=yes"
3661 echo "configure: failed program was:" >&5
3662 cat conftest.
$ac_ext >&5
3664 eval "ac_cv_lib_$ac_lib_var=no"
3667 LIBS
="$ac_save_LIBS"
3670 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3671 echo "$ac_t""yes" 1>&6
3672 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
3673 echo "configure:3674: checking for gettext in -lintl" >&5
3674 ac_lib_var
=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
3675 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3676 echo $ac_n "(cached) $ac_c" 1>&6
3678 ac_save_LIBS
="$LIBS"
3680 cat > conftest.
$ac_ext <<EOF
3681 #line 3682 "configure"
3682 #include "confdefs.h"
3683 /* Override any gcc2 internal prototype to avoid an error. */
3684 /* We use char because int might match the return type of a gcc2
3685 builtin and then its argument prototype would still apply. */
3692 if { (eval echo configure
:3693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3694 eval "ac_cv_lib_$ac_lib_var=yes"
3696 echo "configure: failed program was:" >&5
3697 cat conftest.
$ac_ext >&5
3699 eval "ac_cv_lib_$ac_lib_var=no"
3702 LIBS
="$ac_save_LIBS"
3705 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3706 echo "$ac_t""yes" 1>&6
3707 ac_tr_lib
=HAVE_LIB
`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3708 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3709 cat >> confdefs.h
<<EOF
3710 #define $ac_tr_lib 1
3716 echo "$ac_t""no" 1>&6
3720 echo "$ac_t""no" 1>&6
3725 if test "$gt_cv_func_gettext_libc" = "yes" \
3726 || test "$ac_cv_lib_intl_gettext" = "yes"; then
3727 cat >> confdefs.h
<<\EOF
3728 #define HAVE_GETTEXT 1
3731 # Extract the first word of "msgfmt", so it can be a program name with args.
3732 set dummy msgfmt
; ac_word
=$2
3733 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3734 echo "configure:3735: checking for $ac_word" >&5
3735 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3736 echo $ac_n "(cached) $ac_c" 1>&6
3740 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
3743 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3744 for ac_dir
in $PATH; do
3745 test -z "$ac_dir" && ac_dir
=.
3746 if test -f $ac_dir/$ac_word; then
3747 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3748 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
3754 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
3758 MSGFMT
="$ac_cv_path_MSGFMT"
3759 if test -n "$MSGFMT"; then
3760 echo "$ac_t""$MSGFMT" 1>&6
3762 echo "$ac_t""no" 1>&6
3764 if test "$MSGFMT" != "no"; then
3765 for ac_func
in dcgettext
3767 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3768 echo "configure:3769: checking for $ac_func" >&5
3769 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3770 echo $ac_n "(cached) $ac_c" 1>&6
3772 cat > conftest.
$ac_ext <<EOF
3773 #line 3774 "configure"
3774 #include "confdefs.h"
3775 /* System header to define __stub macros and hopefully few prototypes,
3776 which can conflict with char $ac_func(); below. */
3778 /* Override any gcc2 internal prototype to avoid an error. */
3779 /* We use char because int might match the return type of a gcc2
3780 builtin and then its argument prototype would still apply. */
3785 /* The GNU C library defines this for functions which it implements
3786 to always fail with ENOSYS. Some functions are actually named
3787 something starting with __ and the normal name is an alias. */
3788 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3796 if { (eval echo configure
:3797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3798 eval "ac_cv_func_$ac_func=yes"
3800 echo "configure: failed program was:" >&5
3801 cat conftest.
$ac_ext >&5
3803 eval "ac_cv_func_$ac_func=no"
3808 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3809 echo "$ac_t""yes" 1>&6
3810 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3811 cat >> confdefs.h
<<EOF
3812 #define $ac_tr_func 1
3816 echo "$ac_t""no" 1>&6
3820 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3821 set dummy gmsgfmt
; ac_word
=$2
3822 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3823 echo "configure:3824: checking for $ac_word" >&5
3824 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3825 echo $ac_n "(cached) $ac_c" 1>&6
3829 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
3832 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
3835 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3837 for ac_dir
in $ac_dummy; do
3838 test -z "$ac_dir" && ac_dir
=.
3839 if test -f $ac_dir/$ac_word; then
3840 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
3845 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
3849 GMSGFMT
="$ac_cv_path_GMSGFMT"
3850 if test -n "$GMSGFMT"; then
3851 echo "$ac_t""$GMSGFMT" 1>&6
3853 echo "$ac_t""no" 1>&6
3856 # Extract the first word of "xgettext", so it can be a program name with args.
3857 set dummy xgettext
; ac_word
=$2
3858 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3859 echo "configure:3860: checking for $ac_word" >&5
3860 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3861 echo $ac_n "(cached) $ac_c" 1>&6
3865 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
3868 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3869 for ac_dir
in $PATH; do
3870 test -z "$ac_dir" && ac_dir
=.
3871 if test -f $ac_dir/$ac_word; then
3872 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3873 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
3879 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
3883 XGETTEXT
="$ac_cv_path_XGETTEXT"
3884 if test -n "$XGETTEXT"; then
3885 echo "$ac_t""$XGETTEXT" 1>&6
3887 echo "$ac_t""no" 1>&6
3890 cat > conftest.
$ac_ext <<EOF
3891 #line 3892 "configure"
3892 #include "confdefs.h"
3895 extern int _nl_msg_cat_cntr;
3896 return _nl_msg_cat_cntr
3899 if { (eval echo configure
:3900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3904 echo "configure: failed program was:" >&5
3905 cat conftest.
$ac_ext >&5
3916 echo "$ac_t""no" 1>&6
3920 if test "$CATOBJEXT" = "NONE"; then
3921 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
3922 echo "configure:3923: checking whether catgets can be used" >&5
3923 # Check whether --with-catgets or --without-catgets was given.
3924 if test "${with_catgets+set}" = set; then
3925 withval
="$with_catgets"
3926 nls_cv_use_catgets
=$withval
3928 nls_cv_use_catgets
=no
3931 echo "$ac_t""$nls_cv_use_catgets" 1>&6
3933 if test "$nls_cv_use_catgets" = "yes"; then
3934 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
3935 echo "configure:3936: checking for main in -li" >&5
3936 ac_lib_var
=`echo i'_'main | sed 'y%./+-%__p_%'`
3937 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3938 echo $ac_n "(cached) $ac_c" 1>&6
3940 ac_save_LIBS
="$LIBS"
3942 cat > conftest.
$ac_ext <<EOF
3943 #line 3944 "configure"
3944 #include "confdefs.h"
3950 if { (eval echo configure
:3951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3952 eval "ac_cv_lib_$ac_lib_var=yes"
3954 echo "configure: failed program was:" >&5
3955 cat conftest.
$ac_ext >&5
3957 eval "ac_cv_lib_$ac_lib_var=no"
3960 LIBS
="$ac_save_LIBS"
3963 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3964 echo "$ac_t""yes" 1>&6
3965 ac_tr_lib
=HAVE_LIB
`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3966 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3967 cat >> confdefs.h
<<EOF
3968 #define $ac_tr_lib 1
3974 echo "$ac_t""no" 1>&6
3977 echo $ac_n "checking for catgets""... $ac_c" 1>&6
3978 echo "configure:3979: checking for catgets" >&5
3979 if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
3980 echo $ac_n "(cached) $ac_c" 1>&6
3982 cat > conftest.
$ac_ext <<EOF
3983 #line 3984 "configure"
3984 #include "confdefs.h"
3985 /* System header to define __stub macros and hopefully few prototypes,
3986 which can conflict with char catgets(); below. */
3988 /* Override any gcc2 internal prototype to avoid an error. */
3989 /* We use char because int might match the return type of a gcc2
3990 builtin and then its argument prototype would still apply. */
3995 /* The GNU C library defines this for functions which it implements
3996 to always fail with ENOSYS. Some functions are actually named
3997 something starting with __ and the normal name is an alias. */
3998 #if defined (__stub_catgets) || defined (__stub___catgets)
4006 if { (eval echo configure
:4007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4008 eval "ac_cv_func_catgets=yes"
4010 echo "configure: failed program was:" >&5
4011 cat conftest.
$ac_ext >&5
4013 eval "ac_cv_func_catgets=no"
4018 if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
4019 echo "$ac_t""yes" 1>&6
4020 cat >> confdefs.h
<<\EOF
4021 #define HAVE_CATGETS 1
4024 INTLOBJS
="\$(CATOBJS)"
4025 # Extract the first word of "gencat", so it can be a program name with args.
4026 set dummy gencat
; ac_word
=$2
4027 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4028 echo "configure:4029: checking for $ac_word" >&5
4029 if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
4030 echo $ac_n "(cached) $ac_c" 1>&6
4034 ac_cv_path_GENCAT
="$GENCAT" # Let the user override the test with a path.
4037 ac_cv_path_GENCAT
="$GENCAT" # Let the user override the test with a dos path.
4040 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4042 for ac_dir
in $ac_dummy; do
4043 test -z "$ac_dir" && ac_dir
=.
4044 if test -f $ac_dir/$ac_word; then
4045 ac_cv_path_GENCAT
="$ac_dir/$ac_word"
4050 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT
="no"
4054 GENCAT
="$ac_cv_path_GENCAT"
4055 if test -n "$GENCAT"; then
4056 echo "$ac_t""$GENCAT" 1>&6
4058 echo "$ac_t""no" 1>&6
4060 if test "$GENCAT" != "no"; then
4061 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4062 set dummy gmsgfmt
; ac_word
=$2
4063 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4064 echo "configure:4065: checking for $ac_word" >&5
4065 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4066 echo $ac_n "(cached) $ac_c" 1>&6
4070 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
4073 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
4076 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4078 for ac_dir
in $ac_dummy; do
4079 test -z "$ac_dir" && ac_dir
=.
4080 if test -f $ac_dir/$ac_word; then
4081 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
4086 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="no"
4090 GMSGFMT
="$ac_cv_path_GMSGFMT"
4091 if test -n "$GMSGFMT"; then
4092 echo "$ac_t""$GMSGFMT" 1>&6
4094 echo "$ac_t""no" 1>&6
4097 if test "$GMSGFMT" = "no"; then
4098 # Extract the first word of "msgfmt", so it can be a program name with args.
4099 set dummy msgfmt
; ac_word
=$2
4100 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4101 echo "configure:4102: checking for $ac_word" >&5
4102 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4103 echo $ac_n "(cached) $ac_c" 1>&6
4107 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
4110 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4111 for ac_dir
in $PATH; do
4112 test -z "$ac_dir" && ac_dir
=.
4113 if test -f $ac_dir/$ac_word; then
4114 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4115 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
4121 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="no"
4125 GMSGFMT
="$ac_cv_path_GMSGFMT"
4126 if test -n "$GMSGFMT"; then
4127 echo "$ac_t""$GMSGFMT" 1>&6
4129 echo "$ac_t""no" 1>&6
4133 # Extract the first word of "xgettext", so it can be a program name with args.
4134 set dummy xgettext
; ac_word
=$2
4135 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4136 echo "configure:4137: checking for $ac_word" >&5
4137 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4138 echo $ac_n "(cached) $ac_c" 1>&6
4142 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
4145 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4146 for ac_dir
in $PATH; do
4147 test -z "$ac_dir" && ac_dir
=.
4148 if test -f $ac_dir/$ac_word; then
4149 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4150 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
4156 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
4160 XGETTEXT
="$ac_cv_path_XGETTEXT"
4161 if test -n "$XGETTEXT"; then
4162 echo "$ac_t""$XGETTEXT" 1>&6
4164 echo "$ac_t""no" 1>&6
4167 USE_INCLUDED_LIBINTL
=yes
4171 INTLDEPS
='$(top_builddir)/intl/libintl.a'
4173 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
4174 nls_cv_header_intl
=intl
/libintl.h
4175 nls_cv_header_libgt
=intl
/libgettext.h
4178 echo "$ac_t""no" 1>&6
4184 if test "$CATOBJEXT" = "NONE"; then
4185 nls_cv_use_gnu_gettext
=yes
4189 if test "$nls_cv_use_gnu_gettext" = "yes"; then
4190 INTLOBJS
="\$(GETTOBJS)"
4191 # Extract the first word of "msgfmt", so it can be a program name with args.
4192 set dummy msgfmt
; ac_word
=$2
4193 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4194 echo "configure:4195: checking for $ac_word" >&5
4195 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
4196 echo $ac_n "(cached) $ac_c" 1>&6
4200 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
4203 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4204 for ac_dir
in $PATH; do
4205 test -z "$ac_dir" && ac_dir
=.
4206 if test -f $ac_dir/$ac_word; then
4207 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4208 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
4214 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
4218 MSGFMT
="$ac_cv_path_MSGFMT"
4219 if test -n "$MSGFMT"; then
4220 echo "$ac_t""$MSGFMT" 1>&6
4222 echo "$ac_t""no" 1>&6
4225 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4226 set dummy gmsgfmt
; ac_word
=$2
4227 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4228 echo "configure:4229: checking for $ac_word" >&5
4229 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4230 echo $ac_n "(cached) $ac_c" 1>&6
4234 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
4237 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
4240 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4242 for ac_dir
in $ac_dummy; do
4243 test -z "$ac_dir" && ac_dir
=.
4244 if test -f $ac_dir/$ac_word; then
4245 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
4250 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
4254 GMSGFMT
="$ac_cv_path_GMSGFMT"
4255 if test -n "$GMSGFMT"; then
4256 echo "$ac_t""$GMSGFMT" 1>&6
4258 echo "$ac_t""no" 1>&6
4261 # Extract the first word of "xgettext", so it can be a program name with args.
4262 set dummy xgettext
; ac_word
=$2
4263 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4264 echo "configure:4265: checking for $ac_word" >&5
4265 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4266 echo $ac_n "(cached) $ac_c" 1>&6
4270 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
4273 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4274 for ac_dir
in $PATH; do
4275 test -z "$ac_dir" && ac_dir
=.
4276 if test -f $ac_dir/$ac_word; then
4277 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4278 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
4284 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
4288 XGETTEXT
="$ac_cv_path_XGETTEXT"
4289 if test -n "$XGETTEXT"; then
4290 echo "$ac_t""$XGETTEXT" 1>&6
4292 echo "$ac_t""no" 1>&6
4296 USE_INCLUDED_LIBINTL
=yes
4300 INTLDEPS
='$(top_builddir)/intl/libintl.a'
4302 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
4303 nls_cv_header_intl
=intl
/libintl.h
4304 nls_cv_header_libgt
=intl
/libgettext.h
4307 if test "$XGETTEXT" != ":"; then
4308 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
4311 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
4316 # We need to process the po/ directory.
4320 nls_cv_header_intl
=intl
/libintl.h
4321 nls_cv_header_libgt
=intl
/libgettext.h
4323 if test -z "$nls_cv_header_intl"; then
4324 # Clean out junk possibly left behind by a previous configuration.
4325 rm -f intl
/libintl.h
4331 # If this is used in GNU gettext we have to set USE_NLS to `yes'
4332 # because some of the sources are only built for this goal.
4333 if test "$PACKAGE" = gettext; then
4335 USE_INCLUDED_LIBINTL
=yes
4338 for lang
in $ALL_LINGUAS; do
4339 GMOFILES
="$GMOFILES $lang.gmo"
4340 POFILES
="$POFILES $lang.po"
4356 if test "x$CATOBJEXT" != "x"; then
4357 if test "x$ALL_LINGUAS" = "x"; then
4360 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
4361 echo "configure:4362: checking for catalogs to be installed" >&5
4363 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
4364 case "$ALL_LINGUAS" in
4365 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
4368 LINGUAS
=$NEW_LINGUAS
4369 echo "$ac_t""$LINGUAS" 1>&6
4372 if test -n "$LINGUAS"; then
4373 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
4377 if test $ac_cv_header_locale_h = yes; then
4378 INCLUDE_LOCALE_H
="#include <locale.h>"
4381 /* The system does not provide the header <locale.h>. Take care yourself. */"
4385 test -d intl
|| mkdir intl
4386 if test "$CATOBJEXT" = ".cat"; then
4387 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
4388 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
4389 echo "configure:4390: checking for linux/version.h" >&5
4390 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4391 echo $ac_n "(cached) $ac_c" 1>&6
4393 cat > conftest.
$ac_ext <<EOF
4394 #line 4395 "configure"
4395 #include "confdefs.h"
4396 #include <linux/version.h>
4398 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4399 { (eval echo configure
:4400: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4400 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4401 if test -z "$ac_err"; then
4403 eval "ac_cv_header_$ac_safe=yes"
4406 echo "configure: failed program was:" >&5
4407 cat conftest.
$ac_ext >&5
4409 eval "ac_cv_header_$ac_safe=no"
4413 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4414 echo "$ac_t""yes" 1>&6
4417 echo "$ac_t""no" 1>&6
4422 sed -e '/^#/d' $srcdir/intl
/$msgformat-msg.
sed > intl
/po2msg.
sed
4424 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
4425 $srcdir/intl
/po2tbl.
sed.
in > intl
/po2tbl.
sed
4427 if test "$PACKAGE" = "gettext"; then
4438 if test -n "$ac_aux_dir"; then
4439 MKINSTALLDIRS
="\$(top_srcdir)/$ac_aux_dir/mkinstalldirs"
4441 if test -z "$MKINSTALLDIRS"; then
4442 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
4449 test -d po
|| mkdir po
4452 posrcprefix
="../" ;;
4454 posrcprefix
="$srcdir/" ;;
4456 posrcprefix
="../$srcdir/" ;;
4459 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
4460 < $srcdir/po
/POTFILES.
in > po
/POTFILES
4463 for ac_func
in strerror strerror_r vprintf doprnt
4465 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4466 echo "configure:4467: checking for $ac_func" >&5
4467 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4468 echo $ac_n "(cached) $ac_c" 1>&6
4470 cat > conftest.
$ac_ext <<EOF
4471 #line 4472 "configure"
4472 #include "confdefs.h"
4473 /* System header to define __stub macros and hopefully few prototypes,
4474 which can conflict with char $ac_func(); below. */
4476 /* Override any gcc2 internal prototype to avoid an error. */
4477 /* We use char because int might match the return type of a gcc2
4478 builtin and then its argument prototype would still apply. */
4483 /* The GNU C library defines this for functions which it implements
4484 to always fail with ENOSYS. Some functions are actually named
4485 something starting with __ and the normal name is an alias. */
4486 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4494 if { (eval echo configure
:4495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4496 eval "ac_cv_func_$ac_func=yes"
4498 echo "configure: failed program was:" >&5
4499 cat conftest.
$ac_ext >&5
4501 eval "ac_cv_func_$ac_func=no"
4506 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4507 echo "$ac_t""yes" 1>&6
4508 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4509 cat >> confdefs.h
<<EOF
4510 #define $ac_tr_func 1
4514 echo "$ac_t""no" 1>&6
4518 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4519 echo "configure:4520: checking for ANSI C header files" >&5
4520 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
4521 echo $ac_n "(cached) $ac_c" 1>&6
4523 cat > conftest.
$ac_ext <<EOF
4524 #line 4525 "configure"
4525 #include "confdefs.h"
4531 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4532 { (eval echo configure
:4533: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4533 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4534 if test -z "$ac_err"; then
4536 ac_cv_header_stdc
=yes
4539 echo "configure: failed program was:" >&5
4540 cat conftest.
$ac_ext >&5
4542 ac_cv_header_stdc
=no
4546 if test $ac_cv_header_stdc = yes; then
4547 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4548 cat > conftest.
$ac_ext <<EOF
4549 #line 4550 "configure"
4550 #include "confdefs.h"
4553 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4554 egrep "memchr" >/dev
/null
2>&1; then
4558 ac_cv_header_stdc
=no
4564 if test $ac_cv_header_stdc = yes; then
4565 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4566 cat > conftest.
$ac_ext <<EOF
4567 #line 4568 "configure"
4568 #include "confdefs.h"
4571 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4572 egrep "free" >/dev
/null
2>&1; then
4576 ac_cv_header_stdc
=no
4582 if test $ac_cv_header_stdc = yes; then
4583 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4584 if test "$cross_compiling" = yes; then
4587 cat > conftest.
$ac_ext <<EOF
4588 #line 4589 "configure"
4589 #include "confdefs.h"
4591 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4592 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4593 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4594 int main () { int i; for (i = 0; i < 256; i++)
4595 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4599 if { (eval echo configure
:4600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4603 echo "configure: failed program was:" >&5
4604 cat conftest.
$ac_ext >&5
4606 ac_cv_header_stdc
=no
4614 echo "$ac_t""$ac_cv_header_stdc" 1>&6
4615 if test $ac_cv_header_stdc = yes; then
4616 cat >> confdefs.h
<<\EOF
4617 #define STDC_HEADERS 1
4624 # This is necessary so that .o files in LIBOBJS are also built via
4625 # the ANSI2KNR-filtering rules.
4626 LIBOBJS
=`echo $LIBOBJS|sed 's/\.o /\$U.o /g;s/\.o$/\$U.o/'`
4630 cat > confcache
<<\EOF
4631 # This file is a shell script that caches the results of configure
4632 # tests run on this system so they can be shared between configure
4633 # scripts and configure runs. It is not useful on other systems.
4634 # If it contains results you don't want to keep, you may remove or edit it.
4636 # By default, configure uses ./config.cache as the cache file,
4637 # creating it if it does not exist already. You can give configure
4638 # the --cache-file=FILE option to use a different cache file; that is
4639 # what configure does when it calls configure scripts in
4640 # subdirectories, so they share the cache.
4641 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4642 # config.status only pays attention to the cache file if you give it the
4643 # --recheck option to rerun configure.
4646 # The following way of writing the cache mishandles newlines in values,
4647 # but we know of no workaround that is simple, portable, and efficient.
4648 # So, don't put newlines in cache variables' values.
4649 # Ultrix sh set writes to stderr and can't be redirected directly,
4650 # and sets the high bit in the cache file unless we assign to the vars.
4652 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4654 # `set' does not quote correctly, so add quotes (double-quote substitution
4655 # turns \\\\ into \\, and sed turns \\ into \).
4657 -e "s/'/'\\\\''/g" \
4658 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4661 # `set' quotes correctly as required by POSIX, so do not add quotes.
4662 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4665 if cmp -s $cache_file confcache
; then
4668 if test -w $cache_file; then
4669 echo "updating cache $cache_file"
4670 cat confcache
> $cache_file
4672 echo "not updating unwritable cache $cache_file"
4677 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4679 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
4680 # Let make expand exec_prefix.
4681 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4683 # Any assignment to VPATH causes Sun make to only execute
4684 # the first set of double-colon rules, so remove it if not needed.
4685 # If there is a colon in the path, we need to keep it.
4686 if test "x$srcdir" = x.
; then
4687 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
4690 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4692 DEFS
=-DHAVE_CONFIG_H
4694 # Without the "./", some shells look in PATH for config.status.
4695 : ${CONFIG_STATUS=./config.status}
4697 echo creating
$CONFIG_STATUS
4698 rm -f $CONFIG_STATUS
4699 cat > $CONFIG_STATUS <<EOF
4701 # Generated automatically by configure.
4702 # Run this file to recreate the current configuration.
4703 # This directory was configured as follows,
4704 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4706 # $0 $ac_configure_args
4708 # Compiler output produced by configure, useful for debugging
4709 # configure, is in ./config.log if it exists.
4711 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4714 case "\$ac_option" in
4715 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4716 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4717 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4718 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4719 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4721 -help | --help | --hel | --he | --h)
4722 echo "\$ac_cs_usage"; exit 0 ;;
4723 *) echo "\$ac_cs_usage"; exit 1 ;;
4727 ac_given_srcdir=$srcdir
4728 ac_given_INSTALL="$INSTALL"
4730 trap 'rm -fr `echo "Makefile
4731 intl/Makefile po/Makefile.in
4732 lib/Makefile src/Makefile doc/Makefile
4734 tests/Makefile tests/atconfig config.h:config.hin" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4736 cat >> $CONFIG_STATUS <<EOF
4738 # Protect against being on the right side of a sed subst in config.status.
4739 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4740 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4744 s%@CFLAGS@%$CFLAGS%g
4745 s%@CPPFLAGS@%$CPPFLAGS%g
4746 s%@CXXFLAGS@%$CXXFLAGS%g
4747 s%@FFLAGS@%$FFLAGS%g
4749 s%@LDFLAGS@%$LDFLAGS%g
4751 s%@exec_prefix@%$exec_prefix%g
4752 s%@prefix@%$prefix%g
4753 s%@program_transform_name@%$program_transform_name%g
4754 s%@bindir@%$bindir%g
4755 s%@sbindir@%$sbindir%g
4756 s%@libexecdir@%$libexecdir%g
4757 s%@datadir@%$datadir%g
4758 s%@sysconfdir@%$sysconfdir%g
4759 s%@sharedstatedir@%$sharedstatedir%g
4760 s%@localstatedir@%$localstatedir%g
4761 s%@libdir@%$libdir%g
4762 s%@includedir@%$includedir%g
4763 s%@oldincludedir@%$oldincludedir%g
4764 s%@infodir@%$infodir%g
4765 s%@mandir@%$mandir%g
4766 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4767 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4768 s%@INSTALL_DATA@%$INSTALL_DATA%g
4769 s%@PACKAGE@%$PACKAGE%g
4770 s%@VERSION@%$VERSION%g
4771 s%@ACLOCAL@%$ACLOCAL%g
4772 s%@AUTOCONF@%$AUTOCONF%g
4773 s%@AUTOMAKE@%$AUTOMAKE%g
4774 s%@AUTOHEADER@%$AUTOHEADER%g
4775 s%@MAKEINFO@%$MAKEINFO%g
4776 s%@SET_MAKE@%$SET_MAKE%g
4777 s%@AT_TESTPATH@%$AT_TESTPATH%g
4778 s%@ECHO_C@%$ECHO_C%g
4779 s%@ECHO_N@%$ECHO_N%g
4780 s%@ECHO_T@%$ECHO_T%g
4783 s%@RANLIB@%$RANLIB%g
4785 s%@WARNING_CFLAGS@%$WARNING_CFLAGS%g
4787 s%@ANSI2KNR@%$ANSI2KNR%g
4788 s%@ALLOCA@%$ALLOCA%g
4789 s%@LIBOBJS@%$LIBOBJS%g
4790 s%@USE_NLS@%$USE_NLS%g
4791 s%@MSGFMT@%$MSGFMT%g
4792 s%@GMSGFMT@%$GMSGFMT%g
4793 s%@XGETTEXT@%$XGETTEXT%g
4794 s%@GENCAT@%$GENCAT%g
4795 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
4796 s%@CATALOGS@%$CATALOGS%g
4797 s%@CATOBJEXT@%$CATOBJEXT%g
4798 s%@DATADIRNAME@%$DATADIRNAME%g
4799 s%@GMOFILES@%$GMOFILES%g
4800 s%@INSTOBJEXT@%$INSTOBJEXT%g
4801 s%@INTLDEPS@%$INTLDEPS%g
4802 s%@INTLLIBS@%$INTLLIBS%g
4803 s%@INTLOBJS@%$INTLOBJS%g
4804 s%@POFILES@%$POFILES%g
4806 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
4808 s%@GT_YES@%$GT_YES%g
4809 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
4815 cat >> $CONFIG_STATUS <<\EOF
4817 # Split the substitutions into bite-sized pieces for seds with
4818 # small command number limits, like on Digital OSF/1 and HP-UX.
4819 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
4820 ac_file
=1 # Number of current file.
4821 ac_beg
=1 # First line for current file.
4822 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
4825 while $ac_more_lines; do
4826 if test $ac_beg -gt 1; then
4827 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
4829 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
4831 if test ! -s conftest.s
$ac_file; then
4833 rm -f conftest.s
$ac_file
4835 if test -z "$ac_sed_cmds"; then
4836 ac_sed_cmds
="sed -f conftest.s$ac_file"
4838 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
4840 ac_file
=`expr $ac_file + 1`
4842 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
4845 if test -z "$ac_sed_cmds"; then
4850 cat >> $CONFIG_STATUS <<EOF
4852 CONFIG_FILES=\${CONFIG_FILES-"Makefile
4853 intl/Makefile po/Makefile.in
4854 lib/Makefile src/Makefile doc/Makefile
4856 tests/Makefile tests/atconfig"}
4858 cat >> $CONFIG_STATUS <<\EOF
4859 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
4860 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4862 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4863 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4864 *) ac_file_in
="${ac_file}.in" ;;
4867 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4869 # Remove last slash and all that follows it. Not all systems have dirname.
4870 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4871 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
4872 # The file is in a subdirectory.
4873 test ! -d "$ac_dir" && mkdir "$ac_dir"
4874 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
4875 # A "../" for each directory in $ac_dir_suffix.
4876 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4878 ac_dir_suffix
= ac_dots
=
4881 case "$ac_given_srcdir" in
4883 if test -z "$ac_dots"; then top_srcdir
=.
4884 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4885 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
4887 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4888 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
4891 case "$ac_given_INSTALL" in
4892 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
4893 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
4896 echo creating
"$ac_file"
4898 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4900 *Makefile
*) ac_comsub
="1i\\
4901 # $configure_input" ;;
4905 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4907 s%@configure_input@%$configure_input%g
4908 s%@srcdir@%$srcdir%g
4909 s%@top_srcdir@%$top_srcdir%g
4910 s%@INSTALL@%$INSTALL%g
4911 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4915 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4916 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4918 # ac_d sets the value in "#define NAME VALUE" lines.
4919 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4920 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
4923 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4924 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4925 ac_uB
='\([ ]\)%\1#\2define\3'
4928 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4929 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4930 ac_eB
='$%\1#\2define\3'
4934 if test "${CONFIG_HEADERS+set}" != set; then
4936 cat >> $CONFIG_STATUS <<EOF
4937 CONFIG_HEADERS="config.h:config.hin"
4939 cat >> $CONFIG_STATUS <<\EOF
4941 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
4942 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4944 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4945 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4946 *) ac_file_in
="${ac_file}.in" ;;
4949 echo creating
$ac_file
4951 rm -f conftest.frag conftest.
in conftest.out
4952 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4953 cat $ac_file_inputs > conftest.
in
4957 # Transform confdefs.h into a sed script conftest.vals that substitutes
4958 # the proper values into config.h.in to produce config.h. And first:
4959 # Protect against being on the right side of a sed subst in config.status.
4960 # Protect against being in an unquoted here document in config.status.
4962 cat > conftest.hdr
<<\EOF
4965 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4969 sed -n -f conftest.hdr confdefs.h > conftest.vals
4972 # This sed command replaces #undef with comments. This is necessary, for
4973 # example, in the case of _POSIX_SOURCE, which is predefined and required
4974 # on some systems where configure will not decide to define it.
4975 cat >> conftest.vals <<\EOF
4976 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4979 # Break up conftest.vals because some shells have a limit on
4980 # the size of here documents, and old seds have small limits too.
4985 ac_lines=`grep -c . conftest.vals
`
4986 # grep -c gives empty output for an empty file on some AIX systems.
4987 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4988 # Write a limited-size here document to conftest.frag.
4989 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4990 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4992 sed -f conftest.frag conftest.in > conftest.out
4994 mv conftest.out conftest.in
4996 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4998 mv conftest.tail conftest.vals
5002 cat >> $CONFIG_STATUS <<\EOF
5003 rm -f conftest.frag conftest.h
5004 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5005 cat conftest.in >> conftest.h
5007 if cmp -s $ac_file conftest.h 2>/dev/null; then
5008 echo "$ac_file is unchanged"
5011 # Remove last slash and all that follows it. Not all systems have dirname.
5012 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5013 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5014 # The file is in a subdirectory.
5015 test ! -d "$ac_dir" && mkdir "$ac_dir"
5018 mv conftest.h $ac_file
5024 cat >> $CONFIG_STATUS <<EOF
5025 ac_sources="$nls_cv_header_libgt"
5026 ac_dests="$nls_cv_header_intl"
5029 cat >> $CONFIG_STATUS <<\EOF
5030 srcdir=$ac_given_srcdir
5031 while test -n "$ac_sources"; do
5032 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
5033 set $ac_sources; ac_source=$1; shift; ac_sources=$*
5035 echo "linking $srcdir/$ac_source to $ac_dest"
5037 if test ! -r $srcdir/$ac_source; then
5038 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
5042 # Make relative symlinks.
5043 # Remove last slash and all that follows it. Not all systems have dirname.
5044 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
5045 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
5046 # The dest file is in a subdirectory.
5047 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
5048 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
5049 # A "../" for each directory in $ac_dest_dir_suffix.
5050 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
5052 ac_dest_dir_suffix= ac_dots=
5056 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
5057 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
5060 # Make a symlink if possible; otherwise try a hard link.
5061 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
5062 ln $srcdir/$ac_source $ac_dest; then :
5064 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
5068 cat >> $CONFIG_STATUS <<EOF
5073 cat >> $CONFIG_STATUS <<\EOF
5074 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
5075 case "$CONFIG_FILES" in *po/Makefile.in*)
5076 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
5081 chmod +x $CONFIG_STATUS
5082 rm -fr confdefs* $ac_clean_files
5083 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1