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 --enable-targets alternative target configurations"
29 --enable-commonbfdlib build shared BFD/opcodes/libiberty library"
31 --enable-werror treat compile warnings as errors"
33 --enable-build-warnings Enable build-time compiler warnings if gcc is used"
35 --disable-nls do not use Native Language Support"
37 --with-included-gettext use the GNU gettext library included here"
39 --enable-maintainer-mode enable make rules and dependencies not useful
40 (and sometimes confusing) to the casual installer"
42 # Initialize some variables set by options.
43 # The variables have the same names as the options, with
44 # dashes changed to underlines.
46 cache_file=./config.cache
55 program_transform_name=s,x,x,
63 bindir='${exec_prefix}/bin'
64 sbindir='${exec_prefix}/sbin'
65 libexecdir='${exec_prefix}/libexec'
66 datadir='${prefix}/share'
67 sysconfdir='${prefix}/etc'
68 sharedstatedir='${prefix}/com'
69 localstatedir='${prefix}/var'
70 libdir='${exec_prefix}/lib'
71 includedir='${prefix}/include'
72 oldincludedir='/usr/include'
73 infodir='${prefix}/info'
74 mandir='${prefix}/man'
76 # Initialize some other variables.
79 SHELL=${CONFIG_SHELL-/bin/sh}
80 # Maximum number of lines to put in a shell here document.
87 # If the previous option needs an argument, assign it.
88 if test -n "$ac_prev"; then
89 eval "$ac_prev=\$ac_option"
95 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
99 # Accept the important Cygnus configure options, so we can diagnose typos.
103 -bindir | --bindir | --bindi | --bind | --bin | --bi)
105 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
106 bindir="$ac_optarg" ;;
108 -build | --build | --buil | --bui | --bu)
110 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
111 build="$ac_optarg" ;;
113 -cache-file | --cache-file | --cache-fil | --cache-fi \
114 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
115 ac_prev=cache_file ;;
116 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
117 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
118 cache_file="$ac_optarg" ;;
120 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
122 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
124 datadir="$ac_optarg" ;;
126 -disable-* | --disable-*)
127 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
128 # Reject names that are not valid shell variable names.
129 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
130 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
132 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
133 eval "enable_${ac_feature}=no" ;;
135 -enable-* | --enable-*)
136 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
137 # Reject names that are not valid shell variable names.
138 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
139 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
141 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
146 eval "enable_${ac_feature}='$ac_optarg'" ;;
148 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
149 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
150 | --exec | --exe | --ex)
151 ac_prev=exec_prefix ;;
152 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
153 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
154 | --exec=* | --exe=* | --ex=*)
155 exec_prefix="$ac_optarg" ;;
157 -gas | --gas | --ga | --g)
158 # Obsolete; use --with-gas.
161 -help | --help | --hel | --he)
162 # Omit some internal or obsolete options to make the list less imposing.
163 # This message is too long to be a string in the A/UX 3.1 sh.
165 Usage: configure [options] [host]
166 Options: [defaults in brackets after descriptions]
168 --cache-file=FILE cache test results in FILE
169 --help print this message
170 --no-create do not create output files
171 --quiet, --silent do not print \`checking...' messages
172 --version print the version of autoconf that created configure
173 Directory and file names:
174 --prefix=PREFIX install architecture-independent files in PREFIX
176 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
178 --bindir=DIR user executables in DIR [EPREFIX/bin]
179 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
180 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
181 --datadir=DIR read-only architecture-independent data in DIR
183 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
184 --sharedstatedir=DIR modifiable architecture-independent data in DIR
186 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
187 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
188 --includedir=DIR C header files in DIR [PREFIX/include]
189 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
190 --infodir=DIR info documentation in DIR [PREFIX/info]
191 --mandir=DIR man documentation in DIR [PREFIX/man]
192 --srcdir=DIR find the sources in DIR [configure dir or ..]
193 --program-prefix=PREFIX prepend PREFIX to installed program names
194 --program-suffix=SUFFIX append SUFFIX to installed program names
195 --program-transform-name=PROGRAM
196 run sed PROGRAM on installed program names
200 --build=BUILD configure for building on BUILD [BUILD=HOST]
201 --host=HOST configure for HOST [guessed]
202 --target=TARGET configure for TARGET [TARGET=HOST]
203 Features and packages:
204 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
205 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
206 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
207 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
208 --x-includes=DIR X include files are in DIR
209 --x-libraries=DIR X library files are in DIR
211 if test -n "$ac_help"; then
212 echo "--enable and --with options recognized:$ac_help"
216 -host | --host | --hos | --ho)
218 -host=* | --host=* | --hos=* | --ho=*)
221 -includedir | --includedir | --includedi | --included | --include \
222 | --includ | --inclu | --incl | --inc)
223 ac_prev=includedir ;;
224 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
225 | --includ=* | --inclu=* | --incl=* | --inc=*)
226 includedir="$ac_optarg" ;;
228 -infodir | --infodir | --infodi | --infod | --info | --inf)
230 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
231 infodir="$ac_optarg" ;;
233 -libdir | --libdir | --libdi | --libd)
235 -libdir=* | --libdir=* | --libdi=* | --libd=*)
236 libdir="$ac_optarg" ;;
238 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
239 | --libexe | --libex | --libe)
240 ac_prev=libexecdir ;;
241 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
242 | --libexe=* | --libex=* | --libe=*)
243 libexecdir="$ac_optarg" ;;
245 -localstatedir | --localstatedir | --localstatedi | --localstated \
246 | --localstate | --localstat | --localsta | --localst \
247 | --locals | --local | --loca | --loc | --lo)
248 ac_prev=localstatedir ;;
249 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
250 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
251 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
252 localstatedir="$ac_optarg" ;;
254 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
256 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
257 mandir="$ac_optarg" ;;
260 # Obsolete; use --without-fp.
263 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
267 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
268 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
271 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
272 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
273 | --oldin | --oldi | --old | --ol | --o)
274 ac_prev=oldincludedir ;;
275 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
276 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
277 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
278 oldincludedir="$ac_optarg" ;;
280 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
282 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
283 prefix="$ac_optarg" ;;
285 -program-prefix | --program-prefix | --program-prefi | --program-pref \
286 | --program-pre | --program-pr | --program-p)
287 ac_prev=program_prefix ;;
288 -program-prefix=* | --program-prefix=* | --program-prefi=* \
289 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
290 program_prefix="$ac_optarg" ;;
292 -program-suffix | --program-suffix | --program-suffi | --program-suff \
293 | --program-suf | --program-su | --program-s)
294 ac_prev=program_suffix ;;
295 -program-suffix=* | --program-suffix=* | --program-suffi=* \
296 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
297 program_suffix="$ac_optarg" ;;
299 -program-transform-name | --program-transform-name \
300 | --program-transform-nam | --program-transform-na \
301 | --program-transform-n | --program-transform- \
302 | --program-transform | --program-transfor \
303 | --program-transfo | --program-transf \
304 | --program-trans | --program-tran \
305 | --progr-tra | --program-tr | --program-t)
306 ac_prev=program_transform_name ;;
307 -program-transform-name=* | --program-transform-name=* \
308 | --program-transform-nam=* | --program-transform-na=* \
309 | --program-transform-n=* | --program-transform-=* \
310 | --program-transform=* | --program-transfor=* \
311 | --program-transfo=* | --program-transf=* \
312 | --program-trans=* | --program-tran=* \
313 | --progr-tra=* | --program-tr=* | --program-t=*)
314 program_transform_name="$ac_optarg" ;;
316 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
317 | -silent | --silent | --silen | --sile | --sil)
320 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
322 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
324 sbindir="$ac_optarg" ;;
326 -sharedstatedir | --sharedstatedir | --sharedstatedi \
327 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
328 | --sharedst | --shareds | --shared | --share | --shar \
330 ac_prev=sharedstatedir ;;
331 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
332 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
333 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
335 sharedstatedir="$ac_optarg" ;;
337 -site | --site | --sit)
339 -site=* | --site=* | --sit=*)
342 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
344 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
345 srcdir="$ac_optarg" ;;
347 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
348 | --syscon | --sysco | --sysc | --sys | --sy)
349 ac_prev=sysconfdir ;;
350 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
351 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
352 sysconfdir="$ac_optarg" ;;
354 -target | --target | --targe | --targ | --tar | --ta | --t)
356 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
357 target="$ac_optarg" ;;
359 -v | -verbose | --verbose | --verbos | --verbo | --verb)
362 -version | --version | --versio | --versi | --vers)
363 echo "configure generated by autoconf version 2.13"
367 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
368 # Reject names that are not valid shell variable names.
369 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
370 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
372 ac_package=`echo $ac_package| sed 's/-/_/g'`
377 eval "with_${ac_package}='$ac_optarg'" ;;
379 -without-* | --without-*)
380 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
381 # Reject names that are not valid shell variable names.
382 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
383 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
385 ac_package=`echo $ac_package| sed 's/-/_/g'`
386 eval "with_${ac_package}=no" ;;
389 # Obsolete; use --with-x.
392 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
393 | --x-incl | --x-inc | --x-in | --x-i)
394 ac_prev=x_includes ;;
395 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
396 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
397 x_includes="$ac_optarg" ;;
399 -x-libraries | --x-libraries | --x-librarie | --x-librari \
400 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
401 ac_prev=x_libraries ;;
402 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
403 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
404 x_libraries="$ac_optarg" ;;
406 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
410 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
411 echo "configure: warning: $ac_option: invalid host type" 1>&2
413 if test "x$nonopt" != xNONE; then
414 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
422 if test -n "$ac_prev"; then
423 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
426 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
428 # File descriptor usage:
431 # 2 errors and warnings
432 # 3 some systems may open it to /dev/tty
433 # 4 used on the Kubota Titan
434 # 6 checking for... messages and results
435 # 5 compiler messages saved in config.log
436 if test "$silent" = yes; then
444 This file contains any messages produced by compilers while
445 running configure, to aid debugging if configure makes a mistake.
448 # Strip out --no-create and --no-recursion so they do not pile up.
449 # Also quote any args containing shell metacharacters.
454 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
455 | --no-cr | --no-c) ;;
456 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
457 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
458 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
459 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
460 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
465 # Only set these to C if already set. These must not be set unconditionally
466 # because not all systems understand e.g. LANG=C (notably SCO).
467 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
468 # Non-C LC_CTYPE values break the ctype check.
469 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
470 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
471 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
472 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
474 # confdefs.h avoids OS command line length limits that DEFS can exceed.
475 rm -rf conftest* confdefs.h
476 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
479 # A filename unique to this package, relative to the directory that
480 # configure is in, which we can look for to find out if srcdir is correct.
483 # Find the source files, if location was not specified.
484 if test -z "$srcdir"; then
485 ac_srcdir_defaulted=yes
486 # Try the directory containing this script, then its parent.
488 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
489 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
491 if test ! -r $srcdir/$ac_unique_file; then
495 ac_srcdir_defaulted=no
497 if test ! -r $srcdir/$ac_unique_file; then
498 if test "$ac_srcdir_defaulted" = yes; then
499 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
501 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
504 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
506 # Prefer explicitly selected file to automatically selected ones.
507 if test -z "$CONFIG_SITE"; then
508 if test "x$prefix" != xNONE; then
509 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
511 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
514 for ac_site_file in $CONFIG_SITE; do
515 if test -r "$ac_site_file"; then
516 echo "loading site script $ac_site_file"
521 if test -r "$cache_file"; then
522 echo "loading cache $cache_file"
525 echo "creating cache $cache_file"
530 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
531 ac_cpp='$CPP $CPPFLAGS'
532 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
533 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
534 cross_compiling=$ac_cv_prog_cc_cross
538 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
539 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
540 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
547 ac_n= ac_c='\c' ac_t=
550 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
551 echo "configure:552: checking for Cygwin environment" >&5
552 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
553 echo $ac_n "(cached) $ac_c" 1>&6
555 cat > conftest.$ac_ext <<EOF
556 #line 557 "configure"
557 #include "confdefs.h"
562 #define __CYGWIN__ __CYGWIN32__
567 if { (eval echo configure:568: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
571 echo "configure: failed program was:" >&5
572 cat conftest.$ac_ext >&5
580 echo "$ac_t""$ac_cv_cygwin" 1>&6
582 test "$ac_cv_cygwin" = yes && CYGWIN=yes
583 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
584 echo "configure:585: checking for mingw32 environment" >&5
585 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
586 echo $ac_n "(cached) $ac_c" 1>&6
588 cat > conftest.$ac_ext <<EOF
589 #line 590 "configure"
590 #include "confdefs.h"
596 if { (eval echo configure:597: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
600 echo "configure: failed program was:" >&5
601 cat conftest.$ac_ext >&5
609 echo "$ac_t""$ac_cv_mingw32" 1>&6
611 test "$ac_cv_mingw32" = yes && MINGW32=yes
615 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
616 if test -f $ac_dir/install-sh; then
618 ac_install_sh="$ac_aux_dir/install-sh -c"
620 elif test -f $ac_dir/install.sh; then
622 ac_install_sh="$ac_aux_dir/install.sh -c"
626 if test -z "$ac_aux_dir"; then
627 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
629 ac_config_guess=$ac_aux_dir/config.guess
630 ac_config_sub=$ac_aux_dir/config.sub
631 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
634 # Do some error checking and defaulting for the host and target type.
636 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
639 # 1. You are not allowed to specify --host, --target, and nonopt at the
641 # 2. Host defaults to nonopt.
642 # 3. If nonopt is not specified, then host defaults to the current host,
643 # as determined by config.guess.
644 # 4. Target and build default to nonopt.
645 # 5. If nonopt is not specified, then target and build default to host.
647 # The aliases save the names the user supplied, while $host etc.
648 # will get canonicalized.
649 case $host---$target---$nonopt in
650 NONE---*---* | *---NONE---* | *---*---NONE) ;;
651 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
655 # Make sure we can run config.sub.
656 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
657 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
660 echo $ac_n "checking host system type""... $ac_c" 1>&6
661 echo "configure:662: checking host system type" >&5
664 case "$host_alias" in
668 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
669 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
671 *) host_alias=$nonopt ;;
675 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
676 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
677 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
678 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
679 echo "$ac_t""$host" 1>&6
681 echo $ac_n "checking target system type""... $ac_c" 1>&6
682 echo "configure:683: checking target system type" >&5
685 case "$target_alias" in
688 NONE) target_alias=$host_alias ;;
689 *) target_alias=$nonopt ;;
693 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
694 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
695 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
696 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
697 echo "$ac_t""$target" 1>&6
699 echo $ac_n "checking build system type""... $ac_c" 1>&6
700 echo "configure:701: checking build system type" >&5
703 case "$build_alias" in
706 NONE) build_alias=$host_alias ;;
707 *) build_alias=$nonopt ;;
711 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
712 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
713 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
714 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
715 echo "$ac_t""$build" 1>&6
717 test "$host_alias" != "$target_alias" &&
718 test "$program_prefix$program_suffix$program_transform_name" = \
720 program_prefix=${target_alias}-
722 # Extract the first word of "gcc", so it can be a program name with args.
723 set dummy gcc; ac_word=$2
724 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
725 echo "configure:726: checking for $ac_word" >&5
726 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
727 echo $ac_n "(cached) $ac_c" 1>&6
729 if test -n "$CC"; then
730 ac_cv_prog_CC="$CC" # Let the user override the test.
732 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
734 for ac_dir in $ac_dummy; do
735 test -z "$ac_dir" && ac_dir=.
736 if test -f $ac_dir/$ac_word; then
745 if test -n "$CC"; then
746 echo "$ac_t""$CC" 1>&6
748 echo "$ac_t""no" 1>&6
751 if test -z "$CC"; then
752 # Extract the first word of "cc", so it can be a program name with args.
753 set dummy cc; ac_word=$2
754 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
755 echo "configure:756: checking for $ac_word" >&5
756 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
757 echo $ac_n "(cached) $ac_c" 1>&6
759 if test -n "$CC"; then
760 ac_cv_prog_CC="$CC" # Let the user override the test.
762 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
765 for ac_dir in $ac_dummy; do
766 test -z "$ac_dir" && ac_dir=.
767 if test -f $ac_dir/$ac_word; then
768 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
777 if test $ac_prog_rejected = yes; then
778 # We found a bogon in the path, so make sure we never use it.
779 set dummy $ac_cv_prog_CC
781 if test $# -gt 0; then
782 # We chose a different compiler from the bogus one.
783 # However, it has the same basename, so the bogon will be chosen
784 # first if we set CC to just the basename; use the full file name.
786 set dummy "$ac_dir/$ac_word" "$@"
794 if test -n "$CC"; then
795 echo "$ac_t""$CC" 1>&6
797 echo "$ac_t""no" 1>&6
800 if test -z "$CC"; then
803 # Extract the first word of "cl", so it can be a program name with args.
804 set dummy cl; ac_word=$2
805 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
806 echo "configure:807: checking for $ac_word" >&5
807 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
808 echo $ac_n "(cached) $ac_c" 1>&6
810 if test -n "$CC"; then
811 ac_cv_prog_CC="$CC" # Let the user override the test.
813 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
815 for ac_dir in $ac_dummy; do
816 test -z "$ac_dir" && ac_dir=.
817 if test -f $ac_dir/$ac_word; then
826 if test -n "$CC"; then
827 echo "$ac_t""$CC" 1>&6
829 echo "$ac_t""no" 1>&6
834 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
837 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
838 echo "configure:839: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
841 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
842 ac_cpp='$CPP $CPPFLAGS'
843 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
844 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
845 cross_compiling=$ac_cv_prog_cc_cross
847 cat > conftest.$ac_ext << EOF
849 #line 850 "configure"
850 #include "confdefs.h"
854 if { (eval echo configure:855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
855 ac_cv_prog_cc_works=yes
856 # If we can't run a trivial program, we are probably using a cross compiler.
857 if (./conftest; exit) 2>/dev/null; then
858 ac_cv_prog_cc_cross=no
860 ac_cv_prog_cc_cross=yes
863 echo "configure: failed program was:" >&5
864 cat conftest.$ac_ext >&5
865 ac_cv_prog_cc_works=no
869 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
870 ac_cpp='$CPP $CPPFLAGS'
871 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
872 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
873 cross_compiling=$ac_cv_prog_cc_cross
875 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
876 if test $ac_cv_prog_cc_works = no; then
877 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
879 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
880 echo "configure:881: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
881 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
882 cross_compiling=$ac_cv_prog_cc_cross
884 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
885 echo "configure:886: checking whether we are using GNU C" >&5
886 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
887 echo $ac_n "(cached) $ac_c" 1>&6
889 cat > conftest.c <<EOF
894 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:895: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
901 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
903 if test $ac_cv_prog_gcc = yes; then
909 ac_test_CFLAGS="${CFLAGS+set}"
910 ac_save_CFLAGS="$CFLAGS"
912 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
913 echo "configure:914: checking whether ${CC-cc} accepts -g" >&5
914 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
915 echo $ac_n "(cached) $ac_c" 1>&6
917 echo 'void f(){}' > conftest.c
918 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
927 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
928 if test "$ac_test_CFLAGS" = set; then
929 CFLAGS="$ac_save_CFLAGS"
930 elif test $ac_cv_prog_cc_g = yes; then
931 if test "$GCC" = yes; then
937 if test "$GCC" = yes; then
944 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
945 echo "configure:946: checking for POSIXized ISC" >&5
946 if test -d /etc/conf/kconfig.d &&
947 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
949 echo "$ac_t""yes" 1>&6
950 ISC=yes # If later tests want to check for ISC.
951 cat >> confdefs.h <<\EOF
952 #define _POSIX_SOURCE 1
955 if test "$GCC" = yes; then
961 echo "$ac_t""no" 1>&6
966 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
967 am__api_version="1.4"
968 # Find a good install program. We prefer a C program (faster),
969 # so one script is as good as another. But avoid the broken or
970 # incompatible versions:
971 # SysV /etc/install, /usr/sbin/install
972 # SunOS /usr/etc/install
975 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
976 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
977 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
978 # ./install, which can be erroneously created by make from ./install.sh.
979 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
980 echo "configure:981: checking for a BSD compatible install" >&5
981 if test -z "$INSTALL"; then
982 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
983 echo $ac_n "(cached) $ac_c" 1>&6
985 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
986 for ac_dir in $PATH; do
987 # Account for people who put trailing slashes in PATH elements.
989 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
991 # OSF1 and SCO ODT 3.0 have their own names for install.
992 # Don't use installbsd from OSF since it installs stuff as root
994 for ac_prog in ginstall scoinst install; do
995 if test -f $ac_dir/$ac_prog; then
996 if test $ac_prog = install &&
997 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
998 # AIX install. It has an incompatible calling convention.
1001 ac_cv_path_install="$ac_dir/$ac_prog -c"
1012 if test "${ac_cv_path_install+set}" = set; then
1013 INSTALL="$ac_cv_path_install"
1015 # As a last resort, use the slow shell script. We don't cache a
1016 # path for INSTALL within a source directory, because that will
1017 # break other packages using the cache if that directory is
1018 # removed, or if the path is relative.
1019 INSTALL="$ac_install_sh"
1022 echo "$ac_t""$INSTALL" 1>&6
1024 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1025 # It thinks the first close brace ends the variable substitution.
1026 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1028 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1030 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1032 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1033 echo "configure:1034: checking whether build environment is sane" >&5
1036 echo timestamp > conftestfile
1037 # Do `set' in a subshell so we don't clobber the current shell's
1038 # arguments. Must try -L first in case configure is actually a
1039 # symlink; some systems play weird games with the mod time of symlinks
1040 # (eg FreeBSD returns the mod time of the symlink's containing
1043 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1044 if test "$*" = "X"; then
1046 set X `ls -t $srcdir/configure conftestfile`
1048 if test "$*" != "X $srcdir/configure conftestfile" \
1049 && test "$*" != "X conftestfile $srcdir/configure"; then
1051 # If neither matched, then we have a broken ls. This can happen
1052 # if, for instance, CONFIG_SHELL is bash and it inherits a
1053 # broken ls alias from the environment. This has actually
1054 # happened. Such a system could not be considered "sane".
1055 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1056 alias in your environment" 1>&2; exit 1; }
1059 test "$2" = conftestfile
1065 { echo "configure: error: newly created file is older than distributed files!
1066 Check your system clock" 1>&2; exit 1; }
1069 echo "$ac_t""yes" 1>&6
1070 if test "$program_transform_name" = s,x,x,; then
1071 program_transform_name=
1073 # Double any \ or $. echo might interpret backslashes.
1074 cat <<\EOF_SED > conftestsed
1075 s,\\,\\\\,g; s,\$,$$,g
1077 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1080 test "$program_prefix" != NONE &&
1081 program_transform_name="s,^,${program_prefix},; $program_transform_name"
1082 # Use a double $ so make ignores it.
1083 test "$program_suffix" != NONE &&
1084 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1086 # sed with no file args requires a program.
1087 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1089 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1090 echo "configure:1091: checking whether ${MAKE-make} sets \${MAKE}" >&5
1091 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1092 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1093 echo $ac_n "(cached) $ac_c" 1>&6
1095 cat > conftestmake <<\EOF
1097 @echo 'ac_maketemp="${MAKE}"'
1099 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1100 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1101 if test -n "$ac_maketemp"; then
1102 eval ac_cv_prog_make_${ac_make}_set=yes
1104 eval ac_cv_prog_make_${ac_make}_set=no
1108 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1109 echo "$ac_t""yes" 1>&6
1112 echo "$ac_t""no" 1>&6
1113 SET_MAKE="MAKE=${MAKE-make}"
1119 VERSION=${BFD_VERSION}
1121 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1122 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1124 cat >> confdefs.h <<EOF
1125 #define PACKAGE "$PACKAGE"
1128 cat >> confdefs.h <<EOF
1129 #define VERSION "$VERSION"
1134 missing_dir=`cd $ac_aux_dir && pwd`
1135 echo $ac_n "checking for working aclocal-${am__api_version}""... $ac_c" 1>&6
1136 echo "configure:1137: checking for working aclocal-${am__api_version}" >&5
1137 # Run test in a subshell; some versions of sh will print an error if
1138 # an executable is not found, even if stderr is redirected.
1139 # Redirect stdin to placate older versions of autoconf. Sigh.
1140 if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1141 ACLOCAL=aclocal-${am__api_version}
1142 echo "$ac_t""found" 1>&6
1144 ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
1145 echo "$ac_t""missing" 1>&6
1148 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1149 echo "configure:1150: checking for working autoconf" >&5
1150 # Run test in a subshell; some versions of sh will print an error if
1151 # an executable is not found, even if stderr is redirected.
1152 # Redirect stdin to placate older versions of autoconf. Sigh.
1153 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1155 echo "$ac_t""found" 1>&6
1157 AUTOCONF="$missing_dir/missing autoconf"
1158 echo "$ac_t""missing" 1>&6
1161 echo $ac_n "checking for working automake-${am__api_version}""... $ac_c" 1>&6
1162 echo "configure:1163: checking for working automake-${am__api_version}" >&5
1163 # Run test in a subshell; some versions of sh will print an error if
1164 # an executable is not found, even if stderr is redirected.
1165 # Redirect stdin to placate older versions of autoconf. Sigh.
1166 if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1167 AUTOMAKE=automake-${am__api_version}
1168 echo "$ac_t""found" 1>&6
1170 AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
1171 echo "$ac_t""missing" 1>&6
1174 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1175 echo "configure:1176: checking for working autoheader" >&5
1176 # Run test in a subshell; some versions of sh will print an error if
1177 # an executable is not found, even if stderr is redirected.
1178 # Redirect stdin to placate older versions of autoconf. Sigh.
1179 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1180 AUTOHEADER=autoheader
1181 echo "$ac_t""found" 1>&6
1183 AUTOHEADER="$missing_dir/missing autoheader"
1184 echo "$ac_t""missing" 1>&6
1187 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1188 echo "configure:1189: checking for working makeinfo" >&5
1189 # Run test in a subshell; some versions of sh will print an error if
1190 # an executable is not found, even if stderr is redirected.
1191 # Redirect stdin to placate older versions of autoconf. Sigh.
1192 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1194 echo "$ac_t""found" 1>&6
1196 MAKEINFO="$missing_dir/missing makeinfo"
1197 echo "$ac_t""missing" 1>&6
1202 # Check whether --enable-shared or --disable-shared was given.
1203 if test "${enable_shared+set}" = set; then
1204 enableval="$enable_shared"
1205 p=${PACKAGE-default}
1207 yes) enable_shared=yes ;;
1208 no) enable_shared=no ;;
1211 # Look at the argument we got. We use all the common list separators.
1212 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1213 for pkg in $enableval; do
1214 if test "X$pkg" = "X$p"; then
1225 # Check whether --enable-static or --disable-static was given.
1226 if test "${enable_static+set}" = set; then
1227 enableval="$enable_static"
1228 p=${PACKAGE-default}
1230 yes) enable_static=yes ;;
1231 no) enable_static=no ;;
1234 # Look at the argument we got. We use all the common list separators.
1235 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1236 for pkg in $enableval; do
1237 if test "X$pkg" = "X$p"; then
1248 # Check whether --enable-fast-install or --disable-fast-install was given.
1249 if test "${enable_fast_install+set}" = set; then
1250 enableval="$enable_fast_install"
1251 p=${PACKAGE-default}
1253 yes) enable_fast_install=yes ;;
1254 no) enable_fast_install=no ;;
1256 enable_fast_install=no
1257 # Look at the argument we got. We use all the common list separators.
1258 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1259 for pkg in $enableval; do
1260 if test "X$pkg" = "X$p"; then
1261 enable_fast_install=yes
1268 enable_fast_install=yes
1271 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1272 if test "${with_gnu_ld+set}" = set; then
1273 withval="$with_gnu_ld"
1274 test "$withval" = no || with_gnu_ld=yes
1280 if test "$GCC" = yes; then
1281 # Check if gcc -print-prog-name=ld gives a path.
1282 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1283 echo "configure:1284: checking for ld used by GCC" >&5
1286 # gcc leaves a trailing carriage return which upsets mingw
1287 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1289 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1292 # Accept absolute paths.
1293 [\\/]* | [A-Za-z]:[\\/]*)
1294 re_direlt='/[^/][^/]*/\.\./'
1295 # Canonicalize the path of ld
1296 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1297 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1298 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1300 test -z "$LD" && LD="$ac_prog"
1303 # If it fails, then pretend we aren't using GCC.
1307 # If it is relative, then search for the first ld in PATH.
1311 elif test "$with_gnu_ld" = yes; then
1312 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1313 echo "configure:1314: checking for GNU ld" >&5
1315 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1316 echo "configure:1317: checking for non-GNU ld" >&5
1318 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1319 echo $ac_n "(cached) $ac_c" 1>&6
1321 if test -z "$LD"; then
1322 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1323 for ac_dir in $PATH; do
1324 test -z "$ac_dir" && ac_dir=.
1325 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1326 lt_cv_path_LD="$ac_dir/$ac_prog"
1327 # Check to see if the program is GNU ld. I'd rather use --version,
1328 # but apparently some GNU ld's only accept -v.
1329 # Break only if it was the GNU/non-GNU ld that we prefer.
1330 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1331 test "$with_gnu_ld" != no && break
1333 test "$with_gnu_ld" != yes && break
1339 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1344 if test -n "$LD"; then
1345 echo "$ac_t""$LD" 1>&6
1347 echo "$ac_t""no" 1>&6
1349 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1350 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1351 echo "configure:1352: checking if the linker ($LD) is GNU ld" >&5
1352 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1353 echo $ac_n "(cached) $ac_c" 1>&6
1355 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1356 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1357 lt_cv_prog_gnu_ld=yes
1359 lt_cv_prog_gnu_ld=no
1363 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1364 with_gnu_ld=$lt_cv_prog_gnu_ld
1367 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1368 echo "configure:1369: checking for $LD option to reload object files" >&5
1369 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1370 echo $ac_n "(cached) $ac_c" 1>&6
1372 lt_cv_ld_reload_flag='-r'
1375 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1376 reload_flag=$lt_cv_ld_reload_flag
1377 test -n "$reload_flag" && reload_flag=" $reload_flag"
1379 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1380 echo "configure:1381: checking for BSD-compatible nm" >&5
1381 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1382 echo $ac_n "(cached) $ac_c" 1>&6
1384 if test -n "$NM"; then
1385 # Let the user override the test.
1388 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1389 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1390 test -z "$ac_dir" && ac_dir=.
1391 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1392 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1393 # Check to see if the nm accepts a BSD-compat flag.
1394 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1395 # nm: unknown option "B" ignored
1396 # Tru64's nm complains that /dev/null is an invalid object file
1397 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1398 lt_cv_path_NM="$tmp_nm -B"
1400 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1401 lt_cv_path_NM="$tmp_nm -p"
1404 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1405 continue # so that we can try to find one that supports BSD flags
1410 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1415 echo "$ac_t""$NM" 1>&6
1417 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1418 echo "configure:1419: checking whether ln -s works" >&5
1419 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1420 echo $ac_n "(cached) $ac_c" 1>&6
1423 if ln -s X conftestdata 2>/dev/null
1426 ac_cv_prog_LN_S="ln -s"
1431 LN_S="$ac_cv_prog_LN_S"
1432 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1433 echo "$ac_t""yes" 1>&6
1435 echo "$ac_t""no" 1>&6
1438 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1439 echo "configure:1440: checking how to recognise dependant libraries" >&5
1440 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1441 echo $ac_n "(cached) $ac_c" 1>&6
1443 lt_cv_file_magic_cmd='$MAGIC_CMD'
1444 lt_cv_file_magic_test_file=
1445 lt_cv_deplibs_check_method='unknown'
1446 # Need to set the preceding variable on all platforms that support
1447 # interlibrary dependencies.
1448 # 'none' -- dependencies not supported.
1449 # `unknown' -- same as none, but documents that we really don't know.
1450 # 'pass_all' -- all dependencies passed with no checks.
1451 # 'test_compile' -- check by making test program.
1452 # 'file_magic [regex]' -- check by looking for files in library path
1453 # which responds to the $file_magic_cmd with a given egrep regex.
1454 # If you have `file' or equivalent on your system and you're not sure
1455 # whether `pass_all' will *always* work, you probably want this one.
1459 lt_cv_deplibs_check_method=pass_all
1463 lt_cv_deplibs_check_method=pass_all
1467 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1468 lt_cv_file_magic_cmd='/usr/bin/file -L'
1469 lt_cv_file_magic_test_file=/shlib/libc.so
1472 cygwin* | mingw* |pw32*)
1473 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1474 lt_cv_file_magic_cmd='$OBJDUMP -f'
1477 darwin* | rhapsody*)
1478 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1479 lt_cv_file_magic_cmd='/usr/bin/file -L'
1481 rhapsody* | darwin1.012)
1482 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1485 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1490 freebsd* | kfreebsd*-gnu)
1491 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1494 # Not sure whether the presence of OpenBSD here was a mistake.
1495 # Let's accept both of them until this is cleared up.
1496 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1497 lt_cv_file_magic_cmd=/usr/bin/file
1498 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1502 lt_cv_deplibs_check_method=pass_all
1507 lt_cv_deplibs_check_method=pass_all
1513 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1514 lt_cv_file_magic_cmd=/usr/bin/file
1515 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1518 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
1519 lt_cv_file_magic_cmd=/usr/bin/file
1520 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
1528 # this will be overridden with pass_all, but let us keep it just in case
1529 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1533 *-32|*"-32 ") libmagic=32-bit;;
1534 *-n32|*"-n32 ") libmagic=N32;;
1535 *-64|*"-64 ") libmagic=64-bit;;
1536 *) libmagic=never-match;;
1538 # this will be overridden with pass_all, but let us keep it just in case
1539 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1542 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1543 lt_cv_deplibs_check_method=pass_all
1546 # This must be Linux ELF.
1549 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
1550 lt_cv_deplibs_check_method=pass_all ;;
1552 # glibc up to 2.1.1 does not perform some relocations on ARM
1553 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1555 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1558 netbsd* | knetbsd*-gnu)
1559 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1560 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1562 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
1567 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1568 lt_cv_file_magic_cmd=/usr/bin/file
1569 lt_cv_file_magic_test_file=/usr/lib/libnls.so
1572 osf3* | osf4* | osf5*)
1573 # this will be overridden with pass_all, but let us keep it just in case
1574 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1575 lt_cv_file_magic_test_file=/shlib/libc.so
1576 lt_cv_deplibs_check_method=pass_all
1580 lt_cv_deplibs_check_method=pass_all
1584 lt_cv_deplibs_check_method=pass_all
1585 lt_cv_file_magic_test_file=/lib/libc.so
1588 sysv5uw[78]* | sysv4*uw2*)
1589 lt_cv_deplibs_check_method=pass_all
1592 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1593 case $host_vendor in
1595 lt_cv_deplibs_check_method=pass_all
1598 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]'
1599 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1607 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1608 file_magic_cmd=$lt_cv_file_magic_cmd
1609 deplibs_check_method=$lt_cv_deplibs_check_method
1611 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1612 echo "configure:1613: checking for object suffix" >&5
1613 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1614 echo $ac_n "(cached) $ac_c" 1>&6
1617 echo 'int i = 1;' > conftest.$ac_ext
1618 if { (eval echo configure:1619: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1619 for ac_file in conftest.*; do
1622 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1626 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1631 echo "$ac_t""$ac_cv_objext" 1>&6
1632 OBJEXT=$ac_cv_objext
1633 ac_objext=$ac_cv_objext
1637 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1638 echo "configure:1639: checking for executable suffix" >&5
1639 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1640 echo $ac_n "(cached) $ac_c" 1>&6
1642 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1646 echo 'int main () { return 0; }' > conftest.$ac_ext
1648 if { (eval echo configure:1649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1649 for file in conftest.*; do
1651 *.c | *.o | *.obj) ;;
1652 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1656 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1659 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1664 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1665 echo "$ac_t""${ac_cv_exeext}" 1>&6
1668 if test $host != $build; then
1669 ac_tool_prefix=${host_alias}-
1674 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1676 # Only perform the check for file, if the check method requires it
1677 case $deplibs_check_method in
1679 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1680 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
1681 echo "configure:1682: checking for ${ac_tool_prefix}file" >&5
1682 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1683 echo $ac_n "(cached) $ac_c" 1>&6
1687 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1690 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1693 ac_save_MAGIC_CMD="$MAGIC_CMD"
1694 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1695 ac_dummy="/usr/bin:$PATH"
1696 for ac_dir in $ac_dummy; do
1697 test -z "$ac_dir" && ac_dir=.
1698 if test -f $ac_dir/${ac_tool_prefix}file; then
1699 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
1700 if test -n "$file_magic_test_file"; then
1701 case $deplibs_check_method in
1703 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1704 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1705 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1706 egrep "$file_magic_regex" > /dev/null; then
1711 *** Warning: the command libtool uses to detect shared libraries,
1712 *** $file_magic_cmd, produces output that libtool cannot recognize.
1713 *** The result is that libtool may fail to recognize shared libraries
1714 *** as such. This will affect the creation of libtool libraries that
1715 *** depend on shared libraries, but programs linked with such libtool
1716 *** libraries will work regardless of this problem. Nevertheless, you
1717 *** may want to report the problem to your system manager and/or to
1718 *** bug-libtool@gnu.org
1728 MAGIC_CMD="$ac_save_MAGIC_CMD"
1733 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1734 if test -n "$MAGIC_CMD"; then
1735 echo "$ac_t""$MAGIC_CMD" 1>&6
1737 echo "$ac_t""no" 1>&6
1740 if test -z "$lt_cv_path_MAGIC_CMD"; then
1741 if test -n "$ac_tool_prefix"; then
1742 echo $ac_n "checking for file""... $ac_c" 1>&6
1743 echo "configure:1744: checking for file" >&5
1744 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1745 echo $ac_n "(cached) $ac_c" 1>&6
1749 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1752 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1755 ac_save_MAGIC_CMD="$MAGIC_CMD"
1756 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1757 ac_dummy="/usr/bin:$PATH"
1758 for ac_dir in $ac_dummy; do
1759 test -z "$ac_dir" && ac_dir=.
1760 if test -f $ac_dir/file; then
1761 lt_cv_path_MAGIC_CMD="$ac_dir/file"
1762 if test -n "$file_magic_test_file"; then
1763 case $deplibs_check_method in
1765 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1766 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1767 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1768 egrep "$file_magic_regex" > /dev/null; then
1773 *** Warning: the command libtool uses to detect shared libraries,
1774 *** $file_magic_cmd, produces output that libtool cannot recognize.
1775 *** The result is that libtool may fail to recognize shared libraries
1776 *** as such. This will affect the creation of libtool libraries that
1777 *** depend on shared libraries, but programs linked with such libtool
1778 *** libraries will work regardless of this problem. Nevertheless, you
1779 *** may want to report the problem to your system manager and/or to
1780 *** bug-libtool@gnu.org
1790 MAGIC_CMD="$ac_save_MAGIC_CMD"
1795 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1796 if test -n "$MAGIC_CMD"; then
1797 echo "$ac_t""$MAGIC_CMD" 1>&6
1799 echo "$ac_t""no" 1>&6
1811 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1812 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1813 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1814 echo "configure:1815: checking for $ac_word" >&5
1815 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1816 echo $ac_n "(cached) $ac_c" 1>&6
1818 if test -n "$RANLIB"; then
1819 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1821 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1823 for ac_dir in $ac_dummy; do
1824 test -z "$ac_dir" && ac_dir=.
1825 if test -f $ac_dir/$ac_word; then
1826 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1833 RANLIB="$ac_cv_prog_RANLIB"
1834 if test -n "$RANLIB"; then
1835 echo "$ac_t""$RANLIB" 1>&6
1837 echo "$ac_t""no" 1>&6
1841 if test -z "$ac_cv_prog_RANLIB"; then
1842 if test -n "$ac_tool_prefix"; then
1843 # Extract the first word of "ranlib", so it can be a program name with args.
1844 set dummy ranlib; ac_word=$2
1845 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1846 echo "configure:1847: checking for $ac_word" >&5
1847 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1848 echo $ac_n "(cached) $ac_c" 1>&6
1850 if test -n "$RANLIB"; then
1851 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1853 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1855 for ac_dir in $ac_dummy; do
1856 test -z "$ac_dir" && ac_dir=.
1857 if test -f $ac_dir/$ac_word; then
1858 ac_cv_prog_RANLIB="ranlib"
1863 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1866 RANLIB="$ac_cv_prog_RANLIB"
1867 if test -n "$RANLIB"; then
1868 echo "$ac_t""$RANLIB" 1>&6
1870 echo "$ac_t""no" 1>&6
1878 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1879 set dummy ${ac_tool_prefix}strip; ac_word=$2
1880 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1881 echo "configure:1882: checking for $ac_word" >&5
1882 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1883 echo $ac_n "(cached) $ac_c" 1>&6
1885 if test -n "$STRIP"; then
1886 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1888 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1890 for ac_dir in $ac_dummy; do
1891 test -z "$ac_dir" && ac_dir=.
1892 if test -f $ac_dir/$ac_word; then
1893 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1900 STRIP="$ac_cv_prog_STRIP"
1901 if test -n "$STRIP"; then
1902 echo "$ac_t""$STRIP" 1>&6
1904 echo "$ac_t""no" 1>&6
1908 if test -z "$ac_cv_prog_STRIP"; then
1909 if test -n "$ac_tool_prefix"; then
1910 # Extract the first word of "strip", so it can be a program name with args.
1911 set dummy strip; ac_word=$2
1912 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1913 echo "configure:1914: checking for $ac_word" >&5
1914 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1915 echo $ac_n "(cached) $ac_c" 1>&6
1917 if test -n "$STRIP"; then
1918 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1920 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1922 for ac_dir in $ac_dummy; do
1923 test -z "$ac_dir" && ac_dir=.
1924 if test -f $ac_dir/$ac_word; then
1925 ac_cv_prog_STRIP="strip"
1930 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
1933 STRIP="$ac_cv_prog_STRIP"
1934 if test -n "$STRIP"; then
1935 echo "$ac_t""$STRIP" 1>&6
1937 echo "$ac_t""no" 1>&6
1946 # Check for any special flags to pass to ltconfig.
1947 libtool_flags="--cache-file=$cache_file"
1948 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1949 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1950 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1951 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
1952 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1955 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1956 if test "${enable_libtool_lock+set}" = set; then
1957 enableval="$enable_libtool_lock"
1961 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1962 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1964 # Check whether --with-pic or --without-pic was given.
1965 if test "${with_pic+set}" = set; then
1972 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
1973 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
1975 # Some flags need to be propagated to the compiler or linker for good
1979 # Find out which ABI we are using.
1980 echo '#line 1981 "configure"' > conftest.$ac_ext
1981 if { (eval echo configure:1982: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1982 if test "$lt_cv_prog_gnu_ld" = yes; then
1983 case `/usr/bin/file conftest.$ac_objext` in
1985 LD="${LD-ld} -melf32bsmip"
1988 LD="${LD-ld} -melf32bmipn32"
1991 LD="${LD-ld} -melf64bmip"
1995 case `/usr/bin/file conftest.$ac_objext` in
2012 # Find out which ABI we are using.
2013 echo 'int i;' > conftest.$ac_ext
2014 if { (eval echo configure:2015: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2015 case "`/usr/bin/file conftest.o`" in
2028 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2029 SAVE_CFLAGS="$CFLAGS"
2030 CFLAGS="$CFLAGS -belf"
2031 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2032 echo "configure:2033: checking whether the C compiler needs -belf" >&5
2033 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2034 echo $ac_n "(cached) $ac_c" 1>&6
2038 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2039 ac_cpp='$CPP $CPPFLAGS'
2040 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2041 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2042 cross_compiling=$ac_cv_prog_cc_cross
2044 cat > conftest.$ac_ext <<EOF
2045 #line 2046 "configure"
2046 #include "confdefs.h"
2052 if { (eval echo configure:2053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2054 lt_cv_cc_needs_belf=yes
2056 echo "configure: failed program was:" >&5
2057 cat conftest.$ac_ext >&5
2059 lt_cv_cc_needs_belf=no
2063 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2064 ac_cpp='$CPP $CPPFLAGS'
2065 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2066 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2067 cross_compiling=$ac_cv_prog_cc_cross
2071 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2072 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2073 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2074 CFLAGS="$SAVE_CFLAGS"
2082 # Save cache, so that ltconfig can load it
2083 cat > confcache <<\EOF
2084 # This file is a shell script that caches the results of configure
2085 # tests run on this system so they can be shared between configure
2086 # scripts and configure runs. It is not useful on other systems.
2087 # If it contains results you don't want to keep, you may remove or edit it.
2089 # By default, configure uses ./config.cache as the cache file,
2090 # creating it if it does not exist already. You can give configure
2091 # the --cache-file=FILE option to use a different cache file; that is
2092 # what configure does when it calls configure scripts in
2093 # subdirectories, so they share the cache.
2094 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2095 # config.status only pays attention to the cache file if you give it the
2096 # --recheck option to rerun configure.
2099 # The following way of writing the cache mishandles newlines in values,
2100 # but we know of no workaround that is simple, portable, and efficient.
2101 # So, don't put newlines in cache variables' values.
2102 # Ultrix sh set writes to stderr and can't be redirected directly,
2103 # and sets the high bit in the cache file unless we assign to the vars.
2105 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2107 # `set' does not quote correctly, so add quotes (double-quote substitution
2108 # turns \\\\ into \\, and sed turns \\ into \).
2110 -e "s/'/'\\\\''/g" \
2111 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2114 # `set' quotes correctly as required by POSIX, so do not add quotes.
2115 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2118 if cmp -s $cache_file confcache; then
2121 if test -w $cache_file; then
2122 echo "updating cache $cache_file"
2123 cat confcache > $cache_file
2125 echo "not updating unwritable cache $cache_file"
2131 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2132 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2133 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2134 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2135 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2136 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2137 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2138 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2139 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2140 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2142 # Reload cache, that may have been modified by ltconfig
2143 if test -r "$cache_file"; then
2144 echo "loading cache $cache_file"
2147 echo "creating cache $cache_file"
2152 # This can be used to rebuild libtool when needed
2153 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2155 # Always use our own libtool.
2156 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2158 # Redirect the config.log output again, so that the ltconfig log is not
2159 # clobbered by the next message.
2160 exec 5>>./config.log
2168 # Check whether --enable-targets or --disable-targets was given.
2169 if test "${enable_targets+set}" = set; then
2170 enableval="$enable_targets"
2171 case "${enableval}" in
2172 yes | "") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
2174 no) enable_targets= ;;
2175 *) enable_targets=$enableval ;;
2178 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
2179 if test "${enable_commonbfdlib+set}" = set; then
2180 enableval="$enable_commonbfdlib"
2181 case "${enableval}" in
2182 yes) commonbfdlib=true ;;
2183 no) commonbfdlib=false ;;
2184 *) { echo "configure: error: bad value ${enableval} for BFD commonbfdlib option" 1>&2; exit 1; } ;;
2188 build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
2190 # Check whether --enable-werror or --disable-werror was given.
2191 if test "${enable_werror+set}" = set; then
2192 enableval="$enable_werror"
2193 case "${enableval}" in
2194 yes | y) ERROR_ON_WARNING="yes" ;;
2195 no | n) ERROR_ON_WARNING="no" ;;
2196 *) { echo "configure: error: bad value ${enableval} for --enable-werror" 1>&2; exit 1; } ;;
2201 # Enable -Werror by default, suppressing it only for --disable-werror
2202 # or --disable-build-warnings.
2203 if test "${ERROR_ON_WARNING}" != no
2205 build_warnings="$build_warnings -Werror"
2208 # Check whether --enable-build-warnings or --disable-build-warnings was given.
2209 if test "${enable_build_warnings+set}" = set; then
2210 enableval="$enable_build_warnings"
2211 case "${enableval}" in
2213 no) build_warnings="-w";;
2214 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
2215 build_warnings="${build_warnings} ${t}";;
2216 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
2217 build_warnings="${t} ${build_warnings}";;
2218 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
2220 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
2221 echo "Setting warning flags = $build_warnings" 6>&1
2225 if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then
2226 WARN_CFLAGS="${build_warnings}"
2234 if test -z "$target" ; then
2235 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
2237 if test -z "$host" ; then
2238 { echo "configure: error: Unrecognized host system type; please check config.sub." 1>&2; exit 1; }
2241 # Extract the first word of "gcc", so it can be a program name with args.
2242 set dummy gcc; ac_word=$2
2243 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2244 echo "configure:2245: checking for $ac_word" >&5
2245 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2246 echo $ac_n "(cached) $ac_c" 1>&6
2248 if test -n "$CC"; then
2249 ac_cv_prog_CC="$CC" # Let the user override the test.
2251 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2253 for ac_dir in $ac_dummy; do
2254 test -z "$ac_dir" && ac_dir=.
2255 if test -f $ac_dir/$ac_word; then
2264 if test -n "$CC"; then
2265 echo "$ac_t""$CC" 1>&6
2267 echo "$ac_t""no" 1>&6
2270 if test -z "$CC"; then
2271 # Extract the first word of "cc", so it can be a program name with args.
2272 set dummy cc; ac_word=$2
2273 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2274 echo "configure:2275: checking for $ac_word" >&5
2275 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2276 echo $ac_n "(cached) $ac_c" 1>&6
2278 if test -n "$CC"; then
2279 ac_cv_prog_CC="$CC" # Let the user override the test.
2281 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2284 for ac_dir in $ac_dummy; do
2285 test -z "$ac_dir" && ac_dir=.
2286 if test -f $ac_dir/$ac_word; then
2287 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2288 ac_prog_rejected=yes
2296 if test $ac_prog_rejected = yes; then
2297 # We found a bogon in the path, so make sure we never use it.
2298 set dummy $ac_cv_prog_CC
2300 if test $# -gt 0; then
2301 # We chose a different compiler from the bogus one.
2302 # However, it has the same basename, so the bogon will be chosen
2303 # first if we set CC to just the basename; use the full file name.
2305 set dummy "$ac_dir/$ac_word" "$@"
2313 if test -n "$CC"; then
2314 echo "$ac_t""$CC" 1>&6
2316 echo "$ac_t""no" 1>&6
2319 if test -z "$CC"; then
2320 case "`uname -s`" in
2322 # Extract the first word of "cl", so it can be a program name with args.
2323 set dummy cl; ac_word=$2
2324 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2325 echo "configure:2326: checking for $ac_word" >&5
2326 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2327 echo $ac_n "(cached) $ac_c" 1>&6
2329 if test -n "$CC"; then
2330 ac_cv_prog_CC="$CC" # Let the user override the test.
2332 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2334 for ac_dir in $ac_dummy; do
2335 test -z "$ac_dir" && ac_dir=.
2336 if test -f $ac_dir/$ac_word; then
2345 if test -n "$CC"; then
2346 echo "$ac_t""$CC" 1>&6
2348 echo "$ac_t""no" 1>&6
2353 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2356 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2357 echo "configure:2358: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2360 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2361 ac_cpp='$CPP $CPPFLAGS'
2362 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2363 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2364 cross_compiling=$ac_cv_prog_cc_cross
2366 cat > conftest.$ac_ext << EOF
2368 #line 2369 "configure"
2369 #include "confdefs.h"
2373 if { (eval echo configure:2374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2374 ac_cv_prog_cc_works=yes
2375 # If we can't run a trivial program, we are probably using a cross compiler.
2376 if (./conftest; exit) 2>/dev/null; then
2377 ac_cv_prog_cc_cross=no
2379 ac_cv_prog_cc_cross=yes
2382 echo "configure: failed program was:" >&5
2383 cat conftest.$ac_ext >&5
2384 ac_cv_prog_cc_works=no
2388 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2389 ac_cpp='$CPP $CPPFLAGS'
2390 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2391 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2392 cross_compiling=$ac_cv_prog_cc_cross
2394 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2395 if test $ac_cv_prog_cc_works = no; then
2396 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2398 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2399 echo "configure:2400: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2400 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2401 cross_compiling=$ac_cv_prog_cc_cross
2403 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2404 echo "configure:2405: checking whether we are using GNU C" >&5
2405 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2406 echo $ac_n "(cached) $ac_c" 1>&6
2408 cat > conftest.c <<EOF
2413 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2414: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2420 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2422 if test $ac_cv_prog_gcc = yes; then
2428 ac_test_CFLAGS="${CFLAGS+set}"
2429 ac_save_CFLAGS="$CFLAGS"
2431 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2432 echo "configure:2433: checking whether ${CC-cc} accepts -g" >&5
2433 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2434 echo $ac_n "(cached) $ac_c" 1>&6
2436 echo 'void f(){}' > conftest.c
2437 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2446 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2447 if test "$ac_test_CFLAGS" = set; then
2448 CFLAGS="$ac_save_CFLAGS"
2449 elif test $ac_cv_prog_cc_g = yes; then
2450 if test "$GCC" = yes; then
2456 if test "$GCC" = yes; then
2464 for ac_prog in 'bison -y' byacc
2466 # Extract the first word of "$ac_prog", so it can be a program name with args.
2467 set dummy $ac_prog; ac_word=$2
2468 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2469 echo "configure:2470: checking for $ac_word" >&5
2470 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
2471 echo $ac_n "(cached) $ac_c" 1>&6
2473 if test -n "$YACC"; then
2474 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2476 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2478 for ac_dir in $ac_dummy; do
2479 test -z "$ac_dir" && ac_dir=.
2480 if test -f $ac_dir/$ac_word; then
2481 ac_cv_prog_YACC="$ac_prog"
2488 YACC="$ac_cv_prog_YACC"
2489 if test -n "$YACC"; then
2490 echo "$ac_t""$YACC" 1>&6
2492 echo "$ac_t""no" 1>&6
2495 test -n "$YACC" && break
2497 test -n "$YACC" || YACC="yacc"
2499 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2500 echo "configure:2501: checking how to run the C preprocessor" >&5
2501 # On Suns, sometimes $CPP names a directory.
2502 if test -n "$CPP" && test -d "$CPP"; then
2505 if test -z "$CPP"; then
2506 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2507 echo $ac_n "(cached) $ac_c" 1>&6
2509 # This must be in double quotes, not single quotes, because CPP may get
2510 # substituted into the Makefile and "${CC-cc}" will confuse make.
2512 # On the NeXT, cc -E runs the code through the compiler's parser,
2513 # not just through cpp.
2514 cat > conftest.$ac_ext <<EOF
2515 #line 2516 "configure"
2516 #include "confdefs.h"
2520 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2521 { (eval echo configure:2522: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2522 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2523 if test -z "$ac_err"; then
2527 echo "configure: failed program was:" >&5
2528 cat conftest.$ac_ext >&5
2530 CPP="${CC-cc} -E -traditional-cpp"
2531 cat > conftest.$ac_ext <<EOF
2532 #line 2533 "configure"
2533 #include "confdefs.h"
2537 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2538 { (eval echo configure:2539: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2539 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2540 if test -z "$ac_err"; then
2544 echo "configure: failed program was:" >&5
2545 cat conftest.$ac_ext >&5
2547 CPP="${CC-cc} -nologo -E"
2548 cat > conftest.$ac_ext <<EOF
2549 #line 2550 "configure"
2550 #include "confdefs.h"
2554 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2555 { (eval echo configure:2556: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2556 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2557 if test -z "$ac_err"; then
2561 echo "configure: failed program was:" >&5
2562 cat conftest.$ac_ext >&5
2571 ac_cv_prog_CPP="$CPP"
2573 CPP="$ac_cv_prog_CPP"
2575 ac_cv_prog_CPP="$CPP"
2577 echo "$ac_t""$CPP" 1>&6
2579 missing_dir=`cd $ac_aux_dir && pwd`
2580 for ac_prog in flex lex
2582 # Extract the first word of "$ac_prog", so it can be a program name with args.
2583 set dummy $ac_prog; ac_word=$2
2584 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2585 echo "configure:2586: checking for $ac_word" >&5
2586 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
2587 echo $ac_n "(cached) $ac_c" 1>&6
2589 if test -n "$LEX"; then
2590 ac_cv_prog_LEX="$LEX" # Let the user override the test.
2592 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2594 for ac_dir in $ac_dummy; do
2595 test -z "$ac_dir" && ac_dir=.
2596 if test -f $ac_dir/$ac_word; then
2597 ac_cv_prog_LEX="$ac_prog"
2604 LEX="$ac_cv_prog_LEX"
2605 if test -n "$LEX"; then
2606 echo "$ac_t""$LEX" 1>&6
2608 echo "$ac_t""no" 1>&6
2611 test -n "$LEX" && break
2613 test -n "$LEX" || LEX="$missing_dir/missing flex"
2615 # Extract the first word of "flex", so it can be a program name with args.
2616 set dummy flex; ac_word=$2
2617 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2618 echo "configure:2619: checking for $ac_word" >&5
2619 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
2620 echo $ac_n "(cached) $ac_c" 1>&6
2622 if test -n "$LEX"; then
2623 ac_cv_prog_LEX="$LEX" # Let the user override the test.
2625 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2627 for ac_dir in $ac_dummy; do
2628 test -z "$ac_dir" && ac_dir=.
2629 if test -f $ac_dir/$ac_word; then
2630 ac_cv_prog_LEX="flex"
2635 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
2638 LEX="$ac_cv_prog_LEX"
2639 if test -n "$LEX"; then
2640 echo "$ac_t""$LEX" 1>&6
2642 echo "$ac_t""no" 1>&6
2645 if test -z "$LEXLIB"
2651 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
2652 echo "configure:2653: checking for yywrap in -l$ac_lib" >&5
2653 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
2654 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2655 echo $ac_n "(cached) $ac_c" 1>&6
2657 ac_save_LIBS="$LIBS"
2658 LIBS="-l$ac_lib $LIBS"
2659 cat > conftest.$ac_ext <<EOF
2660 #line 2661 "configure"
2661 #include "confdefs.h"
2662 /* Override any gcc2 internal prototype to avoid an error. */
2663 /* We use char because int might match the return type of a gcc2
2664 builtin and then its argument prototype would still apply. */
2671 if { (eval echo configure:2672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2673 eval "ac_cv_lib_$ac_lib_var=yes"
2675 echo "configure: failed program was:" >&5
2676 cat conftest.$ac_ext >&5
2678 eval "ac_cv_lib_$ac_lib_var=no"
2681 LIBS="$ac_save_LIBS"
2684 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2685 echo "$ac_t""yes" 1>&6
2688 echo "$ac_t""no" 1>&6
2693 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
2694 echo "configure:2695: checking lex output file root" >&5
2695 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
2696 echo $ac_n "(cached) $ac_c" 1>&6
2698 # The minimal lex program is just a single line: %%. But some broken lexes
2699 # (Solaris, I think it was) want two %% lines, so accommodate them.
2702 if test -f lex.yy.c; then
2703 ac_cv_prog_lex_root=lex.yy
2704 elif test -f lexyy.c; then
2705 ac_cv_prog_lex_root=lexyy
2707 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
2711 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
2712 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
2714 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
2715 echo "configure:2716: checking whether yytext is a pointer" >&5
2716 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
2717 echo $ac_n "(cached) $ac_c" 1>&6
2719 # POSIX says lex can declare yytext either as a pointer or an array; the
2720 # default is implementation-dependent. Figure out which it is, since
2721 # not all implementations provide the %pointer and %array declarations.
2722 ac_cv_prog_lex_yytext_pointer=no
2723 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
2724 ac_save_LIBS="$LIBS"
2725 LIBS="$LIBS $LEXLIB"
2726 cat > conftest.$ac_ext <<EOF
2727 #line 2728 "configure"
2728 #include "confdefs.h"
2729 `cat $LEX_OUTPUT_ROOT.c`
2734 if { (eval echo configure:2735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2736 ac_cv_prog_lex_yytext_pointer=yes
2738 echo "configure: failed program was:" >&5
2739 cat conftest.$ac_ext >&5
2742 LIBS="$ac_save_LIBS"
2743 rm -f "${LEX_OUTPUT_ROOT}.c"
2747 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
2748 if test $ac_cv_prog_lex_yytext_pointer = yes; then
2749 cat >> confdefs.h <<\EOF
2750 #define YYTEXT_POINTER 1
2756 ALL_LINGUAS="fr tr ja es sv da zh_CN ru ro rw"
2757 # Extract the first word of "ranlib", so it can be a program name with args.
2758 set dummy ranlib; ac_word=$2
2759 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2760 echo "configure:2761: checking for $ac_word" >&5
2761 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2762 echo $ac_n "(cached) $ac_c" 1>&6
2764 if test -n "$RANLIB"; then
2765 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2767 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2769 for ac_dir in $ac_dummy; do
2770 test -z "$ac_dir" && ac_dir=.
2771 if test -f $ac_dir/$ac_word; then
2772 ac_cv_prog_RANLIB="ranlib"
2777 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2780 RANLIB="$ac_cv_prog_RANLIB"
2781 if test -n "$RANLIB"; then
2782 echo "$ac_t""$RANLIB" 1>&6
2784 echo "$ac_t""no" 1>&6
2787 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2788 echo "configure:2789: checking for ANSI C header files" >&5
2789 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2790 echo $ac_n "(cached) $ac_c" 1>&6
2792 cat > conftest.$ac_ext <<EOF
2793 #line 2794 "configure"
2794 #include "confdefs.h"
2800 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2801 { (eval echo configure:2802: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2802 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2803 if test -z "$ac_err"; then
2805 ac_cv_header_stdc=yes
2808 echo "configure: failed program was:" >&5
2809 cat conftest.$ac_ext >&5
2811 ac_cv_header_stdc=no
2815 if test $ac_cv_header_stdc = yes; then
2816 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2817 cat > conftest.$ac_ext <<EOF
2818 #line 2819 "configure"
2819 #include "confdefs.h"
2822 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2823 egrep "memchr" >/dev/null 2>&1; then
2827 ac_cv_header_stdc=no
2833 if test $ac_cv_header_stdc = yes; then
2834 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2835 cat > conftest.$ac_ext <<EOF
2836 #line 2837 "configure"
2837 #include "confdefs.h"
2840 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2841 egrep "free" >/dev/null 2>&1; then
2845 ac_cv_header_stdc=no
2851 if test $ac_cv_header_stdc = yes; then
2852 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2853 if test "$cross_compiling" = yes; then
2856 cat > conftest.$ac_ext <<EOF
2857 #line 2858 "configure"
2858 #include "confdefs.h"
2860 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2861 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2862 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2863 int main () { int i; for (i = 0; i < 256; i++)
2864 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2868 if { (eval echo configure:2869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2872 echo "configure: failed program was:" >&5
2873 cat conftest.$ac_ext >&5
2875 ac_cv_header_stdc=no
2883 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2884 if test $ac_cv_header_stdc = yes; then
2885 cat >> confdefs.h <<\EOF
2886 #define STDC_HEADERS 1
2891 echo $ac_n "checking for working const""... $ac_c" 1>&6
2892 echo "configure:2893: checking for working const" >&5
2893 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2894 echo $ac_n "(cached) $ac_c" 1>&6
2896 cat > conftest.$ac_ext <<EOF
2897 #line 2898 "configure"
2898 #include "confdefs.h"
2902 /* Ultrix mips cc rejects this. */
2903 typedef int charset[2]; const charset x;
2904 /* SunOS 4.1.1 cc rejects this. */
2905 char const *const *ccp;
2907 /* NEC SVR4.0.2 mips cc rejects this. */
2908 struct point {int x, y;};
2909 static struct point const zero = {0,0};
2910 /* AIX XL C 1.02.0.0 rejects this.
2911 It does not let you subtract one const X* pointer from another in an arm
2912 of an if-expression whose if-part is not a constant expression */
2913 const char *g = "string";
2914 ccp = &g + (g ? g-g : 0);
2915 /* HPUX 7.0 cc rejects these. */
2918 ccp = (char const *const *) p;
2919 { /* SCO 3.2v4 cc rejects this. */
2921 char const *s = 0 ? (char *) 0 : (char const *) 0;
2925 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2927 const int *foo = &x[0];
2930 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2931 typedef const int *iptr;
2935 { /* AIX XL C 1.02.0.0 rejects this saying
2936 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2937 struct s { int j; const int *ap[3]; };
2938 struct s *b; b->j = 5;
2940 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2946 if { (eval echo configure:2947: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2950 echo "configure: failed program was:" >&5
2951 cat conftest.$ac_ext >&5
2958 echo "$ac_t""$ac_cv_c_const" 1>&6
2959 if test $ac_cv_c_const = no; then
2960 cat >> confdefs.h <<\EOF
2966 echo $ac_n "checking for inline""... $ac_c" 1>&6
2967 echo "configure:2968: checking for inline" >&5
2968 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2969 echo $ac_n "(cached) $ac_c" 1>&6
2972 for ac_kw in inline __inline__ __inline; do
2973 cat > conftest.$ac_ext <<EOF
2974 #line 2975 "configure"
2975 #include "confdefs.h"
2981 if { (eval echo configure:2982: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2983 ac_cv_c_inline=$ac_kw; break
2985 echo "configure: failed program was:" >&5
2986 cat conftest.$ac_ext >&5
2993 echo "$ac_t""$ac_cv_c_inline" 1>&6
2994 case "$ac_cv_c_inline" in
2996 no) cat >> confdefs.h <<\EOF
3000 *) cat >> confdefs.h <<EOF
3001 #define inline $ac_cv_c_inline
3006 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3007 echo "configure:3008: checking for off_t" >&5
3008 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3009 echo $ac_n "(cached) $ac_c" 1>&6
3011 cat > conftest.$ac_ext <<EOF
3012 #line 3013 "configure"
3013 #include "confdefs.h"
3014 #include <sys/types.h>
3020 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3021 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3023 ac_cv_type_off_t=yes
3031 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3032 if test $ac_cv_type_off_t = no; then
3033 cat >> confdefs.h <<\EOF
3039 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3040 echo "configure:3041: checking for size_t" >&5
3041 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3042 echo $ac_n "(cached) $ac_c" 1>&6
3044 cat > conftest.$ac_ext <<EOF
3045 #line 3046 "configure"
3046 #include "confdefs.h"
3047 #include <sys/types.h>
3053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3054 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3056 ac_cv_type_size_t=yes
3059 ac_cv_type_size_t=no
3064 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3065 if test $ac_cv_type_size_t = no; then
3066 cat >> confdefs.h <<\EOF
3067 #define size_t unsigned
3072 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3073 # for constant arguments. Useless!
3074 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3075 echo "configure:3076: checking for working alloca.h" >&5
3076 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3077 echo $ac_n "(cached) $ac_c" 1>&6
3079 cat > conftest.$ac_ext <<EOF
3080 #line 3081 "configure"
3081 #include "confdefs.h"
3084 char *p = alloca(2 * sizeof(int));
3087 if { (eval echo configure:3088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3089 ac_cv_header_alloca_h=yes
3091 echo "configure: failed program was:" >&5
3092 cat conftest.$ac_ext >&5
3094 ac_cv_header_alloca_h=no
3099 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3100 if test $ac_cv_header_alloca_h = yes; then
3101 cat >> confdefs.h <<\EOF
3102 #define HAVE_ALLOCA_H 1
3107 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3108 echo "configure:3109: checking for alloca" >&5
3109 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3110 echo $ac_n "(cached) $ac_c" 1>&6
3112 cat > conftest.$ac_ext <<EOF
3113 #line 3114 "configure"
3114 #include "confdefs.h"
3117 # define alloca __builtin_alloca
3120 # include <malloc.h>
3121 # define alloca _alloca
3124 # include <alloca.h>
3129 # ifndef alloca /* predefined by HP cc +Olibcalls */
3138 char *p = (char *) alloca(1);
3141 if { (eval echo configure:3142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3143 ac_cv_func_alloca_works=yes
3145 echo "configure: failed program was:" >&5
3146 cat conftest.$ac_ext >&5
3148 ac_cv_func_alloca_works=no
3153 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3154 if test $ac_cv_func_alloca_works = yes; then
3155 cat >> confdefs.h <<\EOF
3156 #define HAVE_ALLOCA 1
3161 if test $ac_cv_func_alloca_works = no; then
3162 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3163 # that cause trouble. Some versions do not even contain alloca or
3164 # contain a buggy version. If you still want to use their alloca,
3165 # use ar to extract alloca.o from them instead of compiling alloca.c.
3166 ALLOCA=alloca.${ac_objext}
3167 cat >> confdefs.h <<\EOF
3172 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3173 echo "configure:3174: checking whether alloca needs Cray hooks" >&5
3174 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3175 echo $ac_n "(cached) $ac_c" 1>&6
3177 cat > conftest.$ac_ext <<EOF
3178 #line 3179 "configure"
3179 #include "confdefs.h"
3180 #if defined(CRAY) && ! defined(CRAY2)
3187 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3188 egrep "webecray" >/dev/null 2>&1; then
3199 echo "$ac_t""$ac_cv_os_cray" 1>&6
3200 if test $ac_cv_os_cray = yes; then
3201 for ac_func in _getb67 GETB67 getb67; do
3202 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3203 echo "configure:3204: checking for $ac_func" >&5
3204 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3205 echo $ac_n "(cached) $ac_c" 1>&6
3207 cat > conftest.$ac_ext <<EOF
3208 #line 3209 "configure"
3209 #include "confdefs.h"
3210 /* System header to define __stub macros and hopefully few prototypes,
3211 which can conflict with char $ac_func(); below. */
3213 /* Override any gcc2 internal prototype to avoid an error. */
3214 /* We use char because int might match the return type of a gcc2
3215 builtin and then its argument prototype would still apply. */
3220 /* The GNU C library defines this for functions which it implements
3221 to always fail with ENOSYS. Some functions are actually named
3222 something starting with __ and the normal name is an alias. */
3223 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3231 if { (eval echo configure:3232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3233 eval "ac_cv_func_$ac_func=yes"
3235 echo "configure: failed program was:" >&5
3236 cat conftest.$ac_ext >&5
3238 eval "ac_cv_func_$ac_func=no"
3243 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3244 echo "$ac_t""yes" 1>&6
3245 cat >> confdefs.h <<EOF
3246 #define CRAY_STACKSEG_END $ac_func
3251 echo "$ac_t""no" 1>&6
3257 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3258 echo "configure:3259: checking stack direction for C alloca" >&5
3259 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3260 echo $ac_n "(cached) $ac_c" 1>&6
3262 if test "$cross_compiling" = yes; then
3263 ac_cv_c_stack_direction=0
3265 cat > conftest.$ac_ext <<EOF
3266 #line 3267 "configure"
3267 #include "confdefs.h"
3268 find_stack_direction ()
3270 static char *addr = 0;
3275 return find_stack_direction ();
3278 return (&dummy > addr) ? 1 : -1;
3282 exit (find_stack_direction() < 0);
3285 if { (eval echo configure:3286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3287 ac_cv_c_stack_direction=1
3289 echo "configure: failed program was:" >&5
3290 cat conftest.$ac_ext >&5
3292 ac_cv_c_stack_direction=-1
3299 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3300 cat >> confdefs.h <<EOF
3301 #define STACK_DIRECTION $ac_cv_c_stack_direction
3306 for ac_hdr in stdlib.h unistd.h sys/stat.h sys/types.h
3308 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3309 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3310 echo "configure:3311: checking for $ac_hdr" >&5
3311 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3312 echo $ac_n "(cached) $ac_c" 1>&6
3314 cat > conftest.$ac_ext <<EOF
3315 #line 3316 "configure"
3316 #include "confdefs.h"
3319 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3320 { (eval echo configure:3321: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3321 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3322 if test -z "$ac_err"; then
3324 eval "ac_cv_header_$ac_safe=yes"
3327 echo "configure: failed program was:" >&5
3328 cat conftest.$ac_ext >&5
3330 eval "ac_cv_header_$ac_safe=no"
3334 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3335 echo "$ac_t""yes" 1>&6
3336 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3337 cat >> confdefs.h <<EOF
3338 #define $ac_tr_hdr 1
3342 echo "$ac_t""no" 1>&6
3346 for ac_func in getpagesize
3348 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3349 echo "configure:3350: checking for $ac_func" >&5
3350 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3351 echo $ac_n "(cached) $ac_c" 1>&6
3353 cat > conftest.$ac_ext <<EOF
3354 #line 3355 "configure"
3355 #include "confdefs.h"
3356 /* System header to define __stub macros and hopefully few prototypes,
3357 which can conflict with char $ac_func(); below. */
3359 /* Override any gcc2 internal prototype to avoid an error. */
3360 /* We use char because int might match the return type of a gcc2
3361 builtin and then its argument prototype would still apply. */
3366 /* The GNU C library defines this for functions which it implements
3367 to always fail with ENOSYS. Some functions are actually named
3368 something starting with __ and the normal name is an alias. */
3369 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3377 if { (eval echo configure:3378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3379 eval "ac_cv_func_$ac_func=yes"
3381 echo "configure: failed program was:" >&5
3382 cat conftest.$ac_ext >&5
3384 eval "ac_cv_func_$ac_func=no"
3389 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3390 echo "$ac_t""yes" 1>&6
3391 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3392 cat >> confdefs.h <<EOF
3393 #define $ac_tr_func 1
3397 echo "$ac_t""no" 1>&6
3401 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
3402 echo "configure:3403: checking for working mmap" >&5
3403 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
3404 echo $ac_n "(cached) $ac_c" 1>&6
3406 if test "$cross_compiling" = yes; then
3407 ac_cv_func_mmap_fixed_mapped=no
3409 cat > conftest.$ac_ext <<EOF
3410 #line 3411 "configure"
3411 #include "confdefs.h"
3413 /* Thanks to Mike Haertel and Jim Avera for this test.
3414 Here is a matrix of mmap possibilities:
3415 mmap private not fixed
3416 mmap private fixed at somewhere currently unmapped
3417 mmap private fixed at somewhere already mapped
3418 mmap shared not fixed
3419 mmap shared fixed at somewhere currently unmapped
3420 mmap shared fixed at somewhere already mapped
3421 For private mappings, we should verify that changes cannot be read()
3422 back from the file, nor mmap's back from the file at a different
3423 address. (There have been systems where private was not correctly
3424 implemented like the infamous i386 svr4.0, and systems where the
3425 VM page cache was not coherent with the filesystem buffer cache
3426 like early versions of FreeBSD and possibly contemporary NetBSD.)
3427 For shared mappings, we should conversely verify that changes get
3428 propogated back to all the places they're supposed to be.
3430 Grep wants private fixed already mapped.
3431 The main things grep needs to know about mmap are:
3432 * does it exist and is it safe to write into the mmap'd area
3433 * how to use it (BSD variants) */
3434 #include <sys/types.h>
3436 #include <sys/mman.h>
3438 #if HAVE_SYS_TYPES_H
3439 # include <sys/types.h>
3443 # include <stdlib.h>
3447 # include <sys/stat.h>
3451 # include <unistd.h>
3454 /* This mess was copied from the GNU getpagesize.h. */
3455 #ifndef HAVE_GETPAGESIZE
3457 /* Assume that all systems that can run configure have sys/param.h. */
3458 # ifndef HAVE_SYS_PARAM_H
3459 # define HAVE_SYS_PARAM_H 1
3462 # ifdef _SC_PAGESIZE
3463 # define getpagesize() sysconf(_SC_PAGESIZE)
3464 # else /* no _SC_PAGESIZE */
3465 # ifdef HAVE_SYS_PARAM_H
3466 # include <sys/param.h>
3467 # ifdef EXEC_PAGESIZE
3468 # define getpagesize() EXEC_PAGESIZE
3469 # else /* no EXEC_PAGESIZE */
3471 # define getpagesize() NBPG * CLSIZE
3474 # endif /* no CLSIZE */
3475 # else /* no NBPG */
3477 # define getpagesize() NBPC
3478 # else /* no NBPC */
3480 # define getpagesize() PAGESIZE
3481 # endif /* PAGESIZE */
3482 # endif /* no NBPC */
3483 # endif /* no NBPG */
3484 # endif /* no EXEC_PAGESIZE */
3485 # else /* no HAVE_SYS_PARAM_H */
3486 # define getpagesize() 8192 /* punt totally */
3487 # endif /* no HAVE_SYS_PARAM_H */
3488 # endif /* no _SC_PAGESIZE */
3490 #endif /* no HAVE_GETPAGESIZE */
3493 extern "C" { void *malloc(unsigned); }
3501 char *data, *data2, *data3;
3505 pagesize = getpagesize();
3508 * First, make a file with some known garbage in it.
3510 data = malloc(pagesize);
3513 for (i = 0; i < pagesize; ++i)
3514 *(data + i) = rand();
3516 fd = creat("conftestmmap", 0600);
3519 if (write(fd, data, pagesize) != pagesize)
3524 * Next, try to mmap the file at a fixed address which
3525 * already has something else allocated at it. If we can,
3526 * also make sure that we see the same garbage.
3528 fd = open("conftestmmap", O_RDWR);
3531 data2 = malloc(2 * pagesize);
3534 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3535 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3536 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3538 for (i = 0; i < pagesize; ++i)
3539 if (*(data + i) != *(data2 + i))
3543 * Finally, make sure that changes to the mapped area
3544 * do not percolate back to the file as seen by read().
3545 * (This is a bug on some variants of i386 svr4.0.)
3547 for (i = 0; i < pagesize; ++i)
3548 *(data2 + i) = *(data2 + i) + 1;
3549 data3 = malloc(pagesize);
3552 if (read(fd, data3, pagesize) != pagesize)
3554 for (i = 0; i < pagesize; ++i)
3555 if (*(data + i) != *(data3 + i))
3558 unlink("conftestmmap");
3563 if { (eval echo configure:3564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3565 ac_cv_func_mmap_fixed_mapped=yes
3567 echo "configure: failed program was:" >&5
3568 cat conftest.$ac_ext >&5
3570 ac_cv_func_mmap_fixed_mapped=no
3577 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3578 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3579 cat >> confdefs.h <<\EOF
3586 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
3587 unistd.h values.h sys/param.h
3589 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3590 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3591 echo "configure:3592: checking for $ac_hdr" >&5
3592 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3593 echo $ac_n "(cached) $ac_c" 1>&6
3595 cat > conftest.$ac_ext <<EOF
3596 #line 3597 "configure"
3597 #include "confdefs.h"
3600 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3601 { (eval echo configure:3602: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3602 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3603 if test -z "$ac_err"; then
3605 eval "ac_cv_header_$ac_safe=yes"
3608 echo "configure: failed program was:" >&5
3609 cat conftest.$ac_ext >&5
3611 eval "ac_cv_header_$ac_safe=no"
3615 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3616 echo "$ac_t""yes" 1>&6
3617 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3618 cat >> confdefs.h <<EOF
3619 #define $ac_tr_hdr 1
3623 echo "$ac_t""no" 1>&6
3627 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
3628 __argz_count __argz_stringify __argz_next
3630 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3631 echo "configure:3632: checking for $ac_func" >&5
3632 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3633 echo $ac_n "(cached) $ac_c" 1>&6
3635 cat > conftest.$ac_ext <<EOF
3636 #line 3637 "configure"
3637 #include "confdefs.h"
3638 /* System header to define __stub macros and hopefully few prototypes,
3639 which can conflict with char $ac_func(); below. */
3641 /* Override any gcc2 internal prototype to avoid an error. */
3642 /* We use char because int might match the return type of a gcc2
3643 builtin and then its argument prototype would still apply. */
3648 /* The GNU C library defines this for functions which it implements
3649 to always fail with ENOSYS. Some functions are actually named
3650 something starting with __ and the normal name is an alias. */
3651 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3659 if { (eval echo configure:3660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3661 eval "ac_cv_func_$ac_func=yes"
3663 echo "configure: failed program was:" >&5
3664 cat conftest.$ac_ext >&5
3666 eval "ac_cv_func_$ac_func=no"
3671 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3672 echo "$ac_t""yes" 1>&6
3673 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3674 cat >> confdefs.h <<EOF
3675 #define $ac_tr_func 1
3679 echo "$ac_t""no" 1>&6
3684 if test "${ac_cv_func_stpcpy+set}" != "set"; then
3685 for ac_func in stpcpy
3687 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3688 echo "configure:3689: checking for $ac_func" >&5
3689 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3690 echo $ac_n "(cached) $ac_c" 1>&6
3692 cat > conftest.$ac_ext <<EOF
3693 #line 3694 "configure"
3694 #include "confdefs.h"
3695 /* System header to define __stub macros and hopefully few prototypes,
3696 which can conflict with char $ac_func(); below. */
3698 /* Override any gcc2 internal prototype to avoid an error. */
3699 /* We use char because int might match the return type of a gcc2
3700 builtin and then its argument prototype would still apply. */
3705 /* The GNU C library defines this for functions which it implements
3706 to always fail with ENOSYS. Some functions are actually named
3707 something starting with __ and the normal name is an alias. */
3708 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3716 if { (eval echo configure:3717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3718 eval "ac_cv_func_$ac_func=yes"
3720 echo "configure: failed program was:" >&5
3721 cat conftest.$ac_ext >&5
3723 eval "ac_cv_func_$ac_func=no"
3728 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3729 echo "$ac_t""yes" 1>&6
3730 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3731 cat >> confdefs.h <<EOF
3732 #define $ac_tr_func 1
3736 echo "$ac_t""no" 1>&6
3741 if test "${ac_cv_func_stpcpy}" = "yes"; then
3742 cat >> confdefs.h <<\EOF
3743 #define HAVE_STPCPY 1
3748 if test $ac_cv_header_locale_h = yes; then
3749 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3750 echo "configure:3751: checking for LC_MESSAGES" >&5
3751 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3752 echo $ac_n "(cached) $ac_c" 1>&6
3754 cat > conftest.$ac_ext <<EOF
3755 #line 3756 "configure"
3756 #include "confdefs.h"
3762 if { (eval echo configure:3763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3764 am_cv_val_LC_MESSAGES=yes
3766 echo "configure: failed program was:" >&5
3767 cat conftest.$ac_ext >&5
3769 am_cv_val_LC_MESSAGES=no
3774 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3775 if test $am_cv_val_LC_MESSAGES = yes; then
3776 cat >> confdefs.h <<\EOF
3777 #define HAVE_LC_MESSAGES 1
3782 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3783 echo "configure:3784: checking whether NLS is requested" >&5
3784 # Check whether --enable-nls or --disable-nls was given.
3785 if test "${enable_nls+set}" = set; then
3786 enableval="$enable_nls"
3792 echo "$ac_t""$USE_NLS" 1>&6
3795 USE_INCLUDED_LIBINTL=no
3797 if test "$USE_NLS" = "yes"; then
3798 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3799 echo "configure:3800: checking whether included gettext is requested" >&5
3800 # Check whether --with-included-gettext or --without-included-gettext was given.
3801 if test "${with_included_gettext+set}" = set; then
3802 withval="$with_included_gettext"
3803 nls_cv_force_use_gnu_gettext=$withval
3805 nls_cv_force_use_gnu_gettext=no
3808 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3810 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
3811 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3813 nls_cv_header_libgt=
3816 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3817 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3818 echo "configure:3819: checking for libintl.h" >&5
3819 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3820 echo $ac_n "(cached) $ac_c" 1>&6
3822 cat > conftest.$ac_ext <<EOF
3823 #line 3824 "configure"
3824 #include "confdefs.h"
3825 #include <libintl.h>
3827 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3828 { (eval echo configure:3829: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3829 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3830 if test -z "$ac_err"; then
3832 eval "ac_cv_header_$ac_safe=yes"
3835 echo "configure: failed program was:" >&5
3836 cat conftest.$ac_ext >&5
3838 eval "ac_cv_header_$ac_safe=no"
3842 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3843 echo "$ac_t""yes" 1>&6
3844 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3845 echo "configure:3846: checking for gettext in libc" >&5
3846 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3847 echo $ac_n "(cached) $ac_c" 1>&6
3849 cat > conftest.$ac_ext <<EOF
3850 #line 3851 "configure"
3851 #include "confdefs.h"
3852 #include <libintl.h>
3854 return (int) gettext ("")
3857 if { (eval echo configure:3858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3859 gt_cv_func_gettext_libc=yes
3861 echo "configure: failed program was:" >&5
3862 cat conftest.$ac_ext >&5
3864 gt_cv_func_gettext_libc=no
3869 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3871 if test "$gt_cv_func_gettext_libc" != "yes"; then
3872 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3873 echo "configure:3874: checking for bindtextdomain in -lintl" >&5
3874 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3875 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3876 echo $ac_n "(cached) $ac_c" 1>&6
3878 ac_save_LIBS="$LIBS"
3880 cat > conftest.$ac_ext <<EOF
3881 #line 3882 "configure"
3882 #include "confdefs.h"
3883 /* Override any gcc2 internal prototype to avoid an error. */
3884 /* We use char because int might match the return type of a gcc2
3885 builtin and then its argument prototype would still apply. */
3886 char bindtextdomain();
3892 if { (eval echo configure:3893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3894 eval "ac_cv_lib_$ac_lib_var=yes"
3896 echo "configure: failed program was:" >&5
3897 cat conftest.$ac_ext >&5
3899 eval "ac_cv_lib_$ac_lib_var=no"
3902 LIBS="$ac_save_LIBS"
3905 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3906 echo "$ac_t""yes" 1>&6
3907 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3908 echo "configure:3909: checking for gettext in libintl" >&5
3909 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3910 echo $ac_n "(cached) $ac_c" 1>&6
3912 cat > conftest.$ac_ext <<EOF
3913 #line 3914 "configure"
3914 #include "confdefs.h"
3917 return (int) gettext ("")
3920 if { (eval echo configure:3921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3922 gt_cv_func_gettext_libintl=yes
3924 echo "configure: failed program was:" >&5
3925 cat conftest.$ac_ext >&5
3927 gt_cv_func_gettext_libintl=no
3932 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3934 echo "$ac_t""no" 1>&6
3939 if test "$gt_cv_func_gettext_libc" = "yes" \
3940 || test "$gt_cv_func_gettext_libintl" = "yes"; then
3941 cat >> confdefs.h <<\EOF
3942 #define HAVE_GETTEXT 1
3945 # Extract the first word of "msgfmt", so it can be a program name with args.
3946 set dummy msgfmt; ac_word=$2
3947 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3948 echo "configure:3949: checking for $ac_word" >&5
3949 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3950 echo $ac_n "(cached) $ac_c" 1>&6
3954 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3957 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3958 for ac_dir in $PATH; do
3959 test -z "$ac_dir" && ac_dir=.
3960 if test -f $ac_dir/$ac_word; then
3961 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3962 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3968 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
3972 MSGFMT="$ac_cv_path_MSGFMT"
3973 if test -n "$MSGFMT"; then
3974 echo "$ac_t""$MSGFMT" 1>&6
3976 echo "$ac_t""no" 1>&6
3978 if test "$MSGFMT" != "no"; then
3979 for ac_func in dcgettext
3981 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3982 echo "configure:3983: checking for $ac_func" >&5
3983 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3984 echo $ac_n "(cached) $ac_c" 1>&6
3986 cat > conftest.$ac_ext <<EOF
3987 #line 3988 "configure"
3988 #include "confdefs.h"
3989 /* System header to define __stub macros and hopefully few prototypes,
3990 which can conflict with char $ac_func(); below. */
3992 /* Override any gcc2 internal prototype to avoid an error. */
3993 /* We use char because int might match the return type of a gcc2
3994 builtin and then its argument prototype would still apply. */
3999 /* The GNU C library defines this for functions which it implements
4000 to always fail with ENOSYS. Some functions are actually named
4001 something starting with __ and the normal name is an alias. */
4002 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4010 if { (eval echo configure:4011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4012 eval "ac_cv_func_$ac_func=yes"
4014 echo "configure: failed program was:" >&5
4015 cat conftest.$ac_ext >&5
4017 eval "ac_cv_func_$ac_func=no"
4022 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4023 echo "$ac_t""yes" 1>&6
4024 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4025 cat >> confdefs.h <<EOF
4026 #define $ac_tr_func 1
4030 echo "$ac_t""no" 1>&6
4034 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4035 set dummy gmsgfmt; ac_word=$2
4036 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4037 echo "configure:4038: checking for $ac_word" >&5
4038 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4039 echo $ac_n "(cached) $ac_c" 1>&6
4043 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4046 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
4049 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4051 for ac_dir in $ac_dummy; do
4052 test -z "$ac_dir" && ac_dir=.
4053 if test -f $ac_dir/$ac_word; then
4054 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
4059 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4063 GMSGFMT="$ac_cv_path_GMSGFMT"
4064 if test -n "$GMSGFMT"; then
4065 echo "$ac_t""$GMSGFMT" 1>&6
4067 echo "$ac_t""no" 1>&6
4070 # Extract the first word of "xgettext", so it can be a program name with args.
4071 set dummy xgettext; ac_word=$2
4072 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4073 echo "configure:4074: checking for $ac_word" >&5
4074 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4075 echo $ac_n "(cached) $ac_c" 1>&6
4079 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4082 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4083 for ac_dir in $PATH; do
4084 test -z "$ac_dir" && ac_dir=.
4085 if test -f $ac_dir/$ac_word; then
4086 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4087 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
4093 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4097 XGETTEXT="$ac_cv_path_XGETTEXT"
4098 if test -n "$XGETTEXT"; then
4099 echo "$ac_t""$XGETTEXT" 1>&6
4101 echo "$ac_t""no" 1>&6
4104 cat > conftest.$ac_ext <<EOF
4105 #line 4106 "configure"
4106 #include "confdefs.h"
4109 extern int _nl_msg_cat_cntr;
4110 return _nl_msg_cat_cntr
4113 if { (eval echo configure:4114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4118 echo "configure: failed program was:" >&5
4119 cat conftest.$ac_ext >&5
4130 echo "$ac_t""no" 1>&6
4135 if test x"$CATOBJEXT" = x && test -d $srcdir/../intl; then
4136 # Neither gettext nor catgets in included in the C library.
4137 # Fall back on GNU gettext library (assuming it is present).
4138 nls_cv_use_gnu_gettext=yes
4142 if test "$nls_cv_use_gnu_gettext" = "yes"; then
4143 INTLOBJS="\$(GETTOBJS)"
4144 # Extract the first word of "msgfmt", so it can be a program name with args.
4145 set dummy msgfmt; ac_word=$2
4146 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4147 echo "configure:4148: checking for $ac_word" >&5
4148 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
4149 echo $ac_n "(cached) $ac_c" 1>&6
4153 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4156 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4157 for ac_dir in $PATH; do
4158 test -z "$ac_dir" && ac_dir=.
4159 if test -f $ac_dir/$ac_word; then
4160 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4161 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
4167 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
4171 MSGFMT="$ac_cv_path_MSGFMT"
4172 if test -n "$MSGFMT"; then
4173 echo "$ac_t""$MSGFMT" 1>&6
4175 echo "$ac_t""no" 1>&6
4178 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4179 set dummy gmsgfmt; ac_word=$2
4180 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4181 echo "configure:4182: checking for $ac_word" >&5
4182 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4183 echo $ac_n "(cached) $ac_c" 1>&6
4187 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4190 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
4193 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4195 for ac_dir in $ac_dummy; do
4196 test -z "$ac_dir" && ac_dir=.
4197 if test -f $ac_dir/$ac_word; then
4198 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
4203 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4207 GMSGFMT="$ac_cv_path_GMSGFMT"
4208 if test -n "$GMSGFMT"; then
4209 echo "$ac_t""$GMSGFMT" 1>&6
4211 echo "$ac_t""no" 1>&6
4214 # Extract the first word of "xgettext", so it can be a program name with args.
4215 set dummy xgettext; ac_word=$2
4216 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4217 echo "configure:4218: checking for $ac_word" >&5
4218 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4219 echo $ac_n "(cached) $ac_c" 1>&6
4223 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4226 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4227 for ac_dir in $PATH; do
4228 test -z "$ac_dir" && ac_dir=.
4229 if test -f $ac_dir/$ac_word; then
4230 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4231 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
4237 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4241 XGETTEXT="$ac_cv_path_XGETTEXT"
4242 if test -n "$XGETTEXT"; then
4243 echo "$ac_t""$XGETTEXT" 1>&6
4245 echo "$ac_t""no" 1>&6
4249 USE_INCLUDED_LIBINTL=yes
4253 INTLDEPS='$(top_builddir)/../intl/libintl.a'
4255 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
4256 nls_cv_header_intl=libintl.h
4257 nls_cv_header_libgt=libgettext.h
4260 if test "$XGETTEXT" != ":"; then
4261 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
4264 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
4269 # We need to process the po/ directory.
4273 nls_cv_header_intl=libintl.h
4274 nls_cv_header_libgt=libgettext.h
4277 # If this is used in GNU gettext we have to set USE_NLS to `yes'
4278 # because some of the sources are only built for this goal.
4279 if test "$PACKAGE" = gettext; then
4281 USE_INCLUDED_LIBINTL=yes
4284 for lang in $ALL_LINGUAS; do
4285 GMOFILES="$GMOFILES $lang.gmo"
4286 POFILES="$POFILES $lang.po"
4300 if test "x$CATOBJEXT" != "x"; then
4301 cat >> confdefs.h <<\EOF
4302 #define ENABLE_NLS 1
4308 if test "x$CATOBJEXT" != "x"; then
4309 if test "x$ALL_LINGUAS" = "x"; then
4312 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
4313 echo "configure:4314: checking for catalogs to be installed" >&5
4315 for lang in ${LINGUAS=$ALL_LINGUAS}; do
4316 case "$ALL_LINGUAS" in
4317 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
4320 LINGUAS=$NEW_LINGUAS
4321 echo "$ac_t""$LINGUAS" 1>&6
4324 if test -n "$LINGUAS"; then
4325 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
4329 if test $ac_cv_header_locale_h = yes; then
4330 INCLUDE_LOCALE_H="#include <locale.h>"
4333 /* The system does not provide the header <locale.h>. Take care yourself. */"
4337 if test -f $srcdir/po2tbl.sed.in; then
4338 if test "$CATOBJEXT" = ".cat"; then
4339 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
4340 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
4341 echo "configure:4342: checking for linux/version.h" >&5
4342 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4343 echo $ac_n "(cached) $ac_c" 1>&6
4345 cat > conftest.$ac_ext <<EOF
4346 #line 4347 "configure"
4347 #include "confdefs.h"
4348 #include <linux/version.h>
4350 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4351 { (eval echo configure:4352: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4352 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4353 if test -z "$ac_err"; then
4355 eval "ac_cv_header_$ac_safe=yes"
4358 echo "configure: failed program was:" >&5
4359 cat conftest.$ac_ext >&5
4361 eval "ac_cv_header_$ac_safe=no"
4365 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4366 echo "$ac_t""yes" 1>&6
4369 echo "$ac_t""no" 1>&6
4374 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
4376 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
4377 $srcdir/po2tbl.sed.in > po2tbl.sed
4380 if test "$PACKAGE" = "gettext"; then
4390 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
4396 if test -f $srcdir/po/POTFILES.in; then
4397 test -d po || mkdir po
4398 if test "x$srcdir" != "x."; then
4399 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
4400 posrcprefix="$srcdir/"
4402 posrcprefix="../$srcdir/"
4408 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
4409 < $srcdir/po/POTFILES.in > po/POTFILES
4413 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
4414 echo "configure:4415: checking whether to enable maintainer-specific portions of Makefiles" >&5
4415 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4416 if test "${enable_maintainer_mode+set}" = set; then
4417 enableval="$enable_maintainer_mode"
4418 USE_MAINTAINER_MODE=$enableval
4420 USE_MAINTAINER_MODE=no
4423 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
4426 if test $USE_MAINTAINER_MODE = yes; then
4427 MAINTAINER_MODE_TRUE=
4428 MAINTAINER_MODE_FALSE='#'
4430 MAINTAINER_MODE_TRUE='#'
4431 MAINTAINER_MODE_FALSE=
4433 MAINT=$MAINTAINER_MODE_TRUE
4438 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
4439 echo "configure:4440: checking for executable suffix" >&5
4440 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
4441 echo $ac_n "(cached) $ac_c" 1>&6
4443 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4447 echo 'int main () { return 0; }' > conftest.$ac_ext
4449 if { (eval echo configure:4450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
4450 for file in conftest.*; do
4452 *.c | *.o | *.obj) ;;
4453 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
4457 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
4460 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
4465 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
4466 echo "$ac_t""${ac_cv_exeext}" 1>&6
4469 if test -n "$EXEEXT"; then
4470 cat >> confdefs.h <<\EOF
4471 #define HAVE_EXECUTABLE_SUFFIX 1
4475 cat >> confdefs.h <<EOF
4476 #define EXECUTABLE_SUFFIX "${EXEEXT}"
4480 # host-specific stuff:
4484 . ${srcdir}/../bfd/configure.host
4489 # Extract the first word of "ranlib", so it can be a program name with args.
4490 set dummy ranlib; ac_word=$2
4491 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4492 echo "configure:4493: checking for $ac_word" >&5
4493 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
4494 echo $ac_n "(cached) $ac_c" 1>&6
4496 if test -n "$RANLIB"; then
4497 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4499 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4501 for ac_dir in $ac_dummy; do
4502 test -z "$ac_dir" && ac_dir=.
4503 if test -f $ac_dir/$ac_word; then
4504 ac_cv_prog_RANLIB="ranlib"
4509 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
4512 RANLIB="$ac_cv_prog_RANLIB"
4513 if test -n "$RANLIB"; then
4514 echo "$ac_t""$RANLIB" 1>&6
4516 echo "$ac_t""no" 1>&6
4519 # Find a good install program. We prefer a C program (faster),
4520 # so one script is as good as another. But avoid the broken or
4521 # incompatible versions:
4522 # SysV /etc/install, /usr/sbin/install
4523 # SunOS /usr/etc/install
4524 # IRIX /sbin/install
4526 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4527 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4528 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4529 # ./install, which can be erroneously created by make from ./install.sh.
4530 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
4531 echo "configure:4532: checking for a BSD compatible install" >&5
4532 if test -z "$INSTALL"; then
4533 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
4534 echo $ac_n "(cached) $ac_c" 1>&6
4536 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
4537 for ac_dir in $PATH; do
4538 # Account for people who put trailing slashes in PATH elements.
4540 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
4542 # OSF1 and SCO ODT 3.0 have their own names for install.
4543 # Don't use installbsd from OSF since it installs stuff as root
4545 for ac_prog in ginstall scoinst install; do
4546 if test -f $ac_dir/$ac_prog; then
4547 if test $ac_prog = install &&
4548 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
4549 # AIX install. It has an incompatible calling convention.
4552 ac_cv_path_install="$ac_dir/$ac_prog -c"
4563 if test "${ac_cv_path_install+set}" = set; then
4564 INSTALL="$ac_cv_path_install"
4566 # As a last resort, use the slow shell script. We don't cache a
4567 # path for INSTALL within a source directory, because that will
4568 # break other packages using the cache if that directory is
4569 # removed, or if the path is relative.
4570 INSTALL="$ac_install_sh"
4573 echo "$ac_t""$INSTALL" 1>&6
4575 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4576 # It thinks the first close brace ends the variable substitution.
4577 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4579 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
4581 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4584 # Put a plausible default for CC_FOR_BUILD in Makefile.
4585 if test -z "$CC_FOR_BUILD"; then
4586 if test "x$cross_compiling" = "xno"; then
4587 CC_FOR_BUILD='$(CC)'
4593 # Also set EXEEXT_FOR_BUILD.
4594 if test "x$cross_compiling" = "xno"; then
4595 EXEEXT_FOR_BUILD='$(EXEEXT)'
4597 echo $ac_n "checking for build system executable suffix""... $ac_c" 1>&6
4598 echo "configure:4599: checking for build system executable suffix" >&5
4599 if eval "test \"`echo '$''{'bfd_cv_build_exeext'+set}'`\" = set"; then
4600 echo $ac_n "(cached) $ac_c" 1>&6
4603 echo 'int main () { return 0; }' > conftest.c
4604 bfd_cv_build_exeext=
4605 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
4606 for file in conftest.*; do
4608 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
4609 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4613 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
4616 echo "$ac_t""$bfd_cv_build_exeext" 1>&6
4618 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
4622 DEMANGLER_NAME=c++filt
4624 *-*-go32* | *-*-msdos*)
4625 DEMANGLER_NAME=cxxfilt
4629 for ac_hdr in string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h
4631 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4632 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4633 echo "configure:4634: checking for $ac_hdr" >&5
4634 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4635 echo $ac_n "(cached) $ac_c" 1>&6
4637 cat > conftest.$ac_ext <<EOF
4638 #line 4639 "configure"
4639 #include "confdefs.h"
4642 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4643 { (eval echo configure:4644: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4644 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4645 if test -z "$ac_err"; then
4647 eval "ac_cv_header_$ac_safe=yes"
4650 echo "configure: failed program was:" >&5
4651 cat conftest.$ac_ext >&5
4653 eval "ac_cv_header_$ac_safe=no"
4657 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4658 echo "$ac_t""yes" 1>&6
4659 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4660 cat >> confdefs.h <<EOF
4661 #define $ac_tr_hdr 1
4665 echo "$ac_t""no" 1>&6
4669 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
4670 echo "configure:4671: checking for sys/wait.h that is POSIX.1 compatible" >&5
4671 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
4672 echo $ac_n "(cached) $ac_c" 1>&6
4674 cat > conftest.$ac_ext <<EOF
4675 #line 4676 "configure"
4676 #include "confdefs.h"
4677 #include <sys/types.h>
4678 #include <sys/wait.h>
4680 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4683 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4688 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4691 if { (eval echo configure:4692: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4693 ac_cv_header_sys_wait_h=yes
4695 echo "configure: failed program was:" >&5
4696 cat conftest.$ac_ext >&5
4698 ac_cv_header_sys_wait_h=no
4703 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
4704 if test $ac_cv_header_sys_wait_h = yes; then
4705 cat >> confdefs.h <<\EOF
4706 #define HAVE_SYS_WAIT_H 1
4711 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4712 # for constant arguments. Useless!
4713 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
4714 echo "configure:4715: checking for working alloca.h" >&5
4715 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
4716 echo $ac_n "(cached) $ac_c" 1>&6
4718 cat > conftest.$ac_ext <<EOF
4719 #line 4720 "configure"
4720 #include "confdefs.h"
4723 char *p = alloca(2 * sizeof(int));
4726 if { (eval echo configure:4727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4728 ac_cv_header_alloca_h=yes
4730 echo "configure: failed program was:" >&5
4731 cat conftest.$ac_ext >&5
4733 ac_cv_header_alloca_h=no
4738 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
4739 if test $ac_cv_header_alloca_h = yes; then
4740 cat >> confdefs.h <<\EOF
4741 #define HAVE_ALLOCA_H 1
4746 echo $ac_n "checking for alloca""... $ac_c" 1>&6
4747 echo "configure:4748: checking for alloca" >&5
4748 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
4749 echo $ac_n "(cached) $ac_c" 1>&6
4751 cat > conftest.$ac_ext <<EOF
4752 #line 4753 "configure"
4753 #include "confdefs.h"
4756 # define alloca __builtin_alloca
4759 # include <malloc.h>
4760 # define alloca _alloca
4763 # include <alloca.h>
4768 # ifndef alloca /* predefined by HP cc +Olibcalls */
4777 char *p = (char *) alloca(1);
4780 if { (eval echo configure:4781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4782 ac_cv_func_alloca_works=yes
4784 echo "configure: failed program was:" >&5
4785 cat conftest.$ac_ext >&5
4787 ac_cv_func_alloca_works=no
4792 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
4793 if test $ac_cv_func_alloca_works = yes; then
4794 cat >> confdefs.h <<\EOF
4795 #define HAVE_ALLOCA 1
4800 if test $ac_cv_func_alloca_works = no; then
4801 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4802 # that cause trouble. Some versions do not even contain alloca or
4803 # contain a buggy version. If you still want to use their alloca,
4804 # use ar to extract alloca.o from them instead of compiling alloca.c.
4805 ALLOCA=alloca.${ac_objext}
4806 cat >> confdefs.h <<\EOF
4811 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
4812 echo "configure:4813: checking whether alloca needs Cray hooks" >&5
4813 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
4814 echo $ac_n "(cached) $ac_c" 1>&6
4816 cat > conftest.$ac_ext <<EOF
4817 #line 4818 "configure"
4818 #include "confdefs.h"
4819 #if defined(CRAY) && ! defined(CRAY2)
4826 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4827 egrep "webecray" >/dev/null 2>&1; then
4838 echo "$ac_t""$ac_cv_os_cray" 1>&6
4839 if test $ac_cv_os_cray = yes; then
4840 for ac_func in _getb67 GETB67 getb67; do
4841 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4842 echo "configure:4843: checking for $ac_func" >&5
4843 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4844 echo $ac_n "(cached) $ac_c" 1>&6
4846 cat > conftest.$ac_ext <<EOF
4847 #line 4848 "configure"
4848 #include "confdefs.h"
4849 /* System header to define __stub macros and hopefully few prototypes,
4850 which can conflict with char $ac_func(); below. */
4852 /* Override any gcc2 internal prototype to avoid an error. */
4853 /* We use char because int might match the return type of a gcc2
4854 builtin and then its argument prototype would still apply. */
4859 /* The GNU C library defines this for functions which it implements
4860 to always fail with ENOSYS. Some functions are actually named
4861 something starting with __ and the normal name is an alias. */
4862 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4870 if { (eval echo configure:4871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4872 eval "ac_cv_func_$ac_func=yes"
4874 echo "configure: failed program was:" >&5
4875 cat conftest.$ac_ext >&5
4877 eval "ac_cv_func_$ac_func=no"
4882 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4883 echo "$ac_t""yes" 1>&6
4884 cat >> confdefs.h <<EOF
4885 #define CRAY_STACKSEG_END $ac_func
4890 echo "$ac_t""no" 1>&6
4896 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
4897 echo "configure:4898: checking stack direction for C alloca" >&5
4898 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
4899 echo $ac_n "(cached) $ac_c" 1>&6
4901 if test "$cross_compiling" = yes; then
4902 ac_cv_c_stack_direction=0
4904 cat > conftest.$ac_ext <<EOF
4905 #line 4906 "configure"
4906 #include "confdefs.h"
4907 find_stack_direction ()
4909 static char *addr = 0;
4914 return find_stack_direction ();
4917 return (&dummy > addr) ? 1 : -1;
4921 exit (find_stack_direction() < 0);
4924 if { (eval echo configure:4925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4926 ac_cv_c_stack_direction=1
4928 echo "configure: failed program was:" >&5
4929 cat conftest.$ac_ext >&5
4931 ac_cv_c_stack_direction=-1
4938 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
4939 cat >> confdefs.h <<EOF
4940 #define STACK_DIRECTION $ac_cv_c_stack_direction
4945 for ac_func in sbrk utimes setmode getc_unlocked strcoll
4947 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4948 echo "configure:4949: checking for $ac_func" >&5
4949 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4950 echo $ac_n "(cached) $ac_c" 1>&6
4952 cat > conftest.$ac_ext <<EOF
4953 #line 4954 "configure"
4954 #include "confdefs.h"
4955 /* System header to define __stub macros and hopefully few prototypes,
4956 which can conflict with char $ac_func(); below. */
4958 /* Override any gcc2 internal prototype to avoid an error. */
4959 /* We use char because int might match the return type of a gcc2
4960 builtin and then its argument prototype would still apply. */
4965 /* The GNU C library defines this for functions which it implements
4966 to always fail with ENOSYS. Some functions are actually named
4967 something starting with __ and the normal name is an alias. */
4968 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4976 if { (eval echo configure:4977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4978 eval "ac_cv_func_$ac_func=yes"
4980 echo "configure: failed program was:" >&5
4981 cat conftest.$ac_ext >&5
4983 eval "ac_cv_func_$ac_func=no"
4988 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4989 echo "$ac_t""yes" 1>&6
4990 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4991 cat >> confdefs.h <<EOF
4992 #define $ac_tr_func 1
4996 echo "$ac_t""no" 1>&6
5001 # Check whether fopen64 is available and whether _LARGEFILE64_SOURCE
5002 # needs to be defined for it
5003 echo $ac_n "checking for fopen64""... $ac_c" 1>&6
5004 echo "configure:5005: checking for fopen64" >&5
5005 if eval "test \"`echo '$''{'bu_cv_have_fopen64'+set}'`\" = set"; then
5006 echo $ac_n "(cached) $ac_c" 1>&6
5008 cat > conftest.$ac_ext <<EOF
5009 #line 5010 "configure"
5010 #include "confdefs.h"
5013 FILE *f = fopen64 ("/tmp/foo","r");
5016 if { (eval echo configure:5017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5018 bu_cv_have_fopen64=yes
5020 echo "configure: failed program was:" >&5
5021 cat conftest.$ac_ext >&5
5023 saved_CPPFLAGS=$CPPFLAGS
5024 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
5025 cat > conftest.$ac_ext <<EOF
5026 #line 5027 "configure"
5027 #include "confdefs.h"
5030 FILE *f = fopen64 ("/tmp/foo","r");
5033 if { (eval echo configure:5034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5035 bu_cv_have_fopen64="need -D_LARGEFILE64_SOURCE"
5037 echo "configure: failed program was:" >&5
5038 cat conftest.$ac_ext >&5
5040 bu_cv_have_fopen64=no
5043 CPPFLAGS=$saved_CPPFLAGS
5048 echo "$ac_t""$bu_cv_have_fopen64" 1>&6
5049 if test "$bu_cv_have_fopen64" != no; then
5050 cat >> confdefs.h <<\EOF
5051 #define HAVE_FOPEN64 1
5055 echo $ac_n "checking for stat64""... $ac_c" 1>&6
5056 echo "configure:5057: checking for stat64" >&5
5057 if eval "test \"`echo '$''{'bu_cv_have_stat64'+set}'`\" = set"; then
5058 echo $ac_n "(cached) $ac_c" 1>&6
5060 cat > conftest.$ac_ext <<EOF
5061 #line 5062 "configure"
5062 #include "confdefs.h"
5063 #include <sys/stat.h>
5065 struct stat64 st; stat64 ("/tmp/foo", &st);
5068 if { (eval echo configure:5069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5070 bu_cv_have_stat64=yes
5072 echo "configure: failed program was:" >&5
5073 cat conftest.$ac_ext >&5
5075 saved_CPPFLAGS=$CPPFLAGS
5076 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
5077 cat > conftest.$ac_ext <<EOF
5078 #line 5079 "configure"
5079 #include "confdefs.h"
5080 #include <sys/stat.h>
5082 struct stat64 st; stat64 ("/tmp/foo", &st);
5085 if { (eval echo configure:5086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5087 bu_cv_have_stat64="need -D_LARGEFILE64_SOURCE"
5089 echo "configure: failed program was:" >&5
5090 cat conftest.$ac_ext >&5
5092 bu_cv_have_stat64=no
5095 CPPFLAGS=$saved_CPPFLAGS
5100 echo "$ac_t""$bu_cv_have_stat64" 1>&6
5101 if test "$bu_cv_have_stat64" != no; then
5102 cat >> confdefs.h <<\EOF
5103 #define HAVE_STAT64 1
5107 if test "$bu_cv_have_fopen64" = "need -D_LARGEFILE64_SOURCE" \
5108 || test "$bu_cv_have_stat64" = "need -D_LARGEFILE64_SOURCE"; then
5109 cat >> confdefs.h <<\EOF
5110 #define _LARGEFILE64_SOURCE 1
5113 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
5116 # Some systems have frexp only in -lm, not in -lc.
5118 echo $ac_n "checking for library containing frexp""... $ac_c" 1>&6
5119 echo "configure:5120: checking for library containing frexp" >&5
5120 if eval "test \"`echo '$''{'ac_cv_search_frexp'+set}'`\" = set"; then
5121 echo $ac_n "(cached) $ac_c" 1>&6
5123 ac_func_search_save_LIBS="$LIBS"
5124 ac_cv_search_frexp="no"
5125 cat > conftest.$ac_ext <<EOF
5126 #line 5127 "configure"
5127 #include "confdefs.h"
5128 /* Override any gcc2 internal prototype to avoid an error. */
5129 /* We use char because int might match the return type of a gcc2
5130 builtin and then its argument prototype would still apply. */
5137 if { (eval echo configure:5138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5139 ac_cv_search_frexp="none required"
5141 echo "configure: failed program was:" >&5
5142 cat conftest.$ac_ext >&5
5145 test "$ac_cv_search_frexp" = "no" && for i in m; do
5146 LIBS="-l$i $ac_func_search_save_LIBS"
5147 cat > conftest.$ac_ext <<EOF
5148 #line 5149 "configure"
5149 #include "confdefs.h"
5150 /* Override any gcc2 internal prototype to avoid an error. */
5151 /* We use char because int might match the return type of a gcc2
5152 builtin and then its argument prototype would still apply. */
5159 if { (eval echo configure:5160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5161 ac_cv_search_frexp="-l$i"
5164 echo "configure: failed program was:" >&5
5165 cat conftest.$ac_ext >&5
5169 LIBS="$ac_func_search_save_LIBS"
5172 echo "$ac_t""$ac_cv_search_frexp" 1>&6
5173 if test "$ac_cv_search_frexp" != "no"; then
5174 test "$ac_cv_search_frexp" = "none required" || LIBS="$ac_cv_search_frexp $LIBS"
5180 echo $ac_n "checking for time_t in time.h""... $ac_c" 1>&6
5181 echo "configure:5182: checking for time_t in time.h" >&5
5182 if eval "test \"`echo '$''{'bu_cv_decl_time_t_time_h'+set}'`\" = set"; then
5183 echo $ac_n "(cached) $ac_c" 1>&6
5185 cat > conftest.$ac_ext <<EOF
5186 #line 5187 "configure"
5187 #include "confdefs.h"
5193 if { (eval echo configure:5194: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5195 bu_cv_decl_time_t_time_h=yes
5197 echo "configure: failed program was:" >&5
5198 cat conftest.$ac_ext >&5
5200 bu_cv_decl_time_t_time_h=no
5205 echo "$ac_t""$bu_cv_decl_time_t_time_h" 1>&6
5206 if test $bu_cv_decl_time_t_time_h = yes; then
5207 cat >> confdefs.h <<\EOF
5208 #define HAVE_TIME_T_IN_TIME_H 1
5213 echo $ac_n "checking for time_t in sys/types.h""... $ac_c" 1>&6
5214 echo "configure:5215: checking for time_t in sys/types.h" >&5
5215 if eval "test \"`echo '$''{'bu_cv_decl_time_t_types_h'+set}'`\" = set"; then
5216 echo $ac_n "(cached) $ac_c" 1>&6
5218 cat > conftest.$ac_ext <<EOF
5219 #line 5220 "configure"
5220 #include "confdefs.h"
5221 #include <sys/types.h>
5226 if { (eval echo configure:5227: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5228 bu_cv_decl_time_t_types_h=yes
5230 echo "configure: failed program was:" >&5
5231 cat conftest.$ac_ext >&5
5233 bu_cv_decl_time_t_types_h=no
5238 echo "$ac_t""$bu_cv_decl_time_t_types_h" 1>&6
5239 if test $bu_cv_decl_time_t_types_h = yes; then
5240 cat >> confdefs.h <<\EOF
5241 #define HAVE_TIME_T_IN_TYPES_H 1
5246 echo $ac_n "checking for a known getopt prototype in unistd.h""... $ac_c" 1>&6
5247 echo "configure:5248: checking for a known getopt prototype in unistd.h" >&5
5248 if eval "test \"`echo '$''{'bu_cv_decl_getopt_unistd_h'+set}'`\" = set"; then
5249 echo $ac_n "(cached) $ac_c" 1>&6
5251 cat > conftest.$ac_ext <<EOF
5252 #line 5253 "configure"
5253 #include "confdefs.h"
5256 extern int getopt (int, char *const*, const char *);
5259 if { (eval echo configure:5260: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5261 bu_cv_decl_getopt_unistd_h=yes
5263 echo "configure: failed program was:" >&5
5264 cat conftest.$ac_ext >&5
5266 bu_cv_decl_getopt_unistd_h=no
5271 echo "$ac_t""$bu_cv_decl_getopt_unistd_h" 1>&6
5272 if test $bu_cv_decl_getopt_unistd_h = yes; then
5273 cat >> confdefs.h <<\EOF
5274 #define HAVE_DECL_GETOPT 1
5279 # Under Next 3.2 <utime.h> apparently does not define struct utimbuf
5281 echo $ac_n "checking for utime.h""... $ac_c" 1>&6
5282 echo "configure:5283: checking for utime.h" >&5
5283 if eval "test \"`echo '$''{'bu_cv_header_utime_h'+set}'`\" = set"; then
5284 echo $ac_n "(cached) $ac_c" 1>&6
5286 cat > conftest.$ac_ext <<EOF
5287 #line 5288 "configure"
5288 #include "confdefs.h"
5289 #include <sys/types.h>
5298 if { (eval echo configure:5299: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5300 bu_cv_header_utime_h=yes
5302 echo "configure: failed program was:" >&5
5303 cat conftest.$ac_ext >&5
5305 bu_cv_header_utime_h=no
5310 echo "$ac_t""$bu_cv_header_utime_h" 1>&6
5311 if test $bu_cv_header_utime_h = yes; then
5312 cat >> confdefs.h <<\EOF
5313 #define HAVE_GOOD_UTIME_H 1
5318 echo $ac_n "checking whether fprintf must be declared""... $ac_c" 1>&6
5319 echo "configure:5320: checking whether fprintf must be declared" >&5
5320 if eval "test \"`echo '$''{'bfd_cv_decl_needed_fprintf'+set}'`\" = set"; then
5321 echo $ac_n "(cached) $ac_c" 1>&6
5323 cat > conftest.$ac_ext <<EOF
5324 #line 5325 "configure"
5325 #include "confdefs.h"
5328 #ifdef HAVE_STRING_H
5331 #ifdef HAVE_STRINGS_H
5332 #include <strings.h>
5335 #ifdef HAVE_STDLIB_H
5338 #ifdef HAVE_UNISTD_H
5342 char *(*pfn) = (char *(*)) fprintf
5345 if { (eval echo configure:5346: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5347 bfd_cv_decl_needed_fprintf=no
5349 echo "configure: failed program was:" >&5
5350 cat conftest.$ac_ext >&5
5352 bfd_cv_decl_needed_fprintf=yes
5357 echo "$ac_t""$bfd_cv_decl_needed_fprintf" 1>&6
5358 if test $bfd_cv_decl_needed_fprintf = yes; then
5359 cat >> confdefs.h <<\EOF
5360 #define NEED_DECLARATION_FPRINTF 1
5365 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
5366 echo "configure:5367: checking whether strstr must be declared" >&5
5367 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
5368 echo $ac_n "(cached) $ac_c" 1>&6
5370 cat > conftest.$ac_ext <<EOF
5371 #line 5372 "configure"
5372 #include "confdefs.h"
5375 #ifdef HAVE_STRING_H
5378 #ifdef HAVE_STRINGS_H
5379 #include <strings.h>
5382 #ifdef HAVE_STDLIB_H
5385 #ifdef HAVE_UNISTD_H
5389 char *(*pfn) = (char *(*)) strstr
5392 if { (eval echo configure:5393: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5394 bfd_cv_decl_needed_strstr=no
5396 echo "configure: failed program was:" >&5
5397 cat conftest.$ac_ext >&5
5399 bfd_cv_decl_needed_strstr=yes
5404 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
5405 if test $bfd_cv_decl_needed_strstr = yes; then
5406 cat >> confdefs.h <<\EOF
5407 #define NEED_DECLARATION_STRSTR 1
5412 echo $ac_n "checking whether sbrk must be declared""... $ac_c" 1>&6
5413 echo "configure:5414: checking whether sbrk must be declared" >&5
5414 if eval "test \"`echo '$''{'bfd_cv_decl_needed_sbrk'+set}'`\" = set"; then
5415 echo $ac_n "(cached) $ac_c" 1>&6
5417 cat > conftest.$ac_ext <<EOF
5418 #line 5419 "configure"
5419 #include "confdefs.h"
5422 #ifdef HAVE_STRING_H
5425 #ifdef HAVE_STRINGS_H
5426 #include <strings.h>
5429 #ifdef HAVE_STDLIB_H
5432 #ifdef HAVE_UNISTD_H
5436 char *(*pfn) = (char *(*)) sbrk
5439 if { (eval echo configure:5440: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5441 bfd_cv_decl_needed_sbrk=no
5443 echo "configure: failed program was:" >&5
5444 cat conftest.$ac_ext >&5
5446 bfd_cv_decl_needed_sbrk=yes
5451 echo "$ac_t""$bfd_cv_decl_needed_sbrk" 1>&6
5452 if test $bfd_cv_decl_needed_sbrk = yes; then
5453 cat >> confdefs.h <<\EOF
5454 #define NEED_DECLARATION_SBRK 1
5459 echo $ac_n "checking whether getenv must be declared""... $ac_c" 1>&6
5460 echo "configure:5461: checking whether getenv must be declared" >&5
5461 if eval "test \"`echo '$''{'bfd_cv_decl_needed_getenv'+set}'`\" = set"; then
5462 echo $ac_n "(cached) $ac_c" 1>&6
5464 cat > conftest.$ac_ext <<EOF
5465 #line 5466 "configure"
5466 #include "confdefs.h"
5469 #ifdef HAVE_STRING_H
5472 #ifdef HAVE_STRINGS_H
5473 #include <strings.h>
5476 #ifdef HAVE_STDLIB_H
5479 #ifdef HAVE_UNISTD_H
5483 char *(*pfn) = (char *(*)) getenv
5486 if { (eval echo configure:5487: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5488 bfd_cv_decl_needed_getenv=no
5490 echo "configure: failed program was:" >&5
5491 cat conftest.$ac_ext >&5
5493 bfd_cv_decl_needed_getenv=yes
5498 echo "$ac_t""$bfd_cv_decl_needed_getenv" 1>&6
5499 if test $bfd_cv_decl_needed_getenv = yes; then
5500 cat >> confdefs.h <<\EOF
5501 #define NEED_DECLARATION_GETENV 1
5506 echo $ac_n "checking whether environ must be declared""... $ac_c" 1>&6
5507 echo "configure:5508: checking whether environ must be declared" >&5
5508 if eval "test \"`echo '$''{'bfd_cv_decl_needed_environ'+set}'`\" = set"; then
5509 echo $ac_n "(cached) $ac_c" 1>&6
5511 cat > conftest.$ac_ext <<EOF
5512 #line 5513 "configure"
5513 #include "confdefs.h"
5516 #ifdef HAVE_STRING_H
5519 #ifdef HAVE_STRINGS_H
5520 #include <strings.h>
5523 #ifdef HAVE_STDLIB_H
5526 #ifdef HAVE_UNISTD_H
5530 char *(*pfn) = (char *(*)) environ
5533 if { (eval echo configure:5534: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5535 bfd_cv_decl_needed_environ=no
5537 echo "configure: failed program was:" >&5
5538 cat conftest.$ac_ext >&5
5540 bfd_cv_decl_needed_environ=yes
5545 echo "$ac_t""$bfd_cv_decl_needed_environ" 1>&6
5546 if test $bfd_cv_decl_needed_environ = yes; then
5547 cat >> confdefs.h <<\EOF
5548 #define NEED_DECLARATION_ENVIRON 1
5556 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
5557 cat >> confdefs.h <<\EOF
5558 #define USE_BINARY_FOPEN 1
5563 # target-specific stuff:
5565 # Canonicalize the secondary target names.
5566 if test -n "$enable_targets"; then
5567 for targ in `echo $enable_targets | sed 's/,/ /g'`
5569 result=`$ac_config_sub $targ 2>/dev/null`
5570 if test -n "$result"; then
5571 canon_targets="$canon_targets $result"
5573 # Allow targets that config.sub doesn't recognize, like "all".
5574 canon_targets="$canon_targets $targ"
5590 for targ in $target $canon_targets
5592 if test "x$targ" = "xall"; then
5594 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
5595 BUILD_SRCONV='$(SRCONV_PROG)'
5596 NLMCONV_DEFS="-DNLMCONV_I386 -DNLMCONV_ALPHA -DNLMCONV_POWERPC -DNLMCONV_SPARC"
5599 i[3-7]86*-*-netware*)
5600 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
5601 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_I386"
5604 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
5605 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_ALPHA"
5607 powerpc*-*-netware*)
5608 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
5609 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_POWERPC"
5612 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
5613 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_SPARC"
5617 *-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;;
5621 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
5622 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_EPOC -DDLLTOOL_ARM"
5623 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
5625 arm-*-pe* | arm-*-wince)
5626 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
5627 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
5628 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
5631 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
5632 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
5633 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
5635 arm*-* | xscale-* | strongarm-* | d10v-*)
5636 OBJDUMP_DEFS="-DDISASSEMBLER_NEEDS_RELOCS"
5638 i[3-7]86-*-pe* | i[3-7]86-*-cygwin* | i[3-7]86-*-mingw32** | i[3-7]86-*-netbsdpe*)
5639 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
5640 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
5641 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
5642 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
5645 BUILD_DLLTOOL='$(DLLTOOL_PROG)'
5646 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
5651 OBJDUMP_DEFS="-DAIX_WEAK_SUPPORT"
5653 powerpc*-*-pe* | powerpc*-*-cygwin*)
5654 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
5655 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_PPC"
5656 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
5659 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
5660 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH"
5661 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
5664 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
5665 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MIPS"
5666 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
5669 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
5670 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
5671 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
5674 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
5675 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"
5681 if test "${with_windres+set}" = set; then
5682 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
5695 cat >> confdefs.h <<EOF
5696 #define TARGET "${target}"
5701 . $srcdir/../bfd/config.bfd
5702 if test "x$targ_underscore" = "xyes"; then
5707 cat >> confdefs.h <<EOF
5708 #define TARGET_PREPENDS_UNDERSCORE $UNDERSCORE
5713 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
5715 # Canonicalize the secondary target names.
5716 result=`$ac_config_sub $targ_alias 2>/dev/null`
5717 if test -n "$result"; then
5723 . ${srcdir}/configure.tgt
5725 EMULATION=$targ_emul
5726 EMULATION_VECTOR=$targ_emul_vector
5733 cat > confcache <<\EOF
5734 # This file is a shell script that caches the results of configure
5735 # tests run on this system so they can be shared between configure
5736 # scripts and configure runs. It is not useful on other systems.
5737 # If it contains results you don't want to keep, you may remove or edit it.
5739 # By default, configure uses ./config.cache as the cache file,
5740 # creating it if it does not exist already. You can give configure
5741 # the --cache-file=FILE option to use a different cache file; that is
5742 # what configure does when it calls configure scripts in
5743 # subdirectories, so they share the cache.
5744 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5745 # config.status only pays attention to the cache file if you give it the
5746 # --recheck option to rerun configure.
5749 # The following way of writing the cache mishandles newlines in values,
5750 # but we know of no workaround that is simple, portable, and efficient.
5751 # So, don't put newlines in cache variables' values.
5752 # Ultrix sh set writes to stderr and can't be redirected directly,
5753 # and sets the high bit in the cache file unless we assign to the vars.
5755 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5757 # `set' does not quote correctly, so add quotes (double-quote substitution
5758 # turns \\\\ into \\, and sed turns \\ into \).
5760 -e "s/'/'\\\\''/g" \
5761 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5764 # `set' quotes correctly as required by POSIX, so do not add quotes.
5765 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5768 if cmp -s $cache_file confcache; then
5771 if test -w $cache_file; then
5772 echo "updating cache $cache_file"
5773 cat confcache > $cache_file
5775 echo "not updating unwritable cache $cache_file"
5780 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5782 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5783 # Let make expand exec_prefix.
5784 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5786 # Any assignment to VPATH causes Sun make to only execute
5787 # the first set of double-colon rules, so remove it if not needed.
5788 # If there is a colon in the path, we need to keep it.
5789 if test "x$srcdir" = x.; then
5790 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
5793 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5795 DEFS=-DHAVE_CONFIG_H
5797 # Without the "./", some shells look in PATH for config.status.
5798 : ${CONFIG_STATUS=./config.status}
5800 echo creating $CONFIG_STATUS
5801 rm -f $CONFIG_STATUS
5802 cat > $CONFIG_STATUS <<EOF
5804 # Generated automatically by configure.
5805 # Run this file to recreate the current configuration.
5806 # This directory was configured as follows,
5807 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5809 # $0 $ac_configure_args
5811 # Compiler output produced by configure, useful for debugging
5812 # configure, is in ./config.log if it exists.
5814 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5817 case "\$ac_option" in
5818 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5819 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5820 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5821 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5822 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5824 -help | --help | --hel | --he | --h)
5825 echo "\$ac_cs_usage"; exit 0 ;;
5826 *) echo "\$ac_cs_usage"; exit 1 ;;
5830 ac_given_srcdir=$srcdir
5831 ac_given_INSTALL="$INSTALL"
5833 trap 'rm -fr `echo "Makefile doc/Makefile po/Makefile.in:po/Make-in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5835 cat >> $CONFIG_STATUS <<EOF
5837 # Protect against being on the right side of a sed subst in config.status.
5838 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5839 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5843 s%@CFLAGS@%$CFLAGS%g
5844 s%@CPPFLAGS@%$CPPFLAGS%g
5845 s%@CXXFLAGS@%$CXXFLAGS%g
5846 s%@FFLAGS@%$FFLAGS%g
5848 s%@LDFLAGS@%$LDFLAGS%g
5850 s%@exec_prefix@%$exec_prefix%g
5851 s%@prefix@%$prefix%g
5852 s%@program_transform_name@%$program_transform_name%g
5853 s%@bindir@%$bindir%g
5854 s%@sbindir@%$sbindir%g
5855 s%@libexecdir@%$libexecdir%g
5856 s%@datadir@%$datadir%g
5857 s%@sysconfdir@%$sysconfdir%g
5858 s%@sharedstatedir@%$sharedstatedir%g
5859 s%@localstatedir@%$localstatedir%g
5860 s%@libdir@%$libdir%g
5861 s%@includedir@%$includedir%g
5862 s%@oldincludedir@%$oldincludedir%g
5863 s%@infodir@%$infodir%g
5864 s%@mandir@%$mandir%g
5866 s%@host_alias@%$host_alias%g
5867 s%@host_cpu@%$host_cpu%g
5868 s%@host_vendor@%$host_vendor%g
5869 s%@host_os@%$host_os%g
5870 s%@target@%$target%g
5871 s%@target_alias@%$target_alias%g
5872 s%@target_cpu@%$target_cpu%g
5873 s%@target_vendor@%$target_vendor%g
5874 s%@target_os@%$target_os%g
5876 s%@build_alias@%$build_alias%g
5877 s%@build_cpu@%$build_cpu%g
5878 s%@build_vendor@%$build_vendor%g
5879 s%@build_os@%$build_os%g
5881 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5882 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5883 s%@INSTALL_DATA@%$INSTALL_DATA%g
5884 s%@PACKAGE@%$PACKAGE%g
5885 s%@VERSION@%$VERSION%g
5886 s%@ACLOCAL@%$ACLOCAL%g
5887 s%@AUTOCONF@%$AUTOCONF%g
5888 s%@AUTOMAKE@%$AUTOMAKE%g
5889 s%@AUTOHEADER@%$AUTOHEADER%g
5890 s%@MAKEINFO@%$MAKEINFO%g
5891 s%@SET_MAKE@%$SET_MAKE%g
5893 s%@OBJEXT@%$OBJEXT%g
5894 s%@EXEEXT@%$EXEEXT%g
5895 s%@RANLIB@%$RANLIB%g
5897 s%@LIBTOOL@%$LIBTOOL%g
5898 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
5901 s%@LEXLIB@%$LEXLIB%g
5903 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
5904 s%@ALLOCA@%$ALLOCA%g
5905 s%@USE_NLS@%$USE_NLS%g
5906 s%@MSGFMT@%$MSGFMT%g
5907 s%@GMSGFMT@%$GMSGFMT%g
5908 s%@XGETTEXT@%$XGETTEXT%g
5909 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
5910 s%@CATALOGS@%$CATALOGS%g
5911 s%@CATOBJEXT@%$CATOBJEXT%g
5912 s%@DATADIRNAME@%$DATADIRNAME%g
5913 s%@GMOFILES@%$GMOFILES%g
5914 s%@INSTOBJEXT@%$INSTOBJEXT%g
5915 s%@INTLDEPS@%$INTLDEPS%g
5916 s%@INTLLIBS@%$INTLLIBS%g
5917 s%@INTLOBJS@%$INTLOBJS%g
5918 s%@POFILES@%$POFILES%g
5920 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
5922 s%@GT_YES@%$GT_YES%g
5923 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
5925 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
5926 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
5928 s%@HDEFINES@%$HDEFINES%g
5930 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
5931 s%@EXEEXT_FOR_BUILD@%$EXEEXT_FOR_BUILD%g
5932 s%@DEMANGLER_NAME@%$DEMANGLER_NAME%g
5933 s%@NLMCONV_DEFS@%$NLMCONV_DEFS%g
5934 s%@BUILD_NLMCONV@%$BUILD_NLMCONV%g
5935 s%@BUILD_SRCONV@%$BUILD_SRCONV%g
5936 s%@BUILD_DLLTOOL@%$BUILD_DLLTOOL%g
5937 s%@DLLTOOL_DEFS@%$DLLTOOL_DEFS%g
5938 s%@BUILD_WINDRES@%$BUILD_WINDRES%g
5939 s%@BUILD_DLLWRAP@%$BUILD_DLLWRAP%g
5940 s%@BUILD_MISC@%$BUILD_MISC%g
5941 s%@OBJDUMP_DEFS@%$OBJDUMP_DEFS%g
5942 s%@EMULATION@%$EMULATION%g
5943 s%@EMULATION_VECTOR@%$EMULATION_VECTOR%g
5948 cat >> $CONFIG_STATUS <<\EOF
5950 # Split the substitutions into bite-sized pieces for seds with
5951 # small command number limits, like on Digital OSF/1 and HP-UX.
5952 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5953 ac_file=1 # Number of current file.
5954 ac_beg=1 # First line for current file.
5955 ac_end=$ac_max_sed_cmds # Line after last line for current file.
5958 while $ac_more_lines; do
5959 if test $ac_beg -gt 1; then
5960 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5962 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5964 if test ! -s conftest.s$ac_file; then
5966 rm -f conftest.s$ac_file
5968 if test -z "$ac_sed_cmds"; then
5969 ac_sed_cmds="sed -f conftest.s$ac_file"
5971 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5973 ac_file=`expr $ac_file + 1`
5975 ac_end=`expr $ac_end + $ac_max_sed_cmds`
5978 if test -z "$ac_sed_cmds"; then
5983 cat >> $CONFIG_STATUS <<EOF
5985 CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile po/Makefile.in:po/Make-in"}
5987 cat >> $CONFIG_STATUS <<\EOF
5988 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5989 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5991 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5992 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5993 *) ac_file_in="${ac_file}.in" ;;
5996 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5998 # Remove last slash and all that follows it. Not all systems have dirname.
5999 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6000 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6001 # The file is in a subdirectory.
6002 test ! -d "$ac_dir" && mkdir "$ac_dir"
6003 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
6004 # A "../" for each directory in $ac_dir_suffix.
6005 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6007 ac_dir_suffix= ac_dots=
6010 case "$ac_given_srcdir" in
6012 if test -z "$ac_dots"; then top_srcdir=.
6013 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6014 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
6016 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6017 top_srcdir="$ac_dots$ac_given_srcdir" ;;
6020 case "$ac_given_INSTALL" in
6021 [/$]*) INSTALL="$ac_given_INSTALL" ;;
6022 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6025 echo creating "$ac_file"
6027 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6029 *Makefile*) ac_comsub="1i\\
6030 # $configure_input" ;;
6034 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6036 s%@configure_input@%$configure_input%g
6037 s%@srcdir@%$srcdir%g
6038 s%@top_srcdir@%$top_srcdir%g
6039 s%@INSTALL@%$INSTALL%g
6040 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
6044 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6045 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6047 # ac_d sets the value in "#define NAME VALUE" lines.
6048 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6049 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
6052 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6053 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6054 ac_uB='\([ ]\)%\1#\2define\3'
6057 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6058 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6059 ac_eB='$%\1#\2define\3'
6063 if test "${CONFIG_HEADERS+set}" != set; then
6065 cat >> $CONFIG_STATUS <<EOF
6066 CONFIG_HEADERS="config.h:config.in"
6068 cat >> $CONFIG_STATUS <<\EOF
6070 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
6071 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6073 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6074 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6075 *) ac_file_in="${ac_file}.in" ;;
6078 echo creating $ac_file
6080 rm -f conftest.frag conftest.in conftest.out
6081 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6082 cat $ac_file_inputs > conftest.in
6086 # Transform confdefs.h into a sed script conftest.vals that substitutes
6087 # the proper values into config.h.in to produce config.h. And first:
6088 # Protect against being on the right side of a sed subst in config.status.
6089 # Protect against being in an unquoted here document in config.status.
6091 cat > conftest.hdr <<\EOF
6094 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6098 sed -n -f conftest.hdr confdefs.h > conftest.vals
6101 # This sed command replaces #undef with comments. This is necessary, for
6102 # example, in the case of _POSIX_SOURCE, which is predefined and required
6103 # on some systems where configure will not decide to define it.
6104 cat >> conftest.vals <<\EOF
6105 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6108 # Break up conftest.vals because some shells have a limit on
6109 # the size of here documents, and old seds have small limits too.
6114 ac_lines=`grep -c . conftest.vals`
6115 # grep -c gives empty output for an empty file on some AIX systems.
6116 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6117 # Write a limited-size here document to conftest.frag.
6118 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6119 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6121 sed -f conftest.frag conftest.in > conftest.out
6123 mv conftest.out conftest.in
6125 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6127 mv conftest.tail conftest.vals
6131 cat >> $CONFIG_STATUS <<\EOF
6132 rm -f conftest.frag conftest.h
6133 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6134 cat conftest.in >> conftest.h
6136 if cmp -s $ac_file conftest.h 2>/dev/null; then
6137 echo "$ac_file is unchanged"
6140 # Remove last slash and all that follows it. Not all systems have dirname.
6141 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6142 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6143 # The file is in a subdirectory.
6144 test ! -d "$ac_dir" && mkdir "$ac_dir"
6147 mv conftest.h $ac_file
6152 cat >> $CONFIG_STATUS <<EOF
6156 cat >> $CONFIG_STATUS <<\EOF
6157 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
6159 case "x$CONFIG_FILES" in
6160 *) sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile ;;
6165 chmod +x $CONFIG_STATUS
6166 rm -fr confdefs* $ac_clean_files
6167 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1