binutils-gdb/gas/configure.in

111 lines
1.9 KiB
Plaintext
Raw Normal View History

1991-04-04 20:19:53 +02:00
# This file is a shell script that supplies the information necessary
# to tailor a template configure script into the configure script
# appropriate for this directory. For more information, check any
# existing configure script.
srctrigger=as.c
srcname="gas"
1991-08-14 02:29:34 +02:00
targetdependent=true
need_bfd=
1991-08-14 02:29:34 +02:00
# per-host:
1991-08-28 23:49:12 +02:00
gas_host=generic
1991-04-04 20:19:53 +02:00
1991-08-28 23:49:12 +02:00
case "${host_cpu}" in
a29k | rs6000 | vax) gas_host=${host_cpu} ;;
mips)
case "${host_os}" in
ultrix) gas_host=decstation ;;
esac
1991-08-14 02:29:34 +02:00
;;
1991-04-10 01:52:42 +02:00
*)
1991-08-28 23:49:12 +02:00
case "${host_os}" in
ansi | ultrix | hpux | sysv*) gas_host=${host_os} ;;
*)
case "${host_vendor}" in
sun)
case "${host_cpu}" in
m68k) gas_host=sun3 ;;
i386) gas_host=sun386 ;;
sparc) gas_host=sun4 ;;
esac
;;
esac
;;
esac
1991-04-10 01:52:42 +02:00
;;
esac
1991-08-28 23:49:12 +02:00
# per-target:
# assign cpu type
emulation=generic
cpu_type=${target_cpu}
1991-04-10 01:52:42 +02:00
# assign object format
1991-08-28 23:49:12 +02:00
case ${target_os} in
1991-11-05 10:01:45 +01:00
bout*) obj_format=bout ;;
bsd* | sunos*) obj_format=aout ;;
1991-10-21 20:53:31 +01:00
ebmon)
obj_format=coff
need_bfd="$(unsubdir)/../bfd$(subdir)/libbfd.a"
target_cpu=ebmon29k
;;
1991-11-05 10:01:45 +01:00
generic) obj_format=generic ;;
hds)
obj_format=coff-bfd
need_bfd="$(unsubdir)/../bfd$(subdir)/libbfd.a"
;;
sysv32)
obj_format=coff
emulation=sysv32
;;
1991-11-05 10:01:45 +01:00
coff* | sysv*)
obj_format=coff
case ${target_vendor} in
bull) emulation=dpx2 ;;
sco) emulation=sco386 ;;
sun) emulation=sun3 ;;
*)
esac
;;
1991-11-05 10:01:45 +01:00
*)
case ${target_vendor} in
aout) obj_format=aout ;;
bout) obj_format=bout ;;
coff)
obj_format=coff
case ${target_cpu} in
i960) emulation=ic960 ;;
esac
;;
1991-11-05 10:01:45 +01:00
*) obj_format=aout ;;
esac
1991-04-10 01:52:42 +02:00
;;
1991-11-05 10:01:45 +01:00
1991-04-04 20:19:53 +02:00
esac
1991-04-10 01:52:42 +02:00
# assign floating point type
1991-08-28 23:49:12 +02:00
case ${target_cpu} in
1991-11-05 10:01:45 +01:00
vax) atof=vax ;;
*) atof=ieee ;;
1991-04-04 20:19:53 +02:00
esac
# and target makefile frag
1991-11-05 10:01:45 +01:00
target_makefile_frag=config/mt-${target_cpu}
1991-08-28 23:49:12 +02:00
files="config/ho-${gas_host}.h config/tc-${cpu_type}.c \
1991-08-14 02:29:34 +02:00
config/tc-${cpu_type}.h config/te-${emulation}.h \
1991-04-10 01:52:42 +02:00
config/obj-${obj_format}.h config/obj-${obj_format}.c \
config/atof-${atof}.c"
1991-04-04 20:19:53 +02:00
links="host.h targ-cpu.c targ-cpu.h targ-env.h obj-format.h obj-format.c atof-targ.c"