1 # This file is configure.in
3 # Copyright (C) 1987-1992 Free Software Foundation, Inc.
5 # This file is part of GAS, the GNU Assembler.
7 # GAS is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 2, or (at your option)
12 # GAS is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
17 # You should have received a copy of the GNU General Public License
18 # along with GAS; see the file COPYING. If not, write to
19 # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
22 # This file was written, and is maintained by K. Richard Pixley
25 # This file is a shell script that supplies the information necessary
26 # to tailor a template configure script into the configure script
27 # appropriate for this directory. For more information, check any
28 # existing configure script.
40 a29k-*-* | rs6000-*-* | vax-*-*)
44 *) gas_host=${host_cpu} ;;
71 *-*-ansi | *-*-ultrix | *-*-hpux | *-*-sysv*)
79 case ${with_bfd_assembler} in
81 echo "*** Warning: GAS BFD configuration option not yet supported" 1>&2
88 echo "*** Bad value \"${with_bfd_assembler}\" for --with_bfd_assembler option" 1>&2
96 cpu_type=${target_cpu}
98 # check for architecture variants
100 sparclite*) cpu_type=sparc ;;
101 sparc64) cpu_type=sparc obj_format=aout ;;
102 m680[01234]0) cpu_type=m68k ;;
103 m683??) cpu_type=m68k ;;
106 gas_target=${cpu_type}
108 # assign object format
134 i[34]86-*-coff | i[34]86-*-sysv* | i[34]86-*-sco* | i[34]86-*-isc*)
153 m68k-ericsson-[Oo][Ss][Ee])
163 # don't change emulation like *-*-bsd does
173 mips-*-irix* | mips-*-ecoff)
178 sparclite*-fujitsu-none)
181 *-*-aout | *-*-scout | *-*-linux)
184 *-*-bout* | *-*-nindy*)
187 *-*-bsd* | *-*-sunos*)
206 *-*-coff* | *-sysv* | *-*-sco*)
208 case ${target_vendor} in
209 bull) emulation=dpx2 ;;
210 sun) emulation=sun3 ;;
219 *-*-elf | *-*-solaris*)
223 echo "*** warning: gas ${target_os} configuration implies" 1>&2
224 echo " (unsupported) --with-bfd-assembler option" 1>&2
235 # assign floating point type
236 case ${target_cpu} in
243 # and target makefile frag
245 target_makefile_frag=config/${gas_target}.mt
247 files="config/ho-${gas_host}.h config/tc-${cpu_type}.c \
248 config/tc-${cpu_type}.h config/te-${emulation}.h \
249 config/obj-${obj_format}.h config/obj-${obj_format}.c \
250 config/atof-${atof}.c"
252 links="host.h targ-cpu.c targ-cpu.h targ-env.h obj-format.h obj-format.c atof-targ.c"
258 echo BFDDEF=-DBFD_ASSEMBLER >> Makefile
267 echo BFDLIB=../bfd/libbfd.a >> Makefile
273 # end of gas/configure.in