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-targets alternative target configurations"
23 --enable-commonbfdlib build shared BFD/opcodes/libiberty library"
25 --enable-maintainer-mode enable make rules and dependencies not useful
26 (and sometimes confusing) to the casual installer"
28 # Initialize some variables set by options.
29 # The variables have the same names as the options, with
30 # dashes changed to underlines.
32 cache_file
=.
/config.cache
41 program_transform_name
=s
,x
,x
,
49 bindir
='${exec_prefix}/bin'
50 sbindir
='${exec_prefix}/sbin'
51 libexecdir
='${exec_prefix}/libexec'
52 datadir
='${prefix}/share'
53 sysconfdir
='${prefix}/etc'
54 sharedstatedir
='${prefix}/com'
55 localstatedir
='${prefix}/var'
56 libdir
='${exec_prefix}/lib'
57 includedir
='${prefix}/include'
58 oldincludedir
='/usr/include'
59 infodir
='${prefix}/info'
60 mandir
='${prefix}/man'
62 # Initialize some other variables.
65 SHELL
=${CONFIG_SHELL-/bin/sh}
66 # Maximum number of lines to put in a shell here document.
73 # If the previous option needs an argument, assign it.
74 if test -n "$ac_prev"; then
75 eval "$ac_prev=\$ac_option"
81 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
85 # Accept the important Cygnus configure options, so we can diagnose typos.
89 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
91 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
92 bindir
="$ac_optarg" ;;
94 -build |
--build |
--buil |
--bui |
--bu)
96 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
99 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
100 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
101 ac_prev
=cache_file
;;
102 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
103 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
104 cache_file
="$ac_optarg" ;;
106 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
108 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
110 datadir
="$ac_optarg" ;;
112 -disable-* |
--disable-*)
113 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
114 # Reject names that are not valid shell variable names.
115 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
116 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
118 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
119 eval "enable_${ac_feature}=no" ;;
121 -enable-* |
--enable-*)
122 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
123 # Reject names that are not valid shell variable names.
124 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
125 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
127 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
132 eval "enable_${ac_feature}='$ac_optarg'" ;;
134 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
135 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
136 |
--exec |
--exe |
--ex)
137 ac_prev
=exec_prefix
;;
138 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
139 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
140 |
--exec=* |
--exe=* |
--ex=*)
141 exec_prefix
="$ac_optarg" ;;
143 -gas |
--gas |
--ga |
--g)
144 # Obsolete; use --with-gas.
147 -help |
--help |
--hel |
--he)
148 # Omit some internal or obsolete options to make the list less imposing.
149 # This message is too long to be a string in the A/UX 3.1 sh.
151 Usage: configure [options] [host]
152 Options: [defaults in brackets after descriptions]
154 --cache-file=FILE cache test results in FILE
155 --help print this message
156 --no-create do not create output files
157 --quiet, --silent do not print \`checking...' messages
158 --version print the version of autoconf that created configure
159 Directory and file names:
160 --prefix=PREFIX install architecture-independent files in PREFIX
162 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
164 --bindir=DIR user executables in DIR [EPREFIX/bin]
165 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
166 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
167 --datadir=DIR read-only architecture-independent data in DIR
169 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
170 --sharedstatedir=DIR modifiable architecture-independent data in DIR
172 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
173 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
174 --includedir=DIR C header files in DIR [PREFIX/include]
175 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
176 --infodir=DIR info documentation in DIR [PREFIX/info]
177 --mandir=DIR man documentation in DIR [PREFIX/man]
178 --srcdir=DIR find the sources in DIR [configure dir or ..]
179 --program-prefix=PREFIX prepend PREFIX to installed program names
180 --program-suffix=SUFFIX append SUFFIX to installed program names
181 --program-transform-name=PROGRAM
182 run sed PROGRAM on installed program names
186 --build=BUILD configure for building on BUILD [BUILD=HOST]
187 --host=HOST configure for HOST [guessed]
188 --target=TARGET configure for TARGET [TARGET=HOST]
189 Features and packages:
190 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
191 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
192 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
193 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
194 --x-includes=DIR X include files are in DIR
195 --x-libraries=DIR X library files are in DIR
197 if test -n "$ac_help"; then
198 echo "--enable and --with options recognized:$ac_help"
202 -host |
--host |
--hos |
--ho)
204 -host=* |
--host=* |
--hos=* |
--ho=*)
207 -includedir |
--includedir |
--includedi |
--included |
--include \
208 |
--includ |
--inclu |
--incl |
--inc)
209 ac_prev
=includedir
;;
210 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
211 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
212 includedir
="$ac_optarg" ;;
214 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
216 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
217 infodir
="$ac_optarg" ;;
219 -libdir |
--libdir |
--libdi |
--libd)
221 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
222 libdir
="$ac_optarg" ;;
224 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
225 |
--libexe |
--libex |
--libe)
226 ac_prev
=libexecdir
;;
227 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
228 |
--libexe=* |
--libex=* |
--libe=*)
229 libexecdir
="$ac_optarg" ;;
231 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
232 |
--localstate |
--localstat |
--localsta |
--localst \
233 |
--locals |
--local |
--loca |
--loc |
--lo)
234 ac_prev
=localstatedir
;;
235 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
236 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
237 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
238 localstatedir
="$ac_optarg" ;;
240 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
242 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
243 mandir
="$ac_optarg" ;;
246 # Obsolete; use --without-fp.
249 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
253 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
254 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
257 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
258 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
259 |
--oldin |
--oldi |
--old |
--ol |
--o)
260 ac_prev
=oldincludedir
;;
261 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
262 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
263 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
264 oldincludedir
="$ac_optarg" ;;
266 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
268 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
269 prefix
="$ac_optarg" ;;
271 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
272 |
--program-pre |
--program-pr |
--program-p)
273 ac_prev
=program_prefix
;;
274 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
275 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
276 program_prefix
="$ac_optarg" ;;
278 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
279 |
--program-suf |
--program-su |
--program-s)
280 ac_prev
=program_suffix
;;
281 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
282 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
283 program_suffix
="$ac_optarg" ;;
285 -program-transform-name |
--program-transform-name \
286 |
--program-transform-nam |
--program-transform-na \
287 |
--program-transform-n |
--program-transform- \
288 |
--program-transform |
--program-transfor \
289 |
--program-transfo |
--program-transf \
290 |
--program-trans |
--program-tran \
291 |
--progr-tra |
--program-tr |
--program-t)
292 ac_prev
=program_transform_name
;;
293 -program-transform-name=* |
--program-transform-name=* \
294 |
--program-transform-nam=* |
--program-transform-na=* \
295 |
--program-transform-n=* |
--program-transform-=* \
296 |
--program-transform=* |
--program-transfor=* \
297 |
--program-transfo=* |
--program-transf=* \
298 |
--program-trans=* |
--program-tran=* \
299 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
300 program_transform_name
="$ac_optarg" ;;
302 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
303 |
-silent |
--silent |
--silen |
--sile |
--sil)
306 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
308 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
310 sbindir
="$ac_optarg" ;;
312 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
313 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
314 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
316 ac_prev
=sharedstatedir
;;
317 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
318 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
319 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
321 sharedstatedir
="$ac_optarg" ;;
323 -site |
--site |
--sit)
325 -site=* |
--site=* |
--sit=*)
328 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
330 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
331 srcdir
="$ac_optarg" ;;
333 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
334 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
335 ac_prev
=sysconfdir
;;
336 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
337 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
338 sysconfdir
="$ac_optarg" ;;
340 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
342 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
343 target
="$ac_optarg" ;;
345 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
348 -version |
--version |
--versio |
--versi |
--vers)
349 echo "configure generated by autoconf version 2.12.1"
353 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
354 # Reject names that are not valid shell variable names.
355 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
356 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
358 ac_package
=`echo $ac_package| sed 's/-/_/g'`
363 eval "with_${ac_package}='$ac_optarg'" ;;
365 -without-* |
--without-*)
366 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
367 # Reject names that are not valid shell variable names.
368 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
369 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
371 ac_package
=`echo $ac_package| sed 's/-/_/g'`
372 eval "with_${ac_package}=no" ;;
375 # Obsolete; use --with-x.
378 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
379 |
--x-incl |
--x-inc |
--x-in |
--x-i)
380 ac_prev
=x_includes
;;
381 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
382 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
383 x_includes
="$ac_optarg" ;;
385 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
386 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
387 ac_prev
=x_libraries
;;
388 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
389 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
390 x_libraries
="$ac_optarg" ;;
392 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
396 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
397 echo "configure: warning: $ac_option: invalid host type" 1>&2
399 if test "x$nonopt" != xNONE
; then
400 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
408 if test -n "$ac_prev"; then
409 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
412 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
414 # File descriptor usage:
417 # 2 errors and warnings
418 # 3 some systems may open it to /dev/tty
419 # 4 used on the Kubota Titan
420 # 6 checking for... messages and results
421 # 5 compiler messages saved in config.log
422 if test "$silent" = yes; then
430 This file contains any messages produced by compilers while
431 running configure, to aid debugging if configure makes a mistake.
434 # Strip out --no-create and --no-recursion so they do not pile up.
435 # Also quote any args containing shell metacharacters.
440 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
441 |
--no-cr |
--no-c) ;;
442 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
443 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
444 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
445 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
446 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
451 # Only set these to C if already set. These must not be set unconditionally
452 # because not all systems understand e.g. LANG=C (notably SCO).
453 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
454 # Non-C LC_CTYPE values break the ctype check.
455 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
456 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
457 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
458 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
460 # confdefs.h avoids OS command line length limits that DEFS can exceed.
461 rm -rf conftest
* confdefs.h
462 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
465 # A filename unique to this package, relative to the directory that
466 # configure is in, which we can look for to find out if srcdir is correct.
467 ac_unique_file
=z8k-dis.c
469 # Find the source files, if location was not specified.
470 if test -z "$srcdir"; then
471 ac_srcdir_defaulted
=yes
472 # Try the directory containing this script, then its parent.
474 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
475 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
477 if test ! -r $srcdir/$ac_unique_file; then
481 ac_srcdir_defaulted
=no
483 if test ! -r $srcdir/$ac_unique_file; then
484 if test "$ac_srcdir_defaulted" = yes; then
485 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
487 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
490 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
492 # Prefer explicitly selected file to automatically selected ones.
493 if test -z "$CONFIG_SITE"; then
494 if test "x$prefix" != xNONE
; then
495 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
497 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
500 for ac_site_file
in $CONFIG_SITE; do
501 if test -r "$ac_site_file"; then
502 echo "loading site script $ac_site_file"
507 if test -r "$cache_file"; then
508 echo "loading cache $cache_file"
511 echo "creating cache $cache_file"
516 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
517 ac_cpp
='$CPP $CPPFLAGS'
518 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
519 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
520 cross_compiling
=$ac_cv_prog_cc_cross
522 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
523 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
524 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
531 ac_n
= ac_c
='\c' ac_t
=
537 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
538 if test -f $ac_dir/install-sh
; then
540 ac_install_sh
="$ac_aux_dir/install-sh -c"
542 elif test -f $ac_dir/install.sh
; then
544 ac_install_sh
="$ac_aux_dir/install.sh -c"
548 if test -z "$ac_aux_dir"; then
549 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
551 ac_config_guess
=$ac_aux_dir/config.guess
552 ac_config_sub
=$ac_aux_dir/config.sub
553 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
556 # Do some error checking and defaulting for the host and target type.
558 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
561 # 1. You are not allowed to specify --host, --target, and nonopt at the
563 # 2. Host defaults to nonopt.
564 # 3. If nonopt is not specified, then host defaults to the current host,
565 # as determined by config.guess.
566 # 4. Target and build default to nonopt.
567 # 5. If nonopt is not specified, then target and build default to host.
569 # The aliases save the names the user supplied, while $host etc.
570 # will get canonicalized.
571 case $host---$target---$nonopt in
572 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
573 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
577 # Make sure we can run config.sub.
578 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
579 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
582 echo $ac_n "checking host system type""... $ac_c" 1>&6
583 echo "configure:584: checking host system type" >&5
586 case "$host_alias" in
590 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
591 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
593 *) host_alias
=$nonopt ;;
597 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
598 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
599 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
600 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
601 echo "$ac_t""$host" 1>&6
603 echo $ac_n "checking target system type""... $ac_c" 1>&6
604 echo "configure:605: checking target system type" >&5
607 case "$target_alias" in
610 NONE
) target_alias
=$host_alias ;;
611 *) target_alias
=$nonopt ;;
615 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
616 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
617 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
618 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
619 echo "$ac_t""$target" 1>&6
621 echo $ac_n "checking build system type""... $ac_c" 1>&6
622 echo "configure:623: checking build system type" >&5
625 case "$build_alias" in
628 NONE
) build_alias
=$host_alias ;;
629 *) build_alias
=$nonopt ;;
633 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
634 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
635 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
636 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
637 echo "$ac_t""$build" 1>&6
639 test "$host_alias" != "$target_alias" &&
640 test "$program_prefix$program_suffix$program_transform_name" = \
642 program_prefix
=${target_alias}-
645 # We currently only use the version number for the name of any shared
646 # library. For user convenience, we always use the same version
647 # number that BFD is using.
648 BFD_VERSION
=`grep INIT_AUTOMAKE ${srcdir}/../bfd/configure.in | sed -n -e 's/[ ]//g' -e 's/^.*,\(.*\)).*$/\1/p'`
650 # Find a good install program. We prefer a C program (faster),
651 # so one script is as good as another. But avoid the broken or
652 # incompatible versions:
653 # SysV /etc/install, /usr/sbin/install
654 # SunOS /usr/etc/install
657 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
658 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
659 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
660 # ./install, which can be erroneously created by make from ./install.sh.
661 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
662 echo "configure:663: checking for a BSD compatible install" >&5
663 if test -z "$INSTALL"; then
664 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
665 echo $ac_n "(cached) $ac_c" 1>&6
667 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
668 for ac_dir
in $PATH; do
669 # Account for people who put trailing slashes in PATH elements.
671 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
673 # OSF1 and SCO ODT 3.0 have their own names for install.
674 # Don't use installbsd from OSF since it installs stuff as root
676 for ac_prog
in ginstall scoinst
install; do
677 if test -f $ac_dir/$ac_prog; then
678 if test $ac_prog = install &&
679 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
680 # AIX install. It has an incompatible calling convention.
683 ac_cv_path_install
="$ac_dir/$ac_prog -c"
694 if test "${ac_cv_path_install+set}" = set; then
695 INSTALL
="$ac_cv_path_install"
697 # As a last resort, use the slow shell script. We don't cache a
698 # path for INSTALL within a source directory, because that will
699 # break other packages using the cache if that directory is
700 # removed, or if the path is relative.
701 INSTALL
="$ac_install_sh"
704 echo "$ac_t""$INSTALL" 1>&6
706 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
707 # It thinks the first close brace ends the variable substitution.
708 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
710 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
713 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
718 VERSION
=${BFD_VERSION}
720 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
721 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
723 cat >> confdefs.h
<<EOF
724 #define PACKAGE "$PACKAGE"
727 cat >> confdefs.h
<<EOF
728 #define VERSION "$VERSION"
731 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
732 echo "configure:733: checking whether build environment is sane" >&5
735 echo timestamp
> conftestfile
736 # Do `set' in a subshell so we don't clobber the current shell's
737 # arguments. Must try -L first in case configure is actually a
738 # symlink; some systems play weird games with the mod time of symlinks
739 # (eg FreeBSD returns the mod time of the symlink's containing
742 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
743 if test "" = "X"; then
745 set X
`ls -t $srcdir/configure conftestfile`
747 test "$2" = conftestfile
753 { echo "configure: error: newly created file is older than distributed files!
754 Check your system clock" 1>&2; exit 1; }
757 echo "$ac_t""yes" 1>&6
758 if test "$program_transform_name" = s
,x
,x
,; then
759 program_transform_name
=
761 # Double any \ or $. echo might interpret backslashes.
762 cat <<\EOF_SED
> conftestsed
763 s
,\\,\\\\,g
; s
,\$
,$$
,g
765 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
768 test "$program_prefix" != NONE
&&
769 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
770 # Use a double $ so make ignores it.
771 test "$program_suffix" != NONE
&&
772 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
774 # sed with no file args requires a program.
775 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
777 missing_dir
=`cd $ac_aux_dir && pwd`
778 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
779 echo "configure:780: checking for working aclocal" >&5
780 # Run test in a subshell; some versions of sh will print an error if
781 # an executable is not found, even if stderr is redirected.
782 # Redirect stdin to placate older versions of autoconf. Sigh.
783 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
785 echo "$ac_t""found" 1>&6
787 ACLOCAL
="$missing_dir/missing aclocal"
788 echo "$ac_t""missing" 1>&6
791 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
792 echo "configure:793: checking for working autoconf" >&5
793 # Run test in a subshell; some versions of sh will print an error if
794 # an executable is not found, even if stderr is redirected.
795 # Redirect stdin to placate older versions of autoconf. Sigh.
796 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
798 echo "$ac_t""found" 1>&6
800 AUTOCONF
="$missing_dir/missing autoconf"
801 echo "$ac_t""missing" 1>&6
804 echo $ac_n "checking for working automake""... $ac_c" 1>&6
805 echo "configure:806: checking for working automake" >&5
806 # Run test in a subshell; some versions of sh will print an error if
807 # an executable is not found, even if stderr is redirected.
808 # Redirect stdin to placate older versions of autoconf. Sigh.
809 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
811 echo "$ac_t""found" 1>&6
813 AUTOMAKE
="$missing_dir/missing automake"
814 echo "$ac_t""missing" 1>&6
817 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
818 echo "configure:819: checking for working autoheader" >&5
819 # Run test in a subshell; some versions of sh will print an error if
820 # an executable is not found, even if stderr is redirected.
821 # Redirect stdin to placate older versions of autoconf. Sigh.
822 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
823 AUTOHEADER
=autoheader
824 echo "$ac_t""found" 1>&6
826 AUTOHEADER
="$missing_dir/missing autoheader"
827 echo "$ac_t""missing" 1>&6
830 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
831 echo "configure:832: checking for working makeinfo" >&5
832 # Run test in a subshell; some versions of sh will print an error if
833 # an executable is not found, even if stderr is redirected.
834 # Redirect stdin to placate older versions of autoconf. Sigh.
835 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
837 echo "$ac_t""found" 1>&6
839 MAKEINFO
="$missing_dir/missing makeinfo"
840 echo "$ac_t""missing" 1>&6
843 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
844 echo "configure:845: checking whether ${MAKE-make} sets \${MAKE}" >&5
845 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
846 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
847 echo $ac_n "(cached) $ac_c" 1>&6
849 cat > conftestmake
<<\EOF
851 @
echo 'ac_maketemp="${MAKE}"'
853 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
854 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
855 if test -n "$ac_maketemp"; then
856 eval ac_cv_prog_make_
${ac_make}_set
=yes
858 eval ac_cv_prog_make_
${ac_make}_set
=no
862 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
863 echo "$ac_t""yes" 1>&6
866 echo "$ac_t""no" 1>&6
867 SET_MAKE
="MAKE=${MAKE-make}"
871 if test $host != $build; then
872 ac_tool_prefix
=${host_alias}-
877 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
878 set dummy
${ac_tool_prefix}ar; ac_word
=$2
879 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
880 echo "configure:881: checking for $ac_word" >&5
881 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
882 echo $ac_n "(cached) $ac_c" 1>&6
884 if test -n "$AR"; then
885 ac_cv_prog_AR
="$AR" # Let the user override the test.
887 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
888 for ac_dir
in $PATH; do
889 test -z "$ac_dir" && ac_dir
=.
890 if test -f $ac_dir/$ac_word; then
891 ac_cv_prog_AR
="${ac_tool_prefix}ar"
896 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
900 if test -n "$AR"; then
901 echo "$ac_t""$AR" 1>&6
903 echo "$ac_t""no" 1>&6
908 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
909 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
910 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
911 echo "configure:912: checking for $ac_word" >&5
912 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
913 echo $ac_n "(cached) $ac_c" 1>&6
915 if test -n "$RANLIB"; then
916 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
918 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
919 for ac_dir
in $PATH; do
920 test -z "$ac_dir" && ac_dir
=.
921 if test -f $ac_dir/$ac_word; then
922 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
929 RANLIB
="$ac_cv_prog_RANLIB"
930 if test -n "$RANLIB"; then
931 echo "$ac_t""$RANLIB" 1>&6
933 echo "$ac_t""no" 1>&6
937 if test -z "$ac_cv_prog_RANLIB"; then
938 if test -n "$ac_tool_prefix"; then
939 # Extract the first word of "ranlib", so it can be a program name with args.
940 set dummy ranlib
; ac_word
=$2
941 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
942 echo "configure:943: checking for $ac_word" >&5
943 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
944 echo $ac_n "(cached) $ac_c" 1>&6
946 if test -n "$RANLIB"; then
947 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
949 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
950 for ac_dir
in $PATH; do
951 test -z "$ac_dir" && ac_dir
=.
952 if test -f $ac_dir/$ac_word; then
953 ac_cv_prog_RANLIB
="ranlib"
958 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
961 RANLIB
="$ac_cv_prog_RANLIB"
962 if test -n "$RANLIB"; then
963 echo "$ac_t""$RANLIB" 1>&6
965 echo "$ac_t""no" 1>&6
974 libtool_enable_shared
=no
976 # Extract the first word of "ranlib", so it can be a program name with args.
977 set dummy ranlib
; ac_word
=$2
978 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
979 echo "configure:980: checking for $ac_word" >&5
980 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
981 echo $ac_n "(cached) $ac_c" 1>&6
983 if test -n "$RANLIB"; then
984 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
986 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
987 for ac_dir
in $PATH; do
988 test -z "$ac_dir" && ac_dir
=.
989 if test -f $ac_dir/$ac_word; then
990 ac_cv_prog_RANLIB
="ranlib"
995 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
998 RANLIB
="$ac_cv_prog_RANLIB"
999 if test -n "$RANLIB"; then
1000 echo "$ac_t""$RANLIB" 1>&6
1002 echo "$ac_t""no" 1>&6
1005 # Extract the first word of "gcc", so it can be a program name with args.
1006 set dummy gcc
; ac_word
=$2
1007 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1008 echo "configure:1009: checking for $ac_word" >&5
1009 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1010 echo $ac_n "(cached) $ac_c" 1>&6
1012 if test -n "$CC"; then
1013 ac_cv_prog_CC
="$CC" # Let the user override the test.
1015 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1016 for ac_dir
in $PATH; do
1017 test -z "$ac_dir" && ac_dir
=.
1018 if test -f $ac_dir/$ac_word; then
1027 if test -n "$CC"; then
1028 echo "$ac_t""$CC" 1>&6
1030 echo "$ac_t""no" 1>&6
1033 if test -z "$CC"; then
1034 # Extract the first word of "cc", so it can be a program name with args.
1035 set dummy cc
; ac_word
=$2
1036 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1037 echo "configure:1038: checking for $ac_word" >&5
1038 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1039 echo $ac_n "(cached) $ac_c" 1>&6
1041 if test -n "$CC"; then
1042 ac_cv_prog_CC
="$CC" # Let the user override the test.
1044 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1046 for ac_dir
in $PATH; do
1047 test -z "$ac_dir" && ac_dir
=.
1048 if test -f $ac_dir/$ac_word; then
1049 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1050 ac_prog_rejected
=yes
1058 if test $ac_prog_rejected = yes; then
1059 # We found a bogon in the path, so make sure we never use it.
1060 set dummy
$ac_cv_prog_CC
1062 if test $# -gt 0; then
1063 # We chose a different compiler from the bogus one.
1064 # However, it has the same basename, so the bogon will be chosen
1065 # first if we set CC to just the basename; use the full file name.
1067 set dummy
"$ac_dir/$ac_word" "$@"
1075 if test -n "$CC"; then
1076 echo "$ac_t""$CC" 1>&6
1078 echo "$ac_t""no" 1>&6
1081 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1084 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1085 echo "configure:1086: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1088 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1089 ac_cpp
='$CPP $CPPFLAGS'
1090 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1091 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1092 cross_compiling
=$ac_cv_prog_cc_cross
1094 cat > conftest.
$ac_ext <<EOF
1095 #line 1096 "configure"
1096 #include "confdefs.h"
1099 if { (eval echo configure
:1100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1100 ac_cv_prog_cc_works
=yes
1101 # If we can't run a trivial program, we are probably using a cross compiler.
1102 if (.
/conftest
; exit) 2>/dev
/null
; then
1103 ac_cv_prog_cc_cross
=no
1105 ac_cv_prog_cc_cross
=yes
1108 echo "configure: failed program was:" >&5
1109 cat conftest.
$ac_ext >&5
1110 ac_cv_prog_cc_works
=no
1114 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1115 if test $ac_cv_prog_cc_works = no
; then
1116 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1118 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1119 echo "configure:1120: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1120 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1121 cross_compiling
=$ac_cv_prog_cc_cross
1123 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1124 echo "configure:1125: checking whether we are using GNU C" >&5
1125 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1126 echo $ac_n "(cached) $ac_c" 1>&6
1128 cat > conftest.c
<<EOF
1133 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1134: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1140 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1142 if test $ac_cv_prog_gcc = yes; then
1144 ac_test_CFLAGS
="${CFLAGS+set}"
1145 ac_save_CFLAGS
="$CFLAGS"
1147 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1148 echo "configure:1149: checking whether ${CC-cc} accepts -g" >&5
1149 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1150 echo $ac_n "(cached) $ac_c" 1>&6
1152 echo 'void f(){}' > conftest.c
1153 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1162 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1163 if test "$ac_test_CFLAGS" = set; then
1164 CFLAGS
="$ac_save_CFLAGS"
1165 elif test $ac_cv_prog_cc_g = yes; then
1172 test "${CFLAGS+set}" = set || CFLAGS
="-g"
1175 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1176 if test "${with_gnu_ld+set}" = set; then
1177 withval
="$with_gnu_ld"
1178 test "$withval" = no || with_gnu_ld
=yes
1185 if test "$ac_cv_prog_gcc" = yes; then
1186 # Check if gcc -print-prog-name=ld gives a path.
1187 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1188 echo "configure:1189: checking for ld used by GCC" >&5
1189 ac_prog
=`($CC -print-prog-name=ld) 2>&5`
1191 # Accept absolute paths.
1193 test -z "$LD" && LD
="$ac_prog"
1196 # If it fails, then pretend we aren't using GCC.
1200 # If it is relative, then search for the first ld in PATH.
1204 elif test "$with_gnu_ld" = yes; then
1205 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1206 echo "configure:1207: checking for GNU ld" >&5
1208 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1209 echo "configure:1210: checking for non-GNU ld" >&5
1211 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1212 echo $ac_n "(cached) $ac_c" 1>&6
1214 if test -z "$LD"; then
1215 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1216 for ac_dir
in $PATH; do
1217 test -z "$ac_dir" && ac_dir
=.
1218 if test -f "$ac_dir/$ac_prog"; then
1219 ac_cv_path_LD
="$ac_dir/$ac_prog"
1220 # Check to see if the program is GNU ld. I'd rather use --version,
1221 # but apparently some GNU ld's only accept -v.
1222 # Break only if it was the GNU/non-GNU ld that we prefer.
1223 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1224 test "$with_gnu_ld" != no
&& break
1226 test "$with_gnu_ld" != yes && break
1232 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
1237 if test -n "$LD"; then
1238 echo "$ac_t""$LD" 1>&6
1240 echo "$ac_t""no" 1>&6
1242 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1244 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1245 echo "configure:1246: checking if the linker ($LD) is GNU ld" >&5
1246 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1247 echo $ac_n "(cached) $ac_c" 1>&6
1249 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1250 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1251 ac_cv_prog_gnu_ld
=yes
1253 ac_cv_prog_gnu_ld
=no
1257 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1260 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1261 echo "configure:1262: checking for BSD-compatible nm" >&5
1262 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1263 echo $ac_n "(cached) $ac_c" 1>&6
1267 ac_cv_path_NM
="$NM" # Let the user override the test with a path.
1270 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1271 for ac_dir
in /usr
/ucb
/usr
/ccs
/bin
$PATH /bin
; do
1272 test -z "$ac_dir" && dir
=.
1273 if test -f $ac_dir/nm
; then
1274 # Check to see if the nm accepts a BSD-compat flag.
1275 # Adding the `sed 1!d' prevents false positives on HP-UX, which says:
1276 # nm: unknown option "B" ignored
1277 if ($ac_dir/nm
-B /dev
/null
2>&1 |
sed '1!d'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1278 ac_cv_path_NM
="$ac_dir/nm -B"
1279 elif ($ac_dir/nm
-p /dev
/null
2>&1 |
sed '1!d'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1280 ac_cv_path_NM
="$ac_dir/nm -p"
1282 ac_cv_path_NM
="$ac_dir/nm"
1288 test -z "$ac_cv_path_NM" && ac_cv_path_NM
=nm
1294 echo "$ac_t""$NM" 1>&6
1297 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1298 echo "configure:1299: checking whether ln -s works" >&5
1299 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1300 echo $ac_n "(cached) $ac_c" 1>&6
1303 if ln -s X conftestdata
2>/dev
/null
1306 ac_cv_prog_LN_S
="ln -s"
1311 LN_S
="$ac_cv_prog_LN_S"
1312 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1313 echo "$ac_t""yes" 1>&6
1315 echo "$ac_t""no" 1>&6
1325 # Always use our own libtool.
1326 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
1329 # Check whether --enable-shared or --disable-shared was given.
1330 if test "${enable_shared+set}" = set; then
1331 enableval
="$enable_shared"
1332 p
=${PACKAGE-bogus-package-name}
1333 case "$enableval" in
1334 yes) libtool_enable_shared
=yes ;;
1335 no
) libtool_enable_shared
=no
;;
1336 # The value of $p (aka $PACKAGE) is assumed to come from AM_INIT_AUTOMAKE.
1337 # If it didn't, it'll be `bogus-package-name', thus making this condition
1339 *$p*) libtool_enable_shared
=yes ;;
1340 *) libtool_enable_shared
=no
;;
1344 test -n "$libtool_enable_shared" && enable_shared
="$libtool_enable_shared"
1346 test "$enable_shared" = no
&& libtool_shared
=" --disable-shared"
1348 # Check whether --enable-static or --disable-static was given.
1349 if test "${enable_static+set}" = set; then
1350 enableval
="$enable_static"
1351 if test "$enableval" = no
; then
1352 libtool_enable_static
=no
1354 libtool_enable_static
=yes
1358 test -n "$libtool_enable_static" && enable_static
="$libtool_enable_static"
1360 test "$enable_static" = no
&& libtool_static
=" --disable-static"
1362 libtool_flags
="$libtool_shared$libtool_static"
1363 test "$silent" = yes && libtool_flags
="$libtool_flags --silent"
1364 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
1365 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
1367 # Some flags need to be propagated to the compiler or linker for good
1371 # Find out which ABI we are using.
1372 echo '#line 1373 "configure"' > conftest.
$ac_ext
1373 if { (eval echo configure
:1374: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1374 case "`/usr/bin/file conftest.o`" in
1390 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1391 CFLAGS
="$CFLAGS -belf"
1395 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1396 CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
1397 LD
="$LD" NM
="$NM" RANLIB
="$RANLIB" LN_S
="$LN_S" \
1398 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
1399 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh
$host \
1400 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1403 # Check whether --enable-targets or --disable-targets was given.
1404 if test "${enable_targets+set}" = set; then
1405 enableval
="$enable_targets"
1406 case "${enableval}" in
1407 yes |
"") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
1409 no
) enable_targets
= ;;
1410 *) enable_targets
=$enableval ;;
1413 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
1414 if test "${enable_commonbfdlib+set}" = set; then
1415 enableval
="$enable_commonbfdlib"
1416 case "${enableval}" in
1417 yes) commonbfdlib
=true
;;
1418 no
) commonbfdlib
=false
;;
1419 *) { echo "configure: error: bad value ${enableval} for opcodes commonbfdlib option" 1>&2; exit 1; } ;;
1427 if test -z "$target" ; then
1428 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
1430 if test "$program_transform_name" = s
,x
,x
,; then
1431 program_transform_name
=
1433 # Double any \ or $. echo might interpret backslashes.
1434 cat <<\EOF_SED
> conftestsed
1435 s
,\\,\\\\,g
; s
,\$
,$$
,g
1437 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
1440 test "$program_prefix" != NONE
&&
1441 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
1442 # Use a double $ so make ignores it.
1443 test "$program_suffix" != NONE
&&
1444 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
1446 # sed with no file args requires a program.
1447 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
1450 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1451 echo "configure:1452: checking whether to enable maintainer-specific portions of Makefiles" >&5
1452 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1453 if test "${enable_maintainer_mode+set}" = set; then
1454 enableval
="$enable_maintainer_mode"
1455 USE_MAINTAINER_MODE
=$enableval
1457 USE_MAINTAINER_MODE
=no
1460 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1461 if test $USE_MAINTAINER_MODE = yes; then
1468 echo $ac_n "checking for Cygwin32 environment""... $ac_c" 1>&6
1469 echo "configure:1470: checking for Cygwin32 environment" >&5
1470 if eval "test \"`echo '$''{'am_cv_cygwin32'+set}'`\" = set"; then
1471 echo $ac_n "(cached) $ac_c" 1>&6
1473 cat > conftest.
$ac_ext <<EOF
1474 #line 1475 "configure"
1475 #include "confdefs.h"
1478 return __CYGWIN32__;
1481 if { (eval echo configure
:1482: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1485 echo "configure: failed program was:" >&5
1486 cat conftest.
$ac_ext >&5
1494 echo "$ac_t""$am_cv_cygwin32" 1>&6
1496 test "$am_cv_cygwin32" = yes && CYGWIN32
=yes
1497 echo $ac_n "checking for Mingw32 environment""... $ac_c" 1>&6
1498 echo "configure:1499: checking for Mingw32 environment" >&5
1499 if eval "test \"`echo '$''{'am_cv_mingw32'+set}'`\" = set"; then
1500 echo $ac_n "(cached) $ac_c" 1>&6
1502 cat > conftest.
$ac_ext <<EOF
1503 #line 1504 "configure"
1504 #include "confdefs.h"
1510 if { (eval echo configure
:1511: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1514 echo "configure: failed program was:" >&5
1515 cat conftest.
$ac_ext >&5
1523 echo "$ac_t""$am_cv_mingw32" 1>&6
1525 test "$am_cv_mingw32" = yes && MINGW32
=yes
1528 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1529 echo "configure:1530: checking for executable suffix" >&5
1530 if eval "test \"`echo '$''{'am_cv_exeext'+set}'`\" = set"; then
1531 echo $ac_n "(cached) $ac_c" 1>&6
1534 if test "$CYGWIN32" = yes -o "$MINGW32" = yes; then
1537 cat > am_c_test.c
<< 'EOF'
1539 /* Nothing needed here
*/
1542 ${CC-cc} -o am_c_test
$CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c
$LIBS 1>&5
1543 am_cv_exeext
=`echo am_c_test.* | grep -v am_c_test.c | sed -e s/am_c_test//`
1547 test x
"${am_cv_exeext}" = x
&& am_cv_exeext
=no
1550 test x
"${am_cv_exeext}" != xno
&& EXEEXT
=${am_cv_exeext}
1551 echo "$ac_t""${am_cv_exeext}" 1>&6
1554 # host-specific stuff:
1556 # Extract the first word of "gcc", so it can be a program name with args.
1557 set dummy gcc
; ac_word
=$2
1558 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1559 echo "configure:1560: checking for $ac_word" >&5
1560 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1561 echo $ac_n "(cached) $ac_c" 1>&6
1563 if test -n "$CC"; then
1564 ac_cv_prog_CC
="$CC" # Let the user override the test.
1566 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1567 for ac_dir
in $PATH; do
1568 test -z "$ac_dir" && ac_dir
=.
1569 if test -f $ac_dir/$ac_word; then
1578 if test -n "$CC"; then
1579 echo "$ac_t""$CC" 1>&6
1581 echo "$ac_t""no" 1>&6
1584 if test -z "$CC"; then
1585 # Extract the first word of "cc", so it can be a program name with args.
1586 set dummy cc
; ac_word
=$2
1587 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1588 echo "configure:1589: checking for $ac_word" >&5
1589 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1590 echo $ac_n "(cached) $ac_c" 1>&6
1592 if test -n "$CC"; then
1593 ac_cv_prog_CC
="$CC" # Let the user override the test.
1595 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1597 for ac_dir
in $PATH; do
1598 test -z "$ac_dir" && ac_dir
=.
1599 if test -f $ac_dir/$ac_word; then
1600 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1601 ac_prog_rejected
=yes
1609 if test $ac_prog_rejected = yes; then
1610 # We found a bogon in the path, so make sure we never use it.
1611 set dummy
$ac_cv_prog_CC
1613 if test $# -gt 0; then
1614 # We chose a different compiler from the bogus one.
1615 # However, it has the same basename, so the bogon will be chosen
1616 # first if we set CC to just the basename; use the full file name.
1618 set dummy
"$ac_dir/$ac_word" "$@"
1626 if test -n "$CC"; then
1627 echo "$ac_t""$CC" 1>&6
1629 echo "$ac_t""no" 1>&6
1632 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1635 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1636 echo "configure:1637: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1639 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1640 ac_cpp
='$CPP $CPPFLAGS'
1641 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1642 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1643 cross_compiling
=$ac_cv_prog_cc_cross
1645 cat > conftest.
$ac_ext <<EOF
1646 #line 1647 "configure"
1647 #include "confdefs.h"
1650 if { (eval echo configure
:1651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1651 ac_cv_prog_cc_works
=yes
1652 # If we can't run a trivial program, we are probably using a cross compiler.
1653 if (.
/conftest
; exit) 2>/dev
/null
; then
1654 ac_cv_prog_cc_cross
=no
1656 ac_cv_prog_cc_cross
=yes
1659 echo "configure: failed program was:" >&5
1660 cat conftest.
$ac_ext >&5
1661 ac_cv_prog_cc_works
=no
1665 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1666 if test $ac_cv_prog_cc_works = no
; then
1667 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1669 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1670 echo "configure:1671: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1671 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1672 cross_compiling
=$ac_cv_prog_cc_cross
1674 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1675 echo "configure:1676: checking whether we are using GNU C" >&5
1676 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1677 echo $ac_n "(cached) $ac_c" 1>&6
1679 cat > conftest.c
<<EOF
1684 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1685: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1691 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1693 if test $ac_cv_prog_gcc = yes; then
1695 ac_test_CFLAGS
="${CFLAGS+set}"
1696 ac_save_CFLAGS
="$CFLAGS"
1698 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1699 echo "configure:1700: checking whether ${CC-cc} accepts -g" >&5
1700 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1701 echo $ac_n "(cached) $ac_c" 1>&6
1703 echo 'void f(){}' > conftest.c
1704 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1713 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1714 if test "$ac_test_CFLAGS" = set; then
1715 CFLAGS
="$ac_save_CFLAGS"
1716 elif test $ac_cv_prog_cc_g = yes; then
1723 test "${CFLAGS+set}" = set || CFLAGS
="-g"
1727 .
${srcdir}/..
/bfd
/configure.
host
1731 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1734 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1735 echo "configure:1736: checking how to run the C preprocessor" >&5
1736 # On Suns, sometimes $CPP names a directory.
1737 if test -n "$CPP" && test -d "$CPP"; then
1740 if test -z "$CPP"; then
1741 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1742 echo $ac_n "(cached) $ac_c" 1>&6
1744 # This must be in double quotes, not single quotes, because CPP may get
1745 # substituted into the Makefile and "${CC-cc}" will confuse make.
1747 # On the NeXT, cc -E runs the code through the compiler's parser,
1748 # not just through cpp.
1749 cat > conftest.
$ac_ext <<EOF
1750 #line 1751 "configure"
1751 #include "confdefs.h"
1755 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1756 { (eval echo configure
:1757: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1757 ac_err
=`grep -v '^ *+' conftest.out`
1758 if test -z "$ac_err"; then
1762 echo "configure: failed program was:" >&5
1763 cat conftest.
$ac_ext >&5
1765 CPP
="${CC-cc} -E -traditional-cpp"
1766 cat > conftest.
$ac_ext <<EOF
1767 #line 1768 "configure"
1768 #include "confdefs.h"
1772 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1773 { (eval echo configure
:1774: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1774 ac_err
=`grep -v '^ *+' conftest.out`
1775 if test -z "$ac_err"; then
1779 echo "configure: failed program was:" >&5
1780 cat conftest.
$ac_ext >&5
1787 ac_cv_prog_CPP
="$CPP"
1789 CPP
="$ac_cv_prog_CPP"
1791 ac_cv_prog_CPP
="$CPP"
1793 echo "$ac_t""$CPP" 1>&6
1795 for ac_hdr
in string.h
strings.h stdlib.h
1797 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1798 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1799 echo "configure:1800: checking for $ac_hdr" >&5
1800 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1801 echo $ac_n "(cached) $ac_c" 1>&6
1803 cat > conftest.
$ac_ext <<EOF
1804 #line 1805 "configure"
1805 #include "confdefs.h"
1808 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1809 { (eval echo configure
:1810: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1810 ac_err
=`grep -v '^ *+' conftest.out`
1811 if test -z "$ac_err"; then
1813 eval "ac_cv_header_$ac_safe=yes"
1816 echo "configure: failed program was:" >&5
1817 cat conftest.
$ac_ext >&5
1819 eval "ac_cv_header_$ac_safe=no"
1823 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1824 echo "$ac_t""yes" 1>&6
1825 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1826 cat >> confdefs.h
<<EOF
1827 #define $ac_tr_hdr 1
1831 echo "$ac_t""no" 1>&6
1836 # start-sanitize-cygnus
1838 if test ${USE_MAINTAINER_MODE} = yes ; then
1839 for targ
in $target $canon_targets
1842 all
) use_cgen
=yes ;;
1843 m32r-
*-*) use_cgen
=yes ;;
1847 if test $use_cgen = yes ; then
1848 # Extract the first word of "guile", so it can be a program name with args.
1849 set dummy guile
; ac_word
=$2
1850 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1851 echo "configure:1852: checking for $ac_word" >&5
1852 if eval "test \"`echo '$''{'ac_cv_prog_SCHEME'+set}'`\" = set"; then
1853 echo $ac_n "(cached) $ac_c" 1>&6
1855 if test -n "$SCHEME"; then
1856 ac_cv_prog_SCHEME
="$SCHEME" # Let the user override the test.
1858 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1859 for ac_dir
in $PATH; do
1860 test -z "$ac_dir" && ac_dir
=.
1861 if test -f $ac_dir/$ac_word; then
1862 ac_cv_prog_SCHEME
="guile"
1867 test -z "$ac_cv_prog_SCHEME" && ac_cv_prog_SCHEME
="guile"
1870 SCHEME
="$ac_cv_prog_SCHEME"
1871 if test -n "$SCHEME"; then
1872 echo "$ac_t""$SCHEME" 1>&6
1874 echo "$ac_t""no" 1>&6
1878 # end-sanitize-cygnus
1880 # target-specific stuff:
1882 # Canonicalize the secondary target names.
1883 if test -n "$enable_targets" ; then
1884 for targ
in `echo $enable_targets | sed 's/,/ /g'`
1886 result
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $targ 2>/dev/null`
1887 if test -n "$result" ; then
1888 canon_targets
="$canon_targets $result"
1890 # Allow targets that config.sub doesn't recognize, like "all".
1891 canon_targets
="$canon_targets $targ"
1898 for targ
in $target $canon_targets
1900 if test "x$targ" = "xall" ; then
1903 .
$srcdir/..
/bfd
/config.bfd
1904 selarchs
="$selarchs $targ_archs"
1908 # Utility var, documents generic cgen support files.
1910 cgen_files
="cgen-opc.lo cgen-asm.lo cgen-dis.lo"
1912 # We don't do any links based on the target system, just makefile config.
1914 if test x
${all_targets} = xfalse
; then
1916 # Target architecture .o files.
1919 for arch
in $selarchs
1921 ad
=`echo $arch | sed -e s/bfd_//g -e s/_arch//g`
1922 archdefs
="$archdefs -DARCH_$ad"
1924 bfd_a29k_arch
) ta
="$ta a29k-dis.lo" ;;
1925 bfd_alliant_arch
) ;;
1926 bfd_alpha_arch
) ta
="$ta alpha-dis.lo alpha-opc.lo" ;;
1927 bfd_arc_arch
) ta
="$ta arc-dis.lo arc-opc.lo" ;;
1928 bfd_arm_arch
) ta
="$ta arm-dis.lo" ;;
1930 bfd_d10v_arch
) ta
="$ta d10v-dis.lo d10v-opc.lo" ;;
1931 # start-sanitize-d30v
1932 bfd_d30v_arch
) ta
="$ta d30v-dis.lo d30v-opc.lo" ;;
1934 bfd_h8300_arch
) ta
="$ta h8300-dis.lo" ;;
1935 bfd_h8500_arch
) ta
="$ta h8500-dis.lo" ;;
1936 bfd_hppa_arch
) ta
="$ta hppa-dis.lo" ;;
1937 bfd_i386_arch
) ta
="$ta i386-dis.lo" ;;
1939 bfd_i960_arch
) ta
="$ta i960-dis.lo" ;;
1940 bfd_m32r_arch
) ta
="$ta $cgen_files m32r-opc.lo m32r-asm.lo m32r-dis.lo" ;;
1941 bfd_m68k_arch
) ta
="$ta m68k-dis.lo m68k-opc.lo" ;;
1942 bfd_m88k_arch
) ta
="$ta m88k-dis.lo" ;;
1943 bfd_mips_arch
) ta
="$ta mips-dis.lo mips-opc.lo mips16-opc.lo" ;;
1944 bfd_mn10200_arch
) ta
="$ta m10200-dis.lo m10200-opc.lo" ;;
1945 bfd_mn10300_arch
) ta
="$ta m10300-dis.lo m10300-opc.lo" ;;
1946 bfd_ns32k_arch
) ta
="$ta ns32k-dis.lo" ;;
1947 bfd_powerpc_arch
) ta
="$ta ppc-dis.lo ppc-opc.lo" ;;
1948 bfd_pyramid_arch
) ;;
1950 bfd_rs6000_arch
) ta
="$ta ppc-dis.lo ppc-opc.lo" ;;
1951 bfd_sh_arch
) ta
="$ta sh-dis.lo" ;;
1952 bfd_sparc_arch
) ta
="$ta sparc-dis.lo sparc-opc.lo" ;;
1954 bfd_tic30_arch
) ta
="$ta tic30-dis.lo" ;;
1955 # start-sanitize-tic80
1956 bfd_tic80_arch
) ta
="$ta tic80-dis.lo tic80-opc.lo" ;;
1957 # end-sanitize-tic80
1958 # start-sanitize-sky
1959 bfd_dvp_arch
) ta
="$ta mips-dis.lo mips-opc.lo mips16-opc.lo dvp-dis.lo dvp-opc.lo" ;;
1961 bfd_v850_arch
) ta
="$ta v850-opc.lo v850-dis.lo" ;;
1962 # start-sanitize-v850e
1963 bfd_v850e_arch
) ta
="$ta v850-opc.lo v850-dis.lo" ;;
1964 bfd_v850ea_arch
) ta
="$ta v850-opc.lo v850-dis.lo" ;;
1965 # end-sanitize-v850e
1967 bfd_w65_arch
) ta
="$ta w65-dis.lo" ;;
1969 bfd_z8k_arch
) ta
="$ta z8k-dis.lo" ;;
1972 *) { echo "configure: error: *** unknown target architecture $arch" 1>&2; exit 1; } ;;
1976 # Weed out duplicate .o files.
1986 # And duplicate -D flags.
1988 for i
in $archdefs ; do
1998 else # all_targets is true
2000 BFD_MACHINES
='$(ALL_MACHINES)'
2007 cat > confcache
<<\EOF
2008 # This file is a shell script that caches the results of configure
2009 # tests run on this system so they can be shared between configure
2010 # scripts and configure runs. It is not useful on other systems.
2011 # If it contains results you don't want to keep, you may remove or edit it.
2013 # By default, configure uses ./config.cache as the cache file,
2014 # creating it if it does not exist already. You can give configure
2015 # the --cache-file=FILE option to use a different cache file; that is
2016 # what configure does when it calls configure scripts in
2017 # subdirectories, so they share the cache.
2018 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2019 # config.status only pays attention to the cache file if you give it the
2020 # --recheck option to rerun configure.
2023 # The following way of writing the cache mishandles newlines in values,
2024 # but we know of no workaround that is simple, portable, and efficient.
2025 # So, don't put newlines in cache variables' values.
2026 # Ultrix sh set writes to stderr and can't be redirected directly,
2027 # and sets the high bit in the cache file unless we assign to the vars.
2029 case `(ac_space=' '; set) 2>&1 | grep ac_space` in
2031 # `set' does not quote correctly, so add quotes (double-quote substitution
2032 # turns \\\\ into \\, and sed turns \\ into \).
2034 -e "s/'/'\\\\''/g" \
2035 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2038 # `set' quotes correctly as required by POSIX, so do not add quotes.
2039 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2042 if cmp -s $cache_file confcache
; then
2045 if test -w $cache_file; then
2046 echo "updating cache $cache_file"
2047 cat confcache
> $cache_file
2049 echo "not updating unwritable cache $cache_file"
2054 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2056 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
2057 # Let make expand exec_prefix.
2058 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
2060 # Any assignment to VPATH causes Sun make to only execute
2061 # the first set of double-colon rules, so remove it if not needed.
2062 # If there is a colon in the path, we need to keep it.
2063 if test "x$srcdir" = x.
; then
2064 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
2067 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2069 DEFS
=-DHAVE_CONFIG_H
2071 # Without the "./", some shells look in PATH for config.status.
2072 : ${CONFIG_STATUS=./config.status}
2074 echo creating
$CONFIG_STATUS
2075 rm -f $CONFIG_STATUS
2076 cat > $CONFIG_STATUS <<EOF
2078 # Generated automatically by configure.
2079 # Run this file to recreate the current configuration.
2080 # This directory was configured as follows,
2081 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2083 # $0 $ac_configure_args
2085 # Compiler output produced by configure, useful for debugging
2086 # configure, is in ./config.log if it exists.
2088 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2091 case "\$ac_option" in
2092 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2093 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2094 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2095 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2096 echo "$CONFIG_STATUS generated by autoconf version 2.12.1"
2098 -help | --help | --hel | --he | --h)
2099 echo "\$ac_cs_usage"; exit 0 ;;
2100 *) echo "\$ac_cs_usage"; exit 1 ;;
2104 ac_given_srcdir=$srcdir
2105 ac_given_INSTALL="$INSTALL"
2107 trap 'rm -fr `echo "Makefile config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2109 cat >> $CONFIG_STATUS <<EOF
2111 # Protect against being on the right side of a sed subst in config.status.
2112 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2113 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2117 s%@CFLAGS@%$CFLAGS%g
2118 s%@CPPFLAGS@%$CPPFLAGS%g
2119 s%@CXXFLAGS@%$CXXFLAGS%g
2121 s%@LDFLAGS@%$LDFLAGS%g
2123 s%@exec_prefix@%$exec_prefix%g
2124 s%@prefix@%$prefix%g
2125 s%@program_transform_name@%$program_transform_name%g
2126 s%@bindir@%$bindir%g
2127 s%@sbindir@%$sbindir%g
2128 s%@libexecdir@%$libexecdir%g
2129 s%@datadir@%$datadir%g
2130 s%@sysconfdir@%$sysconfdir%g
2131 s%@sharedstatedir@%$sharedstatedir%g
2132 s%@localstatedir@%$localstatedir%g
2133 s%@libdir@%$libdir%g
2134 s%@includedir@%$includedir%g
2135 s%@oldincludedir@%$oldincludedir%g
2136 s%@infodir@%$infodir%g
2137 s%@mandir@%$mandir%g
2139 s%@host_alias@%$host_alias%g
2140 s%@host_cpu@%$host_cpu%g
2141 s%@host_vendor@%$host_vendor%g
2142 s%@host_os@%$host_os%g
2143 s%@target@%$target%g
2144 s%@target_alias@%$target_alias%g
2145 s%@target_cpu@%$target_cpu%g
2146 s%@target_vendor@%$target_vendor%g
2147 s%@target_os@%$target_os%g
2149 s%@build_alias@%$build_alias%g
2150 s%@build_cpu@%$build_cpu%g
2151 s%@build_vendor@%$build_vendor%g
2152 s%@build_os@%$build_os%g
2153 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2154 s%@INSTALL_DATA@%$INSTALL_DATA%g
2155 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2156 s%@PACKAGE@%$PACKAGE%g
2157 s%@VERSION@%$VERSION%g
2158 s%@ACLOCAL@%$ACLOCAL%g
2159 s%@AUTOCONF@%$AUTOCONF%g
2160 s%@AUTOMAKE@%$AUTOMAKE%g
2161 s%@AUTOHEADER@%$AUTOHEADER%g
2162 s%@MAKEINFO@%$MAKEINFO%g
2163 s%@SET_MAKE@%$SET_MAKE%g
2165 s%@RANLIB@%$RANLIB%g
2170 s%@LIBTOOL@%$LIBTOOL%g
2172 s%@EXEEXT@%$EXEEXT%g
2173 s%@HDEFINES@%$HDEFINES%g
2175 s%@SCHEME@%$SCHEME%g
2176 s%@archdefs@%$archdefs%g
2177 s%@BFD_MACHINES@%$BFD_MACHINES%g
2182 cat >> $CONFIG_STATUS <<\EOF
2184 # Split the substitutions into bite-sized pieces for seds with
2185 # small command number limits, like on Digital OSF/1 and HP-UX.
2186 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
2187 ac_file
=1 # Number of current file.
2188 ac_beg
=1 # First line for current file.
2189 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
2192 while $ac_more_lines; do
2193 if test $ac_beg -gt 1; then
2194 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
2196 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
2198 if test ! -s conftest.s
$ac_file; then
2200 rm -f conftest.s
$ac_file
2202 if test -z "$ac_sed_cmds"; then
2203 ac_sed_cmds
="sed -f conftest.s$ac_file"
2205 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
2207 ac_file
=`expr $ac_file + 1`
2209 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
2212 if test -z "$ac_sed_cmds"; then
2217 cat >> $CONFIG_STATUS <<EOF
2219 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
2221 cat >> $CONFIG_STATUS <<\EOF
2222 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
2223 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2225 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
2226 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
2227 *) ac_file_in
="${ac_file}.in" ;;
2230 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2232 # Remove last slash and all that follows it. Not all systems have dirname.
2233 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2234 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
2235 # The file is in a subdirectory.
2236 test ! -d "$ac_dir" && mkdir
"$ac_dir"
2237 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
2238 # A "../" for each directory in $ac_dir_suffix.
2239 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2241 ac_dir_suffix
= ac_dots
=
2244 case "$ac_given_srcdir" in
2246 if test -z "$ac_dots"; then top_srcdir
=.
2247 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2248 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
2250 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2251 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
2254 case "$ac_given_INSTALL" in
2255 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
2256 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
2259 echo creating
"$ac_file"
2261 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2263 *Makefile
*) ac_comsub
="1i\\
2264 # $configure_input" ;;
2268 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2270 s%@configure_input@%$configure_input%g
2271 s%@srcdir@%$srcdir%g
2272 s%@top_srcdir@%$top_srcdir%g
2273 s%@INSTALL@%$INSTALL%g
2274 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
2278 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2279 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2281 # ac_d sets the value in "#define NAME VALUE" lines.
2282 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2283 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
2286 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2287 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2288 ac_uB
='\([ ]\)%\1#\2define\3'
2291 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2292 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2293 ac_eB
='$%\1#\2define\3'
2297 if test "${CONFIG_HEADERS+set}" != set; then
2299 cat >> $CONFIG_STATUS <<EOF
2300 CONFIG_HEADERS="config.h:config.in"
2302 cat >> $CONFIG_STATUS <<\EOF
2304 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
2305 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2307 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
2308 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
2309 *) ac_file_in
="${ac_file}.in" ;;
2312 echo creating
$ac_file
2314 rm -f conftest.frag conftest.
in conftest.out
2315 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2316 cat $ac_file_inputs > conftest.
in
2320 # Transform confdefs.h into a sed script conftest.vals that substitutes
2321 # the proper values into config.h.in to produce config.h. And first:
2322 # Protect against being on the right side of a sed subst in config.status.
2323 # Protect against being in an unquoted here document in config.status.
2325 cat > conftest.hdr
<<\EOF
2328 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2332 sed -n -f conftest.hdr confdefs.h > conftest.vals
2335 # This sed command replaces #undef with comments. This is necessary, for
2336 # example, in the case of _POSIX_SOURCE, which is predefined and required
2337 # on some systems where configure will not decide to define it.
2338 cat >> conftest.vals <<\EOF
2339 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2342 # Break up conftest.vals because some shells have a limit on
2343 # the size of here documents, and old seds have small limits too.
2348 ac_lines=`grep -c . conftest.vals
`
2349 # grep -c gives empty output for an empty file on some AIX systems.
2350 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2351 # Write a limited-size here document to conftest.frag.
2352 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2353 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2355 sed -f conftest.frag conftest.in > conftest.out
2357 mv conftest.out conftest.in
2359 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2361 mv conftest.tail conftest.vals
2365 cat >> $CONFIG_STATUS <<\EOF
2366 rm -f conftest.frag conftest.h
2367 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2368 cat conftest.in >> conftest.h
2370 if cmp -s $ac_file conftest.h 2>/dev/null; then
2371 echo "$ac_file is unchanged"
2374 # Remove last slash and all that follows it. Not all systems have dirname.
2375 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
2376 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2377 # The file is in a subdirectory.
2378 test ! -d "$ac_dir" && mkdir "$ac_dir"
2381 mv conftest.h $ac_file
2386 cat >> $CONFIG_STATUS <<EOF
2390 cat >> $CONFIG_STATUS <<\EOF
2391 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
2395 chmod +x $CONFIG_STATUS
2396 rm -fr confdefs* $ac_clean_files
2397 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
This page took 0.124834 seconds and 4 git commands to generate.