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.
33 configdirs="doc testsuite"
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 ;;
104 i486) cpu_type=i386 ;;
107 gas_target=${cpu_type}
109 generic_target=${cpu_type}-${target_vendor}-${target_os}
111 # assign object format
112 case ${generic_target} in
137 i386-*-coff | i386-*-sysv* | i386-*-sco* | i386-*-isc*)
156 m68k-ericsson-[Oo][Ss][Ee])
166 # don't change emulation like *-*-bsd does
176 mips-*-irix* | mips-*-ecoff)
181 sparclite*-fujitsu-none)
184 *-*-aout | *-*-scout | *-*-linux)
187 *-*-bout* | *-*-nindy*)
190 *-*-bsd* | *-*-sunos*)
209 *-*-coff* | *-sysv* | *-*-sco*)
211 case ${target_vendor} in
212 bull) emulation=dpx2 ;;
213 sun) emulation=sun3 ;;
222 *-*-elf | *-*-solaris*)
226 echo "*** warning: gas ${target_os} configuration implies" 1>&2
227 echo " (unsupported) --with-bfd-assembler option" 1>&2
238 # assign floating point type
239 case ${target_cpu} in
246 # and target makefile frag
248 target_makefile_frag=config/${gas_target}.mt
250 files="config/ho-${gas_host}.h config/tc-${cpu_type}.c \
251 config/tc-${cpu_type}.h config/te-${emulation}.h \
252 config/obj-${obj_format}.h config/obj-${obj_format}.c \
253 config/atof-${atof}.c"
255 links="host.h targ-cpu.c targ-cpu.h targ-env.h obj-format.h obj-format.c atof-targ.c"
261 echo BFDDEF=-DBFD_ASSEMBLER >> Makefile
270 echo BFDLIB=../bfd/libbfd.a >> Makefile
276 # end of gas/configure.in