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-shared[=PKGS] build shared libraries [default=yes]"
17 --enable-static[=PKGS] build static libraries [default=yes]"
19 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
21 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
23 --disable-libtool-lock avoid locking (might break parallel builds)"
25 --with-pic try to use only PIC/non-PIC objects [default=use both]"
27 --disable-nls do not use Native Language Support"
29 --with-included-gettext use the GNU gettext library included here"
31 --enable-maintainer-mode enable make rules and dependencies not useful
32 (and sometimes confusing) to the casual installer"
34 --enable-build-warnings Enable build-time compiler warnings if gcc is used"
36 # Initialize some variables set by options.
37 # The variables have the same names as the options, with
38 # dashes changed to underlines.
40 cache_file=./config.cache
49 program_transform_name=s,x,x,
57 bindir='${exec_prefix}/bin'
58 sbindir='${exec_prefix}/sbin'
59 libexecdir='${exec_prefix}/libexec'
60 datadir='${prefix}/share'
61 sysconfdir='${prefix}/etc'
62 sharedstatedir='${prefix}/com'
63 localstatedir='${prefix}/var'
64 libdir='${exec_prefix}/lib'
65 includedir='${prefix}/include'
66 oldincludedir='/usr/include'
67 infodir='${prefix}/info'
68 mandir='${prefix}/man'
70 # Initialize some other variables.
73 SHELL=${CONFIG_SHELL-/bin/sh}
74 # Maximum number of lines to put in a shell here document.
81 # If the previous option needs an argument, assign it.
82 if test -n "$ac_prev"; then
83 eval "$ac_prev=\$ac_option"
89 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
93 # Accept the important Cygnus configure options, so we can diagnose typos.
97 -bindir | --bindir | --bindi | --bind | --bin | --bi)
99 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
100 bindir="$ac_optarg" ;;
102 -build | --build | --buil | --bui | --bu)
104 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
105 build="$ac_optarg" ;;
107 -cache-file | --cache-file | --cache-fil | --cache-fi \
108 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
109 ac_prev=cache_file ;;
110 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
111 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
112 cache_file="$ac_optarg" ;;
114 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
116 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
118 datadir="$ac_optarg" ;;
120 -disable-* | --disable-*)
121 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
122 # Reject names that are not valid shell variable names.
123 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
124 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
126 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
127 eval "enable_${ac_feature}=no" ;;
129 -enable-* | --enable-*)
130 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
131 # Reject names that are not valid shell variable names.
132 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
133 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
135 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
140 eval "enable_${ac_feature}='$ac_optarg'" ;;
142 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
143 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
144 | --exec | --exe | --ex)
145 ac_prev=exec_prefix ;;
146 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
147 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
148 | --exec=* | --exe=* | --ex=*)
149 exec_prefix="$ac_optarg" ;;
151 -gas | --gas | --ga | --g)
152 # Obsolete; use --with-gas.
155 -help | --help | --hel | --he)
156 # Omit some internal or obsolete options to make the list less imposing.
157 # This message is too long to be a string in the A/UX 3.1 sh.
159 Usage: configure [options] [host]
160 Options: [defaults in brackets after descriptions]
162 --cache-file=FILE cache test results in FILE
163 --help print this message
164 --no-create do not create output files
165 --quiet, --silent do not print \`checking...' messages
166 --version print the version of autoconf that created configure
167 Directory and file names:
168 --prefix=PREFIX install architecture-independent files in PREFIX
170 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
172 --bindir=DIR user executables in DIR [EPREFIX/bin]
173 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
174 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
175 --datadir=DIR read-only architecture-independent data in DIR
177 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
178 --sharedstatedir=DIR modifiable architecture-independent data in DIR
180 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
181 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
182 --includedir=DIR C header files in DIR [PREFIX/include]
183 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
184 --infodir=DIR info documentation in DIR [PREFIX/info]
185 --mandir=DIR man documentation in DIR [PREFIX/man]
186 --srcdir=DIR find the sources in DIR [configure dir or ..]
187 --program-prefix=PREFIX prepend PREFIX to installed program names
188 --program-suffix=SUFFIX append SUFFIX to installed program names
189 --program-transform-name=PROGRAM
190 run sed PROGRAM on installed program names
194 --build=BUILD configure for building on BUILD [BUILD=HOST]
195 --host=HOST configure for HOST [guessed]
196 --target=TARGET configure for TARGET [TARGET=HOST]
197 Features and packages:
198 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
199 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
200 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
201 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
202 --x-includes=DIR X include files are in DIR
203 --x-libraries=DIR X library files are in DIR
205 if test -n "$ac_help"; then
206 echo "--enable and --with options recognized:$ac_help"
210 -host | --host | --hos | --ho)
212 -host=* | --host=* | --hos=* | --ho=*)
215 -includedir | --includedir | --includedi | --included | --include \
216 | --includ | --inclu | --incl | --inc)
217 ac_prev=includedir ;;
218 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
219 | --includ=* | --inclu=* | --incl=* | --inc=*)
220 includedir="$ac_optarg" ;;
222 -infodir | --infodir | --infodi | --infod | --info | --inf)
224 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
225 infodir="$ac_optarg" ;;
227 -libdir | --libdir | --libdi | --libd)
229 -libdir=* | --libdir=* | --libdi=* | --libd=*)
230 libdir="$ac_optarg" ;;
232 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
233 | --libexe | --libex | --libe)
234 ac_prev=libexecdir ;;
235 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
236 | --libexe=* | --libex=* | --libe=*)
237 libexecdir="$ac_optarg" ;;
239 -localstatedir | --localstatedir | --localstatedi | --localstated \
240 | --localstate | --localstat | --localsta | --localst \
241 | --locals | --local | --loca | --loc | --lo)
242 ac_prev=localstatedir ;;
243 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
244 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
245 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
246 localstatedir="$ac_optarg" ;;
248 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
250 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
251 mandir="$ac_optarg" ;;
254 # Obsolete; use --without-fp.
257 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
261 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
262 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
265 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
266 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
267 | --oldin | --oldi | --old | --ol | --o)
268 ac_prev=oldincludedir ;;
269 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
270 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
271 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
272 oldincludedir="$ac_optarg" ;;
274 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
276 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
277 prefix="$ac_optarg" ;;
279 -program-prefix | --program-prefix | --program-prefi | --program-pref \
280 | --program-pre | --program-pr | --program-p)
281 ac_prev=program_prefix ;;
282 -program-prefix=* | --program-prefix=* | --program-prefi=* \
283 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
284 program_prefix="$ac_optarg" ;;
286 -program-suffix | --program-suffix | --program-suffi | --program-suff \
287 | --program-suf | --program-su | --program-s)
288 ac_prev=program_suffix ;;
289 -program-suffix=* | --program-suffix=* | --program-suffi=* \
290 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
291 program_suffix="$ac_optarg" ;;
293 -program-transform-name | --program-transform-name \
294 | --program-transform-nam | --program-transform-na \
295 | --program-transform-n | --program-transform- \
296 | --program-transform | --program-transfor \
297 | --program-transfo | --program-transf \
298 | --program-trans | --program-tran \
299 | --progr-tra | --program-tr | --program-t)
300 ac_prev=program_transform_name ;;
301 -program-transform-name=* | --program-transform-name=* \
302 | --program-transform-nam=* | --program-transform-na=* \
303 | --program-transform-n=* | --program-transform-=* \
304 | --program-transform=* | --program-transfor=* \
305 | --program-transfo=* | --program-transf=* \
306 | --program-trans=* | --program-tran=* \
307 | --progr-tra=* | --program-tr=* | --program-t=*)
308 program_transform_name="$ac_optarg" ;;
310 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
311 | -silent | --silent | --silen | --sile | --sil)
314 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
316 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
318 sbindir="$ac_optarg" ;;
320 -sharedstatedir | --sharedstatedir | --sharedstatedi \
321 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
322 | --sharedst | --shareds | --shared | --share | --shar \
324 ac_prev=sharedstatedir ;;
325 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
326 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
327 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
329 sharedstatedir="$ac_optarg" ;;
331 -site | --site | --sit)
333 -site=* | --site=* | --sit=*)
336 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
338 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
339 srcdir="$ac_optarg" ;;
341 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
342 | --syscon | --sysco | --sysc | --sys | --sy)
343 ac_prev=sysconfdir ;;
344 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
345 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
346 sysconfdir="$ac_optarg" ;;
348 -target | --target | --targe | --targ | --tar | --ta | --t)
350 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
351 target="$ac_optarg" ;;
353 -v | -verbose | --verbose | --verbos | --verbo | --verb)
356 -version | --version | --versio | --versi | --vers)
357 echo "configure generated by autoconf version 2.13"
361 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
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'`
371 eval "with_${ac_package}='$ac_optarg'" ;;
373 -without-* | --without-*)
374 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
375 # Reject names that are not valid shell variable names.
376 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
377 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
379 ac_package=`echo $ac_package| sed 's/-/_/g'`
380 eval "with_${ac_package}=no" ;;
383 # Obsolete; use --with-x.
386 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
387 | --x-incl | --x-inc | --x-in | --x-i)
388 ac_prev=x_includes ;;
389 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
390 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
391 x_includes="$ac_optarg" ;;
393 -x-libraries | --x-libraries | --x-librarie | --x-librari \
394 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
395 ac_prev=x_libraries ;;
396 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
397 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
398 x_libraries="$ac_optarg" ;;
400 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
404 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
405 echo "configure: warning: $ac_option: invalid host type" 1>&2
407 if test "x$nonopt" != xNONE; then
408 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
416 if test -n "$ac_prev"; then
417 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
420 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
422 # File descriptor usage:
425 # 2 errors and warnings
426 # 3 some systems may open it to /dev/tty
427 # 4 used on the Kubota Titan
428 # 6 checking for... messages and results
429 # 5 compiler messages saved in config.log
430 if test "$silent" = yes; then
438 This file contains any messages produced by compilers while
439 running configure, to aid debugging if configure makes a mistake.
442 # Strip out --no-create and --no-recursion so they do not pile up.
443 # Also quote any args containing shell metacharacters.
448 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
449 | --no-cr | --no-c) ;;
450 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
451 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
452 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
453 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
454 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
459 # Only set these to C if already set. These must not be set unconditionally
460 # because not all systems understand e.g. LANG=C (notably SCO).
461 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
462 # Non-C LC_CTYPE values break the ctype check.
463 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
464 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
465 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
466 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
468 # confdefs.h avoids OS command line length limits that DEFS can exceed.
469 rm -rf conftest* confdefs.h
470 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
473 # A filename unique to this package, relative to the directory that
474 # configure is in, which we can look for to find out if srcdir is correct.
475 ac_unique_file=gprof.c
477 # Find the source files, if location was not specified.
478 if test -z "$srcdir"; then
479 ac_srcdir_defaulted=yes
480 # Try the directory containing this script, then its parent.
482 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
483 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
485 if test ! -r $srcdir/$ac_unique_file; then
489 ac_srcdir_defaulted=no
491 if test ! -r $srcdir/$ac_unique_file; then
492 if test "$ac_srcdir_defaulted" = yes; then
493 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
495 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
498 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
500 # Prefer explicitly selected file to automatically selected ones.
501 if test -z "$CONFIG_SITE"; then
502 if test "x$prefix" != xNONE; then
503 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
505 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
508 for ac_site_file in $CONFIG_SITE; do
509 if test -r "$ac_site_file"; then
510 echo "loading site script $ac_site_file"
515 if test -r "$cache_file"; then
516 echo "loading cache $cache_file"
519 echo "creating cache $cache_file"
524 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
525 ac_cpp='$CPP $CPPFLAGS'
526 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
527 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
528 cross_compiling=$ac_cv_prog_cc_cross
532 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
533 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
534 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
541 ac_n= ac_c='\c' ac_t=
544 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
545 echo "configure:546: checking for Cygwin environment" >&5
546 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
547 echo $ac_n "(cached) $ac_c" 1>&6
549 cat > conftest.$ac_ext <<EOF
550 #line 551 "configure"
551 #include "confdefs.h"
556 #define __CYGWIN__ __CYGWIN32__
561 if { (eval echo configure:562: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
565 echo "configure: failed program was:" >&5
566 cat conftest.$ac_ext >&5
574 echo "$ac_t""$ac_cv_cygwin" 1>&6
576 test "$ac_cv_cygwin" = yes && CYGWIN=yes
577 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
578 echo "configure:579: checking for mingw32 environment" >&5
579 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
580 echo $ac_n "(cached) $ac_c" 1>&6
582 cat > conftest.$ac_ext <<EOF
583 #line 584 "configure"
584 #include "confdefs.h"
590 if { (eval echo configure:591: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
594 echo "configure: failed program was:" >&5
595 cat conftest.$ac_ext >&5
603 echo "$ac_t""$ac_cv_mingw32" 1>&6
605 test "$ac_cv_mingw32" = yes && MINGW32=yes
609 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
610 if test -f $ac_dir/install-sh; then
612 ac_install_sh="$ac_aux_dir/install-sh -c"
614 elif test -f $ac_dir/install.sh; then
616 ac_install_sh="$ac_aux_dir/install.sh -c"
620 if test -z "$ac_aux_dir"; then
621 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
623 ac_config_guess=$ac_aux_dir/config.guess
624 ac_config_sub=$ac_aux_dir/config.sub
625 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
628 # Do some error checking and defaulting for the host and target type.
630 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
633 # 1. You are not allowed to specify --host, --target, and nonopt at the
635 # 2. Host defaults to nonopt.
636 # 3. If nonopt is not specified, then host defaults to the current host,
637 # as determined by config.guess.
638 # 4. Target and build default to nonopt.
639 # 5. If nonopt is not specified, then target and build default to host.
641 # The aliases save the names the user supplied, while $host etc.
642 # will get canonicalized.
643 case $host---$target---$nonopt in
644 NONE---*---* | *---NONE---* | *---*---NONE) ;;
645 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
649 # Make sure we can run config.sub.
650 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
651 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
654 echo $ac_n "checking host system type""... $ac_c" 1>&6
655 echo "configure:656: checking host system type" >&5
658 case "$host_alias" in
662 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
663 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
665 *) host_alias=$nonopt ;;
669 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
670 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
671 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
672 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
673 echo "$ac_t""$host" 1>&6
675 echo $ac_n "checking target system type""... $ac_c" 1>&6
676 echo "configure:677: checking target system type" >&5
679 case "$target_alias" in
682 NONE) target_alias=$host_alias ;;
683 *) target_alias=$nonopt ;;
687 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
688 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
689 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
690 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
691 echo "$ac_t""$target" 1>&6
693 echo $ac_n "checking build system type""... $ac_c" 1>&6
694 echo "configure:695: checking build system type" >&5
697 case "$build_alias" in
700 NONE) build_alias=$host_alias ;;
701 *) build_alias=$nonopt ;;
705 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
706 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
707 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
708 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
709 echo "$ac_t""$build" 1>&6
711 test "$host_alias" != "$target_alias" &&
712 test "$program_prefix$program_suffix$program_transform_name" = \
714 program_prefix=${target_alias}-
717 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
718 echo "configure:719: checking for strerror in -lcposix" >&5
719 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
720 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
721 echo $ac_n "(cached) $ac_c" 1>&6
724 LIBS="-lcposix $LIBS"
725 cat > conftest.$ac_ext <<EOF
726 #line 727 "configure"
727 #include "confdefs.h"
728 /* Override any gcc2 internal prototype to avoid an error. */
729 /* We use char because int might match the return type of a gcc2
730 builtin and then its argument prototype would still apply. */
737 if { (eval echo configure:738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
739 eval "ac_cv_lib_$ac_lib_var=yes"
741 echo "configure: failed program was:" >&5
742 cat conftest.$ac_ext >&5
744 eval "ac_cv_lib_$ac_lib_var=no"
750 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
751 echo "$ac_t""yes" 1>&6
752 LIBS="$LIBS -lcposix"
754 echo "$ac_t""no" 1>&6
760 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
761 # Find a good install program. We prefer a C program (faster),
762 # so one script is as good as another. But avoid the broken or
763 # incompatible versions:
764 # SysV /etc/install, /usr/sbin/install
765 # SunOS /usr/etc/install
768 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
769 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
770 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
771 # ./install, which can be erroneously created by make from ./install.sh.
772 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
773 echo "configure:774: checking for a BSD compatible install" >&5
774 if test -z "$INSTALL"; then
775 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
776 echo $ac_n "(cached) $ac_c" 1>&6
778 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
779 for ac_dir in $PATH; do
780 # Account for people who put trailing slashes in PATH elements.
782 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
784 # OSF1 and SCO ODT 3.0 have their own names for install.
785 # Don't use installbsd from OSF since it installs stuff as root
787 for ac_prog in ginstall scoinst install; do
788 if test -f $ac_dir/$ac_prog; then
789 if test $ac_prog = install &&
790 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
791 # AIX install. It has an incompatible calling convention.
794 ac_cv_path_install="$ac_dir/$ac_prog -c"
805 if test "${ac_cv_path_install+set}" = set; then
806 INSTALL="$ac_cv_path_install"
808 # As a last resort, use the slow shell script. We don't cache a
809 # path for INSTALL within a source directory, because that will
810 # break other packages using the cache if that directory is
811 # removed, or if the path is relative.
812 INSTALL="$ac_install_sh"
815 echo "$ac_t""$INSTALL" 1>&6
817 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
818 # It thinks the first close brace ends the variable substitution.
819 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
821 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
823 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
825 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
826 echo "configure:827: checking whether build environment is sane" >&5
829 echo timestamp > conftestfile
830 # Do `set' in a subshell so we don't clobber the current shell's
831 # arguments. Must try -L first in case configure is actually a
832 # symlink; some systems play weird games with the mod time of symlinks
833 # (eg FreeBSD returns the mod time of the symlink's containing
836 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
837 if test "$*" = "X"; then
839 set X `ls -t $srcdir/configure conftestfile`
841 if test "$*" != "X $srcdir/configure conftestfile" \
842 && test "$*" != "X conftestfile $srcdir/configure"; then
844 # If neither matched, then we have a broken ls. This can happen
845 # if, for instance, CONFIG_SHELL is bash and it inherits a
846 # broken ls alias from the environment. This has actually
847 # happened. Such a system could not be considered "sane".
848 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
849 alias in your environment" 1>&2; exit 1; }
852 test "$2" = conftestfile
858 { echo "configure: error: newly created file is older than distributed files!
859 Check your system clock" 1>&2; exit 1; }
862 echo "$ac_t""yes" 1>&6
863 if test "$program_transform_name" = s,x,x,; then
864 program_transform_name=
866 # Double any \ or $. echo might interpret backslashes.
867 cat <<\EOF_SED > conftestsed
868 s,\\,\\\\,g; s,\$,$$,g
870 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
873 test "$program_prefix" != NONE &&
874 program_transform_name="s,^,${program_prefix},; $program_transform_name"
875 # Use a double $ so make ignores it.
876 test "$program_suffix" != NONE &&
877 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
879 # sed with no file args requires a program.
880 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
882 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
883 echo "configure:884: checking whether ${MAKE-make} sets \${MAKE}" >&5
884 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
885 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
886 echo $ac_n "(cached) $ac_c" 1>&6
888 cat > conftestmake <<\EOF
890 @echo 'ac_maketemp="${MAKE}"'
892 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
893 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
894 if test -n "$ac_maketemp"; then
895 eval ac_cv_prog_make_${ac_make}_set=yes
897 eval ac_cv_prog_make_${ac_make}_set=no
901 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
902 echo "$ac_t""yes" 1>&6
905 echo "$ac_t""no" 1>&6
906 SET_MAKE="MAKE=${MAKE-make}"
912 VERSION=${BFD_VERSION}
914 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
915 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
917 cat >> confdefs.h <<EOF
918 #define PACKAGE "$PACKAGE"
921 cat >> confdefs.h <<EOF
922 #define VERSION "$VERSION"
927 missing_dir=`cd $ac_aux_dir && pwd`
928 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
929 echo "configure:930: checking for working aclocal" >&5
930 # Run test in a subshell; some versions of sh will print an error if
931 # an executable is not found, even if stderr is redirected.
932 # Redirect stdin to placate older versions of autoconf. Sigh.
933 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
935 echo "$ac_t""found" 1>&6
937 ACLOCAL="$missing_dir/missing aclocal"
938 echo "$ac_t""missing" 1>&6
941 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
942 echo "configure:943: checking for working autoconf" >&5
943 # Run test in a subshell; some versions of sh will print an error if
944 # an executable is not found, even if stderr is redirected.
945 # Redirect stdin to placate older versions of autoconf. Sigh.
946 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
948 echo "$ac_t""found" 1>&6
950 AUTOCONF="$missing_dir/missing autoconf"
951 echo "$ac_t""missing" 1>&6
954 echo $ac_n "checking for working automake""... $ac_c" 1>&6
955 echo "configure:956: checking for working automake" >&5
956 # Run test in a subshell; some versions of sh will print an error if
957 # an executable is not found, even if stderr is redirected.
958 # Redirect stdin to placate older versions of autoconf. Sigh.
959 if (automake --version) < /dev/null > /dev/null 2>&1; then
961 echo "$ac_t""found" 1>&6
963 AUTOMAKE="$missing_dir/missing automake"
964 echo "$ac_t""missing" 1>&6
967 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
968 echo "configure:969: checking for working autoheader" >&5
969 # Run test in a subshell; some versions of sh will print an error if
970 # an executable is not found, even if stderr is redirected.
971 # Redirect stdin to placate older versions of autoconf. Sigh.
972 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
973 AUTOHEADER=autoheader
974 echo "$ac_t""found" 1>&6
976 AUTOHEADER="$missing_dir/missing autoheader"
977 echo "$ac_t""missing" 1>&6
980 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
981 echo "configure:982: checking for working makeinfo" >&5
982 # Run test in a subshell; some versions of sh will print an error if
983 # an executable is not found, even if stderr is redirected.
984 # Redirect stdin to placate older versions of autoconf. Sigh.
985 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
987 echo "$ac_t""found" 1>&6
989 MAKEINFO="$missing_dir/missing makeinfo"
990 echo "$ac_t""missing" 1>&6
995 # Check whether --enable-shared or --disable-shared was given.
996 if test "${enable_shared+set}" = set; then
997 enableval="$enable_shared"
1000 yes) enable_shared=yes ;;
1001 no) enable_shared=no ;;
1004 # Look at the argument we got. We use all the common list separators.
1005 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1006 for pkg in $enableval; do
1007 if test "X$pkg" = "X$p"; then
1018 # Check whether --enable-static or --disable-static was given.
1019 if test "${enable_static+set}" = set; then
1020 enableval="$enable_static"
1021 p=${PACKAGE-default}
1023 yes) enable_static=yes ;;
1024 no) enable_static=no ;;
1027 # Look at the argument we got. We use all the common list separators.
1028 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1029 for pkg in $enableval; do
1030 if test "X$pkg" = "X$p"; then
1041 # Check whether --enable-fast-install or --disable-fast-install was given.
1042 if test "${enable_fast_install+set}" = set; then
1043 enableval="$enable_fast_install"
1044 p=${PACKAGE-default}
1046 yes) enable_fast_install=yes ;;
1047 no) enable_fast_install=no ;;
1049 enable_fast_install=no
1050 # Look at the argument we got. We use all the common list separators.
1051 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1052 for pkg in $enableval; do
1053 if test "X$pkg" = "X$p"; then
1054 enable_fast_install=yes
1061 enable_fast_install=yes
1064 # Extract the first word of "gcc", so it can be a program name with args.
1065 set dummy gcc; ac_word=$2
1066 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1067 echo "configure:1068: checking for $ac_word" >&5
1068 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1069 echo $ac_n "(cached) $ac_c" 1>&6
1071 if test -n "$CC"; then
1072 ac_cv_prog_CC="$CC" # Let the user override the test.
1074 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1076 for ac_dir in $ac_dummy; do
1077 test -z "$ac_dir" && ac_dir=.
1078 if test -f $ac_dir/$ac_word; then
1087 if test -n "$CC"; then
1088 echo "$ac_t""$CC" 1>&6
1090 echo "$ac_t""no" 1>&6
1093 if test -z "$CC"; then
1094 # Extract the first word of "cc", so it can be a program name with args.
1095 set dummy cc; ac_word=$2
1096 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1097 echo "configure:1098: checking for $ac_word" >&5
1098 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1099 echo $ac_n "(cached) $ac_c" 1>&6
1101 if test -n "$CC"; then
1102 ac_cv_prog_CC="$CC" # Let the user override the test.
1104 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1107 for ac_dir in $ac_dummy; do
1108 test -z "$ac_dir" && ac_dir=.
1109 if test -f $ac_dir/$ac_word; then
1110 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1111 ac_prog_rejected=yes
1119 if test $ac_prog_rejected = yes; then
1120 # We found a bogon in the path, so make sure we never use it.
1121 set dummy $ac_cv_prog_CC
1123 if test $# -gt 0; then
1124 # We chose a different compiler from the bogus one.
1125 # However, it has the same basename, so the bogon will be chosen
1126 # first if we set CC to just the basename; use the full file name.
1128 set dummy "$ac_dir/$ac_word" "$@"
1136 if test -n "$CC"; then
1137 echo "$ac_t""$CC" 1>&6
1139 echo "$ac_t""no" 1>&6
1142 if test -z "$CC"; then
1143 case "`uname -s`" in
1145 # Extract the first word of "cl", so it can be a program name with args.
1146 set dummy cl; ac_word=$2
1147 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1148 echo "configure:1149: checking for $ac_word" >&5
1149 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1150 echo $ac_n "(cached) $ac_c" 1>&6
1152 if test -n "$CC"; then
1153 ac_cv_prog_CC="$CC" # Let the user override the test.
1155 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1157 for ac_dir in $ac_dummy; do
1158 test -z "$ac_dir" && ac_dir=.
1159 if test -f $ac_dir/$ac_word; then
1168 if test -n "$CC"; then
1169 echo "$ac_t""$CC" 1>&6
1171 echo "$ac_t""no" 1>&6
1176 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1179 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1180 echo "configure:1181: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1183 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1184 ac_cpp='$CPP $CPPFLAGS'
1185 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1186 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1187 cross_compiling=$ac_cv_prog_cc_cross
1189 cat > conftest.$ac_ext << EOF
1191 #line 1192 "configure"
1192 #include "confdefs.h"
1196 if { (eval echo configure:1197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1197 ac_cv_prog_cc_works=yes
1198 # If we can't run a trivial program, we are probably using a cross compiler.
1199 if (./conftest; exit) 2>/dev/null; then
1200 ac_cv_prog_cc_cross=no
1202 ac_cv_prog_cc_cross=yes
1205 echo "configure: failed program was:" >&5
1206 cat conftest.$ac_ext >&5
1207 ac_cv_prog_cc_works=no
1211 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1212 ac_cpp='$CPP $CPPFLAGS'
1213 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1214 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1215 cross_compiling=$ac_cv_prog_cc_cross
1217 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1218 if test $ac_cv_prog_cc_works = no; then
1219 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1221 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1222 echo "configure:1223: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1223 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1224 cross_compiling=$ac_cv_prog_cc_cross
1226 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1227 echo "configure:1228: checking whether we are using GNU C" >&5
1228 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1229 echo $ac_n "(cached) $ac_c" 1>&6
1231 cat > conftest.c <<EOF
1236 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1237: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1243 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1245 if test $ac_cv_prog_gcc = yes; then
1251 ac_test_CFLAGS="${CFLAGS+set}"
1252 ac_save_CFLAGS="$CFLAGS"
1254 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1255 echo "configure:1256: checking whether ${CC-cc} accepts -g" >&5
1256 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1257 echo $ac_n "(cached) $ac_c" 1>&6
1259 echo 'void f(){}' > conftest.c
1260 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1269 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1270 if test "$ac_test_CFLAGS" = set; then
1271 CFLAGS="$ac_save_CFLAGS"
1272 elif test $ac_cv_prog_cc_g = yes; then
1273 if test "$GCC" = yes; then
1279 if test "$GCC" = yes; then
1286 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1287 if test "${with_gnu_ld+set}" = set; then
1288 withval="$with_gnu_ld"
1289 test "$withval" = no || with_gnu_ld=yes
1295 if test "$GCC" = yes; then
1296 # Check if gcc -print-prog-name=ld gives a path.
1297 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1298 echo "configure:1299: checking for ld used by GCC" >&5
1301 # gcc leaves a trailing carriage return which upsets mingw
1302 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1304 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1307 # Accept absolute paths.
1308 [\\/]* | [A-Za-z]:[\\/]*)
1309 re_direlt='/[^/][^/]*/\.\./'
1310 # Canonicalize the path of ld
1311 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1312 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1313 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1315 test -z "$LD" && LD="$ac_prog"
1318 # If it fails, then pretend we aren't using GCC.
1322 # If it is relative, then search for the first ld in PATH.
1326 elif test "$with_gnu_ld" = yes; then
1327 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1328 echo "configure:1329: checking for GNU ld" >&5
1330 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1331 echo "configure:1332: checking for non-GNU ld" >&5
1333 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1334 echo $ac_n "(cached) $ac_c" 1>&6
1336 if test -z "$LD"; then
1337 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1338 for ac_dir in $PATH; do
1339 test -z "$ac_dir" && ac_dir=.
1340 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1341 lt_cv_path_LD="$ac_dir/$ac_prog"
1342 # Check to see if the program is GNU ld. I'd rather use --version,
1343 # but apparently some GNU ld's only accept -v.
1344 # Break only if it was the GNU/non-GNU ld that we prefer.
1345 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1346 test "$with_gnu_ld" != no && break
1348 test "$with_gnu_ld" != yes && break
1354 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1359 if test -n "$LD"; then
1360 echo "$ac_t""$LD" 1>&6
1362 echo "$ac_t""no" 1>&6
1364 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1365 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1366 echo "configure:1367: checking if the linker ($LD) is GNU ld" >&5
1367 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1368 echo $ac_n "(cached) $ac_c" 1>&6
1370 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1371 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1372 lt_cv_prog_gnu_ld=yes
1374 lt_cv_prog_gnu_ld=no
1378 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1379 with_gnu_ld=$lt_cv_prog_gnu_ld
1382 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1383 echo "configure:1384: checking for $LD option to reload object files" >&5
1384 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1385 echo $ac_n "(cached) $ac_c" 1>&6
1387 lt_cv_ld_reload_flag='-r'
1390 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1391 reload_flag=$lt_cv_ld_reload_flag
1392 test -n "$reload_flag" && reload_flag=" $reload_flag"
1394 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1395 echo "configure:1396: checking for BSD-compatible nm" >&5
1396 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1397 echo $ac_n "(cached) $ac_c" 1>&6
1399 if test -n "$NM"; then
1400 # Let the user override the test.
1403 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1404 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1405 test -z "$ac_dir" && ac_dir=.
1406 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1407 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1408 # Check to see if the nm accepts a BSD-compat flag.
1409 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1410 # nm: unknown option "B" ignored
1411 # Tru64's nm complains that /dev/null is an invalid object file
1412 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1413 lt_cv_path_NM="$tmp_nm -B"
1415 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1416 lt_cv_path_NM="$tmp_nm -p"
1419 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1420 continue # so that we can try to find one that supports BSD flags
1425 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1430 echo "$ac_t""$NM" 1>&6
1432 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1433 echo "configure:1434: checking whether ln -s works" >&5
1434 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1435 echo $ac_n "(cached) $ac_c" 1>&6
1438 if ln -s X conftestdata 2>/dev/null
1441 ac_cv_prog_LN_S="ln -s"
1446 LN_S="$ac_cv_prog_LN_S"
1447 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1448 echo "$ac_t""yes" 1>&6
1450 echo "$ac_t""no" 1>&6
1453 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1454 echo "configure:1455: checking how to recognise dependant libraries" >&5
1455 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1456 echo $ac_n "(cached) $ac_c" 1>&6
1458 lt_cv_file_magic_cmd='$MAGIC_CMD'
1459 lt_cv_file_magic_test_file=
1460 lt_cv_deplibs_check_method='unknown'
1461 # Need to set the preceding variable on all platforms that support
1462 # interlibrary dependencies.
1463 # 'none' -- dependencies not supported.
1464 # `unknown' -- same as none, but documents that we really don't know.
1465 # 'pass_all' -- all dependencies passed with no checks.
1466 # 'test_compile' -- check by making test program.
1467 # 'file_magic [regex]' -- check by looking for files in library path
1468 # which responds to the $file_magic_cmd with a given egrep regex.
1469 # If you have `file' or equivalent on your system and you're not sure
1470 # whether `pass_all' will *always* work, you probably want this one.
1474 lt_cv_deplibs_check_method=pass_all
1478 lt_cv_deplibs_check_method=pass_all
1482 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1483 lt_cv_file_magic_cmd='/usr/bin/file -L'
1484 lt_cv_file_magic_test_file=/shlib/libc.so
1487 cygwin* | mingw* |pw32*)
1488 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1489 lt_cv_file_magic_cmd='$OBJDUMP -f'
1492 darwin* | rhapsody*)
1493 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1494 lt_cv_file_magic_cmd='/usr/bin/file -L'
1496 rhapsody* | darwin1.012)
1497 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1500 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1506 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1509 # Not sure whether the presence of OpenBSD here was a mistake.
1510 # Let's accept both of them until this is cleared up.
1511 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1512 lt_cv_file_magic_cmd=/usr/bin/file
1513 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1517 lt_cv_deplibs_check_method=pass_all
1522 lt_cv_deplibs_check_method=pass_all
1528 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1529 lt_cv_file_magic_cmd=/usr/bin/file
1530 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1533 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
1534 lt_cv_file_magic_cmd=/usr/bin/file
1535 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
1543 # this will be overridden with pass_all, but let us keep it just in case
1544 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1548 *-32|*"-32 ") libmagic=32-bit;;
1549 *-n32|*"-n32 ") libmagic=N32;;
1550 *-64|*"-64 ") libmagic=64-bit;;
1551 *) libmagic=never-match;;
1553 # this will be overridden with pass_all, but let us keep it just in case
1554 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1557 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1558 lt_cv_deplibs_check_method=pass_all
1561 # This must be Linux ELF.
1564 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
1565 lt_cv_deplibs_check_method=pass_all ;;
1567 # glibc up to 2.1.1 does not perform some relocations on ARM
1568 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1570 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1574 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1575 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1577 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
1582 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1583 lt_cv_file_magic_cmd=/usr/bin/file
1584 lt_cv_file_magic_test_file=/usr/lib/libnls.so
1587 osf3* | osf4* | osf5*)
1588 # this will be overridden with pass_all, but let us keep it just in case
1589 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1590 lt_cv_file_magic_test_file=/shlib/libc.so
1591 lt_cv_deplibs_check_method=pass_all
1595 lt_cv_deplibs_check_method=pass_all
1599 lt_cv_deplibs_check_method=pass_all
1600 lt_cv_file_magic_test_file=/lib/libc.so
1603 sysv5uw[78]* | sysv4*uw2*)
1604 lt_cv_deplibs_check_method=pass_all
1607 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1608 case $host_vendor in
1610 lt_cv_deplibs_check_method=pass_all
1613 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
1614 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1622 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1623 file_magic_cmd=$lt_cv_file_magic_cmd
1624 deplibs_check_method=$lt_cv_deplibs_check_method
1626 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1627 echo "configure:1628: checking for object suffix" >&5
1628 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1629 echo $ac_n "(cached) $ac_c" 1>&6
1632 echo 'int i = 1;' > conftest.$ac_ext
1633 if { (eval echo configure:1634: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1634 for ac_file in conftest.*; do
1637 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1641 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1646 echo "$ac_t""$ac_cv_objext" 1>&6
1647 OBJEXT=$ac_cv_objext
1648 ac_objext=$ac_cv_objext
1652 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1653 echo "configure:1654: checking for executable suffix" >&5
1654 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1655 echo $ac_n "(cached) $ac_c" 1>&6
1657 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1661 echo 'int main () { return 0; }' > conftest.$ac_ext
1663 if { (eval echo configure:1664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1664 for file in conftest.*; do
1666 *.c | *.o | *.obj) ;;
1667 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1671 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1674 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1679 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1680 echo "$ac_t""${ac_cv_exeext}" 1>&6
1683 if test $host != $build; then
1684 ac_tool_prefix=${host_alias}-
1689 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1691 # Only perform the check for file, if the check method requires it
1692 case $deplibs_check_method in
1694 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1695 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
1696 echo "configure:1697: checking for ${ac_tool_prefix}file" >&5
1697 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1698 echo $ac_n "(cached) $ac_c" 1>&6
1702 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1705 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1708 ac_save_MAGIC_CMD="$MAGIC_CMD"
1709 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1710 ac_dummy="/usr/bin:$PATH"
1711 for ac_dir in $ac_dummy; do
1712 test -z "$ac_dir" && ac_dir=.
1713 if test -f $ac_dir/${ac_tool_prefix}file; then
1714 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
1715 if test -n "$file_magic_test_file"; then
1716 case $deplibs_check_method in
1718 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1719 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1720 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1721 egrep "$file_magic_regex" > /dev/null; then
1726 *** Warning: the command libtool uses to detect shared libraries,
1727 *** $file_magic_cmd, produces output that libtool cannot recognize.
1728 *** The result is that libtool may fail to recognize shared libraries
1729 *** as such. This will affect the creation of libtool libraries that
1730 *** depend on shared libraries, but programs linked with such libtool
1731 *** libraries will work regardless of this problem. Nevertheless, you
1732 *** may want to report the problem to your system manager and/or to
1733 *** bug-libtool@gnu.org
1743 MAGIC_CMD="$ac_save_MAGIC_CMD"
1748 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1749 if test -n "$MAGIC_CMD"; then
1750 echo "$ac_t""$MAGIC_CMD" 1>&6
1752 echo "$ac_t""no" 1>&6
1755 if test -z "$lt_cv_path_MAGIC_CMD"; then
1756 if test -n "$ac_tool_prefix"; then
1757 echo $ac_n "checking for file""... $ac_c" 1>&6
1758 echo "configure:1759: checking for file" >&5
1759 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1760 echo $ac_n "(cached) $ac_c" 1>&6
1764 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1767 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1770 ac_save_MAGIC_CMD="$MAGIC_CMD"
1771 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1772 ac_dummy="/usr/bin:$PATH"
1773 for ac_dir in $ac_dummy; do
1774 test -z "$ac_dir" && ac_dir=.
1775 if test -f $ac_dir/file; then
1776 lt_cv_path_MAGIC_CMD="$ac_dir/file"
1777 if test -n "$file_magic_test_file"; then
1778 case $deplibs_check_method in
1780 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1781 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1782 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1783 egrep "$file_magic_regex" > /dev/null; then
1788 *** Warning: the command libtool uses to detect shared libraries,
1789 *** $file_magic_cmd, produces output that libtool cannot recognize.
1790 *** The result is that libtool may fail to recognize shared libraries
1791 *** as such. This will affect the creation of libtool libraries that
1792 *** depend on shared libraries, but programs linked with such libtool
1793 *** libraries will work regardless of this problem. Nevertheless, you
1794 *** may want to report the problem to your system manager and/or to
1795 *** bug-libtool@gnu.org
1805 MAGIC_CMD="$ac_save_MAGIC_CMD"
1810 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1811 if test -n "$MAGIC_CMD"; then
1812 echo "$ac_t""$MAGIC_CMD" 1>&6
1814 echo "$ac_t""no" 1>&6
1826 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1827 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1828 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1829 echo "configure:1830: checking for $ac_word" >&5
1830 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1831 echo $ac_n "(cached) $ac_c" 1>&6
1833 if test -n "$RANLIB"; then
1834 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1836 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1838 for ac_dir in $ac_dummy; do
1839 test -z "$ac_dir" && ac_dir=.
1840 if test -f $ac_dir/$ac_word; then
1841 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1848 RANLIB="$ac_cv_prog_RANLIB"
1849 if test -n "$RANLIB"; then
1850 echo "$ac_t""$RANLIB" 1>&6
1852 echo "$ac_t""no" 1>&6
1856 if test -z "$ac_cv_prog_RANLIB"; then
1857 if test -n "$ac_tool_prefix"; then
1858 # Extract the first word of "ranlib", so it can be a program name with args.
1859 set dummy ranlib; ac_word=$2
1860 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1861 echo "configure:1862: checking for $ac_word" >&5
1862 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1863 echo $ac_n "(cached) $ac_c" 1>&6
1865 if test -n "$RANLIB"; then
1866 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1868 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1870 for ac_dir in $ac_dummy; do
1871 test -z "$ac_dir" && ac_dir=.
1872 if test -f $ac_dir/$ac_word; then
1873 ac_cv_prog_RANLIB="ranlib"
1878 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1881 RANLIB="$ac_cv_prog_RANLIB"
1882 if test -n "$RANLIB"; then
1883 echo "$ac_t""$RANLIB" 1>&6
1885 echo "$ac_t""no" 1>&6
1893 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1894 set dummy ${ac_tool_prefix}strip; ac_word=$2
1895 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1896 echo "configure:1897: checking for $ac_word" >&5
1897 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1898 echo $ac_n "(cached) $ac_c" 1>&6
1900 if test -n "$STRIP"; then
1901 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1903 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1905 for ac_dir in $ac_dummy; do
1906 test -z "$ac_dir" && ac_dir=.
1907 if test -f $ac_dir/$ac_word; then
1908 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1915 STRIP="$ac_cv_prog_STRIP"
1916 if test -n "$STRIP"; then
1917 echo "$ac_t""$STRIP" 1>&6
1919 echo "$ac_t""no" 1>&6
1923 if test -z "$ac_cv_prog_STRIP"; then
1924 if test -n "$ac_tool_prefix"; then
1925 # Extract the first word of "strip", so it can be a program name with args.
1926 set dummy strip; ac_word=$2
1927 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1928 echo "configure:1929: checking for $ac_word" >&5
1929 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1930 echo $ac_n "(cached) $ac_c" 1>&6
1932 if test -n "$STRIP"; then
1933 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1935 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1937 for ac_dir in $ac_dummy; do
1938 test -z "$ac_dir" && ac_dir=.
1939 if test -f $ac_dir/$ac_word; then
1940 ac_cv_prog_STRIP="strip"
1945 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
1948 STRIP="$ac_cv_prog_STRIP"
1949 if test -n "$STRIP"; then
1950 echo "$ac_t""$STRIP" 1>&6
1952 echo "$ac_t""no" 1>&6
1961 # Check for any special flags to pass to ltconfig.
1962 libtool_flags="--cache-file=$cache_file"
1963 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1964 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1965 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1966 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
1967 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1970 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1971 if test "${enable_libtool_lock+set}" = set; then
1972 enableval="$enable_libtool_lock"
1976 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1977 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1979 # Check whether --with-pic or --without-pic was given.
1980 if test "${with_pic+set}" = set; then
1987 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
1988 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
1990 # Some flags need to be propagated to the compiler or linker for good
1994 # Find out which ABI we are using.
1995 echo '#line 1996 "configure"' > conftest.$ac_ext
1996 if { (eval echo configure:1997: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1997 case `/usr/bin/file conftest.$ac_objext` in
2013 # Find out which ABI we are using.
2014 echo 'int i;' > conftest.$ac_ext
2015 if { (eval echo configure:2016: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2016 case "`/usr/bin/file conftest.o`" in
2029 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2030 SAVE_CFLAGS="$CFLAGS"
2031 CFLAGS="$CFLAGS -belf"
2032 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2033 echo "configure:2034: checking whether the C compiler needs -belf" >&5
2034 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2035 echo $ac_n "(cached) $ac_c" 1>&6
2039 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2040 ac_cpp='$CPP $CPPFLAGS'
2041 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2042 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2043 cross_compiling=$ac_cv_prog_cc_cross
2045 cat > conftest.$ac_ext <<EOF
2046 #line 2047 "configure"
2047 #include "confdefs.h"
2053 if { (eval echo configure:2054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2055 lt_cv_cc_needs_belf=yes
2057 echo "configure: failed program was:" >&5
2058 cat conftest.$ac_ext >&5
2060 lt_cv_cc_needs_belf=no
2064 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2065 ac_cpp='$CPP $CPPFLAGS'
2066 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2067 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2068 cross_compiling=$ac_cv_prog_cc_cross
2072 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2073 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2074 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2075 CFLAGS="$SAVE_CFLAGS"
2083 # Save cache, so that ltconfig can load it
2084 cat > confcache <<\EOF
2085 # This file is a shell script that caches the results of configure
2086 # tests run on this system so they can be shared between configure
2087 # scripts and configure runs. It is not useful on other systems.
2088 # If it contains results you don't want to keep, you may remove or edit it.
2090 # By default, configure uses ./config.cache as the cache file,
2091 # creating it if it does not exist already. You can give configure
2092 # the --cache-file=FILE option to use a different cache file; that is
2093 # what configure does when it calls configure scripts in
2094 # subdirectories, so they share the cache.
2095 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2096 # config.status only pays attention to the cache file if you give it the
2097 # --recheck option to rerun configure.
2100 # The following way of writing the cache mishandles newlines in values,
2101 # but we know of no workaround that is simple, portable, and efficient.
2102 # So, don't put newlines in cache variables' values.
2103 # Ultrix sh set writes to stderr and can't be redirected directly,
2104 # and sets the high bit in the cache file unless we assign to the vars.
2106 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2108 # `set' does not quote correctly, so add quotes (double-quote substitution
2109 # turns \\\\ into \\, and sed turns \\ into \).
2111 -e "s/'/'\\\\''/g" \
2112 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2115 # `set' quotes correctly as required by POSIX, so do not add quotes.
2116 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2119 if cmp -s $cache_file confcache; then
2122 if test -w $cache_file; then
2123 echo "updating cache $cache_file"
2124 cat confcache > $cache_file
2126 echo "not updating unwritable cache $cache_file"
2132 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2133 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2134 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2135 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2136 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2137 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2138 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2139 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2140 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2141 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2143 # Reload cache, that may have been modified by ltconfig
2144 if test -r "$cache_file"; then
2145 echo "loading cache $cache_file"
2148 echo "creating cache $cache_file"
2153 # This can be used to rebuild libtool when needed
2154 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2156 # Always use our own libtool.
2157 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2159 # Redirect the config.log output again, so that the ltconfig log is not
2160 # clobbered by the next message.
2161 exec 5>>./config.log
2173 # Extract the first word of "gcc", so it can be a program name with args.
2174 set dummy gcc; ac_word=$2
2175 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2176 echo "configure:2177: checking for $ac_word" >&5
2177 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2178 echo $ac_n "(cached) $ac_c" 1>&6
2180 if test -n "$CC"; then
2181 ac_cv_prog_CC="$CC" # Let the user override the test.
2183 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2185 for ac_dir in $ac_dummy; do
2186 test -z "$ac_dir" && ac_dir=.
2187 if test -f $ac_dir/$ac_word; then
2196 if test -n "$CC"; then
2197 echo "$ac_t""$CC" 1>&6
2199 echo "$ac_t""no" 1>&6
2202 if test -z "$CC"; then
2203 # Extract the first word of "cc", so it can be a program name with args.
2204 set dummy cc; ac_word=$2
2205 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2206 echo "configure:2207: checking for $ac_word" >&5
2207 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2208 echo $ac_n "(cached) $ac_c" 1>&6
2210 if test -n "$CC"; then
2211 ac_cv_prog_CC="$CC" # Let the user override the test.
2213 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2216 for ac_dir in $ac_dummy; do
2217 test -z "$ac_dir" && ac_dir=.
2218 if test -f $ac_dir/$ac_word; then
2219 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2220 ac_prog_rejected=yes
2228 if test $ac_prog_rejected = yes; then
2229 # We found a bogon in the path, so make sure we never use it.
2230 set dummy $ac_cv_prog_CC
2232 if test $# -gt 0; then
2233 # We chose a different compiler from the bogus one.
2234 # However, it has the same basename, so the bogon will be chosen
2235 # first if we set CC to just the basename; use the full file name.
2237 set dummy "$ac_dir/$ac_word" "$@"
2245 if test -n "$CC"; then
2246 echo "$ac_t""$CC" 1>&6
2248 echo "$ac_t""no" 1>&6
2251 if test -z "$CC"; then
2252 case "`uname -s`" in
2254 # Extract the first word of "cl", so it can be a program name with args.
2255 set dummy cl; ac_word=$2
2256 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2257 echo "configure:2258: checking for $ac_word" >&5
2258 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2259 echo $ac_n "(cached) $ac_c" 1>&6
2261 if test -n "$CC"; then
2262 ac_cv_prog_CC="$CC" # Let the user override the test.
2264 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2266 for ac_dir in $ac_dummy; do
2267 test -z "$ac_dir" && ac_dir=.
2268 if test -f $ac_dir/$ac_word; then
2277 if test -n "$CC"; then
2278 echo "$ac_t""$CC" 1>&6
2280 echo "$ac_t""no" 1>&6
2285 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2288 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2289 echo "configure:2290: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2292 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2293 ac_cpp='$CPP $CPPFLAGS'
2294 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2295 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2296 cross_compiling=$ac_cv_prog_cc_cross
2298 cat > conftest.$ac_ext << EOF
2300 #line 2301 "configure"
2301 #include "confdefs.h"
2305 if { (eval echo configure:2306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2306 ac_cv_prog_cc_works=yes
2307 # If we can't run a trivial program, we are probably using a cross compiler.
2308 if (./conftest; exit) 2>/dev/null; then
2309 ac_cv_prog_cc_cross=no
2311 ac_cv_prog_cc_cross=yes
2314 echo "configure: failed program was:" >&5
2315 cat conftest.$ac_ext >&5
2316 ac_cv_prog_cc_works=no
2320 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2321 ac_cpp='$CPP $CPPFLAGS'
2322 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2323 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2324 cross_compiling=$ac_cv_prog_cc_cross
2326 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2327 if test $ac_cv_prog_cc_works = no; then
2328 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2330 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2331 echo "configure:2332: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2332 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2333 cross_compiling=$ac_cv_prog_cc_cross
2335 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2336 echo "configure:2337: checking whether we are using GNU C" >&5
2337 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2338 echo $ac_n "(cached) $ac_c" 1>&6
2340 cat > conftest.c <<EOF
2345 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2346: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2352 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2354 if test $ac_cv_prog_gcc = yes; then
2360 ac_test_CFLAGS="${CFLAGS+set}"
2361 ac_save_CFLAGS="$CFLAGS"
2363 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2364 echo "configure:2365: checking whether ${CC-cc} accepts -g" >&5
2365 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2366 echo $ac_n "(cached) $ac_c" 1>&6
2368 echo 'void f(){}' > conftest.c
2369 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2378 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2379 if test "$ac_test_CFLAGS" = set; then
2380 CFLAGS="$ac_save_CFLAGS"
2381 elif test $ac_cv_prog_cc_g = yes; then
2382 if test "$GCC" = yes; then
2388 if test "$GCC" = yes; then
2395 # Find a good install program. We prefer a C program (faster),
2396 # so one script is as good as another. But avoid the broken or
2397 # incompatible versions:
2398 # SysV /etc/install, /usr/sbin/install
2399 # SunOS /usr/etc/install
2400 # IRIX /sbin/install
2402 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2403 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2404 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2405 # ./install, which can be erroneously created by make from ./install.sh.
2406 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2407 echo "configure:2408: checking for a BSD compatible install" >&5
2408 if test -z "$INSTALL"; then
2409 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2410 echo $ac_n "(cached) $ac_c" 1>&6
2412 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2413 for ac_dir in $PATH; do
2414 # Account for people who put trailing slashes in PATH elements.
2416 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2418 # OSF1 and SCO ODT 3.0 have their own names for install.
2419 # Don't use installbsd from OSF since it installs stuff as root
2421 for ac_prog in ginstall scoinst install; do
2422 if test -f $ac_dir/$ac_prog; then
2423 if test $ac_prog = install &&
2424 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2425 # AIX install. It has an incompatible calling convention.
2428 ac_cv_path_install="$ac_dir/$ac_prog -c"
2439 if test "${ac_cv_path_install+set}" = set; then
2440 INSTALL="$ac_cv_path_install"
2442 # As a last resort, use the slow shell script. We don't cache a
2443 # path for INSTALL within a source directory, because that will
2444 # break other packages using the cache if that directory is
2445 # removed, or if the path is relative.
2446 INSTALL="$ac_install_sh"
2449 echo "$ac_t""$INSTALL" 1>&6
2451 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2452 # It thinks the first close brace ends the variable substitution.
2453 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2455 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
2457 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2460 for ac_func in setmode
2462 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2463 echo "configure:2464: checking for $ac_func" >&5
2464 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2465 echo $ac_n "(cached) $ac_c" 1>&6
2467 cat > conftest.$ac_ext <<EOF
2468 #line 2469 "configure"
2469 #include "confdefs.h"
2470 /* System header to define __stub macros and hopefully few prototypes,
2471 which can conflict with char $ac_func(); below. */
2473 /* Override any gcc2 internal prototype to avoid an error. */
2474 /* We use char because int might match the return type of a gcc2
2475 builtin and then its argument prototype would still apply. */
2480 /* The GNU C library defines this for functions which it implements
2481 to always fail with ENOSYS. Some functions are actually named
2482 something starting with __ and the normal name is an alias. */
2483 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2491 if { (eval echo configure:2492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2493 eval "ac_cv_func_$ac_func=yes"
2495 echo "configure: failed program was:" >&5
2496 cat conftest.$ac_ext >&5
2498 eval "ac_cv_func_$ac_func=no"
2503 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2504 echo "$ac_t""yes" 1>&6
2505 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2506 cat >> confdefs.h <<EOF
2507 #define $ac_tr_func 1
2511 echo "$ac_t""no" 1>&6
2516 ALL_LINGUAS="fr tr sv es"
2517 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2518 echo "configure:2519: checking how to run the C preprocessor" >&5
2519 # On Suns, sometimes $CPP names a directory.
2520 if test -n "$CPP" && test -d "$CPP"; then
2523 if test -z "$CPP"; then
2524 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2525 echo $ac_n "(cached) $ac_c" 1>&6
2527 # This must be in double quotes, not single quotes, because CPP may get
2528 # substituted into the Makefile and "${CC-cc}" will confuse make.
2530 # On the NeXT, cc -E runs the code through the compiler's parser,
2531 # not just through cpp.
2532 cat > conftest.$ac_ext <<EOF
2533 #line 2534 "configure"
2534 #include "confdefs.h"
2538 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2539 { (eval echo configure:2540: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2540 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2541 if test -z "$ac_err"; then
2545 echo "configure: failed program was:" >&5
2546 cat conftest.$ac_ext >&5
2548 CPP="${CC-cc} -E -traditional-cpp"
2549 cat > conftest.$ac_ext <<EOF
2550 #line 2551 "configure"
2551 #include "confdefs.h"
2555 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2556 { (eval echo configure:2557: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2557 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2558 if test -z "$ac_err"; then
2562 echo "configure: failed program was:" >&5
2563 cat conftest.$ac_ext >&5
2565 CPP="${CC-cc} -nologo -E"
2566 cat > conftest.$ac_ext <<EOF
2567 #line 2568 "configure"
2568 #include "confdefs.h"
2572 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2573 { (eval echo configure:2574: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2574 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2575 if test -z "$ac_err"; then
2579 echo "configure: failed program was:" >&5
2580 cat conftest.$ac_ext >&5
2589 ac_cv_prog_CPP="$CPP"
2591 CPP="$ac_cv_prog_CPP"
2593 ac_cv_prog_CPP="$CPP"
2595 echo "$ac_t""$CPP" 1>&6
2597 # Extract the first word of "ranlib", so it can be a program name with args.
2598 set dummy ranlib; ac_word=$2
2599 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2600 echo "configure:2601: checking for $ac_word" >&5
2601 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2602 echo $ac_n "(cached) $ac_c" 1>&6
2604 if test -n "$RANLIB"; then
2605 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2607 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2609 for ac_dir in $ac_dummy; do
2610 test -z "$ac_dir" && ac_dir=.
2611 if test -f $ac_dir/$ac_word; then
2612 ac_cv_prog_RANLIB="ranlib"
2617 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2620 RANLIB="$ac_cv_prog_RANLIB"
2621 if test -n "$RANLIB"; then
2622 echo "$ac_t""$RANLIB" 1>&6
2624 echo "$ac_t""no" 1>&6
2627 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2628 echo "configure:2629: checking for ANSI C header files" >&5
2629 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2630 echo $ac_n "(cached) $ac_c" 1>&6
2632 cat > conftest.$ac_ext <<EOF
2633 #line 2634 "configure"
2634 #include "confdefs.h"
2640 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2641 { (eval echo configure:2642: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2642 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2643 if test -z "$ac_err"; then
2645 ac_cv_header_stdc=yes
2648 echo "configure: failed program was:" >&5
2649 cat conftest.$ac_ext >&5
2651 ac_cv_header_stdc=no
2655 if test $ac_cv_header_stdc = yes; then
2656 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2657 cat > conftest.$ac_ext <<EOF
2658 #line 2659 "configure"
2659 #include "confdefs.h"
2662 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2663 egrep "memchr" >/dev/null 2>&1; then
2667 ac_cv_header_stdc=no
2673 if test $ac_cv_header_stdc = yes; then
2674 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2675 cat > conftest.$ac_ext <<EOF
2676 #line 2677 "configure"
2677 #include "confdefs.h"
2680 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2681 egrep "free" >/dev/null 2>&1; then
2685 ac_cv_header_stdc=no
2691 if test $ac_cv_header_stdc = yes; then
2692 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2693 if test "$cross_compiling" = yes; then
2696 cat > conftest.$ac_ext <<EOF
2697 #line 2698 "configure"
2698 #include "confdefs.h"
2700 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2701 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2702 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2703 int main () { int i; for (i = 0; i < 256; i++)
2704 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2708 if { (eval echo configure:2709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2712 echo "configure: failed program was:" >&5
2713 cat conftest.$ac_ext >&5
2715 ac_cv_header_stdc=no
2723 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2724 if test $ac_cv_header_stdc = yes; then
2725 cat >> confdefs.h <<\EOF
2726 #define STDC_HEADERS 1
2731 echo $ac_n "checking for working const""... $ac_c" 1>&6
2732 echo "configure:2733: checking for working const" >&5
2733 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2734 echo $ac_n "(cached) $ac_c" 1>&6
2736 cat > conftest.$ac_ext <<EOF
2737 #line 2738 "configure"
2738 #include "confdefs.h"
2742 /* Ultrix mips cc rejects this. */
2743 typedef int charset[2]; const charset x;
2744 /* SunOS 4.1.1 cc rejects this. */
2745 char const *const *ccp;
2747 /* NEC SVR4.0.2 mips cc rejects this. */
2748 struct point {int x, y;};
2749 static struct point const zero = {0,0};
2750 /* AIX XL C 1.02.0.0 rejects this.
2751 It does not let you subtract one const X* pointer from another in an arm
2752 of an if-expression whose if-part is not a constant expression */
2753 const char *g = "string";
2754 ccp = &g + (g ? g-g : 0);
2755 /* HPUX 7.0 cc rejects these. */
2758 ccp = (char const *const *) p;
2759 { /* SCO 3.2v4 cc rejects this. */
2761 char const *s = 0 ? (char *) 0 : (char const *) 0;
2765 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2767 const int *foo = &x[0];
2770 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2771 typedef const int *iptr;
2775 { /* AIX XL C 1.02.0.0 rejects this saying
2776 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2777 struct s { int j; const int *ap[3]; };
2778 struct s *b; b->j = 5;
2780 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2786 if { (eval echo configure:2787: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2790 echo "configure: failed program was:" >&5
2791 cat conftest.$ac_ext >&5
2798 echo "$ac_t""$ac_cv_c_const" 1>&6
2799 if test $ac_cv_c_const = no; then
2800 cat >> confdefs.h <<\EOF
2806 echo $ac_n "checking for inline""... $ac_c" 1>&6
2807 echo "configure:2808: checking for inline" >&5
2808 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2809 echo $ac_n "(cached) $ac_c" 1>&6
2812 for ac_kw in inline __inline__ __inline; do
2813 cat > conftest.$ac_ext <<EOF
2814 #line 2815 "configure"
2815 #include "confdefs.h"
2821 if { (eval echo configure:2822: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2823 ac_cv_c_inline=$ac_kw; break
2825 echo "configure: failed program was:" >&5
2826 cat conftest.$ac_ext >&5
2833 echo "$ac_t""$ac_cv_c_inline" 1>&6
2834 case "$ac_cv_c_inline" in
2836 no) cat >> confdefs.h <<\EOF
2840 *) cat >> confdefs.h <<EOF
2841 #define inline $ac_cv_c_inline
2846 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2847 echo "configure:2848: checking for off_t" >&5
2848 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2849 echo $ac_n "(cached) $ac_c" 1>&6
2851 cat > conftest.$ac_ext <<EOF
2852 #line 2853 "configure"
2853 #include "confdefs.h"
2854 #include <sys/types.h>
2860 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2861 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2863 ac_cv_type_off_t=yes
2871 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2872 if test $ac_cv_type_off_t = no; then
2873 cat >> confdefs.h <<\EOF
2879 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2880 echo "configure:2881: checking for size_t" >&5
2881 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2882 echo $ac_n "(cached) $ac_c" 1>&6
2884 cat > conftest.$ac_ext <<EOF
2885 #line 2886 "configure"
2886 #include "confdefs.h"
2887 #include <sys/types.h>
2893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2894 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2896 ac_cv_type_size_t=yes
2899 ac_cv_type_size_t=no
2904 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2905 if test $ac_cv_type_size_t = no; then
2906 cat >> confdefs.h <<\EOF
2907 #define size_t unsigned
2912 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2913 # for constant arguments. Useless!
2914 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2915 echo "configure:2916: checking for working alloca.h" >&5
2916 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2917 echo $ac_n "(cached) $ac_c" 1>&6
2919 cat > conftest.$ac_ext <<EOF
2920 #line 2921 "configure"
2921 #include "confdefs.h"
2924 char *p = alloca(2 * sizeof(int));
2927 if { (eval echo configure:2928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2929 ac_cv_header_alloca_h=yes
2931 echo "configure: failed program was:" >&5
2932 cat conftest.$ac_ext >&5
2934 ac_cv_header_alloca_h=no
2939 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2940 if test $ac_cv_header_alloca_h = yes; then
2941 cat >> confdefs.h <<\EOF
2942 #define HAVE_ALLOCA_H 1
2947 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2948 echo "configure:2949: checking for alloca" >&5
2949 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2950 echo $ac_n "(cached) $ac_c" 1>&6
2952 cat > conftest.$ac_ext <<EOF
2953 #line 2954 "configure"
2954 #include "confdefs.h"
2957 # define alloca __builtin_alloca
2960 # include <malloc.h>
2961 # define alloca _alloca
2964 # include <alloca.h>
2969 # ifndef alloca /* predefined by HP cc +Olibcalls */
2978 char *p = (char *) alloca(1);
2981 if { (eval echo configure:2982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2983 ac_cv_func_alloca_works=yes
2985 echo "configure: failed program was:" >&5
2986 cat conftest.$ac_ext >&5
2988 ac_cv_func_alloca_works=no
2993 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2994 if test $ac_cv_func_alloca_works = yes; then
2995 cat >> confdefs.h <<\EOF
2996 #define HAVE_ALLOCA 1
3001 if test $ac_cv_func_alloca_works = no; then
3002 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3003 # that cause trouble. Some versions do not even contain alloca or
3004 # contain a buggy version. If you still want to use their alloca,
3005 # use ar to extract alloca.o from them instead of compiling alloca.c.
3006 ALLOCA=alloca.${ac_objext}
3007 cat >> confdefs.h <<\EOF
3012 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3013 echo "configure:3014: checking whether alloca needs Cray hooks" >&5
3014 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3015 echo $ac_n "(cached) $ac_c" 1>&6
3017 cat > conftest.$ac_ext <<EOF
3018 #line 3019 "configure"
3019 #include "confdefs.h"
3020 #if defined(CRAY) && ! defined(CRAY2)
3027 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3028 egrep "webecray" >/dev/null 2>&1; then
3039 echo "$ac_t""$ac_cv_os_cray" 1>&6
3040 if test $ac_cv_os_cray = yes; then
3041 for ac_func in _getb67 GETB67 getb67; do
3042 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3043 echo "configure:3044: checking for $ac_func" >&5
3044 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3045 echo $ac_n "(cached) $ac_c" 1>&6
3047 cat > conftest.$ac_ext <<EOF
3048 #line 3049 "configure"
3049 #include "confdefs.h"
3050 /* System header to define __stub macros and hopefully few prototypes,
3051 which can conflict with char $ac_func(); below. */
3053 /* Override any gcc2 internal prototype to avoid an error. */
3054 /* We use char because int might match the return type of a gcc2
3055 builtin and then its argument prototype would still apply. */
3060 /* The GNU C library defines this for functions which it implements
3061 to always fail with ENOSYS. Some functions are actually named
3062 something starting with __ and the normal name is an alias. */
3063 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3071 if { (eval echo configure:3072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3073 eval "ac_cv_func_$ac_func=yes"
3075 echo "configure: failed program was:" >&5
3076 cat conftest.$ac_ext >&5
3078 eval "ac_cv_func_$ac_func=no"
3083 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3084 echo "$ac_t""yes" 1>&6
3085 cat >> confdefs.h <<EOF
3086 #define CRAY_STACKSEG_END $ac_func
3091 echo "$ac_t""no" 1>&6
3097 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3098 echo "configure:3099: checking stack direction for C alloca" >&5
3099 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3100 echo $ac_n "(cached) $ac_c" 1>&6
3102 if test "$cross_compiling" = yes; then
3103 ac_cv_c_stack_direction=0
3105 cat > conftest.$ac_ext <<EOF
3106 #line 3107 "configure"
3107 #include "confdefs.h"
3108 find_stack_direction ()
3110 static char *addr = 0;
3115 return find_stack_direction ();
3118 return (&dummy > addr) ? 1 : -1;
3122 exit (find_stack_direction() < 0);
3125 if { (eval echo configure:3126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3127 ac_cv_c_stack_direction=1
3129 echo "configure: failed program was:" >&5
3130 cat conftest.$ac_ext >&5
3132 ac_cv_c_stack_direction=-1
3139 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3140 cat >> confdefs.h <<EOF
3141 #define STACK_DIRECTION $ac_cv_c_stack_direction
3146 for ac_hdr in stdlib.h unistd.h sys/stat.h sys/types.h
3148 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3149 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3150 echo "configure:3151: checking for $ac_hdr" >&5
3151 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3152 echo $ac_n "(cached) $ac_c" 1>&6
3154 cat > conftest.$ac_ext <<EOF
3155 #line 3156 "configure"
3156 #include "confdefs.h"
3159 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3160 { (eval echo configure:3161: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3161 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3162 if test -z "$ac_err"; then
3164 eval "ac_cv_header_$ac_safe=yes"
3167 echo "configure: failed program was:" >&5
3168 cat conftest.$ac_ext >&5
3170 eval "ac_cv_header_$ac_safe=no"
3174 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3175 echo "$ac_t""yes" 1>&6
3176 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3177 cat >> confdefs.h <<EOF
3178 #define $ac_tr_hdr 1
3182 echo "$ac_t""no" 1>&6
3186 for ac_func in getpagesize
3188 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3189 echo "configure:3190: checking for $ac_func" >&5
3190 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3191 echo $ac_n "(cached) $ac_c" 1>&6
3193 cat > conftest.$ac_ext <<EOF
3194 #line 3195 "configure"
3195 #include "confdefs.h"
3196 /* System header to define __stub macros and hopefully few prototypes,
3197 which can conflict with char $ac_func(); below. */
3199 /* Override any gcc2 internal prototype to avoid an error. */
3200 /* We use char because int might match the return type of a gcc2
3201 builtin and then its argument prototype would still apply. */
3206 /* The GNU C library defines this for functions which it implements
3207 to always fail with ENOSYS. Some functions are actually named
3208 something starting with __ and the normal name is an alias. */
3209 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3217 if { (eval echo configure:3218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3219 eval "ac_cv_func_$ac_func=yes"
3221 echo "configure: failed program was:" >&5
3222 cat conftest.$ac_ext >&5
3224 eval "ac_cv_func_$ac_func=no"
3229 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3230 echo "$ac_t""yes" 1>&6
3231 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3232 cat >> confdefs.h <<EOF
3233 #define $ac_tr_func 1
3237 echo "$ac_t""no" 1>&6
3241 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
3242 echo "configure:3243: checking for working mmap" >&5
3243 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
3244 echo $ac_n "(cached) $ac_c" 1>&6
3246 if test "$cross_compiling" = yes; then
3247 ac_cv_func_mmap_fixed_mapped=no
3249 cat > conftest.$ac_ext <<EOF
3250 #line 3251 "configure"
3251 #include "confdefs.h"
3253 /* Thanks to Mike Haertel and Jim Avera for this test.
3254 Here is a matrix of mmap possibilities:
3255 mmap private not fixed
3256 mmap private fixed at somewhere currently unmapped
3257 mmap private fixed at somewhere already mapped
3258 mmap shared not fixed
3259 mmap shared fixed at somewhere currently unmapped
3260 mmap shared fixed at somewhere already mapped
3261 For private mappings, we should verify that changes cannot be read()
3262 back from the file, nor mmap's back from the file at a different
3263 address. (There have been systems where private was not correctly
3264 implemented like the infamous i386 svr4.0, and systems where the
3265 VM page cache was not coherent with the filesystem buffer cache
3266 like early versions of FreeBSD and possibly contemporary NetBSD.)
3267 For shared mappings, we should conversely verify that changes get
3268 propogated back to all the places they're supposed to be.
3270 Grep wants private fixed already mapped.
3271 The main things grep needs to know about mmap are:
3272 * does it exist and is it safe to write into the mmap'd area
3273 * how to use it (BSD variants) */
3274 #include <sys/types.h>
3276 #include <sys/mman.h>
3278 #if HAVE_SYS_TYPES_H
3279 # include <sys/types.h>
3283 # include <stdlib.h>
3287 # include <sys/stat.h>
3291 # include <unistd.h>
3294 /* This mess was copied from the GNU getpagesize.h. */
3295 #ifndef HAVE_GETPAGESIZE
3297 /* Assume that all systems that can run configure have sys/param.h. */
3298 # ifndef HAVE_SYS_PARAM_H
3299 # define HAVE_SYS_PARAM_H 1
3302 # ifdef _SC_PAGESIZE
3303 # define getpagesize() sysconf(_SC_PAGESIZE)
3304 # else /* no _SC_PAGESIZE */
3305 # ifdef HAVE_SYS_PARAM_H
3306 # include <sys/param.h>
3307 # ifdef EXEC_PAGESIZE
3308 # define getpagesize() EXEC_PAGESIZE
3309 # else /* no EXEC_PAGESIZE */
3311 # define getpagesize() NBPG * CLSIZE
3314 # endif /* no CLSIZE */
3315 # else /* no NBPG */
3317 # define getpagesize() NBPC
3318 # else /* no NBPC */
3320 # define getpagesize() PAGESIZE
3321 # endif /* PAGESIZE */
3322 # endif /* no NBPC */
3323 # endif /* no NBPG */
3324 # endif /* no EXEC_PAGESIZE */
3325 # else /* no HAVE_SYS_PARAM_H */
3326 # define getpagesize() 8192 /* punt totally */
3327 # endif /* no HAVE_SYS_PARAM_H */
3328 # endif /* no _SC_PAGESIZE */
3330 #endif /* no HAVE_GETPAGESIZE */
3333 extern "C" { void *malloc(unsigned); }
3341 char *data, *data2, *data3;
3345 pagesize = getpagesize();
3348 * First, make a file with some known garbage in it.
3350 data = malloc(pagesize);
3353 for (i = 0; i < pagesize; ++i)
3354 *(data + i) = rand();
3356 fd = creat("conftestmmap", 0600);
3359 if (write(fd, data, pagesize) != pagesize)
3364 * Next, try to mmap the file at a fixed address which
3365 * already has something else allocated at it. If we can,
3366 * also make sure that we see the same garbage.
3368 fd = open("conftestmmap", O_RDWR);
3371 data2 = malloc(2 * pagesize);
3374 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3375 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3376 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3378 for (i = 0; i < pagesize; ++i)
3379 if (*(data + i) != *(data2 + i))
3383 * Finally, make sure that changes to the mapped area
3384 * do not percolate back to the file as seen by read().
3385 * (This is a bug on some variants of i386 svr4.0.)
3387 for (i = 0; i < pagesize; ++i)
3388 *(data2 + i) = *(data2 + i) + 1;
3389 data3 = malloc(pagesize);
3392 if (read(fd, data3, pagesize) != pagesize)
3394 for (i = 0; i < pagesize; ++i)
3395 if (*(data + i) != *(data3 + i))
3398 unlink("conftestmmap");
3403 if { (eval echo configure:3404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3405 ac_cv_func_mmap_fixed_mapped=yes
3407 echo "configure: failed program was:" >&5
3408 cat conftest.$ac_ext >&5
3410 ac_cv_func_mmap_fixed_mapped=no
3417 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3418 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3419 cat >> confdefs.h <<\EOF
3426 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
3427 unistd.h values.h sys/param.h
3429 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3430 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3431 echo "configure:3432: checking for $ac_hdr" >&5
3432 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3433 echo $ac_n "(cached) $ac_c" 1>&6
3435 cat > conftest.$ac_ext <<EOF
3436 #line 3437 "configure"
3437 #include "confdefs.h"
3440 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3441 { (eval echo configure:3442: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3442 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3443 if test -z "$ac_err"; then
3445 eval "ac_cv_header_$ac_safe=yes"
3448 echo "configure: failed program was:" >&5
3449 cat conftest.$ac_ext >&5
3451 eval "ac_cv_header_$ac_safe=no"
3455 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3456 echo "$ac_t""yes" 1>&6
3457 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3458 cat >> confdefs.h <<EOF
3459 #define $ac_tr_hdr 1
3463 echo "$ac_t""no" 1>&6
3467 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
3468 __argz_count __argz_stringify __argz_next
3470 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3471 echo "configure:3472: checking for $ac_func" >&5
3472 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3473 echo $ac_n "(cached) $ac_c" 1>&6
3475 cat > conftest.$ac_ext <<EOF
3476 #line 3477 "configure"
3477 #include "confdefs.h"
3478 /* System header to define __stub macros and hopefully few prototypes,
3479 which can conflict with char $ac_func(); below. */
3481 /* Override any gcc2 internal prototype to avoid an error. */
3482 /* We use char because int might match the return type of a gcc2
3483 builtin and then its argument prototype would still apply. */
3488 /* The GNU C library defines this for functions which it implements
3489 to always fail with ENOSYS. Some functions are actually named
3490 something starting with __ and the normal name is an alias. */
3491 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3499 if { (eval echo configure:3500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3501 eval "ac_cv_func_$ac_func=yes"
3503 echo "configure: failed program was:" >&5
3504 cat conftest.$ac_ext >&5
3506 eval "ac_cv_func_$ac_func=no"
3511 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3512 echo "$ac_t""yes" 1>&6
3513 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3514 cat >> confdefs.h <<EOF
3515 #define $ac_tr_func 1
3519 echo "$ac_t""no" 1>&6
3524 if test "${ac_cv_func_stpcpy+set}" != "set"; then
3525 for ac_func in stpcpy
3527 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3528 echo "configure:3529: checking for $ac_func" >&5
3529 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3530 echo $ac_n "(cached) $ac_c" 1>&6
3532 cat > conftest.$ac_ext <<EOF
3533 #line 3534 "configure"
3534 #include "confdefs.h"
3535 /* System header to define __stub macros and hopefully few prototypes,
3536 which can conflict with char $ac_func(); below. */
3538 /* Override any gcc2 internal prototype to avoid an error. */
3539 /* We use char because int might match the return type of a gcc2
3540 builtin and then its argument prototype would still apply. */
3545 /* The GNU C library defines this for functions which it implements
3546 to always fail with ENOSYS. Some functions are actually named
3547 something starting with __ and the normal name is an alias. */
3548 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3556 if { (eval echo configure:3557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3558 eval "ac_cv_func_$ac_func=yes"
3560 echo "configure: failed program was:" >&5
3561 cat conftest.$ac_ext >&5
3563 eval "ac_cv_func_$ac_func=no"
3568 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3569 echo "$ac_t""yes" 1>&6
3570 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3571 cat >> confdefs.h <<EOF
3572 #define $ac_tr_func 1
3576 echo "$ac_t""no" 1>&6
3581 if test "${ac_cv_func_stpcpy}" = "yes"; then
3582 cat >> confdefs.h <<\EOF
3583 #define HAVE_STPCPY 1
3588 if test $ac_cv_header_locale_h = yes; then
3589 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3590 echo "configure:3591: checking for LC_MESSAGES" >&5
3591 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3592 echo $ac_n "(cached) $ac_c" 1>&6
3594 cat > conftest.$ac_ext <<EOF
3595 #line 3596 "configure"
3596 #include "confdefs.h"
3602 if { (eval echo configure:3603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3604 am_cv_val_LC_MESSAGES=yes
3606 echo "configure: failed program was:" >&5
3607 cat conftest.$ac_ext >&5
3609 am_cv_val_LC_MESSAGES=no
3614 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3615 if test $am_cv_val_LC_MESSAGES = yes; then
3616 cat >> confdefs.h <<\EOF
3617 #define HAVE_LC_MESSAGES 1
3622 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3623 echo "configure:3624: checking whether NLS is requested" >&5
3624 # Check whether --enable-nls or --disable-nls was given.
3625 if test "${enable_nls+set}" = set; then
3626 enableval="$enable_nls"
3632 echo "$ac_t""$USE_NLS" 1>&6
3635 USE_INCLUDED_LIBINTL=no
3637 if test "$USE_NLS" = "yes"; then
3638 cat >> confdefs.h <<\EOF
3639 #define ENABLE_NLS 1
3642 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3643 echo "configure:3644: checking whether included gettext is requested" >&5
3644 # Check whether --with-included-gettext or --without-included-gettext was given.
3645 if test "${with_included_gettext+set}" = set; then
3646 withval="$with_included_gettext"
3647 nls_cv_force_use_gnu_gettext=$withval
3649 nls_cv_force_use_gnu_gettext=no
3652 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3654 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
3655 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3657 nls_cv_header_libgt=
3660 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3661 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3662 echo "configure:3663: checking for libintl.h" >&5
3663 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3664 echo $ac_n "(cached) $ac_c" 1>&6
3666 cat > conftest.$ac_ext <<EOF
3667 #line 3668 "configure"
3668 #include "confdefs.h"
3669 #include <libintl.h>
3671 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3672 { (eval echo configure:3673: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3673 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3674 if test -z "$ac_err"; then
3676 eval "ac_cv_header_$ac_safe=yes"
3679 echo "configure: failed program was:" >&5
3680 cat conftest.$ac_ext >&5
3682 eval "ac_cv_header_$ac_safe=no"
3686 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3687 echo "$ac_t""yes" 1>&6
3688 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3689 echo "configure:3690: checking for gettext in libc" >&5
3690 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3691 echo $ac_n "(cached) $ac_c" 1>&6
3693 cat > conftest.$ac_ext <<EOF
3694 #line 3695 "configure"
3695 #include "confdefs.h"
3696 #include <libintl.h>
3698 return (int) gettext ("")
3701 if { (eval echo configure:3702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3703 gt_cv_func_gettext_libc=yes
3705 echo "configure: failed program was:" >&5
3706 cat conftest.$ac_ext >&5
3708 gt_cv_func_gettext_libc=no
3713 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3715 if test "$gt_cv_func_gettext_libc" != "yes"; then
3716 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3717 echo "configure:3718: checking for bindtextdomain in -lintl" >&5
3718 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3719 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3720 echo $ac_n "(cached) $ac_c" 1>&6
3722 ac_save_LIBS="$LIBS"
3724 cat > conftest.$ac_ext <<EOF
3725 #line 3726 "configure"
3726 #include "confdefs.h"
3727 /* Override any gcc2 internal prototype to avoid an error. */
3728 /* We use char because int might match the return type of a gcc2
3729 builtin and then its argument prototype would still apply. */
3730 char bindtextdomain();
3736 if { (eval echo configure:3737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3738 eval "ac_cv_lib_$ac_lib_var=yes"
3740 echo "configure: failed program was:" >&5
3741 cat conftest.$ac_ext >&5
3743 eval "ac_cv_lib_$ac_lib_var=no"
3746 LIBS="$ac_save_LIBS"
3749 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3750 echo "$ac_t""yes" 1>&6
3751 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3752 echo "configure:3753: checking for gettext in libintl" >&5
3753 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3754 echo $ac_n "(cached) $ac_c" 1>&6
3756 cat > conftest.$ac_ext <<EOF
3757 #line 3758 "configure"
3758 #include "confdefs.h"
3761 return (int) gettext ("")
3764 if { (eval echo configure:3765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3766 gt_cv_func_gettext_libintl=yes
3768 echo "configure: failed program was:" >&5
3769 cat conftest.$ac_ext >&5
3771 gt_cv_func_gettext_libintl=no
3776 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3778 echo "$ac_t""no" 1>&6
3783 if test "$gt_cv_func_gettext_libc" = "yes" \
3784 || test "$gt_cv_func_gettext_libintl" = "yes"; then
3785 cat >> confdefs.h <<\EOF
3786 #define HAVE_GETTEXT 1
3789 # Extract the first word of "msgfmt", so it can be a program name with args.
3790 set dummy msgfmt; ac_word=$2
3791 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3792 echo "configure:3793: checking for $ac_word" >&5
3793 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3794 echo $ac_n "(cached) $ac_c" 1>&6
3798 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3801 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3802 for ac_dir in $PATH; do
3803 test -z "$ac_dir" && ac_dir=.
3804 if test -f $ac_dir/$ac_word; then
3805 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3806 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3812 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
3816 MSGFMT="$ac_cv_path_MSGFMT"
3817 if test -n "$MSGFMT"; then
3818 echo "$ac_t""$MSGFMT" 1>&6
3820 echo "$ac_t""no" 1>&6
3822 if test "$MSGFMT" != "no"; then
3823 for ac_func in dcgettext
3825 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3826 echo "configure:3827: checking for $ac_func" >&5
3827 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3828 echo $ac_n "(cached) $ac_c" 1>&6
3830 cat > conftest.$ac_ext <<EOF
3831 #line 3832 "configure"
3832 #include "confdefs.h"
3833 /* System header to define __stub macros and hopefully few prototypes,
3834 which can conflict with char $ac_func(); below. */
3836 /* Override any gcc2 internal prototype to avoid an error. */
3837 /* We use char because int might match the return type of a gcc2
3838 builtin and then its argument prototype would still apply. */
3843 /* The GNU C library defines this for functions which it implements
3844 to always fail with ENOSYS. Some functions are actually named
3845 something starting with __ and the normal name is an alias. */
3846 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3854 if { (eval echo configure:3855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3856 eval "ac_cv_func_$ac_func=yes"
3858 echo "configure: failed program was:" >&5
3859 cat conftest.$ac_ext >&5
3861 eval "ac_cv_func_$ac_func=no"
3866 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3867 echo "$ac_t""yes" 1>&6
3868 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3869 cat >> confdefs.h <<EOF
3870 #define $ac_tr_func 1
3874 echo "$ac_t""no" 1>&6
3878 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3879 set dummy gmsgfmt; ac_word=$2
3880 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3881 echo "configure:3882: checking for $ac_word" >&5
3882 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3883 echo $ac_n "(cached) $ac_c" 1>&6
3887 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3890 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3893 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3895 for ac_dir in $ac_dummy; do
3896 test -z "$ac_dir" && ac_dir=.
3897 if test -f $ac_dir/$ac_word; then
3898 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3903 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3907 GMSGFMT="$ac_cv_path_GMSGFMT"
3908 if test -n "$GMSGFMT"; then
3909 echo "$ac_t""$GMSGFMT" 1>&6
3911 echo "$ac_t""no" 1>&6
3914 # Extract the first word of "xgettext", so it can be a program name with args.
3915 set dummy xgettext; ac_word=$2
3916 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3917 echo "configure:3918: checking for $ac_word" >&5
3918 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3919 echo $ac_n "(cached) $ac_c" 1>&6
3923 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3926 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3927 for ac_dir in $PATH; do
3928 test -z "$ac_dir" && ac_dir=.
3929 if test -f $ac_dir/$ac_word; then
3930 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3931 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3937 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3941 XGETTEXT="$ac_cv_path_XGETTEXT"
3942 if test -n "$XGETTEXT"; then
3943 echo "$ac_t""$XGETTEXT" 1>&6
3945 echo "$ac_t""no" 1>&6
3948 cat > conftest.$ac_ext <<EOF
3949 #line 3950 "configure"
3950 #include "confdefs.h"
3953 extern int _nl_msg_cat_cntr;
3954 return _nl_msg_cat_cntr
3957 if { (eval echo configure:3958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3962 echo "configure: failed program was:" >&5
3963 cat conftest.$ac_ext >&5
3974 echo "$ac_t""no" 1>&6
3979 if test "$CATOBJEXT" = "NONE"; then
3980 nls_cv_use_gnu_gettext=yes
3984 if test "$nls_cv_use_gnu_gettext" = "yes"; then
3985 INTLOBJS="\$(GETTOBJS)"
3986 # Extract the first word of "msgfmt", so it can be a program name with args.
3987 set dummy msgfmt; ac_word=$2
3988 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3989 echo "configure:3990: checking for $ac_word" >&5
3990 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3991 echo $ac_n "(cached) $ac_c" 1>&6
3995 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3998 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3999 for ac_dir in $PATH; do
4000 test -z "$ac_dir" && ac_dir=.
4001 if test -f $ac_dir/$ac_word; then
4002 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4003 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
4009 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
4013 MSGFMT="$ac_cv_path_MSGFMT"
4014 if test -n "$MSGFMT"; then
4015 echo "$ac_t""$MSGFMT" 1>&6
4017 echo "$ac_t""no" 1>&6
4020 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4021 set dummy gmsgfmt; ac_word=$2
4022 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4023 echo "configure:4024: checking for $ac_word" >&5
4024 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4025 echo $ac_n "(cached) $ac_c" 1>&6
4029 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4032 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
4035 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4037 for ac_dir in $ac_dummy; do
4038 test -z "$ac_dir" && ac_dir=.
4039 if test -f $ac_dir/$ac_word; then
4040 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
4045 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4049 GMSGFMT="$ac_cv_path_GMSGFMT"
4050 if test -n "$GMSGFMT"; then
4051 echo "$ac_t""$GMSGFMT" 1>&6
4053 echo "$ac_t""no" 1>&6
4056 # Extract the first word of "xgettext", so it can be a program name with args.
4057 set dummy xgettext; ac_word=$2
4058 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4059 echo "configure:4060: checking for $ac_word" >&5
4060 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4061 echo $ac_n "(cached) $ac_c" 1>&6
4065 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4068 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4069 for ac_dir in $PATH; do
4070 test -z "$ac_dir" && ac_dir=.
4071 if test -f $ac_dir/$ac_word; then
4072 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4073 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
4079 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4083 XGETTEXT="$ac_cv_path_XGETTEXT"
4084 if test -n "$XGETTEXT"; then
4085 echo "$ac_t""$XGETTEXT" 1>&6
4087 echo "$ac_t""no" 1>&6
4091 USE_INCLUDED_LIBINTL=yes
4095 INTLDEPS='$(top_builddir)/../intl/libintl.a'
4097 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
4098 nls_cv_header_intl=libintl.h
4099 nls_cv_header_libgt=libgettext.h
4102 if test "$XGETTEXT" != ":"; then
4103 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
4106 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
4111 # We need to process the po/ directory.
4115 nls_cv_header_intl=libintl.h
4116 nls_cv_header_libgt=libgettext.h
4119 # If this is used in GNU gettext we have to set USE_NLS to `yes'
4120 # because some of the sources are only built for this goal.
4121 if test "$PACKAGE" = gettext; then
4123 USE_INCLUDED_LIBINTL=yes
4126 for lang in $ALL_LINGUAS; do
4127 GMOFILES="$GMOFILES $lang.gmo"
4128 POFILES="$POFILES $lang.po"
4144 if test "x$CATOBJEXT" != "x"; then
4145 if test "x$ALL_LINGUAS" = "x"; then
4148 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
4149 echo "configure:4150: checking for catalogs to be installed" >&5
4151 for lang in ${LINGUAS=$ALL_LINGUAS}; do
4152 case "$ALL_LINGUAS" in
4153 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
4156 LINGUAS=$NEW_LINGUAS
4157 echo "$ac_t""$LINGUAS" 1>&6
4160 if test -n "$LINGUAS"; then
4161 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
4165 if test $ac_cv_header_locale_h = yes; then
4166 INCLUDE_LOCALE_H="#include <locale.h>"
4169 /* The system does not provide the header <locale.h>. Take care yourself. */"
4173 if test -f $srcdir/po2tbl.sed.in; then
4174 if test "$CATOBJEXT" = ".cat"; then
4175 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
4176 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
4177 echo "configure:4178: checking for linux/version.h" >&5
4178 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4179 echo $ac_n "(cached) $ac_c" 1>&6
4181 cat > conftest.$ac_ext <<EOF
4182 #line 4183 "configure"
4183 #include "confdefs.h"
4184 #include <linux/version.h>
4186 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4187 { (eval echo configure:4188: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4188 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4189 if test -z "$ac_err"; then
4191 eval "ac_cv_header_$ac_safe=yes"
4194 echo "configure: failed program was:" >&5
4195 cat conftest.$ac_ext >&5
4197 eval "ac_cv_header_$ac_safe=no"
4201 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4202 echo "$ac_t""yes" 1>&6
4205 echo "$ac_t""no" 1>&6
4210 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
4212 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
4213 $srcdir/po2tbl.sed.in > po2tbl.sed
4216 if test "$PACKAGE" = "gettext"; then
4226 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
4232 if test -f $srcdir/po/POTFILES.in; then
4233 test -d po || mkdir po
4234 if test "x$srcdir" != "x."; then
4235 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
4236 posrcprefix="$srcdir/"
4238 posrcprefix="../$srcdir/"
4244 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
4245 < $srcdir/po/POTFILES.in > po/POTFILES
4249 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
4250 echo "configure:4251: checking whether to enable maintainer-specific portions of Makefiles" >&5
4251 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4252 if test "${enable_maintainer_mode+set}" = set; then
4253 enableval="$enable_maintainer_mode"
4254 USE_MAINTAINER_MODE=$enableval
4256 USE_MAINTAINER_MODE=no
4259 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
4262 if test $USE_MAINTAINER_MODE = yes; then
4263 MAINTAINER_MODE_TRUE=
4264 MAINTAINER_MODE_FALSE='#'
4266 MAINTAINER_MODE_TRUE='#'
4267 MAINTAINER_MODE_FALSE=
4269 MAINT=$MAINTAINER_MODE_TRUE
4274 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
4275 echo "configure:4276: checking for executable suffix" >&5
4276 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
4277 echo $ac_n "(cached) $ac_c" 1>&6
4279 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4283 echo 'int main () { return 0; }' > conftest.$ac_ext
4285 if { (eval echo configure:4286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
4286 for file in conftest.*; do
4288 *.c | *.o | *.obj) ;;
4289 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
4293 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
4296 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
4301 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
4302 echo "$ac_t""${ac_cv_exeext}" 1>&6
4306 for ac_hdr in sys/gmon_out.h
4308 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4309 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4310 echo "configure:4311: checking for $ac_hdr" >&5
4311 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4312 echo $ac_n "(cached) $ac_c" 1>&6
4314 cat > conftest.$ac_ext <<EOF
4315 #line 4316 "configure"
4316 #include "confdefs.h"
4319 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4320 { (eval echo configure:4321: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4321 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4322 if test -z "$ac_err"; then
4324 eval "ac_cv_header_$ac_safe=yes"
4327 echo "configure: failed program was:" >&5
4328 cat conftest.$ac_ext >&5
4330 eval "ac_cv_header_$ac_safe=no"
4334 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4335 echo "$ac_t""yes" 1>&6
4336 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4337 cat >> confdefs.h <<EOF
4338 #define $ac_tr_hdr 1
4342 echo "$ac_t""no" 1>&6
4347 build_warnings="-W -Wall"
4348 # Check whether --enable-build-warnings or --disable-build-warnings was given.
4349 if test "${enable_build_warnings+set}" = set; then
4350 enableval="$enable_build_warnings"
4351 case "${enableval}" in
4353 no) build_warnings="-w";;
4354 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4355 build_warnings="${build_warnings} ${t}";;
4356 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4357 build_warnings="${t} ${build_warnings}";;
4358 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4360 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
4361 echo "Setting warning flags = $build_warnings" 6>&1
4365 if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then
4366 WARN_CFLAGS="${build_warnings}"
4371 cat > confcache <<\EOF
4372 # This file is a shell script that caches the results of configure
4373 # tests run on this system so they can be shared between configure
4374 # scripts and configure runs. It is not useful on other systems.
4375 # If it contains results you don't want to keep, you may remove or edit it.
4377 # By default, configure uses ./config.cache as the cache file,
4378 # creating it if it does not exist already. You can give configure
4379 # the --cache-file=FILE option to use a different cache file; that is
4380 # what configure does when it calls configure scripts in
4381 # subdirectories, so they share the cache.
4382 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4383 # config.status only pays attention to the cache file if you give it the
4384 # --recheck option to rerun configure.
4387 # The following way of writing the cache mishandles newlines in values,
4388 # but we know of no workaround that is simple, portable, and efficient.
4389 # So, don't put newlines in cache variables' values.
4390 # Ultrix sh set writes to stderr and can't be redirected directly,
4391 # and sets the high bit in the cache file unless we assign to the vars.
4393 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4395 # `set' does not quote correctly, so add quotes (double-quote substitution
4396 # turns \\\\ into \\, and sed turns \\ into \).
4398 -e "s/'/'\\\\''/g" \
4399 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4402 # `set' quotes correctly as required by POSIX, so do not add quotes.
4403 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4406 if cmp -s $cache_file confcache; then
4409 if test -w $cache_file; then
4410 echo "updating cache $cache_file"
4411 cat confcache > $cache_file
4413 echo "not updating unwritable cache $cache_file"
4418 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4420 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4421 # Let make expand exec_prefix.
4422 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4424 # Any assignment to VPATH causes Sun make to only execute
4425 # the first set of double-colon rules, so remove it if not needed.
4426 # If there is a colon in the path, we need to keep it.
4427 if test "x$srcdir" = x.; then
4428 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4431 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4433 DEFS=-DHAVE_CONFIG_H
4435 # Without the "./", some shells look in PATH for config.status.
4436 : ${CONFIG_STATUS=./config.status}
4438 echo creating $CONFIG_STATUS
4439 rm -f $CONFIG_STATUS
4440 cat > $CONFIG_STATUS <<EOF
4442 # Generated automatically by configure.
4443 # Run this file to recreate the current configuration.
4444 # This directory was configured as follows,
4445 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4447 # $0 $ac_configure_args
4449 # Compiler output produced by configure, useful for debugging
4450 # configure, is in ./config.log if it exists.
4452 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4455 case "\$ac_option" in
4456 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4457 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4458 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4459 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4460 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4462 -help | --help | --hel | --he | --h)
4463 echo "\$ac_cs_usage"; exit 0 ;;
4464 *) echo "\$ac_cs_usage"; exit 1 ;;
4468 ac_given_srcdir=$srcdir
4469 ac_given_INSTALL="$INSTALL"
4471 trap 'rm -fr `echo "Makefile po/Makefile.in:po/Make-in gconfig.h:gconfig.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4473 cat >> $CONFIG_STATUS <<EOF
4475 # Protect against being on the right side of a sed subst in config.status.
4476 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4477 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4481 s%@CFLAGS@%$CFLAGS%g
4482 s%@CPPFLAGS@%$CPPFLAGS%g
4483 s%@CXXFLAGS@%$CXXFLAGS%g
4484 s%@FFLAGS@%$FFLAGS%g
4486 s%@LDFLAGS@%$LDFLAGS%g
4488 s%@exec_prefix@%$exec_prefix%g
4489 s%@prefix@%$prefix%g
4490 s%@program_transform_name@%$program_transform_name%g
4491 s%@bindir@%$bindir%g
4492 s%@sbindir@%$sbindir%g
4493 s%@libexecdir@%$libexecdir%g
4494 s%@datadir@%$datadir%g
4495 s%@sysconfdir@%$sysconfdir%g
4496 s%@sharedstatedir@%$sharedstatedir%g
4497 s%@localstatedir@%$localstatedir%g
4498 s%@libdir@%$libdir%g
4499 s%@includedir@%$includedir%g
4500 s%@oldincludedir@%$oldincludedir%g
4501 s%@infodir@%$infodir%g
4502 s%@mandir@%$mandir%g
4504 s%@host_alias@%$host_alias%g
4505 s%@host_cpu@%$host_cpu%g
4506 s%@host_vendor@%$host_vendor%g
4507 s%@host_os@%$host_os%g
4508 s%@target@%$target%g
4509 s%@target_alias@%$target_alias%g
4510 s%@target_cpu@%$target_cpu%g
4511 s%@target_vendor@%$target_vendor%g
4512 s%@target_os@%$target_os%g
4514 s%@build_alias@%$build_alias%g
4515 s%@build_cpu@%$build_cpu%g
4516 s%@build_vendor@%$build_vendor%g
4517 s%@build_os@%$build_os%g
4518 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4519 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4520 s%@INSTALL_DATA@%$INSTALL_DATA%g
4521 s%@PACKAGE@%$PACKAGE%g
4522 s%@VERSION@%$VERSION%g
4523 s%@ACLOCAL@%$ACLOCAL%g
4524 s%@AUTOCONF@%$AUTOCONF%g
4525 s%@AUTOMAKE@%$AUTOMAKE%g
4526 s%@AUTOHEADER@%$AUTOHEADER%g
4527 s%@MAKEINFO@%$MAKEINFO%g
4528 s%@SET_MAKE@%$SET_MAKE%g
4531 s%@OBJEXT@%$OBJEXT%g
4532 s%@EXEEXT@%$EXEEXT%g
4533 s%@RANLIB@%$RANLIB%g
4535 s%@LIBTOOL@%$LIBTOOL%g
4537 s%@ALLOCA@%$ALLOCA%g
4538 s%@USE_NLS@%$USE_NLS%g
4539 s%@MSGFMT@%$MSGFMT%g
4540 s%@GMSGFMT@%$GMSGFMT%g
4541 s%@XGETTEXT@%$XGETTEXT%g
4542 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
4543 s%@CATALOGS@%$CATALOGS%g
4544 s%@CATOBJEXT@%$CATOBJEXT%g
4545 s%@DATADIRNAME@%$DATADIRNAME%g
4546 s%@GMOFILES@%$GMOFILES%g
4547 s%@INSTOBJEXT@%$INSTOBJEXT%g
4548 s%@INTLDEPS@%$INTLDEPS%g
4549 s%@INTLLIBS@%$INTLLIBS%g
4550 s%@INTLOBJS@%$INTLOBJS%g
4551 s%@POFILES@%$POFILES%g
4553 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
4555 s%@GT_YES@%$GT_YES%g
4556 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
4558 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
4559 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
4561 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
4566 cat >> $CONFIG_STATUS <<\EOF
4568 # Split the substitutions into bite-sized pieces for seds with
4569 # small command number limits, like on Digital OSF/1 and HP-UX.
4570 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4571 ac_file=1 # Number of current file.
4572 ac_beg=1 # First line for current file.
4573 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4576 while $ac_more_lines; do
4577 if test $ac_beg -gt 1; then
4578 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4580 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4582 if test ! -s conftest.s$ac_file; then
4584 rm -f conftest.s$ac_file
4586 if test -z "$ac_sed_cmds"; then
4587 ac_sed_cmds="sed -f conftest.s$ac_file"
4589 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4591 ac_file=`expr $ac_file + 1`
4593 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4596 if test -z "$ac_sed_cmds"; then
4601 cat >> $CONFIG_STATUS <<EOF
4603 CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile.in:po/Make-in"}
4605 cat >> $CONFIG_STATUS <<\EOF
4606 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4607 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4609 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4610 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4611 *) ac_file_in="${ac_file}.in" ;;
4614 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4616 # Remove last slash and all that follows it. Not all systems have dirname.
4617 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4618 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4619 # The file is in a subdirectory.
4620 test ! -d "$ac_dir" && mkdir "$ac_dir"
4621 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4622 # A "../" for each directory in $ac_dir_suffix.
4623 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4625 ac_dir_suffix= ac_dots=
4628 case "$ac_given_srcdir" in
4630 if test -z "$ac_dots"; then top_srcdir=.
4631 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4632 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4634 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4635 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4638 case "$ac_given_INSTALL" in
4639 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4640 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4643 echo creating "$ac_file"
4645 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4647 *Makefile*) ac_comsub="1i\\
4648 # $configure_input" ;;
4652 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4654 s%@configure_input@%$configure_input%g
4655 s%@srcdir@%$srcdir%g
4656 s%@top_srcdir@%$top_srcdir%g
4657 s%@INSTALL@%$INSTALL%g
4658 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4662 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4663 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4665 # ac_d sets the value in "#define NAME VALUE" lines.
4666 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4667 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4670 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4671 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4672 ac_uB='\([ ]\)%\1#\2define\3'
4675 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4676 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4677 ac_eB='$%\1#\2define\3'
4681 if test "${CONFIG_HEADERS+set}" != set; then
4683 cat >> $CONFIG_STATUS <<EOF
4684 CONFIG_HEADERS="gconfig.h:gconfig.in"
4686 cat >> $CONFIG_STATUS <<\EOF
4688 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4689 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4691 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4692 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4693 *) ac_file_in="${ac_file}.in" ;;
4696 echo creating $ac_file
4698 rm -f conftest.frag conftest.in conftest.out
4699 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4700 cat $ac_file_inputs > conftest.in
4704 # Transform confdefs.h into a sed script conftest.vals that substitutes
4705 # the proper values into config.h.in to produce config.h. And first:
4706 # Protect against being on the right side of a sed subst in config.status.
4707 # Protect against being in an unquoted here document in config.status.
4709 cat > conftest.hdr <<\EOF
4712 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4716 sed -n -f conftest.hdr confdefs.h > conftest.vals
4719 # This sed command replaces #undef with comments. This is necessary, for
4720 # example, in the case of _POSIX_SOURCE, which is predefined and required
4721 # on some systems where configure will not decide to define it.
4722 cat >> conftest.vals <<\EOF
4723 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4726 # Break up conftest.vals because some shells have a limit on
4727 # the size of here documents, and old seds have small limits too.
4732 ac_lines=`grep -c . conftest.vals`
4733 # grep -c gives empty output for an empty file on some AIX systems.
4734 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4735 # Write a limited-size here document to conftest.frag.
4736 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4737 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4739 sed -f conftest.frag conftest.in > conftest.out
4741 mv conftest.out conftest.in
4743 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4745 mv conftest.tail conftest.vals
4749 cat >> $CONFIG_STATUS <<\EOF
4750 rm -f conftest.frag conftest.h
4751 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4752 cat conftest.in >> conftest.h
4754 if cmp -s $ac_file conftest.h 2>/dev/null; then
4755 echo "$ac_file is unchanged"
4758 # Remove last slash and all that follows it. Not all systems have dirname.
4759 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4760 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4761 # The file is in a subdirectory.
4762 test ! -d "$ac_dir" && mkdir "$ac_dir"
4765 mv conftest.h $ac_file
4770 cat >> $CONFIG_STATUS <<EOF
4774 cat >> $CONFIG_STATUS <<\EOF
4775 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
4776 sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
4779 chmod +x $CONFIG_STATUS
4780 rm -fr confdefs* $ac_clean_files
4781 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1