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 unistd.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 /* This mess was copied from the GNU getpagesize.h. */
3439 #ifndef HAVE_GETPAGESIZE
3440 # ifdef HAVE_UNISTD_H
3441 # include <unistd.h>
3444 /* Assume that all systems that can run configure have sys/param.h. */
3445 # ifndef HAVE_SYS_PARAM_H
3446 # define HAVE_SYS_PARAM_H 1
3449 # ifdef _SC_PAGESIZE
3450 # define getpagesize() sysconf(_SC_PAGESIZE)
3451 # else /* no _SC_PAGESIZE */
3452 # ifdef HAVE_SYS_PARAM_H
3453 # include <sys/param.h>
3454 # ifdef EXEC_PAGESIZE
3455 # define getpagesize() EXEC_PAGESIZE
3456 # else /* no EXEC_PAGESIZE */
3458 # define getpagesize() NBPG * CLSIZE
3461 # endif /* no CLSIZE */
3462 # else /* no NBPG */
3464 # define getpagesize() NBPC
3465 # else /* no NBPC */
3467 # define getpagesize() PAGESIZE
3468 # endif /* PAGESIZE */
3469 # endif /* no NBPC */
3470 # endif /* no NBPG */
3471 # endif /* no EXEC_PAGESIZE */
3472 # else /* no HAVE_SYS_PARAM_H */
3473 # define getpagesize() 8192 /* punt totally */
3474 # endif /* no HAVE_SYS_PARAM_H */
3475 # endif /* no _SC_PAGESIZE */
3477 #endif /* no HAVE_GETPAGESIZE */
3480 extern "C" { void *malloc(unsigned); }
3488 char *data, *data2, *data3;
3492 pagesize = getpagesize();
3495 * First, make a file with some known garbage in it.
3497 data = malloc(pagesize);
3500 for (i = 0; i < pagesize; ++i)
3501 *(data + i) = rand();
3503 fd = creat("conftestmmap", 0600);
3506 if (write(fd, data, pagesize) != pagesize)
3511 * Next, try to mmap the file at a fixed address which
3512 * already has something else allocated at it. If we can,
3513 * also make sure that we see the same garbage.
3515 fd = open("conftestmmap", O_RDWR);
3518 data2 = malloc(2 * pagesize);
3521 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3522 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3523 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3525 for (i = 0; i < pagesize; ++i)
3526 if (*(data + i) != *(data2 + i))
3530 * Finally, make sure that changes to the mapped area
3531 * do not percolate back to the file as seen by read().
3532 * (This is a bug on some variants of i386 svr4.0.)
3534 for (i = 0; i < pagesize; ++i)
3535 *(data2 + i) = *(data2 + i) + 1;
3536 data3 = malloc(pagesize);
3539 if (read(fd, data3, pagesize) != pagesize)
3541 for (i = 0; i < pagesize; ++i)
3542 if (*(data + i) != *(data3 + i))
3545 unlink("conftestmmap");
3550 if { (eval echo configure:3551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3552 ac_cv_func_mmap_fixed_mapped=yes
3554 echo "configure: failed program was:" >&5
3555 cat conftest.$ac_ext >&5
3557 ac_cv_func_mmap_fixed_mapped=no
3564 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3565 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3566 cat >> confdefs.h <<\EOF
3573 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
3574 unistd.h values.h sys/param.h
3576 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3577 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3578 echo "configure:3579: checking for $ac_hdr" >&5
3579 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3580 echo $ac_n "(cached) $ac_c" 1>&6
3582 cat > conftest.$ac_ext <<EOF
3583 #line 3584 "configure"
3584 #include "confdefs.h"
3587 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3588 { (eval echo configure:3589: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3589 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3590 if test -z "$ac_err"; then
3592 eval "ac_cv_header_$ac_safe=yes"
3595 echo "configure: failed program was:" >&5
3596 cat conftest.$ac_ext >&5
3598 eval "ac_cv_header_$ac_safe=no"
3602 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3603 echo "$ac_t""yes" 1>&6
3604 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3605 cat >> confdefs.h <<EOF
3606 #define $ac_tr_hdr 1
3610 echo "$ac_t""no" 1>&6
3614 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
3615 __argz_count __argz_stringify __argz_next
3617 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3618 echo "configure:3619: checking for $ac_func" >&5
3619 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3620 echo $ac_n "(cached) $ac_c" 1>&6
3622 cat > conftest.$ac_ext <<EOF
3623 #line 3624 "configure"
3624 #include "confdefs.h"
3625 /* System header to define __stub macros and hopefully few prototypes,
3626 which can conflict with char $ac_func(); below. */
3628 /* Override any gcc2 internal prototype to avoid an error. */
3629 /* We use char because int might match the return type of a gcc2
3630 builtin and then its argument prototype would still apply. */
3635 /* The GNU C library defines this for functions which it implements
3636 to always fail with ENOSYS. Some functions are actually named
3637 something starting with __ and the normal name is an alias. */
3638 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3646 if { (eval echo configure:3647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3648 eval "ac_cv_func_$ac_func=yes"
3650 echo "configure: failed program was:" >&5
3651 cat conftest.$ac_ext >&5
3653 eval "ac_cv_func_$ac_func=no"
3658 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3659 echo "$ac_t""yes" 1>&6
3660 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3661 cat >> confdefs.h <<EOF
3662 #define $ac_tr_func 1
3666 echo "$ac_t""no" 1>&6
3671 if test "${ac_cv_func_stpcpy+set}" != "set"; then
3672 for ac_func in stpcpy
3674 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3675 echo "configure:3676: checking for $ac_func" >&5
3676 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3677 echo $ac_n "(cached) $ac_c" 1>&6
3679 cat > conftest.$ac_ext <<EOF
3680 #line 3681 "configure"
3681 #include "confdefs.h"
3682 /* System header to define __stub macros and hopefully few prototypes,
3683 which can conflict with char $ac_func(); below. */
3685 /* Override any gcc2 internal prototype to avoid an error. */
3686 /* We use char because int might match the return type of a gcc2
3687 builtin and then its argument prototype would still apply. */
3692 /* The GNU C library defines this for functions which it implements
3693 to always fail with ENOSYS. Some functions are actually named
3694 something starting with __ and the normal name is an alias. */
3695 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3703 if { (eval echo configure:3704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3705 eval "ac_cv_func_$ac_func=yes"
3707 echo "configure: failed program was:" >&5
3708 cat conftest.$ac_ext >&5
3710 eval "ac_cv_func_$ac_func=no"
3715 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3716 echo "$ac_t""yes" 1>&6
3717 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3718 cat >> confdefs.h <<EOF
3719 #define $ac_tr_func 1
3723 echo "$ac_t""no" 1>&6
3728 if test "${ac_cv_func_stpcpy}" = "yes"; then
3729 cat >> confdefs.h <<\EOF
3730 #define HAVE_STPCPY 1
3735 if test $ac_cv_header_locale_h = yes; then
3736 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3737 echo "configure:3738: checking for LC_MESSAGES" >&5
3738 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3739 echo $ac_n "(cached) $ac_c" 1>&6
3741 cat > conftest.$ac_ext <<EOF
3742 #line 3743 "configure"
3743 #include "confdefs.h"
3749 if { (eval echo configure:3750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3751 am_cv_val_LC_MESSAGES=yes
3753 echo "configure: failed program was:" >&5
3754 cat conftest.$ac_ext >&5
3756 am_cv_val_LC_MESSAGES=no
3761 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3762 if test $am_cv_val_LC_MESSAGES = yes; then
3763 cat >> confdefs.h <<\EOF
3764 #define HAVE_LC_MESSAGES 1
3769 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3770 echo "configure:3771: checking whether NLS is requested" >&5
3771 # Check whether --enable-nls or --disable-nls was given.
3772 if test "${enable_nls+set}" = set; then
3773 enableval="$enable_nls"
3779 echo "$ac_t""$USE_NLS" 1>&6
3782 USE_INCLUDED_LIBINTL=no
3784 if test "$USE_NLS" = "yes"; then
3785 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3786 echo "configure:3787: checking whether included gettext is requested" >&5
3787 # Check whether --with-included-gettext or --without-included-gettext was given.
3788 if test "${with_included_gettext+set}" = set; then
3789 withval="$with_included_gettext"
3790 nls_cv_force_use_gnu_gettext=$withval
3792 nls_cv_force_use_gnu_gettext=no
3795 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3797 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
3798 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3800 nls_cv_header_libgt=
3803 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3804 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3805 echo "configure:3806: checking for libintl.h" >&5
3806 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3807 echo $ac_n "(cached) $ac_c" 1>&6
3809 cat > conftest.$ac_ext <<EOF
3810 #line 3811 "configure"
3811 #include "confdefs.h"
3812 #include <libintl.h>
3814 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3815 { (eval echo configure:3816: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3816 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3817 if test -z "$ac_err"; then
3819 eval "ac_cv_header_$ac_safe=yes"
3822 echo "configure: failed program was:" >&5
3823 cat conftest.$ac_ext >&5
3825 eval "ac_cv_header_$ac_safe=no"
3829 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3830 echo "$ac_t""yes" 1>&6
3831 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3832 echo "configure:3833: checking for gettext in libc" >&5
3833 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3834 echo $ac_n "(cached) $ac_c" 1>&6
3836 cat > conftest.$ac_ext <<EOF
3837 #line 3838 "configure"
3838 #include "confdefs.h"
3839 #include <libintl.h>
3841 return (int) gettext ("")
3844 if { (eval echo configure:3845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3846 gt_cv_func_gettext_libc=yes
3848 echo "configure: failed program was:" >&5
3849 cat conftest.$ac_ext >&5
3851 gt_cv_func_gettext_libc=no
3856 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3858 if test "$gt_cv_func_gettext_libc" != "yes"; then
3859 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3860 echo "configure:3861: checking for bindtextdomain in -lintl" >&5
3861 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3862 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3863 echo $ac_n "(cached) $ac_c" 1>&6
3865 ac_save_LIBS="$LIBS"
3867 cat > conftest.$ac_ext <<EOF
3868 #line 3869 "configure"
3869 #include "confdefs.h"
3870 /* Override any gcc2 internal prototype to avoid an error. */
3871 /* We use char because int might match the return type of a gcc2
3872 builtin and then its argument prototype would still apply. */
3873 char bindtextdomain();
3879 if { (eval echo configure:3880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3881 eval "ac_cv_lib_$ac_lib_var=yes"
3883 echo "configure: failed program was:" >&5
3884 cat conftest.$ac_ext >&5
3886 eval "ac_cv_lib_$ac_lib_var=no"
3889 LIBS="$ac_save_LIBS"
3892 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3893 echo "$ac_t""yes" 1>&6
3894 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3895 echo "configure:3896: checking for gettext in libintl" >&5
3896 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3897 echo $ac_n "(cached) $ac_c" 1>&6
3899 cat > conftest.$ac_ext <<EOF
3900 #line 3901 "configure"
3901 #include "confdefs.h"
3904 return (int) gettext ("")
3907 if { (eval echo configure:3908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3909 gt_cv_func_gettext_libintl=yes
3911 echo "configure: failed program was:" >&5
3912 cat conftest.$ac_ext >&5
3914 gt_cv_func_gettext_libintl=no
3919 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3921 echo "$ac_t""no" 1>&6
3926 if test "$gt_cv_func_gettext_libc" = "yes" \
3927 || test "$gt_cv_func_gettext_libintl" = "yes"; then
3928 cat >> confdefs.h <<\EOF
3929 #define HAVE_GETTEXT 1
3932 # Extract the first word of "msgfmt", so it can be a program name with args.
3933 set dummy msgfmt; ac_word=$2
3934 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3935 echo "configure:3936: checking for $ac_word" >&5
3936 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3937 echo $ac_n "(cached) $ac_c" 1>&6
3941 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3944 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3945 for ac_dir in $PATH; do
3946 test -z "$ac_dir" && ac_dir=.
3947 if test -f $ac_dir/$ac_word; then
3948 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3949 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3955 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
3959 MSGFMT="$ac_cv_path_MSGFMT"
3960 if test -n "$MSGFMT"; then
3961 echo "$ac_t""$MSGFMT" 1>&6
3963 echo "$ac_t""no" 1>&6
3965 if test "$MSGFMT" != "no"; then
3966 for ac_func in dcgettext
3968 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3969 echo "configure:3970: checking for $ac_func" >&5
3970 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3971 echo $ac_n "(cached) $ac_c" 1>&6
3973 cat > conftest.$ac_ext <<EOF
3974 #line 3975 "configure"
3975 #include "confdefs.h"
3976 /* System header to define __stub macros and hopefully few prototypes,
3977 which can conflict with char $ac_func(); below. */
3979 /* Override any gcc2 internal prototype to avoid an error. */
3980 /* We use char because int might match the return type of a gcc2
3981 builtin and then its argument prototype would still apply. */
3986 /* The GNU C library defines this for functions which it implements
3987 to always fail with ENOSYS. Some functions are actually named
3988 something starting with __ and the normal name is an alias. */
3989 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3997 if { (eval echo configure:3998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3999 eval "ac_cv_func_$ac_func=yes"
4001 echo "configure: failed program was:" >&5
4002 cat conftest.$ac_ext >&5
4004 eval "ac_cv_func_$ac_func=no"
4009 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4010 echo "$ac_t""yes" 1>&6
4011 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4012 cat >> confdefs.h <<EOF
4013 #define $ac_tr_func 1
4017 echo "$ac_t""no" 1>&6
4021 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4022 set dummy gmsgfmt; ac_word=$2
4023 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4024 echo "configure:4025: checking for $ac_word" >&5
4025 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4026 echo $ac_n "(cached) $ac_c" 1>&6
4030 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4033 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
4036 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4038 for ac_dir in $ac_dummy; do
4039 test -z "$ac_dir" && ac_dir=.
4040 if test -f $ac_dir/$ac_word; then
4041 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
4046 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4050 GMSGFMT="$ac_cv_path_GMSGFMT"
4051 if test -n "$GMSGFMT"; then
4052 echo "$ac_t""$GMSGFMT" 1>&6
4054 echo "$ac_t""no" 1>&6
4057 # Extract the first word of "xgettext", so it can be a program name with args.
4058 set dummy xgettext; ac_word=$2
4059 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4060 echo "configure:4061: checking for $ac_word" >&5
4061 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4062 echo $ac_n "(cached) $ac_c" 1>&6
4066 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4069 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4070 for ac_dir in $PATH; do
4071 test -z "$ac_dir" && ac_dir=.
4072 if test -f $ac_dir/$ac_word; then
4073 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4074 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
4080 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4084 XGETTEXT="$ac_cv_path_XGETTEXT"
4085 if test -n "$XGETTEXT"; then
4086 echo "$ac_t""$XGETTEXT" 1>&6
4088 echo "$ac_t""no" 1>&6
4091 cat > conftest.$ac_ext <<EOF
4092 #line 4093 "configure"
4093 #include "confdefs.h"
4096 extern int _nl_msg_cat_cntr;
4097 return _nl_msg_cat_cntr
4100 if { (eval echo configure:4101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4105 echo "configure: failed program was:" >&5
4106 cat conftest.$ac_ext >&5
4117 echo "$ac_t""no" 1>&6
4122 if test x"$CATOBJEXT" = x && test -d $srcdir/../intl; then
4123 # Neither gettext nor catgets in included in the C library.
4124 # Fall back on GNU gettext library (assuming it is present).
4125 nls_cv_use_gnu_gettext=yes
4129 if test "$nls_cv_use_gnu_gettext" = "yes"; then
4130 INTLOBJS="\$(GETTOBJS)"
4131 # Extract the first word of "msgfmt", so it can be a program name with args.
4132 set dummy msgfmt; ac_word=$2
4133 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4134 echo "configure:4135: checking for $ac_word" >&5
4135 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
4136 echo $ac_n "(cached) $ac_c" 1>&6
4140 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4143 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4144 for ac_dir in $PATH; do
4145 test -z "$ac_dir" && ac_dir=.
4146 if test -f $ac_dir/$ac_word; then
4147 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4148 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
4154 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
4158 MSGFMT="$ac_cv_path_MSGFMT"
4159 if test -n "$MSGFMT"; then
4160 echo "$ac_t""$MSGFMT" 1>&6
4162 echo "$ac_t""no" 1>&6
4165 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4166 set dummy gmsgfmt; ac_word=$2
4167 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4168 echo "configure:4169: checking for $ac_word" >&5
4169 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4170 echo $ac_n "(cached) $ac_c" 1>&6
4174 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4177 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
4180 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4182 for ac_dir in $ac_dummy; do
4183 test -z "$ac_dir" && ac_dir=.
4184 if test -f $ac_dir/$ac_word; then
4185 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
4190 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4194 GMSGFMT="$ac_cv_path_GMSGFMT"
4195 if test -n "$GMSGFMT"; then
4196 echo "$ac_t""$GMSGFMT" 1>&6
4198 echo "$ac_t""no" 1>&6
4201 # Extract the first word of "xgettext", so it can be a program name with args.
4202 set dummy xgettext; ac_word=$2
4203 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4204 echo "configure:4205: checking for $ac_word" >&5
4205 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4206 echo $ac_n "(cached) $ac_c" 1>&6
4210 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4213 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4214 for ac_dir in $PATH; do
4215 test -z "$ac_dir" && ac_dir=.
4216 if test -f $ac_dir/$ac_word; then
4217 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4218 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
4224 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4228 XGETTEXT="$ac_cv_path_XGETTEXT"
4229 if test -n "$XGETTEXT"; then
4230 echo "$ac_t""$XGETTEXT" 1>&6
4232 echo "$ac_t""no" 1>&6
4236 USE_INCLUDED_LIBINTL=yes
4240 INTLDEPS='$(top_builddir)/../intl/libintl.a'
4242 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
4243 nls_cv_header_intl=libintl.h
4244 nls_cv_header_libgt=libgettext.h
4247 if test "$XGETTEXT" != ":"; then
4248 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
4251 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
4256 # We need to process the po/ directory.
4260 nls_cv_header_intl=libintl.h
4261 nls_cv_header_libgt=libgettext.h
4264 # If this is used in GNU gettext we have to set USE_NLS to `yes'
4265 # because some of the sources are only built for this goal.
4266 if test "$PACKAGE" = gettext; then
4268 USE_INCLUDED_LIBINTL=yes
4271 for lang in $ALL_LINGUAS; do
4272 GMOFILES="$GMOFILES $lang.gmo"
4273 POFILES="$POFILES $lang.po"
4287 if test "x$CATOBJEXT" != "x"; then
4288 cat >> confdefs.h <<\EOF
4289 #define ENABLE_NLS 1
4295 if test "x$CATOBJEXT" != "x"; then
4296 if test "x$ALL_LINGUAS" = "x"; then
4299 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
4300 echo "configure:4301: checking for catalogs to be installed" >&5
4302 for lang in ${LINGUAS=$ALL_LINGUAS}; do
4303 case "$ALL_LINGUAS" in
4304 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
4307 LINGUAS=$NEW_LINGUAS
4308 echo "$ac_t""$LINGUAS" 1>&6
4311 if test -n "$LINGUAS"; then
4312 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
4316 if test $ac_cv_header_locale_h = yes; then
4317 INCLUDE_LOCALE_H="#include <locale.h>"
4320 /* The system does not provide the header <locale.h>. Take care yourself. */"
4324 if test -f $srcdir/po2tbl.sed.in; then
4325 if test "$CATOBJEXT" = ".cat"; then
4326 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
4327 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
4328 echo "configure:4329: checking for linux/version.h" >&5
4329 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4330 echo $ac_n "(cached) $ac_c" 1>&6
4332 cat > conftest.$ac_ext <<EOF
4333 #line 4334 "configure"
4334 #include "confdefs.h"
4335 #include <linux/version.h>
4337 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4338 { (eval echo configure:4339: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4339 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4340 if test -z "$ac_err"; then
4342 eval "ac_cv_header_$ac_safe=yes"
4345 echo "configure: failed program was:" >&5
4346 cat conftest.$ac_ext >&5
4348 eval "ac_cv_header_$ac_safe=no"
4352 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4353 echo "$ac_t""yes" 1>&6
4356 echo "$ac_t""no" 1>&6
4361 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
4363 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
4364 $srcdir/po2tbl.sed.in > po2tbl.sed
4367 if test "$PACKAGE" = "gettext"; then
4377 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
4383 if test -f $srcdir/po/POTFILES.in; then
4384 test -d po || mkdir po
4385 if test "x$srcdir" != "x."; then
4386 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
4387 posrcprefix="$srcdir/"
4389 posrcprefix="../$srcdir/"
4395 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
4396 < $srcdir/po/POTFILES.in > po/POTFILES
4400 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
4401 echo "configure:4402: checking whether to enable maintainer-specific portions of Makefiles" >&5
4402 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4403 if test "${enable_maintainer_mode+set}" = set; then
4404 enableval="$enable_maintainer_mode"
4405 USE_MAINTAINER_MODE=$enableval
4407 USE_MAINTAINER_MODE=no
4410 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
4413 if test $USE_MAINTAINER_MODE = yes; then
4414 MAINTAINER_MODE_TRUE=
4415 MAINTAINER_MODE_FALSE='#'
4417 MAINTAINER_MODE_TRUE='#'
4418 MAINTAINER_MODE_FALSE=
4420 MAINT=$MAINTAINER_MODE_TRUE
4425 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
4426 echo "configure:4427: checking for executable suffix" >&5
4427 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
4428 echo $ac_n "(cached) $ac_c" 1>&6
4430 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4434 echo 'int main () { return 0; }' > conftest.$ac_ext
4436 if { (eval echo configure:4437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
4437 for file in conftest.*; do
4439 *.c | *.o | *.obj) ;;
4440 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
4444 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
4447 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
4452 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
4453 echo "$ac_t""${ac_cv_exeext}" 1>&6
4456 if test -n "$EXEEXT"; then
4457 cat >> confdefs.h <<\EOF
4458 #define HAVE_EXECUTABLE_SUFFIX 1
4462 cat >> confdefs.h <<EOF
4463 #define EXECUTABLE_SUFFIX "${EXEEXT}"
4467 # host-specific stuff:
4471 . ${srcdir}/../bfd/configure.host
4476 # Extract the first word of "ranlib", so it can be a program name with args.
4477 set dummy ranlib; ac_word=$2
4478 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4479 echo "configure:4480: checking for $ac_word" >&5
4480 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
4481 echo $ac_n "(cached) $ac_c" 1>&6
4483 if test -n "$RANLIB"; then
4484 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4486 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4488 for ac_dir in $ac_dummy; do
4489 test -z "$ac_dir" && ac_dir=.
4490 if test -f $ac_dir/$ac_word; then
4491 ac_cv_prog_RANLIB="ranlib"
4496 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
4499 RANLIB="$ac_cv_prog_RANLIB"
4500 if test -n "$RANLIB"; then
4501 echo "$ac_t""$RANLIB" 1>&6
4503 echo "$ac_t""no" 1>&6
4506 # Find a good install program. We prefer a C program (faster),
4507 # so one script is as good as another. But avoid the broken or
4508 # incompatible versions:
4509 # SysV /etc/install, /usr/sbin/install
4510 # SunOS /usr/etc/install
4511 # IRIX /sbin/install
4513 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4514 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4515 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4516 # ./install, which can be erroneously created by make from ./install.sh.
4517 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
4518 echo "configure:4519: checking for a BSD compatible install" >&5
4519 if test -z "$INSTALL"; then
4520 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
4521 echo $ac_n "(cached) $ac_c" 1>&6
4523 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
4524 for ac_dir in $PATH; do
4525 # Account for people who put trailing slashes in PATH elements.
4527 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
4529 # OSF1 and SCO ODT 3.0 have their own names for install.
4530 # Don't use installbsd from OSF since it installs stuff as root
4532 for ac_prog in ginstall scoinst install; do
4533 if test -f $ac_dir/$ac_prog; then
4534 if test $ac_prog = install &&
4535 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
4536 # AIX install. It has an incompatible calling convention.
4539 ac_cv_path_install="$ac_dir/$ac_prog -c"
4550 if test "${ac_cv_path_install+set}" = set; then
4551 INSTALL="$ac_cv_path_install"
4553 # As a last resort, use the slow shell script. We don't cache a
4554 # path for INSTALL within a source directory, because that will
4555 # break other packages using the cache if that directory is
4556 # removed, or if the path is relative.
4557 INSTALL="$ac_install_sh"
4560 echo "$ac_t""$INSTALL" 1>&6
4562 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4563 # It thinks the first close brace ends the variable substitution.
4564 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4566 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
4568 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4571 # Put a plausible default for CC_FOR_BUILD in Makefile.
4572 if test -z "$CC_FOR_BUILD"; then
4573 if test "x$cross_compiling" = "xno"; then
4574 CC_FOR_BUILD='$(CC)'
4580 # Also set EXEEXT_FOR_BUILD.
4581 if test "x$cross_compiling" = "xno"; then
4582 EXEEXT_FOR_BUILD='$(EXEEXT)'
4584 echo $ac_n "checking for build system executable suffix""... $ac_c" 1>&6
4585 echo "configure:4586: checking for build system executable suffix" >&5
4586 if eval "test \"`echo '$''{'bfd_cv_build_exeext'+set}'`\" = set"; then
4587 echo $ac_n "(cached) $ac_c" 1>&6
4590 echo 'int main () { return 0; }' > conftest.c
4591 bfd_cv_build_exeext=
4592 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
4593 for file in conftest.*; do
4595 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
4596 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4600 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
4603 echo "$ac_t""$bfd_cv_build_exeext" 1>&6
4605 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
4609 DEMANGLER_NAME=c++filt
4611 *-*-go32* | *-*-msdos*)
4612 DEMANGLER_NAME=cxxfilt
4616 for ac_hdr in string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h
4618 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4619 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4620 echo "configure:4621: checking for $ac_hdr" >&5
4621 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4622 echo $ac_n "(cached) $ac_c" 1>&6
4624 cat > conftest.$ac_ext <<EOF
4625 #line 4626 "configure"
4626 #include "confdefs.h"
4629 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4630 { (eval echo configure:4631: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4631 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4632 if test -z "$ac_err"; then
4634 eval "ac_cv_header_$ac_safe=yes"
4637 echo "configure: failed program was:" >&5
4638 cat conftest.$ac_ext >&5
4640 eval "ac_cv_header_$ac_safe=no"
4644 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4645 echo "$ac_t""yes" 1>&6
4646 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4647 cat >> confdefs.h <<EOF
4648 #define $ac_tr_hdr 1
4652 echo "$ac_t""no" 1>&6
4656 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
4657 echo "configure:4658: checking for sys/wait.h that is POSIX.1 compatible" >&5
4658 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
4659 echo $ac_n "(cached) $ac_c" 1>&6
4661 cat > conftest.$ac_ext <<EOF
4662 #line 4663 "configure"
4663 #include "confdefs.h"
4664 #include <sys/types.h>
4665 #include <sys/wait.h>
4667 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4670 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4675 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4678 if { (eval echo configure:4679: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4680 ac_cv_header_sys_wait_h=yes
4682 echo "configure: failed program was:" >&5
4683 cat conftest.$ac_ext >&5
4685 ac_cv_header_sys_wait_h=no
4690 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
4691 if test $ac_cv_header_sys_wait_h = yes; then
4692 cat >> confdefs.h <<\EOF
4693 #define HAVE_SYS_WAIT_H 1
4698 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4699 # for constant arguments. Useless!
4700 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
4701 echo "configure:4702: checking for working alloca.h" >&5
4702 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
4703 echo $ac_n "(cached) $ac_c" 1>&6
4705 cat > conftest.$ac_ext <<EOF
4706 #line 4707 "configure"
4707 #include "confdefs.h"
4710 char *p = alloca(2 * sizeof(int));
4713 if { (eval echo configure:4714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4715 ac_cv_header_alloca_h=yes
4717 echo "configure: failed program was:" >&5
4718 cat conftest.$ac_ext >&5
4720 ac_cv_header_alloca_h=no
4725 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
4726 if test $ac_cv_header_alloca_h = yes; then
4727 cat >> confdefs.h <<\EOF
4728 #define HAVE_ALLOCA_H 1
4733 echo $ac_n "checking for alloca""... $ac_c" 1>&6
4734 echo "configure:4735: checking for alloca" >&5
4735 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
4736 echo $ac_n "(cached) $ac_c" 1>&6
4738 cat > conftest.$ac_ext <<EOF
4739 #line 4740 "configure"
4740 #include "confdefs.h"
4743 # define alloca __builtin_alloca
4746 # include <malloc.h>
4747 # define alloca _alloca
4750 # include <alloca.h>
4755 # ifndef alloca /* predefined by HP cc +Olibcalls */
4764 char *p = (char *) alloca(1);
4767 if { (eval echo configure:4768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4769 ac_cv_func_alloca_works=yes
4771 echo "configure: failed program was:" >&5
4772 cat conftest.$ac_ext >&5
4774 ac_cv_func_alloca_works=no
4779 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
4780 if test $ac_cv_func_alloca_works = yes; then
4781 cat >> confdefs.h <<\EOF
4782 #define HAVE_ALLOCA 1
4787 if test $ac_cv_func_alloca_works = no; then
4788 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4789 # that cause trouble. Some versions do not even contain alloca or
4790 # contain a buggy version. If you still want to use their alloca,
4791 # use ar to extract alloca.o from them instead of compiling alloca.c.
4792 ALLOCA=alloca.${ac_objext}
4793 cat >> confdefs.h <<\EOF
4798 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
4799 echo "configure:4800: checking whether alloca needs Cray hooks" >&5
4800 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
4801 echo $ac_n "(cached) $ac_c" 1>&6
4803 cat > conftest.$ac_ext <<EOF
4804 #line 4805 "configure"
4805 #include "confdefs.h"
4806 #if defined(CRAY) && ! defined(CRAY2)
4813 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4814 egrep "webecray" >/dev/null 2>&1; then
4825 echo "$ac_t""$ac_cv_os_cray" 1>&6
4826 if test $ac_cv_os_cray = yes; then
4827 for ac_func in _getb67 GETB67 getb67; do
4828 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4829 echo "configure:4830: checking for $ac_func" >&5
4830 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4831 echo $ac_n "(cached) $ac_c" 1>&6
4833 cat > conftest.$ac_ext <<EOF
4834 #line 4835 "configure"
4835 #include "confdefs.h"
4836 /* System header to define __stub macros and hopefully few prototypes,
4837 which can conflict with char $ac_func(); below. */
4839 /* Override any gcc2 internal prototype to avoid an error. */
4840 /* We use char because int might match the return type of a gcc2
4841 builtin and then its argument prototype would still apply. */
4846 /* The GNU C library defines this for functions which it implements
4847 to always fail with ENOSYS. Some functions are actually named
4848 something starting with __ and the normal name is an alias. */
4849 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4857 if { (eval echo configure:4858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4859 eval "ac_cv_func_$ac_func=yes"
4861 echo "configure: failed program was:" >&5
4862 cat conftest.$ac_ext >&5
4864 eval "ac_cv_func_$ac_func=no"
4869 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4870 echo "$ac_t""yes" 1>&6
4871 cat >> confdefs.h <<EOF
4872 #define CRAY_STACKSEG_END $ac_func
4877 echo "$ac_t""no" 1>&6
4883 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
4884 echo "configure:4885: checking stack direction for C alloca" >&5
4885 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
4886 echo $ac_n "(cached) $ac_c" 1>&6
4888 if test "$cross_compiling" = yes; then
4889 ac_cv_c_stack_direction=0
4891 cat > conftest.$ac_ext <<EOF
4892 #line 4893 "configure"
4893 #include "confdefs.h"
4894 find_stack_direction ()
4896 static char *addr = 0;
4901 return find_stack_direction ();
4904 return (&dummy > addr) ? 1 : -1;
4908 exit (find_stack_direction() < 0);
4911 if { (eval echo configure:4912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4913 ac_cv_c_stack_direction=1
4915 echo "configure: failed program was:" >&5
4916 cat conftest.$ac_ext >&5
4918 ac_cv_c_stack_direction=-1
4925 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
4926 cat >> confdefs.h <<EOF
4927 #define STACK_DIRECTION $ac_cv_c_stack_direction
4932 for ac_func in sbrk utimes setmode getc_unlocked strcoll
4934 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4935 echo "configure:4936: checking for $ac_func" >&5
4936 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4937 echo $ac_n "(cached) $ac_c" 1>&6
4939 cat > conftest.$ac_ext <<EOF
4940 #line 4941 "configure"
4941 #include "confdefs.h"
4942 /* System header to define __stub macros and hopefully few prototypes,
4943 which can conflict with char $ac_func(); below. */
4945 /* Override any gcc2 internal prototype to avoid an error. */
4946 /* We use char because int might match the return type of a gcc2
4947 builtin and then its argument prototype would still apply. */
4952 /* The GNU C library defines this for functions which it implements
4953 to always fail with ENOSYS. Some functions are actually named
4954 something starting with __ and the normal name is an alias. */
4955 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4963 if { (eval echo configure:4964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4965 eval "ac_cv_func_$ac_func=yes"
4967 echo "configure: failed program was:" >&5
4968 cat conftest.$ac_ext >&5
4970 eval "ac_cv_func_$ac_func=no"
4975 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4976 echo "$ac_t""yes" 1>&6
4977 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4978 cat >> confdefs.h <<EOF
4979 #define $ac_tr_func 1
4983 echo "$ac_t""no" 1>&6
4988 # Check whether fopen64 is available and whether _LARGEFILE64_SOURCE
4989 # needs to be defined for it
4990 echo $ac_n "checking for fopen64""... $ac_c" 1>&6
4991 echo "configure:4992: checking for fopen64" >&5
4992 if eval "test \"`echo '$''{'bu_cv_have_fopen64'+set}'`\" = set"; then
4993 echo $ac_n "(cached) $ac_c" 1>&6
4995 cat > conftest.$ac_ext <<EOF
4996 #line 4997 "configure"
4997 #include "confdefs.h"
5000 FILE *f = fopen64 ("/tmp/foo","r");
5003 if { (eval echo configure:5004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5005 bu_cv_have_fopen64=yes
5007 echo "configure: failed program was:" >&5
5008 cat conftest.$ac_ext >&5
5010 saved_CPPFLAGS=$CPPFLAGS
5011 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
5012 cat > conftest.$ac_ext <<EOF
5013 #line 5014 "configure"
5014 #include "confdefs.h"
5017 FILE *f = fopen64 ("/tmp/foo","r");
5020 if { (eval echo configure:5021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5022 bu_cv_have_fopen64="need -D_LARGEFILE64_SOURCE"
5024 echo "configure: failed program was:" >&5
5025 cat conftest.$ac_ext >&5
5027 bu_cv_have_fopen64=no
5030 CPPFLAGS=$saved_CPPFLAGS
5035 echo "$ac_t""$bu_cv_have_fopen64" 1>&6
5036 if test "$bu_cv_have_fopen64" != no; then
5037 cat >> confdefs.h <<\EOF
5038 #define HAVE_FOPEN64 1
5042 echo $ac_n "checking for stat64""... $ac_c" 1>&6
5043 echo "configure:5044: checking for stat64" >&5
5044 if eval "test \"`echo '$''{'bu_cv_have_stat64'+set}'`\" = set"; then
5045 echo $ac_n "(cached) $ac_c" 1>&6
5047 cat > conftest.$ac_ext <<EOF
5048 #line 5049 "configure"
5049 #include "confdefs.h"
5050 #include <sys/stat.h>
5052 struct stat64 st; stat64 ("/tmp/foo", &st);
5055 if { (eval echo configure:5056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5057 bu_cv_have_stat64=yes
5059 echo "configure: failed program was:" >&5
5060 cat conftest.$ac_ext >&5
5062 saved_CPPFLAGS=$CPPFLAGS
5063 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
5064 cat > conftest.$ac_ext <<EOF
5065 #line 5066 "configure"
5066 #include "confdefs.h"
5067 #include <sys/stat.h>
5069 struct stat64 st; stat64 ("/tmp/foo", &st);
5072 if { (eval echo configure:5073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5074 bu_cv_have_stat64="need -D_LARGEFILE64_SOURCE"
5076 echo "configure: failed program was:" >&5
5077 cat conftest.$ac_ext >&5
5079 bu_cv_have_stat64=no
5082 CPPFLAGS=$saved_CPPFLAGS
5087 echo "$ac_t""$bu_cv_have_stat64" 1>&6
5088 if test "$bu_cv_have_stat64" != no; then
5089 cat >> confdefs.h <<\EOF
5090 #define HAVE_STAT64 1
5094 if test "$bu_cv_have_fopen64" = "need -D_LARGEFILE64_SOURCE" \
5095 || test "$bu_cv_have_stat64" = "need -D_LARGEFILE64_SOURCE"; then
5096 cat >> confdefs.h <<\EOF
5097 #define _LARGEFILE64_SOURCE 1
5100 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
5103 # Some systems have frexp only in -lm, not in -lc.
5105 echo $ac_n "checking for library containing frexp""... $ac_c" 1>&6
5106 echo "configure:5107: checking for library containing frexp" >&5
5107 if eval "test \"`echo '$''{'ac_cv_search_frexp'+set}'`\" = set"; then
5108 echo $ac_n "(cached) $ac_c" 1>&6
5110 ac_func_search_save_LIBS="$LIBS"
5111 ac_cv_search_frexp="no"
5112 cat > conftest.$ac_ext <<EOF
5113 #line 5114 "configure"
5114 #include "confdefs.h"
5115 /* Override any gcc2 internal prototype to avoid an error. */
5116 /* We use char because int might match the return type of a gcc2
5117 builtin and then its argument prototype would still apply. */
5124 if { (eval echo configure:5125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5126 ac_cv_search_frexp="none required"
5128 echo "configure: failed program was:" >&5
5129 cat conftest.$ac_ext >&5
5132 test "$ac_cv_search_frexp" = "no" && for i in m; do
5133 LIBS="-l$i $ac_func_search_save_LIBS"
5134 cat > conftest.$ac_ext <<EOF
5135 #line 5136 "configure"
5136 #include "confdefs.h"
5137 /* Override any gcc2 internal prototype to avoid an error. */
5138 /* We use char because int might match the return type of a gcc2
5139 builtin and then its argument prototype would still apply. */
5146 if { (eval echo configure:5147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5148 ac_cv_search_frexp="-l$i"
5151 echo "configure: failed program was:" >&5
5152 cat conftest.$ac_ext >&5
5156 LIBS="$ac_func_search_save_LIBS"
5159 echo "$ac_t""$ac_cv_search_frexp" 1>&6
5160 if test "$ac_cv_search_frexp" != "no"; then
5161 test "$ac_cv_search_frexp" = "none required" || LIBS="$ac_cv_search_frexp $LIBS"
5167 echo $ac_n "checking for time_t in time.h""... $ac_c" 1>&6
5168 echo "configure:5169: checking for time_t in time.h" >&5
5169 if eval "test \"`echo '$''{'bu_cv_decl_time_t_time_h'+set}'`\" = set"; then
5170 echo $ac_n "(cached) $ac_c" 1>&6
5172 cat > conftest.$ac_ext <<EOF
5173 #line 5174 "configure"
5174 #include "confdefs.h"
5180 if { (eval echo configure:5181: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5182 bu_cv_decl_time_t_time_h=yes
5184 echo "configure: failed program was:" >&5
5185 cat conftest.$ac_ext >&5
5187 bu_cv_decl_time_t_time_h=no
5192 echo "$ac_t""$bu_cv_decl_time_t_time_h" 1>&6
5193 if test $bu_cv_decl_time_t_time_h = yes; then
5194 cat >> confdefs.h <<\EOF
5195 #define HAVE_TIME_T_IN_TIME_H 1
5200 echo $ac_n "checking for time_t in sys/types.h""... $ac_c" 1>&6
5201 echo "configure:5202: checking for time_t in sys/types.h" >&5
5202 if eval "test \"`echo '$''{'bu_cv_decl_time_t_types_h'+set}'`\" = set"; then
5203 echo $ac_n "(cached) $ac_c" 1>&6
5205 cat > conftest.$ac_ext <<EOF
5206 #line 5207 "configure"
5207 #include "confdefs.h"
5208 #include <sys/types.h>
5213 if { (eval echo configure:5214: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5215 bu_cv_decl_time_t_types_h=yes
5217 echo "configure: failed program was:" >&5
5218 cat conftest.$ac_ext >&5
5220 bu_cv_decl_time_t_types_h=no
5225 echo "$ac_t""$bu_cv_decl_time_t_types_h" 1>&6
5226 if test $bu_cv_decl_time_t_types_h = yes; then
5227 cat >> confdefs.h <<\EOF
5228 #define HAVE_TIME_T_IN_TYPES_H 1
5233 echo $ac_n "checking for a known getopt prototype in unistd.h""... $ac_c" 1>&6
5234 echo "configure:5235: checking for a known getopt prototype in unistd.h" >&5
5235 if eval "test \"`echo '$''{'bu_cv_decl_getopt_unistd_h'+set}'`\" = set"; then
5236 echo $ac_n "(cached) $ac_c" 1>&6
5238 cat > conftest.$ac_ext <<EOF
5239 #line 5240 "configure"
5240 #include "confdefs.h"
5243 extern int getopt (int, char *const*, const char *);
5246 if { (eval echo configure:5247: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5248 bu_cv_decl_getopt_unistd_h=yes
5250 echo "configure: failed program was:" >&5
5251 cat conftest.$ac_ext >&5
5253 bu_cv_decl_getopt_unistd_h=no
5258 echo "$ac_t""$bu_cv_decl_getopt_unistd_h" 1>&6
5259 if test $bu_cv_decl_getopt_unistd_h = yes; then
5260 cat >> confdefs.h <<\EOF
5261 #define HAVE_DECL_GETOPT 1
5266 # Under Next 3.2 <utime.h> apparently does not define struct utimbuf
5268 echo $ac_n "checking for utime.h""... $ac_c" 1>&6
5269 echo "configure:5270: checking for utime.h" >&5
5270 if eval "test \"`echo '$''{'bu_cv_header_utime_h'+set}'`\" = set"; then
5271 echo $ac_n "(cached) $ac_c" 1>&6
5273 cat > conftest.$ac_ext <<EOF
5274 #line 5275 "configure"
5275 #include "confdefs.h"
5276 #include <sys/types.h>
5285 if { (eval echo configure:5286: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5287 bu_cv_header_utime_h=yes
5289 echo "configure: failed program was:" >&5
5290 cat conftest.$ac_ext >&5
5292 bu_cv_header_utime_h=no
5297 echo "$ac_t""$bu_cv_header_utime_h" 1>&6
5298 if test $bu_cv_header_utime_h = yes; then
5299 cat >> confdefs.h <<\EOF
5300 #define HAVE_GOOD_UTIME_H 1
5305 echo $ac_n "checking whether fprintf must be declared""... $ac_c" 1>&6
5306 echo "configure:5307: checking whether fprintf must be declared" >&5
5307 if eval "test \"`echo '$''{'bfd_cv_decl_needed_fprintf'+set}'`\" = set"; then
5308 echo $ac_n "(cached) $ac_c" 1>&6
5310 cat > conftest.$ac_ext <<EOF
5311 #line 5312 "configure"
5312 #include "confdefs.h"
5315 #ifdef HAVE_STRING_H
5318 #ifdef HAVE_STRINGS_H
5319 #include <strings.h>
5322 #ifdef HAVE_STDLIB_H
5325 #ifdef HAVE_UNISTD_H
5329 char *(*pfn) = (char *(*)) fprintf
5332 if { (eval echo configure:5333: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5334 bfd_cv_decl_needed_fprintf=no
5336 echo "configure: failed program was:" >&5
5337 cat conftest.$ac_ext >&5
5339 bfd_cv_decl_needed_fprintf=yes
5344 echo "$ac_t""$bfd_cv_decl_needed_fprintf" 1>&6
5345 if test $bfd_cv_decl_needed_fprintf = yes; then
5346 cat >> confdefs.h <<\EOF
5347 #define NEED_DECLARATION_FPRINTF 1
5352 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
5353 echo "configure:5354: checking whether strstr must be declared" >&5
5354 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
5355 echo $ac_n "(cached) $ac_c" 1>&6
5357 cat > conftest.$ac_ext <<EOF
5358 #line 5359 "configure"
5359 #include "confdefs.h"
5362 #ifdef HAVE_STRING_H
5365 #ifdef HAVE_STRINGS_H
5366 #include <strings.h>
5369 #ifdef HAVE_STDLIB_H
5372 #ifdef HAVE_UNISTD_H
5376 char *(*pfn) = (char *(*)) strstr
5379 if { (eval echo configure:5380: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5381 bfd_cv_decl_needed_strstr=no
5383 echo "configure: failed program was:" >&5
5384 cat conftest.$ac_ext >&5
5386 bfd_cv_decl_needed_strstr=yes
5391 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
5392 if test $bfd_cv_decl_needed_strstr = yes; then
5393 cat >> confdefs.h <<\EOF
5394 #define NEED_DECLARATION_STRSTR 1
5399 echo $ac_n "checking whether sbrk must be declared""... $ac_c" 1>&6
5400 echo "configure:5401: checking whether sbrk must be declared" >&5
5401 if eval "test \"`echo '$''{'bfd_cv_decl_needed_sbrk'+set}'`\" = set"; then
5402 echo $ac_n "(cached) $ac_c" 1>&6
5404 cat > conftest.$ac_ext <<EOF
5405 #line 5406 "configure"
5406 #include "confdefs.h"
5409 #ifdef HAVE_STRING_H
5412 #ifdef HAVE_STRINGS_H
5413 #include <strings.h>
5416 #ifdef HAVE_STDLIB_H
5419 #ifdef HAVE_UNISTD_H
5423 char *(*pfn) = (char *(*)) sbrk
5426 if { (eval echo configure:5427: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5428 bfd_cv_decl_needed_sbrk=no
5430 echo "configure: failed program was:" >&5
5431 cat conftest.$ac_ext >&5
5433 bfd_cv_decl_needed_sbrk=yes
5438 echo "$ac_t""$bfd_cv_decl_needed_sbrk" 1>&6
5439 if test $bfd_cv_decl_needed_sbrk = yes; then
5440 cat >> confdefs.h <<\EOF
5441 #define NEED_DECLARATION_SBRK 1
5446 echo $ac_n "checking whether getenv must be declared""... $ac_c" 1>&6
5447 echo "configure:5448: checking whether getenv must be declared" >&5
5448 if eval "test \"`echo '$''{'bfd_cv_decl_needed_getenv'+set}'`\" = set"; then
5449 echo $ac_n "(cached) $ac_c" 1>&6
5451 cat > conftest.$ac_ext <<EOF
5452 #line 5453 "configure"
5453 #include "confdefs.h"
5456 #ifdef HAVE_STRING_H
5459 #ifdef HAVE_STRINGS_H
5460 #include <strings.h>
5463 #ifdef HAVE_STDLIB_H
5466 #ifdef HAVE_UNISTD_H
5470 char *(*pfn) = (char *(*)) getenv
5473 if { (eval echo configure:5474: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5475 bfd_cv_decl_needed_getenv=no
5477 echo "configure: failed program was:" >&5
5478 cat conftest.$ac_ext >&5
5480 bfd_cv_decl_needed_getenv=yes
5485 echo "$ac_t""$bfd_cv_decl_needed_getenv" 1>&6
5486 if test $bfd_cv_decl_needed_getenv = yes; then
5487 cat >> confdefs.h <<\EOF
5488 #define NEED_DECLARATION_GETENV 1
5493 echo $ac_n "checking whether environ must be declared""... $ac_c" 1>&6
5494 echo "configure:5495: checking whether environ must be declared" >&5
5495 if eval "test \"`echo '$''{'bfd_cv_decl_needed_environ'+set}'`\" = set"; then
5496 echo $ac_n "(cached) $ac_c" 1>&6
5498 cat > conftest.$ac_ext <<EOF
5499 #line 5500 "configure"
5500 #include "confdefs.h"
5503 #ifdef HAVE_STRING_H
5506 #ifdef HAVE_STRINGS_H
5507 #include <strings.h>
5510 #ifdef HAVE_STDLIB_H
5513 #ifdef HAVE_UNISTD_H
5517 char *(*pfn) = (char *(*)) environ
5520 if { (eval echo configure:5521: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5522 bfd_cv_decl_needed_environ=no
5524 echo "configure: failed program was:" >&5
5525 cat conftest.$ac_ext >&5
5527 bfd_cv_decl_needed_environ=yes
5532 echo "$ac_t""$bfd_cv_decl_needed_environ" 1>&6
5533 if test $bfd_cv_decl_needed_environ = yes; then
5534 cat >> confdefs.h <<\EOF
5535 #define NEED_DECLARATION_ENVIRON 1
5543 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
5544 cat >> confdefs.h <<\EOF
5545 #define USE_BINARY_FOPEN 1
5550 # target-specific stuff:
5552 # Canonicalize the secondary target names.
5553 if test -n "$enable_targets"; then
5554 for targ in `echo $enable_targets | sed 's/,/ /g'`
5556 result=`$ac_config_sub $targ 2>/dev/null`
5557 if test -n "$result"; then
5558 canon_targets="$canon_targets $result"
5560 # Allow targets that config.sub doesn't recognize, like "all".
5561 canon_targets="$canon_targets $targ"
5577 for targ in $target $canon_targets
5579 if test "x$targ" = "xall"; then
5581 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
5582 BUILD_SRCONV='$(SRCONV_PROG)'
5583 NLMCONV_DEFS="-DNLMCONV_I386 -DNLMCONV_ALPHA -DNLMCONV_POWERPC -DNLMCONV_SPARC"
5586 i[3-7]86*-*-netware*)
5587 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
5588 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_I386"
5591 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
5592 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_ALPHA"
5594 powerpc*-*-netware*)
5595 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
5596 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_POWERPC"
5599 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
5600 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_SPARC"
5604 *-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;;
5608 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
5609 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_EPOC -DDLLTOOL_ARM"
5610 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
5612 arm-*-pe* | arm-*-wince)
5613 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
5614 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
5615 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
5618 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
5619 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
5620 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
5622 arm*-* | xscale-* | strongarm-* | d10v-*)
5623 OBJDUMP_DEFS="-DDISASSEMBLER_NEEDS_RELOCS"
5625 i[3-7]86-*-pe* | i[3-7]86-*-cygwin* | i[3-7]86-*-mingw32** | i[3-7]86-*-netbsdpe*)
5626 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
5627 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
5628 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
5629 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
5632 BUILD_DLLTOOL='$(DLLTOOL_PROG)'
5633 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
5638 OBJDUMP_DEFS="-DAIX_WEAK_SUPPORT"
5640 powerpc*-*-pe* | powerpc*-*-cygwin*)
5641 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
5642 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_PPC"
5643 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
5646 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
5647 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH"
5648 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
5651 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
5652 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MIPS"
5653 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
5656 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
5657 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
5658 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
5661 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
5662 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"
5668 if test "${with_windres+set}" = set; then
5669 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
5682 cat >> confdefs.h <<EOF
5683 #define TARGET "${target}"
5688 . $srcdir/../bfd/config.bfd
5689 if test "x$targ_underscore" = "xyes"; then
5694 cat >> confdefs.h <<EOF
5695 #define TARGET_PREPENDS_UNDERSCORE $UNDERSCORE
5700 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
5702 # Canonicalize the secondary target names.
5703 result=`$ac_config_sub $targ_alias 2>/dev/null`
5704 if test -n "$result"; then
5710 . ${srcdir}/configure.tgt
5712 EMULATION=$targ_emul
5713 EMULATION_VECTOR=$targ_emul_vector
5720 cat > confcache <<\EOF
5721 # This file is a shell script that caches the results of configure
5722 # tests run on this system so they can be shared between configure
5723 # scripts and configure runs. It is not useful on other systems.
5724 # If it contains results you don't want to keep, you may remove or edit it.
5726 # By default, configure uses ./config.cache as the cache file,
5727 # creating it if it does not exist already. You can give configure
5728 # the --cache-file=FILE option to use a different cache file; that is
5729 # what configure does when it calls configure scripts in
5730 # subdirectories, so they share the cache.
5731 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5732 # config.status only pays attention to the cache file if you give it the
5733 # --recheck option to rerun configure.
5736 # The following way of writing the cache mishandles newlines in values,
5737 # but we know of no workaround that is simple, portable, and efficient.
5738 # So, don't put newlines in cache variables' values.
5739 # Ultrix sh set writes to stderr and can't be redirected directly,
5740 # and sets the high bit in the cache file unless we assign to the vars.
5742 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5744 # `set' does not quote correctly, so add quotes (double-quote substitution
5745 # turns \\\\ into \\, and sed turns \\ into \).
5747 -e "s/'/'\\\\''/g" \
5748 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5751 # `set' quotes correctly as required by POSIX, so do not add quotes.
5752 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5755 if cmp -s $cache_file confcache; then
5758 if test -w $cache_file; then
5759 echo "updating cache $cache_file"
5760 cat confcache > $cache_file
5762 echo "not updating unwritable cache $cache_file"
5767 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5769 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5770 # Let make expand exec_prefix.
5771 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5773 # Any assignment to VPATH causes Sun make to only execute
5774 # the first set of double-colon rules, so remove it if not needed.
5775 # If there is a colon in the path, we need to keep it.
5776 if test "x$srcdir" = x.; then
5777 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
5780 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5782 DEFS=-DHAVE_CONFIG_H
5784 # Without the "./", some shells look in PATH for config.status.
5785 : ${CONFIG_STATUS=./config.status}
5787 echo creating $CONFIG_STATUS
5788 rm -f $CONFIG_STATUS
5789 cat > $CONFIG_STATUS <<EOF
5791 # Generated automatically by configure.
5792 # Run this file to recreate the current configuration.
5793 # This directory was configured as follows,
5794 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5796 # $0 $ac_configure_args
5798 # Compiler output produced by configure, useful for debugging
5799 # configure, is in ./config.log if it exists.
5801 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5804 case "\$ac_option" in
5805 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5806 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5807 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5808 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5809 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5811 -help | --help | --hel | --he | --h)
5812 echo "\$ac_cs_usage"; exit 0 ;;
5813 *) echo "\$ac_cs_usage"; exit 1 ;;
5817 ac_given_srcdir=$srcdir
5818 ac_given_INSTALL="$INSTALL"
5820 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
5822 cat >> $CONFIG_STATUS <<EOF
5824 # Protect against being on the right side of a sed subst in config.status.
5825 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5826 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5830 s%@CFLAGS@%$CFLAGS%g
5831 s%@CPPFLAGS@%$CPPFLAGS%g
5832 s%@CXXFLAGS@%$CXXFLAGS%g
5833 s%@FFLAGS@%$FFLAGS%g
5835 s%@LDFLAGS@%$LDFLAGS%g
5837 s%@exec_prefix@%$exec_prefix%g
5838 s%@prefix@%$prefix%g
5839 s%@program_transform_name@%$program_transform_name%g
5840 s%@bindir@%$bindir%g
5841 s%@sbindir@%$sbindir%g
5842 s%@libexecdir@%$libexecdir%g
5843 s%@datadir@%$datadir%g
5844 s%@sysconfdir@%$sysconfdir%g
5845 s%@sharedstatedir@%$sharedstatedir%g
5846 s%@localstatedir@%$localstatedir%g
5847 s%@libdir@%$libdir%g
5848 s%@includedir@%$includedir%g
5849 s%@oldincludedir@%$oldincludedir%g
5850 s%@infodir@%$infodir%g
5851 s%@mandir@%$mandir%g
5853 s%@host_alias@%$host_alias%g
5854 s%@host_cpu@%$host_cpu%g
5855 s%@host_vendor@%$host_vendor%g
5856 s%@host_os@%$host_os%g
5857 s%@target@%$target%g
5858 s%@target_alias@%$target_alias%g
5859 s%@target_cpu@%$target_cpu%g
5860 s%@target_vendor@%$target_vendor%g
5861 s%@target_os@%$target_os%g
5863 s%@build_alias@%$build_alias%g
5864 s%@build_cpu@%$build_cpu%g
5865 s%@build_vendor@%$build_vendor%g
5866 s%@build_os@%$build_os%g
5868 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5869 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5870 s%@INSTALL_DATA@%$INSTALL_DATA%g
5871 s%@PACKAGE@%$PACKAGE%g
5872 s%@VERSION@%$VERSION%g
5873 s%@ACLOCAL@%$ACLOCAL%g
5874 s%@AUTOCONF@%$AUTOCONF%g
5875 s%@AUTOMAKE@%$AUTOMAKE%g
5876 s%@AUTOHEADER@%$AUTOHEADER%g
5877 s%@MAKEINFO@%$MAKEINFO%g
5878 s%@SET_MAKE@%$SET_MAKE%g
5880 s%@OBJEXT@%$OBJEXT%g
5881 s%@EXEEXT@%$EXEEXT%g
5882 s%@RANLIB@%$RANLIB%g
5884 s%@LIBTOOL@%$LIBTOOL%g
5885 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
5888 s%@LEXLIB@%$LEXLIB%g
5890 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
5891 s%@ALLOCA@%$ALLOCA%g
5892 s%@USE_NLS@%$USE_NLS%g
5893 s%@MSGFMT@%$MSGFMT%g
5894 s%@GMSGFMT@%$GMSGFMT%g
5895 s%@XGETTEXT@%$XGETTEXT%g
5896 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
5897 s%@CATALOGS@%$CATALOGS%g
5898 s%@CATOBJEXT@%$CATOBJEXT%g
5899 s%@DATADIRNAME@%$DATADIRNAME%g
5900 s%@GMOFILES@%$GMOFILES%g
5901 s%@INSTOBJEXT@%$INSTOBJEXT%g
5902 s%@INTLDEPS@%$INTLDEPS%g
5903 s%@INTLLIBS@%$INTLLIBS%g
5904 s%@INTLOBJS@%$INTLOBJS%g
5905 s%@POFILES@%$POFILES%g
5907 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
5909 s%@GT_YES@%$GT_YES%g
5910 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
5912 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
5913 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
5915 s%@HDEFINES@%$HDEFINES%g
5917 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
5918 s%@EXEEXT_FOR_BUILD@%$EXEEXT_FOR_BUILD%g
5919 s%@DEMANGLER_NAME@%$DEMANGLER_NAME%g
5920 s%@NLMCONV_DEFS@%$NLMCONV_DEFS%g
5921 s%@BUILD_NLMCONV@%$BUILD_NLMCONV%g
5922 s%@BUILD_SRCONV@%$BUILD_SRCONV%g
5923 s%@BUILD_DLLTOOL@%$BUILD_DLLTOOL%g
5924 s%@DLLTOOL_DEFS@%$DLLTOOL_DEFS%g
5925 s%@BUILD_WINDRES@%$BUILD_WINDRES%g
5926 s%@BUILD_DLLWRAP@%$BUILD_DLLWRAP%g
5927 s%@BUILD_MISC@%$BUILD_MISC%g
5928 s%@OBJDUMP_DEFS@%$OBJDUMP_DEFS%g
5929 s%@EMULATION@%$EMULATION%g
5930 s%@EMULATION_VECTOR@%$EMULATION_VECTOR%g
5935 cat >> $CONFIG_STATUS <<\EOF
5937 # Split the substitutions into bite-sized pieces for seds with
5938 # small command number limits, like on Digital OSF/1 and HP-UX.
5939 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5940 ac_file=1 # Number of current file.
5941 ac_beg=1 # First line for current file.
5942 ac_end=$ac_max_sed_cmds # Line after last line for current file.
5945 while $ac_more_lines; do
5946 if test $ac_beg -gt 1; then
5947 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5949 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5951 if test ! -s conftest.s$ac_file; then
5953 rm -f conftest.s$ac_file
5955 if test -z "$ac_sed_cmds"; then
5956 ac_sed_cmds="sed -f conftest.s$ac_file"
5958 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5960 ac_file=`expr $ac_file + 1`
5962 ac_end=`expr $ac_end + $ac_max_sed_cmds`
5965 if test -z "$ac_sed_cmds"; then
5970 cat >> $CONFIG_STATUS <<EOF
5972 CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile po/Makefile.in:po/Make-in"}
5974 cat >> $CONFIG_STATUS <<\EOF
5975 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5976 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5978 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5979 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5980 *) ac_file_in="${ac_file}.in" ;;
5983 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5985 # Remove last slash and all that follows it. Not all systems have dirname.
5986 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5987 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5988 # The file is in a subdirectory.
5989 test ! -d "$ac_dir" && mkdir "$ac_dir"
5990 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5991 # A "../" for each directory in $ac_dir_suffix.
5992 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5994 ac_dir_suffix= ac_dots=
5997 case "$ac_given_srcdir" in
5999 if test -z "$ac_dots"; then top_srcdir=.
6000 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6001 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
6003 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6004 top_srcdir="$ac_dots$ac_given_srcdir" ;;
6007 case "$ac_given_INSTALL" in
6008 [/$]*) INSTALL="$ac_given_INSTALL" ;;
6009 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6012 echo creating "$ac_file"
6014 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6016 *Makefile*) ac_comsub="1i\\
6017 # $configure_input" ;;
6021 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6023 s%@configure_input@%$configure_input%g
6024 s%@srcdir@%$srcdir%g
6025 s%@top_srcdir@%$top_srcdir%g
6026 s%@INSTALL@%$INSTALL%g
6027 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
6031 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6032 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6034 # ac_d sets the value in "#define NAME VALUE" lines.
6035 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6036 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
6039 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6040 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6041 ac_uB='\([ ]\)%\1#\2define\3'
6044 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6045 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6046 ac_eB='$%\1#\2define\3'
6050 if test "${CONFIG_HEADERS+set}" != set; then
6052 cat >> $CONFIG_STATUS <<EOF
6053 CONFIG_HEADERS="config.h:config.in"
6055 cat >> $CONFIG_STATUS <<\EOF
6057 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
6058 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6060 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6061 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6062 *) ac_file_in="${ac_file}.in" ;;
6065 echo creating $ac_file
6067 rm -f conftest.frag conftest.in conftest.out
6068 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6069 cat $ac_file_inputs > conftest.in
6073 # Transform confdefs.h into a sed script conftest.vals that substitutes
6074 # the proper values into config.h.in to produce config.h. And first:
6075 # Protect against being on the right side of a sed subst in config.status.
6076 # Protect against being in an unquoted here document in config.status.
6078 cat > conftest.hdr <<\EOF
6081 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6085 sed -n -f conftest.hdr confdefs.h > conftest.vals
6088 # This sed command replaces #undef with comments. This is necessary, for
6089 # example, in the case of _POSIX_SOURCE, which is predefined and required
6090 # on some systems where configure will not decide to define it.
6091 cat >> conftest.vals <<\EOF
6092 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6095 # Break up conftest.vals because some shells have a limit on
6096 # the size of here documents, and old seds have small limits too.
6101 ac_lines=`grep -c . conftest.vals`
6102 # grep -c gives empty output for an empty file on some AIX systems.
6103 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6104 # Write a limited-size here document to conftest.frag.
6105 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6106 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6108 sed -f conftest.frag conftest.in > conftest.out
6110 mv conftest.out conftest.in
6112 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6114 mv conftest.tail conftest.vals
6118 cat >> $CONFIG_STATUS <<\EOF
6119 rm -f conftest.frag conftest.h
6120 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6121 cat conftest.in >> conftest.h
6123 if cmp -s $ac_file conftest.h 2>/dev/null; then
6124 echo "$ac_file is unchanged"
6127 # Remove last slash and all that follows it. Not all systems have dirname.
6128 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6129 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6130 # The file is in a subdirectory.
6131 test ! -d "$ac_dir" && mkdir "$ac_dir"
6134 mv conftest.h $ac_file
6139 cat >> $CONFIG_STATUS <<EOF
6143 cat >> $CONFIG_STATUS <<\EOF
6144 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
6146 case "x$CONFIG_FILES" in
6147 *) sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile ;;
6152 chmod +x $CONFIG_STATUS
6153 rm -fr confdefs* $ac_clean_files
6154 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1