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} ;;
74 *-*-ansi | *-*-ultrix | *-*-hpux | *-*-sysv*)
82 case ${with_bfd_assembler} in
84 echo "*** Warning: GAS BFD configuration option not yet supported" 1>&2
91 echo "*** Bad value \"${with_bfd_assembler}\" for --with_bfd_assembler option" 1>&2
99 cpu_type=${target_cpu}
101 # check for architecture variants
102 case ${target_cpu} in
103 sparclite*) cpu_type=sparc ;;
104 sparc64) cpu_type=sparc obj_format=aout ;;
105 m680[01234]0) cpu_type=m68k ;;
106 m683??) cpu_type=m68k ;;
107 i486) cpu_type=i386 ;;
110 gas_target=${cpu_type}
112 generic_target=${cpu_type}-${target_vendor}-${target_os}
114 # assign object format
115 case ${generic_target} in
140 i386-*-coff | i386-*-sysv* | i386-*-sco* | i386-*-isc*)
159 m68k-ericsson-[Oo][Ss][Ee])
169 # don't change emulation like *-*-bsd does
179 mips-*-irix* | mips-*-ecoff)
184 sparclite*-fujitsu-none)
187 *-*-aout | *-*-scout | *-*-linux)
190 *-*-bout* | *-*-nindy*)
193 *-*-bsd* | *-*-sunos*)
212 *-*-coff* | *-sysv* | *-*-sco*)
214 case ${target_vendor} in
215 bull) emulation=dpx2 ;;
216 sun) emulation=sun3 ;;
225 *-*-elf | *-*-solaris*)
229 echo "*** warning: gas ${target_os} configuration implies" 1>&2
230 echo " (unsupported) --with-bfd-assembler option" 1>&2
241 # assign floating point type
242 case ${target_cpu} in
249 # and target makefile frag
251 target_makefile_frag=config/${gas_target}.mt
253 files="config/ho-${gas_host}.h config/tc-${cpu_type}.c \
254 config/tc-${cpu_type}.h config/te-${emulation}.h \
255 config/obj-${obj_format}.h config/obj-${obj_format}.c \
256 config/atof-${atof}.c"
258 links="host.h targ-cpu.c targ-cpu.h targ-env.h obj-format.h obj-format.c atof-targ.c"
265 mv Makefile Makefile.tem
266 echo BFDDEF=-DBFD_ASSEMBLER > Makefile
267 cat Makefile.tem >> Makefile
278 mv Makefile Makefile.tem
279 echo BFDLIB=../bfd/libbfd.a > Makefile
280 cat Makefile.tem >> Makefile
287 # end of gas/configure.in