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 --enable-shared build shared libraries [default=no]
16 --enable-shared=PKGS only build shared libraries if the current package
17 appears as an element in the PKGS list"
19 --enable-static build static libraries [default=yes]
20 --enable-static=PKGS only build shared libraries if the current package
21 appears as an element in the PKGS list"
23 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
25 --enable-targets alternative target configurations"
27 --enable-commonbfdlib build shared BFD/opcodes/libiberty library"
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
=z8k-dis.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}-
649 # We currently only use the version number for the name of any shared
650 # library. For user convenience, we always use the same version
651 # number that BFD is using.
652 BFD_VERSION
=`grep INIT_AUTOMAKE ${srcdir}/../bfd/configure.in | sed -n -e 's/[ ]//g' -e 's/^.*,\(.*\)).*$/\1/p'`
654 # Find a good install program. We prefer a C program (faster),
655 # so one script is as good as another. But avoid the broken or
656 # incompatible versions:
657 # SysV /etc/install, /usr/sbin/install
658 # SunOS /usr/etc/install
661 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
662 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
663 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
664 # ./install, which can be erroneously created by make from ./install.sh.
665 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
666 echo "configure:667: checking for a BSD compatible install" >&5
667 if test -z "$INSTALL"; then
668 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
669 echo $ac_n "(cached) $ac_c" 1>&6
671 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
672 for ac_dir
in $PATH; do
673 # Account for people who put trailing slashes in PATH elements.
675 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
677 # OSF1 and SCO ODT 3.0 have their own names for install.
678 # Don't use installbsd from OSF since it installs stuff as root
680 for ac_prog
in ginstall scoinst
install; do
681 if test -f $ac_dir/$ac_prog; then
682 if test $ac_prog = install &&
683 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
684 # AIX install. It has an incompatible calling convention.
687 ac_cv_path_install
="$ac_dir/$ac_prog -c"
698 if test "${ac_cv_path_install+set}" = set; then
699 INSTALL
="$ac_cv_path_install"
701 # As a last resort, use the slow shell script. We don't cache a
702 # path for INSTALL within a source directory, because that will
703 # break other packages using the cache if that directory is
704 # removed, or if the path is relative.
705 INSTALL
="$ac_install_sh"
708 echo "$ac_t""$INSTALL" 1>&6
710 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
711 # It thinks the first close brace ends the variable substitution.
712 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
714 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
717 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
719 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
720 echo "configure:721: checking whether build environment is sane" >&5
723 echo timestamp
> conftestfile
724 # Do `set' in a subshell so we don't clobber the current shell's
725 # arguments. Must try -L first in case configure is actually a
726 # symlink; some systems play weird games with the mod time of symlinks
727 # (eg FreeBSD returns the mod time of the symlink's containing
730 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
731 if test "$*" = "X"; then
733 set X
`ls -t $srcdir/configure conftestfile`
735 if test "$*" != "X $srcdir/configure conftestfile" \
736 && test "$*" != "X conftestfile $srcdir/configure"; then
738 # If neither matched, then we have a broken ls. This can happen
739 # if, for instance, CONFIG_SHELL is bash and it inherits a
740 # broken ls alias from the environment. This has actually
741 # happened. Such a system could not be considered "sane".
742 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
743 alias in your environment" 1>&2; exit 1; }
746 test "$2" = conftestfile
752 { echo "configure: error: newly created file is older than distributed files!
753 Check your system clock" 1>&2; exit 1; }
756 echo "$ac_t""yes" 1>&6
757 if test "$program_transform_name" = s
,x
,x
,; then
758 program_transform_name
=
760 # Double any \ or $. echo might interpret backslashes.
761 cat <<\EOF_SED
> conftestsed
762 s
,\\,\\\\,g
; s
,\$
,$$
,g
764 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
767 test "$program_prefix" != NONE
&&
768 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
769 # Use a double $ so make ignores it.
770 test "$program_suffix" != NONE
&&
771 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
773 # sed with no file args requires a program.
774 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
776 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
777 echo "configure:778: checking whether ${MAKE-make} sets \${MAKE}" >&5
778 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
779 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
780 echo $ac_n "(cached) $ac_c" 1>&6
782 cat > conftestmake
<<\EOF
784 @
echo 'ac_maketemp="${MAKE}"'
786 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
787 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
788 if test -n "$ac_maketemp"; then
789 eval ac_cv_prog_make_
${ac_make}_set
=yes
791 eval ac_cv_prog_make_
${ac_make}_set
=no
795 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
796 echo "$ac_t""yes" 1>&6
799 echo "$ac_t""no" 1>&6
800 SET_MAKE
="MAKE=${MAKE-make}"
806 VERSION
=${BFD_VERSION}
808 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
809 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
811 cat >> confdefs.h
<<EOF
812 #define PACKAGE "$PACKAGE"
815 cat >> confdefs.h
<<EOF
816 #define VERSION "$VERSION"
821 missing_dir
=`cd $ac_aux_dir && pwd`
822 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
823 echo "configure:824: checking for working aclocal" >&5
824 # Run test in a subshell; some versions of sh will print an error if
825 # an executable is not found, even if stderr is redirected.
826 # Redirect stdin to placate older versions of autoconf. Sigh.
827 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
829 echo "$ac_t""found" 1>&6
831 ACLOCAL
="$missing_dir/missing aclocal"
832 echo "$ac_t""missing" 1>&6
835 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
836 echo "configure:837: checking for working autoconf" >&5
837 # Run test in a subshell; some versions of sh will print an error if
838 # an executable is not found, even if stderr is redirected.
839 # Redirect stdin to placate older versions of autoconf. Sigh.
840 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
842 echo "$ac_t""found" 1>&6
844 AUTOCONF
="$missing_dir/missing autoconf"
845 echo "$ac_t""missing" 1>&6
848 echo $ac_n "checking for working automake""... $ac_c" 1>&6
849 echo "configure:850: checking for working automake" >&5
850 # Run test in a subshell; some versions of sh will print an error if
851 # an executable is not found, even if stderr is redirected.
852 # Redirect stdin to placate older versions of autoconf. Sigh.
853 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
855 echo "$ac_t""found" 1>&6
857 AUTOMAKE
="$missing_dir/missing automake"
858 echo "$ac_t""missing" 1>&6
861 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
862 echo "configure:863: checking for working autoheader" >&5
863 # Run test in a subshell; some versions of sh will print an error if
864 # an executable is not found, even if stderr is redirected.
865 # Redirect stdin to placate older versions of autoconf. Sigh.
866 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
867 AUTOHEADER
=autoheader
868 echo "$ac_t""found" 1>&6
870 AUTOHEADER
="$missing_dir/missing autoheader"
871 echo "$ac_t""missing" 1>&6
874 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
875 echo "configure:876: checking for working makeinfo" >&5
876 # Run test in a subshell; some versions of sh will print an error if
877 # an executable is not found, even if stderr is redirected.
878 # Redirect stdin to placate older versions of autoconf. Sigh.
879 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
881 echo "$ac_t""found" 1>&6
883 MAKEINFO
="$missing_dir/missing makeinfo"
884 echo "$ac_t""missing" 1>&6
889 if test $host != $build; then
890 ac_tool_prefix
=${host_alias}-
895 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
896 set dummy
${ac_tool_prefix}ar; ac_word
=$2
897 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
898 echo "configure:899: checking for $ac_word" >&5
899 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
900 echo $ac_n "(cached) $ac_c" 1>&6
902 if test -n "$AR"; then
903 ac_cv_prog_AR
="$AR" # Let the user override the test.
905 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
906 for ac_dir
in $PATH; do
907 test -z "$ac_dir" && ac_dir
=.
908 if test -f $ac_dir/$ac_word; then
909 ac_cv_prog_AR
="${ac_tool_prefix}ar"
914 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
918 if test -n "$AR"; then
919 echo "$ac_t""$AR" 1>&6
921 echo "$ac_t""no" 1>&6
926 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
927 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
928 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
929 echo "configure:930: checking for $ac_word" >&5
930 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
931 echo $ac_n "(cached) $ac_c" 1>&6
933 if test -n "$RANLIB"; then
934 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
936 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
937 for ac_dir
in $PATH; do
938 test -z "$ac_dir" && ac_dir
=.
939 if test -f $ac_dir/$ac_word; then
940 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
947 RANLIB
="$ac_cv_prog_RANLIB"
948 if test -n "$RANLIB"; then
949 echo "$ac_t""$RANLIB" 1>&6
951 echo "$ac_t""no" 1>&6
955 if test -z "$ac_cv_prog_RANLIB"; then
956 if test -n "$ac_tool_prefix"; then
957 # Extract the first word of "ranlib", so it can be a program name with args.
958 set dummy ranlib
; ac_word
=$2
959 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
960 echo "configure:961: checking for $ac_word" >&5
961 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
962 echo $ac_n "(cached) $ac_c" 1>&6
964 if test -n "$RANLIB"; then
965 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
967 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
968 for ac_dir
in $PATH; do
969 test -z "$ac_dir" && ac_dir
=.
970 if test -f $ac_dir/$ac_word; then
971 ac_cv_prog_RANLIB
="ranlib"
976 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
979 RANLIB
="$ac_cv_prog_RANLIB"
980 if test -n "$RANLIB"; then
981 echo "$ac_t""$RANLIB" 1>&6
983 echo "$ac_t""no" 1>&6
992 # Check whether --enable-shared or --disable-shared was given.
993 if test "${enable_shared+set}" = set; then
994 enableval
="$enable_shared"
997 yes) enable_shared
=yes ;;
998 no
) enable_shared
=no
;;
1001 # Look at the argument we got. We use all the common list separators.
1002 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1003 for pkg
in $enableval; do
1004 if test "X$pkg" = "X$p"; then
1016 # Check whether --enable-static or --disable-static was given.
1017 if test "${enable_static+set}" = set; then
1018 enableval
="$enable_static"
1019 p
=${PACKAGE-default}
1020 case "$enableval" in
1021 yes) enable_static
=yes ;;
1022 no
) enable_static
=no
;;
1025 # Look at the argument we got. We use all the common list separators.
1026 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1027 for pkg
in $enableval; do
1028 if test "X$pkg" = "X$p"; then
1039 # Extract the first word of "ranlib", so it can be a program name with args.
1040 set dummy ranlib
; ac_word
=$2
1041 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1042 echo "configure:1043: checking for $ac_word" >&5
1043 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1044 echo $ac_n "(cached) $ac_c" 1>&6
1046 if test -n "$RANLIB"; then
1047 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1049 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1050 for ac_dir
in $PATH; do
1051 test -z "$ac_dir" && ac_dir
=.
1052 if test -f $ac_dir/$ac_word; then
1053 ac_cv_prog_RANLIB
="ranlib"
1058 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1061 RANLIB
="$ac_cv_prog_RANLIB"
1062 if test -n "$RANLIB"; then
1063 echo "$ac_t""$RANLIB" 1>&6
1065 echo "$ac_t""no" 1>&6
1068 # Extract the first word of "gcc", so it can be a program name with args.
1069 set dummy gcc
; ac_word
=$2
1070 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1071 echo "configure:1072: checking for $ac_word" >&5
1072 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1073 echo $ac_n "(cached) $ac_c" 1>&6
1075 if test -n "$CC"; then
1076 ac_cv_prog_CC
="$CC" # Let the user override the test.
1078 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1079 for ac_dir
in $PATH; do
1080 test -z "$ac_dir" && ac_dir
=.
1081 if test -f $ac_dir/$ac_word; then
1090 if test -n "$CC"; then
1091 echo "$ac_t""$CC" 1>&6
1093 echo "$ac_t""no" 1>&6
1096 if test -z "$CC"; then
1097 # Extract the first word of "cc", so it can be a program name with args.
1098 set dummy cc
; ac_word
=$2
1099 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1100 echo "configure:1101: checking for $ac_word" >&5
1101 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1102 echo $ac_n "(cached) $ac_c" 1>&6
1104 if test -n "$CC"; then
1105 ac_cv_prog_CC
="$CC" # Let the user override the test.
1107 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 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1113 ac_prog_rejected
=yes
1121 if test $ac_prog_rejected = yes; then
1122 # We found a bogon in the path, so make sure we never use it.
1123 set dummy
$ac_cv_prog_CC
1125 if test $# -gt 0; then
1126 # We chose a different compiler from the bogus one.
1127 # However, it has the same basename, so the bogon will be chosen
1128 # first if we set CC to just the basename; use the full file name.
1130 set dummy
"$ac_dir/$ac_word" "$@"
1138 if test -n "$CC"; then
1139 echo "$ac_t""$CC" 1>&6
1141 echo "$ac_t""no" 1>&6
1144 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1147 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1148 echo "configure:1149: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1151 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1152 ac_cpp
='$CPP $CPPFLAGS'
1153 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1154 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1155 cross_compiling
=$ac_cv_prog_cc_cross
1157 cat > conftest.
$ac_ext <<EOF
1158 #line 1159 "configure"
1159 #include "confdefs.h"
1162 if { (eval echo configure
:1163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1163 ac_cv_prog_cc_works
=yes
1164 # If we can't run a trivial program, we are probably using a cross compiler.
1165 if (.
/conftest
; exit) 2>/dev
/null
; then
1166 ac_cv_prog_cc_cross
=no
1168 ac_cv_prog_cc_cross
=yes
1171 echo "configure: failed program was:" >&5
1172 cat conftest.
$ac_ext >&5
1173 ac_cv_prog_cc_works
=no
1177 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1178 if test $ac_cv_prog_cc_works = no
; then
1179 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1181 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1182 echo "configure:1183: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1183 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1184 cross_compiling
=$ac_cv_prog_cc_cross
1186 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1187 echo "configure:1188: checking whether we are using GNU C" >&5
1188 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1189 echo $ac_n "(cached) $ac_c" 1>&6
1191 cat > conftest.c
<<EOF
1196 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1197: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1203 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1205 if test $ac_cv_prog_gcc = yes; then
1207 ac_test_CFLAGS
="${CFLAGS+set}"
1208 ac_save_CFLAGS
="$CFLAGS"
1210 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1211 echo "configure:1212: checking whether ${CC-cc} accepts -g" >&5
1212 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1213 echo $ac_n "(cached) $ac_c" 1>&6
1215 echo 'void f(){}' > conftest.c
1216 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1225 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1226 if test "$ac_test_CFLAGS" = set; then
1227 CFLAGS
="$ac_save_CFLAGS"
1228 elif test $ac_cv_prog_cc_g = yes; then
1235 test "${CFLAGS+set}" = set || CFLAGS
="-g"
1238 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1239 if test "${with_gnu_ld+set}" = set; then
1240 withval
="$with_gnu_ld"
1241 test "$withval" = no || with_gnu_ld
=yes
1248 if test "$ac_cv_prog_gcc" = yes; then
1249 # Check if gcc -print-prog-name=ld gives a path.
1250 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1251 echo "configure:1252: checking for ld used by GCC" >&5
1252 ac_prog
=`($CC -print-prog-name=ld) 2>&5`
1254 # Accept absolute paths.
1256 test -z "$LD" && LD
="$ac_prog"
1259 # If it fails, then pretend we aren't using GCC.
1263 # If it is relative, then search for the first ld in PATH.
1267 elif test "$with_gnu_ld" = yes; then
1268 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1269 echo "configure:1270: checking for GNU ld" >&5
1271 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1272 echo "configure:1273: checking for non-GNU ld" >&5
1274 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1275 echo $ac_n "(cached) $ac_c" 1>&6
1277 if test -z "$LD"; then
1278 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1279 for ac_dir
in $PATH; do
1280 test -z "$ac_dir" && ac_dir
=.
1281 if test -f "$ac_dir/$ac_prog"; then
1282 ac_cv_path_LD
="$ac_dir/$ac_prog"
1283 # Check to see if the program is GNU ld. I'd rather use --version,
1284 # but apparently some GNU ld's only accept -v.
1285 # Break only if it was the GNU/non-GNU ld that we prefer.
1286 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1287 test "$with_gnu_ld" != no
&& break
1289 test "$with_gnu_ld" != yes && break
1295 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
1300 if test -n "$LD"; then
1301 echo "$ac_t""$LD" 1>&6
1303 echo "$ac_t""no" 1>&6
1305 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1307 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1308 echo "configure:1309: checking if the linker ($LD) is GNU ld" >&5
1309 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1310 echo $ac_n "(cached) $ac_c" 1>&6
1312 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1313 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1314 ac_cv_prog_gnu_ld
=yes
1316 ac_cv_prog_gnu_ld
=no
1320 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1323 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1324 echo "configure:1325: checking for BSD-compatible nm" >&5
1325 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1326 echo $ac_n "(cached) $ac_c" 1>&6
1330 ac_cv_path_NM
="$NM" # Let the user override the test with a path.
1333 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1334 for ac_dir
in /usr
/ucb
/usr
/ccs
/bin
$PATH /bin
; do
1335 test -z "$ac_dir" && ac_dir
=.
1336 if test -f $ac_dir/nm
; then
1337 # Check to see if the nm accepts a BSD-compat flag.
1338 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1339 # nm: unknown option "B" ignored
1340 if ($ac_dir/nm
-B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1341 ac_cv_path_NM
="$ac_dir/nm -B"
1342 elif ($ac_dir/nm
-p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1343 ac_cv_path_NM
="$ac_dir/nm -p"
1345 ac_cv_path_NM
="$ac_dir/nm"
1351 test -z "$ac_cv_path_NM" && ac_cv_path_NM
=nm
1357 echo "$ac_t""$NM" 1>&6
1360 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1361 echo "configure:1362: checking whether ln -s works" >&5
1362 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1363 echo $ac_n "(cached) $ac_c" 1>&6
1366 if ln -s X conftestdata
2>/dev
/null
1369 ac_cv_prog_LN_S
="ln -s"
1374 LN_S
="$ac_cv_prog_LN_S"
1375 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1376 echo "$ac_t""yes" 1>&6
1378 echo "$ac_t""no" 1>&6
1381 # Always use our own libtool.
1382 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
1384 # Check for any special flags to pass to ltconfig.
1386 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
1387 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
1388 test "$silent" = yes && libtool_flags
="$libtool_flags --silent"
1389 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
1390 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
1392 # Some flags need to be propagated to the compiler or linker for good
1396 # Find out which ABI we are using.
1397 echo '#line 1398 "configure"' > conftest.
$ac_ext
1398 if { (eval echo configure
:1399: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1399 case "`/usr/bin/file conftest.o`" in
1415 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1416 CFLAGS
="$CFLAGS -belf"
1420 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1421 CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
1422 LD
="$LD" NM
="$NM" RANLIB
="$RANLIB" LN_S
="$LN_S" \
1423 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
1424 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh
$host \
1425 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1428 # Check whether --enable-targets or --disable-targets was given.
1429 if test "${enable_targets+set}" = set; then
1430 enableval
="$enable_targets"
1431 case "${enableval}" in
1432 yes |
"") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
1434 no
) enable_targets
= ;;
1435 *) enable_targets
=$enableval ;;
1438 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
1439 if test "${enable_commonbfdlib+set}" = set; then
1440 enableval
="$enable_commonbfdlib"
1441 case "${enableval}" in
1442 yes) commonbfdlib
=true
;;
1443 no
) commonbfdlib
=false
;;
1444 *) { echo "configure: error: bad value ${enableval} for opcodes commonbfdlib option" 1>&2; exit 1; } ;;
1452 if test -z "$target" ; then
1453 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
1455 if test "$program_transform_name" = s
,x
,x
,; then
1456 program_transform_name
=
1458 # Double any \ or $. echo might interpret backslashes.
1459 cat <<\EOF_SED
> conftestsed
1460 s
,\\,\\\\,g
; s
,\$
,$$
,g
1462 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
1465 test "$program_prefix" != NONE
&&
1466 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
1467 # Use a double $ so make ignores it.
1468 test "$program_suffix" != NONE
&&
1469 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
1471 # sed with no file args requires a program.
1472 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
1475 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1476 echo "configure:1477: checking whether to enable maintainer-specific portions of Makefiles" >&5
1477 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1478 if test "${enable_maintainer_mode+set}" = set; then
1479 enableval
="$enable_maintainer_mode"
1480 USE_MAINTAINER_MODE
=$enableval
1482 USE_MAINTAINER_MODE
=no
1485 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1486 if test $USE_MAINTAINER_MODE = yes; then
1493 echo $ac_n "checking for Cygwin32 environment""... $ac_c" 1>&6
1494 echo "configure:1495: checking for Cygwin32 environment" >&5
1495 if eval "test \"`echo '$''{'am_cv_cygwin32'+set}'`\" = set"; then
1496 echo $ac_n "(cached) $ac_c" 1>&6
1498 cat > conftest.
$ac_ext <<EOF
1499 #line 1500 "configure"
1500 #include "confdefs.h"
1503 return __CYGWIN32__;
1506 if { (eval echo configure
:1507: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1510 echo "configure: failed program was:" >&5
1511 cat conftest.
$ac_ext >&5
1519 echo "$ac_t""$am_cv_cygwin32" 1>&6
1521 test "$am_cv_cygwin32" = yes && CYGWIN32
=yes
1522 echo $ac_n "checking for Mingw32 environment""... $ac_c" 1>&6
1523 echo "configure:1524: checking for Mingw32 environment" >&5
1524 if eval "test \"`echo '$''{'am_cv_mingw32'+set}'`\" = set"; then
1525 echo $ac_n "(cached) $ac_c" 1>&6
1527 cat > conftest.
$ac_ext <<EOF
1528 #line 1529 "configure"
1529 #include "confdefs.h"
1535 if { (eval echo configure
:1536: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1539 echo "configure: failed program was:" >&5
1540 cat conftest.
$ac_ext >&5
1548 echo "$ac_t""$am_cv_mingw32" 1>&6
1550 test "$am_cv_mingw32" = yes && MINGW32
=yes
1553 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1554 echo "configure:1555: checking for executable suffix" >&5
1555 if eval "test \"`echo '$''{'am_cv_exeext'+set}'`\" = set"; then
1556 echo $ac_n "(cached) $ac_c" 1>&6
1558 if test "$CYGWIN32" = yes ||
test "$MINGW32" = yes; then
1561 cat > am_c_test.c
<< 'EOF'
1563 /* Nothing needed here
*/
1566 ${CC-cc} -o am_c_test
$CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c
$LIBS 1>&5
1567 am_cv_exeext
=`echo am_c_test.* | grep -v am_c_test.c | sed -e s/am_c_test//`
1571 test x
"${am_cv_exeext}" = x
&& am_cv_exeext
=no
1574 test x
"${am_cv_exeext}" != xno
&& EXEEXT
=${am_cv_exeext}
1575 echo "$ac_t""${am_cv_exeext}" 1>&6
1578 # host-specific stuff:
1580 # Extract the first word of "gcc", so it can be a program name with args.
1581 set dummy gcc
; ac_word
=$2
1582 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1583 echo "configure:1584: checking for $ac_word" >&5
1584 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1585 echo $ac_n "(cached) $ac_c" 1>&6
1587 if test -n "$CC"; then
1588 ac_cv_prog_CC
="$CC" # Let the user override the test.
1590 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1591 for ac_dir
in $PATH; do
1592 test -z "$ac_dir" && ac_dir
=.
1593 if test -f $ac_dir/$ac_word; then
1602 if test -n "$CC"; then
1603 echo "$ac_t""$CC" 1>&6
1605 echo "$ac_t""no" 1>&6
1608 if test -z "$CC"; then
1609 # Extract the first word of "cc", so it can be a program name with args.
1610 set dummy cc
; ac_word
=$2
1611 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1612 echo "configure:1613: checking for $ac_word" >&5
1613 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1614 echo $ac_n "(cached) $ac_c" 1>&6
1616 if test -n "$CC"; then
1617 ac_cv_prog_CC
="$CC" # Let the user override the test.
1619 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
1624 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1625 ac_prog_rejected
=yes
1633 if test $ac_prog_rejected = yes; then
1634 # We found a bogon in the path, so make sure we never use it.
1635 set dummy
$ac_cv_prog_CC
1637 if test $# -gt 0; then
1638 # We chose a different compiler from the bogus one.
1639 # However, it has the same basename, so the bogon will be chosen
1640 # first if we set CC to just the basename; use the full file name.
1642 set dummy
"$ac_dir/$ac_word" "$@"
1650 if test -n "$CC"; then
1651 echo "$ac_t""$CC" 1>&6
1653 echo "$ac_t""no" 1>&6
1656 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1659 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1660 echo "configure:1661: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1663 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1664 ac_cpp
='$CPP $CPPFLAGS'
1665 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1666 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1667 cross_compiling
=$ac_cv_prog_cc_cross
1669 cat > conftest.
$ac_ext <<EOF
1670 #line 1671 "configure"
1671 #include "confdefs.h"
1674 if { (eval echo configure
:1675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1675 ac_cv_prog_cc_works
=yes
1676 # If we can't run a trivial program, we are probably using a cross compiler.
1677 if (.
/conftest
; exit) 2>/dev
/null
; then
1678 ac_cv_prog_cc_cross
=no
1680 ac_cv_prog_cc_cross
=yes
1683 echo "configure: failed program was:" >&5
1684 cat conftest.
$ac_ext >&5
1685 ac_cv_prog_cc_works
=no
1689 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1690 if test $ac_cv_prog_cc_works = no
; then
1691 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1693 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1694 echo "configure:1695: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1695 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1696 cross_compiling
=$ac_cv_prog_cc_cross
1698 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1699 echo "configure:1700: checking whether we are using GNU C" >&5
1700 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1701 echo $ac_n "(cached) $ac_c" 1>&6
1703 cat > conftest.c
<<EOF
1708 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1709: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1715 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1717 if test $ac_cv_prog_gcc = yes; then
1719 ac_test_CFLAGS
="${CFLAGS+set}"
1720 ac_save_CFLAGS
="$CFLAGS"
1722 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1723 echo "configure:1724: checking whether ${CC-cc} accepts -g" >&5
1724 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1725 echo $ac_n "(cached) $ac_c" 1>&6
1727 echo 'void f(){}' > conftest.c
1728 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1737 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1738 if test "$ac_test_CFLAGS" = set; then
1739 CFLAGS
="$ac_save_CFLAGS"
1740 elif test $ac_cv_prog_cc_g = yes; then
1747 test "${CFLAGS+set}" = set || CFLAGS
="-g"
1751 .
${srcdir}/..
/bfd
/configure.
host
1755 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1758 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1759 echo "configure:1760: checking how to run the C preprocessor" >&5
1760 # On Suns, sometimes $CPP names a directory.
1761 if test -n "$CPP" && test -d "$CPP"; then
1764 if test -z "$CPP"; then
1765 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1766 echo $ac_n "(cached) $ac_c" 1>&6
1768 # This must be in double quotes, not single quotes, because CPP may get
1769 # substituted into the Makefile and "${CC-cc}" will confuse make.
1771 # On the NeXT, cc -E runs the code through the compiler's parser,
1772 # not just through cpp.
1773 cat > conftest.
$ac_ext <<EOF
1774 #line 1775 "configure"
1775 #include "confdefs.h"
1779 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1780 { (eval echo configure
:1781: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1781 ac_err
=`grep -v '^ *+' conftest.out`
1782 if test -z "$ac_err"; then
1786 echo "configure: failed program was:" >&5
1787 cat conftest.
$ac_ext >&5
1789 CPP
="${CC-cc} -E -traditional-cpp"
1790 cat > conftest.
$ac_ext <<EOF
1791 #line 1792 "configure"
1792 #include "confdefs.h"
1796 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1797 { (eval echo configure
:1798: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1798 ac_err
=`grep -v '^ *+' conftest.out`
1799 if test -z "$ac_err"; then
1803 echo "configure: failed program was:" >&5
1804 cat conftest.
$ac_ext >&5
1811 ac_cv_prog_CPP
="$CPP"
1813 CPP
="$ac_cv_prog_CPP"
1815 ac_cv_prog_CPP
="$CPP"
1817 echo "$ac_t""$CPP" 1>&6
1819 for ac_hdr
in string.h
strings.h stdlib.h
1821 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1822 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1823 echo "configure:1824: checking for $ac_hdr" >&5
1824 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1825 echo $ac_n "(cached) $ac_c" 1>&6
1827 cat > conftest.
$ac_ext <<EOF
1828 #line 1829 "configure"
1829 #include "confdefs.h"
1832 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1833 { (eval echo configure
:1834: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1834 ac_err
=`grep -v '^ *+' conftest.out`
1835 if test -z "$ac_err"; then
1837 eval "ac_cv_header_$ac_safe=yes"
1840 echo "configure: failed program was:" >&5
1841 cat conftest.
$ac_ext >&5
1843 eval "ac_cv_header_$ac_safe=no"
1847 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1848 echo "$ac_t""yes" 1>&6
1849 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1850 cat >> confdefs.h
<<EOF
1851 #define $ac_tr_hdr 1
1855 echo "$ac_t""no" 1>&6
1860 # start-sanitize-cygnus
1862 if test ${USE_MAINTAINER_MODE} = yes ; then
1863 for targ
in $target $canon_targets
1866 all
) use_cgen
=yes ;;
1867 m32r-
*-*) use_cgen
=yes ;;
1871 if test $use_cgen = yes ; then
1872 # Extract the first word of "guile", so it can be a program name with args.
1873 set dummy guile
; ac_word
=$2
1874 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1875 echo "configure:1876: checking for $ac_word" >&5
1876 if eval "test \"`echo '$''{'ac_cv_prog_SCHEME'+set}'`\" = set"; then
1877 echo $ac_n "(cached) $ac_c" 1>&6
1879 if test -n "$SCHEME"; then
1880 ac_cv_prog_SCHEME
="$SCHEME" # Let the user override the test.
1882 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1883 for ac_dir
in $PATH; do
1884 test -z "$ac_dir" && ac_dir
=.
1885 if test -f $ac_dir/$ac_word; then
1886 ac_cv_prog_SCHEME
="guile"
1891 test -z "$ac_cv_prog_SCHEME" && ac_cv_prog_SCHEME
="guile"
1894 SCHEME
="$ac_cv_prog_SCHEME"
1895 if test -n "$SCHEME"; then
1896 echo "$ac_t""$SCHEME" 1>&6
1898 echo "$ac_t""no" 1>&6
1902 # end-sanitize-cygnus
1904 # target-specific stuff:
1906 # Canonicalize the secondary target names.
1907 if test -n "$enable_targets" ; then
1908 for targ
in `echo $enable_targets | sed 's/,/ /g'`
1910 result
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $targ 2>/dev/null`
1911 if test -n "$result" ; then
1912 canon_targets
="$canon_targets $result"
1914 # Allow targets that config.sub doesn't recognize, like "all".
1915 canon_targets
="$canon_targets $targ"
1922 for targ
in $target $canon_targets
1924 if test "x$targ" = "xall" ; then
1927 .
$srcdir/..
/bfd
/config.bfd
1928 selarchs
="$selarchs $targ_archs"
1932 # Utility var, documents generic cgen support files.
1934 cgen_files
="cgen-opc.lo cgen-asm.lo cgen-dis.lo"
1936 # We don't do any links based on the target system, just makefile config.
1938 if test x
${all_targets} = xfalse
; then
1940 # Target architecture .o files.
1943 for arch
in $selarchs
1945 ad
=`echo $arch | sed -e s/bfd_//g -e s/_arch//g`
1946 archdefs
="$archdefs -DARCH_$ad"
1948 bfd_a29k_arch
) ta
="$ta a29k-dis.lo" ;;
1949 bfd_alliant_arch
) ;;
1950 bfd_alpha_arch
) ta
="$ta alpha-dis.lo alpha-opc.lo" ;;
1951 bfd_arc_arch
) ta
="$ta arc-dis.lo arc-opc.lo" ;;
1952 bfd_arm_arch
) ta
="$ta arm-dis.lo" ;;
1954 bfd_d10v_arch
) ta
="$ta d10v-dis.lo d10v-opc.lo" ;;
1955 # start-sanitize-d30v
1956 bfd_d30v_arch
) ta
="$ta d30v-dis.lo d30v-opc.lo" ;;
1958 bfd_h8300_arch
) ta
="$ta h8300-dis.lo" ;;
1959 bfd_h8500_arch
) ta
="$ta h8500-dis.lo" ;;
1960 bfd_hppa_arch
) ta
="$ta hppa-dis.lo" ;;
1961 bfd_i386_arch
) ta
="$ta i386-dis.lo" ;;
1963 bfd_i960_arch
) ta
="$ta i960-dis.lo" ;;
1964 bfd_m32r_arch
) ta
="$ta $cgen_files m32r-opc.lo m32r-asm.lo m32r-dis.lo" ;;
1965 bfd_m68k_arch
) ta
="$ta m68k-dis.lo m68k-opc.lo" ;;
1966 bfd_m88k_arch
) ta
="$ta m88k-dis.lo" ;;
1967 bfd_mips_arch
) ta
="$ta mips-dis.lo mips-opc.lo mips16-opc.lo" ;;
1968 bfd_mn10200_arch
) ta
="$ta m10200-dis.lo m10200-opc.lo" ;;
1969 bfd_mn10300_arch
) ta
="$ta m10300-dis.lo m10300-opc.lo" ;;
1970 bfd_ns32k_arch
) ta
="$ta ns32k-dis.lo" ;;
1971 bfd_powerpc_arch
) ta
="$ta ppc-dis.lo ppc-opc.lo" ;;
1972 bfd_pyramid_arch
) ;;
1974 bfd_rs6000_arch
) ta
="$ta ppc-dis.lo ppc-opc.lo" ;;
1975 bfd_sh_arch
) ta
="$ta sh-dis.lo" ;;
1976 bfd_sparc_arch
) ta
="$ta sparc-dis.lo sparc-opc.lo" ;;
1978 bfd_tic30_arch
) ta
="$ta tic30-dis.lo" ;;
1979 # start-sanitize-tic80
1980 bfd_tic80_arch
) ta
="$ta tic80-dis.lo tic80-opc.lo" ;;
1981 # end-sanitize-tic80
1982 # start-sanitize-sky
1983 bfd_dvp_arch
) ta
="$ta mips-dis.lo mips-opc.lo mips16-opc.lo dvp-dis.lo dvp-opc.lo" ;;
1985 bfd_v850_arch
) ta
="$ta v850-opc.lo v850-dis.lo" ;;
1986 # start-sanitize-v850e
1987 bfd_v850e_arch
) ta
="$ta v850-opc.lo v850-dis.lo" ;;
1988 bfd_v850ea_arch
) ta
="$ta v850-opc.lo v850-dis.lo" ;;
1989 # end-sanitize-v850e
1991 bfd_w65_arch
) ta
="$ta w65-dis.lo" ;;
1993 bfd_z8k_arch
) ta
="$ta z8k-dis.lo" ;;
1996 *) { echo "configure: error: *** unknown target architecture $arch" 1>&2; exit 1; } ;;
2000 # Weed out duplicate .o files.
2010 # And duplicate -D flags.
2012 for i
in $archdefs ; do
2022 else # all_targets is true
2024 BFD_MACHINES
='$(ALL_MACHINES)'
2031 cat > confcache
<<\EOF
2032 # This file is a shell script that caches the results of configure
2033 # tests run on this system so they can be shared between configure
2034 # scripts and configure runs. It is not useful on other systems.
2035 # If it contains results you don't want to keep, you may remove or edit it.
2037 # By default, configure uses ./config.cache as the cache file,
2038 # creating it if it does not exist already. You can give configure
2039 # the --cache-file=FILE option to use a different cache file; that is
2040 # what configure does when it calls configure scripts in
2041 # subdirectories, so they share the cache.
2042 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2043 # config.status only pays attention to the cache file if you give it the
2044 # --recheck option to rerun configure.
2047 # The following way of writing the cache mishandles newlines in values,
2048 # but we know of no workaround that is simple, portable, and efficient.
2049 # So, don't put newlines in cache variables' values.
2050 # Ultrix sh set writes to stderr and can't be redirected directly,
2051 # and sets the high bit in the cache file unless we assign to the vars.
2053 case `(ac_space=' '; set) 2>&1 | grep ac_space` in
2055 # `set' does not quote correctly, so add quotes (double-quote substitution
2056 # turns \\\\ into \\, and sed turns \\ into \).
2058 -e "s/'/'\\\\''/g" \
2059 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2062 # `set' quotes correctly as required by POSIX, so do not add quotes.
2063 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2066 if cmp -s $cache_file confcache
; then
2069 if test -w $cache_file; then
2070 echo "updating cache $cache_file"
2071 cat confcache
> $cache_file
2073 echo "not updating unwritable cache $cache_file"
2078 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2080 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
2081 # Let make expand exec_prefix.
2082 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
2084 # Any assignment to VPATH causes Sun make to only execute
2085 # the first set of double-colon rules, so remove it if not needed.
2086 # If there is a colon in the path, we need to keep it.
2087 if test "x$srcdir" = x.
; then
2088 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
2091 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2093 DEFS
=-DHAVE_CONFIG_H
2095 # Without the "./", some shells look in PATH for config.status.
2096 : ${CONFIG_STATUS=./config.status}
2098 echo creating
$CONFIG_STATUS
2099 rm -f $CONFIG_STATUS
2100 cat > $CONFIG_STATUS <<EOF
2102 # Generated automatically by configure.
2103 # Run this file to recreate the current configuration.
2104 # This directory was configured as follows,
2105 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2107 # $0 $ac_configure_args
2109 # Compiler output produced by configure, useful for debugging
2110 # configure, is in ./config.log if it exists.
2112 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2115 case "\$ac_option" in
2116 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2117 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2118 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2119 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2120 echo "$CONFIG_STATUS generated by autoconf version 2.12.1"
2122 -help | --help | --hel | --he | --h)
2123 echo "\$ac_cs_usage"; exit 0 ;;
2124 *) echo "\$ac_cs_usage"; exit 1 ;;
2128 ac_given_srcdir=$srcdir
2129 ac_given_INSTALL="$INSTALL"
2131 trap 'rm -fr `echo "Makefile config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2133 cat >> $CONFIG_STATUS <<EOF
2135 # Protect against being on the right side of a sed subst in config.status.
2136 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2137 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2141 s%@CFLAGS@%$CFLAGS%g
2142 s%@CPPFLAGS@%$CPPFLAGS%g
2143 s%@CXXFLAGS@%$CXXFLAGS%g
2145 s%@LDFLAGS@%$LDFLAGS%g
2147 s%@exec_prefix@%$exec_prefix%g
2148 s%@prefix@%$prefix%g
2149 s%@program_transform_name@%$program_transform_name%g
2150 s%@bindir@%$bindir%g
2151 s%@sbindir@%$sbindir%g
2152 s%@libexecdir@%$libexecdir%g
2153 s%@datadir@%$datadir%g
2154 s%@sysconfdir@%$sysconfdir%g
2155 s%@sharedstatedir@%$sharedstatedir%g
2156 s%@localstatedir@%$localstatedir%g
2157 s%@libdir@%$libdir%g
2158 s%@includedir@%$includedir%g
2159 s%@oldincludedir@%$oldincludedir%g
2160 s%@infodir@%$infodir%g
2161 s%@mandir@%$mandir%g
2163 s%@host_alias@%$host_alias%g
2164 s%@host_cpu@%$host_cpu%g
2165 s%@host_vendor@%$host_vendor%g
2166 s%@host_os@%$host_os%g
2167 s%@target@%$target%g
2168 s%@target_alias@%$target_alias%g
2169 s%@target_cpu@%$target_cpu%g
2170 s%@target_vendor@%$target_vendor%g
2171 s%@target_os@%$target_os%g
2173 s%@build_alias@%$build_alias%g
2174 s%@build_cpu@%$build_cpu%g
2175 s%@build_vendor@%$build_vendor%g
2176 s%@build_os@%$build_os%g
2177 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2178 s%@INSTALL_DATA@%$INSTALL_DATA%g
2179 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2180 s%@PACKAGE@%$PACKAGE%g
2181 s%@VERSION@%$VERSION%g
2182 s%@ACLOCAL@%$ACLOCAL%g
2183 s%@AUTOCONF@%$AUTOCONF%g
2184 s%@AUTOMAKE@%$AUTOMAKE%g
2185 s%@AUTOHEADER@%$AUTOHEADER%g
2186 s%@MAKEINFO@%$MAKEINFO%g
2187 s%@SET_MAKE@%$SET_MAKE%g
2189 s%@RANLIB@%$RANLIB%g
2194 s%@LIBTOOL@%$LIBTOOL%g
2196 s%@EXEEXT@%$EXEEXT%g
2197 s%@HDEFINES@%$HDEFINES%g
2199 s%@SCHEME@%$SCHEME%g
2200 s%@archdefs@%$archdefs%g
2201 s%@BFD_MACHINES@%$BFD_MACHINES%g
2206 cat >> $CONFIG_STATUS <<\EOF
2208 # Split the substitutions into bite-sized pieces for seds with
2209 # small command number limits, like on Digital OSF/1 and HP-UX.
2210 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
2211 ac_file
=1 # Number of current file.
2212 ac_beg
=1 # First line for current file.
2213 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
2216 while $ac_more_lines; do
2217 if test $ac_beg -gt 1; then
2218 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
2220 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
2222 if test ! -s conftest.s
$ac_file; then
2224 rm -f conftest.s
$ac_file
2226 if test -z "$ac_sed_cmds"; then
2227 ac_sed_cmds
="sed -f conftest.s$ac_file"
2229 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
2231 ac_file
=`expr $ac_file + 1`
2233 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
2236 if test -z "$ac_sed_cmds"; then
2241 cat >> $CONFIG_STATUS <<EOF
2243 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
2245 cat >> $CONFIG_STATUS <<\EOF
2246 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
2247 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2249 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
2250 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
2251 *) ac_file_in
="${ac_file}.in" ;;
2254 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2256 # Remove last slash and all that follows it. Not all systems have dirname.
2257 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2258 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
2259 # The file is in a subdirectory.
2260 test ! -d "$ac_dir" && mkdir
"$ac_dir"
2261 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
2262 # A "../" for each directory in $ac_dir_suffix.
2263 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2265 ac_dir_suffix
= ac_dots
=
2268 case "$ac_given_srcdir" in
2270 if test -z "$ac_dots"; then top_srcdir
=.
2271 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2272 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
2274 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2275 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
2278 case "$ac_given_INSTALL" in
2279 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
2280 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
2283 echo creating
"$ac_file"
2285 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2287 *Makefile
*) ac_comsub
="1i\\
2288 # $configure_input" ;;
2292 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2294 s%@configure_input@%$configure_input%g
2295 s%@srcdir@%$srcdir%g
2296 s%@top_srcdir@%$top_srcdir%g
2297 s%@INSTALL@%$INSTALL%g
2298 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
2302 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2303 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2305 # ac_d sets the value in "#define NAME VALUE" lines.
2306 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2307 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
2310 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2311 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2312 ac_uB
='\([ ]\)%\1#\2define\3'
2315 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2316 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2317 ac_eB
='$%\1#\2define\3'
2321 if test "${CONFIG_HEADERS+set}" != set; then
2323 cat >> $CONFIG_STATUS <<EOF
2324 CONFIG_HEADERS="config.h:config.in"
2326 cat >> $CONFIG_STATUS <<\EOF
2328 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
2329 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2331 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
2332 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
2333 *) ac_file_in
="${ac_file}.in" ;;
2336 echo creating
$ac_file
2338 rm -f conftest.frag conftest.
in conftest.out
2339 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2340 cat $ac_file_inputs > conftest.
in
2344 # Transform confdefs.h into a sed script conftest.vals that substitutes
2345 # the proper values into config.h.in to produce config.h. And first:
2346 # Protect against being on the right side of a sed subst in config.status.
2347 # Protect against being in an unquoted here document in config.status.
2349 cat > conftest.hdr
<<\EOF
2352 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2356 sed -n -f conftest.hdr confdefs.h > conftest.vals
2359 # This sed command replaces #undef with comments. This is necessary, for
2360 # example, in the case of _POSIX_SOURCE, which is predefined and required
2361 # on some systems where configure will not decide to define it.
2362 cat >> conftest.vals <<\EOF
2363 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2366 # Break up conftest.vals because some shells have a limit on
2367 # the size of here documents, and old seds have small limits too.
2372 ac_lines=`grep -c . conftest.vals
`
2373 # grep -c gives empty output for an empty file on some AIX systems.
2374 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2375 # Write a limited-size here document to conftest.frag.
2376 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2377 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2379 sed -f conftest.frag conftest.in > conftest.out
2381 mv conftest.out conftest.in
2383 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2385 mv conftest.tail conftest.vals
2389 cat >> $CONFIG_STATUS <<\EOF
2390 rm -f conftest.frag conftest.h
2391 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2392 cat conftest.in >> conftest.h
2394 if cmp -s $ac_file conftest.h 2>/dev/null; then
2395 echo "$ac_file is unchanged"
2398 # Remove last slash and all that follows it. Not all systems have dirname.
2399 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
2400 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2401 # The file is in a subdirectory.
2402 test ! -d "$ac_dir" && mkdir "$ac_dir"
2405 mv conftest.h $ac_file
2410 cat >> $CONFIG_STATUS <<EOF
2414 cat >> $CONFIG_STATUS <<\EOF
2415 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
2419 chmod +x $CONFIG_STATUS
2420 rm -fr confdefs* $ac_clean_files
2421 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
This page took 0.59303 seconds and 4 git commands to generate.