3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.7
5 # Copyright (C) 1992, 1993, 1994 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-bfd-assembler use BFD back end for writing object files"
17 targets alternative target configurations besides the primary"
19 --enable-shared build shared BFD library"
21 # Initialize some variables set by options.
22 # The variables have the same names as the options, with
23 # dashes changed to underlines.
25 cache_file
=.
/config.cache
34 program_transform_name
=s
,x
,x
,
42 bindir
='${exec_prefix}/bin'
43 sbindir
='${exec_prefix}/sbin'
44 libexecdir
='${exec_prefix}/libexec'
45 datadir
='${prefix}/share'
46 sysconfdir
='${prefix}/etc'
47 sharedstatedir
='${prefix}/com'
48 localstatedir
='${prefix}/var'
49 libdir
='${exec_prefix}/lib'
50 includedir
='${prefix}/include'
51 oldincludedir
='/usr/include'
52 infodir
='${prefix}/info'
53 mandir
='${prefix}/man'
55 # Initialize some other variables.
63 # If the previous option needs an argument, assign it.
64 if test -n "$ac_prev"; then
65 eval "$ac_prev=\$ac_option"
71 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
75 # Accept the important Cygnus configure options, so we can diagnose typos.
79 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
81 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
82 bindir
="$ac_optarg" ;;
84 -build |
--build |
--buil |
--bui |
--bu)
86 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
89 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
90 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
92 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
93 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
94 cache_file
="$ac_optarg" ;;
96 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
98 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
100 datadir
="$ac_optarg" ;;
102 -disable-* |
--disable-*)
103 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
104 # Reject names that are not valid shell variable names.
105 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
106 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
108 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
109 eval "enable_${ac_feature}=no" ;;
111 -enable-* |
--enable-*)
112 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
113 # Reject names that are not valid shell variable names.
114 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
115 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
117 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
122 eval "enable_${ac_feature}='$ac_optarg'" ;;
124 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
125 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
126 |
--exec |
--exe |
--ex)
127 ac_prev
=exec_prefix
;;
128 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
129 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
130 |
--exec=* |
--exe=* |
--ex=*)
131 exec_prefix
="$ac_optarg" ;;
133 -gas |
--gas |
--ga |
--g)
134 # Obsolete; use --with-gas.
137 -help |
--help |
--hel |
--he)
138 # Omit some internal or obsolete options to make the list less imposing.
139 # This message is too long to be a string in the A/UX 3.1 sh.
141 Usage: configure [options] [host]
142 Options: [defaults in brackets after descriptions]
144 --cache-file=FILE cache test results in FILE
145 --help print this message
146 --no-create do not create output files
147 --quiet, --silent do not print \`checking...' messages
148 --version print the version of autoconf that created configure
149 Directory and file names:
150 --prefix=PREFIX install architecture-independent files in PREFIX
152 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
154 --bindir=DIR user executables in DIR [EPREFIX/bin]
155 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
156 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
157 --datadir=DIR read-only architecture-independent data in DIR
159 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
160 --sharedstatedir=DIR modifiable architecture-independent data in DIR
162 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
163 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
164 --includedir=DIR C header files in DIR [PREFIX/include]
165 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
166 --infodir=DIR info documentation in DIR [PREFIX/info]
167 --mandir=DIR man documentation in DIR [PREFIX/man]
168 --srcdir=DIR find the sources in DIR [configure dir or ..]
169 --program-prefix=PREFIX prepend PREFIX to installed program names
170 --program-suffix=SUFFIX append SUFFIX to installed program names
171 --program-transform-name=PROGRAM
172 run sed PROGRAM on installed program names
176 --build=BUILD configure for building on BUILD [BUILD=HOST]
177 --host=HOST configure for HOST [guessed]
178 --target=TARGET configure for TARGET [TARGET=HOST]
179 Features and packages:
180 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
181 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
182 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
183 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
184 --x-includes=DIR X include files are in DIR
185 --x-libraries=DIR X library files are in DIR
187 if test -n "$ac_help"; then
188 echo "--enable and --with options recognized:$ac_help"
192 -host |
--host |
--hos |
--ho)
194 -host=* |
--host=* |
--hos=* |
--ho=*)
197 -includedir |
--includedir |
--includedi |
--included |
--include \
198 |
--includ |
--inclu |
--incl |
--inc)
199 ac_prev
=includedir
;;
200 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
201 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
202 includedir
="$ac_optarg" ;;
204 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
206 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
207 infodir
="$ac_optarg" ;;
209 -libdir |
--libdir |
--libdi |
--libd)
211 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
212 libdir
="$ac_optarg" ;;
214 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
215 |
--libexe |
--libex |
--libe)
216 ac_prev
=libexecdir
;;
217 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
218 |
--libexe=* |
--libex=* |
--libe=*)
219 libexecdir
="$ac_optarg" ;;
221 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
222 |
--localstate |
--localstat |
--localsta |
--localst \
223 |
--locals |
--local |
--loca |
--loc |
--lo)
224 ac_prev
=localstatedir
;;
225 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
226 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
227 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
228 localstatedir
="$ac_optarg" ;;
230 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
232 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
233 mandir
="$ac_optarg" ;;
236 # Obsolete; use --without-fp.
239 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
243 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
244 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
247 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
248 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
249 |
--oldin |
--oldi |
--old |
--ol |
--o)
250 ac_prev
=oldincludedir
;;
251 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
252 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
253 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
254 oldincludedir
="$ac_optarg" ;;
256 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
258 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
259 prefix
="$ac_optarg" ;;
261 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
262 |
--program-pre |
--program-pr |
--program-p)
263 ac_prev
=program_prefix
;;
264 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
265 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
266 program_prefix
="$ac_optarg" ;;
268 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
269 |
--program-suf |
--program-su |
--program-s)
270 ac_prev
=program_suffix
;;
271 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
272 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
273 program_suffix
="$ac_optarg" ;;
275 -program-transform-name |
--program-transform-name \
276 |
--program-transform-nam |
--program-transform-na \
277 |
--program-transform-n |
--program-transform- \
278 |
--program-transform |
--program-transfor \
279 |
--program-transfo |
--program-transf \
280 |
--program-trans |
--program-tran \
281 |
--progr-tra |
--program-tr |
--program-t)
282 ac_prev
=program_transform_name
;;
283 -program-transform-name=* |
--program-transform-name=* \
284 |
--program-transform-nam=* |
--program-transform-na=* \
285 |
--program-transform-n=* |
--program-transform-=* \
286 |
--program-transform=* |
--program-transfor=* \
287 |
--program-transfo=* |
--program-transf=* \
288 |
--program-trans=* |
--program-tran=* \
289 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
290 program_transform_name
="$ac_optarg" ;;
292 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
293 |
-silent |
--silent |
--silen |
--sile |
--sil)
296 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
298 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
300 sbindir
="$ac_optarg" ;;
302 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
303 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
304 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
306 ac_prev
=sharedstatedir
;;
307 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
308 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
309 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
311 sharedstatedir
="$ac_optarg" ;;
313 -site |
--site |
--sit)
315 -site=* |
--site=* |
--sit=*)
318 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
320 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
321 srcdir
="$ac_optarg" ;;
323 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
324 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
325 ac_prev
=sysconfdir
;;
326 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
327 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
328 sysconfdir
="$ac_optarg" ;;
330 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
332 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
333 target
="$ac_optarg" ;;
335 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
338 -version |
--version |
--versio |
--versi |
--vers)
339 echo "configure generated by autoconf version 2.7"
343 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
344 # Reject names that are not valid shell variable names.
345 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
346 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
348 ac_package
=`echo $ac_package| sed 's/-/_/g'`
353 eval "with_${ac_package}='$ac_optarg'" ;;
355 -without-* |
--without-*)
356 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
357 # Reject names that are not valid shell variable names.
358 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
359 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
361 ac_package
=`echo $ac_package| sed 's/-/_/g'`
362 eval "with_${ac_package}=no" ;;
365 # Obsolete; use --with-x.
368 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
369 |
--x-incl |
--x-inc |
--x-in |
--x-i)
370 ac_prev
=x_includes
;;
371 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
372 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
373 x_includes
="$ac_optarg" ;;
375 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
376 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
377 ac_prev
=x_libraries
;;
378 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
379 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
380 x_libraries
="$ac_optarg" ;;
382 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
386 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
387 echo "configure: warning: $ac_option: invalid host type" 1>&2
389 if test "x$nonopt" != xNONE
; then
390 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
398 if test -n "$ac_prev"; then
399 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
402 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
404 # File descriptor usage:
407 # 2 errors and warnings
408 # 3 some systems may open it to /dev/tty
409 # 4 used on the Kubota Titan
410 # 6 checking for... messages and results
411 # 5 compiler messages saved in config.log
412 if test "$silent" = yes; then
420 This file contains any messages produced by compilers while
421 running configure, to aid debugging if configure makes a mistake.
424 # Strip out --no-create and --no-recursion so they do not pile up.
425 # Also quote any args containing shell metacharacters.
430 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
431 |
--no-cr |
--no-c) ;;
432 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
433 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
434 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
435 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
436 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
441 # Only set LANG and LC_ALL to C if already set.
442 # These must not be set unconditionally because not all systems understand
443 # e.g. LANG=C (notably SCO).
444 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
445 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
447 # confdefs.h avoids OS command line length limits that DEFS can exceed.
448 rm -rf conftest
* confdefs.h
449 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
452 # A filename unique to this package, relative to the directory that
453 # configure is in, which we can look for to find out if srcdir is correct.
456 # Find the source files, if location was not specified.
457 if test -z "$srcdir"; then
458 ac_srcdir_defaulted
=yes
459 # Try the directory containing this script, then its parent.
461 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
462 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
464 if test ! -r $srcdir/$ac_unique_file; then
468 ac_srcdir_defaulted
=no
470 if test ! -r $srcdir/$ac_unique_file; then
471 if test "$ac_srcdir_defaulted" = yes; then
472 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
474 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
477 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
479 # Prefer explicitly selected file to automatically selected ones.
480 if test -z "$CONFIG_SITE"; then
481 if test "x$prefix" != xNONE
; then
482 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
484 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
487 for ac_site_file
in $CONFIG_SITE; do
488 if test -r "$ac_site_file"; then
489 echo "loading site script $ac_site_file"
494 if test -r "$cache_file"; then
495 echo "loading cache $cache_file"
498 echo "creating cache $cache_file"
503 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
504 ac_cpp
='echo $CPP $CPPFLAGS 1>&5;
506 ac_compile
='echo ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5;
507 ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5'
508 ac_link
='echo ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5;
509 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5'
511 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
512 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
513 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
520 ac_n
= ac_c
='\c' ac_t
=
524 # Check whether --enable-bfd-assembler or --disable-bfd-assembler was given.
525 if test "${enable_bfd_assembler+set}" = set; then
526 enableval
="$enable_bfd_assembler"
527 case "${enableval}" in
528 yes) need_bfd
=yes user_bfd_gas
=yes ;;
529 no
) user_bfd_gas
=no
;;
530 *) { echo "configure: error: bad value ${enableval} given for bfd-assembler option" 1>&2; exit 1; } ;;
533 # Check whether --enable-targets or --disable-targets was given.
534 if test "${enable_targets+set}" = set; then
535 enableval
="$enable_targets"
536 case "${enableval}" in
537 yes |
"") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
539 no
) enable_targets
= ;;
540 *) enable_targets
=$enableval ;;
543 # Check whether --enable-shared or --disable-shared was given.
544 if test "${enable_shared+set}" = set; then
545 enableval
="$enable_shared"
546 case "${enableval}" in
549 *) { echo "configure: error: bad value ${enableval} for BFD shared option" 1>&2; exit 1; } ;;
553 # Generate a header file -- gets more post-processing by Makefile later.
557 for ac_dir
in `cd $srcdir;pwd`/..
$srcdir/`cd $srcdir;pwd`/..
; do
558 if test -f $ac_dir/install-sh
; then
560 ac_install_sh
="$ac_aux_dir/install-sh -c"
562 elif test -f $ac_dir/install.sh
; then
564 ac_install_sh
="$ac_aux_dir/install.sh -c"
568 if test -z "$ac_aux_dir"; then
569 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/.." 1>&2; exit 1; }
571 ac_config_guess
=$ac_aux_dir/config.guess
572 ac_config_sub
=$ac_aux_dir/config.sub
573 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
576 # Do some error checking and defaulting for the host and target type.
578 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
581 # 1. You are not allowed to specify --host, --target, and nonopt at the
583 # 2. Host defaults to nonopt.
584 # 3. If nonopt is not specified, then host defaults to the current host,
585 # as determined by config.guess.
586 # 4. Target and build default to nonopt.
587 # 5. If nonopt is not specified, then target and build default to host.
589 # The aliases save the names the user supplied, while $host etc.
590 # will get canonicalized.
591 case $host---$target---$nonopt in
592 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
593 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
597 # Make sure we can run config.sub.
598 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
599 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
602 echo $ac_n "checking host system type""... $ac_c" 1>&6
605 case "$host_alias" in
609 if host_alias
=`$ac_config_guess`; then :
610 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
612 *) host_alias
=$nonopt ;;
616 host=`$ac_config_sub $host_alias`
617 host_cpu
=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
618 host_vendor
=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
619 host_os
=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
620 echo "$ac_t""$host" 1>&6
622 echo $ac_n "checking target system type""... $ac_c" 1>&6
625 case "$target_alias" in
628 NONE
) target_alias
=$host_alias ;;
629 *) target_alias
=$nonopt ;;
633 target
=`$ac_config_sub $target_alias`
634 target_cpu
=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
635 target_vendor
=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
636 target_os
=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
637 echo "$ac_t""$target" 1>&6
639 echo $ac_n "checking build system type""... $ac_c" 1>&6
642 case "$build_alias" in
645 NONE
) build_alias
=$host_alias ;;
646 *) build_alias
=$nonopt ;;
650 build
=`$ac_config_sub $build_alias`
651 build_cpu
=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
652 build_vendor
=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
653 build_os
=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
654 echo "$ac_t""$build" 1>&6
656 test "$host_alias" != "$target_alias" &&
657 test "$program_prefix$program_suffix$program_transform_name" = \
659 program_prefix
=${target_alias}-
661 if test "$program_transform_name" = s
,x
,x
,; then
662 program_transform_name
=
664 # Double any \ or $. echo might interpret backslashes.
665 cat <<\EOF_SED
> conftestsed
666 s
,\\,\\\\,g
; s
,\$
,$$
,g
668 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
671 test "$program_prefix" != NONE
&&
672 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
673 # Use a double $ so make ignores it.
674 test "$program_suffix" != NONE
&&
675 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
677 # sed with no file args requires a program.
678 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
685 # check for architecture variants
686 case ${target_cpu} in
687 armeb
) cpu_type
=arm endian
=big
;;
688 arm
*) cpu_type
=arm endian
=little
;;
689 hppa
*) cpu_type
=hppa
;;
690 i
[45]86) cpu_type
=i386
;;
691 m680
[012346]0) cpu_type
=m68k
;;
692 m68008
) cpu_type
=m68k
;;
693 m683??
) cpu_type
=m68k
;;
694 m8
*) cpu_type
=m88k
;;
695 mips
*el
) cpu_type
=mips endian
=little
;;
696 mips
*) cpu_type
=mips endian
=big
;;
697 powerpcle
*) cpu_type
=ppc endian
=little
;;
698 powerpc
*) cpu_type
=ppc endian
=big
;;
699 rs6000
*) cpu_type
=ppc
;;
700 sparc64
) cpu_type
=sparc
701 cat >> confdefs.h
<<\EOF
705 sparclite
*) cpu_type
=sparc
;;
706 *) cpu_type
=${target_cpu} ;;
709 # do we need the opcodes library?
714 OPCODES_DEP
=..
/opcodes
/libopcodes.a
715 OPCODES_LIB
='-L../opcodes -lopcodes'
717 # We need to handle some special cases if opcodes was built shared.
718 if test "${shared}" = "true"; then
721 # On SunOS, we must link against the name we are going to install,
722 # not -lbfd, since SunOS does not support SONAME.
723 OPCODES_LIB
='-L../opcodes -l`echo opcodes | sed '"'"'$(program_transform_name)'"'"'`'
732 gas_target
=${cpu_type}
733 this_target
=${generic_target}
736 if test -n "$enable_targets" ; then
737 for t
in `echo $enable_targets | sed 's/,/ /g'`; do
738 result
=`$ac_config_sub $t 2>/dev/null`
739 if test -n "$result" ; then
740 canon_targets
="$canon_targets $result"
742 # # Permit "all", etc. We don't support it yet though.
743 # canon_targets="$canon_targets $t"
746 _gas_uniq_list
="$canon_targets"
748 for _gas_uniq_i
in _gas_uniq_dummy
$_gas_uniq_list ; do
751 *) case " $_gas_uniq_newlist " in
752 *" $_gas_uniq_i "*) ;;
753 *) _gas_uniq_newlist
="$_gas_uniq_newlist $_gas_uniq_i" ;;
757 canon_targets
=$_gas_uniq_newlist
763 for this_target
in $target $canon_targets ; do
765 eval `echo $this_target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/cpu=\1 vendor=\2 os=\3/'`
767 # check for architecture variants
769 hppa
*) cpu_type
=hppa
;;
770 i
[45]86) cpu_type
=i386
;;
771 m680
[012346]0) cpu_type
=m68k
;;
772 m68008
) cpu_type
=m68k
;;
773 m683??
) cpu_type
=m68k
;;
774 m8
*) cpu_type
=m88k
;;
775 mips
*el
) cpu_type
=mips endian
=little
;;
776 mips
*) cpu_type
=mips endian
=big
;;
777 powerpcle
*) cpu_type
=ppc endian
=little
;;
778 powerpc
*) cpu_type
=ppc endian
=big
;;
779 rs6000
*) cpu_type
=ppc
;;
780 sparc64
) cpu_type
=sparc want_sparc_v9
=true
;;
781 sparclite
*) cpu_type
=sparc
;;
782 *) cpu_type
=${cpu} ;;
785 if test ${this_target} = $target ; then
786 target_cpu_type
=${cpu_type}
787 elif test ${target_cpu_type} != ${cpu_type} ; then
792 generic_target
=${cpu_type}-$vendor-$os
797 # assign object format
798 case ${generic_target} in
799 a29k-amd-udi
) fmt=coff targ
=ebmon29k
;;
800 a29k-amd-ebmon
) fmt=coff targ
=ebmon29k
;;
801 a29k-nyu-sym1
) fmt=coff targ
=ebmon29k
;;
802 a29k-
*-vxworks*) fmt=coff
;;
804 alpha-
*-netware*) fmt=ecoff
;;
805 alpha-
*-osf*) fmt=ecoff
;;
806 alpha-
*-linux*) fmt=ecoff
;;
809 arc-
*-elf*) fmt=elf bfd_gas
=yes ;;
812 arm-
*-riscix*) fmt=aout targ
=arm-lit
;;
819 arm-
*-coff) fmt=coff
;;
820 arm-
*-riscix*) fmt=aout
;;
821 arm-
*-pe) fmt=coff targ
=armcoff em
=pe
;;
823 hppa-
*-*elf
*) fmt=elf em
=hppa
;;
824 hppa-
*-lites*) fmt=elf em
=hppa
;;
825 hppa-
*-osf*) fmt=som em
=hppa
;;
826 hppa-
*-hpux*) fmt=som em
=hppa
;;
827 hppa-
*-bsd*) fmt=som em
=hppa
;;
828 hppa-
*-hiux*) fmt=som em
=hppa
;;
830 h8300-
*-coff) fmt=coff
;;
832 i386-ibm-aix
*) fmt=coff targ
=i386coff
834 i386-
*-bsd*) fmt=aout em
=386bsd
;;
835 i386-
*-netbsd0.8
) fmt=aout em
=386bsd
;;
836 i386-
*-netbsd*) fmt=aout em
=nbsd bfd_gas
=yes;;
837 i386-
*-linux*aout
* | i386-
*-linuxoldld) fmt=aout em
=linux
;;
838 i386-
*-linux*coff
*) fmt=coff em
=linux
840 i386-
*-linux*) fmt=elf em
=linux
;;
841 i386-
*-lynxos*) fmt=coff targ
=i386coff
843 i386-
*-sysv4* | i386-
*-solaris* | i386-
*-elf)
845 i386-
*-sco*elf
*) fmt=elf targ
=sco5
;;
846 i386-
*-coff | i386-
*-sysv* | i386-
*-sco* | i386-
*-isc*)
847 fmt=coff targ
=i386coff
;;
848 i386-
*-vsta) fmt=aout
;;
849 i386-
*-go32) fmt=coff targ
=i386coff
;;
850 i386-
*-gnu*) fmt=elf
;;
852 fmt=aout em
=mach bfd_gas
=yes ;;
853 i386-
*-msdos*) fmt=aout
;;
854 i386-
*-moss*) fmt=elf
;;
855 i386-
*-pe) fmt=coff targ
=i386coff em
=pe bfd_gas
=yes;;
856 i386-
*-cygwin32) fmt=coff targ
=i386coff em
=pe bfd_gas
=yes;;
857 i386-
*-*nt
) fmt=coff targ
=i386coff em
=pe bfd_gas
=yes;;
858 i960-
*-bout) fmt=bout
;;
859 i960-
*-coff) fmt=coff em
=ic960 targ
=ic960coff
;;
860 i960-
*-nindy*) fmt=bout
;;
861 i960-
*-vxworks4*) fmt=bout
;;
862 i960-
*-vxworks5.0
) fmt=bout
;;
863 i960-
*-vxworks5.
*) fmt=coff em
=ic960 targ
=ic960coff
;;
864 i960-
*-vxworks*) fmt=bout
;;
866 m68k-
*-vxworks* | m68k-ericsson-ose | m68k-
*-sunos*)
868 m68k-motorola-sysv
*) fmt=coff targ
=m68kcoff em
=delta
;;
869 m68k-bull-sysv3
*) fmt=coff targ
=m68kcoff em
=dpx2
;;
870 m68k-apollo-
*) fmt=coff targ
=apollo em
=apollo
;;
871 m68k-
*-sysv4 | m68k-
*-elf) # must be before -sysv*
873 m68k-
*-coff | m68k-
*-sysv*)
874 fmt=coff targ
=m68kcoff
;;
875 m68k-
*-hpux*) fmt=hp300 em
=hp300
;;
876 m68k-
*-lynxos*) fmt=coff targ
=m68kcoff
878 m68k-
*-netbsd*) fmt=aout em
=nbsd bfd_gas
=yes ;;
879 m68
*-apple-aux*) fmt=coff targ
=m68kcoff em
=aux
;;
881 m88k-motorola-sysv3
*) fmt=coff targ
=m88kcoff em
=delt88
;;
882 m88k-
*-coff*) fmt=coff targ
=m88kcoff
;;
884 # don't change em like *-*-bsd does
885 mips-dec-netbsd
*) fmt=elf targ
=mips-lit endian
=little
;;
886 mips-dec-bsd
*) fmt=aout targ
=mips-lit
;;
887 mips-sony-bsd
*) fmt=ecoff targ
=mips-big
;;
888 mips-
*-bsd*) { echo "configure: error: Unknown vendor for mips-bsd configuration." 1>&2; exit 1; } ;;
889 mips-
*-ultrix*) fmt=ecoff targ
=mips-lit endian
=little
;;
890 mips-
*-ecoff*) fmt=ecoff
892 big
) targ
=mips-big
;;
896 mips-
*-ecoff*) fmt=ecoff targ
=mips-big
;;
897 mips-
*-gnu*) fmt=aout
899 big
) targ
=mips-big
;;
903 mips-
*-irix5*) fmt=elf targ
=mips-big
;;
904 mips-
*-irix*) fmt=ecoff targ
=mips-big
;;
905 mips-
*-riscos*) fmt=ecoff targ
=mips-big
;;
906 mips-
*-sysv*) fmt=ecoff targ
=mips-big
;;
909 big
) targ
=mips-big
;;
913 ppc-
*-pe | ppc-
*-cygwin32 | ppc-
*-winnt*)
920 ppc-
*-aix*) fmt=coff
;;
921 ppc-
*-elf* | ppc-
*-eabi* | ppc-
*-sysv4*)
928 ppc-
*-macos* | ppc-
*-mpw*)
930 ppc-
*-netware*) fmt=elf em
=ppcnw
;;
932 sh-
*-coff) fmt=coff
;;
935 rce-
*-aout) fmt=aout
;;
938 ns32k-pc532-mach
* | ns32k-pc532-ux
*) fmt=aout em
=pc532mach
;;
939 ns32k-pc532-netbsd
* | ns32k-pc532-lites
*) fmt=aout em
=nbsd532
;;
941 sparc-
*-sunos4*) fmt=aout em
=sun3
;;
942 sparc-
*-aout | sparc
*-*-vxworks)
944 sparc-
*-coff) fmt=coff
;;
945 sparc-
*-lynxos*) fmt=coff em
=lynx
;;
946 sparc-fujitsu-none
) fmt=aout
;;
947 sparc-
*-elf | sparc
*-*-solaris*)
949 sparc-
*-netbsd*) fmt=aout em
=nbsd bfd_gas
=yes ;;
951 vax-
*-bsd* | vax-
*-ultrix*)
953 vax-
*-vms) fmt=vms
;;
955 z8k-
*-coff | z8k-
*-sim)
960 *-*-aout |
*-*-scout)
966 *-*-generic) fmt=generic
;;
967 *-*-xray |
*-*-hms) fmt=coff
;;
969 *-*-elf |
*-*-sysv4* |
*-*-solaris*)
970 echo "configure: warning: GAS support for ${generic_target} is incomplete." 1>&2
972 *-*-vxworks) fmt=aout
;;
973 *-*-netware) fmt=elf
;;
976 case ${cpu_type}-${fmt} in
977 arm-
*) bfd_gas
=yes ;;
979 # i386-aout) bfd_gas=preferred ;;
980 mips-
*) bfd_gas
=yes ;;
981 ns32k-
*) bfd_gas
=yes ;;
982 ppc-
*) bfd_gas
=yes ;;
983 sparc-
*) bfd_gas
=yes ;;
984 *-elf) bfd_gas
=yes ;;
985 *-ecoff) bfd_gas
=yes ;;
986 *-som) bfd_gas
=yes ;;
990 # Other random stuff.
992 test -n "$want_sparc_v9" && cat >> confdefs.h
<<\EOF
997 case ${cpu}-${vendor}-${os} in
998 sparc64-
*-elf*) cat >> confdefs.h
<<\EOF
999 #define SPARC_ARCH64 1
1006 case ${extra_objects} in
1008 *) extra_objects
="$extra_objects m68k-parse.o" ;;
1013 # See if we really can support this configuration with the emulation code.
1015 if test $this_target = $target ; then
1016 primary_bfd_gas
=$bfd_gas
1021 if test $bfd_gas = no
; then
1022 # Can't support other configurations this way.
1025 elif test $bfd_gas = no
; then
1026 # Can't support this configuration.
1030 # From target name and format, produce a list of supported emulations.
1032 case ${generic_target}-${fmt} in
1033 mips-
*-irix5*-*) emulation
="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
1034 mips-
*-*-ecoff) case "$endian" in
1035 big
) emulation
="mipsbecoff mipslecoff mipsecoff" ;;
1036 *) emulation
="mipslecoff mipsbecoff mipsecoff" ;;
1038 mips-
*-*-elf) case "$endian" in
1039 big
) emulation
="mipsbelf mipslelf mipself" ;;
1040 *) emulation
="mipslelf mipsbelf mipself" ;;
1044 emulations
="$emulations $emulation"
1048 # Assign floating point type. Most processors with FP support
1049 # IEEE FP. On those that don't support FP at all, usually IEEE
1051 case ${target_cpu} in
1052 vax | tahoe
) atof
=${target_cpu} ;;
1056 case "${obj_format}" in
1057 "") { echo "configure: error: GAS does not know what format to use for target ${target}" 1>&2; exit 1; } ;;
1061 if test ! -r ${srcdir}/config
/tc-
${target_cpu_type}.c
; then
1062 { echo "configure: error: GAS does not support target CPU ${target_cpu_type}" 1>&2; exit 1; }
1065 if test ! -r ${srcdir}/config
/obj-
${obj_format}.c
; then
1066 { echo "configure: error: GAS does not have support for object file format ${obj_format}" 1>&2; exit 1; }
1069 # and target makefile frag
1071 target_frag
=${srcdir}/config
/${gas_target}.mt
1072 if test ! -r ${target_frag}; then
1073 target_frag
=/dev
/null
# ick! but subst_file can't be conditionalized
1077 case ${user_bfd_gas}-${primary_bfd_gas} in
1079 # We didn't override user's choice.
1082 echo "configure: warning: Use of BFD is required for ${target}; overriding config options." 1>&2
1094 # User specified nothing.
1098 # Some COFF configurations want these random other flags set.
1099 case ${obj_format} in
1101 case ${target_cpu_type} in
1102 i386
) cat >> confdefs.h
<<\EOF
1106 m68k
) cat >> confdefs.h
<<\EOF
1110 m88k
) cat >> confdefs.h
<<\EOF
1118 # Getting this done right is going to be a bitch. Each configuration specified
1119 # with --enable-targets=... should be checked for environment, format, cpu, and
1122 # For each configuration, the necessary object file support code must be linked
1123 # in. This might be only one, it might be up to four. The necessary emulation
1124 # code needs to be provided, too.
1126 # And then there's "--enable-targets=all"....
1128 # For now, just always do it for MIPS ELF or ECOFF configurations. Sigh.
1130 formats
="${obj_format}"
1133 _gas_uniq_list
="$emulations"
1134 _gas_uniq_newlist
=""
1135 for _gas_uniq_i
in _gas_uniq_dummy
$_gas_uniq_list ; do
1136 case $_gas_uniq_i in
1138 *) case " $_gas_uniq_newlist " in
1139 *" $_gas_uniq_i "*) ;;
1140 *) _gas_uniq_newlist
="$_gas_uniq_newlist $_gas_uniq_i" ;;
1144 emulations
=$_gas_uniq_newlist
1146 for em
in .
$emulations ; do
1149 mipsbelf | mipslelf
)
1150 fmt=elf
file=mipself
;;
1151 mipsbecoff | mipslecoff
)
1152 fmt=ecoff
file=mipsecoff
;;
1154 formats
="$formats $fmt"
1155 emfiles
="$emfiles e-$file.o"
1156 EMULATIONS
="$EMULATIONS &$em,"
1158 _gas_uniq_list
="$formats"
1159 _gas_uniq_newlist
=""
1160 for _gas_uniq_i
in _gas_uniq_dummy
$_gas_uniq_list ; do
1161 case $_gas_uniq_i in
1163 *) case " $_gas_uniq_newlist " in
1164 *" $_gas_uniq_i "*) ;;
1165 *) _gas_uniq_newlist
="$_gas_uniq_newlist $_gas_uniq_i" ;;
1169 formats
=$_gas_uniq_newlist
1171 _gas_uniq_list
="$emfiles"
1172 _gas_uniq_newlist
=""
1173 for _gas_uniq_i
in _gas_uniq_dummy
$_gas_uniq_list ; do
1174 case $_gas_uniq_i in
1176 *) case " $_gas_uniq_newlist " in
1177 *" $_gas_uniq_i "*) ;;
1178 *) _gas_uniq_newlist
="$_gas_uniq_newlist $_gas_uniq_i" ;;
1182 emfiles
=$_gas_uniq_newlist
1184 if test `set . $formats ; shift ; echo $#` -gt 1 ; then
1185 for fmt in $formats ; do
1187 aout
) cat >> confdefs.h
<<\EOF
1188 #define OBJ_MAYBE_AOUT 1
1191 bout
) cat >> confdefs.h
<<\EOF
1192 #define OBJ_MAYBE_BOUT 1
1195 coff
) cat >> confdefs.h
<<\EOF
1196 #define OBJ_MAYBE_COFF 1
1199 ecoff
) cat >> confdefs.h
<<\EOF
1200 #define OBJ_MAYBE_ECOFF 1
1203 elf
) cat >> confdefs.h
<<\EOF
1204 #define OBJ_MAYBE_ELF 1
1207 generic
) cat >> confdefs.h
<<\EOF
1208 #define OBJ_MAYBE_GENERIC 1
1211 hp300
) cat >> confdefs.h
<<\EOF
1212 #define OBJ_MAYBE_HP300 1
1215 ieee
) cat >> confdefs.h
<<\EOF
1216 #define OBJ_MAYBE_IEEE 1
1219 som
) cat >> confdefs.h
<<\EOF
1220 #define OBJ_MAYBE_SOM 1
1223 vms
) cat >> confdefs.h
<<\EOF
1224 #define OBJ_MAYBE_VMS 1
1228 extra_objects
="$extra_objects obj-$fmt.o"
1232 if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
1234 extra_objects
="$extra_objects $emfiles"
1235 DEFAULT_EMULATION
=`set . $emulations ; echo $2`
1236 cat >> confdefs.h
<<\EOF
1237 #define USE_EMULATIONS 1
1242 cat >> confdefs.h
<<EOF
1243 #define EMULATIONS $EMULATIONS
1246 cat >> confdefs.h
<<EOF
1247 #define DEFAULT_EMULATION "$DEFAULT_EMULATION"
1251 files
="config/tc-${target_cpu_type}.c config/tc-${target_cpu_type}.h \
1252 config/obj-${obj_format}.h config/obj-${obj_format}.c \
1253 config/te-${te_file}.h config/atof-${atof}.c \
1255 links
="targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c \
1258 case ${primary_bfd_gas}-${target_cpu_type}-${obj_format} in
1259 yes-
*-coff) need_bfd
=yes ;;
1260 no-
*-coff) need_bfd
=yes
1261 cat >> confdefs.h
<<\EOF
1262 #define MANY_SEGMENTS 1
1267 reject_dev_configs
=yes
1269 case ${reject_dev_configs}-${dev} in
1271 { echo "configure: error: GAS does not support the ${generic_target} configuration." 1>&2; exit 1; }
1281 case "${primary_bfd_gas}" in
1282 yes) cat >> confdefs.h
<<\EOF
1283 #define BFD_ASSEMBLER 1
1289 case "${need_bfd}" in
1290 yes) BFDDEP
=..
/bfd
/libbfd.a
1291 BFDLIB
='-L../bfd -lbfd'
1292 ALL_OBJ_DEPS
="$ALL_OBJ_DEPS ../bfd/bfd.h"
1294 # We need to handle some special cases if BFD was built shared.
1295 if test "${shared}" = "true"; then
1298 # On SunOS, we must link against the name we are going to install,
1299 # not -lbfd, since SunOS does not support SONAME.
1300 BFDLIB
='-L../bfd -l`echo bfd | sed '"'"'$(program_transform_name)'"'"'`'
1310 cat >> confdefs.h
<<EOF
1311 #define TARGET_ALIAS "${target_alias}"
1314 cat >> confdefs.h
<<EOF
1315 #define TARGET_CANONICAL "${target}"
1318 cat >> confdefs.h
<<EOF
1319 #define TARGET_CPU "${target_cpu}"
1322 cat >> confdefs.h
<<EOF
1323 #define TARGET_VENDOR "${target_vendor}"
1326 cat >> confdefs.h
<<EOF
1327 #define TARGET_OS "${target_os}"
1331 # Extract the first word of "gcc", so it can be a program name with args.
1332 set dummy gcc
; ac_word
=$2
1333 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1334 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1335 echo $ac_n "(cached) $ac_c" 1>&6
1337 if test -n "$CC"; then
1338 ac_cv_prog_CC
="$CC" # Let the user override the test.
1340 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1341 for ac_dir
in $PATH; do
1342 test -z "$ac_dir" && ac_dir
=.
1343 if test -f $ac_dir/$ac_word; then
1349 test -z "$ac_cv_prog_CC" && ac_cv_prog_CC
="cc"
1353 if test -n "$CC"; then
1354 echo "$ac_t""$CC" 1>&6
1356 echo "$ac_t""no" 1>&6
1360 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1361 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1362 echo $ac_n "(cached) $ac_c" 1>&6
1364 cat > conftest.c
<<EOF
1369 if ${CC-cc} -E conftest.c
2>&5 |
egrep yes >/dev
/null
2>&1; then
1376 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1377 if test $ac_cv_prog_gcc = yes; then
1379 if test "${CFLAGS+set}" != set; then
1380 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1381 if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
1382 echo $ac_n "(cached) $ac_c" 1>&6
1384 echo 'void f(){}' > conftest.c
1385 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1386 ac_cv_prog_gcc_g
=yes
1394 echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
1395 if test $ac_cv_prog_gcc_g = yes; then
1403 test "${CFLAGS+set}" = set || CFLAGS
="-g"
1406 # Find a good install program. We prefer a C program (faster),
1407 # so one script is as good as another. But avoid the broken or
1408 # incompatible versions:
1409 # SysV /etc/install, /usr/sbin/install
1410 # SunOS /usr/etc/install
1411 # IRIX /sbin/install
1413 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1414 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1415 # ./install, which can be erroneously created by make from ./install.sh.
1416 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1417 if test -z "$INSTALL"; then
1418 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1419 echo $ac_n "(cached) $ac_c" 1>&6
1421 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1422 for ac_dir
in $PATH; do
1423 # Account for people who put trailing slashes in PATH elements.
1425 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1427 # OSF1 and SCO ODT 3.0 have their own names for install.
1428 for ac_prog
in ginstall installbsd scoinst
install; do
1429 if test -f $ac_dir/$ac_prog; then
1430 if test $ac_prog = install &&
1431 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1432 # AIX install. It has an incompatible calling convention.
1433 # OSF/1 installbsd also uses dspmsg, but is usable.
1436 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1447 if test "${ac_cv_path_install+set}" = set; then
1448 INSTALL
="$ac_cv_path_install"
1450 # As a last resort, use the slow shell script. We don't cache a
1451 # path for INSTALL within a source directory, because that will
1452 # break other packages using the cache if that directory is
1453 # removed, or if the path is relative.
1454 INSTALL
="$ac_install_sh"
1457 echo "$ac_t""$INSTALL" 1>&6
1459 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1460 # It thinks the first close brace ends the variable substitution.
1461 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1463 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1466 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1467 # On Suns, sometimes $CPP names a directory.
1468 if test -n "$CPP" && test -d "$CPP"; then
1471 if test -z "$CPP"; then
1472 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1473 echo $ac_n "(cached) $ac_c" 1>&6
1475 # This must be in double quotes, not single quotes, because CPP may get
1476 # substituted into the Makefile and "${CC-cc}" will confuse make.
1478 # On the NeXT, cc -E runs the code through the compiler's parser,
1479 # not just through cpp.
1480 cat > conftest.
$ac_ext <<EOF
1481 #line 1482 "configure"
1482 #include "confdefs.h"
1486 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1487 ac_err
=`grep -v '^ *+' conftest.out`
1488 if test -z "$ac_err"; then
1493 CPP
="${CC-cc} -E -traditional-cpp"
1494 cat > conftest.
$ac_ext <<EOF
1495 #line 1496 "configure"
1496 #include "confdefs.h"
1500 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1501 ac_err
=`grep -v '^ *+' conftest.out`
1502 if test -z "$ac_err"; then
1512 ac_cv_prog_CPP
="$CPP"
1514 CPP
="$ac_cv_prog_CPP"
1516 ac_cv_prog_CPP
="$CPP"
1518 echo "$ac_t""$CPP" 1>&6
1520 for ac_hdr
in string.h stdlib.h memory.h
strings.h unistd.h stdarg.h varargs.h errno.h sys
/types.h
1522 ac_safe
=`echo "$ac_hdr" | tr './\055' '___'`
1523 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1524 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+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"
1532 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1533 ac_err
=`grep -v '^ *+' conftest.out`
1534 if test -z "$ac_err"; then
1536 eval "ac_cv_header_$ac_safe=yes"
1540 eval "ac_cv_header_$ac_safe=no"
1544 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1545 echo "$ac_t""yes" 1>&6
1546 ac_tr_hdr
=HAVE_
`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
1547 cat >> confdefs.h
<<EOF
1548 #define $ac_tr_hdr 1
1552 echo "$ac_t""no" 1>&6
1557 # Put this here so that autoconf's "cross-compiling" message doesn't confuse
1558 # people who are not cross-compiling but are compiling cross-assemblers.
1559 echo $ac_n "checking whether compiling a cross-assembler""... $ac_c" 1>&6
1560 if test "${host}" = "${target}"; then
1564 cat >> confdefs.h
<<\EOF
1565 #define CROSS_COMPILE 1
1569 echo "$ac_t""$cross_gas" 1>&6
1571 # If we cannot run a trivial program, we must be cross compiling.
1572 echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
1573 if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
1574 echo $ac_n "(cached) $ac_c" 1>&6
1576 if test "$cross_compiling" = yes; then
1579 cat > conftest.
$ac_ext <<EOF
1580 #line 1581 "configure"
1581 #include "confdefs.h"
1585 if test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
; then
1594 echo "$ac_t""$ac_cv_c_cross" 1>&6
1595 cross_compiling
=$ac_cv_c_cross
1597 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1598 # for constant arguments. Useless!
1599 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1600 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1601 echo $ac_n "(cached) $ac_c" 1>&6
1603 cat > conftest.
$ac_ext <<EOF
1604 #line 1605 "configure"
1605 #include "confdefs.h"
1607 int main() { return 0; }
1609 char *p = alloca(2 * sizeof(int));
1612 if eval $ac_link; then
1614 ac_cv_header_alloca_h
=yes
1617 ac_cv_header_alloca_h
=no
1623 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1624 if test $ac_cv_header_alloca_h = yes; then
1625 cat >> confdefs.h
<<\EOF
1626 #define HAVE_ALLOCA_H 1
1631 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1632 if eval "test \"`echo '$''{'ac_cv_func_alloca'+set}'`\" = set"; then
1633 echo $ac_n "(cached) $ac_c" 1>&6
1635 cat > conftest.
$ac_ext <<EOF
1636 #line 1637 "configure"
1637 #include "confdefs.h"
1640 # define alloca __builtin_alloca
1643 # include <alloca.h>
1648 # ifndef alloca /* predefined by HP cc +Olibcalls */
1655 int main() { return 0; }
1657 char *p = (char *) alloca(1);
1660 if eval $ac_link; then
1662 ac_cv_func_alloca
=yes
1665 ac_cv_func_alloca
=no
1671 echo "$ac_t""$ac_cv_func_alloca" 1>&6
1672 if test $ac_cv_func_alloca = yes; then
1673 cat >> confdefs.h
<<\EOF
1674 #define HAVE_ALLOCA 1
1679 if test $ac_cv_func_alloca = no
; then
1680 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1681 # that cause trouble. Some versions do not even contain alloca or
1682 # contain a buggy version. If you still want to use their alloca,
1683 # use ar to extract alloca.o from them instead of compiling alloca.c.
1685 cat >> confdefs.h
<<\EOF
1690 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1691 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1692 echo $ac_n "(cached) $ac_c" 1>&6
1694 cat > conftest.
$ac_ext <<EOF
1695 #line 1696 "configure"
1696 #include "confdefs.h"
1697 #if defined(CRAY) && ! defined(CRAY2)
1704 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1705 egrep "webecray" >/dev
/null
2>&1; then
1716 echo "$ac_t""$ac_cv_os_cray" 1>&6
1717 if test $ac_cv_os_cray = yes; then
1718 for ac_func
in _getb67 GETB67 getb67
; do
1719 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1720 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1721 echo $ac_n "(cached) $ac_c" 1>&6
1723 cat > conftest.
$ac_ext <<EOF
1724 #line 1725 "configure"
1725 #include "confdefs.h"
1726 /* System header to define __stub macros and hopefully few prototypes,
1727 which can conflict with char $ac_func(); below. */
1729 /* Override any gcc2 internal prototype to avoid an error. */
1732 int main() { return 0; }
1735 /* The GNU C library defines this for functions which it implements
1736 to always fail with ENOSYS. Some functions are actually named
1737 something starting with __ and the normal name is an alias. */
1738 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1746 if eval $ac_link; then
1748 eval "ac_cv_func_$ac_func=yes"
1751 eval "ac_cv_func_$ac_func=no"
1756 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1757 echo "$ac_t""yes" 1>&6
1758 cat >> confdefs.h
<<EOF
1759 #define CRAY_STACKSEG_END $ac_func
1764 echo "$ac_t""no" 1>&6
1770 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1771 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1772 echo $ac_n "(cached) $ac_c" 1>&6
1774 if test "$cross_compiling" = yes; then
1775 ac_cv_c_stack_direction
=0
1777 cat > conftest.
$ac_ext <<EOF
1778 #line 1779 "configure"
1779 #include "confdefs.h"
1780 find_stack_direction ()
1782 static char *addr = 0;
1787 return find_stack_direction ();
1790 return (&dummy > addr) ? 1 : -1;
1794 exit (find_stack_direction() < 0);
1798 if test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
; then
1799 ac_cv_c_stack_direction
=1
1801 ac_cv_c_stack_direction
=-1
1807 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1808 cat >> confdefs.h
<<EOF
1809 #define STACK_DIRECTION $ac_cv_c_stack_direction
1814 echo $ac_n "checking for inline""... $ac_c" 1>&6
1815 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1816 echo $ac_n "(cached) $ac_c" 1>&6
1819 for ac_kw
in inline __inline__ __inline
; do
1820 cat > conftest.
$ac_ext <<EOF
1821 #line 1822 "configure"
1822 #include "confdefs.h"
1824 int main() { return 0; }
1829 if eval $ac_compile; then
1831 ac_cv_c_inline
=$ac_kw; break
1839 echo "$ac_t""$ac_cv_c_inline" 1>&6
1840 case "$ac_cv_c_inline" in
1842 no
) cat >> confdefs.h
<<\EOF
1846 *) cat >> confdefs.h
<<EOF
1847 #define inline $ac_cv_c_inline
1853 # VMS doesn't have unlink.
1854 for ac_func
in unlink remove
1856 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1857 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1858 echo $ac_n "(cached) $ac_c" 1>&6
1860 cat > conftest.
$ac_ext <<EOF
1861 #line 1862 "configure"
1862 #include "confdefs.h"
1863 /* System header to define __stub macros and hopefully few prototypes,
1864 which can conflict with char $ac_func(); below. */
1866 /* Override any gcc2 internal prototype to avoid an error. */
1869 int main() { return 0; }
1872 /* The GNU C library defines this for functions which it implements
1873 to always fail with ENOSYS. Some functions are actually named
1874 something starting with __ and the normal name is an alias. */
1875 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1883 if eval $ac_link; then
1885 eval "ac_cv_func_$ac_func=yes"
1888 eval "ac_cv_func_$ac_func=no"
1893 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1894 echo "$ac_t""yes" 1>&6
1895 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1896 cat >> confdefs.h
<<EOF
1897 #define $ac_tr_func 1
1901 echo "$ac_t""no" 1>&6
1906 # Some systems don't have sbrk().
1909 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1910 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1911 echo $ac_n "(cached) $ac_c" 1>&6
1913 cat > conftest.
$ac_ext <<EOF
1914 #line 1915 "configure"
1915 #include "confdefs.h"
1916 /* System header to define __stub macros and hopefully few prototypes,
1917 which can conflict with char $ac_func(); below. */
1919 /* Override any gcc2 internal prototype to avoid an error. */
1922 int main() { return 0; }
1925 /* The GNU C library defines this for functions which it implements
1926 to always fail with ENOSYS. Some functions are actually named
1927 something starting with __ and the normal name is an alias. */
1928 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1936 if eval $ac_link; then
1938 eval "ac_cv_func_$ac_func=yes"
1941 eval "ac_cv_func_$ac_func=no"
1946 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1947 echo "$ac_t""yes" 1>&6
1948 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1949 cat >> confdefs.h
<<EOF
1950 #define $ac_tr_func 1
1954 echo "$ac_t""no" 1>&6
1959 # Some non-ANSI preprocessors botch requoting inside strings. That's bad
1960 # enough, but on some of those systems, the assert macro relies on requoting
1962 echo $ac_n "checking for working assert macro""... $ac_c" 1>&6
1963 if eval "test \"`echo '$''{'gas_cv_assert_ok'+set}'`\" = set"; then
1964 echo $ac_n "(cached) $ac_c" 1>&6
1966 cat > conftest.
$ac_ext <<EOF
1967 #line 1968 "configure"
1968 #include "confdefs.h"
1971 int main() { return 0; }
1974 /* check for requoting problems */
1975 static int a, b, c, d;
1977 assert (!strcmp(s, "foo bar baz quux"));
1978 /* check for newline handling */
1984 if eval $ac_link; then
1986 gas_cv_assert_ok
=yes
1994 echo "$ac_t""$gas_cv_assert_ok" 1>&6
1995 test $gas_cv_assert_ok = yes ||
cat >> confdefs.h
<<\EOF
1996 #define BROKEN_ASSERT 1
2001 # On some systems, the system header files may not declare malloc, realloc,
2002 # and free. There are places where gas needs these functions to have been
2003 # declared -- such as when taking their addresses.
2005 #ifdef HAVE_MEMORY_H
2008 #ifdef HAVE_STRING_H
2011 #ifdef HAVE_STDLIB_H
2014 #ifdef HAVE_UNISTD_H
2019 echo $ac_n "checking whether declaration is required for malloc""... $ac_c" 1>&6
2020 if eval "test \"`echo '$''{'gas_cv_decl_needed_malloc'+set}'`\" = set"; then
2021 echo $ac_n "(cached) $ac_c" 1>&6
2023 cat > conftest.
$ac_ext <<EOF
2024 #line 2025 "configure"
2025 #include "confdefs.h"
2027 int main() { return 0; }
2030 typedef char *(*f)();
2036 if eval $ac_link; then
2038 gas_cv_decl_needed_malloc
=no
2041 gas_cv_decl_needed_malloc
=yes
2046 echo "$ac_t""$gas_cv_decl_needed_malloc" 1>&6
2047 test $gas_cv_decl_needed_malloc = no ||
{
2048 cat >> confdefs.h
<<\EOF
2049 #define NEED_DECLARATION_MALLOC 1
2055 echo $ac_n "checking whether declaration is required for free""... $ac_c" 1>&6
2056 if eval "test \"`echo '$''{'gas_cv_decl_needed_free'+set}'`\" = set"; then
2057 echo $ac_n "(cached) $ac_c" 1>&6
2059 cat > conftest.
$ac_ext <<EOF
2060 #line 2061 "configure"
2061 #include "confdefs.h"
2063 int main() { return 0; }
2066 typedef void (*f)();
2072 if eval $ac_link; then
2074 gas_cv_decl_needed_free
=no
2077 gas_cv_decl_needed_free
=yes
2082 echo "$ac_t""$gas_cv_decl_needed_free" 1>&6
2083 test $gas_cv_decl_needed_free = no ||
{
2084 cat >> confdefs.h
<<\EOF
2085 #define NEED_DECLARATION_FREE 1
2091 # Does errno.h declare errno, or do we have to add a separate declaration
2094 echo $ac_n "checking whether declaration is required for errno""... $ac_c" 1>&6
2095 if eval "test \"`echo '$''{'gas_cv_decl_needed_errno'+set}'`\" = set"; then
2096 echo $ac_n "(cached) $ac_c" 1>&6
2098 cat > conftest.
$ac_ext <<EOF
2099 #line 2100 "configure"
2100 #include "confdefs.h"
2106 int main() { return 0; }
2115 if eval $ac_link; then
2117 gas_cv_decl_needed_errno
=no
2120 gas_cv_decl_needed_errno
=yes
2125 echo "$ac_t""$gas_cv_decl_needed_errno" 1>&6
2126 test $gas_cv_decl_needed_errno = no ||
{
2127 cat >> confdefs.h
<<\EOF
2128 #define NEED_DECLARATION_ERRNO 1
2135 # If we have shared libraries, try to set rpath reasonably.
2136 if test "${shared}" = "true"; then
2139 HLDFLAGS
='-Wl,-rpath,$(libdir)'
2144 HLDFLAGS
='-Wl,-rpath,$(libdir)'
2146 *-*-sysv4* |
*-*-solaris*)
2147 HLDFLAGS
='-R $(libdir)'
2152 # On SunOS, if the linker supports the -rpath option, use it to
2153 # prevent ../bfd and ../opcodes from being included in the run time
2157 echo 'main () { }' > conftest.c
2158 ${CC} -o conftest
-Wl,-rpath= conftest.c
>/dev
/null
2>conftest.t
2159 if grep 'unrecognized' conftest.t
>/dev
/null
2>&1; then
2161 elif grep 'No such file' conftest.t
>/dev
/null
2>&1; then
2163 elif test "${shared}" = "true"; then
2164 HLDFLAGS
='-Wl,-rpath=$(libdir)'
2166 HLDFLAGS
='-Wl,-rpath='
2168 rm -f conftest.t conftest.c conftest
2174 cat > confcache
<<\EOF
2175 # This file is a shell script that caches the results of configure
2176 # tests run on this system so they can be shared between configure
2177 # scripts and configure runs. It is not useful on other systems.
2178 # If it contains results you don't want to keep, you may remove or edit it.
2180 # By default, configure uses ./config.cache as the cache file,
2181 # creating it if it does not exist already. You can give configure
2182 # the --cache-file=FILE option to use a different cache file; that is
2183 # what configure does when it calls configure scripts in
2184 # subdirectories, so they share the cache.
2185 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2186 # config.status only pays attention to the cache file if you give it the
2187 # --recheck option to rerun configure.
2190 # Ultrix sh set writes to stderr and can't be redirected directly,
2191 # and sets the high bit in the cache file unless we assign to the vars.
2193 sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
2195 if cmp -s $cache_file confcache
; then
2198 if test -w $cache_file; then
2199 echo "updating cache $cache_file"
2200 cat confcache
> $cache_file
2202 echo "not updating unwritable cache $cache_file"
2207 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2209 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
2210 # Let make expand exec_prefix.
2211 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
2213 # Any assignment to VPATH causes Sun make to only execute
2214 # the first set of double-colon rules, so remove it if not needed.
2215 # If there is a colon in the path, we need to keep it.
2216 if test "x$srcdir" = x.
; then
2217 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
2220 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2222 DEFS
=-DHAVE_CONFIG_H
2224 # Without the "./", some shells look in PATH for config.status.
2225 : ${CONFIG_STATUS=./config.status}
2227 echo creating
$CONFIG_STATUS
2228 rm -f $CONFIG_STATUS
2229 cat > $CONFIG_STATUS <<EOF
2231 # Generated automatically by configure.
2232 # Run this file to recreate the current configuration.
2233 # This directory was configured as follows,
2234 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2236 # $0 $ac_configure_args
2238 # Compiler output produced by configure, useful for debugging
2239 # configure, is in ./config.log if it exists.
2241 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2244 case "\$ac_option" in
2245 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2246 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2247 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2248 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2249 echo "$CONFIG_STATUS generated by autoconf version 2.7"
2251 -help | --help | --hel | --he | --h)
2252 echo "\$ac_cs_usage"; exit 0 ;;
2253 *) echo "\$ac_cs_usage"; exit 1 ;;
2257 ac_given_srcdir=$srcdir
2258 ac_given_INSTALL="$INSTALL"
2260 trap 'rm -fr `echo "Makefile doc/Makefile .gdbinit:gdbinit.in conf" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2262 cat >> $CONFIG_STATUS <<EOF
2264 # Protect against being on the right side of a sed subst in config.status.
2265 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2266 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2269 s%@CFLAGS@%$CFLAGS%g
2270 s%@CPPFLAGS@%$CPPFLAGS%g
2271 s%@CXXFLAGS@%$CXXFLAGS%g
2273 s%@LDFLAGS@%$LDFLAGS%g
2275 s%@exec_prefix@%$exec_prefix%g
2276 s%@prefix@%$prefix%g
2277 s%@program_transform_name@%$program_transform_name%g
2278 s%@bindir@%$bindir%g
2279 s%@sbindir@%$sbindir%g
2280 s%@libexecdir@%$libexecdir%g
2281 s%@datadir@%$datadir%g
2282 s%@sysconfdir@%$sysconfdir%g
2283 s%@sharedstatedir@%$sharedstatedir%g
2284 s%@localstatedir@%$localstatedir%g
2285 s%@libdir@%$libdir%g
2286 s%@includedir@%$includedir%g
2287 s%@oldincludedir@%$oldincludedir%g
2288 s%@infodir@%$infodir%g
2289 s%@mandir@%$mandir%g
2291 s%@host_alias@%$host_alias%g
2292 s%@host_cpu@%$host_cpu%g
2293 s%@host_vendor@%$host_vendor%g
2294 s%@host_os@%$host_os%g
2295 s%@target@%$target%g
2296 s%@target_alias@%$target_alias%g
2297 s%@target_cpu@%$target_cpu%g
2298 s%@target_vendor@%$target_vendor%g
2299 s%@target_os@%$target_os%g
2301 s%@build_alias@%$build_alias%g
2302 s%@build_cpu@%$build_cpu%g
2303 s%@build_vendor@%$build_vendor%g
2304 s%@build_os@%$build_os%g
2305 s%@OPCODES_DEP@%$OPCODES_DEP%g
2306 s%@OPCODES_LIB@%$OPCODES_LIB%g
2307 /@target_frag@/r $target_frag
2309 s%@extra_objects@%$extra_objects%g
2310 s%@target_cpu_type@%$target_cpu_type%g
2311 s%@obj_format@%$obj_format%g
2313 s%@BFDDEP@%$BFDDEP%g
2314 s%@BFDLIB@%$BFDLIB%g
2315 s%@ALL_OBJ_DEPS@%$ALL_OBJ_DEPS%g
2317 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2318 s%@INSTALL_DATA@%$INSTALL_DATA%g
2320 s%@ALLOCA@%$ALLOCA%g
2321 s%@HLDFLAGS@%$HLDFLAGS%g
2325 cat >> $CONFIG_STATUS <<EOF
2327 CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile .gdbinit:gdbinit.in"}
2329 cat >> $CONFIG_STATUS <<\EOF
2330 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
2331 # Support "outfile[:infile]", defaulting infile="outfile.in".
2333 *:*) ac_file_in
=`echo "$ac_file"|sed 's%.*:%%'`
2334 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
2335 *) ac_file_in
="${ac_file}.in" ;;
2338 # Adjust relative srcdir, etc. for subdirectories.
2340 # Remove last slash and all that follows it. Not all systems have dirname.
2341 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2342 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
2343 # The file is in a subdirectory.
2344 test ! -d "$ac_dir" && mkdir
"$ac_dir"
2345 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
2346 # A "../" for each directory in $ac_dir_suffix.
2347 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2349 ac_dir_suffix
= ac_dots
=
2352 case "$ac_given_srcdir" in
2354 if test -z "$ac_dots"; then top_srcdir
=.
2355 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2356 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
2358 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2359 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
2362 case "$ac_given_INSTALL" in
2363 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
2364 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
2366 echo creating
"$ac_file"
2368 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2370 *Makefile
*) ac_comsub
="1i\\
2371 # $configure_input" ;;
2375 s%@configure_input@%$configure_input%g
2376 s%@srcdir@%$srcdir%g
2377 s%@top_srcdir@%$top_srcdir%g
2378 s%@INSTALL@%$INSTALL%g
2379 " -f conftest.subs
$ac_given_srcdir/$ac_file_in > $ac_file
2383 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2384 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2386 # ac_d sets the value in "#define NAME VALUE" lines.
2387 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2388 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
2391 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2392 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2393 ac_uB
='\([ ]\)%\1#\2define\3'
2396 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2397 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2398 ac_eB
='$%\1#\2define\3'
2402 CONFIG_HEADERS
=${CONFIG_HEADERS-"conf"}
2403 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
2404 # Support "outfile[:infile]", defaulting infile="outfile.in".
2406 *:*) ac_file_in
=`echo "$ac_file"|sed 's%.*:%%'`
2407 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
2408 *) ac_file_in
="${ac_file}.in" ;;
2411 echo creating
$ac_file
2413 rm -f conftest.frag conftest.
in conftest.out
2414 cp $ac_given_srcdir/$ac_file_in conftest.
in
2418 # Transform confdefs.h into a sed script conftest.vals that substitutes
2419 # the proper values into config.h.in to produce config.h. And first:
2420 # Protect against being on the right side of a sed subst in config.status.
2421 # Protect against being in an unquoted here document in config.status.
2423 cat > conftest.hdr
<<\EOF
2426 s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2430 sed -n -f conftest.hdr confdefs.h > conftest.vals
2433 # This sed command replaces #undef with comments. This is necessary, for
2434 # example, in the case of _POSIX_SOURCE, which is predefined and required
2435 # on some systems where configure will not decide to define it.
2436 cat >> conftest.vals <<\EOF
2437 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2440 # Break up conftest.vals because some shells have a limit on
2441 # the size of here documents, and old seds have small limits too.
2442 # Maximum number of lines to put in a single here document.
2443 ac_max_here_lines=12
2448 ac_lines=`grep -c . conftest.vals
`
2449 # grep -c gives empty output for an empty file on some AIX systems.
2450 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2451 # Write a limited-size here document to conftest.frag.
2452 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2453 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2455 sed -f conftest.frag conftest.in > conftest.out
2457 mv conftest.out conftest.in
2459 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2461 mv conftest.tail conftest.vals
2465 cat >> $CONFIG_STATUS <<\EOF
2466 rm -f conftest.frag conftest.h
2467 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2468 cat conftest.in >> conftest.h
2470 if cmp -s $ac_file conftest.h 2>/dev/null; then
2471 echo "$ac_file is unchanged"
2475 mv conftest.h $ac_file
2481 cat >> $CONFIG_STATUS <<EOF
2486 cat >> $CONFIG_STATUS <<\EOF
2487 srcdir=$ac_given_srcdir
2488 while test -n "$ac_sources"; do
2489 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
2490 set $ac_sources; ac_source=$1; shift; ac_sources=$*
2492 echo "linking $srcdir/$ac_source to $ac_dest"
2494 if test ! -r $srcdir/$ac_source; then
2495 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
2499 # Make relative symlinks.
2500 # Remove last slash and all that follows it. Not all systems have dirname.
2501 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
2502 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
2503 # The dest file is in a subdirectory.
2504 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
2505 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
2506 # A "../" for each directory in $ac_dest_dir_suffix.
2507 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
2509 ac_dest_dir_suffix= ac_dots=
2513 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
2514 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
2517 # Make a symlink if possible; otherwise try a hard link.
2518 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
2519 ln $srcdir/$ac_source $ac_dest; then :
2521 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
2528 chmod +x $CONFIG_STATUS
2529 rm -fr confdefs* $ac_clean_files
2530 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1