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=no]"
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-64-bit-bfd 64-bit support (on hosts with narrower word sizes)"
29 --enable-targets alternative target configurations"
31 --enable-commonbfdlib build shared BFD/opcodes/libiberty library"
33 --with-mmap try using mmap for BFD input files if available"
35 --enable-build-warnings Enable build-time compiler warnings if gcc is used"
37 --enable-maintainer-mode enable make rules and dependencies not useful
38 (and sometimes confusing) to the casual installer"
40 --enable-install-libbfd controls installation of libbfd and related headers"
42 --disable-nls do not use Native Language Support"
44 --with-included-gettext use the GNU gettext library included here"
46 # Initialize some variables set by options.
47 # The variables have the same names as the options, with
48 # dashes changed to underlines.
50 cache_file
=.
/config.cache
59 program_transform_name
=s
,x
,x
,
67 bindir
='${exec_prefix}/bin'
68 sbindir
='${exec_prefix}/sbin'
69 libexecdir
='${exec_prefix}/libexec'
70 datadir
='${prefix}/share'
71 sysconfdir
='${prefix}/etc'
72 sharedstatedir
='${prefix}/com'
73 localstatedir
='${prefix}/var'
74 libdir
='${exec_prefix}/lib'
75 includedir
='${prefix}/include'
76 oldincludedir
='/usr/include'
77 infodir
='${prefix}/info'
78 mandir
='${prefix}/man'
80 # Initialize some other variables.
83 SHELL
=${CONFIG_SHELL-/bin/sh}
84 # Maximum number of lines to put in a shell here document.
91 # If the previous option needs an argument, assign it.
92 if test -n "$ac_prev"; then
93 eval "$ac_prev=\$ac_option"
99 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
103 # Accept the important Cygnus configure options, so we can diagnose typos.
107 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
109 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
110 bindir
="$ac_optarg" ;;
112 -build |
--build |
--buil |
--bui |
--bu)
114 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
115 build
="$ac_optarg" ;;
117 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
118 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
119 ac_prev
=cache_file
;;
120 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
121 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
122 cache_file
="$ac_optarg" ;;
124 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
126 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
128 datadir
="$ac_optarg" ;;
130 -disable-* |
--disable-*)
131 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
132 # Reject names that are not valid shell variable names.
133 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
134 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
136 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
137 eval "enable_${ac_feature}=no" ;;
139 -enable-* |
--enable-*)
140 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
141 # Reject names that are not valid shell variable names.
142 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
143 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
145 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
150 eval "enable_${ac_feature}='$ac_optarg'" ;;
152 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
153 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
154 |
--exec |
--exe |
--ex)
155 ac_prev
=exec_prefix
;;
156 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
157 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
158 |
--exec=* |
--exe=* |
--ex=*)
159 exec_prefix
="$ac_optarg" ;;
161 -gas |
--gas |
--ga |
--g)
162 # Obsolete; use --with-gas.
165 -help |
--help |
--hel |
--he)
166 # Omit some internal or obsolete options to make the list less imposing.
167 # This message is too long to be a string in the A/UX 3.1 sh.
169 Usage: configure [options] [host]
170 Options: [defaults in brackets after descriptions]
172 --cache-file=FILE cache test results in FILE
173 --help print this message
174 --no-create do not create output files
175 --quiet, --silent do not print \`checking...' messages
176 --version print the version of autoconf that created configure
177 Directory and file names:
178 --prefix=PREFIX install architecture-independent files in PREFIX
180 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
182 --bindir=DIR user executables in DIR [EPREFIX/bin]
183 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
184 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
185 --datadir=DIR read-only architecture-independent data in DIR
187 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
188 --sharedstatedir=DIR modifiable architecture-independent data in DIR
190 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
191 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
192 --includedir=DIR C header files in DIR [PREFIX/include]
193 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
194 --infodir=DIR info documentation in DIR [PREFIX/info]
195 --mandir=DIR man documentation in DIR [PREFIX/man]
196 --srcdir=DIR find the sources in DIR [configure dir or ..]
197 --program-prefix=PREFIX prepend PREFIX to installed program names
198 --program-suffix=SUFFIX append SUFFIX to installed program names
199 --program-transform-name=PROGRAM
200 run sed PROGRAM on installed program names
204 --build=BUILD configure for building on BUILD [BUILD=HOST]
205 --host=HOST configure for HOST [guessed]
206 --target=TARGET configure for TARGET [TARGET=HOST]
207 Features and packages:
208 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
209 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
210 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
211 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
212 --x-includes=DIR X include files are in DIR
213 --x-libraries=DIR X library files are in DIR
215 if test -n "$ac_help"; then
216 echo "--enable and --with options recognized:$ac_help"
220 -host |
--host |
--hos |
--ho)
222 -host=* |
--host=* |
--hos=* |
--ho=*)
225 -includedir |
--includedir |
--includedi |
--included |
--include \
226 |
--includ |
--inclu |
--incl |
--inc)
227 ac_prev
=includedir
;;
228 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
229 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
230 includedir
="$ac_optarg" ;;
232 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
234 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
235 infodir
="$ac_optarg" ;;
237 -libdir |
--libdir |
--libdi |
--libd)
239 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
240 libdir
="$ac_optarg" ;;
242 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
243 |
--libexe |
--libex |
--libe)
244 ac_prev
=libexecdir
;;
245 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
246 |
--libexe=* |
--libex=* |
--libe=*)
247 libexecdir
="$ac_optarg" ;;
249 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
250 |
--localstate |
--localstat |
--localsta |
--localst \
251 |
--locals |
--local |
--loca |
--loc |
--lo)
252 ac_prev
=localstatedir
;;
253 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
254 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
255 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
256 localstatedir
="$ac_optarg" ;;
258 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
260 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
261 mandir
="$ac_optarg" ;;
264 # Obsolete; use --without-fp.
267 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
271 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
272 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
275 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
276 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
277 |
--oldin |
--oldi |
--old |
--ol |
--o)
278 ac_prev
=oldincludedir
;;
279 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
280 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
281 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
282 oldincludedir
="$ac_optarg" ;;
284 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
286 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
287 prefix
="$ac_optarg" ;;
289 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
290 |
--program-pre |
--program-pr |
--program-p)
291 ac_prev
=program_prefix
;;
292 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
293 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
294 program_prefix
="$ac_optarg" ;;
296 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
297 |
--program-suf |
--program-su |
--program-s)
298 ac_prev
=program_suffix
;;
299 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
300 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
301 program_suffix
="$ac_optarg" ;;
303 -program-transform-name |
--program-transform-name \
304 |
--program-transform-nam |
--program-transform-na \
305 |
--program-transform-n |
--program-transform- \
306 |
--program-transform |
--program-transfor \
307 |
--program-transfo |
--program-transf \
308 |
--program-trans |
--program-tran \
309 |
--progr-tra |
--program-tr |
--program-t)
310 ac_prev
=program_transform_name
;;
311 -program-transform-name=* |
--program-transform-name=* \
312 |
--program-transform-nam=* |
--program-transform-na=* \
313 |
--program-transform-n=* |
--program-transform-=* \
314 |
--program-transform=* |
--program-transfor=* \
315 |
--program-transfo=* |
--program-transf=* \
316 |
--program-trans=* |
--program-tran=* \
317 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
318 program_transform_name
="$ac_optarg" ;;
320 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
321 |
-silent |
--silent |
--silen |
--sile |
--sil)
324 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
326 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
328 sbindir
="$ac_optarg" ;;
330 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
331 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
332 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
334 ac_prev
=sharedstatedir
;;
335 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
336 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
337 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
339 sharedstatedir
="$ac_optarg" ;;
341 -site |
--site |
--sit)
343 -site=* |
--site=* |
--sit=*)
346 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
348 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
349 srcdir
="$ac_optarg" ;;
351 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
352 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
353 ac_prev
=sysconfdir
;;
354 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
355 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
356 sysconfdir
="$ac_optarg" ;;
358 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
360 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
361 target
="$ac_optarg" ;;
363 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
366 -version |
--version |
--versio |
--versi |
--vers)
367 echo "configure generated by autoconf version 2.13"
371 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
372 # Reject names that are not valid shell variable names.
373 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
374 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
376 ac_package
=`echo $ac_package| sed 's/-/_/g'`
381 eval "with_${ac_package}='$ac_optarg'" ;;
383 -without-* |
--without-*)
384 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
385 # Reject names that are not valid shell variable names.
386 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
387 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
389 ac_package
=`echo $ac_package| sed 's/-/_/g'`
390 eval "with_${ac_package}=no" ;;
393 # Obsolete; use --with-x.
396 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
397 |
--x-incl |
--x-inc |
--x-in |
--x-i)
398 ac_prev
=x_includes
;;
399 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
400 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
401 x_includes
="$ac_optarg" ;;
403 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
404 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
405 ac_prev
=x_libraries
;;
406 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
407 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
408 x_libraries
="$ac_optarg" ;;
410 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
414 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
415 echo "configure: warning: $ac_option: invalid host type" 1>&2
417 if test "x$nonopt" != xNONE
; then
418 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
426 if test -n "$ac_prev"; then
427 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
430 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
432 # File descriptor usage:
435 # 2 errors and warnings
436 # 3 some systems may open it to /dev/tty
437 # 4 used on the Kubota Titan
438 # 6 checking for... messages and results
439 # 5 compiler messages saved in config.log
440 if test "$silent" = yes; then
448 This file contains any messages produced by compilers while
449 running configure, to aid debugging if configure makes a mistake.
452 # Strip out --no-create and --no-recursion so they do not pile up.
453 # Also quote any args containing shell metacharacters.
458 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
459 |
--no-cr |
--no-c) ;;
460 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
461 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
462 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
463 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
464 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
469 # Only set these to C if already set. These must not be set unconditionally
470 # because not all systems understand e.g. LANG=C (notably SCO).
471 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
472 # Non-C LC_CTYPE values break the ctype check.
473 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
474 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
475 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
476 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
478 # confdefs.h avoids OS command line length limits that DEFS can exceed.
479 rm -rf conftest
* confdefs.h
480 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
483 # A filename unique to this package, relative to the directory that
484 # configure is in, which we can look for to find out if srcdir is correct.
485 ac_unique_file
=libbfd.c
487 # Find the source files, if location was not specified.
488 if test -z "$srcdir"; then
489 ac_srcdir_defaulted
=yes
490 # Try the directory containing this script, then its parent.
492 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
493 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
495 if test ! -r $srcdir/$ac_unique_file; then
499 ac_srcdir_defaulted
=no
501 if test ! -r $srcdir/$ac_unique_file; then
502 if test "$ac_srcdir_defaulted" = yes; then
503 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
505 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
508 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
510 # Prefer explicitly selected file to automatically selected ones.
511 if test -z "$CONFIG_SITE"; then
512 if test "x$prefix" != xNONE
; then
513 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
515 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
518 for ac_site_file
in $CONFIG_SITE; do
519 if test -r "$ac_site_file"; then
520 echo "loading site script $ac_site_file"
525 if test -r "$cache_file"; then
526 echo "loading cache $cache_file"
529 echo "creating cache $cache_file"
534 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
535 ac_cpp
='$CPP $CPPFLAGS'
536 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
537 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
538 cross_compiling
=$ac_cv_prog_cc_cross
542 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
543 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
544 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
551 ac_n
= ac_c
='\c' ac_t
=
554 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
555 echo "configure:556: checking for Cygwin environment" >&5
556 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
557 echo $ac_n "(cached) $ac_c" 1>&6
559 cat > conftest.
$ac_ext <<EOF
560 #line 561 "configure"
561 #include "confdefs.h"
566 #define __CYGWIN__ __CYGWIN32__
571 if { (eval echo configure
:572: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
575 echo "configure: failed program was:" >&5
576 cat conftest.
$ac_ext >&5
584 echo "$ac_t""$ac_cv_cygwin" 1>&6
586 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
587 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
588 echo "configure:589: checking for mingw32 environment" >&5
589 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
590 echo $ac_n "(cached) $ac_c" 1>&6
592 cat > conftest.
$ac_ext <<EOF
593 #line 594 "configure"
594 #include "confdefs.h"
600 if { (eval echo configure
:601: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
604 echo "configure: failed program was:" >&5
605 cat conftest.
$ac_ext >&5
613 echo "$ac_t""$ac_cv_mingw32" 1>&6
615 test "$ac_cv_mingw32" = yes && MINGW32
=yes
619 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
620 if test -f $ac_dir/install-sh
; then
622 ac_install_sh
="$ac_aux_dir/install-sh -c"
624 elif test -f $ac_dir/install.sh
; then
626 ac_install_sh
="$ac_aux_dir/install.sh -c"
630 if test -z "$ac_aux_dir"; then
631 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
633 ac_config_guess
=$ac_aux_dir/config.guess
634 ac_config_sub
=$ac_aux_dir/config.sub
635 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
638 # Do some error checking and defaulting for the host and target type.
640 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
643 # 1. You are not allowed to specify --host, --target, and nonopt at the
645 # 2. Host defaults to nonopt.
646 # 3. If nonopt is not specified, then host defaults to the current host,
647 # as determined by config.guess.
648 # 4. Target and build default to nonopt.
649 # 5. If nonopt is not specified, then target and build default to host.
651 # The aliases save the names the user supplied, while $host etc.
652 # will get canonicalized.
653 case $host---$target---$nonopt in
654 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
655 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
659 # Make sure we can run config.sub.
660 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
661 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
664 echo $ac_n "checking host system type""... $ac_c" 1>&6
665 echo "configure:666: checking host system type" >&5
668 case "$host_alias" in
672 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
673 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
675 *) host_alias
=$nonopt ;;
679 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
680 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
681 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
682 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
683 echo "$ac_t""$host" 1>&6
685 echo $ac_n "checking target system type""... $ac_c" 1>&6
686 echo "configure:687: checking target system type" >&5
689 case "$target_alias" in
692 NONE
) target_alias
=$host_alias ;;
693 *) target_alias
=$nonopt ;;
697 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
698 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
699 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
700 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
701 echo "$ac_t""$target" 1>&6
703 echo $ac_n "checking build system type""... $ac_c" 1>&6
704 echo "configure:705: checking build system type" >&5
707 case "$build_alias" in
710 NONE
) build_alias
=$host_alias ;;
711 *) build_alias
=$nonopt ;;
715 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
716 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
717 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
718 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
719 echo "$ac_t""$build" 1>&6
721 test "$host_alias" != "$target_alias" &&
722 test "$program_prefix$program_suffix$program_transform_name" = \
724 program_prefix
=${target_alias}-
727 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
728 echo "configure:729: checking for strerror in -lcposix" >&5
729 ac_lib_var
=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
730 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
731 echo $ac_n "(cached) $ac_c" 1>&6
734 LIBS
="-lcposix $LIBS"
735 cat > conftest.
$ac_ext <<EOF
736 #line 737 "configure"
737 #include "confdefs.h"
738 /* Override any gcc2 internal prototype to avoid an error. */
739 /* We use char because int might match the return type of a gcc2
740 builtin and then its argument prototype would still apply. */
747 if { (eval echo configure
:748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
749 eval "ac_cv_lib_$ac_lib_var=yes"
751 echo "configure: failed program was:" >&5
752 cat conftest.
$ac_ext >&5
754 eval "ac_cv_lib_$ac_lib_var=no"
760 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
761 echo "$ac_t""yes" 1>&6
762 LIBS
="$LIBS -lcposix"
764 echo "$ac_t""no" 1>&6
770 am__api_version
="1.4"
771 # Find a good install program. We prefer a C program (faster),
772 # so one script is as good as another. But avoid the broken or
773 # incompatible versions:
774 # SysV /etc/install, /usr/sbin/install
775 # SunOS /usr/etc/install
778 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
779 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
780 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
781 # ./install, which can be erroneously created by make from ./install.sh.
782 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
783 echo "configure:784: checking for a BSD compatible install" >&5
784 if test -z "$INSTALL"; then
785 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
786 echo $ac_n "(cached) $ac_c" 1>&6
788 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
789 for ac_dir
in $PATH; do
790 # Account for people who put trailing slashes in PATH elements.
792 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
794 # OSF1 and SCO ODT 3.0 have their own names for install.
795 # Don't use installbsd from OSF since it installs stuff as root
797 for ac_prog
in ginstall scoinst
install; do
798 if test -f $ac_dir/$ac_prog; then
799 if test $ac_prog = install &&
800 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
801 # AIX install. It has an incompatible calling convention.
804 ac_cv_path_install
="$ac_dir/$ac_prog -c"
815 if test "${ac_cv_path_install+set}" = set; then
816 INSTALL
="$ac_cv_path_install"
818 # As a last resort, use the slow shell script. We don't cache a
819 # path for INSTALL within a source directory, because that will
820 # break other packages using the cache if that directory is
821 # removed, or if the path is relative.
822 INSTALL
="$ac_install_sh"
825 echo "$ac_t""$INSTALL" 1>&6
827 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
828 # It thinks the first close brace ends the variable substitution.
829 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
831 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
833 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
835 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
836 echo "configure:837: checking whether build environment is sane" >&5
839 echo timestamp
> conftestfile
840 # Do `set' in a subshell so we don't clobber the current shell's
841 # arguments. Must try -L first in case configure is actually a
842 # symlink; some systems play weird games with the mod time of symlinks
843 # (eg FreeBSD returns the mod time of the symlink's containing
846 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
847 if test "$*" = "X"; then
849 set X
`ls -t $srcdir/configure conftestfile`
851 if test "$*" != "X $srcdir/configure conftestfile" \
852 && test "$*" != "X conftestfile $srcdir/configure"; then
854 # If neither matched, then we have a broken ls. This can happen
855 # if, for instance, CONFIG_SHELL is bash and it inherits a
856 # broken ls alias from the environment. This has actually
857 # happened. Such a system could not be considered "sane".
858 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
859 alias in your environment" 1>&2; exit 1; }
862 test "$2" = conftestfile
868 { echo "configure: error: newly created file is older than distributed files!
869 Check your system clock" 1>&2; exit 1; }
872 echo "$ac_t""yes" 1>&6
873 if test "$program_transform_name" = s
,x
,x
,; then
874 program_transform_name
=
876 # Double any \ or $. echo might interpret backslashes.
877 cat <<\EOF_SED
> conftestsed
878 s
,\\,\\\\,g
; s
,\$
,$$
,g
880 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
883 test "$program_prefix" != NONE
&&
884 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
885 # Use a double $ so make ignores it.
886 test "$program_suffix" != NONE
&&
887 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
889 # sed with no file args requires a program.
890 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
892 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
893 echo "configure:894: checking whether ${MAKE-make} sets \${MAKE}" >&5
894 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
895 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
896 echo $ac_n "(cached) $ac_c" 1>&6
898 cat > conftestmake
<<\EOF
900 @
echo 'ac_maketemp="${MAKE}"'
902 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
903 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
904 if test -n "$ac_maketemp"; then
905 eval ac_cv_prog_make_
${ac_make}_set
=yes
907 eval ac_cv_prog_make_
${ac_make}_set
=no
911 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
912 echo "$ac_t""yes" 1>&6
915 echo "$ac_t""no" 1>&6
916 SET_MAKE
="MAKE=${MAKE-make}"
924 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
925 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
927 cat >> confdefs.h
<<EOF
928 #define PACKAGE "$PACKAGE"
931 cat >> confdefs.h
<<EOF
932 #define VERSION "$VERSION"
937 missing_dir
=`cd $ac_aux_dir && pwd`
938 echo $ac_n "checking for working aclocal-${am__api_version}""... $ac_c" 1>&6
939 echo "configure:940: checking for working aclocal-${am__api_version}" >&5
940 # Run test in a subshell; some versions of sh will print an error if
941 # an executable is not found, even if stderr is redirected.
942 # Redirect stdin to placate older versions of autoconf. Sigh.
943 if (aclocal-
${am__api_version} --version) < /dev
/null
> /dev
/null
2>&1; then
944 ACLOCAL
=aclocal-
${am__api_version}
945 echo "$ac_t""found" 1>&6
947 ACLOCAL
="$missing_dir/missing aclocal-${am__api_version}"
948 echo "$ac_t""missing" 1>&6
951 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
952 echo "configure:953: checking for working autoconf" >&5
953 # Run test in a subshell; some versions of sh will print an error if
954 # an executable is not found, even if stderr is redirected.
955 # Redirect stdin to placate older versions of autoconf. Sigh.
956 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
958 echo "$ac_t""found" 1>&6
960 AUTOCONF
="$missing_dir/missing autoconf"
961 echo "$ac_t""missing" 1>&6
964 echo $ac_n "checking for working automake-${am__api_version}""... $ac_c" 1>&6
965 echo "configure:966: checking for working automake-${am__api_version}" >&5
966 # Run test in a subshell; some versions of sh will print an error if
967 # an executable is not found, even if stderr is redirected.
968 # Redirect stdin to placate older versions of autoconf. Sigh.
969 if (automake-
${am__api_version} --version) < /dev
/null
> /dev
/null
2>&1; then
970 AUTOMAKE
=automake-
${am__api_version}
971 echo "$ac_t""found" 1>&6
973 AUTOMAKE
="$missing_dir/missing automake-${am__api_version}"
974 echo "$ac_t""missing" 1>&6
977 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
978 echo "configure:979: checking for working autoheader" >&5
979 # Run test in a subshell; some versions of sh will print an error if
980 # an executable is not found, even if stderr is redirected.
981 # Redirect stdin to placate older versions of autoconf. Sigh.
982 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
983 AUTOHEADER
=autoheader
984 echo "$ac_t""found" 1>&6
986 AUTOHEADER
="$missing_dir/missing autoheader"
987 echo "$ac_t""missing" 1>&6
990 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
991 echo "configure:992: checking for working makeinfo" >&5
992 # Run test in a subshell; some versions of sh will print an error if
993 # an executable is not found, even if stderr is redirected.
994 # Redirect stdin to placate older versions of autoconf. Sigh.
995 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
997 echo "$ac_t""found" 1>&6
999 MAKEINFO
="$missing_dir/missing makeinfo"
1000 echo "$ac_t""missing" 1>&6
1004 # Uncomment the next line to remove the date from the reported bfd version
1007 bfd_version
=`echo "${VERSION}" | sed -e 's/\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\).*/\1.00\2.00\3.00\4.00\5/' -e 's/\([^\.]*\)\..*\(..\)\..*\(..\)\..*\(..\)\..*\(..\)$/\1\2\3\4\5/'`
1009 bfd_version_string
="\"${VERSION}\""
1010 if test x
${is_release} = x
; then
1011 bfd_version_date
=`sed -n -e 's/.*DATE //p' < ${srcdir}/version.h`
1012 bfd_version_string
="\"${VERSION} ${bfd_version_date}\""
1017 if test $host != $build; then
1018 ac_tool_prefix
=${host_alias}-
1023 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1024 set dummy
${ac_tool_prefix}ar; ac_word
=$2
1025 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1026 echo "configure:1027: checking for $ac_word" >&5
1027 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1028 echo $ac_n "(cached) $ac_c" 1>&6
1030 if test -n "$AR"; then
1031 ac_cv_prog_AR
="$AR" # Let the user override the test.
1033 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1035 for ac_dir
in $ac_dummy; do
1036 test -z "$ac_dir" && ac_dir
=.
1037 if test -f $ac_dir/$ac_word; then
1038 ac_cv_prog_AR
="${ac_tool_prefix}ar"
1043 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
1047 if test -n "$AR"; then
1048 echo "$ac_t""$AR" 1>&6
1050 echo "$ac_t""no" 1>&6
1055 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1056 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1057 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1058 echo "configure:1059: checking for $ac_word" >&5
1059 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1060 echo $ac_n "(cached) $ac_c" 1>&6
1062 if test -n "$RANLIB"; then
1063 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1065 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1067 for ac_dir
in $ac_dummy; do
1068 test -z "$ac_dir" && ac_dir
=.
1069 if test -f $ac_dir/$ac_word; then
1070 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1077 RANLIB
="$ac_cv_prog_RANLIB"
1078 if test -n "$RANLIB"; then
1079 echo "$ac_t""$RANLIB" 1>&6
1081 echo "$ac_t""no" 1>&6
1085 if test -z "$ac_cv_prog_RANLIB"; then
1086 if test -n "$ac_tool_prefix"; then
1087 # Extract the first word of "ranlib", so it can be a program name with args.
1088 set dummy ranlib
; ac_word
=$2
1089 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1090 echo "configure:1091: checking for $ac_word" >&5
1091 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1092 echo $ac_n "(cached) $ac_c" 1>&6
1094 if test -n "$RANLIB"; then
1095 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1097 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1099 for ac_dir
in $ac_dummy; do
1100 test -z "$ac_dir" && ac_dir
=.
1101 if test -f $ac_dir/$ac_word; then
1102 ac_cv_prog_RANLIB
="ranlib"
1107 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1110 RANLIB
="$ac_cv_prog_RANLIB"
1111 if test -n "$RANLIB"; then
1112 echo "$ac_t""$RANLIB" 1>&6
1114 echo "$ac_t""no" 1>&6
1123 # Check whether --enable-shared or --disable-shared was given.
1124 if test "${enable_shared+set}" = set; then
1125 enableval
="$enable_shared"
1126 p
=${PACKAGE-default}
1128 yes) enable_shared
=yes ;;
1129 no
) enable_shared
=no
;;
1132 # Look at the argument we got. We use all the common list separators.
1133 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1134 for pkg
in $enableval; do
1135 if test "X$pkg" = "X$p"; then
1147 # Check whether --enable-static or --disable-static was given.
1148 if test "${enable_static+set}" = set; then
1149 enableval
="$enable_static"
1150 p
=${PACKAGE-default}
1152 yes) enable_static
=yes ;;
1153 no
) enable_static
=no
;;
1156 # Look at the argument we got. We use all the common list separators.
1157 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1158 for pkg
in $enableval; do
1159 if test "X$pkg" = "X$p"; then
1170 # Check whether --enable-fast-install or --disable-fast-install was given.
1171 if test "${enable_fast_install+set}" = set; then
1172 enableval
="$enable_fast_install"
1173 p
=${PACKAGE-default}
1175 yes) enable_fast_install
=yes ;;
1176 no
) enable_fast_install
=no
;;
1178 enable_fast_install
=no
1179 # Look at the argument we got. We use all the common list separators.
1180 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1181 for pkg
in $enableval; do
1182 if test "X$pkg" = "X$p"; then
1183 enable_fast_install
=yes
1190 enable_fast_install
=yes
1193 # Extract the first word of "gcc", so it can be a program name with args.
1194 set dummy gcc
; ac_word
=$2
1195 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1196 echo "configure:1197: checking for $ac_word" >&5
1197 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1198 echo $ac_n "(cached) $ac_c" 1>&6
1200 if test -n "$CC"; then
1201 ac_cv_prog_CC
="$CC" # Let the user override the test.
1203 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1205 for ac_dir
in $ac_dummy; do
1206 test -z "$ac_dir" && ac_dir
=.
1207 if test -f $ac_dir/$ac_word; then
1216 if test -n "$CC"; then
1217 echo "$ac_t""$CC" 1>&6
1219 echo "$ac_t""no" 1>&6
1222 if test -z "$CC"; then
1223 # Extract the first word of "cc", so it can be a program name with args.
1224 set dummy cc
; ac_word
=$2
1225 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1226 echo "configure:1227: checking for $ac_word" >&5
1227 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1228 echo $ac_n "(cached) $ac_c" 1>&6
1230 if test -n "$CC"; then
1231 ac_cv_prog_CC
="$CC" # Let the user override the test.
1233 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1236 for ac_dir
in $ac_dummy; do
1237 test -z "$ac_dir" && ac_dir
=.
1238 if test -f $ac_dir/$ac_word; then
1239 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1240 ac_prog_rejected
=yes
1248 if test $ac_prog_rejected = yes; then
1249 # We found a bogon in the path, so make sure we never use it.
1250 set dummy
$ac_cv_prog_CC
1252 if test $# -gt 0; then
1253 # We chose a different compiler from the bogus one.
1254 # However, it has the same basename, so the bogon will be chosen
1255 # first if we set CC to just the basename; use the full file name.
1257 set dummy
"$ac_dir/$ac_word" "$@"
1265 if test -n "$CC"; then
1266 echo "$ac_t""$CC" 1>&6
1268 echo "$ac_t""no" 1>&6
1271 if test -z "$CC"; then
1272 case "`uname -s`" in
1274 # Extract the first word of "cl", so it can be a program name with args.
1275 set dummy cl
; ac_word
=$2
1276 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1277 echo "configure:1278: checking for $ac_word" >&5
1278 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1279 echo $ac_n "(cached) $ac_c" 1>&6
1281 if test -n "$CC"; then
1282 ac_cv_prog_CC
="$CC" # Let the user override the test.
1284 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1286 for ac_dir
in $ac_dummy; do
1287 test -z "$ac_dir" && ac_dir
=.
1288 if test -f $ac_dir/$ac_word; then
1297 if test -n "$CC"; then
1298 echo "$ac_t""$CC" 1>&6
1300 echo "$ac_t""no" 1>&6
1305 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1308 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1309 echo "configure:1310: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1312 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1313 ac_cpp
='$CPP $CPPFLAGS'
1314 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1315 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1316 cross_compiling
=$ac_cv_prog_cc_cross
1318 cat > conftest.
$ac_ext << EOF
1320 #line 1321 "configure"
1321 #include "confdefs.h"
1325 if { (eval echo configure
:1326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1326 ac_cv_prog_cc_works
=yes
1327 # If we can't run a trivial program, we are probably using a cross compiler.
1328 if (.
/conftest
; exit) 2>/dev
/null
; then
1329 ac_cv_prog_cc_cross
=no
1331 ac_cv_prog_cc_cross
=yes
1334 echo "configure: failed program was:" >&5
1335 cat conftest.
$ac_ext >&5
1336 ac_cv_prog_cc_works
=no
1340 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1341 ac_cpp
='$CPP $CPPFLAGS'
1342 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1343 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1344 cross_compiling
=$ac_cv_prog_cc_cross
1346 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1347 if test $ac_cv_prog_cc_works = no
; then
1348 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1350 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1351 echo "configure:1352: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1352 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1353 cross_compiling
=$ac_cv_prog_cc_cross
1355 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1356 echo "configure:1357: checking whether we are using GNU C" >&5
1357 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1358 echo $ac_n "(cached) $ac_c" 1>&6
1360 cat > conftest.c
<<EOF
1365 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1366: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1372 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1374 if test $ac_cv_prog_gcc = yes; then
1380 ac_test_CFLAGS
="${CFLAGS+set}"
1381 ac_save_CFLAGS
="$CFLAGS"
1383 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1384 echo "configure:1385: checking whether ${CC-cc} accepts -g" >&5
1385 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1386 echo $ac_n "(cached) $ac_c" 1>&6
1388 echo 'void f(){}' > conftest.c
1389 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1398 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1399 if test "$ac_test_CFLAGS" = set; then
1400 CFLAGS
="$ac_save_CFLAGS"
1401 elif test $ac_cv_prog_cc_g = yes; then
1402 if test "$GCC" = yes; then
1408 if test "$GCC" = yes; then
1415 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1416 if test "${with_gnu_ld+set}" = set; then
1417 withval
="$with_gnu_ld"
1418 test "$withval" = no || with_gnu_ld
=yes
1424 if test "$GCC" = yes; then
1425 # Check if gcc -print-prog-name=ld gives a path.
1426 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1427 echo "configure:1428: checking for ld used by GCC" >&5
1430 # gcc leaves a trailing carriage return which upsets mingw
1431 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1433 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
1436 # Accept absolute paths.
1437 [\\/]* |
[A-Za-z
]:[\\/]*)
1438 re_direlt
='/[^/][^/]*/\.\./'
1439 # Canonicalize the path of ld
1440 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
1441 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
1442 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
1444 test -z "$LD" && LD
="$ac_prog"
1447 # If it fails, then pretend we aren't using GCC.
1451 # If it is relative, then search for the first ld in PATH.
1455 elif test "$with_gnu_ld" = yes; then
1456 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1457 echo "configure:1458: checking for GNU ld" >&5
1459 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1460 echo "configure:1461: checking for non-GNU ld" >&5
1462 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1463 echo $ac_n "(cached) $ac_c" 1>&6
1465 if test -z "$LD"; then
1466 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1467 for ac_dir
in $PATH; do
1468 test -z "$ac_dir" && ac_dir
=.
1469 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
1470 lt_cv_path_LD
="$ac_dir/$ac_prog"
1471 # Check to see if the program is GNU ld. I'd rather use --version,
1472 # but apparently some GNU ld's only accept -v.
1473 # Break only if it was the GNU/non-GNU ld that we prefer.
1474 if "$lt_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1475 test "$with_gnu_ld" != no
&& break
1477 test "$with_gnu_ld" != yes && break
1483 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
1488 if test -n "$LD"; then
1489 echo "$ac_t""$LD" 1>&6
1491 echo "$ac_t""no" 1>&6
1493 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1494 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1495 echo "configure:1496: checking if the linker ($LD) is GNU ld" >&5
1496 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1497 echo $ac_n "(cached) $ac_c" 1>&6
1499 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1500 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1501 lt_cv_prog_gnu_ld
=yes
1503 lt_cv_prog_gnu_ld
=no
1507 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1508 with_gnu_ld
=$lt_cv_prog_gnu_ld
1511 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1512 echo "configure:1513: checking for $LD option to reload object files" >&5
1513 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1514 echo $ac_n "(cached) $ac_c" 1>&6
1516 lt_cv_ld_reload_flag
='-r'
1519 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1520 reload_flag
=$lt_cv_ld_reload_flag
1521 test -n "$reload_flag" && reload_flag
=" $reload_flag"
1523 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1524 echo "configure:1525: checking for BSD-compatible nm" >&5
1525 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1526 echo $ac_n "(cached) $ac_c" 1>&6
1528 if test -n "$NM"; then
1529 # Let the user override the test.
1532 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1533 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
1534 test -z "$ac_dir" && ac_dir
=.
1535 tmp_nm
=$ac_dir/${ac_tool_prefix}nm
1536 if test -f $tmp_nm ||
test -f $tmp_nm$ac_exeext ; then
1537 # Check to see if the nm accepts a BSD-compat flag.
1538 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1539 # nm: unknown option "B" ignored
1540 # Tru64's nm complains that /dev/null is an invalid object file
1541 if ($tmp_nm -B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep '(/dev/null|Invalid file or object type)' >/dev
/null
; then
1542 lt_cv_path_NM
="$tmp_nm -B"
1544 elif ($tmp_nm -p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1545 lt_cv_path_NM
="$tmp_nm -p"
1548 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1549 continue # so that we can try to find one that supports BSD flags
1554 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
1559 echo "$ac_t""$NM" 1>&6
1561 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1562 echo "configure:1563: checking whether ln -s works" >&5
1563 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1564 echo $ac_n "(cached) $ac_c" 1>&6
1567 if ln -s X conftestdata
2>/dev
/null
1570 ac_cv_prog_LN_S
="ln -s"
1575 LN_S
="$ac_cv_prog_LN_S"
1576 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1577 echo "$ac_t""yes" 1>&6
1579 echo "$ac_t""no" 1>&6
1582 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1583 echo "configure:1584: checking how to recognise dependant libraries" >&5
1584 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1585 echo $ac_n "(cached) $ac_c" 1>&6
1587 lt_cv_file_magic_cmd
='$MAGIC_CMD'
1588 lt_cv_file_magic_test_file
=
1589 lt_cv_deplibs_check_method
='unknown'
1590 # Need to set the preceding variable on all platforms that support
1591 # interlibrary dependencies.
1592 # 'none' -- dependencies not supported.
1593 # `unknown' -- same as none, but documents that we really don't know.
1594 # 'pass_all' -- all dependencies passed with no checks.
1595 # 'test_compile' -- check by making test program.
1596 # 'file_magic [regex]' -- check by looking for files in library path
1597 # which responds to the $file_magic_cmd with a given egrep regex.
1598 # If you have `file' or equivalent on your system and you're not sure
1599 # whether `pass_all' will *always* work, you probably want this one.
1603 lt_cv_deplibs_check_method
=pass_all
1607 lt_cv_deplibs_check_method
=pass_all
1611 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1612 lt_cv_file_magic_cmd
='/usr/bin/file -L'
1613 lt_cv_file_magic_test_file
=/shlib
/libc.so
1616 cygwin
* | mingw
* |pw32
*)
1617 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
1618 lt_cv_file_magic_cmd
='$OBJDUMP -f'
1621 darwin
* | rhapsody
*)
1622 # this will be overwritten by pass_all, but leave it in just in case
1623 lt_cv_deplibs_check_method
='file_magic Mach-O dynamically linked shared library'
1624 lt_cv_file_magic_cmd
='/usr/bin/file -L'
1626 rhapsody
* | darwin1.012
)
1627 lt_cv_file_magic_test_file
='/System/Library/Frameworks/System.framework/System'
1630 lt_cv_file_magic_test_file
='/usr/lib/libSystem.dylib'
1633 lt_cv_deplibs_check_method
=pass_all
1636 freebsd
* | kfreebsd
*-gnu)
1637 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
1640 # Not sure whether the presence of OpenBSD here was a mistake.
1641 # Let's accept both of them until this is cleared up.
1642 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1643 lt_cv_file_magic_cmd
=/usr
/bin
/file
1644 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
1648 lt_cv_deplibs_check_method
=pass_all
1653 lt_cv_deplibs_check_method
=pass_all
1659 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1660 lt_cv_file_magic_cmd
=/usr
/bin
/file
1661 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
1664 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
1665 lt_cv_file_magic_cmd
=/usr
/bin
/file
1666 lt_cv_file_magic_test_file
=/usr
/lib
/hpux32
/libc.so
1674 # this will be overridden with pass_all, but let us keep it just in case
1675 lt_cv_deplibs_check_method
="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1679 *-32|
*"-32 ") libmagic
=32-bit;;
1680 *-n32|
*"-n32 ") libmagic
=N32
;;
1681 *-64|
*"-64 ") libmagic
=64-bit;;
1682 *) libmagic
=never-match
;;
1684 # this will be overridden with pass_all, but let us keep it just in case
1685 lt_cv_deplibs_check_method
="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1688 lt_cv_file_magic_test_file
=`echo /lib${libsuff}/libc.so*`
1689 lt_cv_deplibs_check_method
=pass_all
1692 # This must be Linux ELF.
1695 alpha
* | mips
* | hppa
* | i
*86 | powerpc
* | sparc
* | ia64
* )
1696 lt_cv_deplibs_check_method
=pass_all
;;
1698 # glibc up to 2.1.1 does not perform some relocations on ARM
1699 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1701 lt_cv_file_magic_test_file
=`echo /lib/libc.so* /lib/libc-*.so`
1704 netbsd
* | knetbsd
*-gnu)
1705 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
1706 lt_cv_deplibs_check_method
='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1708 lt_cv_deplibs_check_method
='match_pattern /lib[^/\.]+\.so$'
1713 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1714 lt_cv_file_magic_cmd
=/usr
/bin
/file
1715 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
1718 osf3
* | osf4
* | osf5
*)
1719 # this will be overridden with pass_all, but let us keep it just in case
1720 lt_cv_deplibs_check_method
='file_magic COFF format alpha shared library'
1721 lt_cv_file_magic_test_file
=/shlib
/libc.so
1722 lt_cv_deplibs_check_method
=pass_all
1726 lt_cv_deplibs_check_method
=pass_all
1730 lt_cv_deplibs_check_method
=pass_all
1731 lt_cv_file_magic_test_file
=/lib
/libc.so
1734 sysv5uw
[78]* | sysv4
*uw2
*)
1735 lt_cv_deplibs_check_method
=pass_all
1738 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
1739 case $host_vendor in
1741 lt_cv_deplibs_check_method
=pass_all
1744 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]'
1745 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
1753 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1754 file_magic_cmd
=$lt_cv_file_magic_cmd
1755 deplibs_check_method
=$lt_cv_deplibs_check_method
1757 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1758 echo "configure:1759: checking for object suffix" >&5
1759 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1760 echo $ac_n "(cached) $ac_c" 1>&6
1763 echo 'int i = 1;' > conftest.
$ac_ext
1764 if { (eval echo configure
:1765: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1765 for ac_file
in conftest.
*; do
1768 *) ac_cv_objext
=`echo $ac_file | sed -e s/conftest.//` ;;
1772 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1777 echo "$ac_t""$ac_cv_objext" 1>&6
1778 OBJEXT
=$ac_cv_objext
1779 ac_objext
=$ac_cv_objext
1783 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1784 echo "configure:1785: checking for executable suffix" >&5
1785 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1786 echo $ac_n "(cached) $ac_c" 1>&6
1788 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
1792 echo 'int main () { return 0; }' > conftest.
$ac_ext
1794 if { (eval echo configure
:1795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1795 for file in conftest.
*; do
1797 *.c |
*.o |
*.obj
) ;;
1798 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
1802 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1805 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
1810 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
1811 echo "$ac_t""${ac_cv_exeext}" 1>&6
1814 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1816 # Only perform the check for file, if the check method requires it
1817 case $deplibs_check_method in
1819 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1820 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
1821 echo "configure:1822: checking for ${ac_tool_prefix}file" >&5
1822 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1823 echo $ac_n "(cached) $ac_c" 1>&6
1827 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
1830 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
1833 ac_save_MAGIC_CMD
="$MAGIC_CMD"
1834 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1835 ac_dummy
="/usr/bin:$PATH"
1836 for ac_dir
in $ac_dummy; do
1837 test -z "$ac_dir" && ac_dir
=.
1838 if test -f $ac_dir/${ac_tool_prefix}file; then
1839 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
1840 if test -n "$file_magic_test_file"; then
1841 case $deplibs_check_method in
1843 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1844 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1845 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
1846 egrep "$file_magic_regex" > /dev
/null
; then
1851 *** Warning: the command libtool uses to detect shared libraries,
1852 *** $file_magic_cmd, produces output that libtool cannot recognize.
1853 *** The result is that libtool may fail to recognize shared libraries
1854 *** as such. This will affect the creation of libtool libraries that
1855 *** depend on shared libraries, but programs linked with such libtool
1856 *** libraries will work regardless of this problem. Nevertheless, you
1857 *** may want to report the problem to your system manager and/or to
1858 *** bug-libtool@gnu.org
1868 MAGIC_CMD
="$ac_save_MAGIC_CMD"
1873 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1874 if test -n "$MAGIC_CMD"; then
1875 echo "$ac_t""$MAGIC_CMD" 1>&6
1877 echo "$ac_t""no" 1>&6
1880 if test -z "$lt_cv_path_MAGIC_CMD"; then
1881 if test -n "$ac_tool_prefix"; then
1882 echo $ac_n "checking for file""... $ac_c" 1>&6
1883 echo "configure:1884: checking for file" >&5
1884 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1885 echo $ac_n "(cached) $ac_c" 1>&6
1889 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
1892 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
1895 ac_save_MAGIC_CMD
="$MAGIC_CMD"
1896 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1897 ac_dummy
="/usr/bin:$PATH"
1898 for ac_dir
in $ac_dummy; do
1899 test -z "$ac_dir" && ac_dir
=.
1900 if test -f $ac_dir/file; then
1901 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
1902 if test -n "$file_magic_test_file"; then
1903 case $deplibs_check_method in
1905 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1906 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1907 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
1908 egrep "$file_magic_regex" > /dev
/null
; then
1913 *** Warning: the command libtool uses to detect shared libraries,
1914 *** $file_magic_cmd, produces output that libtool cannot recognize.
1915 *** The result is that libtool may fail to recognize shared libraries
1916 *** as such. This will affect the creation of libtool libraries that
1917 *** depend on shared libraries, but programs linked with such libtool
1918 *** libraries will work regardless of this problem. Nevertheless, you
1919 *** may want to report the problem to your system manager and/or to
1920 *** bug-libtool@gnu.org
1930 MAGIC_CMD
="$ac_save_MAGIC_CMD"
1935 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1936 if test -n "$MAGIC_CMD"; then
1937 echo "$ac_t""$MAGIC_CMD" 1>&6
1939 echo "$ac_t""no" 1>&6
1951 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1952 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1953 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1954 echo "configure:1955: checking for $ac_word" >&5
1955 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1956 echo $ac_n "(cached) $ac_c" 1>&6
1958 if test -n "$RANLIB"; then
1959 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1961 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1963 for ac_dir
in $ac_dummy; do
1964 test -z "$ac_dir" && ac_dir
=.
1965 if test -f $ac_dir/$ac_word; then
1966 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1973 RANLIB
="$ac_cv_prog_RANLIB"
1974 if test -n "$RANLIB"; then
1975 echo "$ac_t""$RANLIB" 1>&6
1977 echo "$ac_t""no" 1>&6
1981 if test -z "$ac_cv_prog_RANLIB"; then
1982 if test -n "$ac_tool_prefix"; then
1983 # Extract the first word of "ranlib", so it can be a program name with args.
1984 set dummy ranlib
; ac_word
=$2
1985 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1986 echo "configure:1987: checking for $ac_word" >&5
1987 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1988 echo $ac_n "(cached) $ac_c" 1>&6
1990 if test -n "$RANLIB"; then
1991 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1993 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1995 for ac_dir
in $ac_dummy; do
1996 test -z "$ac_dir" && ac_dir
=.
1997 if test -f $ac_dir/$ac_word; then
1998 ac_cv_prog_RANLIB
="ranlib"
2003 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2006 RANLIB
="$ac_cv_prog_RANLIB"
2007 if test -n "$RANLIB"; then
2008 echo "$ac_t""$RANLIB" 1>&6
2010 echo "$ac_t""no" 1>&6
2018 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2019 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2020 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2021 echo "configure:2022: checking for $ac_word" >&5
2022 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2023 echo $ac_n "(cached) $ac_c" 1>&6
2025 if test -n "$STRIP"; then
2026 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2028 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2030 for ac_dir
in $ac_dummy; do
2031 test -z "$ac_dir" && ac_dir
=.
2032 if test -f $ac_dir/$ac_word; then
2033 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2040 STRIP
="$ac_cv_prog_STRIP"
2041 if test -n "$STRIP"; then
2042 echo "$ac_t""$STRIP" 1>&6
2044 echo "$ac_t""no" 1>&6
2048 if test -z "$ac_cv_prog_STRIP"; then
2049 if test -n "$ac_tool_prefix"; then
2050 # Extract the first word of "strip", so it can be a program name with args.
2051 set dummy strip
; ac_word
=$2
2052 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2053 echo "configure:2054: checking for $ac_word" >&5
2054 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2055 echo $ac_n "(cached) $ac_c" 1>&6
2057 if test -n "$STRIP"; then
2058 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2060 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2062 for ac_dir
in $ac_dummy; do
2063 test -z "$ac_dir" && ac_dir
=.
2064 if test -f $ac_dir/$ac_word; then
2065 ac_cv_prog_STRIP
="strip"
2070 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP
=":"
2073 STRIP
="$ac_cv_prog_STRIP"
2074 if test -n "$STRIP"; then
2075 echo "$ac_t""$STRIP" 1>&6
2077 echo "$ac_t""no" 1>&6
2086 # Check for any special flags to pass to ltconfig.
2087 libtool_flags
="--cache-file=$cache_file"
2088 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
2089 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
2090 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
2091 test "$GCC" = yes && libtool_flags
="$libtool_flags --with-gcc"
2092 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
2095 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2096 if test "${enable_libtool_lock+set}" = set; then
2097 enableval
="$enable_libtool_lock"
2101 test "x$enable_libtool_lock" = xno
&& libtool_flags
="$libtool_flags --disable-lock"
2102 test x
"$silent" = xyes
&& libtool_flags
="$libtool_flags --silent"
2104 # Check whether --with-pic or --without-pic was given.
2105 if test "${with_pic+set}" = set; then
2112 test x
"$pic_mode" = xyes
&& libtool_flags
="$libtool_flags --prefer-pic"
2113 test x
"$pic_mode" = xno
&& libtool_flags
="$libtool_flags --prefer-non-pic"
2115 # Some flags need to be propagated to the compiler or linker for good
2119 # Find out which ABI we are using.
2120 echo '#line 2121 "configure"' > conftest.
$ac_ext
2121 if { (eval echo configure
:2122: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2122 if test "$lt_cv_prog_gnu_ld" = yes; then
2123 case `/usr/bin/file conftest.$ac_objext` in
2125 LD
="${LD-ld} -melf32bsmip"
2128 LD
="${LD-ld} -melf32bmipn32"
2131 LD
="${LD-ld} -melf64bmip"
2135 case `/usr/bin/file conftest.$ac_objext` in
2152 # Find out which ABI we are using.
2153 echo 'int i;' > conftest.
$ac_ext
2154 if { (eval echo configure
:2155: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2155 case "`/usr/bin/file conftest.o`" in
2167 x86_64-
*linux
*|ppc
*-*linux
*|powerpc
*-*linux
*|s390
*-*linux
*|sparc
*-*linux
*)
2168 # Find out which ABI we are using.
2169 echo 'int i;' > conftest.
$ac_ext
2170 if { (eval echo configure
:2171: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2171 case "`/usr/bin/file conftest.o`" in
2175 LD
="${LD-ld} -m elf_i386"
2177 ppc64-
*linux
*|powerpc64-
*linux
*)
2178 LD
="${LD-ld} -m elf32ppclinux"
2181 LD
="${LD-ld} -m elf_s390"
2184 LD
="${LD-ld} -m elf32_sparc"
2191 LD
="${LD-ld} -m elf_x86_64"
2193 ppc
*-*linux
*|powerpc
*-*linux
*)
2194 LD
="${LD-ld} -m elf64ppc"
2197 LD
="${LD-ld} -m elf64_s390"
2200 LD
="${LD-ld} -m elf64_sparc"
2210 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2211 SAVE_CFLAGS
="$CFLAGS"
2212 CFLAGS
="$CFLAGS -belf"
2213 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2214 echo "configure:2215: checking whether the C compiler needs -belf" >&5
2215 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2216 echo $ac_n "(cached) $ac_c" 1>&6
2220 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2221 ac_cpp
='$CPP $CPPFLAGS'
2222 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2223 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2224 cross_compiling
=$ac_cv_prog_cc_cross
2226 cat > conftest.
$ac_ext <<EOF
2227 #line 2228 "configure"
2228 #include "confdefs.h"
2234 if { (eval echo configure
:2235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2236 lt_cv_cc_needs_belf
=yes
2238 echo "configure: failed program was:" >&5
2239 cat conftest.
$ac_ext >&5
2241 lt_cv_cc_needs_belf
=no
2245 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2246 ac_cpp
='$CPP $CPPFLAGS'
2247 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2248 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2249 cross_compiling
=$ac_cv_prog_cc_cross
2253 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2254 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
2255 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2256 CFLAGS
="$SAVE_CFLAGS"
2264 # Save cache, so that ltconfig can load it
2265 cat > confcache
<<\EOF
2266 # This file is a shell script that caches the results of configure
2267 # tests run on this system so they can be shared between configure
2268 # scripts and configure runs. It is not useful on other systems.
2269 # If it contains results you don't want to keep, you may remove or edit it.
2271 # By default, configure uses ./config.cache as the cache file,
2272 # creating it if it does not exist already. You can give configure
2273 # the --cache-file=FILE option to use a different cache file; that is
2274 # what configure does when it calls configure scripts in
2275 # subdirectories, so they share the cache.
2276 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2277 # config.status only pays attention to the cache file if you give it the
2278 # --recheck option to rerun configure.
2281 # The following way of writing the cache mishandles newlines in values,
2282 # but we know of no workaround that is simple, portable, and efficient.
2283 # So, don't put newlines in cache variables' values.
2284 # Ultrix sh set writes to stderr and can't be redirected directly,
2285 # and sets the high bit in the cache file unless we assign to the vars.
2287 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2289 # `set' does not quote correctly, so add quotes (double-quote substitution
2290 # turns \\\\ into \\, and sed turns \\ into \).
2292 -e "s/'/'\\\\''/g" \
2293 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2296 # `set' quotes correctly as required by POSIX, so do not add quotes.
2297 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2300 if cmp -s $cache_file confcache
; then
2303 if test -w $cache_file; then
2304 echo "updating cache $cache_file"
2305 cat confcache
> $cache_file
2307 echo "not updating unwritable cache $cache_file"
2313 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2314 AR
="$AR" LTCC
="$CC" CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
2315 MAGIC_CMD
="$MAGIC_CMD" LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
2316 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" STRIP
="$STRIP" \
2317 AS
="$AS" DLLTOOL
="$DLLTOOL" OBJDUMP
="$OBJDUMP" \
2318 objext
="$OBJEXT" exeext
="$EXEEXT" reload_flag
="$reload_flag" \
2319 deplibs_check_method
="$deplibs_check_method" file_magic_cmd
="$file_magic_cmd" \
2320 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
2321 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh
$host \
2322 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2324 # Reload cache, that may have been modified by ltconfig
2325 if test -r "$cache_file"; then
2326 echo "loading cache $cache_file"
2329 echo "creating cache $cache_file"
2334 # This can be used to rebuild libtool when needed
2335 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2337 # Always use our own libtool.
2338 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
2340 # Redirect the config.log output again, so that the ltconfig log is not
2341 # clobbered by the next message.
2342 exec 5>>.
/config.log
2350 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
2351 if test "${enable_64_bit_bfd+set}" = set; then
2352 enableval
="$enable_64_bit_bfd"
2353 case "${enableval}" in
2356 *) { echo "configure: error: bad value ${enableval} for 64-bit-bfd option" 1>&2; exit 1; } ;;
2361 # Check whether --enable-targets or --disable-targets was given.
2362 if test "${enable_targets+set}" = set; then
2363 enableval
="$enable_targets"
2364 case "${enableval}" in
2365 yes |
"") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
2367 no
) enable_targets
= ;;
2368 *) enable_targets
=$enableval ;;
2371 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
2372 if test "${enable_commonbfdlib+set}" = set; then
2373 enableval
="$enable_commonbfdlib"
2374 case "${enableval}" in
2375 yes) commonbfdlib
=true
;;
2376 no
) commonbfdlib
=false
;;
2377 *) { echo "configure: error: bad value ${enableval} for BFD commonbfdlib option" 1>&2; exit 1; } ;;
2380 # Check whether --with-mmap or --without-mmap was given.
2381 if test "${with_mmap+set}" = set; then
2382 withval
="$with_mmap"
2383 case "${withval}" in
2384 yes) want_mmap
=true
;;
2385 no
) want_mmap
=false
;;
2386 *) { echo "configure: error: bad value ${withval} for BFD with-mmap option" 1>&2; exit 1; } ;;
2392 build_warnings
="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
2393 # Check whether --enable-build-warnings or --disable-build-warnings was given.
2394 if test "${enable_build_warnings+set}" = set; then
2395 enableval
="$enable_build_warnings"
2396 case "${enableval}" in
2398 no
) build_warnings
="-w";;
2399 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
2400 build_warnings
="${build_warnings} ${t}";;
2401 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
2402 build_warnings
="${t} ${build_warnings}";;
2403 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
2405 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
2406 echo "Setting warning flags = $build_warnings" 6>&1
2410 if test "x${build_warnings}" != x
&& test "x$GCC" = xyes
; then
2411 WARN_CFLAGS
="${build_warnings}"
2419 if test -z "$target" ; then
2420 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
2423 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
2424 echo "configure:2425: checking whether to enable maintainer-specific portions of Makefiles" >&5
2425 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2426 if test "${enable_maintainer_mode+set}" = set; then
2427 enableval
="$enable_maintainer_mode"
2428 USE_MAINTAINER_MODE
=$enableval
2430 USE_MAINTAINER_MODE
=no
2433 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
2436 if test $USE_MAINTAINER_MODE = yes; then
2437 MAINTAINER_MODE_TRUE
=
2438 MAINTAINER_MODE_FALSE
='#'
2440 MAINTAINER_MODE_TRUE
='#'
2441 MAINTAINER_MODE_FALSE
=
2443 MAINT
=$MAINTAINER_MODE_TRUE
2446 echo $ac_n "checking whether to install libbfd""... $ac_c" 1>&6
2447 echo "configure:2448: checking whether to install libbfd" >&5
2448 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
2449 if test "${enable_install_libbfd+set}" = set; then
2450 enableval
="$enable_install_libbfd"
2451 install_libbfd_p
=$enableval
2453 if test "${host}" = "${target}" ||
test "$enable_shared" = "yes"; then
2454 install_libbfd_p
=yes
2460 echo "$ac_t""$install_libbfd_p" 1>&6
2463 if test $install_libbfd_p = yes; then
2464 INSTALL_LIBBFD_TRUE
=
2465 INSTALL_LIBBFD_FALSE
='#'
2467 INSTALL_LIBBFD_TRUE
='#'
2468 INSTALL_LIBBFD_FALSE
=
2470 # libbfd.a is a host library containing target dependent code
2471 bfdlibdir
='$(libdir)'
2472 bfdincludedir
='$(includedir)'
2473 if test "${host}" != "${target}"; then
2474 bfdlibdir
='$(exec_prefix)/$(host_alias)/$(target_alias)/lib'
2475 bfdincludedir
='$(exec_prefix)/$(host_alias)/$(target_alias)/include'
2483 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2484 echo "configure:2485: checking for executable suffix" >&5
2485 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2486 echo $ac_n "(cached) $ac_c" 1>&6
2488 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
2492 echo 'int main () { return 0; }' > conftest.
$ac_ext
2494 if { (eval echo configure
:2495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2495 for file in conftest.
*; do
2497 *.c |
*.o |
*.obj
) ;;
2498 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
2502 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2505 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
2510 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
2511 echo "$ac_t""${ac_cv_exeext}" 1>&6
2517 bfd_default_target_size
=32
2521 # Extract the first word of "gcc", so it can be a program name with args.
2522 set dummy gcc
; ac_word
=$2
2523 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2524 echo "configure:2525: checking for $ac_word" >&5
2525 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2526 echo $ac_n "(cached) $ac_c" 1>&6
2528 if test -n "$CC"; then
2529 ac_cv_prog_CC
="$CC" # Let the user override the test.
2531 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2533 for ac_dir
in $ac_dummy; do
2534 test -z "$ac_dir" && ac_dir
=.
2535 if test -f $ac_dir/$ac_word; then
2544 if test -n "$CC"; then
2545 echo "$ac_t""$CC" 1>&6
2547 echo "$ac_t""no" 1>&6
2550 if test -z "$CC"; then
2551 # Extract the first word of "cc", so it can be a program name with args.
2552 set dummy cc
; ac_word
=$2
2553 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2554 echo "configure:2555: checking for $ac_word" >&5
2555 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2556 echo $ac_n "(cached) $ac_c" 1>&6
2558 if test -n "$CC"; then
2559 ac_cv_prog_CC
="$CC" # Let the user override the test.
2561 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2564 for ac_dir
in $ac_dummy; do
2565 test -z "$ac_dir" && ac_dir
=.
2566 if test -f $ac_dir/$ac_word; then
2567 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2568 ac_prog_rejected
=yes
2576 if test $ac_prog_rejected = yes; then
2577 # We found a bogon in the path, so make sure we never use it.
2578 set dummy
$ac_cv_prog_CC
2580 if test $# -gt 0; then
2581 # We chose a different compiler from the bogus one.
2582 # However, it has the same basename, so the bogon will be chosen
2583 # first if we set CC to just the basename; use the full file name.
2585 set dummy
"$ac_dir/$ac_word" "$@"
2593 if test -n "$CC"; then
2594 echo "$ac_t""$CC" 1>&6
2596 echo "$ac_t""no" 1>&6
2599 if test -z "$CC"; then
2600 case "`uname -s`" in
2602 # Extract the first word of "cl", so it can be a program name with args.
2603 set dummy cl
; ac_word
=$2
2604 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2605 echo "configure:2606: checking for $ac_word" >&5
2606 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2607 echo $ac_n "(cached) $ac_c" 1>&6
2609 if test -n "$CC"; then
2610 ac_cv_prog_CC
="$CC" # Let the user override the test.
2612 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2614 for ac_dir
in $ac_dummy; do
2615 test -z "$ac_dir" && ac_dir
=.
2616 if test -f $ac_dir/$ac_word; then
2625 if test -n "$CC"; then
2626 echo "$ac_t""$CC" 1>&6
2628 echo "$ac_t""no" 1>&6
2633 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2636 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2637 echo "configure:2638: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2640 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2641 ac_cpp
='$CPP $CPPFLAGS'
2642 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2643 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2644 cross_compiling
=$ac_cv_prog_cc_cross
2646 cat > conftest.
$ac_ext << EOF
2648 #line 2649 "configure"
2649 #include "confdefs.h"
2653 if { (eval echo configure
:2654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2654 ac_cv_prog_cc_works
=yes
2655 # If we can't run a trivial program, we are probably using a cross compiler.
2656 if (.
/conftest
; exit) 2>/dev
/null
; then
2657 ac_cv_prog_cc_cross
=no
2659 ac_cv_prog_cc_cross
=yes
2662 echo "configure: failed program was:" >&5
2663 cat conftest.
$ac_ext >&5
2664 ac_cv_prog_cc_works
=no
2668 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2669 ac_cpp
='$CPP $CPPFLAGS'
2670 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2671 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2672 cross_compiling
=$ac_cv_prog_cc_cross
2674 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2675 if test $ac_cv_prog_cc_works = no
; then
2676 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2678 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2679 echo "configure:2680: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2680 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2681 cross_compiling
=$ac_cv_prog_cc_cross
2683 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2684 echo "configure:2685: checking whether we are using GNU C" >&5
2685 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2686 echo $ac_n "(cached) $ac_c" 1>&6
2688 cat > conftest.c
<<EOF
2693 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:2694: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
2700 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2702 if test $ac_cv_prog_gcc = yes; then
2708 ac_test_CFLAGS
="${CFLAGS+set}"
2709 ac_save_CFLAGS
="$CFLAGS"
2711 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2712 echo "configure:2713: checking whether ${CC-cc} accepts -g" >&5
2713 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2714 echo $ac_n "(cached) $ac_c" 1>&6
2716 echo 'void f(){}' > conftest.c
2717 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2726 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2727 if test "$ac_test_CFLAGS" = set; then
2728 CFLAGS
="$ac_save_CFLAGS"
2729 elif test $ac_cv_prog_cc_g = yes; then
2730 if test "$GCC" = yes; then
2736 if test "$GCC" = yes; then
2744 ALL_LINGUAS
="fr tr ja es sv da zh_CN ro"
2745 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2746 echo "configure:2747: checking how to run the C preprocessor" >&5
2747 # On Suns, sometimes $CPP names a directory.
2748 if test -n "$CPP" && test -d "$CPP"; then
2751 if test -z "$CPP"; then
2752 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2753 echo $ac_n "(cached) $ac_c" 1>&6
2755 # This must be in double quotes, not single quotes, because CPP may get
2756 # substituted into the Makefile and "${CC-cc}" will confuse make.
2758 # On the NeXT, cc -E runs the code through the compiler's parser,
2759 # not just through cpp.
2760 cat > conftest.
$ac_ext <<EOF
2761 #line 2762 "configure"
2762 #include "confdefs.h"
2766 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2767 { (eval echo configure
:2768: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2768 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2769 if test -z "$ac_err"; then
2773 echo "configure: failed program was:" >&5
2774 cat conftest.
$ac_ext >&5
2776 CPP
="${CC-cc} -E -traditional-cpp"
2777 cat > conftest.
$ac_ext <<EOF
2778 #line 2779 "configure"
2779 #include "confdefs.h"
2783 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2784 { (eval echo configure
:2785: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2785 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2786 if test -z "$ac_err"; then
2790 echo "configure: failed program was:" >&5
2791 cat conftest.
$ac_ext >&5
2793 CPP
="${CC-cc} -nologo -E"
2794 cat > conftest.
$ac_ext <<EOF
2795 #line 2796 "configure"
2796 #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
2807 echo "configure: failed program was:" >&5
2808 cat conftest.
$ac_ext >&5
2817 ac_cv_prog_CPP
="$CPP"
2819 CPP
="$ac_cv_prog_CPP"
2821 ac_cv_prog_CPP
="$CPP"
2823 echo "$ac_t""$CPP" 1>&6
2825 # Extract the first word of "ranlib", so it can be a program name with args.
2826 set dummy ranlib
; ac_word
=$2
2827 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2828 echo "configure:2829: checking for $ac_word" >&5
2829 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2830 echo $ac_n "(cached) $ac_c" 1>&6
2832 if test -n "$RANLIB"; then
2833 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2835 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2837 for ac_dir
in $ac_dummy; do
2838 test -z "$ac_dir" && ac_dir
=.
2839 if test -f $ac_dir/$ac_word; then
2840 ac_cv_prog_RANLIB
="ranlib"
2845 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2848 RANLIB
="$ac_cv_prog_RANLIB"
2849 if test -n "$RANLIB"; then
2850 echo "$ac_t""$RANLIB" 1>&6
2852 echo "$ac_t""no" 1>&6
2855 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2856 echo "configure:2857: checking for ANSI C header files" >&5
2857 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2858 echo $ac_n "(cached) $ac_c" 1>&6
2860 cat > conftest.
$ac_ext <<EOF
2861 #line 2862 "configure"
2862 #include "confdefs.h"
2868 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2869 { (eval echo configure
:2870: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2870 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2871 if test -z "$ac_err"; then
2873 ac_cv_header_stdc
=yes
2876 echo "configure: failed program was:" >&5
2877 cat conftest.
$ac_ext >&5
2879 ac_cv_header_stdc
=no
2883 if test $ac_cv_header_stdc = yes; then
2884 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2885 cat > conftest.
$ac_ext <<EOF
2886 #line 2887 "configure"
2887 #include "confdefs.h"
2890 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2891 egrep "memchr" >/dev
/null
2>&1; then
2895 ac_cv_header_stdc
=no
2901 if test $ac_cv_header_stdc = yes; then
2902 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2903 cat > conftest.
$ac_ext <<EOF
2904 #line 2905 "configure"
2905 #include "confdefs.h"
2908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2909 egrep "free" >/dev
/null
2>&1; then
2913 ac_cv_header_stdc
=no
2919 if test $ac_cv_header_stdc = yes; then
2920 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2921 if test "$cross_compiling" = yes; then
2924 cat > conftest.
$ac_ext <<EOF
2925 #line 2926 "configure"
2926 #include "confdefs.h"
2928 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2929 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2930 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2931 int main () { int i; for (i = 0; i < 256; i++)
2932 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2936 if { (eval echo configure
:2937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2940 echo "configure: failed program was:" >&5
2941 cat conftest.
$ac_ext >&5
2943 ac_cv_header_stdc
=no
2951 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2952 if test $ac_cv_header_stdc = yes; then
2953 cat >> confdefs.h
<<\EOF
2954 #define STDC_HEADERS 1
2959 echo $ac_n "checking for working const""... $ac_c" 1>&6
2960 echo "configure:2961: checking for working const" >&5
2961 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2962 echo $ac_n "(cached) $ac_c" 1>&6
2964 cat > conftest.
$ac_ext <<EOF
2965 #line 2966 "configure"
2966 #include "confdefs.h"
2970 /* Ultrix mips cc rejects this. */
2971 typedef int charset[2]; const charset x;
2972 /* SunOS 4.1.1 cc rejects this. */
2973 char const *const *ccp;
2975 /* NEC SVR4.0.2 mips cc rejects this. */
2976 struct point {int x, y;};
2977 static struct point const zero = {0,0};
2978 /* AIX XL C 1.02.0.0 rejects this.
2979 It does not let you subtract one const X* pointer from another in an arm
2980 of an if-expression whose if-part is not a constant expression */
2981 const char *g = "string";
2982 ccp = &g + (g ? g-g : 0);
2983 /* HPUX 7.0 cc rejects these. */
2986 ccp = (char const *const *) p;
2987 { /* SCO 3.2v4 cc rejects this. */
2989 char const *s = 0 ? (char *) 0 : (char const *) 0;
2993 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2995 const int *foo = &x[0];
2998 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2999 typedef const int *iptr;
3003 { /* AIX XL C 1.02.0.0 rejects this saying
3004 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3005 struct s { int j; const int *ap[3]; };
3006 struct s *b; b->j = 5;
3008 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3014 if { (eval echo configure
:3015: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3018 echo "configure: failed program was:" >&5
3019 cat conftest.
$ac_ext >&5
3026 echo "$ac_t""$ac_cv_c_const" 1>&6
3027 if test $ac_cv_c_const = no
; then
3028 cat >> confdefs.h
<<\EOF
3034 echo $ac_n "checking for inline""... $ac_c" 1>&6
3035 echo "configure:3036: checking for inline" >&5
3036 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3037 echo $ac_n "(cached) $ac_c" 1>&6
3040 for ac_kw
in inline __inline__ __inline
; do
3041 cat > conftest.
$ac_ext <<EOF
3042 #line 3043 "configure"
3043 #include "confdefs.h"
3049 if { (eval echo configure
:3050: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3051 ac_cv_c_inline
=$ac_kw; break
3053 echo "configure: failed program was:" >&5
3054 cat conftest.
$ac_ext >&5
3061 echo "$ac_t""$ac_cv_c_inline" 1>&6
3062 case "$ac_cv_c_inline" in
3064 no
) cat >> confdefs.h
<<\EOF
3068 *) cat >> confdefs.h
<<EOF
3069 #define inline $ac_cv_c_inline
3074 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3075 echo "configure:3076: checking for off_t" >&5
3076 if eval "test \"`echo '$''{'ac_cv_type_off_t'+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"
3082 #include <sys/types.h>
3088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3089 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3091 ac_cv_type_off_t
=yes
3099 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3100 if test $ac_cv_type_off_t = no
; then
3101 cat >> confdefs.h
<<\EOF
3107 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3108 echo "configure:3109: checking for size_t" >&5
3109 if eval "test \"`echo '$''{'ac_cv_type_size_t'+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"
3115 #include <sys/types.h>
3121 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3122 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3124 ac_cv_type_size_t
=yes
3127 ac_cv_type_size_t
=no
3132 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3133 if test $ac_cv_type_size_t = no
; then
3134 cat >> confdefs.h
<<\EOF
3135 #define size_t unsigned
3140 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3141 # for constant arguments. Useless!
3142 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3143 echo "configure:3144: checking for working alloca.h" >&5
3144 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3145 echo $ac_n "(cached) $ac_c" 1>&6
3147 cat > conftest.
$ac_ext <<EOF
3148 #line 3149 "configure"
3149 #include "confdefs.h"
3152 char *p = alloca(2 * sizeof(int));
3155 if { (eval echo configure
:3156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3157 ac_cv_header_alloca_h
=yes
3159 echo "configure: failed program was:" >&5
3160 cat conftest.
$ac_ext >&5
3162 ac_cv_header_alloca_h
=no
3167 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3168 if test $ac_cv_header_alloca_h = yes; then
3169 cat >> confdefs.h
<<\EOF
3170 #define HAVE_ALLOCA_H 1
3175 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3176 echo "configure:3177: checking for alloca" >&5
3177 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3178 echo $ac_n "(cached) $ac_c" 1>&6
3180 cat > conftest.
$ac_ext <<EOF
3181 #line 3182 "configure"
3182 #include "confdefs.h"
3185 # define alloca __builtin_alloca
3188 # include <malloc.h>
3189 # define alloca _alloca
3192 # include <alloca.h>
3197 # ifndef alloca /* predefined by HP cc +Olibcalls */
3206 char *p = (char *) alloca(1);
3209 if { (eval echo configure
:3210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3211 ac_cv_func_alloca_works
=yes
3213 echo "configure: failed program was:" >&5
3214 cat conftest.
$ac_ext >&5
3216 ac_cv_func_alloca_works
=no
3221 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3222 if test $ac_cv_func_alloca_works = yes; then
3223 cat >> confdefs.h
<<\EOF
3224 #define HAVE_ALLOCA 1
3229 if test $ac_cv_func_alloca_works = no
; then
3230 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3231 # that cause trouble. Some versions do not even contain alloca or
3232 # contain a buggy version. If you still want to use their alloca,
3233 # use ar to extract alloca.o from them instead of compiling alloca.c.
3234 ALLOCA
=alloca.
${ac_objext}
3235 cat >> confdefs.h
<<\EOF
3240 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3241 echo "configure:3242: checking whether alloca needs Cray hooks" >&5
3242 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3243 echo $ac_n "(cached) $ac_c" 1>&6
3245 cat > conftest.
$ac_ext <<EOF
3246 #line 3247 "configure"
3247 #include "confdefs.h"
3248 #if defined(CRAY) && ! defined(CRAY2)
3255 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3256 egrep "webecray" >/dev
/null
2>&1; then
3267 echo "$ac_t""$ac_cv_os_cray" 1>&6
3268 if test $ac_cv_os_cray = yes; then
3269 for ac_func
in _getb67 GETB67 getb67
; do
3270 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3271 echo "configure:3272: checking for $ac_func" >&5
3272 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3273 echo $ac_n "(cached) $ac_c" 1>&6
3275 cat > conftest.
$ac_ext <<EOF
3276 #line 3277 "configure"
3277 #include "confdefs.h"
3278 /* System header to define __stub macros and hopefully few prototypes,
3279 which can conflict with char $ac_func(); below. */
3281 /* Override any gcc2 internal prototype to avoid an error. */
3282 /* We use char because int might match the return type of a gcc2
3283 builtin and then its argument prototype would still apply. */
3288 /* The GNU C library defines this for functions which it implements
3289 to always fail with ENOSYS. Some functions are actually named
3290 something starting with __ and the normal name is an alias. */
3291 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3299 if { (eval echo configure
:3300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3301 eval "ac_cv_func_$ac_func=yes"
3303 echo "configure: failed program was:" >&5
3304 cat conftest.
$ac_ext >&5
3306 eval "ac_cv_func_$ac_func=no"
3311 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3312 echo "$ac_t""yes" 1>&6
3313 cat >> confdefs.h
<<EOF
3314 #define CRAY_STACKSEG_END $ac_func
3319 echo "$ac_t""no" 1>&6
3325 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3326 echo "configure:3327: checking stack direction for C alloca" >&5
3327 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3328 echo $ac_n "(cached) $ac_c" 1>&6
3330 if test "$cross_compiling" = yes; then
3331 ac_cv_c_stack_direction
=0
3333 cat > conftest.
$ac_ext <<EOF
3334 #line 3335 "configure"
3335 #include "confdefs.h"
3336 find_stack_direction ()
3338 static char *addr = 0;
3343 return find_stack_direction ();
3346 return (&dummy > addr) ? 1 : -1;
3350 exit (find_stack_direction() < 0);
3353 if { (eval echo configure
:3354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3355 ac_cv_c_stack_direction
=1
3357 echo "configure: failed program was:" >&5
3358 cat conftest.
$ac_ext >&5
3360 ac_cv_c_stack_direction
=-1
3367 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3368 cat >> confdefs.h
<<EOF
3369 #define STACK_DIRECTION $ac_cv_c_stack_direction
3374 for ac_hdr
in stdlib.h unistd.h sys
/stat.h sys
/types.h
3376 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3377 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3378 echo "configure:3379: checking for $ac_hdr" >&5
3379 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3380 echo $ac_n "(cached) $ac_c" 1>&6
3382 cat > conftest.
$ac_ext <<EOF
3383 #line 3384 "configure"
3384 #include "confdefs.h"
3387 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3388 { (eval echo configure
:3389: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3389 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3390 if test -z "$ac_err"; then
3392 eval "ac_cv_header_$ac_safe=yes"
3395 echo "configure: failed program was:" >&5
3396 cat conftest.
$ac_ext >&5
3398 eval "ac_cv_header_$ac_safe=no"
3402 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3403 echo "$ac_t""yes" 1>&6
3404 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3405 cat >> confdefs.h
<<EOF
3406 #define $ac_tr_hdr 1
3410 echo "$ac_t""no" 1>&6
3414 for ac_func
in getpagesize
3416 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3417 echo "configure:3418: checking for $ac_func" >&5
3418 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3419 echo $ac_n "(cached) $ac_c" 1>&6
3421 cat > conftest.
$ac_ext <<EOF
3422 #line 3423 "configure"
3423 #include "confdefs.h"
3424 /* System header to define __stub macros and hopefully few prototypes,
3425 which can conflict with char $ac_func(); below. */
3427 /* Override any gcc2 internal prototype to avoid an error. */
3428 /* We use char because int might match the return type of a gcc2
3429 builtin and then its argument prototype would still apply. */
3434 /* The GNU C library defines this for functions which it implements
3435 to always fail with ENOSYS. Some functions are actually named
3436 something starting with __ and the normal name is an alias. */
3437 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3445 if { (eval echo configure
:3446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3447 eval "ac_cv_func_$ac_func=yes"
3449 echo "configure: failed program was:" >&5
3450 cat conftest.
$ac_ext >&5
3452 eval "ac_cv_func_$ac_func=no"
3457 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3458 echo "$ac_t""yes" 1>&6
3459 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3460 cat >> confdefs.h
<<EOF
3461 #define $ac_tr_func 1
3465 echo "$ac_t""no" 1>&6
3469 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
3470 echo "configure:3471: checking for working mmap" >&5
3471 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
3472 echo $ac_n "(cached) $ac_c" 1>&6
3474 if test "$cross_compiling" = yes; then
3475 ac_cv_func_mmap_fixed_mapped
=no
3477 cat > conftest.
$ac_ext <<EOF
3478 #line 3479 "configure"
3479 #include "confdefs.h"
3481 /* Thanks to Mike Haertel and Jim Avera for this test.
3482 Here is a matrix of mmap possibilities:
3483 mmap private not fixed
3484 mmap private fixed at somewhere currently unmapped
3485 mmap private fixed at somewhere already mapped
3486 mmap shared not fixed
3487 mmap shared fixed at somewhere currently unmapped
3488 mmap shared fixed at somewhere already mapped
3489 For private mappings, we should verify that changes cannot be read()
3490 back from the file, nor mmap's back from the file at a different
3491 address. (There have been systems where private was not correctly
3492 implemented like the infamous i386 svr4.0, and systems where the
3493 VM page cache was not coherent with the filesystem buffer cache
3494 like early versions of FreeBSD and possibly contemporary NetBSD.)
3495 For shared mappings, we should conversely verify that changes get
3496 propogated back to all the places they're supposed to be.
3498 Grep wants private fixed already mapped.
3499 The main things grep needs to know about mmap are:
3500 * does it exist and is it safe to write into the mmap'd area
3501 * how to use it (BSD variants) */
3502 #include <sys/types.h>
3504 #include <sys/mman.h>
3506 #if HAVE_SYS_TYPES_H
3507 # include <sys/types.h>
3511 # include <stdlib.h>
3515 # include <sys/stat.h>
3519 # include <unistd.h>
3522 /* This mess was copied from the GNU getpagesize.h. */
3523 #ifndef HAVE_GETPAGESIZE
3525 /* Assume that all systems that can run configure have sys/param.h. */
3526 # ifndef HAVE_SYS_PARAM_H
3527 # define HAVE_SYS_PARAM_H 1
3530 # ifdef _SC_PAGESIZE
3531 # define getpagesize() sysconf(_SC_PAGESIZE)
3532 # else /* no _SC_PAGESIZE */
3533 # ifdef HAVE_SYS_PARAM_H
3534 # include <sys/param.h>
3535 # ifdef EXEC_PAGESIZE
3536 # define getpagesize() EXEC_PAGESIZE
3537 # else /* no EXEC_PAGESIZE */
3539 # define getpagesize() NBPG * CLSIZE
3542 # endif /* no CLSIZE */
3543 # else /* no NBPG */
3545 # define getpagesize() NBPC
3546 # else /* no NBPC */
3548 # define getpagesize() PAGESIZE
3549 # endif /* PAGESIZE */
3550 # endif /* no NBPC */
3551 # endif /* no NBPG */
3552 # endif /* no EXEC_PAGESIZE */
3553 # else /* no HAVE_SYS_PARAM_H */
3554 # define getpagesize() 8192 /* punt totally */
3555 # endif /* no HAVE_SYS_PARAM_H */
3556 # endif /* no _SC_PAGESIZE */
3558 #endif /* no HAVE_GETPAGESIZE */
3561 extern "C" { void *malloc(unsigned); }
3569 char *data, *data2, *data3;
3573 pagesize = getpagesize();
3576 * First, make a file with some known garbage in it.
3578 data = malloc(pagesize);
3581 for (i = 0; i < pagesize; ++i)
3582 *(data + i) = rand();
3584 fd = creat("conftestmmap", 0600);
3587 if (write(fd, data, pagesize) != pagesize)
3592 * Next, try to mmap the file at a fixed address which
3593 * already has something else allocated at it. If we can,
3594 * also make sure that we see the same garbage.
3596 fd = open("conftestmmap", O_RDWR);
3599 data2 = malloc(2 * pagesize);
3602 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3603 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3604 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3606 for (i = 0; i < pagesize; ++i)
3607 if (*(data + i) != *(data2 + i))
3611 * Finally, make sure that changes to the mapped area
3612 * do not percolate back to the file as seen by read().
3613 * (This is a bug on some variants of i386 svr4.0.)
3615 for (i = 0; i < pagesize; ++i)
3616 *(data2 + i) = *(data2 + i) + 1;
3617 data3 = malloc(pagesize);
3620 if (read(fd, data3, pagesize) != pagesize)
3622 for (i = 0; i < pagesize; ++i)
3623 if (*(data + i) != *(data3 + i))
3626 unlink("conftestmmap");
3631 if { (eval echo configure
:3632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3633 ac_cv_func_mmap_fixed_mapped
=yes
3635 echo "configure: failed program was:" >&5
3636 cat conftest.
$ac_ext >&5
3638 ac_cv_func_mmap_fixed_mapped
=no
3645 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3646 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3647 cat >> confdefs.h
<<\EOF
3654 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
3655 unistd.h values.h sys
/param.h
3657 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3658 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3659 echo "configure:3660: checking for $ac_hdr" >&5
3660 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3661 echo $ac_n "(cached) $ac_c" 1>&6
3663 cat > conftest.
$ac_ext <<EOF
3664 #line 3665 "configure"
3665 #include "confdefs.h"
3668 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3669 { (eval echo configure
:3670: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3670 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3671 if test -z "$ac_err"; then
3673 eval "ac_cv_header_$ac_safe=yes"
3676 echo "configure: failed program was:" >&5
3677 cat conftest.
$ac_ext >&5
3679 eval "ac_cv_header_$ac_safe=no"
3683 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3684 echo "$ac_t""yes" 1>&6
3685 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3686 cat >> confdefs.h
<<EOF
3687 #define $ac_tr_hdr 1
3691 echo "$ac_t""no" 1>&6
3695 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
3696 __argz_count __argz_stringify __argz_next
3698 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3699 echo "configure:3700: checking for $ac_func" >&5
3700 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3701 echo $ac_n "(cached) $ac_c" 1>&6
3703 cat > conftest.
$ac_ext <<EOF
3704 #line 3705 "configure"
3705 #include "confdefs.h"
3706 /* System header to define __stub macros and hopefully few prototypes,
3707 which can conflict with char $ac_func(); below. */
3709 /* Override any gcc2 internal prototype to avoid an error. */
3710 /* We use char because int might match the return type of a gcc2
3711 builtin and then its argument prototype would still apply. */
3716 /* The GNU C library defines this for functions which it implements
3717 to always fail with ENOSYS. Some functions are actually named
3718 something starting with __ and the normal name is an alias. */
3719 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3727 if { (eval echo configure
:3728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3729 eval "ac_cv_func_$ac_func=yes"
3731 echo "configure: failed program was:" >&5
3732 cat conftest.
$ac_ext >&5
3734 eval "ac_cv_func_$ac_func=no"
3739 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3740 echo "$ac_t""yes" 1>&6
3741 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3742 cat >> confdefs.h
<<EOF
3743 #define $ac_tr_func 1
3747 echo "$ac_t""no" 1>&6
3752 if test "${ac_cv_func_stpcpy+set}" != "set"; then
3753 for ac_func
in stpcpy
3755 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3756 echo "configure:3757: checking for $ac_func" >&5
3757 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3758 echo $ac_n "(cached) $ac_c" 1>&6
3760 cat > conftest.
$ac_ext <<EOF
3761 #line 3762 "configure"
3762 #include "confdefs.h"
3763 /* System header to define __stub macros and hopefully few prototypes,
3764 which can conflict with char $ac_func(); below. */
3766 /* Override any gcc2 internal prototype to avoid an error. */
3767 /* We use char because int might match the return type of a gcc2
3768 builtin and then its argument prototype would still apply. */
3773 /* The GNU C library defines this for functions which it implements
3774 to always fail with ENOSYS. Some functions are actually named
3775 something starting with __ and the normal name is an alias. */
3776 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3784 if { (eval echo configure
:3785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3786 eval "ac_cv_func_$ac_func=yes"
3788 echo "configure: failed program was:" >&5
3789 cat conftest.
$ac_ext >&5
3791 eval "ac_cv_func_$ac_func=no"
3796 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3797 echo "$ac_t""yes" 1>&6
3798 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3799 cat >> confdefs.h
<<EOF
3800 #define $ac_tr_func 1
3804 echo "$ac_t""no" 1>&6
3809 if test "${ac_cv_func_stpcpy}" = "yes"; then
3810 cat >> confdefs.h
<<\EOF
3811 #define HAVE_STPCPY 1
3816 if test $ac_cv_header_locale_h = yes; then
3817 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3818 echo "configure:3819: checking for LC_MESSAGES" >&5
3819 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3820 echo $ac_n "(cached) $ac_c" 1>&6
3822 cat > conftest.
$ac_ext <<EOF
3823 #line 3824 "configure"
3824 #include "confdefs.h"
3830 if { (eval echo configure
:3831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3832 am_cv_val_LC_MESSAGES
=yes
3834 echo "configure: failed program was:" >&5
3835 cat conftest.
$ac_ext >&5
3837 am_cv_val_LC_MESSAGES
=no
3842 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3843 if test $am_cv_val_LC_MESSAGES = yes; then
3844 cat >> confdefs.h
<<\EOF
3845 #define HAVE_LC_MESSAGES 1
3850 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3851 echo "configure:3852: checking whether NLS is requested" >&5
3852 # Check whether --enable-nls or --disable-nls was given.
3853 if test "${enable_nls+set}" = set; then
3854 enableval
="$enable_nls"
3860 echo "$ac_t""$USE_NLS" 1>&6
3863 USE_INCLUDED_LIBINTL
=no
3865 if test "$USE_NLS" = "yes"; then
3866 cat >> confdefs.h
<<\EOF
3867 #define ENABLE_NLS 1
3870 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3871 echo "configure:3872: checking whether included gettext is requested" >&5
3872 # Check whether --with-included-gettext or --without-included-gettext was given.
3873 if test "${with_included_gettext+set}" = set; then
3874 withval
="$with_included_gettext"
3875 nls_cv_force_use_gnu_gettext
=$withval
3877 nls_cv_force_use_gnu_gettext
=no
3880 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3882 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
3883 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3885 nls_cv_header_libgt
=
3888 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3889 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3890 echo "configure:3891: checking for libintl.h" >&5
3891 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3892 echo $ac_n "(cached) $ac_c" 1>&6
3894 cat > conftest.
$ac_ext <<EOF
3895 #line 3896 "configure"
3896 #include "confdefs.h"
3897 #include <libintl.h>
3899 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3900 { (eval echo configure
:3901: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3901 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3902 if test -z "$ac_err"; then
3904 eval "ac_cv_header_$ac_safe=yes"
3907 echo "configure: failed program was:" >&5
3908 cat conftest.
$ac_ext >&5
3910 eval "ac_cv_header_$ac_safe=no"
3914 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3915 echo "$ac_t""yes" 1>&6
3916 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3917 echo "configure:3918: checking for gettext in libc" >&5
3918 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3919 echo $ac_n "(cached) $ac_c" 1>&6
3921 cat > conftest.
$ac_ext <<EOF
3922 #line 3923 "configure"
3923 #include "confdefs.h"
3924 #include <libintl.h>
3926 return (int) gettext ("")
3929 if { (eval echo configure
:3930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3931 gt_cv_func_gettext_libc
=yes
3933 echo "configure: failed program was:" >&5
3934 cat conftest.
$ac_ext >&5
3936 gt_cv_func_gettext_libc
=no
3941 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3943 if test "$gt_cv_func_gettext_libc" != "yes"; then
3944 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3945 echo "configure:3946: checking for bindtextdomain in -lintl" >&5
3946 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3947 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3948 echo $ac_n "(cached) $ac_c" 1>&6
3950 ac_save_LIBS
="$LIBS"
3952 cat > conftest.
$ac_ext <<EOF
3953 #line 3954 "configure"
3954 #include "confdefs.h"
3955 /* Override any gcc2 internal prototype to avoid an error. */
3956 /* We use char because int might match the return type of a gcc2
3957 builtin and then its argument prototype would still apply. */
3958 char bindtextdomain();
3964 if { (eval echo configure
:3965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3966 eval "ac_cv_lib_$ac_lib_var=yes"
3968 echo "configure: failed program was:" >&5
3969 cat conftest.
$ac_ext >&5
3971 eval "ac_cv_lib_$ac_lib_var=no"
3974 LIBS
="$ac_save_LIBS"
3977 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3978 echo "$ac_t""yes" 1>&6
3979 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3980 echo "configure:3981: checking for gettext in libintl" >&5
3981 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3982 echo $ac_n "(cached) $ac_c" 1>&6
3984 cat > conftest.
$ac_ext <<EOF
3985 #line 3986 "configure"
3986 #include "confdefs.h"
3989 return (int) gettext ("")
3992 if { (eval echo configure
:3993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3994 gt_cv_func_gettext_libintl
=yes
3996 echo "configure: failed program was:" >&5
3997 cat conftest.
$ac_ext >&5
3999 gt_cv_func_gettext_libintl
=no
4004 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
4006 echo "$ac_t""no" 1>&6
4011 if test "$gt_cv_func_gettext_libc" = "yes" \
4012 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
4013 cat >> confdefs.h
<<\EOF
4014 #define HAVE_GETTEXT 1
4017 # Extract the first word of "msgfmt", so it can be a program name with args.
4018 set dummy msgfmt
; ac_word
=$2
4019 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4020 echo "configure:4021: checking for $ac_word" >&5
4021 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
4022 echo $ac_n "(cached) $ac_c" 1>&6
4026 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
4029 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4030 for ac_dir
in $PATH; do
4031 test -z "$ac_dir" && ac_dir
=.
4032 if test -f $ac_dir/$ac_word; then
4033 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4034 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
4040 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
4044 MSGFMT
="$ac_cv_path_MSGFMT"
4045 if test -n "$MSGFMT"; then
4046 echo "$ac_t""$MSGFMT" 1>&6
4048 echo "$ac_t""no" 1>&6
4050 if test "$MSGFMT" != "no"; then
4051 for ac_func
in dcgettext
4053 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4054 echo "configure:4055: checking for $ac_func" >&5
4055 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4056 echo $ac_n "(cached) $ac_c" 1>&6
4058 cat > conftest.
$ac_ext <<EOF
4059 #line 4060 "configure"
4060 #include "confdefs.h"
4061 /* System header to define __stub macros and hopefully few prototypes,
4062 which can conflict with char $ac_func(); below. */
4064 /* Override any gcc2 internal prototype to avoid an error. */
4065 /* We use char because int might match the return type of a gcc2
4066 builtin and then its argument prototype would still apply. */
4071 /* The GNU C library defines this for functions which it implements
4072 to always fail with ENOSYS. Some functions are actually named
4073 something starting with __ and the normal name is an alias. */
4074 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4082 if { (eval echo configure
:4083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4084 eval "ac_cv_func_$ac_func=yes"
4086 echo "configure: failed program was:" >&5
4087 cat conftest.
$ac_ext >&5
4089 eval "ac_cv_func_$ac_func=no"
4094 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4095 echo "$ac_t""yes" 1>&6
4096 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4097 cat >> confdefs.h
<<EOF
4098 #define $ac_tr_func 1
4102 echo "$ac_t""no" 1>&6
4106 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4107 set dummy gmsgfmt
; ac_word
=$2
4108 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4109 echo "configure:4110: checking for $ac_word" >&5
4110 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4111 echo $ac_n "(cached) $ac_c" 1>&6
4115 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
4118 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
4121 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4123 for ac_dir
in $ac_dummy; do
4124 test -z "$ac_dir" && ac_dir
=.
4125 if test -f $ac_dir/$ac_word; then
4126 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
4131 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
4135 GMSGFMT
="$ac_cv_path_GMSGFMT"
4136 if test -n "$GMSGFMT"; then
4137 echo "$ac_t""$GMSGFMT" 1>&6
4139 echo "$ac_t""no" 1>&6
4142 # Extract the first word of "xgettext", so it can be a program name with args.
4143 set dummy xgettext
; ac_word
=$2
4144 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4145 echo "configure:4146: checking for $ac_word" >&5
4146 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4147 echo $ac_n "(cached) $ac_c" 1>&6
4151 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
4154 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4155 for ac_dir
in $PATH; do
4156 test -z "$ac_dir" && ac_dir
=.
4157 if test -f $ac_dir/$ac_word; then
4158 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4159 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
4165 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
4169 XGETTEXT
="$ac_cv_path_XGETTEXT"
4170 if test -n "$XGETTEXT"; then
4171 echo "$ac_t""$XGETTEXT" 1>&6
4173 echo "$ac_t""no" 1>&6
4176 cat > conftest.
$ac_ext <<EOF
4177 #line 4178 "configure"
4178 #include "confdefs.h"
4181 extern int _nl_msg_cat_cntr;
4182 return _nl_msg_cat_cntr
4185 if { (eval echo configure
:4186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4190 echo "configure: failed program was:" >&5
4191 cat conftest.
$ac_ext >&5
4202 echo "$ac_t""no" 1>&6
4207 if test "$CATOBJEXT" = "NONE"; then
4208 nls_cv_use_gnu_gettext
=yes
4212 if test "$nls_cv_use_gnu_gettext" = "yes"; then
4213 INTLOBJS
="\$(GETTOBJS)"
4214 # Extract the first word of "msgfmt", so it can be a program name with args.
4215 set dummy msgfmt
; ac_word
=$2
4216 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4217 echo "configure:4218: checking for $ac_word" >&5
4218 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
4219 echo $ac_n "(cached) $ac_c" 1>&6
4223 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
4226 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4227 for ac_dir
in $PATH; do
4228 test -z "$ac_dir" && ac_dir
=.
4229 if test -f $ac_dir/$ac_word; then
4230 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4231 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
4237 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
4241 MSGFMT
="$ac_cv_path_MSGFMT"
4242 if test -n "$MSGFMT"; then
4243 echo "$ac_t""$MSGFMT" 1>&6
4245 echo "$ac_t""no" 1>&6
4248 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4249 set dummy gmsgfmt
; ac_word
=$2
4250 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4251 echo "configure:4252: checking for $ac_word" >&5
4252 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4253 echo $ac_n "(cached) $ac_c" 1>&6
4257 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
4260 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
4263 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4265 for ac_dir
in $ac_dummy; do
4266 test -z "$ac_dir" && ac_dir
=.
4267 if test -f $ac_dir/$ac_word; then
4268 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
4273 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
4277 GMSGFMT
="$ac_cv_path_GMSGFMT"
4278 if test -n "$GMSGFMT"; then
4279 echo "$ac_t""$GMSGFMT" 1>&6
4281 echo "$ac_t""no" 1>&6
4284 # Extract the first word of "xgettext", so it can be a program name with args.
4285 set dummy xgettext
; ac_word
=$2
4286 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4287 echo "configure:4288: checking for $ac_word" >&5
4288 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4289 echo $ac_n "(cached) $ac_c" 1>&6
4293 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
4296 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4297 for ac_dir
in $PATH; do
4298 test -z "$ac_dir" && ac_dir
=.
4299 if test -f $ac_dir/$ac_word; then
4300 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4301 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
4307 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
4311 XGETTEXT
="$ac_cv_path_XGETTEXT"
4312 if test -n "$XGETTEXT"; then
4313 echo "$ac_t""$XGETTEXT" 1>&6
4315 echo "$ac_t""no" 1>&6
4319 USE_INCLUDED_LIBINTL
=yes
4323 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
4325 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
4326 nls_cv_header_intl
=libintl.h
4327 nls_cv_header_libgt
=libgettext.h
4330 if test "$XGETTEXT" != ":"; then
4331 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
4334 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
4339 # We need to process the po/ directory.
4343 nls_cv_header_intl
=libintl.h
4344 nls_cv_header_libgt
=libgettext.h
4347 # If this is used in GNU gettext we have to set USE_NLS to `yes'
4348 # because some of the sources are only built for this goal.
4349 if test "$PACKAGE" = gettext; then
4351 USE_INCLUDED_LIBINTL
=yes
4354 for lang
in $ALL_LINGUAS; do
4355 GMOFILES
="$GMOFILES $lang.gmo"
4356 POFILES
="$POFILES $lang.po"
4372 if test "x$CATOBJEXT" != "x"; then
4373 if test "x$ALL_LINGUAS" = "x"; then
4376 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
4377 echo "configure:4378: checking for catalogs to be installed" >&5
4379 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
4380 case "$ALL_LINGUAS" in
4381 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
4384 LINGUAS
=$NEW_LINGUAS
4385 echo "$ac_t""$LINGUAS" 1>&6
4388 if test -n "$LINGUAS"; then
4389 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
4393 if test $ac_cv_header_locale_h = yes; then
4394 INCLUDE_LOCALE_H
="#include <locale.h>"
4397 /* The system does not provide the header <locale.h>. Take care yourself. */"
4401 if test -f $srcdir/po2tbl.
sed.
in; then
4402 if test "$CATOBJEXT" = ".cat"; then
4403 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
4404 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
4405 echo "configure:4406: checking for linux/version.h" >&5
4406 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4407 echo $ac_n "(cached) $ac_c" 1>&6
4409 cat > conftest.
$ac_ext <<EOF
4410 #line 4411 "configure"
4411 #include "confdefs.h"
4412 #include <linux/version.h>
4414 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4415 { (eval echo configure
:4416: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4416 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4417 if test -z "$ac_err"; then
4419 eval "ac_cv_header_$ac_safe=yes"
4422 echo "configure: failed program was:" >&5
4423 cat conftest.
$ac_ext >&5
4425 eval "ac_cv_header_$ac_safe=no"
4429 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4430 echo "$ac_t""yes" 1>&6
4433 echo "$ac_t""no" 1>&6
4438 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
4440 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
4441 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
4444 if test "$PACKAGE" = "gettext"; then
4454 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
4460 if test -f $srcdir/po
/POTFILES.
in; then
4461 test -d po || mkdir po
4462 if test "x$srcdir" != "x."; then
4463 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
4464 posrcprefix
="$srcdir/"
4466 posrcprefix
="../$srcdir/"
4472 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
4473 < $srcdir/po
/POTFILES.
in > po
/POTFILES
4477 # Permit host specific settings.
4478 .
${srcdir}/configure.
host
4481 # Find a good install program. We prefer a C program (faster),
4482 # so one script is as good as another. But avoid the broken or
4483 # incompatible versions:
4484 # SysV /etc/install, /usr/sbin/install
4485 # SunOS /usr/etc/install
4486 # IRIX /sbin/install
4488 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4489 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4490 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4491 # ./install, which can be erroneously created by make from ./install.sh.
4492 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
4493 echo "configure:4494: checking for a BSD compatible install" >&5
4494 if test -z "$INSTALL"; then
4495 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
4496 echo $ac_n "(cached) $ac_c" 1>&6
4498 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
4499 for ac_dir
in $PATH; do
4500 # Account for people who put trailing slashes in PATH elements.
4502 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
4504 # OSF1 and SCO ODT 3.0 have their own names for install.
4505 # Don't use installbsd from OSF since it installs stuff as root
4507 for ac_prog
in ginstall scoinst
install; do
4508 if test -f $ac_dir/$ac_prog; then
4509 if test $ac_prog = install &&
4510 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
4511 # AIX install. It has an incompatible calling convention.
4514 ac_cv_path_install
="$ac_dir/$ac_prog -c"
4525 if test "${ac_cv_path_install+set}" = set; then
4526 INSTALL
="$ac_cv_path_install"
4528 # As a last resort, use the slow shell script. We don't cache a
4529 # path for INSTALL within a source directory, because that will
4530 # break other packages using the cache if that directory is
4531 # removed, or if the path is relative.
4532 INSTALL
="$ac_install_sh"
4535 echo "$ac_t""$INSTALL" 1>&6
4537 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4538 # It thinks the first close brace ends the variable substitution.
4539 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4541 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
4543 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4546 BFD_HOST_64BIT_LONG
=0
4547 BFD_HOST_LONG_LONG
=0
4548 BFD_HOST_64_BIT_DEFINED
=0
4552 echo $ac_n "checking for long long""... $ac_c" 1>&6
4553 echo "configure:4554: checking for long long" >&5
4554 if eval "test \"`echo '$''{'bfd_cv_has_long_long'+set}'`\" = set"; then
4555 echo $ac_n "(cached) $ac_c" 1>&6
4557 cat > conftest.
$ac_ext <<EOF
4558 #line 4559 "configure"
4559 #include "confdefs.h"
4562 unsigned long long ll = 18446744073709551615ULL;
4565 if { (eval echo configure
:4566: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4567 bfd_cv_has_long_long
=yes
4569 echo "configure: failed program was:" >&5
4570 cat conftest.
$ac_ext >&5
4572 bfd_cv_has_long_long
=no
4577 echo "$ac_t""$bfd_cv_has_long_long" 1>&6
4578 if test $bfd_cv_has_long_long = yes; then
4579 BFD_HOST_LONG_LONG
=1
4580 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4581 echo "configure:4582: checking size of long long" >&5
4582 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
4583 echo $ac_n "(cached) $ac_c" 1>&6
4585 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
4586 cat > conftest.
$ac_ext <<EOF
4587 #line 4588 "configure"
4588 #include "confdefs.h"
4589 #include "confdefs.h"
4590 #include <sys/types.h>
4594 switch (0) case 0: case (sizeof (long long) == $ac_size):;
4597 if { (eval echo configure
:4598: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4599 ac_cv_sizeof_long_long
=$ac_size
4601 echo "configure: failed program was:" >&5
4602 cat conftest.
$ac_ext >&5
4605 if test x
$ac_cv_sizeof_long_long != x
; then break; fi
4610 if test x
$ac_cv_sizeof_long_long = x
; then
4611 { echo "configure: error: cannot determine a size for long long" 1>&2; exit 1; }
4613 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4614 cat >> confdefs.h
<<EOF
4615 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4621 echo $ac_n "checking size of long""... $ac_c" 1>&6
4622 echo "configure:4623: checking size of long" >&5
4623 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
4624 echo $ac_n "(cached) $ac_c" 1>&6
4626 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
4627 cat > conftest.
$ac_ext <<EOF
4628 #line 4629 "configure"
4629 #include "confdefs.h"
4630 #include "confdefs.h"
4631 #include <sys/types.h>
4635 switch (0) case 0: case (sizeof (long) == $ac_size):;
4638 if { (eval echo configure
:4639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4640 ac_cv_sizeof_long
=$ac_size
4642 echo "configure: failed program was:" >&5
4643 cat conftest.
$ac_ext >&5
4646 if test x
$ac_cv_sizeof_long != x
; then break; fi
4651 if test x
$ac_cv_sizeof_long = x
; then
4652 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
4654 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4655 cat >> confdefs.h
<<EOF
4656 #define SIZEOF_LONG $ac_cv_sizeof_long
4660 if test "x${ac_cv_sizeof_long}" = "x8"; then
4662 BFD_HOST_64BIT_LONG
=1
4663 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE
="long"
4664 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE
="unsigned long"
4665 elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
4666 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE
="long long"
4667 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE
="unsigned long long"
4670 if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
4671 BFD_HOST_64_BIT_DEFINED
=1
4672 BFD_HOST_64_BIT
="${HOST_64BIT_TYPE}"
4673 BFD_HOST_U_64_BIT
="${HOST_U_64BIT_TYPE}"
4682 # Put a plausible default for CC_FOR_BUILD in Makefile.
4683 if test -z "$CC_FOR_BUILD"; then
4684 if test "x$cross_compiling" = "xno"; then
4685 CC_FOR_BUILD
='$(CC)'
4691 # Also set EXEEXT_FOR_BUILD.
4692 if test "x$cross_compiling" = "xno"; then
4693 EXEEXT_FOR_BUILD
='$(EXEEXT)'
4695 echo $ac_n "checking for build system executable suffix""... $ac_c" 1>&6
4696 echo "configure:4697: checking for build system executable suffix" >&5
4697 if eval "test \"`echo '$''{'bfd_cv_build_exeext'+set}'`\" = set"; then
4698 echo $ac_n "(cached) $ac_c" 1>&6
4701 echo 'int main () { return 0; }' > conftest.c
4702 bfd_cv_build_exeext
=
4703 ${CC_FOR_BUILD} -o conftest conftest.c
1>&5 2>&5
4704 for file in conftest.
*; do
4706 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
4707 *) bfd_cv_build_exeext
=`echo $file | sed -e s/conftest//` ;;
4711 test x
"${bfd_cv_build_exeext}" = x
&& bfd_cv_build_exeext
=no
4714 echo "$ac_t""$bfd_cv_build_exeext" 1>&6
4716 test x
"${bfd_cv_build_exeext}" != xno
&& EXEEXT_FOR_BUILD
=${bfd_cv_build_exeext}
4720 for ac_hdr
in stddef.h string.h
strings.h stdlib.h
time.h unistd.h
4722 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4723 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4724 echo "configure:4725: checking for $ac_hdr" >&5
4725 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4726 echo $ac_n "(cached) $ac_c" 1>&6
4728 cat > conftest.
$ac_ext <<EOF
4729 #line 4730 "configure"
4730 #include "confdefs.h"
4733 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4734 { (eval echo configure
:4735: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4735 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4736 if test -z "$ac_err"; then
4738 eval "ac_cv_header_$ac_safe=yes"
4741 echo "configure: failed program was:" >&5
4742 cat conftest.
$ac_ext >&5
4744 eval "ac_cv_header_$ac_safe=no"
4748 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4749 echo "$ac_t""yes" 1>&6
4750 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4751 cat >> confdefs.h
<<EOF
4752 #define $ac_tr_hdr 1
4756 echo "$ac_t""no" 1>&6
4760 for ac_hdr
in fcntl.h sys
/file.h sys
/time.h
4762 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4763 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4764 echo "configure:4765: checking for $ac_hdr" >&5
4765 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4766 echo $ac_n "(cached) $ac_c" 1>&6
4768 cat > conftest.
$ac_ext <<EOF
4769 #line 4770 "configure"
4770 #include "confdefs.h"
4773 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4774 { (eval echo configure
:4775: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4775 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4776 if test -z "$ac_err"; then
4778 eval "ac_cv_header_$ac_safe=yes"
4781 echo "configure: failed program was:" >&5
4782 cat conftest.
$ac_ext >&5
4784 eval "ac_cv_header_$ac_safe=no"
4788 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4789 echo "$ac_t""yes" 1>&6
4790 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4791 cat >> confdefs.h
<<EOF
4792 #define $ac_tr_hdr 1
4796 echo "$ac_t""no" 1>&6
4800 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4801 echo "configure:4802: checking whether time.h and sys/time.h may both be included" >&5
4802 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
4803 echo $ac_n "(cached) $ac_c" 1>&6
4805 cat > conftest.
$ac_ext <<EOF
4806 #line 4807 "configure"
4807 #include "confdefs.h"
4808 #include <sys/types.h>
4809 #include <sys/time.h>
4815 if { (eval echo configure
:4816: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4817 ac_cv_header_time
=yes
4819 echo "configure: failed program was:" >&5
4820 cat conftest.
$ac_ext >&5
4822 ac_cv_header_time
=no
4827 echo "$ac_t""$ac_cv_header_time" 1>&6
4828 if test $ac_cv_header_time = yes; then
4829 cat >> confdefs.h
<<\EOF
4830 #define TIME_WITH_SYS_TIME 1
4836 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
4838 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4839 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4840 echo "configure:4841: checking for $ac_hdr that defines DIR" >&5
4841 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
4842 echo $ac_n "(cached) $ac_c" 1>&6
4844 cat > conftest.
$ac_ext <<EOF
4845 #line 4846 "configure"
4846 #include "confdefs.h"
4847 #include <sys/types.h>
4853 if { (eval echo configure
:4854: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4855 eval "ac_cv_header_dirent_$ac_safe=yes"
4857 echo "configure: failed program was:" >&5
4858 cat conftest.
$ac_ext >&5
4860 eval "ac_cv_header_dirent_$ac_safe=no"
4864 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4865 echo "$ac_t""yes" 1>&6
4866 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4867 cat >> confdefs.h
<<EOF
4868 #define $ac_tr_hdr 1
4870 ac_header_dirent
=$ac_hdr; break
4872 echo "$ac_t""no" 1>&6
4875 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4876 if test $ac_header_dirent = dirent.h
; then
4877 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4878 echo "configure:4879: checking for opendir in -ldir" >&5
4879 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
4880 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4881 echo $ac_n "(cached) $ac_c" 1>&6
4883 ac_save_LIBS
="$LIBS"
4885 cat > conftest.
$ac_ext <<EOF
4886 #line 4887 "configure"
4887 #include "confdefs.h"
4888 /* Override any gcc2 internal prototype to avoid an error. */
4889 /* We use char because int might match the return type of a gcc2
4890 builtin and then its argument prototype would still apply. */
4897 if { (eval echo configure
:4898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4899 eval "ac_cv_lib_$ac_lib_var=yes"
4901 echo "configure: failed program was:" >&5
4902 cat conftest.
$ac_ext >&5
4904 eval "ac_cv_lib_$ac_lib_var=no"
4907 LIBS
="$ac_save_LIBS"
4910 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4911 echo "$ac_t""yes" 1>&6
4914 echo "$ac_t""no" 1>&6
4918 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4919 echo "configure:4920: checking for opendir in -lx" >&5
4920 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
4921 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4922 echo $ac_n "(cached) $ac_c" 1>&6
4924 ac_save_LIBS
="$LIBS"
4926 cat > conftest.
$ac_ext <<EOF
4927 #line 4928 "configure"
4928 #include "confdefs.h"
4929 /* Override any gcc2 internal prototype to avoid an error. */
4930 /* We use char because int might match the return type of a gcc2
4931 builtin and then its argument prototype would still apply. */
4938 if { (eval echo configure
:4939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4940 eval "ac_cv_lib_$ac_lib_var=yes"
4942 echo "configure: failed program was:" >&5
4943 cat conftest.
$ac_ext >&5
4945 eval "ac_cv_lib_$ac_lib_var=no"
4948 LIBS
="$ac_save_LIBS"
4951 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4952 echo "$ac_t""yes" 1>&6
4955 echo "$ac_t""no" 1>&6
4960 for ac_func
in fcntl getpagesize setitimer sysconf fdopen getuid getgid
4962 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4963 echo "configure:4964: checking for $ac_func" >&5
4964 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4965 echo $ac_n "(cached) $ac_c" 1>&6
4967 cat > conftest.
$ac_ext <<EOF
4968 #line 4969 "configure"
4969 #include "confdefs.h"
4970 /* System header to define __stub macros and hopefully few prototypes,
4971 which can conflict with char $ac_func(); below. */
4973 /* Override any gcc2 internal prototype to avoid an error. */
4974 /* We use char because int might match the return type of a gcc2
4975 builtin and then its argument prototype would still apply. */
4980 /* The GNU C library defines this for functions which it implements
4981 to always fail with ENOSYS. Some functions are actually named
4982 something starting with __ and the normal name is an alias. */
4983 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4991 if { (eval echo configure
:4992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4993 eval "ac_cv_func_$ac_func=yes"
4995 echo "configure: failed program was:" >&5
4996 cat conftest.
$ac_ext >&5
4998 eval "ac_cv_func_$ac_func=no"
5003 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5004 echo "$ac_t""yes" 1>&6
5005 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5006 cat >> confdefs.h
<<EOF
5007 #define $ac_tr_func 1
5011 echo "$ac_t""no" 1>&6
5015 for ac_func
in strtoull
5017 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5018 echo "configure:5019: checking for $ac_func" >&5
5019 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5020 echo $ac_n "(cached) $ac_c" 1>&6
5022 cat > conftest.
$ac_ext <<EOF
5023 #line 5024 "configure"
5024 #include "confdefs.h"
5025 /* System header to define __stub macros and hopefully few prototypes,
5026 which can conflict with char $ac_func(); below. */
5028 /* Override any gcc2 internal prototype to avoid an error. */
5029 /* We use char because int might match the return type of a gcc2
5030 builtin and then its argument prototype would still apply. */
5035 /* The GNU C library defines this for functions which it implements
5036 to always fail with ENOSYS. Some functions are actually named
5037 something starting with __ and the normal name is an alias. */
5038 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5046 if { (eval echo configure
:5047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5048 eval "ac_cv_func_$ac_func=yes"
5050 echo "configure: failed program was:" >&5
5051 cat conftest.
$ac_ext >&5
5053 eval "ac_cv_func_$ac_func=no"
5058 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5059 echo "$ac_t""yes" 1>&6
5060 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5061 cat >> confdefs.h
<<EOF
5062 #define $ac_tr_func 1
5066 echo "$ac_t""no" 1>&6
5073 *-*-msdos* |
*-*-go32* |
*-*-mingw32* |
*-*-cygwin* |
*-*-windows*)
5074 cat >> confdefs.h
<<\EOF
5075 #define USE_BINARY_FOPEN 1
5080 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
5081 echo "configure:5082: checking whether strstr must be declared" >&5
5082 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
5083 echo $ac_n "(cached) $ac_c" 1>&6
5085 cat > conftest.
$ac_ext <<EOF
5086 #line 5087 "configure"
5087 #include "confdefs.h"
5090 #ifdef HAVE_STRING_H
5093 #ifdef HAVE_STRINGS_H
5094 #include <strings.h>
5097 #ifdef HAVE_STDLIB_H
5100 #ifdef HAVE_UNISTD_H
5104 char *(*pfn) = (char *(*)) strstr
5107 if { (eval echo configure
:5108: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5109 bfd_cv_decl_needed_strstr
=no
5111 echo "configure: failed program was:" >&5
5112 cat conftest.
$ac_ext >&5
5114 bfd_cv_decl_needed_strstr
=yes
5119 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
5120 if test $bfd_cv_decl_needed_strstr = yes; then
5121 cat >> confdefs.h
<<\EOF
5122 #define NEED_DECLARATION_STRSTR 1
5127 echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
5128 echo "configure:5129: checking whether malloc must be declared" >&5
5129 if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
5130 echo $ac_n "(cached) $ac_c" 1>&6
5132 cat > conftest.
$ac_ext <<EOF
5133 #line 5134 "configure"
5134 #include "confdefs.h"
5137 #ifdef HAVE_STRING_H
5140 #ifdef HAVE_STRINGS_H
5141 #include <strings.h>
5144 #ifdef HAVE_STDLIB_H
5147 #ifdef HAVE_UNISTD_H
5151 char *(*pfn) = (char *(*)) malloc
5154 if { (eval echo configure
:5155: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5156 bfd_cv_decl_needed_malloc
=no
5158 echo "configure: failed program was:" >&5
5159 cat conftest.
$ac_ext >&5
5161 bfd_cv_decl_needed_malloc
=yes
5166 echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
5167 if test $bfd_cv_decl_needed_malloc = yes; then
5168 cat >> confdefs.h
<<\EOF
5169 #define NEED_DECLARATION_MALLOC 1
5174 echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
5175 echo "configure:5176: checking whether realloc must be declared" >&5
5176 if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
5177 echo $ac_n "(cached) $ac_c" 1>&6
5179 cat > conftest.
$ac_ext <<EOF
5180 #line 5181 "configure"
5181 #include "confdefs.h"
5184 #ifdef HAVE_STRING_H
5187 #ifdef HAVE_STRINGS_H
5188 #include <strings.h>
5191 #ifdef HAVE_STDLIB_H
5194 #ifdef HAVE_UNISTD_H
5198 char *(*pfn) = (char *(*)) realloc
5201 if { (eval echo configure
:5202: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5203 bfd_cv_decl_needed_realloc
=no
5205 echo "configure: failed program was:" >&5
5206 cat conftest.
$ac_ext >&5
5208 bfd_cv_decl_needed_realloc
=yes
5213 echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
5214 if test $bfd_cv_decl_needed_realloc = yes; then
5215 cat >> confdefs.h
<<\EOF
5216 #define NEED_DECLARATION_REALLOC 1
5221 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
5222 echo "configure:5223: checking whether free must be declared" >&5
5223 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
5224 echo $ac_n "(cached) $ac_c" 1>&6
5226 cat > conftest.
$ac_ext <<EOF
5227 #line 5228 "configure"
5228 #include "confdefs.h"
5231 #ifdef HAVE_STRING_H
5234 #ifdef HAVE_STRINGS_H
5235 #include <strings.h>
5238 #ifdef HAVE_STDLIB_H
5241 #ifdef HAVE_UNISTD_H
5245 char *(*pfn) = (char *(*)) free
5248 if { (eval echo configure
:5249: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5250 bfd_cv_decl_needed_free
=no
5252 echo "configure: failed program was:" >&5
5253 cat conftest.
$ac_ext >&5
5255 bfd_cv_decl_needed_free
=yes
5260 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
5261 if test $bfd_cv_decl_needed_free = yes; then
5262 cat >> confdefs.h
<<\EOF
5263 #define NEED_DECLARATION_FREE 1
5268 echo $ac_n "checking whether getenv must be declared""... $ac_c" 1>&6
5269 echo "configure:5270: checking whether getenv must be declared" >&5
5270 if eval "test \"`echo '$''{'bfd_cv_decl_needed_getenv'+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"
5278 #ifdef HAVE_STRING_H
5281 #ifdef HAVE_STRINGS_H
5282 #include <strings.h>
5285 #ifdef HAVE_STDLIB_H
5288 #ifdef HAVE_UNISTD_H
5292 char *(*pfn) = (char *(*)) getenv
5295 if { (eval echo configure
:5296: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5297 bfd_cv_decl_needed_getenv
=no
5299 echo "configure: failed program was:" >&5
5300 cat conftest.
$ac_ext >&5
5302 bfd_cv_decl_needed_getenv
=yes
5307 echo "$ac_t""$bfd_cv_decl_needed_getenv" 1>&6
5308 if test $bfd_cv_decl_needed_getenv = yes; then
5309 cat >> confdefs.h
<<\EOF
5310 #define NEED_DECLARATION_GETENV 1
5316 # If we are configured native, pick a core file support file.
5320 if test "${target}" = "${host}"; then
5322 alpha
*-*-freebsd* | alpha
*-*-kfreebsd*-gnu)
5325 alpha
*-*-linux-gnu*)
5326 COREFILE
=trad-core.lo
5327 TRAD_HEADER
='"hosts/alphalinux.h"'
5329 alpha
*-*-netbsd* | alpha
*-*-openbsd*)
5330 COREFILE
=netbsd-core.lo
5332 alpha
*-*-*) COREFILE
=osf-core.lo
;;
5333 arm-
*-freebsd* | arm-
*-kfreebsd*-gnu)
5335 arm-
*-netbsd*) COREFILE
=netbsd-core.lo
;;
5336 arm-
*-riscix) COREFILE
=trad-core.lo
;;
5337 hppa
*-*-hpux*) COREFILE
=hpux-core.lo
;;
5338 hppa
*-*-hiux*) COREFILE
=hpux-core.lo
;;
5339 hppa
*-*-mpeix*) COREFILE
=hpux-core.lo
;;
5340 hppa
*-*-bsd*) COREFILE
="hpux-core.lo hppabsd-core.lo"
5341 COREFLAG
="-DHPUX_CORE -DHPPABSD_CORE" ;;
5343 COREFILE
=trad-core.lo
5344 TRAD_HEADER
='"hosts/i370linux.h"'
5347 i
[3-7]86-sequent-bsd*)
5348 COREFILE
=trad-core.lo
5349 TRAD_HEADER
='"hosts/symmetry.h"'
5351 i
[3-7]86-sequent-sysv4*) ;;
5352 i
[3-7]86-sequent-sysv*)
5353 COREFILE
=trad-core.lo
5354 TRAD_HEADER
='"hosts/symmetry.h"'
5359 i
[3-7]86-*-bsd* | i
[3-7]86-*-freebsd[123] | i
[3-7]86-*-freebsd[123]\.
* | i
[3-7]86-*-freebsd4\.
[01234]* | i
[3-7]86-*-freebsd*aout
*)
5360 COREFILE
=trad-core.lo
5361 TRAD_HEADER
='"hosts/i386bsd.h"'
5363 i
[3-7]86-*-freebsd* | i
[3-7]86-*-kfreebsd*-gnu)
5365 TRAD_HEADER
='"hosts/i386bsd.h"'
5367 i
[3-7]86-*-netbsd* | i
[3-7]86-*-knetbsd*-gnu | i
[3-7]86-*-openbsd*)
5368 COREFILE
=netbsd-core.lo
5370 i
[3-7]86-esix-sysv3*)
5371 COREFILE
=trad-core.lo
5372 TRAD_HEADER
='"hosts/esix.h"'
5374 i
[3-7]86-*-sco3.2v5
*)
5375 COREFILE
=sco5-core.lo
5377 i
[3-7]86-*-sco* | i
[3-7]86-*-isc*)
5378 COREFILE
=trad-core.lo
5379 TRAD_HEADER
='"hosts/i386sco.h"'
5382 COREFILE
=trad-core.lo
5383 TRAD_HEADER
='"hosts/i386mach3.h"'
5385 i
[3-7]86-*-linux-gnu*)
5386 COREFILE
=trad-core.lo
5387 TRAD_HEADER
='"hosts/i386linux.h"'
5389 i
[3-7]86-*-isc*) COREFILE
=trad-core.lo
;;
5390 i
[3-7]86-*-aix*) COREFILE
=aix386-core.lo
;;
5391 i860-
*-mach3* | i860-
*-osf1*)
5392 COREFILE
=trad-core.lo
5393 TRAD_HEADER
='"hosts/i860mach3.h"'
5395 mips-
*-netbsd* | mips
*-*-openbsd*)
5396 COREFILE
=netbsd-core.lo
5399 COREFILE
=trad-core.lo
5400 TRAD_HEADER
='"hosts/decstation.h"'
5402 mips-sgi-irix4
*) COREFILE
=irix-core.lo
;;
5403 mips-sgi-irix5
*) COREFILE
=irix-core.lo
;;
5404 mips-sgi-irix6
*) COREFILE
=irix-core.lo
;;
5406 mips-
*-sysv* | mips-
*-riscos*)
5407 COREFILE
=trad-core.lo
5408 TRAD_HEADER
='"hosts/riscos.h"'
5411 COREFILE
=trad-core.lo
5412 TRAD_HEADER
='"hosts/news-mips.h"'
5415 COREFILE
=trad-core.lo
5416 TRAD_HEADER
='"hosts/dpx2.h"'
5418 m68
*-hp-hpux*) COREFILE
=hpux-core.lo
;;
5420 COREFILE
=trad-core.lo
5421 TRAD_HEADER
='"hosts/hp300bsd.h"'
5424 COREFILE
=trad-core.lo
5425 TRAD_HEADER
='"hosts/m68klinux.h"'
5427 m68
*-motorola-sysv*)
5428 COREFILE
=trad-core.lo
5429 TRAD_HEADER
='"hosts/delta68.h"'
5432 COREFILE
=trad-core.lo
5433 TRAD_HEADER
='"hosts/news.h"'
5435 m68
*-*-netbsd* | m68
*-*-openbsd*)
5436 COREFILE
=netbsd-core.lo
5439 COREFILE
=trad-core.lo
5440 TRAD_HEADER
='"hosts/m68kaux.h"'
5444 m88
*-motorola-sysv*)
5445 COREFILE
=ptrace-core.lo
5448 COREFILE
=trad-core.lo
5449 TRAD_HEADER
='"hosts/m88kmach3.h"'
5452 COREFILE
=trad-core.lo
5453 TRAD_HEADER
='"hosts/pc532mach.h"'
5455 ns32k-
*-netbsd* | ns32k-
*-openbsd*)
5456 COREFILE
=netbsd-core.lo
5459 COREFILE
=lynx-core.lo
5461 rs6000-
*-aix5.
* | powerpc-
*-aix5.
*)
5462 COREFILE
=rs6000-core.lo
5463 COREFLAG
="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
5465 rs6000-
*-aix4.
[3-9]* | powerpc-
*-aix4.
[3-9]*)
5466 COREFILE
=rs6000-core.lo
5467 COREFLAG
="$COREFLAG -DAIX_CORE_DUMPX_CORE"
5468 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
5469 # have c_impl as a member of struct core_dumpx
5470 echo $ac_n "checking for c_impl in struct core_dumpx""... $ac_c" 1>&6
5471 echo "configure:5472: checking for c_impl in struct core_dumpx" >&5
5472 cat > conftest.
$ac_ext <<EOF
5473 #line 5474 "configure"
5474 #include "confdefs.h"
5477 struct core_dumpx c; c.c_impl = 0;
5480 if { (eval echo configure
:5481: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5482 cat >> confdefs.h
<<\EOF
5483 #define HAVE_ST_C_IMPL 1
5486 echo "$ac_t""yes" 1>&6
5488 echo "configure: failed program was:" >&5
5489 cat conftest.
$ac_ext >&5
5491 echo "$ac_t""no" 1>&6
5495 rs6000-
*-aix4*) COREFILE
=rs6000-core.lo
;;
5496 rs6000-
*-*) COREFILE
=rs6000-core.lo
;;
5497 powerpc-
*-aix4*) COREFILE
=rs6000-core.lo
;;
5498 powerpc-
*-aix*) COREFILE
=rs6000-core.lo
;;
5500 powerpc-
*-freebsd* | powerpc-
*-kfreebsd*-gnu)
5502 powerpc-
*-netbsd*) COREFILE
=netbsd-core.lo
;;
5503 powerpc-
*-*bsd
*) COREFILE
=netbsd-core.lo
;;
5504 s390
*-*-*) COREFILE
=trad-core.lo
;;
5505 sh
*-*-netbsd*) COREFILE
=netbsd-core.lo
;;
5506 sparc-
*-netbsd* | sparc
*-*-openbsd*)
5507 COREFILE
=netbsd-core.lo
5510 COREFILE
=trad-core.lo
5511 TRAD_HEADER
='"hosts/tahoe.h"'
5513 vax-
*-netbsd* | vax-
*-openbsd*)
5514 COREFILE
=netbsd-core.lo
5517 COREFILE
=trad-core.lo
5518 TRAD_HEADER
='"hosts/vaxult2.h"'
5521 COREFILE
=trad-core.lo
5522 TRAD_HEADER
='"hosts/vaxult2.h"'
5525 COREFILE
=trad-core.lo
5526 TRAD_HEADER
='"hosts/vaxlinux.h"'
5529 COREFILE
=trad-core.lo
5530 TRAD_HEADER
='"hosts/vaxbsd.h"'
5532 x86_64-
*-netbsd* | x86_64-
*-openbsd*)
5533 COREFILE
=netbsd-core.lo
5538 aix386-core.lo
) COREFLAG
=-DAIX386_CORE ;;
5539 hppabsd-core.lo
) COREFLAG
=-DHPPABSD_CORE ;;
5540 hpux-core.lo
) COREFLAG
=-DHPUX_CORE ;;
5541 irix-core.lo
) COREFLAG
=-DIRIX_CORE ;;
5542 lynx-core.lo
) COREFLAG
=-DLYNX_CORE ;;
5543 netbsd-core.lo
) COREFLAG
=-DNETBSD_CORE ;;
5544 osf-core.lo
) COREFLAG
=-DOSF_CORE ;;
5545 ptrace-core.lo
) COREFLAG
=-DPTRACE_CORE ;;
5546 rs6000-core.lo
) COREFLAG
="$COREFLAG -DAIX_CORE" ;;
5547 sco5-core.lo
) COREFLAG
="$COREFLAG -DSCO5_CORE" ;;
5548 trad-core.lo
) COREFLAG
="$COREFLAG -DTRAD_CORE" ;;
5551 # ELF corefile support has several flavors, but all of
5552 # them use something called <sys/procfs.h>
5553 for ac_hdr
in sys
/procfs.h
5555 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5556 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5557 echo "configure:5558: checking for $ac_hdr" >&5
5558 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5559 echo $ac_n "(cached) $ac_c" 1>&6
5561 cat > conftest.
$ac_ext <<EOF
5562 #line 5563 "configure"
5563 #include "confdefs.h"
5566 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5567 { (eval echo configure
:5568: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5568 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5569 if test -z "$ac_err"; then
5571 eval "ac_cv_header_$ac_safe=yes"
5574 echo "configure: failed program was:" >&5
5575 cat conftest.
$ac_ext >&5
5577 eval "ac_cv_header_$ac_safe=no"
5581 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5582 echo "$ac_t""yes" 1>&6
5583 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5584 cat >> confdefs.h
<<EOF
5585 #define $ac_tr_hdr 1
5589 echo "$ac_t""no" 1>&6
5593 if test "$ac_cv_header_sys_procfs_h" = yes; then
5594 echo $ac_n "checking for prstatus_t in sys/procfs.h""... $ac_c" 1>&6
5595 echo "configure:5596: checking for prstatus_t in sys/procfs.h" >&5
5596 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prstatus_t'+set}'`\" = set"; then
5597 echo $ac_n "(cached) $ac_c" 1>&6
5599 cat > conftest.
$ac_ext <<EOF
5600 #line 5601 "configure"
5601 #include "confdefs.h"
5604 #include <sys/procfs.h>
5609 if { (eval echo configure
:5610: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5611 bfd_cv_have_sys_procfs_type_prstatus_t
=yes
5613 echo "configure: failed program was:" >&5
5614 cat conftest.
$ac_ext >&5
5616 bfd_cv_have_sys_procfs_type_prstatus_t
=no
5622 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
5623 cat >> confdefs.h
<<\EOF
5624 #define HAVE_PRSTATUS_T 1
5628 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prstatus_t" 1>&6
5630 echo $ac_n "checking for prstatus32_t in sys/procfs.h""... $ac_c" 1>&6
5631 echo "configure:5632: checking for prstatus32_t in sys/procfs.h" >&5
5632 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prstatus32_t'+set}'`\" = set"; then
5633 echo $ac_n "(cached) $ac_c" 1>&6
5635 cat > conftest.
$ac_ext <<EOF
5636 #line 5637 "configure"
5637 #include "confdefs.h"
5640 #include <sys/procfs.h>
5645 if { (eval echo configure
:5646: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5647 bfd_cv_have_sys_procfs_type_prstatus32_t
=yes
5649 echo "configure: failed program was:" >&5
5650 cat conftest.
$ac_ext >&5
5652 bfd_cv_have_sys_procfs_type_prstatus32_t
=no
5658 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
5659 cat >> confdefs.h
<<\EOF
5660 #define HAVE_PRSTATUS32_T 1
5664 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prstatus32_t" 1>&6
5666 echo $ac_n "checking for prstatus_t.pr_who in sys/procfs.h""... $ac_c" 1>&6
5667 echo "configure:5668: checking for prstatus_t.pr_who in sys/procfs.h" >&5
5668 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who'+set}'`\" = set"; then
5669 echo $ac_n "(cached) $ac_c" 1>&6
5671 cat > conftest.
$ac_ext <<EOF
5672 #line 5673 "configure"
5673 #include "confdefs.h"
5676 #include <sys/procfs.h>
5678 prstatus_t avar; void* aref = (void*) &avar.pr_who
5681 if { (eval echo configure
:5682: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5683 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who
=yes
5685 echo "configure: failed program was:" >&5
5686 cat conftest.
$ac_ext >&5
5688 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who
=no
5694 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
5695 cat >> confdefs.h
<<\EOF
5696 #define HAVE_PRSTATUS_T_PR_WHO 1
5700 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" 1>&6
5702 echo $ac_n "checking for prstatus32_t.pr_who in sys/procfs.h""... $ac_c" 1>&6
5703 echo "configure:5704: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
5704 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who'+set}'`\" = set"; then
5705 echo $ac_n "(cached) $ac_c" 1>&6
5707 cat > conftest.
$ac_ext <<EOF
5708 #line 5709 "configure"
5709 #include "confdefs.h"
5712 #include <sys/procfs.h>
5714 prstatus32_t avar; void* aref = (void*) &avar.pr_who
5717 if { (eval echo configure
:5718: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5719 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who
=yes
5721 echo "configure: failed program was:" >&5
5722 cat conftest.
$ac_ext >&5
5724 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who
=no
5730 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
5731 cat >> confdefs.h
<<\EOF
5732 #define HAVE_PRSTATUS32_T_PR_WHO 1
5736 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" 1>&6
5738 echo $ac_n "checking for pstatus_t in sys/procfs.h""... $ac_c" 1>&6
5739 echo "configure:5740: checking for pstatus_t in sys/procfs.h" >&5
5740 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus_t'+set}'`\" = set"; then
5741 echo $ac_n "(cached) $ac_c" 1>&6
5743 cat > conftest.
$ac_ext <<EOF
5744 #line 5745 "configure"
5745 #include "confdefs.h"
5748 #include <sys/procfs.h>
5753 if { (eval echo configure
:5754: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5755 bfd_cv_have_sys_procfs_type_pstatus_t
=yes
5757 echo "configure: failed program was:" >&5
5758 cat conftest.
$ac_ext >&5
5760 bfd_cv_have_sys_procfs_type_pstatus_t
=no
5766 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
5767 cat >> confdefs.h
<<\EOF
5768 #define HAVE_PSTATUS_T 1
5772 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus_t" 1>&6
5774 echo $ac_n "checking for pxstatus_t in sys/procfs.h""... $ac_c" 1>&6
5775 echo "configure:5776: checking for pxstatus_t in sys/procfs.h" >&5
5776 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pxstatus_t'+set}'`\" = set"; then
5777 echo $ac_n "(cached) $ac_c" 1>&6
5779 cat > conftest.
$ac_ext <<EOF
5780 #line 5781 "configure"
5781 #include "confdefs.h"
5784 #include <sys/procfs.h>
5789 if { (eval echo configure
:5790: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5791 bfd_cv_have_sys_procfs_type_pxstatus_t
=yes
5793 echo "configure: failed program was:" >&5
5794 cat conftest.
$ac_ext >&5
5796 bfd_cv_have_sys_procfs_type_pxstatus_t
=no
5802 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
5803 cat >> confdefs.h
<<\EOF
5804 #define HAVE_PXSTATUS_T 1
5808 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pxstatus_t" 1>&6
5810 echo $ac_n "checking for pstatus32_t in sys/procfs.h""... $ac_c" 1>&6
5811 echo "configure:5812: checking for pstatus32_t in sys/procfs.h" >&5
5812 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus32_t'+set}'`\" = set"; then
5813 echo $ac_n "(cached) $ac_c" 1>&6
5815 cat > conftest.
$ac_ext <<EOF
5816 #line 5817 "configure"
5817 #include "confdefs.h"
5820 #include <sys/procfs.h>
5825 if { (eval echo configure
:5826: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5827 bfd_cv_have_sys_procfs_type_pstatus32_t
=yes
5829 echo "configure: failed program was:" >&5
5830 cat conftest.
$ac_ext >&5
5832 bfd_cv_have_sys_procfs_type_pstatus32_t
=no
5838 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
5839 cat >> confdefs.h
<<\EOF
5840 #define HAVE_PSTATUS32_T 1
5844 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus32_t" 1>&6
5846 echo $ac_n "checking for prpsinfo_t in sys/procfs.h""... $ac_c" 1>&6
5847 echo "configure:5848: checking for prpsinfo_t in sys/procfs.h" >&5
5848 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prpsinfo_t'+set}'`\" = set"; then
5849 echo $ac_n "(cached) $ac_c" 1>&6
5851 cat > conftest.
$ac_ext <<EOF
5852 #line 5853 "configure"
5853 #include "confdefs.h"
5856 #include <sys/procfs.h>
5861 if { (eval echo configure
:5862: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5863 bfd_cv_have_sys_procfs_type_prpsinfo_t
=yes
5865 echo "configure: failed program was:" >&5
5866 cat conftest.
$ac_ext >&5
5868 bfd_cv_have_sys_procfs_type_prpsinfo_t
=no
5874 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
5875 cat >> confdefs.h
<<\EOF
5876 #define HAVE_PRPSINFO_T 1
5880 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prpsinfo_t" 1>&6
5882 echo $ac_n "checking for prpsinfo32_t in sys/procfs.h""... $ac_c" 1>&6
5883 echo "configure:5884: checking for prpsinfo32_t in sys/procfs.h" >&5
5884 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prpsinfo32_t'+set}'`\" = set"; then
5885 echo $ac_n "(cached) $ac_c" 1>&6
5887 cat > conftest.
$ac_ext <<EOF
5888 #line 5889 "configure"
5889 #include "confdefs.h"
5892 #include <sys/procfs.h>
5897 if { (eval echo configure
:5898: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5899 bfd_cv_have_sys_procfs_type_prpsinfo32_t
=yes
5901 echo "configure: failed program was:" >&5
5902 cat conftest.
$ac_ext >&5
5904 bfd_cv_have_sys_procfs_type_prpsinfo32_t
=no
5910 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
5911 cat >> confdefs.h
<<\EOF
5912 #define HAVE_PRPSINFO32_T 1
5916 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prpsinfo32_t" 1>&6
5918 echo $ac_n "checking for psinfo_t in sys/procfs.h""... $ac_c" 1>&6
5919 echo "configure:5920: checking for psinfo_t in sys/procfs.h" >&5
5920 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psinfo_t'+set}'`\" = set"; then
5921 echo $ac_n "(cached) $ac_c" 1>&6
5923 cat > conftest.
$ac_ext <<EOF
5924 #line 5925 "configure"
5925 #include "confdefs.h"
5928 #include <sys/procfs.h>
5933 if { (eval echo configure
:5934: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5935 bfd_cv_have_sys_procfs_type_psinfo_t
=yes
5937 echo "configure: failed program was:" >&5
5938 cat conftest.
$ac_ext >&5
5940 bfd_cv_have_sys_procfs_type_psinfo_t
=no
5946 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
5947 cat >> confdefs.h
<<\EOF
5948 #define HAVE_PSINFO_T 1
5952 echo "$ac_t""$bfd_cv_have_sys_procfs_type_psinfo_t" 1>&6
5954 echo $ac_n "checking for psinfo32_t in sys/procfs.h""... $ac_c" 1>&6
5955 echo "configure:5956: checking for psinfo32_t in sys/procfs.h" >&5
5956 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psinfo32_t'+set}'`\" = set"; then
5957 echo $ac_n "(cached) $ac_c" 1>&6
5959 cat > conftest.
$ac_ext <<EOF
5960 #line 5961 "configure"
5961 #include "confdefs.h"
5964 #include <sys/procfs.h>
5969 if { (eval echo configure
:5970: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5971 bfd_cv_have_sys_procfs_type_psinfo32_t
=yes
5973 echo "configure: failed program was:" >&5
5974 cat conftest.
$ac_ext >&5
5976 bfd_cv_have_sys_procfs_type_psinfo32_t
=no
5982 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
5983 cat >> confdefs.h
<<\EOF
5984 #define HAVE_PSINFO32_T 1
5988 echo "$ac_t""$bfd_cv_have_sys_procfs_type_psinfo32_t" 1>&6
5990 echo $ac_n "checking for lwpstatus_t in sys/procfs.h""... $ac_c" 1>&6
5991 echo "configure:5992: checking for lwpstatus_t in sys/procfs.h" >&5
5992 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpstatus_t'+set}'`\" = set"; then
5993 echo $ac_n "(cached) $ac_c" 1>&6
5995 cat > conftest.
$ac_ext <<EOF
5996 #line 5997 "configure"
5997 #include "confdefs.h"
6000 #include <sys/procfs.h>
6005 if { (eval echo configure
:6006: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6007 bfd_cv_have_sys_procfs_type_lwpstatus_t
=yes
6009 echo "configure: failed program was:" >&5
6010 cat conftest.
$ac_ext >&5
6012 bfd_cv_have_sys_procfs_type_lwpstatus_t
=no
6018 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
6019 cat >> confdefs.h
<<\EOF
6020 #define HAVE_LWPSTATUS_T 1
6024 echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpstatus_t" 1>&6
6026 echo $ac_n "checking for lwpxstatus_t in sys/procfs.h""... $ac_c" 1>&6
6027 echo "configure:6028: checking for lwpxstatus_t in sys/procfs.h" >&5
6028 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpxstatus_t'+set}'`\" = set"; then
6029 echo $ac_n "(cached) $ac_c" 1>&6
6031 cat > conftest.
$ac_ext <<EOF
6032 #line 6033 "configure"
6033 #include "confdefs.h"
6036 #include <sys/procfs.h>
6041 if { (eval echo configure
:6042: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6043 bfd_cv_have_sys_procfs_type_lwpxstatus_t
=yes
6045 echo "configure: failed program was:" >&5
6046 cat conftest.
$ac_ext >&5
6048 bfd_cv_have_sys_procfs_type_lwpxstatus_t
=no
6054 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
6055 cat >> confdefs.h
<<\EOF
6056 #define HAVE_LWPXSTATUS_T 1
6060 echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpxstatus_t" 1>&6
6062 echo $ac_n "checking for lwpstatus_t.pr_context in sys/procfs.h""... $ac_c" 1>&6
6063 echo "configure:6064: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
6064 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context'+set}'`\" = set"; then
6065 echo $ac_n "(cached) $ac_c" 1>&6
6067 cat > conftest.
$ac_ext <<EOF
6068 #line 6069 "configure"
6069 #include "confdefs.h"
6072 #include <sys/procfs.h>
6074 lwpstatus_t avar; void* aref = (void*) &avar.pr_context
6077 if { (eval echo configure
:6078: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6079 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context
=yes
6081 echo "configure: failed program was:" >&5
6082 cat conftest.
$ac_ext >&5
6084 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context
=no
6090 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
6091 cat >> confdefs.h
<<\EOF
6092 #define HAVE_LWPSTATUS_T_PR_CONTEXT 1
6096 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" 1>&6
6098 echo $ac_n "checking for lwpstatus_t.pr_reg in sys/procfs.h""... $ac_c" 1>&6
6099 echo "configure:6100: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
6100 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg'+set}'`\" = set"; then
6101 echo $ac_n "(cached) $ac_c" 1>&6
6103 cat > conftest.
$ac_ext <<EOF
6104 #line 6105 "configure"
6105 #include "confdefs.h"
6108 #include <sys/procfs.h>
6110 lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
6113 if { (eval echo configure
:6114: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6115 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg
=yes
6117 echo "configure: failed program was:" >&5
6118 cat conftest.
$ac_ext >&5
6120 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg
=no
6126 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
6127 cat >> confdefs.h
<<\EOF
6128 #define HAVE_LWPSTATUS_T_PR_REG 1
6132 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" 1>&6
6134 echo $ac_n "checking for win32_pstatus_t in sys/procfs.h""... $ac_c" 1>&6
6135 echo "configure:6136: checking for win32_pstatus_t in sys/procfs.h" >&5
6136 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_win32_pstatus_t'+set}'`\" = set"; then
6137 echo $ac_n "(cached) $ac_c" 1>&6
6139 cat > conftest.
$ac_ext <<EOF
6140 #line 6141 "configure"
6141 #include "confdefs.h"
6144 #include <sys/procfs.h>
6146 win32_pstatus_t avar
6149 if { (eval echo configure
:6150: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6151 bfd_cv_have_sys_procfs_type_win32_pstatus_t
=yes
6153 echo "configure: failed program was:" >&5
6154 cat conftest.
$ac_ext >&5
6156 bfd_cv_have_sys_procfs_type_win32_pstatus_t
=no
6162 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
6163 cat >> confdefs.h
<<\EOF
6164 #define HAVE_WIN32_PSTATUS_T 1
6168 echo "$ac_t""$bfd_cv_have_sys_procfs_type_win32_pstatus_t" 1>&6
6174 if test -n "$TRAD_HEADER"; then
6175 cat >> confdefs.h
<<EOF
6176 #define TRAD_HEADER $TRAD_HEADER
6181 # Horrible hacks to build DLLs on Windows.
6186 if test "$enable_shared" = "yes"; then
6187 WIN32LDFLAGS
="-no-undefined"
6188 WIN32LIBADD
="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
6192 # We borrow WIN32LIBADD so that the shared libbfd won't depend on
6196 # Linux/MIPS uses PIC by default.
6197 if test "$enable_shared" = "yes"; then
6198 WIN32LIBADD
="-L../libiberty -liberty"
6202 x
=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
6203 if test -n "$x"; then
6204 WIN32LIBADD
="-L../libiberty/pic -liberty"
6215 # Canonicalize the secondary target names.
6216 if test -n "$enable_targets" ; then
6217 for targ
in `echo $enable_targets | sed 's/,/ /g'`
6219 result
=`$ac_config_sub $targ 2>/dev/null`
6220 if test -n "$result" ; then
6221 canon_targets
="$canon_targets $result"
6223 # Allow targets that config.sub doesn't recognize, like "all".
6224 canon_targets
="$canon_targets $targ"
6235 for targ
in $target $canon_targets
6237 if test "x$targ" = "xall"; then
6239 assocvecs
="$assocvecs $targ_defvec $targ_selvecs"
6241 .
$srcdir/config.bfd
6242 if test "x$targ" = "x$target"; then
6245 selvecs
="$selvecs $targ_defvec $targ_selvecs"
6246 selarchs
="$selarchs $targ_archs"
6247 TDEFINES
="$TDEFINES $targ_cflags"
6252 # This processing still needs to be done if we're to decide properly whether
6253 # 64-bit support needs to be compiled in. Currently, it will be included if
6254 # the default or any other explicitly requested target requires it; it
6255 # will not be included on a 32-bit host if no 64-bit target is requested, and
6256 # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
6259 # uniq the default and selected vectors in all the configured targets.
6261 for i
in $selvecs ; do
6270 # uniq the associated vectors in all the configured targets.
6272 for i
in $assocvecs ; do
6281 # uniq the architectures in all the configured targets.
6283 for i
in $selarchs ; do
6291 # Target backend .o files.
6294 elf
="elf.lo elflink.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
6300 # This list is alphabetized to make it easy to compare
6301 # with the two vector lists in targets.c. For the same reason,
6302 # use one entry per line, even though this leads to long lines.
6303 a29kcoff_big_vec
) tb
="$tb coff-a29k.lo cofflink.lo" ;;
6304 a_out_adobe_vec
) tb
="$tb aout-adobe.lo aout32.lo" ;;
6305 aix5coff64_vec
) tb
="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size
=64 ;;
6306 aout0_big_vec
) tb
="$tb aout0.lo aout32.lo" ;;
6307 aout_arm_big_vec
) tb
="$tb aout-arm.lo aout32.lo" ;;
6308 aout_arm_little_vec
) tb
="$tb aout-arm.lo aout32.lo" ;;
6309 apollocoff_vec
) tb
="$tb coff-apollo.lo" ;;
6310 arm_epoc_pe_big_vec
) tb
="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
6311 arm_epoc_pe_little_vec
) tb
="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
6312 arm_epoc_pei_big_vec
) tb
="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
6313 arm_epoc_pei_little_vec
) tb
="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
6314 armcoff_big_vec
) tb
="$tb coff-arm.lo cofflink.lo " ;;
6315 armcoff_little_vec
) tb
="$tb coff-arm.lo cofflink.lo " ;;
6316 armnetbsd_vec
) tb
="$tb armnetbsd.lo aout32.lo" ;;
6317 armpe_big_vec
) tb
="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
6318 armpe_little_vec
) tb
="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
6319 armpei_big_vec
) tb
="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
6320 armpei_little_vec
) tb
="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
6321 b_out_vec_big_host
) tb
="$tb bout.lo aout32.lo" ;;
6322 b_out_vec_little_host
) tb
="$tb bout.lo aout32.lo" ;;
6323 bfd_efi_app_ia32_vec
) tb
="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
6324 bfd_efi_app_ia64_vec
) tb
="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size
=64 ;;
6325 bfd_elf32_am33lin_vec
) tb
="$tb elf32-am33lin.lo elf32.lo $elf" ;;
6326 bfd_elf32_avr_vec
) tb
="$tb elf32-avr.lo elf32.lo $elf" ;;
6327 bfd_elf32_big_generic_vec
) tb
="$tb elf32-gen.lo elf32.lo $elf" ;;
6328 bfd_elf32_bigarc_vec
) tb
="$tb elf32-arc.lo elf32.lo $elf" ;;
6329 bfd_elf32_bigarm_oabi_vec
) tb
="$tb elfarm-oabi.lo elf32.lo $elf" ;;
6330 bfd_elf32_bigarm_vec
) tb
="$tb elfarm-nabi.lo elf32.lo $elf" ;;
6331 bfd_elf32_bigmips_vec
) tb
="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
6332 bfd_elf32_cr16c_vec
) tb
="$tb elf32-cr16c.lo elf32.lo $elf" ;;
6333 bfd_elf32_cris_vec
) tb
="$tb elf32-cris.lo elf32.lo $elf" ;;
6334 bfd_elf32_d10v_vec
) tb
="$tb elf32-d10v.lo elf32.lo $elf" ;;
6335 bfd_elf32_d30v_vec
) tb
="$tb elf32-d30v.lo elf32.lo $elf" ;;
6336 bfd_elf32_dlx_big_vec
) tb
="$tb elf32-dlx.lo elf32.lo $elf" ;;
6337 bfd_elf32_fr30_vec
) tb
="$tb elf32-fr30.lo elf32.lo $elf" ;;
6338 bfd_elf32_frv_vec
) tb
="$tb elf32-frv.lo elf32.lo $elf" ;;
6339 bfd_elf32_frvfdpic_vec
) tb
="$tb elf32-frv.lo elf32.lo $elf" ;;
6340 bfd_elf32_h8300_vec
) tb
="$tb elf32-h8300.lo elf32.lo $elf" ;;
6341 bfd_elf32_hppa_linux_vec
) tb
="$tb elf32-hppa.lo elf32.lo $elf" ;;
6342 bfd_elf32_hppa_vec
) tb
="$tb elf32-hppa.lo elf32.lo $elf" ;;
6343 bfd_elf32_i370_vec
) tb
="$tb elf32-i370.lo elf32.lo $elf" ;;
6344 bfd_elf32_i386_freebsd_vec
) tb
="$tb elf32-i386.lo elf32.lo $elf" ;;
6345 bfd_elf32_i386_vec
) tb
="$tb elf32-i386.lo elf32.lo $elf" ;;
6346 bfd_elf32_i860_little_vec
) tb
="$tb elf32-i860.lo elf32.lo $elf" ;;
6347 bfd_elf32_i860_vec
) tb
="$tb elf32-i860.lo elf32.lo $elf" ;;
6348 bfd_elf32_i960_vec
) tb
="$tb elf32-i960.lo elf32.lo $elf" ;;
6349 bfd_elf32_ia64_big_vec
) tb
="$tb elf32-ia64.lo elf32.lo $elf" ;;
6350 bfd_elf32_ia64_hpux_big_vec
) tb
="$tb elf32-ia64.lo elf32.lo $elf";;
6351 bfd_elf32_ip2k_vec
) tb
="$tb elf32-ip2k.lo elf32.lo $elf" ;;
6352 bfd_elf32_iq2000_vec
) tb
="$tb elf32-iq2000.lo elf32.lo $elf" ;;
6353 bfd_elf32_little_generic_vec
) tb
="$tb elf32-gen.lo elf32.lo $elf" ;;
6354 bfd_elf32_littlearc_vec
) tb
="$tb elf32-arc.lo elf32.lo $elf" ;;
6355 bfd_elf32_littlearm_oabi_vec
) tb
="$tb elfarm-oabi.lo elf32.lo $elf" ;;
6356 bfd_elf32_littlearm_vec
) tb
="$tb elfarm-nabi.lo elf32.lo $elf" ;;
6357 bfd_elf32_littlemips_vec
) tb
="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
6358 bfd_elf32_m32r_vec
) tb
="$tb elf32-m32r.lo elf32.lo $elf" ;;
6359 bfd_elf32_m32rle_vec
) tb
="$tb elf32-m32r.lo elf32.lo $elf" ;;
6360 bfd_elf32_m32rlin_vec
) tb
="$tb elf32-m32r.lo elf32.lo $elf" ;;
6361 bfd_elf32_m32rlelin_vec
) tb
="$tb elf32-m32r.lo elf32.lo $elf" ;;
6362 bfd_elf32_m68hc11_vec
) tb
="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
6363 bfd_elf32_m68hc12_vec
) tb
="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
6364 bfd_elf32_m68k_vec
) tb
="$tb elf32-m68k.lo elf32.lo $elf" ;;
6365 bfd_elf32_m88k_vec
) tb
="$tb elf32-m88k.lo elf32.lo $elf" ;;
6366 bfd_elf32_mcore_big_vec
) tb
="$tb elf32-mcore.lo elf32.lo $elf" ;;
6367 bfd_elf32_mcore_little_vec
) tb
="$tb elf32-mcore.lo elf32.lo $elf" ;;
6368 bfd_elf32_mn10200_vec
) tb
="$tb elf-m10200.lo elf32.lo $elf" ;;
6369 bfd_elf32_mn10300_vec
) tb
="$tb elf-m10300.lo elf32.lo $elf" ;;
6370 bfd_elf32_msp430_vec
) tb
="$tb elf32-msp430.lo elf32.lo $elf" ;;
6371 bfd_elf32_nbigmips_vec
) tb
="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size
=64 ;;
6372 bfd_elf32_nlittlemips_vec
) tb
="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size
=64 ;;
6373 bfd_elf32_ntradbigmips_vec
) tb
="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size
=64 ;;
6374 bfd_elf32_ntradlittlemips_vec
) tb
="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size
=64 ;;
6375 bfd_elf32_openrisc_vec
) tb
="$tb elf32-openrisc.lo elf32.lo $elf" ;;
6376 bfd_elf32_or32_big_vec
) tb
="$tb elf32-or32.lo elf32.lo $elf" ;;
6377 bfd_elf32_pj_vec
) tb
="$tb elf32-pj.lo elf32.lo $elf";;
6378 bfd_elf32_pjl_vec
) tb
="$tb elf32-pj.lo elf32.lo $elf";;
6379 bfd_elf32_powerpc_vec
) tb
="$tb elf32-ppc.lo elf32.lo $elf" ;;
6380 bfd_elf32_powerpcle_vec
) tb
="$tb elf32-ppc.lo elf32.lo $elf" ;;
6381 bfd_elf32_s390_vec
) tb
="$tb elf32-s390.lo elf32.lo $elf" ;;
6382 # FIXME: We include cofflink.lo not because it's needed for
6383 # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
6384 # which needs it but does not list it. Should be fixed in right place.
6385 bfd_elf32_sh64_vec
) tb
="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size
=64 ;;
6386 bfd_elf32_sh64l_vec
) tb
="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size
=64 ;;
6387 bfd_elf32_sh64lin_vec
) tb
="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size
=64 ;;
6388 bfd_elf32_sh64blin_vec
) tb
="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size
=64 ;;
6389 bfd_elf32_sh64lnbsd_vec
) tb
="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
6390 bfd_elf32_sh64nbsd_vec
) tb
="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
6391 bfd_elf32_sh_vec
) tb
="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
6392 bfd_elf32_shblin_vec
) tb
="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
6393 bfd_elf32_shl_vec
) tb
="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
6394 bfd_elf32_shlin_vec
) tb
="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
6395 bfd_elf32_shlnbsd_vec
) tb
="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
6396 bfd_elf32_shnbsd_vec
) tb
="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
6397 bfd_elf32_sparc_vec
) tb
="$tb elf32-sparc.lo elf32.lo $elf" ;;
6398 bfd_elf32_tradbigmips_vec
) tb
="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
6399 bfd_elf32_tradlittlemips_vec
) tb
="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
6400 bfd_elf32_us_cris_vec
) tb
="$tb elf32-cris.lo elf32.lo $elf" ;;
6401 bfd_elf32_v850_vec
) tb
="$tb elf32-v850.lo elf32.lo $elf" ;;
6402 bfd_elf32_vax_vec
) tb
="$tb elf32-vax.lo elf32.lo $elf" ;;
6403 bfd_elf32_xstormy16_vec
) tb
="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
6404 bfd_elf32_xtensa_le_vec
) tb
="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
6405 bfd_elf32_xtensa_be_vec
) tb
="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
6406 bfd_elf64_alpha_freebsd_vec
) tb
="$tb elf64-alpha.lo elf64.lo $elf"; target_size
=64 ;;
6407 bfd_elf64_alpha_vec
) tb
="$tb elf64-alpha.lo elf64.lo $elf"; target_size
=64 ;;
6408 bfd_elf64_big_generic_vec
) tb
="$tb elf64-gen.lo elf64.lo $elf"; target_size
=64 ;;
6409 bfd_elf64_bigmips_vec
) tb
="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size
=64 ;;
6410 bfd_elf64_hppa_linux_vec
) tb
="$tb elf64-hppa.lo elf64.lo $elf"; target_size
=64 ;;
6411 bfd_elf64_hppa_vec
) tb
="$tb elf64-hppa.lo elf64.lo $elf"; target_size
=64 ;;
6412 bfd_elf64_ia64_big_vec
) tb
="$tb elf64-ia64.lo elf64.lo $elf"; target_size
=64 ;;
6413 bfd_elf64_ia64_hpux_big_vec
) tb
="$tb elf64-ia64.lo elf64.lo $elf"; target_size
=64 ;;
6414 bfd_elf64_ia64_little_vec
) tb
="$tb elf64-ia64.lo elf64.lo $elf"; target_size
=64 ;;
6415 bfd_elf64_little_generic_vec
) tb
="$tb elf64-gen.lo elf64.lo $elf"; target_size
=64 ;;
6416 bfd_elf64_littlemips_vec
) tb
="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size
=64 ;;
6417 bfd_elf64_mmix_vec
) tb
="$tb elf64-mmix.lo elf64.lo $elf" target_size
=64 ;;
6418 bfd_elf64_powerpc_vec
) tb
="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size
=64 ;;
6419 bfd_elf64_powerpcle_vec
) tb
="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size
=64 ;;
6420 bfd_elf64_s390_vec
) tb
="$tb elf64-s390.lo elf64.lo $elf"; target_size
=64 ;;
6421 bfd_elf64_sh64_vec
) tb
="$tb elf64-sh64.lo elf64.lo $elf" target_size
=64 ;;
6422 bfd_elf64_sh64l_vec
) tb
="$tb elf64-sh64.lo elf64.lo $elf" target_size
=64 ;;
6423 bfd_elf64_sh64lin_vec
) tb
="$tb elf64-sh64.lo elf64.lo $elf" target_size
=64 ;;
6424 bfd_elf64_sh64blin_vec
) tb
="$tb elf64-sh64.lo elf64.lo $elf" target_size
=64 ;;
6425 bfd_elf64_sh64lnbsd_vec
) tb
="$tb elf64-sh64.lo elf64.lo $elf" target_size
=64 ;;
6426 bfd_elf64_sh64nbsd_vec
) tb
="$tb elf64-sh64.lo elf64.lo $elf" target_size
=64 ;;
6427 bfd_elf64_sparc_vec
) tb
="$tb elf64-sparc.lo elf64.lo $elf"; target_size
=64 ;;
6428 bfd_elf64_tradbigmips_vec
) tb
="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size
=64 ;;
6429 bfd_elf64_tradlittlemips_vec
) tb
="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size
=64 ;;
6430 bfd_elf64_x86_64_vec
) tb
="$tb elf64-x86-64.lo elf64.lo $elf"; target_size
=64 ;;
6431 bfd_mmo_vec
) tb
="$tb mmo.lo" target_size
=64 ;;
6432 bfd_powerpc_pe_vec
) tb
="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
6433 bfd_powerpc_pei_vec
) tb
="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
6434 bfd_powerpcle_pe_vec
) tb
="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
6435 bfd_powerpcle_pei_vec
) tb
="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
6436 cris_aout_vec
) tb
="$tb aout-cris.lo" ;;
6437 demo_64_vec
) tb
="$tb demo64.lo aout64.lo"; target_size
=64 ;;
6438 ecoff_big_vec
) tb
="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
6439 ecoff_biglittle_vec
) tb
="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
6440 ecoff_little_vec
) tb
="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
6441 ecoffalpha_little_vec
) tb
="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size
=64 ;;
6442 go32coff_vec
) tb
="$tb coff-go32.lo cofflink.lo" ;;
6443 go32stubbedcoff_vec
) tb
="$tb coff-stgo32.lo cofflink.lo" ;;
6444 h8300coff_vec
) tb
="$tb coff-h8300.lo reloc16.lo" ;;
6445 h8500coff_vec
) tb
="$tb coff-h8500.lo reloc16.lo" ;;
6446 host_aout_vec
) tb
="$tb host-aout.lo aout32.lo" ;;
6447 hp300bsd_vec
) tb
="$tb hp300bsd.lo aout32.lo" ;;
6448 hp300hpux_vec
) tb
="$tb hp300hpux.lo aout32.lo" ;;
6449 i386aout_vec
) tb
="$tb i386aout.lo aout32.lo" ;;
6450 i386bsd_vec
) tb
="$tb i386bsd.lo aout32.lo" ;;
6451 i386coff_vec
) tb
="$tb coff-i386.lo cofflink.lo" ;;
6452 i386dynix_vec
) tb
="$tb i386dynix.lo aout32.lo" ;;
6453 i386freebsd_vec
) tb
="$tb i386freebsd.lo aout32.lo" ;;
6454 i386linux_vec
) tb
="$tb i386linux.lo aout32.lo" ;;
6455 i386lynx_aout_vec
) tb
="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
6456 i386lynx_coff_vec
) tb
="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
6457 i386mach3_vec
) tb
="$tb i386mach3.lo aout32.lo" ;;
6458 i386msdos_vec
) tb
="$tb i386msdos.lo" ;;
6459 i386netbsd_vec
) tb
="$tb i386netbsd.lo aout32.lo" ;;
6460 i386os9k_vec
) tb
="$tb i386os9k.lo aout32.lo" ;;
6461 i386pe_vec
) tb
="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
6462 i386pei_vec
) tb
="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
6463 i860coff_vec
) tb
="$tb coff-i860.lo cofflink.lo" ;;
6464 icoff_big_vec
) tb
="$tb coff-i960.lo cofflink.lo" ;;
6465 icoff_little_vec
) tb
="$tb coff-i960.lo cofflink.lo" ;;
6466 ieee_vec
) tb
="$tb ieee.lo" ;;
6467 m68k4knetbsd_vec
) tb
="$tb m68k4knetbsd.lo aout32.lo" ;;
6468 m68kaux_coff_vec
) tb
="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
6469 m68kcoff_vec
) tb
="$tb coff-m68k.lo cofflink.lo" ;;
6470 m68kcoffun_vec
) tb
="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
6471 m68klinux_vec
) tb
="$tb m68klinux.lo aout32.lo" ;;
6472 m68klynx_aout_vec
) tb
="$tb m68klynx.lo lynx-core.lo aout32.lo" ;;
6473 m68klynx_coff_vec
) tb
="$tb cf-m68klynx.lo coff-m68k.lo cofflink.lo lynx-core.lo" ;;
6474 m68knetbsd_vec
) tb
="$tb m68knetbsd.lo aout32.lo" ;;
6475 m68ksysvcoff_vec
) tb
="$tb coff-svm68k.lo cofflink.lo" ;;
6476 m88kbcs_vec
) tb
="$tb coff-m88k.lo" ;;
6477 m88kmach3_vec
) tb
="$tb m88kmach3.lo aout32.lo" ;;
6478 mach_o_be_vec
) tb
="$tb mach-o.lo" ;;
6479 mach_o_le_vec
) tb
="$tb mach-o.lo" ;;
6480 mach_o_fat_vec
) tb
="$tb mach-o.lo" ;;
6481 mcore_pe_big_vec
) tb
="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
6482 mcore_pe_little_vec
) tb
="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
6483 mcore_pei_big_vec
) tb
="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
6484 mcore_pei_little_vec
) tb
="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
6485 mipslpe_vec
) tb
="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
6486 mipslpei_vec
) tb
="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
6487 newsos3_vec
) tb
="$tb newsos3.lo aout32.lo" ;;
6488 nlm32_alpha_vec
) tb
="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size
=64 ;;
6489 nlm32_i386_vec
) tb
="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
6490 nlm32_powerpc_vec
) tb
="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
6491 nlm32_sparc_vec
) tb
="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
6492 or32coff_big_vec
) tb
="$tb coff-or32.lo cofflink.lo" ;;
6493 pc532machaout_vec
) tb
="$tb pc532-mach.lo aout-ns32k.lo" ;;
6494 pc532netbsd_vec
) tb
="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
6495 pef_vec
) tb
="$tb pef.lo" ;;
6496 pef_xlib_vec
) tb
="$tb pef.lo" ;;
6497 pdp11_aout_vec
) tb
="$tb pdp11.lo" ;;
6498 pmac_xcoff_vec
) tb
="$tb coff-rs6000.lo xcofflink.lo" ;;
6499 ppcboot_vec
) tb
="$tb ppcboot.lo" ;;
6500 riscix_vec
) tb
="$tb aout32.lo riscix.lo" ;;
6501 rs6000coff64_vec
) tb
="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size
=64 ;;
6502 rs6000coff_vec
) tb
="$tb coff-rs6000.lo xcofflink.lo" ;;
6503 shcoff_small_vec
) tb
="$tb coff-sh.lo cofflink.lo" ;;
6504 shcoff_vec
) tb
="$tb coff-sh.lo cofflink.lo" ;;
6505 shlcoff_small_vec
) tb
="$tb coff-sh.lo cofflink.lo" ;;
6506 shlcoff_vec
) tb
="$tb coff-sh.lo cofflink.lo" ;;
6507 shlpe_vec
) tb
="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
6508 shlpei_vec
) tb
="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
6509 som_vec
) tb
="$tb som.lo" ;;
6510 sparccoff_vec
) tb
="$tb coff-sparc.lo" ;;
6511 sparcle_aout_vec
) tb
="$tb aout-sparcle.lo aout32.lo" ;;
6512 sparclinux_vec
) tb
="$tb sparclinux.lo aout32.lo" ;;
6513 sparclynx_aout_vec
) tb
="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
6514 sparclynx_coff_vec
) tb
="$tb cf-sparclynx.lo lynx-core.lo" ;;
6515 sparcnetbsd_vec
) tb
="$tb sparcnetbsd.lo aout32.lo" ;;
6516 sunos_big_vec
) tb
="$tb sunos.lo aout32.lo" ;;
6517 sym_vec
) tb
="$tb xsym.lo" ;;
6518 tic30_aout_vec
) tb
="$tb aout-tic30.lo" ;;
6519 tic30_coff_vec
) tb
="$tb coff-tic30.lo" ;;
6520 tic4x_coff0_vec
) tb
="$tb coff-tic4x.lo" ;;
6521 tic4x_coff0_beh_vec
) tb
="$tb coff-tic4x.lo" ;;
6522 tic4x_coff1_vec
) tb
="$tb coff-tic4x.lo" ;;
6523 tic4x_coff1_beh_vec
) tb
="$tb coff-tic4x.lo" ;;
6524 tic4x_coff2_vec
) tb
="$tb coff-tic4x.lo" ;;
6525 tic4x_coff2_beh_vec
) tb
="$tb coff-tic4x.lo" ;;
6526 tic54x_coff0_beh_vec
) tb
="$tb coff-tic54x.lo" ;;
6527 tic54x_coff0_vec
) tb
="$tb coff-tic54x.lo" ;;
6528 tic54x_coff1_beh_vec
) tb
="$tb coff-tic54x.lo" ;;
6529 tic54x_coff1_vec
) tb
="$tb coff-tic54x.lo" ;;
6530 tic54x_coff2_beh_vec
) tb
="$tb coff-tic54x.lo" ;;
6531 tic54x_coff2_vec
) tb
="$tb coff-tic54x.lo" ;;
6532 tic80coff_vec
) tb
="$tb coff-tic80.lo cofflink.lo" ;;
6533 vaxnetbsd_vec
) tb
="$tb vaxnetbsd.lo aout32.lo" ;;
6534 vax1knetbsd_vec
) tb
="$tb vax1knetbsd.lo aout32.lo" ;;
6535 vaxbsd_vec
) tb
="$tb vaxbsd.lo aout32.lo" ;;
6536 versados_vec
) tb
="$tb versados.lo" ;;
6537 vms_alpha_vec
) tb
="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size
=64 ;;
6538 vms_vax_vec
) tb
="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
6539 w65_vec
) tb
="$tb coff-w65.lo reloc16.lo" ;;
6540 we32kcoff_vec
) tb
="$tb coff-we32k.lo" ;;
6541 z8kcoff_vec
) tb
="$tb coff-z8k.lo reloc16.lo" ;;
6543 # These appear out of order in targets.c
6544 srec_vec
) tb
="$tb srec.lo" ;;
6545 symbolsrec_vec
) tb
="$tb srec.lo" ;;
6546 tekhex_vec
) tb
="$tb tekhex.lo" ;;
6547 cisco_core_big_vec
) tb
="$tb cisco-core.lo" ;;
6548 cisco_core_little_vec
) tb
="$tb cisco-core.lo" ;;
6551 *) { echo "configure: error: *** unknown target vector $vec" 1>&2; exit 1; } ;;
6554 if test ${target_size} = 64; then
6557 if test x
"${vec}" = x
"${defvec}"; then
6558 bfd_default_target_size
=${target_size}
6562 # Target architecture .o files.
6563 # A couple of CPUs use shorter file names to avoid problems on DOS
6565 ta
=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
6567 # Weed out duplicate .o files.
6589 if test x
${all_targets} = xtrue
; then
6590 bfd_backends
="${bfd_backends}"' $(ALL_BACKENDS)'
6591 bfd_machines
="${bfd_machines}"' $(ALL_MACHINES)'
6595 test -n "$assocvecs" &&
6596 assocvecs
=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
6597 else # all_targets is true
6598 # Only set these if they will be nonempty, for the clever echo.
6601 test -n "$selvecs" &&
6602 havevecs
=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
6603 test -n "$selvecs" &&
6604 selvecs
=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
6605 test -n "$selarchs" &&
6606 selarchs
=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
6607 fi # all_targets is true
6609 case ${host64}-${target64}-${want64} in
6612 bfd_libs
='$(BFD64_LIBS) $(BFD32_LIBS)'
6613 all_backends
='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
6614 if test $BFD_HOST_64_BIT_DEFINED = 0; then
6615 echo "configure: warning: You have requested a 64 bit BFD configuration, but" 1>&2
6616 echo "configure: warning: your compiler may not have a 64 bit integral type" 1>&2
6618 if test -n "$GCC" ; then
6620 echo $ac_n "checking for gcc version with buggy 64-bit support""... $ac_c" 1>&6
6621 echo "configure:6622: checking for gcc version with buggy 64-bit support" >&5
6622 # Add more tests for gcc versions with non-working 64-bit support here.
6623 cat > conftest.
$ac_ext <<EOF
6624 #line 6625 "configure"
6625 #include "confdefs.h"
6626 :__GNUC__:__GNUC_MINOR__:__i386__:
6628 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6629 egrep ": 2 : 91 : 1 :" >/dev
/null
2>&1; then
6632 echo "$ac_t""yes: egcs-1.1.2 on ix86 spotted" 1>&6
6635 echo "$ac_t""no" 1>&6
6639 if test $bad_64bit_gcc = yes ; then
6640 { echo "configure: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" 1>&2; exit 1; }
6646 bfd_libs
='$(BFD32_LIBS)'
6647 all_backends
='$(BFD32_BACKENDS)'
6658 # Determine the host dependant file_ptr a.k.a. off_t type. In order
6659 # prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
6660 # fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
6661 # Hopefully a reasonable assumption since fseeko et.al. should be
6662 # upward compatible.
6663 for ac_func
in ftello ftello64 fseeko fseeko64
6665 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6666 echo "configure:6667: checking for $ac_func" >&5
6667 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6668 echo $ac_n "(cached) $ac_c" 1>&6
6670 cat > conftest.
$ac_ext <<EOF
6671 #line 6672 "configure"
6672 #include "confdefs.h"
6673 /* System header to define __stub macros and hopefully few prototypes,
6674 which can conflict with char $ac_func(); below. */
6676 /* Override any gcc2 internal prototype to avoid an error. */
6677 /* We use char because int might match the return type of a gcc2
6678 builtin and then its argument prototype would still apply. */
6683 /* The GNU C library defines this for functions which it implements
6684 to always fail with ENOSYS. Some functions are actually named
6685 something starting with __ and the normal name is an alias. */
6686 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6694 if { (eval echo configure
:6695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6696 eval "ac_cv_func_$ac_func=yes"
6698 echo "configure: failed program was:" >&5
6699 cat conftest.
$ac_ext >&5
6701 eval "ac_cv_func_$ac_func=no"
6706 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6707 echo "$ac_t""yes" 1>&6
6708 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6709 cat >> confdefs.h
<<EOF
6710 #define $ac_tr_func 1
6714 echo "$ac_t""no" 1>&6
6718 if test x
"$ac_cv_func_ftello" = xyes
-a x
"$ac_cv_func_fseeko" = xyes
; then
6719 echo $ac_n "checking size of off_t""... $ac_c" 1>&6
6720 echo "configure:6721: checking size of off_t" >&5
6721 if eval "test \"`echo '$''{'ac_cv_sizeof_off_t'+set}'`\" = set"; then
6722 echo $ac_n "(cached) $ac_c" 1>&6
6724 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
6725 cat > conftest.
$ac_ext <<EOF
6726 #line 6727 "configure"
6727 #include "confdefs.h"
6728 #include "confdefs.h"
6729 #include <sys/types.h>
6733 switch (0) case 0: case (sizeof (off_t) == $ac_size):;
6736 if { (eval echo configure
:6737: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6738 ac_cv_sizeof_off_t
=$ac_size
6740 echo "configure: failed program was:" >&5
6741 cat conftest.
$ac_ext >&5
6744 if test x
$ac_cv_sizeof_off_t != x
; then break; fi
6749 if test x
$ac_cv_sizeof_off_t = x
; then
6750 { echo "configure: error: cannot determine a size for off_t" 1>&2; exit 1; }
6752 echo "$ac_t""$ac_cv_sizeof_off_t" 1>&6
6753 cat >> confdefs.h
<<EOF
6754 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
6759 echo $ac_n "checking file_ptr type""... $ac_c" 1>&6
6760 echo "configure:6761: checking file_ptr type" >&5
6762 bfd_ufile_ptr
="unsigned long"
6763 if test x
"$ac_cv_func_ftello64" = xyes
-a x
"$ac_cv_func_fseeko64" = xyes \
6764 -o x
"${ac_cv_sizeof_off_t}" = x8
; then
6765 bfd_file_ptr
=BFD_HOST_64_BIT
6766 bfd_ufile_ptr
=BFD_HOST_U_64_BIT
6768 echo "$ac_t""$bfd_file_ptr" 1>&6
6774 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
6775 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
6776 test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
6777 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
6778 test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
6781 for ac_hdr
in stdlib.h unistd.h sys
/stat.h sys
/types.h
6783 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6784 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6785 echo "configure:6786: checking for $ac_hdr" >&5
6786 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6787 echo $ac_n "(cached) $ac_c" 1>&6
6789 cat > conftest.
$ac_ext <<EOF
6790 #line 6791 "configure"
6791 #include "confdefs.h"
6794 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6795 { (eval echo configure
:6796: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6796 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6797 if test -z "$ac_err"; then
6799 eval "ac_cv_header_$ac_safe=yes"
6802 echo "configure: failed program was:" >&5
6803 cat conftest.
$ac_ext >&5
6805 eval "ac_cv_header_$ac_safe=no"
6809 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6810 echo "$ac_t""yes" 1>&6
6811 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6812 cat >> confdefs.h
<<EOF
6813 #define $ac_tr_hdr 1
6817 echo "$ac_t""no" 1>&6
6821 for ac_func
in getpagesize
6823 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6824 echo "configure:6825: checking for $ac_func" >&5
6825 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6826 echo $ac_n "(cached) $ac_c" 1>&6
6828 cat > conftest.
$ac_ext <<EOF
6829 #line 6830 "configure"
6830 #include "confdefs.h"
6831 /* System header to define __stub macros and hopefully few prototypes,
6832 which can conflict with char $ac_func(); below. */
6834 /* Override any gcc2 internal prototype to avoid an error. */
6835 /* We use char because int might match the return type of a gcc2
6836 builtin and then its argument prototype would still apply. */
6841 /* The GNU C library defines this for functions which it implements
6842 to always fail with ENOSYS. Some functions are actually named
6843 something starting with __ and the normal name is an alias. */
6844 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6852 if { (eval echo configure
:6853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6854 eval "ac_cv_func_$ac_func=yes"
6856 echo "configure: failed program was:" >&5
6857 cat conftest.
$ac_ext >&5
6859 eval "ac_cv_func_$ac_func=no"
6864 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6865 echo "$ac_t""yes" 1>&6
6866 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6867 cat >> confdefs.h
<<EOF
6868 #define $ac_tr_func 1
6872 echo "$ac_t""no" 1>&6
6876 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
6877 echo "configure:6878: checking for working mmap" >&5
6878 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
6879 echo $ac_n "(cached) $ac_c" 1>&6
6881 if test "$cross_compiling" = yes; then
6882 ac_cv_func_mmap_fixed_mapped
=no
6884 cat > conftest.
$ac_ext <<EOF
6885 #line 6886 "configure"
6886 #include "confdefs.h"
6888 /* Thanks to Mike Haertel and Jim Avera for this test.
6889 Here is a matrix of mmap possibilities:
6890 mmap private not fixed
6891 mmap private fixed at somewhere currently unmapped
6892 mmap private fixed at somewhere already mapped
6893 mmap shared not fixed
6894 mmap shared fixed at somewhere currently unmapped
6895 mmap shared fixed at somewhere already mapped
6896 For private mappings, we should verify that changes cannot be read()
6897 back from the file, nor mmap's back from the file at a different
6898 address. (There have been systems where private was not correctly
6899 implemented like the infamous i386 svr4.0, and systems where the
6900 VM page cache was not coherent with the filesystem buffer cache
6901 like early versions of FreeBSD and possibly contemporary NetBSD.)
6902 For shared mappings, we should conversely verify that changes get
6903 propogated back to all the places they're supposed to be.
6905 Grep wants private fixed already mapped.
6906 The main things grep needs to know about mmap are:
6907 * does it exist and is it safe to write into the mmap'd area
6908 * how to use it (BSD variants) */
6909 #include <sys/types.h>
6911 #include <sys/mman.h>
6913 #if HAVE_SYS_TYPES_H
6914 # include <sys/types.h>
6918 # include <stdlib.h>
6922 # include <sys/stat.h>
6926 # include <unistd.h>
6929 /* This mess was copied from the GNU getpagesize.h. */
6930 #ifndef HAVE_GETPAGESIZE
6932 /* Assume that all systems that can run configure have sys/param.h. */
6933 # ifndef HAVE_SYS_PARAM_H
6934 # define HAVE_SYS_PARAM_H 1
6937 # ifdef _SC_PAGESIZE
6938 # define getpagesize() sysconf(_SC_PAGESIZE)
6939 # else /* no _SC_PAGESIZE */
6940 # ifdef HAVE_SYS_PARAM_H
6941 # include <sys/param.h>
6942 # ifdef EXEC_PAGESIZE
6943 # define getpagesize() EXEC_PAGESIZE
6944 # else /* no EXEC_PAGESIZE */
6946 # define getpagesize() NBPG * CLSIZE
6949 # endif /* no CLSIZE */
6950 # else /* no NBPG */
6952 # define getpagesize() NBPC
6953 # else /* no NBPC */
6955 # define getpagesize() PAGESIZE
6956 # endif /* PAGESIZE */
6957 # endif /* no NBPC */
6958 # endif /* no NBPG */
6959 # endif /* no EXEC_PAGESIZE */
6960 # else /* no HAVE_SYS_PARAM_H */
6961 # define getpagesize() 8192 /* punt totally */
6962 # endif /* no HAVE_SYS_PARAM_H */
6963 # endif /* no _SC_PAGESIZE */
6965 #endif /* no HAVE_GETPAGESIZE */
6968 extern "C" { void *malloc(unsigned); }
6976 char *data, *data2, *data3;
6980 pagesize = getpagesize();
6983 * First, make a file with some known garbage in it.
6985 data = malloc(pagesize);
6988 for (i = 0; i < pagesize; ++i)
6989 *(data + i) = rand();
6991 fd = creat("conftestmmap", 0600);
6994 if (write(fd, data, pagesize) != pagesize)
6999 * Next, try to mmap the file at a fixed address which
7000 * already has something else allocated at it. If we can,
7001 * also make sure that we see the same garbage.
7003 fd = open("conftestmmap", O_RDWR);
7006 data2 = malloc(2 * pagesize);
7009 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
7010 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
7011 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7013 for (i = 0; i < pagesize; ++i)
7014 if (*(data + i) != *(data2 + i))
7018 * Finally, make sure that changes to the mapped area
7019 * do not percolate back to the file as seen by read().
7020 * (This is a bug on some variants of i386 svr4.0.)
7022 for (i = 0; i < pagesize; ++i)
7023 *(data2 + i) = *(data2 + i) + 1;
7024 data3 = malloc(pagesize);
7027 if (read(fd, data3, pagesize) != pagesize)
7029 for (i = 0; i < pagesize; ++i)
7030 if (*(data + i) != *(data3 + i))
7033 unlink("conftestmmap");
7038 if { (eval echo configure
:7039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
7040 ac_cv_func_mmap_fixed_mapped
=yes
7042 echo "configure: failed program was:" >&5
7043 cat conftest.
$ac_ext >&5
7045 ac_cv_func_mmap_fixed_mapped
=no
7052 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
7053 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7054 cat >> confdefs.h
<<\EOF
7060 for ac_func
in madvise mprotect
7062 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7063 echo "configure:7064: checking for $ac_func" >&5
7064 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7065 echo $ac_n "(cached) $ac_c" 1>&6
7067 cat > conftest.
$ac_ext <<EOF
7068 #line 7069 "configure"
7069 #include "confdefs.h"
7070 /* System header to define __stub macros and hopefully few prototypes,
7071 which can conflict with char $ac_func(); below. */
7073 /* Override any gcc2 internal prototype to avoid an error. */
7074 /* We use char because int might match the return type of a gcc2
7075 builtin and then its argument prototype would still apply. */
7080 /* The GNU C library defines this for functions which it implements
7081 to always fail with ENOSYS. Some functions are actually named
7082 something starting with __ and the normal name is an alias. */
7083 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7091 if { (eval echo configure
:7092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7093 eval "ac_cv_func_$ac_func=yes"
7095 echo "configure: failed program was:" >&5
7096 cat conftest.
$ac_ext >&5
7098 eval "ac_cv_func_$ac_func=no"
7103 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7104 echo "$ac_t""yes" 1>&6
7105 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7106 cat >> confdefs.h
<<EOF
7107 #define $ac_tr_func 1
7111 echo "$ac_t""no" 1>&6
7115 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
7116 true
+yes ) cat >> confdefs.h
<<\EOF
7122 rm -f doc
/config.status
7124 cat > confcache
<<\EOF
7125 # This file is a shell script that caches the results of configure
7126 # tests run on this system so they can be shared between configure
7127 # scripts and configure runs. It is not useful on other systems.
7128 # If it contains results you don't want to keep, you may remove or edit it.
7130 # By default, configure uses ./config.cache as the cache file,
7131 # creating it if it does not exist already. You can give configure
7132 # the --cache-file=FILE option to use a different cache file; that is
7133 # what configure does when it calls configure scripts in
7134 # subdirectories, so they share the cache.
7135 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7136 # config.status only pays attention to the cache file if you give it the
7137 # --recheck option to rerun configure.
7140 # The following way of writing the cache mishandles newlines in values,
7141 # but we know of no workaround that is simple, portable, and efficient.
7142 # So, don't put newlines in cache variables' values.
7143 # Ultrix sh set writes to stderr and can't be redirected directly,
7144 # and sets the high bit in the cache file unless we assign to the vars.
7146 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7148 # `set' does not quote correctly, so add quotes (double-quote substitution
7149 # turns \\\\ into \\, and sed turns \\ into \).
7151 -e "s/'/'\\\\''/g" \
7152 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7155 # `set' quotes correctly as required by POSIX, so do not add quotes.
7156 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7159 if cmp -s $cache_file confcache
; then
7162 if test -w $cache_file; then
7163 echo "updating cache $cache_file"
7164 cat confcache
> $cache_file
7166 echo "not updating unwritable cache $cache_file"
7171 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7173 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7174 # Let make expand exec_prefix.
7175 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7177 # Any assignment to VPATH causes Sun make to only execute
7178 # the first set of double-colon rules, so remove it if not needed.
7179 # If there is a colon in the path, we need to keep it.
7180 if test "x$srcdir" = x.
; then
7181 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
7184 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7186 DEFS
=-DHAVE_CONFIG_H
7188 # Without the "./", some shells look in PATH for config.status.
7189 : ${CONFIG_STATUS=./config.status}
7191 echo creating
$CONFIG_STATUS
7192 rm -f $CONFIG_STATUS
7193 cat > $CONFIG_STATUS <<EOF
7195 # Generated automatically by configure.
7196 # Run this file to recreate the current configuration.
7197 # This directory was configured as follows,
7198 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7200 # $0 $ac_configure_args
7202 # Compiler output produced by configure, useful for debugging
7203 # configure, is in ./config.log if it exists.
7205 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7208 case "\$ac_option" in
7209 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7210 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7211 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7212 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7213 echo "$CONFIG_STATUS generated by autoconf version 2.13"
7215 -help | --help | --hel | --he | --h)
7216 echo "\$ac_cs_usage"; exit 0 ;;
7217 *) echo "\$ac_cs_usage"; exit 1 ;;
7221 ac_given_srcdir=$srcdir
7222 ac_given_INSTALL="$INSTALL"
7224 trap 'rm -fr `echo "Makefile doc/Makefile bfd-in3.h:bfd-in2.h bfdver.h:version.h po/Makefile.in:po/Make-in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7226 cat >> $CONFIG_STATUS <<EOF
7228 # Protect against being on the right side of a sed subst in config.status.
7229 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7230 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7234 s%@CFLAGS@%$CFLAGS%g
7235 s%@CPPFLAGS@%$CPPFLAGS%g
7236 s%@CXXFLAGS@%$CXXFLAGS%g
7237 s%@FFLAGS@%$FFLAGS%g
7239 s%@LDFLAGS@%$LDFLAGS%g
7241 s%@exec_prefix@%$exec_prefix%g
7242 s%@prefix@%$prefix%g
7243 s%@program_transform_name@%$program_transform_name%g
7244 s%@bindir@%$bindir%g
7245 s%@sbindir@%$sbindir%g
7246 s%@libexecdir@%$libexecdir%g
7247 s%@datadir@%$datadir%g
7248 s%@sysconfdir@%$sysconfdir%g
7249 s%@sharedstatedir@%$sharedstatedir%g
7250 s%@localstatedir@%$localstatedir%g
7251 s%@libdir@%$libdir%g
7252 s%@includedir@%$includedir%g
7253 s%@oldincludedir@%$oldincludedir%g
7254 s%@infodir@%$infodir%g
7255 s%@mandir@%$mandir%g
7257 s%@host_alias@%$host_alias%g
7258 s%@host_cpu@%$host_cpu%g
7259 s%@host_vendor@%$host_vendor%g
7260 s%@host_os@%$host_os%g
7261 s%@target@%$target%g
7262 s%@target_alias@%$target_alias%g
7263 s%@target_cpu@%$target_cpu%g
7264 s%@target_vendor@%$target_vendor%g
7265 s%@target_os@%$target_os%g
7267 s%@build_alias@%$build_alias%g
7268 s%@build_cpu@%$build_cpu%g
7269 s%@build_vendor@%$build_vendor%g
7270 s%@build_os@%$build_os%g
7271 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7272 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7273 s%@INSTALL_DATA@%$INSTALL_DATA%g
7274 s%@PACKAGE@%$PACKAGE%g
7275 s%@VERSION@%$VERSION%g
7276 s%@ACLOCAL@%$ACLOCAL%g
7277 s%@AUTOCONF@%$AUTOCONF%g
7278 s%@AUTOMAKE@%$AUTOMAKE%g
7279 s%@AUTOHEADER@%$AUTOHEADER%g
7280 s%@MAKEINFO@%$MAKEINFO%g
7281 s%@SET_MAKE@%$SET_MAKE%g
7282 s%@bfd_version@%$bfd_version%g
7283 s%@bfd_version_string@%$bfd_version_string%g
7285 s%@RANLIB@%$RANLIB%g
7288 s%@OBJEXT@%$OBJEXT%g
7289 s%@EXEEXT@%$EXEEXT%g
7291 s%@LIBTOOL@%$LIBTOOL%g
7292 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
7293 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
7294 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
7296 s%@INSTALL_LIBBFD_TRUE@%$INSTALL_LIBBFD_TRUE%g
7297 s%@INSTALL_LIBBFD_FALSE@%$INSTALL_LIBBFD_FALSE%g
7298 s%@bfdlibdir@%$bfdlibdir%g
7299 s%@bfdincludedir@%$bfdincludedir%g
7301 s%@ALLOCA@%$ALLOCA%g
7302 s%@USE_NLS@%$USE_NLS%g
7303 s%@MSGFMT@%$MSGFMT%g
7304 s%@GMSGFMT@%$GMSGFMT%g
7305 s%@XGETTEXT@%$XGETTEXT%g
7306 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
7307 s%@CATALOGS@%$CATALOGS%g
7308 s%@CATOBJEXT@%$CATOBJEXT%g
7309 s%@DATADIRNAME@%$DATADIRNAME%g
7310 s%@GMOFILES@%$GMOFILES%g
7311 s%@INSTOBJEXT@%$INSTOBJEXT%g
7312 s%@INTLDEPS@%$INTLDEPS%g
7313 s%@INTLLIBS@%$INTLLIBS%g
7314 s%@INTLOBJS@%$INTLOBJS%g
7315 s%@POFILES@%$POFILES%g
7317 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
7319 s%@GT_YES@%$GT_YES%g
7320 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
7322 s%@HDEFINES@%$HDEFINES%g
7323 s%@BFD_HOST_64BIT_LONG@%$BFD_HOST_64BIT_LONG%g
7324 s%@BFD_HOST_LONG_LONG@%$BFD_HOST_LONG_LONG%g
7325 s%@BFD_HOST_64_BIT_DEFINED@%$BFD_HOST_64_BIT_DEFINED%g
7326 s%@BFD_HOST_64_BIT@%$BFD_HOST_64_BIT%g
7327 s%@BFD_HOST_U_64_BIT@%$BFD_HOST_U_64_BIT%g
7328 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
7329 s%@EXEEXT_FOR_BUILD@%$EXEEXT_FOR_BUILD%g
7330 s%@COREFILE@%$COREFILE%g
7331 s%@COREFLAG@%$COREFLAG%g
7332 s%@WIN32LDFLAGS@%$WIN32LDFLAGS%g
7333 s%@WIN32LIBADD@%$WIN32LIBADD%g
7334 s%@TDEFINES@%$TDEFINES%g
7335 s%@wordsize@%$wordsize%g
7336 s%@bfd_libs@%$bfd_libs%g
7337 s%@all_backends@%$all_backends%g
7338 s%@bfd_backends@%$bfd_backends%g
7339 s%@bfd_machines@%$bfd_machines%g
7340 s%@bfd_default_target_size@%$bfd_default_target_size%g
7341 s%@bfd_file_ptr@%$bfd_file_ptr%g
7342 s%@bfd_ufile_ptr@%$bfd_ufile_ptr%g
7343 s%@tdefaults@%$tdefaults%g
7348 cat >> $CONFIG_STATUS <<\EOF
7350 # Split the substitutions into bite-sized pieces for seds with
7351 # small command number limits, like on Digital OSF/1 and HP-UX.
7352 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
7353 ac_file
=1 # Number of current file.
7354 ac_beg
=1 # First line for current file.
7355 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
7358 while $ac_more_lines; do
7359 if test $ac_beg -gt 1; then
7360 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
7362 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
7364 if test ! -s conftest.s
$ac_file; then
7366 rm -f conftest.s
$ac_file
7368 if test -z "$ac_sed_cmds"; then
7369 ac_sed_cmds
="sed -f conftest.s$ac_file"
7371 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
7373 ac_file
=`expr $ac_file + 1`
7375 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
7378 if test -z "$ac_sed_cmds"; then
7383 cat >> $CONFIG_STATUS <<EOF
7385 CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile bfd-in3.h:bfd-in2.h bfdver.h:version.h po/Makefile.in:po/Make-in"}
7387 cat >> $CONFIG_STATUS <<\EOF
7388 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
7389 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7391 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
7392 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
7393 *) ac_file_in
="${ac_file}.in" ;;
7396 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7398 # Remove last slash and all that follows it. Not all systems have dirname.
7399 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7400 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
7401 # The file is in a subdirectory.
7402 test ! -d "$ac_dir" && mkdir
"$ac_dir"
7403 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
7404 # A "../" for each directory in $ac_dir_suffix.
7405 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7407 ac_dir_suffix
= ac_dots
=
7410 case "$ac_given_srcdir" in
7412 if test -z "$ac_dots"; then top_srcdir
=.
7413 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7414 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
7416 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7417 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
7420 case "$ac_given_INSTALL" in
7421 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
7422 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
7425 echo creating
"$ac_file"
7427 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7429 *Makefile
*) ac_comsub
="1i\\
7430 # $configure_input" ;;
7434 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7436 s%@configure_input@%$configure_input%g
7437 s%@srcdir@%$srcdir%g
7438 s%@top_srcdir@%$top_srcdir%g
7439 s%@INSTALL@%$INSTALL%g
7440 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
7444 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7445 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7447 # ac_d sets the value in "#define NAME VALUE" lines.
7448 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7449 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
7452 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7453 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7454 ac_uB
='\([ ]\)%\1#\2define\3'
7457 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7458 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7459 ac_eB
='$%\1#\2define\3'
7463 if test "${CONFIG_HEADERS+set}" != set; then
7465 cat >> $CONFIG_STATUS <<EOF
7466 CONFIG_HEADERS="config.h:config.in"
7468 cat >> $CONFIG_STATUS <<\EOF
7470 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
7471 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7473 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
7474 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
7475 *) ac_file_in
="${ac_file}.in" ;;
7478 echo creating
$ac_file
7480 rm -f conftest.frag conftest.
in conftest.out
7481 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7482 cat $ac_file_inputs > conftest.
in
7486 # Transform confdefs.h into a sed script conftest.vals that substitutes
7487 # the proper values into config.h.in to produce config.h. And first:
7488 # Protect against being on the right side of a sed subst in config.status.
7489 # Protect against being in an unquoted here document in config.status.
7491 cat > conftest.hdr
<<\EOF
7494 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7498 sed -n -f conftest.hdr confdefs.h > conftest.vals
7501 # This sed command replaces #undef with comments. This is necessary, for
7502 # example, in the case of _POSIX_SOURCE, which is predefined and required
7503 # on some systems where configure will not decide to define it.
7504 cat >> conftest.vals <<\EOF
7505 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7508 # Break up conftest.vals because some shells have a limit on
7509 # the size of here documents, and old seds have small limits too.
7514 ac_lines=`grep -c . conftest.vals
`
7515 # grep -c gives empty output for an empty file on some AIX systems.
7516 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7517 # Write a limited-size here document to conftest.frag.
7518 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7519 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7521 sed -f conftest.frag conftest.in > conftest.out
7523 mv conftest.out conftest.in
7525 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7527 mv conftest.tail conftest.vals
7531 cat >> $CONFIG_STATUS <<\EOF
7532 rm -f conftest.frag conftest.h
7533 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7534 cat conftest.in >> conftest.h
7536 if cmp -s $ac_file conftest.h 2>/dev/null; then
7537 echo "$ac_file is unchanged"
7540 # Remove last slash and all that follows it. Not all systems have dirname.
7541 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
7542 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7543 # The file is in a subdirectory.
7544 test ! -d "$ac_dir" && mkdir "$ac_dir"
7547 mv conftest.h $ac_file
7552 cat >> $CONFIG_STATUS <<EOF
7556 cat >> $CONFIG_STATUS <<\EOF
7557 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
7558 sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' -e '/BLD-POTFILES =/r po/BLD-POTFILES' po/Makefile.in > po/Makefile
7561 chmod +x $CONFIG_STATUS
7562 rm -fr confdefs* $ac_clean_files
7563 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1