3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 1.109
5 # Copyright (C) 1991, 1992, 1993, 1994 Free Software Foundation, Inc.
7 # This configure script is free software; you can redistribute it and/or
8 # modify it under the terms of the GNU General Public License as published
9 # by the Free Software Foundation; either version 2, or (at your option)
12 # This script is distributed in the hope that it will be useful, but
13 # WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
15 # Public License for more details.
17 # You should have received a copy of the GNU General Public License
18 # along with this program; if not, write to the Free Software
19 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23 bfd-assembler use BFD back end for writing object files"
24 # Save the original args to write them into config.status later.
27 # Omit some internal, obsolete, or unimplemented options to make the
29 ac_usage
="Usage: configure [options] [host]
30 Options: [defaults in brackets after descriptions]
32 --cache-file=FILE cache test results in FILE
33 --help print this message
34 --no-create do not create output files
35 --quiet, --silent do not print \`checking...' messages
36 --version print the version of autoconf that created configure
38 --exec-prefix=PREFIX install host dependent files in PREFIX [/usr/local]
39 --prefix=PREFIX install host independent files in PREFIX [/usr/local]
40 --srcdir=DIR find the sources in DIR [configure dir or ..]
42 --build=BUILD configure for building on BUILD [BUILD=HOST]
43 --host=HOST configure for HOST [guessed]
44 --target=TARGET configure for TARGET [TARGET=HOST]
45 Features and packages:
46 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
47 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
48 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
49 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
50 --x-includes=DIR X include files are in DIR
51 --x-libraries=DIR X library files are in DIR
52 --enable and --with options recognized:$ac_help"
54 # Initialize some variables set by options.
55 # The variables have the same names as the options, with
56 # dashes changed to underlines.
58 cache_file
=.
/config.cache
67 program_transform_name
=
75 # Initialize some other variables.
82 # If the previous option needs an argument, assign it.
83 if test -n "$ac_prev"; then
84 eval "$ac_prev=\$ac_option"
90 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
94 # Accept (but ignore some of) the important Cygnus configure
95 # options, so we can diagnose typos.
99 -build |
--build |
--buil |
--bui |
--bu |
--b)
101 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=* |
--b=*)
102 build
="$ac_optarg" ;;
104 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
105 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
106 ac_prev
=cache_file
;;
107 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
108 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
109 cache_file
="$ac_optarg" ;;
111 -disable-* |
--disable-*)
112 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
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: $ac_feature: invalid feature name" 1>&2; exit 1; }
117 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
118 eval "enable_${ac_feature}=no" ;;
120 -enable-* |
--enable-*)
121 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
122 # Reject names that are not valid shell variable names.
123 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
124 { echo "configure: $ac_feature: invalid feature name" 1>&2; exit 1; }
126 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
131 eval "enable_${ac_feature}='$ac_optarg'" ;;
133 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
134 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
135 |
--exec |
--exe |
--ex)
136 ac_prev
=exec_prefix
;;
137 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
138 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
139 |
--exec=* |
--exe=* |
--ex=*)
140 exec_prefix
="$ac_optarg" ;;
142 -gas |
--gas |
--ga |
--g)
143 # Obsolete; use --with-gas.
146 -help |
--help |
--hel |
--he)
152 -host |
--host |
--hos |
--ho)
154 -host=* |
--host=* |
--hos=* |
--ho=*)
158 # Obsolete; use --without-fp.
161 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
165 -norecursion |
--norecursion |
--norecursio |
--norecursi \
166 |
--norecurs |
--norecur |
--norecu |
--norec |
--nore |
--nor)
169 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
171 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
172 prefix
="$ac_optarg" ;;
174 # The program_*_given variables are so we can distinguish between
175 # unspecified and empty-string-valued options.
176 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
177 |
--program-pre |
--program-pr |
--program-p)
178 ac_prev
=program_prefix
;;
179 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
180 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
181 program_prefix_given
=yes
182 program_prefix
="$ac_optarg" ;;
184 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
185 |
--program-suf |
--program-su |
--program-s)
186 ac_prev
=program_suffix
;;
187 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
188 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
189 program_suffix_given
=yes
190 program_suffix
="$ac_optarg" ;;
192 -program-transform-name |
--program-transform-name \
193 |
--program-transform-nam |
--program-transform-na \
194 |
--program-transform-n |
--program-transform- \
195 |
--program-transform |
--program-transfor \
196 |
--program-transfo |
--program-transf \
197 |
--program-trans |
--program-tran \
198 |
--progr-tra |
--program-tr |
--program-t)
199 ac_prev
=program_transform_name
;;
200 -program-transform-name=* |
--program-transform-name=* \
201 |
--program-transform-nam=* |
--program-transform-na=* \
202 |
--program-transform-n=* |
--program-transform-=* \
203 |
--program-transform=* |
--program-transfor=* \
204 |
--program-transfo=* |
--program-transf=* \
205 |
--program-trans=* |
--program-tran=* \
206 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
207 # Double any backslashes or dollar signs in the argument
208 program_transform_name_given
=yes
209 program_transform_name
="${program_transform_name} -e `echo ${ac_optarg} | sed -e 's/\\\\/\\\\\\\\/g' -e 's/\\\$/$$/g'`"
212 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
213 |
-silent |
--silent |
--silen |
--sile |
--sil)
216 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
218 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
219 srcdir
="$ac_optarg" ;;
221 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
223 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
224 target
="$ac_optarg" ;;
226 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
229 -version |
--version |
--versio |
--versi |
--vers)
230 echo "configure generated by autoconf version 1.109"
234 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
235 # Reject names that are not valid shell variable names.
236 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
237 { echo "configure: $ac_package: invalid package name" 1>&2; exit 1; }
239 ac_package
=`echo $ac_package| sed 's/-/_/g'`
244 eval "with_${ac_package}='$ac_optarg'" ;;
246 -without-* |
--without-*)
247 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
248 # Reject names that are not valid shell variable names.
249 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
250 { echo "configure: $ac_package: invalid package name" 1>&2; exit 1; }
252 ac_package
=`echo $ac_package| sed 's/-/_/g'`
253 eval "with_${ac_package}=no" ;;
256 # Obsolete; use --with-x.
259 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
260 |
--x-incl |
--x-inc |
--x-in |
--x-i)
261 ac_prev
=x_includes
;;
262 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
263 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
264 x_includes
="$ac_optarg" ;;
266 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
267 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
268 ac_prev
=x_libraries
;;
269 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
270 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
271 x_libraries
="$ac_optarg" ;;
273 -*) { echo "configure: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
277 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
278 echo "configure: warning: $ac_option: invalid host type" 1>&2
280 if test "x$nonopt" != xNONE
; then
281 { echo "configure: can only configure for one host and one target at a time" 1>&2; exit 1; }
289 if test -n "$ac_prev"; then
290 { echo "configure: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
293 trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
294 trap 'rm -fr confdefs* $ac_clean_files' 0
296 # File descriptor usage:
297 # 0 unused; standard input
299 # 2 errors and warnings
300 # 3 unused; some systems may open it to /dev/tty
301 # 4 checking for... messages and results
302 # 5 compiler messages saved in config.log
303 if test "$silent" = yes; then
311 This file contains any messages produced by compilers while
312 running configure, to aid debugging if configure makes a mistake.
315 # Save the original args if we used an alternate arg parser.
316 ac_configure_temp
="${configure_args-$@}"
317 # Strip out --no-create and --norecursion so they do not pile up.
318 # Also quote any args containing spaces.
320 for ac_arg
in $ac_configure_temp; do
322 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
323 |
--no-cr |
--no-c) ;;
324 -norecursion |
--norecursion |
--norecursio |
--norecursi \
325 |
--norecurs |
--norecur |
--norecu |
--norec |
--nore |
--nor) ;;
326 *[" "]*) configure_args
="$configure_args '$ac_arg'" ;;
327 *) configure_args
="$configure_args $ac_arg" ;;
332 # Only set LANG and LC_ALL to C if already set.
333 # These must not be set unconditionally because not all systems understand
334 # e.g. LANG=C (notably SCO).
335 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
336 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
338 # confdefs.h avoids OS command line length limits that DEFS can exceed.
339 rm -rf conftest
* confdefs.h
340 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
343 # A filename unique to this package, relative to the directory that
344 # configure is in, which we can look for to find out if srcdir is correct.
347 # Find the source files, if location was not specified.
348 if test -z "$srcdir"; then
349 ac_srcdir_defaulted
=yes
350 # Try the directory containing this script, then its parent.
352 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
353 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
355 if test ! -r $srcdir/$ac_unique_file; then
359 ac_srcdir_defaulted
=no
361 if test ! -r $srcdir/$ac_unique_file; then
362 if test "$ac_srcdir_defaulted" = yes; then
363 { echo "configure: can not find sources in ${ac_confdir} or .." 1>&2; exit 1; }
365 { echo "configure: can not find sources in ${srcdir}" 1>&2; exit 1; }
369 # Prefer explicitly selected file to automatically selected ones.
370 if test ! -r "$CONFIG_SITE"; then
371 if test "x$prefix" != xNONE
; then
372 CONFIG_SITE
=$prefix/lib
/config.site
374 CONFIG_SITE
=/usr
/local
/lib
/config.site
376 # System dependent files override system independent ones.
377 if test "x$exec_prefix" != xNONE
&& test "x$exec_prefix" != "x$prefix"; then
378 CONFIG_SITE
="$CONFIG_SITE $exec_prefix/lib/config.site"
381 for ac_site_file
in $CONFIG_SITE; do
382 if test -r "$ac_site_file"; then
383 echo "loading site script $ac_site_file"
388 if test -r "$cache_file"; then
389 echo "loading cache $cache_file"
392 echo "creating cache $cache_file"
397 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
398 ac_cpp
='${CPP} $CPPFLAGS'
399 ac_compile
='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS conftest.${ac_ext} -o conftest $LIBS 1>&5 2>&5'
404 # Check whether --enable-bfd-assembler or --disable-bfd-assembler was given.
405 enableval
="$enable_bfd_assembler"
406 if test -n "$enableval"; then
407 case "${enableval}" in
408 yes) need_bfd
=yes user_bfd_gas
=yes ;;
409 no
) user_bfd_gas
=no
;;
410 *) { echo "configure: bad value ${enableval} given for bfd-assembler option" 1>&2; exit 1; } ;;
414 # Generate a header file -- gets more post-processing by Makefile later.
418 for ac_dir
in `cd $srcdir;pwd`/..
${srcdir}/`cd $srcdir;pwd`/..
; do
419 if test -f $ac_dir/install.sh
; then
420 ac_aux_dir
=$ac_dir; break
423 if test -z "$ac_aux_dir"; then
424 { echo "configure: can not find install.sh in `cd $srcdir;pwd`/.. ${srcdir}/`cd $srcdir;pwd`/.." 1>&2; exit 1; }
426 ac_config_guess
=${ac_aux_dir}/config.guess
427 ac_config_sub
=${ac_aux_dir}/config.sub
428 ac_configure
=${ac_aux_dir}/configure
# This should be Cygnus configure.
429 ac_install_sh
="${ac_aux_dir}/install.sh -c"
431 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
432 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
433 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
440 ac_n
= ac_c
='\c' ac_t
=
443 # Do some error checking and defaulting for the host and target type.
445 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
448 # 1. You are not allowed to specify --host, --target, and nonopt at the
450 # 2. Host defaults to nonopt.
451 # 3. If nonopt is not specified, then host defaults to the current host,
452 # as determined by config.guess.
453 # 4. Target defaults to nonopt.
454 # 5. If nonopt is not specified, then target defaults to host.
455 # 6. build defaults to empty (but implicitly to host).
457 # The aliases save the names the user supplied, while $host etc.
458 # will get canonicalized.
459 case $host---$target---$nonopt in
460 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
461 *) { echo "configure: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
464 # Make sure we can run config.sub.
465 if ${ac_config_sub} sun4
>/dev
/null
2>&1; then :
466 else { echo "configure: can not run ${ac_config_sub}" 1>&2; exit 1; }
469 echo $ac_n "checking host system type""... $ac_c" 1>&4
472 case "${host_alias}" in
476 if host_alias
=`${ac_config_guess}`; then :
477 else { echo "configure: can not guess host type; you must specify one" 1>&2; exit 1; }
479 *) host_alias
=$nonopt ;;
483 host=`${ac_config_sub} ${host_alias}`
484 host_cpu
=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
485 host_vendor
=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
486 host_os
=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
487 echo "$ac_t""$host" 1>&4
489 echo $ac_n "checking target system type""... $ac_c" 1>&4
492 case "${target_alias}" in
495 NONE
) target_alias
=$host_alias ;;
496 *) target_alias
=$nonopt ;;
500 target
=`${ac_config_sub} ${target_alias}`
501 target_cpu
=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
502 target_vendor
=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
503 target_os
=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
504 echo "$ac_t""$target" 1>&4
506 echo $ac_n "checking build system type""... $ac_c" 1>&4
509 case "${build_alias}" in
510 NONE
) build
= build_alias
= ;;
512 build
=`${ac_config_sub} ${build_alias}`
513 build_cpu
=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
514 build_vendor
=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
515 build_os
=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
518 echo "$ac_t""$build" 1>&4
521 if [ "${host_alias}" != "${target_alias}" ] ; then
522 if [ "${program_prefix_given}${program_suffix_given}${program_transform_name_given}" = "" ] ; then
523 program_prefix
=${target_alias}- ;
527 # Merge program_prefix and program_suffix onto program_transform_name
528 # Use a double $ so that make ignores it
529 if [ "${program_suffix}" != "" ] ; then
530 program_transform_name
="-e s,\$\$,${program_suffix}, ${program_transform_name}"
533 if [ "${program_prefix}" != "" ] ; then
534 program_transform_name
="-e s,^,${program_prefix}, ${program_transform_name}"
542 # check for architecture variants
543 case ${target_cpu} in
544 hppa
*) cpu_type
=hppa
;;
545 i
[45]86) cpu_type
=i386
;;
546 m680
[012346]0) cpu_type
=m68k
;;
547 m68008
) cpu_type
=m68k
;;
548 m683??
) cpu_type
=m68k
;;
549 m8
*) cpu_type
=m88k
;;
550 mips
*el
) cpu_type
=mips endian
=little
;;
551 mips
*) cpu_type
=mips endian
=big
;;
552 powerpc
*) cpu_type
=ppc
;;
553 rs6000
*) cpu_type
=ppc
;;
554 sparc64
) cpu_type
=sparc obj_format
=elf
cat >> confdefs.h
<<\EOF
558 sparclite
*) cpu_type
=sparc
;;
559 *) cpu_type
=${target_cpu} ;;
562 # do we need the opcodes library?
567 OPCODES_LIB
="../opcodes/libopcodes.a"
572 gas_target
=${cpu_type}
573 generic_target
=${cpu_type}-${target_vendor}-${target_os}
576 # assign object format
577 case ${generic_target} in
578 a29k-amd-udi
) obj_format
=coff gas_target
=ebmon29k
;;
579 a29k-amd-ebmon
) obj_format
=coff gas_target
=ebmon29k
;;
581 alpha-
*-netware*) obj_format
=ecoff
;;
582 alpha-
*-osf*) obj_format
=ecoff
;;
584 arm-
*-riscix*) obj_format
=aout bfd_gas
=yes ;;
586 hppa-
*-*elf
*) obj_format
=elf emulation
=hppa
;;
587 hppa-
*-osf*) obj_format
=som emulation
=hppa
;;
588 hppa-
*-hpux*) obj_format
=som emulation
=hppa
;;
589 hppa-
*-bsd*) obj_format
=som emulation
=hppa
;;
590 hppa-
*-hiux*) obj_format
=som emulation
=hppa
;;
592 h8300-
*-coff) obj_format
=coff
;;
594 i386-ibm-aix
*) obj_format
=coff gas_target
=i386coff
596 i386-
*-bsd*) obj_format
=aout emulation
=386bsd
;;
597 i386-
*-netbsd0.8
) obj_format
=aout emulation
=386bsd
;;
598 i386-
*-netbsd*) obj_format
=aout emulation
=netbsd
;;
599 i386-
*-linux*elf
*) obj_format
=elf emulation
=linux
;;
600 i386-
*-linux*coff
*) obj_format
=coff emulation
=linux
601 gas_target
=i386coff
;;
602 i386-
*-linux*) obj_format
=aout emulation
=linux bfd_gas
=preferred
;;
603 i386-
*-lynxos*) obj_format
=coff gas_target
=i386coff
605 i386-
*-sysv4* | i386-
*-solaris* | i386-
*-elf)
607 i386-
*-coff | i386-
*-sysv* | i386-
*-sco* | i386-
*-isc*)
608 obj_format
=coff gas_target
=i386coff
;;
609 i386-
*-vsta) obj_format
=aout
;;
610 i386-
*-go32) obj_format
=coff gas_target
=i386coff
;;
611 i386-
*-mach* | i386-
*-gnu*)
612 obj_format
=aout emulation
=mach bfd_gas
=yes ;;
614 i960-
*-bout) obj_format
=bout
;;
615 i960-
*-coff) obj_format
=coff emulation
=ic960 gas_target
=ic960coff
;;
616 i960-
*-nindy*) obj_format
=bout
;;
617 i960-
*-vxworks4*) obj_format
=bout
;;
618 i960-
*-vxworks5.0
) obj_format
=bout
;;
619 i960-
*-vxworks5.
*) obj_format
=coff emulation
=ic960 gas_target
=ic960coff
;;
620 i960-
*-vxworks*) obj_format
=bout
;;
622 m68k-wrs-vxworks | m68k-ericsson-ose | m68k-
*-sunos*)
623 obj_format
=aout emulation
=sun3
;;
624 m68k-motorola-sysv
) obj_format
=coff gas_target
=m68kcoff emulation
=delta
;;
625 m68k-bull-sysv3
*) obj_format
=coff gas_target
=m68kcoff emulation
=dpx2
;;
626 m68k-apollo-
*) obj_format
=coff gas_target
=apollo emulation
=apollo
;;
627 m68k-
*-coff | m68k-
*-sysv*)
628 obj_format
=coff gas_target
=m68kcoff
;;
629 m68k-
*-hpux) obj_format
=hp300 emulation
=hp300
;;
630 m68k-
*-lynxos*) obj_format
=coff gas_target
=m68kcoff
633 m88k-
*-coff*) obj_format
=coff gas_target
=m88kcoff
;;
635 # don't change emulation like *-*-bsd does
636 mips-
*-bsd*) bfd_gas
=yes obj_format
=aout gas_target
=mips-lit
;;
637 mips-
*-ultrix*) obj_format
=ecoff gas_target
=mips-lit
;;
638 mips-
*-ecoff*) obj_format
=ecoff
640 big
) gas_target
=mips-big
;;
641 *) gas_target
=mips-lit
;;
644 mips-
*-ecoff*) obj_format
=ecoff gas_target
=mips-big
;;
645 mips-
*-irix5*) obj_format
=elf gas_target
=mips-big
;;
646 mips-
*-irix*) obj_format
=ecoff gas_target
=mips-big
;;
647 mips-
*-riscos*) obj_format
=ecoff gas_target
=mips-big
;;
648 mips-
*-sysv*) obj_format
=ecoff gas_target
=mips-big
;;
649 mips-
*-elf*) obj_format
=elf
651 big
) gas_target
=mips-big
;;
652 *) gas_target
=mips-lit
;;
655 ppc-
*-aix*) obj_format
=coff bfd_gas
=yes ;;
656 ppc-
*-elf*) obj_format
=elf bfd_gas
=yes ;;
657 ppc-
*-netware*) obj_format
=elf emulation
=ppcnw
;;
658 ppc-
*-sysv4*) obj_format
=elf bfd_gas
=yes ;;
660 sh-
*-coff) obj_format
=coff
;;
662 ns32k-pc532-mach
*) obj_format
=aout emulation
=pc532 bfd_gas
=yes ;;
663 ns32k-pc532-netbsd
*) obj_format
=aout emulation
=netbsd532 bfd_gas
=yes ;;
665 sparc
*-*-sunos4*) obj_format
=aout emulation
=sun3 bfd_gas
=yes ;;
666 sparc
*-*-aout | sparc
*-*-vxworks)
667 obj_format
=aout bfd_gas
=yes ;;
668 sparc
*-*-coff) obj_format
=coff bfd_gas
=yes ;;
669 sparc
*-*-lynxos*) obj_format
=coff bfd_gas
=yes emulation
=lynx
;;
670 sparc
*-fujitsu-none) obj_format
=aout bfd_gas
=yes ;;
671 sparc
*-*-elf | sparc
*-*-solaris*)
674 vax-
*-bsd* | vax-
*-ultrix*)
676 vax-
*-vms) obj_format
=vms
;;
678 z8k-
*-coff | z8k-
*-sim)
681 *-*-aout |
*-*-scout)
686 obj_format
=aout emulation
=sun3
;;
687 *-*-generic) obj_format
=generic
;;
688 *-*-xray |
*-*-hms) obj_format
=coff
;;
689 *-*-sim) obj_format
=coff
;;
690 *-*-elf |
*-*-sysv4* |
*-*-solaris*)
691 echo "configure: warning: GAS support for ELF format is incomplete" 1>&2
692 obj_format
=elf dev
=yes ;;
693 *-*-vxworks) obj_format
=aout
;;
694 *-*-netware) obj_format
=elf
;;
697 # Assign floating point type. Most processors with FP support
698 # IEEE FP. On those that don't support FP at all, usually IEEE
700 case ${target_cpu} in
701 vax | tahoe
) atof
=${target_cpu} ;;
705 case "${obj_format}" in
706 "") { echo "configure: GAS does not know what format to use for target ${target}" 1>&2; exit 1; } ;;
710 if test ! -r ${srcdir}/config
/tc-
${cpu_type}.c
; then
711 { echo "configure: GAS does not support target CPU ${cpu_type}" 1>&2; exit 1; }
714 if test ! -r ${srcdir}/config
/obj-
${obj_format}.c
; then
715 { echo "configure: GAS does not have support for object file format ${obj_format}" 1>&2; exit 1; }
718 # and target makefile frag
720 target_frag
=${srcdir}/config
/${gas_target}.mt
723 case ${cpu_type}-${obj_format} in
725 # i386-aout) bfd_gas=preferred ;;
726 *-elf) bfd_gas
=yes ;;
727 *-ecoff) bfd_gas
=yes ;;
728 *-som) bfd_gas
=yes ;;
732 case ${user_bfd_gas}-${bfd_gas} in
734 # We didn't override user's choice.
737 echo "configure: warning: Use of BFD is required for ${target}; overriding config options." 1>&2
746 # User specified nothing.
750 case ${bfd_gas}-${cpu_type}-${obj_format} in
751 yes-
*-coff) need_bfd
=yes ;;
752 no-
*-coff) need_bfd
=yes
753 cat >> confdefs.h
<<\EOF
754 #define MANY_SEGMENTS 1
759 reject_dev_configs
=yes
761 case ${reject_dev_configs}-${dev} in
763 { echo "configure: GAS does not support the ${generic_target} configuration." 1>&2; exit 1; }
771 yes) cat >> confdefs.h
<<\EOF
772 #define BFD_ASSEMBLER 1
778 case "${need_bfd}" in
779 yes) BFDLIB
=..
/bfd
/libbfd.a
780 ALL_OBJ_DEPS
="$ALL_OBJ_DEPS ../bfd/bfd.h"
786 case "x${host_canon}" in
788 *) cat >> confdefs.h
<<\EOF
789 #define CROSS_COMPILE 1
794 cat >> confdefs.h
<<EOF
795 #define TARGET_ALIAS "${target_alias}"
798 cat >> confdefs.h
<<EOF
799 #define TARGET_CANONICAL "${target}"
802 cat >> confdefs.h
<<EOF
803 #define TARGET_CPU "${target_cpu}"
806 cat >> confdefs.h
<<EOF
807 #define TARGET_VENDOR "${target_vendor}"
810 cat >> confdefs.h
<<EOF
811 #define TARGET_OS "${target_os}"
817 # The IBM compiler mis-compiles some expressions used in gas.
818 # This will tell gas to work around this lossage.
819 cat >> confdefs.h
<<\EOF
820 #define IBM_COMPILER_SUX 1
824 # Using fopen(..., "w") for a binary file breaks under DOS.
825 cat >> confdefs.h
<<\EOF
826 #define WANT_FOPEN_BIN 1
831 echo $ac_n "checking for CC""... $ac_c" 1>&4
832 test -z "$CC" && CC
=`egrep '^CC *=' ../Makefile | tail -1 | sed 's/^CC *= *//'`
833 test -z "$CC" && CC
=cc
834 echo "$ac_t""setting CC to $CC" 1>&4
836 # Find out if we are using GNU C, under whatever name.
837 cat > conftest.c
<<EOF
842 ${CC-cc} -E conftest.c
> conftest.out
2>&1
843 if egrep yes conftest.out
>/dev
/null
2>&1; then
850 # Make sure to not get an incompatible install:
851 # SysV /etc/install, /usr/sbin/install
852 # SunOS /usr/etc/install
855 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
856 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
857 # ./install, which can be erroneously created by make from ./install.sh.
858 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&4
859 if test -z "${INSTALL}"; then
860 if eval "test \"`echo '${'ac_cv_path_install'+set}'`\" = set"; then
861 echo $ac_n "(cached) $ac_c" 1>&4
863 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
864 for ac_dir
in $PATH; do
866 ''|.|
/etc|
/usr
/sbin|
/usr
/etc|
/sbin|
/usr
/afsws
/bin|
/usr
/ucb
) ;;
868 # OSF1 and SCO ODT 3.0 have their own names for install.
869 for ac_prog
in ginstall installbsd scoinst
install; do
870 if test -f $ac_dir/$ac_prog; then
871 if test $ac_prog = install &&
872 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
873 # AIX install. It has an incompatible calling convention.
874 # OSF/1 installbsd also uses dspmsg, but is usable.
877 ac_cv_path_install
="$ac_dir/$ac_prog -c"
886 # As a last resort, use the slow shell script.
887 test -z "$ac_cv_path_install" && ac_cv_path_install
="$ac_install_sh"
889 INSTALL
="$ac_cv_path_install"
891 echo "$ac_t""$INSTALL" 1>&4
893 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
894 # It thinks the first close brace ends the variable substitution.
895 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
897 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
900 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&4
901 # On Suns, sometimes $CPP names a directory.
902 if test -n "$CPP" && test -d "$CPP"; then
905 if test -z "$CPP"; then
906 if eval "test \"`echo '${'ac_cv_prog_CPP'+set}'`\" = set"; then
907 echo $ac_n "(cached) $ac_c" 1>&4
909 # This must be in double quotes, not single quotes, because CPP may get
910 # substituted into the Makefile and "${CC-cc}" will confuse make.
912 # On the NeXT, cc -E runs the code through the compiler's parser,
913 # not just through cpp.
914 cat > conftest.
${ac_ext} <<EOF
915 #line 914 "configure"
916 #include "confdefs.h"
920 ac_err
=`eval "$ac_cpp conftest.${ac_ext} >/dev/null" 2>&1`
921 if test -z "$ac_err"; then
926 CPP
="${CC-cc} -E -traditional-cpp"
927 cat > conftest.
${ac_ext} <<EOF
928 #line 927 "configure"
929 #include "confdefs.h"
933 ac_err
=`eval "$ac_cpp conftest.${ac_ext} >/dev/null" 2>&1`
934 if test -z "$ac_err"; then
944 ac_cv_prog_CPP
="$CPP"
947 CPP
="$ac_cv_prog_CPP"
948 echo "$ac_t""$CPP" 1>&4
950 for ac_hdr
in string.h stdlib.h memory.h
strings.h unistd.h stdarg.h varargs.h errno.h sys
/types.h
952 ac_safe
=`echo "${ac_hdr}" | tr './' '__'`
953 echo $ac_n "checking for ${ac_hdr}""... $ac_c" 1>&4
954 if eval "test \"`echo '${'ac_cv_header_$ac_safe'+set}'`\" = set"; then
955 echo $ac_n "(cached) $ac_c" 1>&4
957 cat > conftest.
${ac_ext} <<EOF
958 #line 957 "configure"
959 #include "confdefs.h"
962 ac_err
=`eval "$ac_cpp conftest.${ac_ext} >/dev/null" 2>&1`
963 if test -z "$ac_err"; then
965 eval "ac_cv_header_$ac_safe=yes"
969 eval "ac_cv_header_$ac_safe=no"
973 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
974 echo "$ac_t""yes" 1>&4
975 ac_tr_hdr
=HAVE_
`echo $ac_hdr | tr '[a-z]./' '[A-Z]__'`
976 cat >> confdefs.h
<<EOF
977 #define ${ac_tr_hdr} 1
981 echo "$ac_t""no" 1>&4
986 # If we cannot run a trivial program, we must be cross compiling.
987 echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&4
988 if eval "test \"`echo '${'ac_cv_c_cross'+set}'`\" = set"; then
989 echo $ac_n "(cached) $ac_c" 1>&4
991 if test "$cross_compiling" = yes; then
992 { echo "configure: can not run test program while cross compiling" 1>&2; exit 1; }
994 cat > conftest.
${ac_ext} <<EOF
995 #line 994 "configure"
996 #include "confdefs.h"
1000 if test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
; then
1008 cross_compiling
=$ac_cv_c_cross
1009 echo "$ac_t""$ac_cv_c_cross" 1>&4
1011 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1012 # for constant arguments. Useless!
1013 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&4
1014 if eval "test \"`echo '${'ac_cv_header_alloca_h'+set}'`\" = set"; then
1015 echo $ac_n "(cached) $ac_c" 1>&4
1017 cat > conftest.
${ac_ext} <<EOF
1018 #line 1017 "configure"
1019 #include "confdefs.h"
1021 int main() { return 0; }
1023 char *p = alloca(2 * sizeof(int));
1026 if eval $ac_compile; then
1028 ac_cv_header_alloca_h
=yes
1031 ac_cv_header_alloca_h
=no
1036 echo "$ac_t""$ac_cv_header_alloca_h" 1>&4
1037 if test $ac_cv_header_alloca_h = yes; then
1038 cat >> confdefs.h
<<\EOF
1039 #define HAVE_ALLOCA_H 1
1044 echo $ac_n "checking for alloca""... $ac_c" 1>&4
1045 if eval "test \"`echo '${'ac_cv_func_alloca'+set}'`\" = set"; then
1046 echo $ac_n "(cached) $ac_c" 1>&4
1048 cat > conftest.
${ac_ext} <<EOF
1049 #line 1048 "configure"
1050 #include "confdefs.h"
1053 # define alloca __builtin_alloca
1056 # include <alloca.h>
1061 # ifndef alloca /* predefined by HP cc +Olibcalls */
1068 int main() { return 0; }
1070 char *p = (char *) alloca(1);
1073 if eval $ac_compile; then
1075 ac_cv_func_alloca
=yes
1078 ac_cv_func_alloca
=no
1083 echo "$ac_t""$ac_cv_func_alloca" 1>&4
1084 if test $ac_cv_func_alloca = yes; then
1085 cat >> confdefs.h
<<\EOF
1086 #define HAVE_ALLOCA 1
1091 if test $ac_cv_func_alloca = no
; then
1092 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1093 # that cause trouble. Some versions do not even contain alloca or
1094 # contain a buggy version. If you still want to use their alloca,
1095 # use ar to extract alloca.o from them instead of compiling alloca.c.
1097 cat >> confdefs.h
<<\EOF
1102 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&4
1103 if eval "test \"`echo '${'ac_cv_os_cray'+set}'`\" = set"; then
1104 echo $ac_n "(cached) $ac_c" 1>&4
1106 cat > conftest.
${ac_ext} <<EOF
1107 #line 1106 "configure"
1108 #include "confdefs.h"
1109 #if defined(CRAY) && ! defined(CRAY2)
1116 if eval "$ac_cpp conftest.${ac_ext}" 2>&5 |
1117 egrep "webecray" >/dev
/null
2>&1; then
1127 echo "$ac_t""$ac_cv_os_cray" 1>&4
1128 if test $ac_cv_os_cray = yes; then
1129 echo $ac_n "checking for _getb67""... $ac_c" 1>&4
1130 if eval "test \"`echo '${'ac_cv_func__getb67'+set}'`\" = set"; then
1131 echo $ac_n "(cached) $ac_c" 1>&4
1133 cat > conftest.
${ac_ext} <<EOF
1134 #line 1133 "configure"
1135 #include "confdefs.h"
1136 #include <ctype.h> /* Arbitrary system header to define __stub macros. */
1137 int main() { return 0; }
1140 /* The GNU C library defines this for functions which it implements
1141 to always fail with ENOSYS. Some functions are actually named
1142 something starting with __ and the normal name is an alias. */
1143 #if defined (__stub__getb67) || defined (__stub____getb67)
1146 /* Override any gcc2 internal prototype to avoid an error. */
1147 char _getb67(); _getb67();
1152 if eval $ac_compile; then
1154 eval "ac_cv_func__getb67=yes"
1157 eval "ac_cv_func__getb67=no"
1162 if eval "test \"`echo '$ac_cv_func_'_getb67`\" = yes"; then
1163 echo "$ac_t""yes" 1>&4
1164 cat >> confdefs.h
<<\EOF
1165 #define CRAY_STACKSEG_END _getb67
1169 echo "$ac_t""no" 1>&4
1170 echo $ac_n "checking for GETB67""... $ac_c" 1>&4
1171 if eval "test \"`echo '${'ac_cv_func_GETB67'+set}'`\" = set"; then
1172 echo $ac_n "(cached) $ac_c" 1>&4
1174 cat > conftest.
${ac_ext} <<EOF
1175 #line 1174 "configure"
1176 #include "confdefs.h"
1177 #include <ctype.h> /* Arbitrary system header to define __stub macros. */
1178 int main() { return 0; }
1181 /* The GNU C library defines this for functions which it implements
1182 to always fail with ENOSYS. Some functions are actually named
1183 something starting with __ and the normal name is an alias. */
1184 #if defined (__stub_GETB67) || defined (__stub___GETB67)
1187 /* Override any gcc2 internal prototype to avoid an error. */
1188 char GETB67(); GETB67();
1193 if eval $ac_compile; then
1195 eval "ac_cv_func_GETB67=yes"
1198 eval "ac_cv_func_GETB67=no"
1203 if eval "test \"`echo '$ac_cv_func_'GETB67`\" = yes"; then
1204 echo "$ac_t""yes" 1>&4
1205 cat >> confdefs.h
<<\EOF
1206 #define CRAY_STACKSEG_END GETB67
1210 echo "$ac_t""no" 1>&4
1211 echo $ac_n "checking for getb67""... $ac_c" 1>&4
1212 if eval "test \"`echo '${'ac_cv_func_getb67'+set}'`\" = set"; then
1213 echo $ac_n "(cached) $ac_c" 1>&4
1215 cat > conftest.
${ac_ext} <<EOF
1216 #line 1215 "configure"
1217 #include "confdefs.h"
1218 #include <ctype.h> /* Arbitrary system header to define __stub macros. */
1219 int main() { return 0; }
1222 /* The GNU C library defines this for functions which it implements
1223 to always fail with ENOSYS. Some functions are actually named
1224 something starting with __ and the normal name is an alias. */
1225 #if defined (__stub_getb67) || defined (__stub___getb67)
1228 /* Override any gcc2 internal prototype to avoid an error. */
1229 char getb67(); getb67();
1234 if eval $ac_compile; then
1236 eval "ac_cv_func_getb67=yes"
1239 eval "ac_cv_func_getb67=no"
1244 if eval "test \"`echo '$ac_cv_func_'getb67`\" = yes"; then
1245 echo "$ac_t""yes" 1>&4
1246 cat >> confdefs.h
<<\EOF
1247 #define CRAY_STACKSEG_END getb67
1251 echo "$ac_t""no" 1>&4
1260 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&4
1261 if eval "test \"`echo '${'ac_cv_c_stack_direction'+set}'`\" = set"; then
1262 echo $ac_n "(cached) $ac_c" 1>&4
1264 if test "$cross_compiling" = yes; then
1265 echo "configure: warning: using default for cross-compiling" 1>&2
1266 ac_cv_c_stack_direction
=0
1269 cat > conftest.
${ac_ext} <<EOF
1270 #line 1269 "configure"
1271 #include "confdefs.h"
1272 find_stack_direction ()
1274 static char *addr = 0;
1279 return find_stack_direction ();
1282 return (&dummy > addr) ? 1 : -1;
1286 exit (find_stack_direction() < 0);
1290 if test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
; then
1291 ac_cv_c_stack_direction
=1
1293 ac_cv_c_stack_direction
=-1
1298 echo "$ac_t""$ac_cv_c_stack_direction" 1>&4
1299 cat >> confdefs.h
<<EOF
1300 #define STACK_DIRECTION $ac_cv_c_stack_direction
1305 echo $ac_n "checking for inline""... $ac_c" 1>&4
1306 if eval "test \"`echo '${'ac_cv_c_inline'+set}'`\" = set"; then
1307 echo $ac_n "(cached) $ac_c" 1>&4
1309 if test "$GCC" = yes; then
1310 cat > conftest.
${ac_ext} <<EOF
1311 #line 1310 "configure"
1312 #include "confdefs.h"
1314 int main() { return 0; }
1319 if eval $ac_compile; then
1332 echo "$ac_t""$ac_cv_c_inline" 1>&4
1333 if test $ac_cv_c_inline = no
; then
1334 cat >> confdefs.h
<<\EOF
1335 #define inline __inline
1341 # Some non-ANSI preprocessors botch requoting inside strings. That's bad
1342 # enough, but on some of those systems, the assert macro relies on requoting
1344 echo $ac_n "checking for working assert macro""... $ac_c" 1>&4
1345 if eval "test \"`echo '${'gas_cv_assert_ok'+set}'`\" = set"; then
1346 echo $ac_n "(cached) $ac_c" 1>&4
1348 cat > conftest.
${ac_ext} <<EOF
1349 #line 1348 "configure"
1350 #include "confdefs.h"
1353 int main() { return 0; }
1356 /* check for requoting problems */
1357 static int a, b, c, d;
1359 assert (!strcmp(s, "foo bar baz quux"));
1360 /* check for newline handling */
1366 if eval $ac_compile; then
1368 gas_cv_assert_ok
=yes
1376 echo "$ac_t""$gas_cv_assert_ok" 1>&4
1377 test $gas_cv_assert_ok = yes ||
cat >> confdefs.h
<<\EOF
1378 #define BROKEN_ASSERT 1
1382 # On some systems, the system header files may not declare malloc, realloc,
1383 # and free. There are places where gas needs these functions to have been
1384 # declared -- such as when taking their addresses.
1385 echo $ac_n "checking whether a malloc declaration is required""... $ac_c" 1>&4
1386 if eval "test \"`echo '${'gas_cv_malloc_decl_needed'+set}'`\" = set"; then
1387 echo $ac_n "(cached) $ac_c" 1>&4
1389 cat > conftest.
${ac_ext} <<EOF
1390 #line 1389 "configure"
1391 #include "confdefs.h"
1393 #ifdef HAVE_MEMORY_H
1396 #ifdef HAVE_STRING_H
1399 #ifdef HAVE_STDLIB_H
1402 #ifdef HAVE_UNISTD_H
1406 int main() { return 0; }
1410 f = (char *(*)()) malloc;
1414 if eval $ac_compile; then
1416 gas_cv_malloc_decl_needed
=no
1419 gas_cv_malloc_decl_needed
=yes
1424 echo "$ac_t""$gas_cv_malloc_decl_needed" 1>&4
1425 test $gas_cv_malloc_decl_needed = no ||
cat >> confdefs.h
<<\EOF
1426 #define NEED_MALLOC_DECLARATION 1
1430 echo $ac_n "checking whether a free declaration is required""... $ac_c" 1>&4
1431 if eval "test \"`echo '${'gas_cv_free_decl_needed'+set}'`\" = set"; then
1432 echo $ac_n "(cached) $ac_c" 1>&4
1434 cat > conftest.
${ac_ext} <<EOF
1435 #line 1434 "configure"
1436 #include "confdefs.h"
1438 #ifdef HAVE_MEMORY_H
1441 #ifdef HAVE_STRING_H
1444 #ifdef HAVE_STDLIB_H
1447 #ifdef HAVE_UNISTD_H
1451 int main() { return 0; }
1455 f = (int (*)()) free;
1459 if eval $ac_compile; then
1461 gas_cv_free_decl_needed
=no
1464 gas_cv_free_decl_needed
=yes
1470 echo "$ac_t""$gas_cv_free_decl_needed" 1>&4
1471 test $gas_cv_free_decl_needed = no ||
cat >> confdefs.h
<<\EOF
1472 #define NEED_FREE_DECLARATION 1
1476 # Does errno.h declare errno, or do we have to add a separate declaration
1478 echo $ac_n "checking whether an errno declaration is required""... $ac_c" 1>&4
1479 if eval "test \"`echo '${'gas_cv_errno_decl_needed'+set}'`\" = set"; then
1480 echo $ac_n "(cached) $ac_c" 1>&4
1482 cat > conftest.
${ac_ext} <<EOF
1483 #line 1482 "configure"
1484 #include "confdefs.h"
1490 int main() { return 0; }
1498 if eval $ac_compile; then
1500 gas_cv_errno_decl_needed
=no
1503 gas_cv_errno_decl_needed
=yes
1509 echo "$ac_t""$gas_cv_errno_decl_needed" 1>&4
1510 test $gas_cv_errno_decl_needed = no ||
cat >> confdefs.h
<<\EOF
1511 #define NEED_ERRNO_DECLARATION 1
1518 if test -w $cache_file; then
1519 echo "updating cache $cache_file"
1520 cat > $cache_file <<\EOF
1521 # This file is a shell script that caches the results of configure
1522 # tests run on this system so they can be shared between configure
1523 # scripts and configure runs. It is not useful on other systems.
1524 # If its contents are invalid for some reason, you may delete or edit it.
1526 # By default, configure uses ./config.cache as the cache file,
1527 # creating it if it does not exist already. You can give configure
1528 # the --cache-file=FILE option to use a different cache file; that is
1529 # what configure does when it calls configure scripts in
1530 # subdirectories, so they share the cache.
1531 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1532 # config.status only pays attention to the cache file if you give it the
1533 # --recheck option to rerun configure.
1535 # Ultrix sh set writes to stderr and can't be redirected directly.
1536 (set) 2>&1 |
sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1-'\2'}/p" >> $cache_file
1538 echo "not updating unwritable cache $cache_file"
1542 test "x$prefix" = xNONE
&& prefix
=/usr
/local
1543 # Let make expand exec_prefix.
1544 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
1546 # Any assignment to VPATH causes Sun make to only execute
1547 # the first set of double-colon rules, so remove it if not needed.
1548 # If there is a colon in the path, we need to keep it.
1549 if test "x$srcdir" = x.
; then
1550 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
1553 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1555 DEFS
=-DHAVE_CONFIG_H
1557 # Without the "./", some shells look in PATH for config.status.
1558 : ${CONFIG_STATUS=./config.status}
1560 echo creating
${CONFIG_STATUS}
1561 rm -f ${CONFIG_STATUS}
1562 cat > ${CONFIG_STATUS} <<EOF
1564 # Generated automatically by configure.
1565 # Run this file to recreate the current configuration.
1566 # This directory was configured as follows,
1567 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1569 # $0 $configure_args
1571 # Compiler output produced by configure, useful for debugging
1572 # configure, is in ./config.log if it exists.
1574 ac_cs_usage="Usage: ${CONFIG_STATUS} [--recheck] [--version] [--help]"
1577 case "\$ac_option" in
1578 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1579 echo running \${CONFIG_SHELL-/bin/sh} $0 $configure_args --no-create --norecursion
1580 exec \${CONFIG_SHELL-/bin/sh} $0 $configure_args --no-create --norecursion ;;
1581 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1582 echo "${CONFIG_STATUS} generated by autoconf version 1.109"
1584 -help | --help | --hel | --he | --h)
1585 echo "\$ac_cs_usage"; exit 0 ;;
1586 *) echo "\$ac_cs_usage"; exit 1 ;;
1590 ac_given_srcdir=$srcdir
1591 ac_given_INSTALL="$INSTALL"
1593 trap 'rm -fr doc/Makefile Makefile conf conftest*; exit 1' 1 2 15
1595 # Protect against being on the right side of a sed subst in config.status.
1596 sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g;
1597 s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
1601 s%@prefix@%$prefix%g
1602 s%@exec_prefix@%$exec_prefix%g
1604 s%@CFLAGS@%$CFLAGS%g
1605 s%@CXXFLAGS@%$CXXFLAGS%g
1606 s%@CPPFLAGS@%$CPPFLAGS%g
1607 s%@LDFLAGS@%$LDFLAGS%g
1609 s%@host_alias@%$host_alias%g
1610 s%@host_cpu@%$host_cpu%g
1611 s%@host_vendor@%$host_vendor%g
1612 s%@host_os@%$host_os%g
1613 s%@target@%$target%g
1614 s%@target_alias@%$target_alias%g
1615 s%@target_cpu@%$target_cpu%g
1616 s%@target_vendor@%$target_vendor%g
1617 s%@target_os@%$target_os%g
1619 s%@build_alias@%$build_alias%g
1620 s%@build_cpu@%$build_cpu%g
1621 s%@build_vendor@%$build_vendor%g
1622 s%@build_os@%$build_os%g
1623 s%@program_prefix@%$program_prefix%g
1624 s%@program_suffix@%$program_suffix%g
1625 s%@program_transform_name@%$program_transform_name%g
1626 s%@OPCODES_LIB@%$OPCODES_LIB%g
1627 /@target_frag@/r $target_frag
1629 s%@cpu_type@%$cpu_type%g
1630 s%@obj_format@%$obj_format%g
1631 s%@emulation@%$emulation%g
1633 s%@BFDLIB@%$BFDLIB%g
1634 s%@ALL_OBJ_DEPS@%$ALL_OBJ_DEPS%g
1636 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1637 s%@INSTALL_DATA@%$INSTALL_DATA%g
1639 s%@ALLOCA@%$ALLOCA%g
1640 s%@subdirs@%$subdirs%g
1644 cat >> ${CONFIG_STATUS} <<\EOF
1646 CONFIG_FILES
=${CONFIG_FILES-"doc/Makefile Makefile"}
1647 for ac_file
in ..
${CONFIG_FILES}; do if test "x$ac_file" != x..
; then
1648 # Support "outfile[:infile]", defaulting infile="outfile.in".
1650 *:*) ac_file_in
=`echo "$ac_file"|sed 's%.*:%%'`
1651 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
1652 *) ac_file_in
="${ac_file}.in" ;;
1655 # Adjust relative srcdir, etc. for subdirectories.
1657 # Remove last slash and all that follows it. Not all systems have dirname.
1658 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1659 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
1660 # The file is in a subdirectory.
1661 test ! -d "$ac_dir" && mkdir
"$ac_dir"
1662 ac_dir_suffix
="/$ac_dir"
1663 # A "../" for each directory in $ac_dir_suffix.
1664 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1666 ac_dir_suffix
= ac_dots
=
1669 case "$ac_given_srcdir" in
1671 if test -z "$ac_dots"; then top_srcdir
=.
1672 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1673 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
1675 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1676 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
1679 case "$ac_given_INSTALL" in
1680 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
1681 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
1683 echo creating
"$ac_file"
1685 comment_str
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1687 *.c |
*.h |
*.C |
*.cc |
*.cpp |
*.hpp |
*.m
)
1689 /* $comment_str */" ;;
1690 * ) # Add the comment on the second line of scripts, first line of others.
1706 s%@srcdir@%$srcdir%g
1707 s%@top_srcdir@%$top_srcdir%g
1708 s%@INSTALL@%$INSTALL%g
1709 " -f conftest.subs
$ac_given_srcdir/$ac_file_in > $ac_file
1713 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1714 # NAME is the cpp macro being defined and VALUE is the value it is being given.
1716 # ac_d sets the value in "#define NAME VALUE" lines.
1717 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
1718 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
1721 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1722 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1723 ac_uB
='\([ ]\)%\1#\2define\3'
1726 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1727 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1728 ac_eB
='$%\1#\2define\3'
1732 CONFIG_HEADERS
=${CONFIG_HEADERS-"conf"}
1733 for ac_file
in ..
${CONFIG_HEADERS}; do if test "x$ac_file" != x..
; then
1734 # Support "outfile[:infile]", defaulting infile="outfile.in".
1736 *:*) ac_file_in
=`echo "$ac_file"|sed 's%.*:%%'`
1737 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
1738 *) ac_file_in
="${ac_file}.in" ;;
1741 echo creating
$ac_file
1743 rm -f conftest.frag conftest.
in conftest.out
1744 cp $ac_given_srcdir/$ac_file_in conftest.
in
1748 # Transform confdefs.h into a sed script conftest.vals that substitutes
1749 # the proper values into config.h.in to produce config.h. And first:
1750 # Protect against being on the right side of a sed subst in config.status.
1751 # Protect against being in an unquoted here document in config.status.
1753 cat > conftest.hdr
<<\EOF
1756 s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
1760 sed -n -f conftest.hdr confdefs.h > conftest.vals
1763 # This sed command replaces #undef with comments. This is necessary, for
1764 # example, in the case of _POSIX_SOURCE, which is predefined and required
1765 # on some systems where configure will not decide to define it.
1766 cat >> conftest.vals <<\EOF
1767 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
1770 # Break up conftest.vals because some shells have a limit on
1771 # the size of here documents, and old seds have small limits too.
1772 # Maximum number of lines to put in a single here document.
1773 ac_max_here_lines=12
1778 ac_lines=`grep -c . conftest.vals
`
1779 # grep -c gives empty output for an empty file on some AIX systems.
1780 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
1781 # Write a limited-size here document to conftest.frag.
1782 echo ' cat > conftest.frag <<CEOF' >> ${CONFIG_STATUS}
1783 sed ${ac_max_here_lines}q conftest.vals >> ${CONFIG_STATUS}
1785 sed -f conftest.frag conftest.in > conftest.out
1787 mv conftest.out conftest.in
1788 ' >> ${CONFIG_STATUS}
1789 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
1791 mv conftest.tail conftest.vals
1795 # Now back to your regularly scheduled config.status.
1796 cat >> ${CONFIG_STATUS} <<\EOF
1797 rm -f conftest.frag conftest.h
1798 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
1799 cat conftest.in >> conftest.h
1801 if cmp -s $ac_file conftest.h 2>/dev/null; then
1802 echo "$ac_file is unchanged"
1806 mv conftest.h $ac_file
1812 cat >> ${CONFIG_STATUS} <<EOF
1813 ac_links="targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c"
1814 ac_files="config/tc-${cpu_type}.c config/tc-${cpu_type}.h \
1815 config/obj-${obj_format}.h config/obj-${obj_format}.c \
1816 config/te-${emulation}.h config/atof-${atof}.c"
1819 cat >> ${CONFIG_STATUS} <<\EOF
1820 while test -n "${ac_files}"; do
1821 set ${ac_links}; ac_link=$1; shift; ac_links=$*
1822 set ${ac_files}; ac_file=$1; shift; ac_files=$*
1824 echo "linking ${ac_link} to ${srcdir}/${ac_file}"
1826 if test ! -r ${srcdir}/${ac_file}; then
1827 { echo "configure: ${srcdir}/${ac_file}: File not found" 1>&2; exit 1; }
1830 # Make a symlink if possible; otherwise try a hard link.
1831 if ln -s ${srcdir}/${ac_file} ${ac_link} 2>/dev/null ||
1832 ln ${srcdir}/${ac_file} ${ac_link}; then :
1834 { echo "configure: can not link ${ac_link} to ${srcdir}/${ac_file}" 1>&2; exit 1; }
1840 chmod +x ${CONFIG_STATUS}
1841 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} ${CONFIG_STATUS}
1843 if test "${norecursion}" != yes; then
1845 # Remove --cache-file and --srcdir arguments so they do not pile up.
1846 ac_sub_configure_args=
1848 for ac_arg in $configure_args; do
1849 if test -n "$ac_prev"; then
1854 -cache-file | --cache-file | --cache-fil | --cache-fi \
1855 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1856 ac_prev=cache_file ;;
1857 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1858 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1860 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1862 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1864 *[" "]*) ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
1865 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
1869 for ac_config_dir in testsuite; do
1871 # Do not complain, so a configure script can configure whichever
1872 # parts of a large source tree are present.
1873 if test ! -d ${srcdir}/${ac_config_dir}; then
1877 echo configuring in ${ac_config_dir}
1882 if test -d ./${ac_config_dir} || mkdir ./${ac_config_dir}; then :;
1884 { echo "configure: can not create `pwd`/${ac_config_dir}" 1>&2; exit 1; }
1893 .) # No --srcdir option. We are building in place.
1894 ac_sub_srcdir=${srcdir} ;;
1895 /*) # Absolute path.
1896 ac_sub_srcdir=${srcdir}/${ac_config_dir} ;;
1898 ac_sub_srcdir=../${srcdir}/${ac_config_dir} ;;
1901 # Check for guested configure; otherwise get Cygnus style configure.
1902 if test -f ${ac_sub_srcdir}/configure; then
1903 ac_sub_configure=${ac_sub_srcdir}/configure
1904 elif test -f ${ac_sub_srcdir}/configure.in; then
1905 ac_sub_configure=${ac_configure}
1907 echo "configure: warning: no configuration information is in ${ac_config_dir}" 1>&2
1911 # The recursion is here.
1912 if test -n "${ac_sub_configure}"; then
1914 # Make the cache file name correct relative to the subdirectory.
1915 # A "../" for each directory in /${ac_config_dir}.
1916 ac_dots=`echo /${ac_config_dir}|
sed 's%/[^/]*%../%g'`
1917 case "$cache_file" in
1918 /*) ac_sub_cache_file=$cache_file ;;
1920 ac_sub_cache_file="$ac_dots$cache_file" ;;
1923 echo "running ${CONFIG_SHELL-/bin/sh} ${ac_sub_configure} ${ac_sub_configure_args} --cache-file=$ac_sub_cache_file --srcdir=${ac_sub_srcdir}"
1924 if ${CONFIG_SHELL-/bin/sh} ${ac_sub_configure} ${ac_sub_configure_args} --cache-file=$ac_sub_cache_file --srcdir=${ac_sub_srcdir}
1927 { echo "configure: ${ac_sub_configure} failed for ${ac_config_dir}" 1>&2; exit 1; }