3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12.1
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 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
17 --enable-shared build shared libraries [default=yes]"
19 --enable-static build static libraries [default=yes]"
21 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)"
23 --enable-targets alternative target configurations"
25 --enable-commonbfdlib build shared BFD/opcodes/libiberty library"
27 --with-mmap try using mmap for BFD input files if available"
29 --enable-maintainer-mode enable make rules and dependencies not useful
30 (and sometimes confusing) to the casual installer"
32 # Initialize some variables set by options.
33 # The variables have the same names as the options, with
34 # dashes changed to underlines.
36 cache_file
=.
/config.cache
45 program_transform_name
=s
,x
,x
,
53 bindir
='${exec_prefix}/bin'
54 sbindir
='${exec_prefix}/sbin'
55 libexecdir
='${exec_prefix}/libexec'
56 datadir
='${prefix}/share'
57 sysconfdir
='${prefix}/etc'
58 sharedstatedir
='${prefix}/com'
59 localstatedir
='${prefix}/var'
60 libdir
='${exec_prefix}/lib'
61 includedir
='${prefix}/include'
62 oldincludedir
='/usr/include'
63 infodir
='${prefix}/info'
64 mandir
='${prefix}/man'
66 # Initialize some other variables.
69 SHELL
=${CONFIG_SHELL-/bin/sh}
70 # Maximum number of lines to put in a shell here document.
77 # If the previous option needs an argument, assign it.
78 if test -n "$ac_prev"; then
79 eval "$ac_prev=\$ac_option"
85 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
89 # Accept the important Cygnus configure options, so we can diagnose typos.
93 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
95 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
96 bindir
="$ac_optarg" ;;
98 -build |
--build |
--buil |
--bui |
--bu)
100 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
101 build
="$ac_optarg" ;;
103 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
104 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
105 ac_prev
=cache_file
;;
106 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
107 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
108 cache_file
="$ac_optarg" ;;
110 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
112 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
114 datadir
="$ac_optarg" ;;
116 -disable-* |
--disable-*)
117 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
118 # Reject names that are not valid shell variable names.
119 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
120 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
122 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
123 eval "enable_${ac_feature}=no" ;;
125 -enable-* |
--enable-*)
126 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
127 # Reject names that are not valid shell variable names.
128 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
129 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
131 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
136 eval "enable_${ac_feature}='$ac_optarg'" ;;
138 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
139 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
140 |
--exec |
--exe |
--ex)
141 ac_prev
=exec_prefix
;;
142 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
143 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
144 |
--exec=* |
--exe=* |
--ex=*)
145 exec_prefix
="$ac_optarg" ;;
147 -gas |
--gas |
--ga |
--g)
148 # Obsolete; use --with-gas.
151 -help |
--help |
--hel |
--he)
152 # Omit some internal or obsolete options to make the list less imposing.
153 # This message is too long to be a string in the A/UX 3.1 sh.
155 Usage: configure [options] [host]
156 Options: [defaults in brackets after descriptions]
158 --cache-file=FILE cache test results in FILE
159 --help print this message
160 --no-create do not create output files
161 --quiet, --silent do not print \`checking...' messages
162 --version print the version of autoconf that created configure
163 Directory and file names:
164 --prefix=PREFIX install architecture-independent files in PREFIX
166 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
168 --bindir=DIR user executables in DIR [EPREFIX/bin]
169 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
170 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
171 --datadir=DIR read-only architecture-independent data in DIR
173 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
174 --sharedstatedir=DIR modifiable architecture-independent data in DIR
176 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
177 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
178 --includedir=DIR C header files in DIR [PREFIX/include]
179 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
180 --infodir=DIR info documentation in DIR [PREFIX/info]
181 --mandir=DIR man documentation in DIR [PREFIX/man]
182 --srcdir=DIR find the sources in DIR [configure dir or ..]
183 --program-prefix=PREFIX prepend PREFIX to installed program names
184 --program-suffix=SUFFIX append SUFFIX to installed program names
185 --program-transform-name=PROGRAM
186 run sed PROGRAM on installed program names
190 --build=BUILD configure for building on BUILD [BUILD=HOST]
191 --host=HOST configure for HOST [guessed]
192 --target=TARGET configure for TARGET [TARGET=HOST]
193 Features and packages:
194 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
195 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
196 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
197 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
198 --x-includes=DIR X include files are in DIR
199 --x-libraries=DIR X library files are in DIR
201 if test -n "$ac_help"; then
202 echo "--enable and --with options recognized:$ac_help"
206 -host |
--host |
--hos |
--ho)
208 -host=* |
--host=* |
--hos=* |
--ho=*)
211 -includedir |
--includedir |
--includedi |
--included |
--include \
212 |
--includ |
--inclu |
--incl |
--inc)
213 ac_prev
=includedir
;;
214 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
215 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
216 includedir
="$ac_optarg" ;;
218 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
220 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
221 infodir
="$ac_optarg" ;;
223 -libdir |
--libdir |
--libdi |
--libd)
225 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
226 libdir
="$ac_optarg" ;;
228 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
229 |
--libexe |
--libex |
--libe)
230 ac_prev
=libexecdir
;;
231 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
232 |
--libexe=* |
--libex=* |
--libe=*)
233 libexecdir
="$ac_optarg" ;;
235 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
236 |
--localstate |
--localstat |
--localsta |
--localst \
237 |
--locals |
--local |
--loca |
--loc |
--lo)
238 ac_prev
=localstatedir
;;
239 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
240 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
241 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
242 localstatedir
="$ac_optarg" ;;
244 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
246 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
247 mandir
="$ac_optarg" ;;
250 # Obsolete; use --without-fp.
253 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
257 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
258 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
261 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
262 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
263 |
--oldin |
--oldi |
--old |
--ol |
--o)
264 ac_prev
=oldincludedir
;;
265 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
266 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
267 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
268 oldincludedir
="$ac_optarg" ;;
270 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
272 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
273 prefix
="$ac_optarg" ;;
275 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
276 |
--program-pre |
--program-pr |
--program-p)
277 ac_prev
=program_prefix
;;
278 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
279 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
280 program_prefix
="$ac_optarg" ;;
282 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
283 |
--program-suf |
--program-su |
--program-s)
284 ac_prev
=program_suffix
;;
285 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
286 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
287 program_suffix
="$ac_optarg" ;;
289 -program-transform-name |
--program-transform-name \
290 |
--program-transform-nam |
--program-transform-na \
291 |
--program-transform-n |
--program-transform- \
292 |
--program-transform |
--program-transfor \
293 |
--program-transfo |
--program-transf \
294 |
--program-trans |
--program-tran \
295 |
--progr-tra |
--program-tr |
--program-t)
296 ac_prev
=program_transform_name
;;
297 -program-transform-name=* |
--program-transform-name=* \
298 |
--program-transform-nam=* |
--program-transform-na=* \
299 |
--program-transform-n=* |
--program-transform-=* \
300 |
--program-transform=* |
--program-transfor=* \
301 |
--program-transfo=* |
--program-transf=* \
302 |
--program-trans=* |
--program-tran=* \
303 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
304 program_transform_name
="$ac_optarg" ;;
306 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
307 |
-silent |
--silent |
--silen |
--sile |
--sil)
310 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
312 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
314 sbindir
="$ac_optarg" ;;
316 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
317 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
318 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
320 ac_prev
=sharedstatedir
;;
321 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
322 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
323 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
325 sharedstatedir
="$ac_optarg" ;;
327 -site |
--site |
--sit)
329 -site=* |
--site=* |
--sit=*)
332 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
334 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
335 srcdir
="$ac_optarg" ;;
337 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
338 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
339 ac_prev
=sysconfdir
;;
340 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
341 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
342 sysconfdir
="$ac_optarg" ;;
344 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
346 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
347 target
="$ac_optarg" ;;
349 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
352 -version |
--version |
--versio |
--versi |
--vers)
353 echo "configure generated by autoconf version 2.12.1"
357 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
358 # Reject names that are not valid shell variable names.
359 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
360 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
362 ac_package
=`echo $ac_package| sed 's/-/_/g'`
367 eval "with_${ac_package}='$ac_optarg'" ;;
369 -without-* |
--without-*)
370 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
371 # Reject names that are not valid shell variable names.
372 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
373 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
375 ac_package
=`echo $ac_package| sed 's/-/_/g'`
376 eval "with_${ac_package}=no" ;;
379 # Obsolete; use --with-x.
382 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
383 |
--x-incl |
--x-inc |
--x-in |
--x-i)
384 ac_prev
=x_includes
;;
385 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
386 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
387 x_includes
="$ac_optarg" ;;
389 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
390 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
391 ac_prev
=x_libraries
;;
392 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
393 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
394 x_libraries
="$ac_optarg" ;;
396 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
400 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
401 echo "configure: warning: $ac_option: invalid host type" 1>&2
403 if test "x$nonopt" != xNONE
; then
404 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
412 if test -n "$ac_prev"; then
413 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
416 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
418 # File descriptor usage:
421 # 2 errors and warnings
422 # 3 some systems may open it to /dev/tty
423 # 4 used on the Kubota Titan
424 # 6 checking for... messages and results
425 # 5 compiler messages saved in config.log
426 if test "$silent" = yes; then
434 This file contains any messages produced by compilers while
435 running configure, to aid debugging if configure makes a mistake.
438 # Strip out --no-create and --no-recursion so they do not pile up.
439 # Also quote any args containing shell metacharacters.
444 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
445 |
--no-cr |
--no-c) ;;
446 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
447 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
448 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
449 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
450 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
455 # Only set these to C if already set. These must not be set unconditionally
456 # because not all systems understand e.g. LANG=C (notably SCO).
457 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
458 # Non-C LC_CTYPE values break the ctype check.
459 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
460 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
461 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
462 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
464 # confdefs.h avoids OS command line length limits that DEFS can exceed.
465 rm -rf conftest
* confdefs.h
466 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
469 # A filename unique to this package, relative to the directory that
470 # configure is in, which we can look for to find out if srcdir is correct.
471 ac_unique_file
=libbfd.c
473 # Find the source files, if location was not specified.
474 if test -z "$srcdir"; then
475 ac_srcdir_defaulted
=yes
476 # Try the directory containing this script, then its parent.
478 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
479 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
481 if test ! -r $srcdir/$ac_unique_file; then
485 ac_srcdir_defaulted
=no
487 if test ! -r $srcdir/$ac_unique_file; then
488 if test "$ac_srcdir_defaulted" = yes; then
489 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
491 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
494 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
496 # Prefer explicitly selected file to automatically selected ones.
497 if test -z "$CONFIG_SITE"; then
498 if test "x$prefix" != xNONE
; then
499 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
501 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
504 for ac_site_file
in $CONFIG_SITE; do
505 if test -r "$ac_site_file"; then
506 echo "loading site script $ac_site_file"
511 if test -r "$cache_file"; then
512 echo "loading cache $cache_file"
515 echo "creating cache $cache_file"
520 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
521 ac_cpp
='$CPP $CPPFLAGS'
522 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
523 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
524 cross_compiling
=$ac_cv_prog_cc_cross
526 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
527 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
528 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
535 ac_n
= ac_c
='\c' ac_t
=
541 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
542 if test -f $ac_dir/install-sh
; then
544 ac_install_sh
="$ac_aux_dir/install-sh -c"
546 elif test -f $ac_dir/install.sh
; then
548 ac_install_sh
="$ac_aux_dir/install.sh -c"
552 if test -z "$ac_aux_dir"; then
553 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
555 ac_config_guess
=$ac_aux_dir/config.guess
556 ac_config_sub
=$ac_aux_dir/config.sub
557 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
560 # Do some error checking and defaulting for the host and target type.
562 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
565 # 1. You are not allowed to specify --host, --target, and nonopt at the
567 # 2. Host defaults to nonopt.
568 # 3. If nonopt is not specified, then host defaults to the current host,
569 # as determined by config.guess.
570 # 4. Target and build default to nonopt.
571 # 5. If nonopt is not specified, then target and build default to host.
573 # The aliases save the names the user supplied, while $host etc.
574 # will get canonicalized.
575 case $host---$target---$nonopt in
576 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
577 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
581 # Make sure we can run config.sub.
582 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
583 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
586 echo $ac_n "checking host system type""... $ac_c" 1>&6
587 echo "configure:588: checking host system type" >&5
590 case "$host_alias" in
594 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
595 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
597 *) host_alias
=$nonopt ;;
601 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
602 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
603 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
604 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
605 echo "$ac_t""$host" 1>&6
607 echo $ac_n "checking target system type""... $ac_c" 1>&6
608 echo "configure:609: checking target system type" >&5
611 case "$target_alias" in
614 NONE
) target_alias
=$host_alias ;;
615 *) target_alias
=$nonopt ;;
619 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
620 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
621 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
622 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
623 echo "$ac_t""$target" 1>&6
625 echo $ac_n "checking build system type""... $ac_c" 1>&6
626 echo "configure:627: checking build system type" >&5
629 case "$build_alias" in
632 NONE
) build_alias
=$host_alias ;;
633 *) build_alias
=$nonopt ;;
637 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
638 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
639 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
640 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
641 echo "$ac_t""$build" 1>&6
643 test "$host_alias" != "$target_alias" &&
644 test "$program_prefix$program_suffix$program_transform_name" = \
646 program_prefix
=${target_alias}-
648 # Extract the first word of "gcc", so it can be a program name with args.
649 set dummy gcc
; ac_word
=$2
650 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
651 echo "configure:652: checking for $ac_word" >&5
652 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
653 echo $ac_n "(cached) $ac_c" 1>&6
655 if test -n "$CC"; then
656 ac_cv_prog_CC
="$CC" # Let the user override the test.
658 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
659 for ac_dir
in $PATH; do
660 test -z "$ac_dir" && ac_dir
=.
661 if test -f $ac_dir/$ac_word; then
670 if test -n "$CC"; then
671 echo "$ac_t""$CC" 1>&6
673 echo "$ac_t""no" 1>&6
676 if test -z "$CC"; then
677 # Extract the first word of "cc", so it can be a program name with args.
678 set dummy cc
; ac_word
=$2
679 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
680 echo "configure:681: checking for $ac_word" >&5
681 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
682 echo $ac_n "(cached) $ac_c" 1>&6
684 if test -n "$CC"; then
685 ac_cv_prog_CC
="$CC" # Let the user override the test.
687 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
689 for ac_dir
in $PATH; do
690 test -z "$ac_dir" && ac_dir
=.
691 if test -f $ac_dir/$ac_word; then
692 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
701 if test $ac_prog_rejected = yes; then
702 # We found a bogon in the path, so make sure we never use it.
703 set dummy
$ac_cv_prog_CC
705 if test $# -gt 0; then
706 # We chose a different compiler from the bogus one.
707 # However, it has the same basename, so the bogon will be chosen
708 # first if we set CC to just the basename; use the full file name.
710 set dummy
"$ac_dir/$ac_word" "$@"
718 if test -n "$CC"; then
719 echo "$ac_t""$CC" 1>&6
721 echo "$ac_t""no" 1>&6
724 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
727 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
728 echo "configure:729: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
731 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
732 ac_cpp
='$CPP $CPPFLAGS'
733 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
734 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
735 cross_compiling
=$ac_cv_prog_cc_cross
737 cat > conftest.
$ac_ext <<EOF
738 #line 739 "configure"
739 #include "confdefs.h"
742 if { (eval echo configure
:743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
743 ac_cv_prog_cc_works
=yes
744 # If we can't run a trivial program, we are probably using a cross compiler.
745 if (.
/conftest
; exit) 2>/dev
/null
; then
746 ac_cv_prog_cc_cross
=no
748 ac_cv_prog_cc_cross
=yes
751 echo "configure: failed program was:" >&5
752 cat conftest.
$ac_ext >&5
753 ac_cv_prog_cc_works
=no
757 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
758 if test $ac_cv_prog_cc_works = no
; then
759 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
761 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
762 echo "configure:763: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
763 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
764 cross_compiling
=$ac_cv_prog_cc_cross
766 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
767 echo "configure:768: checking whether we are using GNU C" >&5
768 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
769 echo $ac_n "(cached) $ac_c" 1>&6
771 cat > conftest.c
<<EOF
776 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:777: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
783 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
785 if test $ac_cv_prog_gcc = yes; then
787 ac_test_CFLAGS
="${CFLAGS+set}"
788 ac_save_CFLAGS
="$CFLAGS"
790 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
791 echo "configure:792: checking whether ${CC-cc} accepts -g" >&5
792 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
793 echo $ac_n "(cached) $ac_c" 1>&6
795 echo 'void f(){}' > conftest.c
796 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
805 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
806 if test "$ac_test_CFLAGS" = set; then
807 CFLAGS
="$ac_save_CFLAGS"
808 elif test $ac_cv_prog_cc_g = yes; then
815 test "${CFLAGS+set}" = set || CFLAGS
="-g"
818 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
819 echo "configure:820: checking for POSIXized ISC" >&5
820 if test -d /etc
/conf
/kconfig.d
&&
821 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
823 echo "$ac_t""yes" 1>&6
824 ISC
=yes # If later tests want to check for ISC.
825 cat >> confdefs.h
<<\EOF
826 #define _POSIX_SOURCE 1
829 if test "$GCC" = yes; then
835 echo "$ac_t""no" 1>&6
840 # Find a good install program. We prefer a C program (faster),
841 # so one script is as good as another. But avoid the broken or
842 # incompatible versions:
843 # SysV /etc/install, /usr/sbin/install
844 # SunOS /usr/etc/install
847 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
848 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
849 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
850 # ./install, which can be erroneously created by make from ./install.sh.
851 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
852 echo "configure:853: checking for a BSD compatible install" >&5
853 if test -z "$INSTALL"; then
854 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
855 echo $ac_n "(cached) $ac_c" 1>&6
857 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
858 for ac_dir
in $PATH; do
859 # Account for people who put trailing slashes in PATH elements.
861 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
863 # OSF1 and SCO ODT 3.0 have their own names for install.
864 # Don't use installbsd from OSF since it installs stuff as root
866 for ac_prog
in ginstall scoinst
install; do
867 if test -f $ac_dir/$ac_prog; then
868 if test $ac_prog = install &&
869 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
870 # AIX install. It has an incompatible calling convention.
873 ac_cv_path_install
="$ac_dir/$ac_prog -c"
884 if test "${ac_cv_path_install+set}" = set; then
885 INSTALL
="$ac_cv_path_install"
887 # As a last resort, use the slow shell script. We don't cache a
888 # path for INSTALL within a source directory, because that will
889 # break other packages using the cache if that directory is
890 # removed, or if the path is relative.
891 INSTALL
="$ac_install_sh"
894 echo "$ac_t""$INSTALL" 1>&6
896 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
897 # It thinks the first close brace ends the variable substitution.
898 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
900 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
903 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
910 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
911 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
913 cat >> confdefs.h
<<EOF
914 #define PACKAGE "$PACKAGE"
917 cat >> confdefs.h
<<EOF
918 #define VERSION "$VERSION"
921 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
922 echo "configure:923: checking whether build environment is sane" >&5
925 echo timestamp
> conftestfile
926 # Do `set' in a subshell so we don't clobber the current shell's
927 # arguments. Must try -L first in case configure is actually a
928 # symlink; some systems play weird games with the mod time of symlinks
929 # (eg FreeBSD returns the mod time of the symlink's containing
932 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
933 if test "" = "X"; then
935 set X
`ls -t $srcdir/configure conftestfile`
937 test "$2" = conftestfile
943 { echo "configure: error: newly created file is older than distributed files!
944 Check your system clock" 1>&2; exit 1; }
947 echo "$ac_t""yes" 1>&6
948 if test "$program_transform_name" = s
,x
,x
,; then
949 program_transform_name
=
951 # Double any \ or $. echo might interpret backslashes.
952 cat <<\EOF_SED
> conftestsed
953 s
,\\,\\\\,g
; s
,\$
,$$
,g
955 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
958 test "$program_prefix" != NONE
&&
959 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
960 # Use a double $ so make ignores it.
961 test "$program_suffix" != NONE
&&
962 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
964 # sed with no file args requires a program.
965 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
967 missing_dir
=`cd $ac_aux_dir && pwd`
968 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
969 echo "configure:970: checking for working aclocal" >&5
970 # Run test in a subshell; some versions of sh will print an error if
971 # an executable is not found, even if stderr is redirected.
972 # Redirect stdin to placate older versions of autoconf. Sigh.
973 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
975 echo "$ac_t""found" 1>&6
977 ACLOCAL
="$missing_dir/missing aclocal"
978 echo "$ac_t""missing" 1>&6
981 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
982 echo "configure:983: checking for working autoconf" >&5
983 # Run test in a subshell; some versions of sh will print an error if
984 # an executable is not found, even if stderr is redirected.
985 # Redirect stdin to placate older versions of autoconf. Sigh.
986 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
988 echo "$ac_t""found" 1>&6
990 AUTOCONF
="$missing_dir/missing autoconf"
991 echo "$ac_t""missing" 1>&6
994 echo $ac_n "checking for working automake""... $ac_c" 1>&6
995 echo "configure:996: checking for working automake" >&5
996 # Run test in a subshell; some versions of sh will print an error if
997 # an executable is not found, even if stderr is redirected.
998 # Redirect stdin to placate older versions of autoconf. Sigh.
999 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
1001 echo "$ac_t""found" 1>&6
1003 AUTOMAKE
="$missing_dir/missing automake"
1004 echo "$ac_t""missing" 1>&6
1007 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1008 echo "configure:1009: checking for working autoheader" >&5
1009 # Run test in a subshell; some versions of sh will print an error if
1010 # an executable is not found, even if stderr is redirected.
1011 # Redirect stdin to placate older versions of autoconf. Sigh.
1012 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
1013 AUTOHEADER
=autoheader
1014 echo "$ac_t""found" 1>&6
1016 AUTOHEADER
="$missing_dir/missing autoheader"
1017 echo "$ac_t""missing" 1>&6
1020 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1021 echo "configure:1022: checking for working makeinfo" >&5
1022 # Run test in a subshell; some versions of sh will print an error if
1023 # an executable is not found, even if stderr is redirected.
1024 # Redirect stdin to placate older versions of autoconf. Sigh.
1025 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
1027 echo "$ac_t""found" 1>&6
1029 MAKEINFO
="$missing_dir/missing makeinfo"
1030 echo "$ac_t""missing" 1>&6
1033 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1034 echo "configure:1035: checking whether ${MAKE-make} sets \${MAKE}" >&5
1035 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1036 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1037 echo $ac_n "(cached) $ac_c" 1>&6
1039 cat > conftestmake
<<\EOF
1041 @
echo 'ac_maketemp="${MAKE}"'
1043 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1044 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1045 if test -n "$ac_maketemp"; then
1046 eval ac_cv_prog_make_
${ac_make}_set
=yes
1048 eval ac_cv_prog_make_
${ac_make}_set
=no
1052 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1053 echo "$ac_t""yes" 1>&6
1056 echo "$ac_t""no" 1>&6
1057 SET_MAKE
="MAKE=${MAKE-make}"
1061 if test $host != $build; then
1062 ac_tool_prefix
=${host_alias}-
1067 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1068 set dummy
${ac_tool_prefix}ar; ac_word
=$2
1069 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1070 echo "configure:1071: checking for $ac_word" >&5
1071 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1072 echo $ac_n "(cached) $ac_c" 1>&6
1074 if test -n "$AR"; then
1075 ac_cv_prog_AR
="$AR" # Let the user override the test.
1077 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1078 for ac_dir
in $PATH; do
1079 test -z "$ac_dir" && ac_dir
=.
1080 if test -f $ac_dir/$ac_word; then
1081 ac_cv_prog_AR
="${ac_tool_prefix}ar"
1086 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
1090 if test -n "$AR"; then
1091 echo "$ac_t""$AR" 1>&6
1093 echo "$ac_t""no" 1>&6
1098 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1099 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1100 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1101 echo "configure:1102: checking for $ac_word" >&5
1102 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1103 echo $ac_n "(cached) $ac_c" 1>&6
1105 if test -n "$RANLIB"; then
1106 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1108 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1109 for ac_dir
in $PATH; do
1110 test -z "$ac_dir" && ac_dir
=.
1111 if test -f $ac_dir/$ac_word; then
1112 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1119 RANLIB
="$ac_cv_prog_RANLIB"
1120 if test -n "$RANLIB"; then
1121 echo "$ac_t""$RANLIB" 1>&6
1123 echo "$ac_t""no" 1>&6
1127 if test -z "$ac_cv_prog_RANLIB"; then
1128 if test -n "$ac_tool_prefix"; then
1129 # Extract the first word of "ranlib", so it can be a program name with args.
1130 set dummy ranlib
; ac_word
=$2
1131 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1132 echo "configure:1133: checking for $ac_word" >&5
1133 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1134 echo $ac_n "(cached) $ac_c" 1>&6
1136 if test -n "$RANLIB"; then
1137 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1139 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1140 for ac_dir
in $PATH; do
1141 test -z "$ac_dir" && ac_dir
=.
1142 if test -f $ac_dir/$ac_word; then
1143 ac_cv_prog_RANLIB
="ranlib"
1148 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1151 RANLIB
="$ac_cv_prog_RANLIB"
1152 if test -n "$RANLIB"; then
1153 echo "$ac_t""$RANLIB" 1>&6
1155 echo "$ac_t""no" 1>&6
1164 libtool_enable_shared
=no
1166 # Extract the first word of "ranlib", so it can be a program name with args.
1167 set dummy ranlib
; ac_word
=$2
1168 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1169 echo "configure:1170: checking for $ac_word" >&5
1170 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1171 echo $ac_n "(cached) $ac_c" 1>&6
1173 if test -n "$RANLIB"; then
1174 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1176 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1177 for ac_dir
in $PATH; do
1178 test -z "$ac_dir" && ac_dir
=.
1179 if test -f $ac_dir/$ac_word; then
1180 ac_cv_prog_RANLIB
="ranlib"
1185 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1188 RANLIB
="$ac_cv_prog_RANLIB"
1189 if test -n "$RANLIB"; then
1190 echo "$ac_t""$RANLIB" 1>&6
1192 echo "$ac_t""no" 1>&6
1195 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1196 if test "${with_gnu_ld+set}" = set; then
1197 withval
="$with_gnu_ld"
1198 test "$withval" = no || with_gnu_ld
=yes
1205 if test "$ac_cv_prog_gcc" = yes; then
1206 # Check if gcc -print-prog-name=ld gives a path.
1207 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1208 echo "configure:1209: checking for ld used by GCC" >&5
1209 ac_prog
=`($CC -print-prog-name=ld) 2>&5`
1211 # Accept absolute paths.
1213 test -z "$LD" && LD
="$ac_prog"
1216 # If it fails, then pretend we aren't using GCC.
1220 # If it is relative, then search for the first ld in PATH.
1224 elif test "$with_gnu_ld" = yes; then
1225 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1226 echo "configure:1227: checking for GNU ld" >&5
1228 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1229 echo "configure:1230: checking for non-GNU ld" >&5
1231 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1232 echo $ac_n "(cached) $ac_c" 1>&6
1234 if test -z "$LD"; then
1235 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1236 for ac_dir
in $PATH; do
1237 test -z "$ac_dir" && ac_dir
=.
1238 if test -f "$ac_dir/$ac_prog"; then
1239 ac_cv_path_LD
="$ac_dir/$ac_prog"
1240 # Check to see if the program is GNU ld. I'd rather use --version,
1241 # but apparently some GNU ld's only accept -v.
1242 # Break only if it was the GNU/non-GNU ld that we prefer.
1243 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1244 test "$with_gnu_ld" != no
&& break
1246 test "$with_gnu_ld" != yes && break
1252 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
1257 if test -n "$LD"; then
1258 echo "$ac_t""$LD" 1>&6
1260 echo "$ac_t""no" 1>&6
1262 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1264 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1265 echo "configure:1266: checking if the linker ($LD) is GNU ld" >&5
1266 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1267 echo $ac_n "(cached) $ac_c" 1>&6
1269 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1270 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1271 ac_cv_prog_gnu_ld
=yes
1273 ac_cv_prog_gnu_ld
=no
1277 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1280 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1281 echo "configure:1282: checking for BSD-compatible nm" >&5
1282 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1283 echo $ac_n "(cached) $ac_c" 1>&6
1287 ac_cv_path_NM
="$NM" # Let the user override the test with a path.
1290 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1291 for ac_dir
in /usr
/ucb
/usr
/ccs
/bin
$PATH /bin
; do
1292 test -z "$ac_dir" && dir
=.
1293 if test -f $ac_dir/nm
; then
1294 # Check to see if the nm accepts a BSD-compat flag.
1295 # Adding the `sed 1!d' prevents false positives on HP-UX, which says:
1296 # nm: unknown option "B" ignored
1297 if ($ac_dir/nm
-B /dev
/null
2>&1 |
sed '1!d'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1298 ac_cv_path_NM
="$ac_dir/nm -B"
1299 elif ($ac_dir/nm
-p /dev
/null
2>&1 |
sed '1!d'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1300 ac_cv_path_NM
="$ac_dir/nm -p"
1302 ac_cv_path_NM
="$ac_dir/nm"
1308 test -z "$ac_cv_path_NM" && ac_cv_path_NM
=nm
1314 echo "$ac_t""$NM" 1>&6
1317 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1318 echo "configure:1319: checking whether ln -s works" >&5
1319 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1320 echo $ac_n "(cached) $ac_c" 1>&6
1323 if ln -s X conftestdata
2>/dev
/null
1326 ac_cv_prog_LN_S
="ln -s"
1331 LN_S
="$ac_cv_prog_LN_S"
1332 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1333 echo "$ac_t""yes" 1>&6
1335 echo "$ac_t""no" 1>&6
1345 # Always use our own libtool.
1346 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
1349 # Check whether --enable-shared or --disable-shared was given.
1350 if test "${enable_shared+set}" = set; then
1351 enableval
="$enable_shared"
1352 p
=${PACKAGE-bogus-package-name}
1353 case "$enableval" in
1354 yes) libtool_enable_shared
=yes ;;
1355 no
) libtool_enable_shared
=no
;;
1356 # The value of $p (aka $PACKAGE) is assumed to come from AM_INIT_AUTOMAKE.
1357 # If it didn't, it'll be `bogus-package-name', thus making this condition
1359 *$p*) libtool_enable_shared
=yes ;;
1360 *) libtool_enable_shared
=no
;;
1364 test -n "$libtool_enable_shared" && enable_shared
="$libtool_enable_shared"
1366 test "$enable_shared" = no
&& libtool_shared
=" --disable-shared"
1368 # Check whether --enable-static or --disable-static was given.
1369 if test "${enable_static+set}" = set; then
1370 enableval
="$enable_static"
1371 if test "$enableval" = no
; then
1372 libtool_enable_static
=no
1374 libtool_enable_static
=yes
1378 test -n "$libtool_enable_static" && enable_static
="$libtool_enable_static"
1380 test "$enable_static" = no
&& libtool_static
=" --disable-static"
1382 libtool_flags
="$libtool_shared$libtool_static"
1383 test "$silent" = yes && libtool_flags
="$libtool_flags --silent"
1384 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
1385 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
1387 # Some flags need to be propagated to the compiler or linker for good
1391 ac_save_CFLAGS
="$CFLAGS"
1393 for f
in -32 -64 -n32 ABI
-cckr -mips1 -mips2 -mips3 -mips4; do
1396 test -n "$SGI_ABI" && flag_passed
=yes
1397 if test "$flag_passed" = no
&& test "$ac_cv_prog_gcc" = yes; then
1398 # Choose the ABI flag according to GCC's specs.
1399 if $CC -dumpspecs 2>&1 |
sed '/^\*link:$/,/^$/!d' |
egrep -e '[ ]-32' >/dev
/null
; then
1408 if echo " $CC $CFLAGS " |
egrep -e "[ ]$f[ ]" > /dev
/null
; then
1415 CFLAGS
="$ac_save_CFLAGS"
1419 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1420 CFLAGS
="$CFLAGS -belf"
1424 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1425 CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
1426 LD
="$LD" NM
="$NM" RANLIB
="$RANLIB" LN_S
="$LN_S" \
1427 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
1428 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh
$host \
1429 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1432 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
1433 if test "${enable_64_bit_bfd+set}" = set; then
1434 enableval
="$enable_64_bit_bfd"
1435 case "${enableval}" in
1438 *) { echo "configure: error: bad value ${enableval} for 64-bit-bfd option" 1>&2; exit 1; } ;;
1443 # Check whether --enable-targets or --disable-targets was given.
1444 if test "${enable_targets+set}" = set; then
1445 enableval
="$enable_targets"
1446 case "${enableval}" in
1447 yes |
"") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
1449 no
) enable_targets
= ;;
1450 *) enable_targets
=$enableval ;;
1453 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
1454 if test "${enable_commonbfdlib+set}" = set; then
1455 enableval
="$enable_commonbfdlib"
1456 case "${enableval}" in
1457 yes) commonbfdlib
=true
;;
1458 no
) commonbfdlib
=false
;;
1459 *) { echo "configure: error: bad value ${enableval} for BFD commonbfdlib option" 1>&2; exit 1; } ;;
1462 # Check whether --with-mmap or --without-mmap was given.
1463 if test "${with_mmap+set}" = set; then
1464 withval
="$with_mmap"
1465 case "${withval}" in
1466 yes) want_mmap
=true
;;
1467 no
) want_mmap
=false
;;
1468 *) { echo "configure: error: bad value ${withval} for BFD with-mmap option" 1>&2; exit 1; } ;;
1478 if test -z "$target" ; then
1479 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
1481 if test "$program_transform_name" = s
,x
,x
,; then
1482 program_transform_name
=
1484 # Double any \ or $. echo might interpret backslashes.
1485 cat <<\EOF_SED
> conftestsed
1486 s
,\\,\\\\,g
; s
,\$
,$$
,g
1488 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
1491 test "$program_prefix" != NONE
&&
1492 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
1493 # Use a double $ so make ignores it.
1494 test "$program_suffix" != NONE
&&
1495 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
1497 # sed with no file args requires a program.
1498 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
1501 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1502 echo "configure:1503: checking whether to enable maintainer-specific portions of Makefiles" >&5
1503 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1504 if test "${enable_maintainer_mode+set}" = set; then
1505 enableval
="$enable_maintainer_mode"
1506 USE_MAINTAINER_MODE
=$enableval
1508 USE_MAINTAINER_MODE
=no
1511 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1512 if test $USE_MAINTAINER_MODE = yes; then
1519 echo $ac_n "checking for Cygwin32 environment""... $ac_c" 1>&6
1520 echo "configure:1521: checking for Cygwin32 environment" >&5
1521 if eval "test \"`echo '$''{'am_cv_cygwin32'+set}'`\" = set"; then
1522 echo $ac_n "(cached) $ac_c" 1>&6
1524 cat > conftest.
$ac_ext <<EOF
1525 #line 1526 "configure"
1526 #include "confdefs.h"
1529 return __CYGWIN32__;
1532 if { (eval echo configure
:1533: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1536 echo "configure: failed program was:" >&5
1537 cat conftest.
$ac_ext >&5
1545 echo "$ac_t""$am_cv_cygwin32" 1>&6
1547 test "$am_cv_cygwin32" = yes && CYGWIN32
=yes
1548 echo $ac_n "checking for Mingw32 environment""... $ac_c" 1>&6
1549 echo "configure:1550: checking for Mingw32 environment" >&5
1550 if eval "test \"`echo '$''{'am_cv_mingw32'+set}'`\" = set"; then
1551 echo $ac_n "(cached) $ac_c" 1>&6
1553 cat > conftest.
$ac_ext <<EOF
1554 #line 1555 "configure"
1555 #include "confdefs.h"
1561 if { (eval echo configure
:1562: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1565 echo "configure: failed program was:" >&5
1566 cat conftest.
$ac_ext >&5
1574 echo "$ac_t""$am_cv_mingw32" 1>&6
1576 test "$am_cv_mingw32" = yes && MINGW32
=yes
1579 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1580 echo "configure:1581: checking for executable suffix" >&5
1581 if eval "test \"`echo '$''{'am_cv_exeext'+set}'`\" = set"; then
1582 echo $ac_n "(cached) $ac_c" 1>&6
1585 if test "$CYGWIN32" = yes -o "$MINGW32" = yes; then
1588 cat > am_c_test.c
<< 'EOF'
1590 /* Nothing needed here
*/
1593 ${CC-cc} -o am_c_test
$CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c
$LIBS 1>&5
1594 am_cv_exeext
=`echo am_c_test.* | grep -v am_c_test.c | sed -e s/am_c_test//`
1598 test x
"${am_cv_exeext}" = x
&& am_cv_exeext
=no
1601 test x
"${am_cv_exeext}" != xno
&& EXEEXT
=${am_cv_exeext}
1602 echo "$ac_t""${am_cv_exeext}" 1>&6
1610 # Extract the first word of "gcc", so it can be a program name with args.
1611 set dummy gcc
; ac_word
=$2
1612 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1613 echo "configure:1614: checking for $ac_word" >&5
1614 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1615 echo $ac_n "(cached) $ac_c" 1>&6
1617 if test -n "$CC"; then
1618 ac_cv_prog_CC
="$CC" # Let the user override the test.
1620 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1621 for ac_dir
in $PATH; do
1622 test -z "$ac_dir" && ac_dir
=.
1623 if test -f $ac_dir/$ac_word; then
1632 if test -n "$CC"; then
1633 echo "$ac_t""$CC" 1>&6
1635 echo "$ac_t""no" 1>&6
1638 if test -z "$CC"; then
1639 # Extract the first word of "cc", so it can be a program name with args.
1640 set dummy cc
; ac_word
=$2
1641 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1642 echo "configure:1643: checking for $ac_word" >&5
1643 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1644 echo $ac_n "(cached) $ac_c" 1>&6
1646 if test -n "$CC"; then
1647 ac_cv_prog_CC
="$CC" # Let the user override the test.
1649 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1651 for ac_dir
in $PATH; do
1652 test -z "$ac_dir" && ac_dir
=.
1653 if test -f $ac_dir/$ac_word; then
1654 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1655 ac_prog_rejected
=yes
1663 if test $ac_prog_rejected = yes; then
1664 # We found a bogon in the path, so make sure we never use it.
1665 set dummy
$ac_cv_prog_CC
1667 if test $# -gt 0; then
1668 # We chose a different compiler from the bogus one.
1669 # However, it has the same basename, so the bogon will be chosen
1670 # first if we set CC to just the basename; use the full file name.
1672 set dummy
"$ac_dir/$ac_word" "$@"
1680 if test -n "$CC"; then
1681 echo "$ac_t""$CC" 1>&6
1683 echo "$ac_t""no" 1>&6
1686 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1689 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1690 echo "configure:1691: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1693 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1694 ac_cpp
='$CPP $CPPFLAGS'
1695 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1696 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1697 cross_compiling
=$ac_cv_prog_cc_cross
1699 cat > conftest.
$ac_ext <<EOF
1700 #line 1701 "configure"
1701 #include "confdefs.h"
1704 if { (eval echo configure
:1705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1705 ac_cv_prog_cc_works
=yes
1706 # If we can't run a trivial program, we are probably using a cross compiler.
1707 if (.
/conftest
; exit) 2>/dev
/null
; then
1708 ac_cv_prog_cc_cross
=no
1710 ac_cv_prog_cc_cross
=yes
1713 echo "configure: failed program was:" >&5
1714 cat conftest.
$ac_ext >&5
1715 ac_cv_prog_cc_works
=no
1719 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1720 if test $ac_cv_prog_cc_works = no
; then
1721 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1723 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1724 echo "configure:1725: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1725 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1726 cross_compiling
=$ac_cv_prog_cc_cross
1728 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1729 echo "configure:1730: checking whether we are using GNU C" >&5
1730 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1731 echo $ac_n "(cached) $ac_c" 1>&6
1733 cat > conftest.c
<<EOF
1738 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1739: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1745 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1747 if test $ac_cv_prog_gcc = yes; then
1749 ac_test_CFLAGS
="${CFLAGS+set}"
1750 ac_save_CFLAGS
="$CFLAGS"
1752 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1753 echo "configure:1754: checking whether ${CC-cc} accepts -g" >&5
1754 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1755 echo $ac_n "(cached) $ac_c" 1>&6
1757 echo 'void f(){}' > conftest.c
1758 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1767 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1768 if test "$ac_test_CFLAGS" = set; then
1769 CFLAGS
="$ac_save_CFLAGS"
1770 elif test $ac_cv_prog_cc_g = yes; then
1777 test "${CFLAGS+set}" = set || CFLAGS
="-g"
1781 # Permit host specific settings.
1782 .
${srcdir}/configure.
host
1786 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1789 BFD_HOST_64BIT_LONG
=0
1790 BFD_HOST_64_BIT_DEFINED
=0
1793 if test "x${HOST_64BIT_TYPE}" = "xlong"; then
1794 BFD_HOST_64BIT_LONG
=1
1795 elif test "x${HOST_64BIT_TYPE}" != "x"; then
1796 BFD_HOST_64_BIT_DEFINED
=1
1797 BFD_HOST_64_BIT
=${HOST_64BIT_TYPE}
1798 BFD_HOST_U_64_BIT
=${HOST_U_64BIT_TYPE}
1805 # Put a plausible default for CC_FOR_BUILD in Makefile.
1806 if test -z "$CC_FOR_BUILD"; then
1807 if test "x$cross_compiling" = "xno"; then
1808 CC_FOR_BUILD
='$(CC)'
1814 # Also set EXEEXT_FOR_BUILD.
1815 if test "x$cross_compiling" = "xno"; then
1816 EXEEXT_FOR_BUILD
='$(EXEEXT)'
1818 echo $ac_n "checking for build system executable suffix""... $ac_c" 1>&6
1819 echo "configure:1820: checking for build system executable suffix" >&5
1820 if eval "test \"`echo '$''{'bfd_cv_build_exeext'+set}'`\" = set"; then
1821 echo $ac_n "(cached) $ac_c" 1>&6
1823 cat > ac_c_test.c
<< 'EOF'
1825 /* Nothing needed here
*/
1828 ${CC_FOR_BUILD} -o ac_c_test am_c_test.c
1>&5 2>&5
1829 bfd_cv_build_exeext
=`echo ac_c_test.* | grep -v ac_c_test.c | sed -e s/ac_c_test//`
1831 test x
"${bfd_cv_build_exeext}" = x
&& bfd_cv_build_exeext
=no
1834 echo "$ac_t""$bfd_cv_build_exeext" 1>&6
1836 test x
"${bfd_cv_build_exeext}" != xno
&& EXEEXT_FOR_BUILD
=${bfd_cv_build_exeext}
1840 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1841 echo "configure:1842: checking how to run the C preprocessor" >&5
1842 # On Suns, sometimes $CPP names a directory.
1843 if test -n "$CPP" && test -d "$CPP"; then
1846 if test -z "$CPP"; then
1847 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1848 echo $ac_n "(cached) $ac_c" 1>&6
1850 # This must be in double quotes, not single quotes, because CPP may get
1851 # substituted into the Makefile and "${CC-cc}" will confuse make.
1853 # On the NeXT, cc -E runs the code through the compiler's parser,
1854 # not just through cpp.
1855 cat > conftest.
$ac_ext <<EOF
1856 #line 1857 "configure"
1857 #include "confdefs.h"
1861 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1862 { (eval echo configure
:1863: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1863 ac_err
=`grep -v '^ *+' conftest.out`
1864 if test -z "$ac_err"; then
1868 echo "configure: failed program was:" >&5
1869 cat conftest.
$ac_ext >&5
1871 CPP
="${CC-cc} -E -traditional-cpp"
1872 cat > conftest.
$ac_ext <<EOF
1873 #line 1874 "configure"
1874 #include "confdefs.h"
1878 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1879 { (eval echo configure
:1880: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1880 ac_err
=`grep -v '^ *+' conftest.out`
1881 if test -z "$ac_err"; then
1885 echo "configure: failed program was:" >&5
1886 cat conftest.
$ac_ext >&5
1893 ac_cv_prog_CPP
="$CPP"
1895 CPP
="$ac_cv_prog_CPP"
1897 ac_cv_prog_CPP
="$CPP"
1899 echo "$ac_t""$CPP" 1>&6
1901 for ac_hdr
in stddef.h string.h
strings.h stdlib.h
time.h unistd.h
1903 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1904 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1905 echo "configure:1906: checking for $ac_hdr" >&5
1906 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1907 echo $ac_n "(cached) $ac_c" 1>&6
1909 cat > conftest.
$ac_ext <<EOF
1910 #line 1911 "configure"
1911 #include "confdefs.h"
1914 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1915 { (eval echo configure
:1916: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1916 ac_err
=`grep -v '^ *+' conftest.out`
1917 if test -z "$ac_err"; then
1919 eval "ac_cv_header_$ac_safe=yes"
1922 echo "configure: failed program was:" >&5
1923 cat conftest.
$ac_ext >&5
1925 eval "ac_cv_header_$ac_safe=no"
1929 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1930 echo "$ac_t""yes" 1>&6
1931 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1932 cat >> confdefs.h
<<EOF
1933 #define $ac_tr_hdr 1
1937 echo "$ac_t""no" 1>&6
1941 for ac_hdr
in fcntl.h sys
/file.h sys
/time.h
1943 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1944 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1945 echo "configure:1946: checking for $ac_hdr" >&5
1946 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1947 echo $ac_n "(cached) $ac_c" 1>&6
1949 cat > conftest.
$ac_ext <<EOF
1950 #line 1951 "configure"
1951 #include "confdefs.h"
1954 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1955 { (eval echo configure
:1956: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1956 ac_err
=`grep -v '^ *+' conftest.out`
1957 if test -z "$ac_err"; then
1959 eval "ac_cv_header_$ac_safe=yes"
1962 echo "configure: failed program was:" >&5
1963 cat conftest.
$ac_ext >&5
1965 eval "ac_cv_header_$ac_safe=no"
1969 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1970 echo "$ac_t""yes" 1>&6
1971 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1972 cat >> confdefs.h
<<EOF
1973 #define $ac_tr_hdr 1
1977 echo "$ac_t""no" 1>&6
1981 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1982 echo "configure:1983: checking whether time.h and sys/time.h may both be included" >&5
1983 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1984 echo $ac_n "(cached) $ac_c" 1>&6
1986 cat > conftest.
$ac_ext <<EOF
1987 #line 1988 "configure"
1988 #include "confdefs.h"
1989 #include <sys/types.h>
1990 #include <sys/time.h>
1996 if { (eval echo configure
:1997: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1998 ac_cv_header_time
=yes
2000 echo "configure: failed program was:" >&5
2001 cat conftest.
$ac_ext >&5
2003 ac_cv_header_time
=no
2008 echo "$ac_t""$ac_cv_header_time" 1>&6
2009 if test $ac_cv_header_time = yes; then
2010 cat >> confdefs.h
<<\EOF
2011 #define TIME_WITH_SYS_TIME 1
2016 for ac_func
in fcntl getpagesize setitimer sysconf fdopen
2018 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2019 echo "configure:2020: checking for $ac_func" >&5
2020 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2021 echo $ac_n "(cached) $ac_c" 1>&6
2023 cat > conftest.
$ac_ext <<EOF
2024 #line 2025 "configure"
2025 #include "confdefs.h"
2026 /* System header to define __stub macros and hopefully few prototypes,
2027 which can conflict with char $ac_func(); below. */
2029 /* Override any gcc2 internal prototype to avoid an error. */
2030 /* We use char because int might match the return type of a gcc2
2031 builtin and then its argument prototype would still apply. */
2036 /* The GNU C library defines this for functions which it implements
2037 to always fail with ENOSYS. Some functions are actually named
2038 something starting with __ and the normal name is an alias. */
2039 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2047 if { (eval echo configure
:2048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2049 eval "ac_cv_func_$ac_func=yes"
2051 echo "configure: failed program was:" >&5
2052 cat conftest.
$ac_ext >&5
2054 eval "ac_cv_func_$ac_func=no"
2059 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2060 echo "$ac_t""yes" 1>&6
2061 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2062 cat >> confdefs.h
<<EOF
2063 #define $ac_tr_func 1
2067 echo "$ac_t""no" 1>&6
2074 i
[345]86-*-msdos* | i
[345]86-*-go32* | i
[345]86-*-mingw32* |
*-*-cygwin32* |
*-*-windows)
2075 cat >> confdefs.h
<<\EOF
2076 #define USE_BINARY_FOPEN 1
2081 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
2082 echo "configure:2083: checking whether strstr must be declared" >&5
2083 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
2084 echo $ac_n "(cached) $ac_c" 1>&6
2086 cat > conftest.
$ac_ext <<EOF
2087 #line 2088 "configure"
2088 #include "confdefs.h"
2091 #ifdef HAVE_STRING_H
2094 #ifdef HAVE_STRINGS_H
2095 #include <strings.h>
2098 #ifdef HAVE_STDLIB_H
2101 #ifdef HAVE_UNISTD_H
2105 char *(*pfn) = (char *(*)) strstr
2108 if { (eval echo configure
:2109: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2110 bfd_cv_decl_needed_strstr
=no
2112 echo "configure: failed program was:" >&5
2113 cat conftest.
$ac_ext >&5
2115 bfd_cv_decl_needed_strstr
=yes
2120 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
2121 if test $bfd_cv_decl_needed_strstr = yes; then
2122 bfd_tr_decl
=NEED_DECLARATION_
`echo strstr | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2123 cat >> confdefs.h
<<EOF
2124 #define $bfd_tr_decl 1
2129 echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
2130 echo "configure:2131: checking whether malloc must be declared" >&5
2131 if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
2132 echo $ac_n "(cached) $ac_c" 1>&6
2134 cat > conftest.
$ac_ext <<EOF
2135 #line 2136 "configure"
2136 #include "confdefs.h"
2139 #ifdef HAVE_STRING_H
2142 #ifdef HAVE_STRINGS_H
2143 #include <strings.h>
2146 #ifdef HAVE_STDLIB_H
2149 #ifdef HAVE_UNISTD_H
2153 char *(*pfn) = (char *(*)) malloc
2156 if { (eval echo configure
:2157: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2158 bfd_cv_decl_needed_malloc
=no
2160 echo "configure: failed program was:" >&5
2161 cat conftest.
$ac_ext >&5
2163 bfd_cv_decl_needed_malloc
=yes
2168 echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
2169 if test $bfd_cv_decl_needed_malloc = yes; then
2170 bfd_tr_decl
=NEED_DECLARATION_
`echo malloc | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2171 cat >> confdefs.h
<<EOF
2172 #define $bfd_tr_decl 1
2177 echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
2178 echo "configure:2179: checking whether realloc must be declared" >&5
2179 if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
2180 echo $ac_n "(cached) $ac_c" 1>&6
2182 cat > conftest.
$ac_ext <<EOF
2183 #line 2184 "configure"
2184 #include "confdefs.h"
2187 #ifdef HAVE_STRING_H
2190 #ifdef HAVE_STRINGS_H
2191 #include <strings.h>
2194 #ifdef HAVE_STDLIB_H
2197 #ifdef HAVE_UNISTD_H
2201 char *(*pfn) = (char *(*)) realloc
2204 if { (eval echo configure
:2205: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2206 bfd_cv_decl_needed_realloc
=no
2208 echo "configure: failed program was:" >&5
2209 cat conftest.
$ac_ext >&5
2211 bfd_cv_decl_needed_realloc
=yes
2216 echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
2217 if test $bfd_cv_decl_needed_realloc = yes; then
2218 bfd_tr_decl
=NEED_DECLARATION_
`echo realloc | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2219 cat >> confdefs.h
<<EOF
2220 #define $bfd_tr_decl 1
2225 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
2226 echo "configure:2227: checking whether free must be declared" >&5
2227 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
2228 echo $ac_n "(cached) $ac_c" 1>&6
2230 cat > conftest.
$ac_ext <<EOF
2231 #line 2232 "configure"
2232 #include "confdefs.h"
2235 #ifdef HAVE_STRING_H
2238 #ifdef HAVE_STRINGS_H
2239 #include <strings.h>
2242 #ifdef HAVE_STDLIB_H
2245 #ifdef HAVE_UNISTD_H
2249 char *(*pfn) = (char *(*)) free
2252 if { (eval echo configure
:2253: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2254 bfd_cv_decl_needed_free
=no
2256 echo "configure: failed program was:" >&5
2257 cat conftest.
$ac_ext >&5
2259 bfd_cv_decl_needed_free
=yes
2264 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
2265 if test $bfd_cv_decl_needed_free = yes; then
2266 bfd_tr_decl
=NEED_DECLARATION_
`echo free | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2267 cat >> confdefs.h
<<EOF
2268 #define $bfd_tr_decl 1
2273 echo $ac_n "checking whether getenv must be declared""... $ac_c" 1>&6
2274 echo "configure:2275: checking whether getenv must be declared" >&5
2275 if eval "test \"`echo '$''{'bfd_cv_decl_needed_getenv'+set}'`\" = set"; then
2276 echo $ac_n "(cached) $ac_c" 1>&6
2278 cat > conftest.
$ac_ext <<EOF
2279 #line 2280 "configure"
2280 #include "confdefs.h"
2283 #ifdef HAVE_STRING_H
2286 #ifdef HAVE_STRINGS_H
2287 #include <strings.h>
2290 #ifdef HAVE_STDLIB_H
2293 #ifdef HAVE_UNISTD_H
2297 char *(*pfn) = (char *(*)) getenv
2300 if { (eval echo configure
:2301: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2302 bfd_cv_decl_needed_getenv
=no
2304 echo "configure: failed program was:" >&5
2305 cat conftest.
$ac_ext >&5
2307 bfd_cv_decl_needed_getenv
=yes
2312 echo "$ac_t""$bfd_cv_decl_needed_getenv" 1>&6
2313 if test $bfd_cv_decl_needed_getenv = yes; then
2314 bfd_tr_decl
=NEED_DECLARATION_
`echo getenv | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2315 cat >> confdefs.h
<<EOF
2316 #define $bfd_tr_decl 1
2322 # If we are configured native, pick a core file support file.
2325 if test "${target}" = "${host}"; then
2328 COREFILE
=trad-core.lo
2329 cat >> confdefs.h
<<\EOF
2330 #define TRAD_HEADER "hosts/alphalinux.h"
2334 alpha
*-*-*) COREFILE
=osf-core.lo
;;
2335 arm-
*-riscix) COREFILE
=trad-core.lo
;;
2336 hppa
*-*-hpux*) COREFILE
=hpux-core.lo
;;
2337 hppa
*-*-hiux*) COREFILE
=hpux-core.lo
;;
2338 hppa
*-*-bsd*) COREFILE
="hpux-core.lo hppabsd-core.lo"
2339 COREFLAG
="-DHPUX_CORE -DHPPABSD_CORE" ;;
2340 i
[3456]86-sequent-bsd*)
2341 COREFILE
=trad-core.lo
;
2342 cat >> confdefs.h
<<\EOF
2343 #define TRAD_HEADER "hosts/symmetry.h"
2347 i
[3456]86-sequent-sysv4*) ;;
2348 i
[3456]86-sequent-sysv*)
2349 COREFILE
=trad-core.lo
2350 cat >> confdefs.h
<<\EOF
2351 #define TRAD_HEADER "hosts/symmetry.h"
2355 i
[3456]86-*-bsd* | i
[3456]86-*-freebsd*)
2356 COREFILE
=trad-core.lo
2357 cat >> confdefs.h
<<\EOF
2358 #define TRAD_HEADER "hosts/i386bsd.h"
2362 i
[3456]86-*-netbsd* | i
[3456]86-*-openbsd*)
2363 COREFILE
=netbsd-core.lo
2365 i
[3456]86-esix-sysv3*)
2366 COREFILE
=trad-core.lo
2367 cat >> confdefs.h
<<\EOF
2368 #define TRAD_HEADER "hosts/esix.h"
2372 i
[3456]86-*-sco* | i
[3456]86-*-isc*)
2373 COREFILE
=trad-core.lo
2374 cat >> confdefs.h
<<\EOF
2375 #define TRAD_HEADER "hosts/i386sco.h"
2380 COREFILE
=trad-core.lo
2381 cat >> confdefs.h
<<\EOF
2382 #define TRAD_HEADER "hosts/i386mach3.h"
2387 COREFILE
=trad-core.lo
2388 cat >> confdefs.h
<<\EOF
2389 #define TRAD_HEADER "hosts/i386linux.h"
2393 i
[3456]86-*-isc*) COREFILE
=trad-core.lo
;;
2394 i
[3456]86-*-aix*) COREFILE
=aix386-core.lo
;;
2395 i860-
*-mach3* | i860-
*-osf1*)
2396 COREFILE
=trad-core.lo
2397 cat >> confdefs.h
<<\EOF
2398 #define TRAD_HEADER "hosts/i860mach3.h"
2403 COREFILE
=trad-core.lo
2404 cat >> confdefs.h
<<\EOF
2405 #define TRAD_HEADER "hosts/mipsbsd.h"
2410 COREFILE
=trad-core.lo
2411 cat >> confdefs.h
<<\EOF
2412 #define TRAD_HEADER "hosts/mipsmach3.h"
2416 mips-
*-netbsd* | mips
*-*-openbsd*)
2417 COREFILE
=netbsd-core.lo
2420 COREFILE
=trad-core.lo
2421 cat >> confdefs.h
<<\EOF
2422 #define TRAD_HEADER "hosts/decstation.h"
2426 mips-sgi-irix4
*) COREFILE
=irix-core.lo
;;
2427 mips-sgi-irix5
*) COREFILE
=irix-core.lo
;;
2428 mips-sgi-irix6
*) COREFILE
=irix-core.lo
;;
2430 COREFILE
=trad-core.lo
2431 cat >> confdefs.h
<<\EOF
2432 #define TRAD_HEADER "hosts/mipsmach3.h"
2437 mips-
*-sysv* | mips-
*-riscos*)
2438 COREFILE
=trad-core.lo
2439 cat >> confdefs.h
<<\EOF
2440 #define TRAD_HEADER "hosts/riscos.h"
2445 COREFILE
=trad-core.lo
2446 cat >> confdefs.h
<<\EOF
2447 #define TRAD_HEADER "hosts/news-mips.h"
2452 COREFILE
=trad-core.lo
2453 cat >> confdefs.h
<<\EOF
2454 #define TRAD_HEADER "hosts/dpx2.h"
2458 m68
*-hp-hpux*) COREFILE
=hpux-core.lo
;;
2460 COREFILE
=trad-core.lo
2461 cat >> confdefs.h
<<\EOF
2462 #define TRAD_HEADER "hosts/hp300bsd.h"
2467 COREFILE
=trad-core.lo
2468 cat >> confdefs.h
<<\EOF
2469 #define TRAD_HEADER "hosts/m68klinux.h"
2473 m68
*-motorola-sysv*)
2474 COREFILE
=trad-core.lo
2475 cat >> confdefs.h
<<\EOF
2476 #define TRAD_HEADER "hosts/delta68.h"
2481 COREFILE
=trad-core.lo
2482 cat >> confdefs.h
<<\EOF
2483 #define TRAD_HEADER "hosts/news.h"
2487 m68
*-*-netbsd* | m68
*-*-openbsd*)
2488 COREFILE
=netbsd-core.lo
2491 COREFILE
=trad-core.lo
2492 cat >> confdefs.h
<<\EOF
2493 #define TRAD_HEADER "hosts/m68kaux.h"
2498 m88
*-motorola-sysv*) COREFILE
=ptrace-core.lo
;;
2500 COREFILE
=trad-core.lo
2501 cat >> confdefs.h
<<\EOF
2502 #define TRAD_HEADER "hosts/m88kmach3.h"
2507 COREFILE
=trad-core.lo
2508 cat >> confdefs.h
<<\EOF
2509 #define TRAD_HEADER "hosts/pc532mach.h"
2513 ns32k-
*-netbsd* | ns32k-
*-openbsd*)
2514 COREFILE
=netbsd-core.lo
2516 rs6000-
*-lynx*) COREFILE
=lynx-core.lo
;;
2517 rs6000-
*-aix4*) COREFILE
=rs6000-core.lo
;;
2518 rs6000-
*-*) COREFILE
=rs6000-core.lo
;;
2519 powerpc-
*-*bsd
*) COREFILE
=netbsd-core.lo
;;
2520 powerpc-
*-aix4*) COREFILE
=rs6000-core.lo
;;
2521 powerpc-
*-aix*) COREFILE
=rs6000-core.lo
;;
2523 sparc-
*-netbsd* | sparc-
*-openbsd*)
2524 COREFILE
=netbsd-core.lo
2527 COREFILE
=trad-core.lo
2528 cat >> confdefs.h
<<\EOF
2529 #define TRAD_HEADER "hosts/sparclinux.h"
2534 COREFILE
=trad-core.lo
2535 cat >> confdefs.h
<<\EOF
2536 #define TRAD_HEADER "hosts/tahoe.h"
2541 COREFILE
=trad-core.lo
2542 cat >> confdefs.h
<<\EOF
2543 #define TRAD_HEADER "hosts/vaxult2.h"
2548 COREFILE
=trad-core.lo
2549 cat >> confdefs.h
<<\EOF
2550 #define TRAD_HEADER "hosts/vaxult2.h"
2555 COREFILE
=trad-core.lo
2556 cat >> confdefs.h
<<\EOF
2557 #define TRAD_HEADER "hosts/vaxbsd.h"
2564 aix386-core.lo
) COREFLAG
=-DAIX386_CORE ;;
2565 hppabsd-core.lo
) COREFLAG
=-DHPPABSD_CORE ;;
2566 hpux-core.lo
) COREFLAG
=-DHPUX_CORE ;;
2567 irix-core.lo
) COREFLAG
=-DIRIX_CORE ;;
2568 lynx-core.lo
) COREFLAG
=-DLYNX_CORE ;;
2569 osf-core.lo
) COREFLAG
=-DOSF_CORE ;;
2570 ptrace-core.lo
) COREFLAG
=-DPTRACE_CORE ;;
2571 rs6000-core.lo
) COREFLAG
="$COREFLAG -DAIX_CORE" ;;
2572 trad-core.lo
) COREFLAG
="$COREFLAG -DTRAD_CORE" ;;
2575 # The ELF code uses the native <sys/procfs.h> to handle core files.
2576 # Define HAVE_SYS_PROCFS_H if the file exists and defines
2578 echo $ac_n "checking for sys/procfs.h""... $ac_c" 1>&6
2579 echo "configure:2580: checking for sys/procfs.h" >&5
2580 if eval "test \"`echo '$''{'bfd_cv_header_sys_procfs_h'+set}'`\" = set"; then
2581 echo $ac_n "(cached) $ac_c" 1>&6
2583 cat > conftest.
$ac_ext <<EOF
2584 #line 2585 "configure"
2585 #include "confdefs.h"
2586 #include <sys/procfs.h>
2591 if { (eval echo configure
:2592: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2593 bfd_cv_header_sys_procfs_h
=yes
2595 echo "configure: failed program was:" >&5
2596 cat conftest.
$ac_ext >&5
2598 bfd_cv_header_sys_procfs_h
=no
2603 echo "$ac_t""$bfd_cv_header_sys_procfs_h" 1>&6
2604 if test $bfd_cv_header_sys_procfs_h = yes; then
2605 cat >> confdefs.h
<<\EOF
2606 #define HAVE_SYS_PROCFS_H 1
2617 # Canonicalize the secondary target names.
2618 if test -n "$enable_targets" ; then
2619 for targ
in `echo $enable_targets | sed 's/,/ /g'`
2621 result
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $targ 2>/dev/null`
2622 if test -n "$result" ; then
2623 canon_targets
="$canon_targets $result"
2625 # Allow targets that config.sub doesn't recognize, like "all".
2626 canon_targets
="$canon_targets $targ"
2636 for targ
in $target $canon_targets
2638 if test "x$targ" = "xall"; then
2641 .
$srcdir/config.bfd
2642 if test "x$targ" = "x$target"; then
2645 selvecs
="$selvecs $targ_defvec $targ_selvecs"
2646 selarchs
="$selarchs $targ_archs"
2647 TDEFINES
="$TDEFINES $targ_cflags"
2652 # This processing still needs to be done if we're to decide properly whether
2653 # 64-bit support needs to be compiled in. Currently, it will be included if
2654 # the default or any other explicitly requested target requires it; it
2655 # will not be included on a 32-bit host if no 64-bit target is requested, and
2656 # no "--with-64-bit-bfd" option is given, even if "--with-targets=all" is
2659 # uniq the default and selected vectors in all the configured targets.
2661 for i
in $selvecs ; do
2669 # start-sanitize-sky
2670 # dvp is really mips, but we need to distinguish it from mips for opcodes
2671 selarchs
=`echo $selarchs | sed -e s/dvp/mips/g`
2674 # uniq the architectures in all the configured targets.
2676 for i
in $selarchs ; do
2684 # Target backend .o files.
2687 elf
="elflink.lo dwarf2.lo"
2692 # This list is alphabetized to make it easy to compare
2693 # with the two vector lists in targets.c.
2694 a29kcoff_big_vec
) tb
="$tb coff-a29k.lo cofflink.lo" ;;
2695 a_out_adobe_vec
) tb
="$tb aout-adobe.lo aout32.lo" ;;
2696 armcoff_little_vec
) tb
="$tb coff-arm.lo cofflink.lo " ;;
2697 armcoff_big_vec
) tb
="$tb coff-arm.lo cofflink.lo " ;;
2698 armpe_little_vec
) tb
="$tb pe-arm.lo cofflink.lo " ;;
2699 armpe_big_vec
) tb
="$tb pe-arm.lo cofflink.lo " ;;
2700 armpei_little_vec
) tb
="$tb pei-arm.lo cofflink.lo " ;;
2701 armpei_big_vec
) tb
="$tb pei-arm.lo cofflink.lo " ;;
2702 aout0_big_vec
) tb
="$tb aout0.lo aout32.lo" ;;
2703 aout_arm_big_vec
) tb
="$tb aout-arm.lo aout32.lo" ;;
2704 aout_arm_little_vec
) tb
="$tb aout-arm.lo aout32.lo" ;;
2705 aout_mips_big_vec
) tb
="$tb mipsbsd.lo aout32.lo" ;;
2706 aout_mips_little_vec
) tb
="$tb mipsbsd.lo aout32.lo" ;;
2707 apollocoff_vec
) tb
="$tb coff-apollo.lo" ;;
2708 b_out_vec_big_host
) tb
="$tb bout.lo aout32.lo" ;;
2709 b_out_vec_little_host
) tb
="$tb bout.lo aout32.lo" ;;
2710 bfd_elf64_alpha_vec
) tb
="$tb elf64-alpha.lo elf64.lo $elf"
2712 bfd_elf32_littlearc_vec
) tb
="$tb elf32-arc.lo elf32.lo $elf" ;;
2713 bfd_elf32_bigarc_vec
) tb
="$tb elf32-arc.lo elf32.lo $elf" ;;
2714 bfd_elf32_big_generic_vec
) tb
="$tb elf32-gen.lo elf32.lo $elf" ;;
2715 bfd_elf32_bigmips_vec
) tb
="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
2716 bfd_elf64_bigmips_vec
) tb
="$tb elf64-mips.lo elf64.lo elf32-mips.lo elf32.lo $elf ecofflink.lo"
2718 bfd_elf32_d10v_vec
) tb
="$tb elf32-d10v.lo elf32.lo $elf" ;;
2719 # start-sanitize-d30v
2720 bfd_elf32_d30v_vec
) tb
="$tb elf32-d30v.lo elf32.lo $elf" ;;
2722 bfd_elf32_hppa_vec
) tb
="$tb elf32-hppa.lo elf32.lo $elf" ;;
2723 bfd_elf32_i386_vec
) tb
="$tb elf32-i386.lo elf32.lo $elf" ;;
2724 bfd_elf32_i860_vec
) tb
="$tb elf32-i860.lo elf32.lo $elf" ;;
2725 bfd_elf32_little_generic_vec
) tb
="$tb elf32-gen.lo elf32.lo $elf" ;;
2726 bfd_elf32_littlemips_vec
) tb
="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
2727 bfd_elf64_littlemips_vec
) tb
="$tb elf64-mips.lo elf64.lo elf32-mips.lo elf32.lo $elf ecofflink.lo"
2729 bfd_elf32_m32r_vec
) tb
="$tb elf32-m32r.lo elf32.lo $elf" ;;
2730 bfd_elf32_m68k_vec
) tb
="$tb elf32-m68k.lo elf32.lo $elf" ;;
2731 bfd_elf32_m88k_vec
) tb
="$tb elf32-m88k.lo elf32.lo $elf" ;;
2732 bfd_elf32_mn10200_vec
) tb
="$tb elf-m10200.lo elf32.lo $elf" ;;
2733 bfd_elf32_mn10300_vec
) tb
="$tb elf-m10300.lo elf32.lo $elf" ;;
2734 bfd_elf32_powerpc_vec
) tb
="$tb elf32-ppc.lo elf32.lo $elf" ;;
2735 bfd_elf32_powerpcle_vec
) tb
="$tb elf32-ppc.lo elf32.lo $elf" ;;
2736 bfd_elf32_sh_vec
) tb
="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
2737 bfd_elf32_shl_vec
) tb
="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
2738 bfd_elf32_sparc_vec
) tb
="$tb elf32-sparc.lo elf32.lo $elf" ;;
2739 bfd_elf32_v850_vec
) tb
="$tb elf32-v850.lo elf32.lo $elf" ;;
2740 bfd_elf64_big_generic_vec
) tb
="$tb elf64-gen.lo elf64.lo $elf"
2742 bfd_elf64_little_generic_vec
) tb
="$tb elf64-gen.lo elf64.lo $elf"
2744 bfd_elf64_sparc_vec
) tb
="$tb elf64-sparc.lo elf64.lo $elf"
2746 cisco_core_vec
) tb
="$tb cisco-core.lo" ;;
2747 demo_64_vec
) tb
="$tb demo64.lo aout64.lo"
2749 ecoff_big_vec
) tb
="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
2750 ecoff_little_vec
) tb
="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
2751 ecoff_biglittle_vec
) tb
="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
2752 ecoffalpha_little_vec
) tb
="$tb coff-alpha.lo ecoff.lo ecofflink.lo"
2754 go32coff_vec
) tb
="$tb coff-go32.lo cofflink.lo" ;;
2755 go32stubbedcoff_vec
) tb
="$tb coff-stgo32.lo cofflink.lo" ;;
2756 evax_alpha_vec
) tb
="$tb evax-alpha.lo evax-emh.lo evax-egsd.lo evax-etir.lo evax-misc.lo"
2758 h8300coff_vec
) tb
="$tb coff-h8300.lo reloc16.lo" ;;
2759 h8500coff_vec
) tb
="$tb coff-h8500.lo reloc16.lo" ;;
2760 host_aout_vec
) tb
="$tb host-aout.lo aout32.lo" ;;
2761 hp300bsd_vec
) tb
="$tb hp300bsd.lo aout32.lo" ;;
2762 hp300hpux_vec
) tb
="$tb hp300hpux.lo aout32.lo" ;;
2763 i386aout_vec
) tb
="$tb i386aout.lo aout32.lo" ;;
2764 i386bsd_vec
) tb
="$tb i386bsd.lo aout32.lo" ;;
2765 i386coff_vec
) tb
="$tb coff-i386.lo cofflink.lo" ;;
2766 i386dynix_vec
) tb
="$tb i386dynix.lo aout32.lo" ;;
2767 i386freebsd_vec
) tb
="$tb i386freebsd.lo aout32.lo" ;;
2768 i386msdos_vec
) tb
="$tb i386msdos.lo" ;;
2769 i386pe_vec
) tb
="$tb pe-i386.lo cofflink.lo " ;;
2770 i386pei_vec
) tb
="$tb pei-i386.lo cofflink.lo" ;;
2771 i386linux_vec
) tb
="$tb i386linux.lo aout32.lo" ;;
2772 i386lynx_aout_vec
) tb
="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
2773 i386lynx_coff_vec
) tb
="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
2774 i386mach3_vec
) tb
="$tb i386mach3.lo aout32.lo" ;;
2775 i386netbsd_vec
) tb
="$tb i386netbsd.lo aout32.lo" ;;
2776 i386os9k_vec
) tb
="$tb i386os9k.lo aout32.lo" ;;
2777 i860coff_vec
) tb
="$tb coff-i860.lo cofflink.lo" ;;
2778 icoff_big_vec
) tb
="$tb coff-i960.lo cofflink.lo" ;;
2779 icoff_little_vec
) tb
="$tb coff-i960.lo cofflink.lo" ;;
2780 ieee_vec
) tb
="$tb ieee.lo" ;;
2781 m68kcoff_vec
) tb
="$tb coff-m68k.lo cofflink.lo" ;;
2782 m68kcoffun_vec
) tb
="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
2783 m68klinux_vec
) tb
="$tb m68klinux.lo aout32.lo" ;;
2784 m68klynx_aout_vec
) tb
="$tb m68klynx.lo lynx-core.lo aout32.lo" ;;
2785 m68klynx_coff_vec
) tb
="$tb cf-m68klynx.lo coff-m68k.lo cofflink.lo lynx-core.lo" ;;
2786 m68knetbsd_vec
) tb
="$tb m68knetbsd.lo aout32.lo" ;;
2787 m68k4knetbsd_vec
) tb
="$tb m68k4knetbsd.lo aout32.lo" ;;
2788 m68kaux_coff_vec
) tb
="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
2789 m68ksysvcoff_vec
) tb
="$tb coff-svm68k.lo cofflink.lo" ;;
2790 m88kbcs_vec
) tb
="$tb coff-m88k.lo" ;;
2791 newsos3_vec
) tb
="$tb newsos3.lo aout32.lo" ;;
2792 nlm32_i386_vec
) tb
="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
2793 nlm32_sparc_vec
) tb
="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
2794 nlm32_alpha_vec
) tb
="$tb nlm32-alpha.lo nlm32.lo nlm.lo"
2796 riscix_vec
) tb
="$tb aout32.lo riscix.lo" ;;
2797 nlm32_powerpc_vec
) tb
="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
2798 pc532netbsd_vec
) tb
="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
2799 pc532machaout_vec
) tb
="$tb pc532-mach.lo aout-ns32k.lo" ;;
2800 pmac_xcoff_vec
) tb
="$tb coff-pmac.lo xcofflink.lo" ;;
2801 rs6000coff_vec
) tb
="$tb coff-rs6000.lo xcofflink.lo" ;;
2802 bfd_powerpc_pe_vec
) tb
="$tb pe-ppc.lo cofflink.lo" ;;
2803 bfd_powerpcle_pe_vec
) tb
="$tb pe-ppc.lo cofflink.lo" ;;
2804 bfd_powerpc_pei_vec
) tb
="$tb pei-ppc.lo cofflink.lo" ;;
2805 bfd_powerpcle_pei_vec
) tb
="$tb pei-ppc.lo cofflink.lo" ;;
2806 ppcboot_vec
) tb
="$tb ppcboot.lo" ;;
2807 shcoff_vec
) tb
="$tb coff-sh.lo cofflink.lo" ;;
2808 shlcoff_vec
) tb
="$tb coff-sh.lo cofflink.lo" ;;
2809 shcoff_small_vec
) tb
="$tb coff-sh.lo cofflink.lo" ;;
2810 shlcoff_small_vec
) tb
="$tb coff-sh.lo cofflink.lo" ;;
2811 som_vec
) tb
="$tb som.lo" ;;
2812 sparcle_aout_vec
) tb
="$tb aout-sparcle.lo aout32.lo" ;;
2813 sparclinux_vec
) tb
="$tb sparclinux.lo aout32.lo stab-syms.lo" ;;
2814 sparclynx_aout_vec
) tb
="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
2815 sparclynx_coff_vec
) tb
="$tb cf-sparclynx.lo lynx-core.lo" ;;
2816 sparcnetbsd_vec
) tb
="$tb sparcnetbsd.lo aout32.lo" ;;
2817 sparccoff_vec
) tb
="$tb coff-sparc.lo" ;;
2818 srec_vec
) tb
="$tb srec.lo" ;;
2819 sunos_big_vec
) tb
="$tb sunos.lo aout32.lo" ;;
2820 symbolsrec_vec
) tb
="$tb srec.lo" ;;
2821 tekhex_vec
) tb
="$tb tekhex.lo" ;;
2822 tic30_aout_vec
) tb
="$tb aout-tic30.lo" ;;
2823 tic30_coff_vec
) tb
="$tb coff-tic30.lo" ;;
2824 # start-sanitize-tic80
2825 tic80coff_vec
) tb
="$tb coff-tic80.lo cofflink.lo" ;;
2826 # end-sanitize-tic80
2827 we32kcoff_vec
) tb
="$tb coff-we32k.lo" ;;
2828 z8kcoff_vec
) tb
="$tb coff-z8k.lo reloc16.lo" ;;
2829 w65_vec
) tb
="$tb coff-w65.lo reloc16.lo" ;;
2830 versados_vec
) tb
="$tb versados.lo" ;;
2833 *) { echo "configure: error: *** unknown target vector $vec" 1>&2; exit 1; } ;;
2837 # Target architecture .o files.
2838 # A couple of CPUs use shorter file names to avoid problems on DOS
2840 ta
=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
2842 # Weed out duplicate .o files.
2864 if test x
${all_targets} = xtrue
; then
2865 bfd_backends
="${bfd_backends}"' $(ALL_BACKENDS)'
2866 bfd_machines
="${bfd_machines}"' $(ALL_MACHINES)'
2870 else # all_targets is true
2871 # Only set these if they will be nonempty, for the clever echo.
2873 test -n "$selvecs" &&
2874 havevecs
=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
2875 test -n "$selvecs" &&
2876 selvecs
=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
2877 test -n "$selarchs" &&
2878 selarchs
=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
2879 fi # all_targets is true
2881 case ${host64}-${target64}-${want64} in
2884 all_backends
='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
2885 if test -z "$GCC" && test "$BFD_HOST_64BIT_LONG" = "0" && test "$BFD_HOST_64_BIT_DEFINED" = "0"; then
2886 echo "configure: warning: You have requested a 64 bit BFD configuration, but" 1>&2
2887 echo "configure: warning: your compiler may not have a 64 bit integral type" 1>&2
2892 all_backends
='$(BFD32_BACKENDS)'
2902 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
2903 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
2904 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
2905 test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
2908 for ac_hdr
in unistd.h
2910 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2911 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2912 echo "configure:2913: checking for $ac_hdr" >&5
2913 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2914 echo $ac_n "(cached) $ac_c" 1>&6
2916 cat > conftest.
$ac_ext <<EOF
2917 #line 2918 "configure"
2918 #include "confdefs.h"
2921 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2922 { (eval echo configure
:2923: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2923 ac_err
=`grep -v '^ *+' conftest.out`
2924 if test -z "$ac_err"; then
2926 eval "ac_cv_header_$ac_safe=yes"
2929 echo "configure: failed program was:" >&5
2930 cat conftest.
$ac_ext >&5
2932 eval "ac_cv_header_$ac_safe=no"
2936 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2937 echo "$ac_t""yes" 1>&6
2938 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2939 cat >> confdefs.h
<<EOF
2940 #define $ac_tr_hdr 1
2944 echo "$ac_t""no" 1>&6
2948 for ac_func
in getpagesize
2950 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2951 echo "configure:2952: checking for $ac_func" >&5
2952 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2953 echo $ac_n "(cached) $ac_c" 1>&6
2955 cat > conftest.
$ac_ext <<EOF
2956 #line 2957 "configure"
2957 #include "confdefs.h"
2958 /* System header to define __stub macros and hopefully few prototypes,
2959 which can conflict with char $ac_func(); below. */
2961 /* Override any gcc2 internal prototype to avoid an error. */
2962 /* We use char because int might match the return type of a gcc2
2963 builtin and then its argument prototype would still apply. */
2968 /* The GNU C library defines this for functions which it implements
2969 to always fail with ENOSYS. Some functions are actually named
2970 something starting with __ and the normal name is an alias. */
2971 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2979 if { (eval echo configure
:2980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2981 eval "ac_cv_func_$ac_func=yes"
2983 echo "configure: failed program was:" >&5
2984 cat conftest.
$ac_ext >&5
2986 eval "ac_cv_func_$ac_func=no"
2991 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2992 echo "$ac_t""yes" 1>&6
2993 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2994 cat >> confdefs.h
<<EOF
2995 #define $ac_tr_func 1
2999 echo "$ac_t""no" 1>&6
3003 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
3004 echo "configure:3005: checking for working mmap" >&5
3005 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
3006 echo $ac_n "(cached) $ac_c" 1>&6
3008 if test "$cross_compiling" = yes; then
3009 ac_cv_func_mmap_fixed_mapped
=no
3011 cat > conftest.
$ac_ext <<EOF
3012 #line 3013 "configure"
3013 #include "confdefs.h"
3015 /* Thanks to Mike Haertel and Jim Avera for this test.
3016 Here is a matrix of mmap possibilities:
3017 mmap private not fixed
3018 mmap private fixed at somewhere currently unmapped
3019 mmap private fixed at somewhere already mapped
3020 mmap shared not fixed
3021 mmap shared fixed at somewhere currently unmapped
3022 mmap shared fixed at somewhere already mapped
3023 For private mappings, we should verify that changes cannot be read()
3024 back from the file, nor mmap's back from the file at a different
3025 address. (There have been systems where private was not correctly
3026 implemented like the infamous i386 svr4.0, and systems where the
3027 VM page cache was not coherent with the filesystem buffer cache
3028 like early versions of FreeBSD and possibly contemporary NetBSD.)
3029 For shared mappings, we should conversely verify that changes get
3030 propogated back to all the places they're supposed to be.
3032 Grep wants private fixed already mapped.
3033 The main things grep needs to know about mmap are:
3034 * does it exist and is it safe to write into the mmap'd area
3035 * how to use it (BSD variants) */
3036 #include <sys/types.h>
3038 #include <sys/mman.h>
3040 /* This mess was copied from the GNU getpagesize.h. */
3041 #ifndef HAVE_GETPAGESIZE
3042 # ifdef HAVE_UNISTD_H
3043 # include <unistd.h>
3046 /* Assume that all systems that can run configure have sys/param.h. */
3047 # ifndef HAVE_SYS_PARAM_H
3048 # define HAVE_SYS_PARAM_H 1
3051 # ifdef _SC_PAGESIZE
3052 # define getpagesize() sysconf(_SC_PAGESIZE)
3053 # else /* no _SC_PAGESIZE */
3054 # ifdef HAVE_SYS_PARAM_H
3055 # include <sys/param.h>
3056 # ifdef EXEC_PAGESIZE
3057 # define getpagesize() EXEC_PAGESIZE
3058 # else /* no EXEC_PAGESIZE */
3060 # define getpagesize() NBPG * CLSIZE
3063 # endif /* no CLSIZE */
3064 # else /* no NBPG */
3066 # define getpagesize() NBPC
3067 # else /* no NBPC */
3069 # define getpagesize() PAGESIZE
3070 # endif /* PAGESIZE */
3071 # endif /* no NBPC */
3072 # endif /* no NBPG */
3073 # endif /* no EXEC_PAGESIZE */
3074 # else /* no HAVE_SYS_PARAM_H */
3075 # define getpagesize() 8192 /* punt totally */
3076 # endif /* no HAVE_SYS_PARAM_H */
3077 # endif /* no _SC_PAGESIZE */
3079 #endif /* no HAVE_GETPAGESIZE */
3082 extern "C" { void *malloc(unsigned); }
3090 char *data, *data2, *data3;
3094 pagesize = getpagesize();
3097 * First, make a file with some known garbage in it.
3099 data = malloc(pagesize);
3102 for (i = 0; i < pagesize; ++i)
3103 *(data + i) = rand();
3105 fd = creat("conftestmmap", 0600);
3108 if (write(fd, data, pagesize) != pagesize)
3113 * Next, try to mmap the file at a fixed address which
3114 * already has something else allocated at it. If we can,
3115 * also make sure that we see the same garbage.
3117 fd = open("conftestmmap", O_RDWR);
3120 data2 = malloc(2 * pagesize);
3123 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3124 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3125 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3127 for (i = 0; i < pagesize; ++i)
3128 if (*(data + i) != *(data2 + i))
3132 * Finally, make sure that changes to the mapped area
3133 * do not percolate back to the file as seen by read().
3134 * (This is a bug on some variants of i386 svr4.0.)
3136 for (i = 0; i < pagesize; ++i)
3137 *(data2 + i) = *(data2 + i) + 1;
3138 data3 = malloc(pagesize);
3141 if (read(fd, data3, pagesize) != pagesize)
3143 for (i = 0; i < pagesize; ++i)
3144 if (*(data + i) != *(data3 + i))
3147 unlink("conftestmmap");
3152 if { (eval echo configure
:3153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3154 ac_cv_func_mmap_fixed_mapped
=yes
3156 echo "configure: failed program was:" >&5
3157 cat conftest.
$ac_ext >&5
3159 ac_cv_func_mmap_fixed_mapped
=no
3166 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3167 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3168 cat >> confdefs.h
<<\EOF
3174 for ac_func
in madvise mprotect
3176 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3177 echo "configure:3178: checking for $ac_func" >&5
3178 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3179 echo $ac_n "(cached) $ac_c" 1>&6
3181 cat > conftest.
$ac_ext <<EOF
3182 #line 3183 "configure"
3183 #include "confdefs.h"
3184 /* System header to define __stub macros and hopefully few prototypes,
3185 which can conflict with char $ac_func(); below. */
3187 /* Override any gcc2 internal prototype to avoid an error. */
3188 /* We use char because int might match the return type of a gcc2
3189 builtin and then its argument prototype would still apply. */
3194 /* The GNU C library defines this for functions which it implements
3195 to always fail with ENOSYS. Some functions are actually named
3196 something starting with __ and the normal name is an alias. */
3197 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3205 if { (eval echo configure
:3206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3207 eval "ac_cv_func_$ac_func=yes"
3209 echo "configure: failed program was:" >&5
3210 cat conftest.
$ac_ext >&5
3212 eval "ac_cv_func_$ac_func=no"
3217 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3218 echo "$ac_t""yes" 1>&6
3219 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3220 cat >> confdefs.h
<<EOF
3221 #define $ac_tr_func 1
3225 echo "$ac_t""no" 1>&6
3229 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
3230 true
+yes ) cat >> confdefs.h
<<\EOF
3236 rm -f doc
/config.status
3238 cat > confcache
<<\EOF
3239 # This file is a shell script that caches the results of configure
3240 # tests run on this system so they can be shared between configure
3241 # scripts and configure runs. It is not useful on other systems.
3242 # If it contains results you don't want to keep, you may remove or edit it.
3244 # By default, configure uses ./config.cache as the cache file,
3245 # creating it if it does not exist already. You can give configure
3246 # the --cache-file=FILE option to use a different cache file; that is
3247 # what configure does when it calls configure scripts in
3248 # subdirectories, so they share the cache.
3249 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3250 # config.status only pays attention to the cache file if you give it the
3251 # --recheck option to rerun configure.
3254 # The following way of writing the cache mishandles newlines in values,
3255 # but we know of no workaround that is simple, portable, and efficient.
3256 # So, don't put newlines in cache variables' values.
3257 # Ultrix sh set writes to stderr and can't be redirected directly,
3258 # and sets the high bit in the cache file unless we assign to the vars.
3260 case `(ac_space=' '; set) 2>&1 | grep ac_space` in
3262 # `set' does not quote correctly, so add quotes (double-quote substitution
3263 # turns \\\\ into \\, and sed turns \\ into \).
3265 -e "s/'/'\\\\''/g" \
3266 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3269 # `set' quotes correctly as required by POSIX, so do not add quotes.
3270 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3273 if cmp -s $cache_file confcache
; then
3276 if test -w $cache_file; then
3277 echo "updating cache $cache_file"
3278 cat confcache
> $cache_file
3280 echo "not updating unwritable cache $cache_file"
3285 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3287 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
3288 # Let make expand exec_prefix.
3289 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
3291 # Any assignment to VPATH causes Sun make to only execute
3292 # the first set of double-colon rules, so remove it if not needed.
3293 # If there is a colon in the path, we need to keep it.
3294 if test "x$srcdir" = x.
; then
3295 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
3298 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3300 DEFS
=-DHAVE_CONFIG_H
3302 # Without the "./", some shells look in PATH for config.status.
3303 : ${CONFIG_STATUS=./config.status}
3305 echo creating
$CONFIG_STATUS
3306 rm -f $CONFIG_STATUS
3307 cat > $CONFIG_STATUS <<EOF
3309 # Generated automatically by configure.
3310 # Run this file to recreate the current configuration.
3311 # This directory was configured as follows,
3312 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3314 # $0 $ac_configure_args
3316 # Compiler output produced by configure, useful for debugging
3317 # configure, is in ./config.log if it exists.
3319 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3322 case "\$ac_option" in
3323 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3324 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3325 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3326 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3327 echo "$CONFIG_STATUS generated by autoconf version 2.12.1"
3329 -help | --help | --hel | --he | --h)
3330 echo "\$ac_cs_usage"; exit 0 ;;
3331 *) echo "\$ac_cs_usage"; exit 1 ;;
3335 ac_given_srcdir=$srcdir
3336 ac_given_INSTALL="$INSTALL"
3338 trap 'rm -fr `echo "Makefile doc/Makefile bfd-in3.h:bfd-in2.h config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3340 cat >> $CONFIG_STATUS <<EOF
3342 # Protect against being on the right side of a sed subst in config.status.
3343 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3344 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3348 s%@CFLAGS@%$CFLAGS%g
3349 s%@CPPFLAGS@%$CPPFLAGS%g
3350 s%@CXXFLAGS@%$CXXFLAGS%g
3352 s%@LDFLAGS@%$LDFLAGS%g
3354 s%@exec_prefix@%$exec_prefix%g
3355 s%@prefix@%$prefix%g
3356 s%@program_transform_name@%$program_transform_name%g
3357 s%@bindir@%$bindir%g
3358 s%@sbindir@%$sbindir%g
3359 s%@libexecdir@%$libexecdir%g
3360 s%@datadir@%$datadir%g
3361 s%@sysconfdir@%$sysconfdir%g
3362 s%@sharedstatedir@%$sharedstatedir%g
3363 s%@localstatedir@%$localstatedir%g
3364 s%@libdir@%$libdir%g
3365 s%@includedir@%$includedir%g
3366 s%@oldincludedir@%$oldincludedir%g
3367 s%@infodir@%$infodir%g
3368 s%@mandir@%$mandir%g
3370 s%@host_alias@%$host_alias%g
3371 s%@host_cpu@%$host_cpu%g
3372 s%@host_vendor@%$host_vendor%g
3373 s%@host_os@%$host_os%g
3374 s%@target@%$target%g
3375 s%@target_alias@%$target_alias%g
3376 s%@target_cpu@%$target_cpu%g
3377 s%@target_vendor@%$target_vendor%g
3378 s%@target_os@%$target_os%g
3380 s%@build_alias@%$build_alias%g
3381 s%@build_cpu@%$build_cpu%g
3382 s%@build_vendor@%$build_vendor%g
3383 s%@build_os@%$build_os%g
3385 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3386 s%@INSTALL_DATA@%$INSTALL_DATA%g
3387 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3388 s%@PACKAGE@%$PACKAGE%g
3389 s%@VERSION@%$VERSION%g
3390 s%@ACLOCAL@%$ACLOCAL%g
3391 s%@AUTOCONF@%$AUTOCONF%g
3392 s%@AUTOMAKE@%$AUTOMAKE%g
3393 s%@AUTOHEADER@%$AUTOHEADER%g
3394 s%@MAKEINFO@%$MAKEINFO%g
3395 s%@SET_MAKE@%$SET_MAKE%g
3397 s%@RANLIB@%$RANLIB%g
3401 s%@LIBTOOL@%$LIBTOOL%g
3403 s%@EXEEXT@%$EXEEXT%g
3404 s%@HDEFINES@%$HDEFINES%g
3405 s%@BFD_HOST_64BIT_LONG@%$BFD_HOST_64BIT_LONG%g
3406 s%@BFD_HOST_64_BIT_DEFINED@%$BFD_HOST_64_BIT_DEFINED%g
3407 s%@BFD_HOST_64_BIT@%$BFD_HOST_64_BIT%g
3408 s%@BFD_HOST_U_64_BIT@%$BFD_HOST_U_64_BIT%g
3409 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
3410 s%@EXEEXT_FOR_BUILD@%$EXEEXT_FOR_BUILD%g
3412 s%@COREFILE@%$COREFILE%g
3413 s%@COREFLAG@%$COREFLAG%g
3414 s%@TDEFINES@%$TDEFINES%g
3415 s%@wordsize@%$wordsize%g
3416 s%@all_backends@%$all_backends%g
3417 s%@bfd_backends@%$bfd_backends%g
3418 s%@bfd_machines@%$bfd_machines%g
3419 s%@tdefaults@%$tdefaults%g
3424 cat >> $CONFIG_STATUS <<\EOF
3426 # Split the substitutions into bite-sized pieces for seds with
3427 # small command number limits, like on Digital OSF/1 and HP-UX.
3428 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
3429 ac_file
=1 # Number of current file.
3430 ac_beg
=1 # First line for current file.
3431 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
3434 while $ac_more_lines; do
3435 if test $ac_beg -gt 1; then
3436 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
3438 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
3440 if test ! -s conftest.s
$ac_file; then
3442 rm -f conftest.s
$ac_file
3444 if test -z "$ac_sed_cmds"; then
3445 ac_sed_cmds
="sed -f conftest.s$ac_file"
3447 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
3449 ac_file
=`expr $ac_file + 1`
3451 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
3454 if test -z "$ac_sed_cmds"; then
3459 cat >> $CONFIG_STATUS <<EOF
3461 CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile bfd-in3.h:bfd-in2.h"}
3463 cat >> $CONFIG_STATUS <<\EOF
3464 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
3465 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3467 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
3468 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
3469 *) ac_file_in
="${ac_file}.in" ;;
3472 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3474 # Remove last slash and all that follows it. Not all systems have dirname.
3475 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3476 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
3477 # The file is in a subdirectory.
3478 test ! -d "$ac_dir" && mkdir
"$ac_dir"
3479 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
3480 # A "../" for each directory in $ac_dir_suffix.
3481 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3483 ac_dir_suffix
= ac_dots
=
3486 case "$ac_given_srcdir" in
3488 if test -z "$ac_dots"; then top_srcdir
=.
3489 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3490 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
3492 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3493 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
3496 case "$ac_given_INSTALL" in
3497 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
3498 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
3501 echo creating
"$ac_file"
3503 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3505 *Makefile
*) ac_comsub
="1i\\
3506 # $configure_input" ;;
3510 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3512 s%@configure_input@%$configure_input%g
3513 s%@srcdir@%$srcdir%g
3514 s%@top_srcdir@%$top_srcdir%g
3515 s%@INSTALL@%$INSTALL%g
3516 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
3520 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3521 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3523 # ac_d sets the value in "#define NAME VALUE" lines.
3524 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3525 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
3528 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3529 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3530 ac_uB
='\([ ]\)%\1#\2define\3'
3533 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3534 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3535 ac_eB
='$%\1#\2define\3'
3539 if test "${CONFIG_HEADERS+set}" != set; then
3541 cat >> $CONFIG_STATUS <<EOF
3542 CONFIG_HEADERS="config.h:config.in"
3544 cat >> $CONFIG_STATUS <<\EOF
3546 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
3547 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3549 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
3550 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
3551 *) ac_file_in
="${ac_file}.in" ;;
3554 echo creating
$ac_file
3556 rm -f conftest.frag conftest.
in conftest.out
3557 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3558 cat $ac_file_inputs > conftest.
in
3562 # Transform confdefs.h into a sed script conftest.vals that substitutes
3563 # the proper values into config.h.in to produce config.h. And first:
3564 # Protect against being on the right side of a sed subst in config.status.
3565 # Protect against being in an unquoted here document in config.status.
3567 cat > conftest.hdr
<<\EOF
3570 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3574 sed -n -f conftest.hdr confdefs.h > conftest.vals
3577 # This sed command replaces #undef with comments. This is necessary, for
3578 # example, in the case of _POSIX_SOURCE, which is predefined and required
3579 # on some systems where configure will not decide to define it.
3580 cat >> conftest.vals <<\EOF
3581 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3584 # Break up conftest.vals because some shells have a limit on
3585 # the size of here documents, and old seds have small limits too.
3590 ac_lines=`grep -c . conftest.vals
`
3591 # grep -c gives empty output for an empty file on some AIX systems.
3592 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3593 # Write a limited-size here document to conftest.frag.
3594 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3595 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3597 sed -f conftest.frag conftest.in > conftest.out
3599 mv conftest.out conftest.in
3601 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3603 mv conftest.tail conftest.vals
3607 cat >> $CONFIG_STATUS <<\EOF
3608 rm -f conftest.frag conftest.h
3609 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3610 cat conftest.in >> conftest.h
3612 if cmp -s $ac_file conftest.h 2>/dev/null; then
3613 echo "$ac_file is unchanged"
3616 # Remove last slash and all that follows it. Not all systems have dirname.
3617 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
3618 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3619 # The file is in a subdirectory.
3620 test ! -d "$ac_dir" && mkdir "$ac_dir"
3623 mv conftest.h $ac_file
3628 cat >> $CONFIG_STATUS <<EOF
3632 cat >> $CONFIG_STATUS <<\EOF
3633 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
3637 chmod +x $CONFIG_STATUS
3638 rm -fr confdefs* $ac_clean_files
3639 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1