* libbfd-in.h, bfd-in.h: Eliminate all PROTO calls, replace with
[platform/upstream/binutils.git] / configure.in
1 # This file is a shell script fragment that supplies the information
2 # necessary to tailor a template configure script into the configure
3 # script appropriate for this directory.  For more information, check
4 # any existing configure script.
5
6 configdirs="autoconf mmalloc libiberty texinfo flex byacc bison opcodes bfd binutils gcc readline glob ld gas gdb emacs ispell make grep diff rcs cvs patch send_pr libg++ newlib gprof gdbtest libm tgas etc tcl expect tk deja-gnu z8ksim"
7 srctrigger=move-if-change
8 srcname="gnu development package"
9
10 # per-host:
11
12 case "${host}" in
13   m68k-apollo-sysv*)      host_makefile_frag=config/mh-apollo68 ;;
14   m68k-apollo-bsd*)       host_makefile_frag=config/mh-a68bsd ;;
15   m88k-motorola-m88kbcs)  host_makefile_frag=config/mh-delta88;;
16   m88k-dg-dgux*)          host_makefile_frag=config/mh-dgux ;;
17   mips-dec-ultrix*)       host_makefile_frag=config/mh-decstation ;;
18   mips-sgi-irix4)         host_makefile_frag=config/mh-irix4 ;;
19   mips-sgi-irix3)         host_makefile_frag=config/mh-sysv ;;
20   i[34]86-ncr-sysv4*)     host_makefile_frag=config/mh-ncr3000 ;;
21   i[34]86-*-sco*)         host_makefile_frag=config/mh-sco ;;
22   i[34]86-*-linux)        host_makefile_frag=config/mh-linux ;;
23   i[34]86-*-solaris2*)    host_makefile_frag=config/mh-sysv4 ;;
24   *-ibm-aix*)             host_makefile_frag=config/mh-aix ;;
25   *-sun-solaris*)         host_makefile_frag=config/mh-solaris ;;
26   *-hp-hpux)              host_makefile_frag=config/mh-hpux ;;
27   *-*sysv4*)              host_makefile_frag=config/mh-sysv4 ;;
28   *-*sysv*)               host_makefile_frag=config/mh-sysv ;;
29 esac
30
31 # per-target:
32
33 bfd_target=
34
35 case "${target}" in
36   a29k-amd-ebmon) bfd_target="ebmon29k"  ;;
37   a29k-amd-udi)   bfd_target="udi29k" ;;
38   a29k-amd-*)     echo "bad target_os for amd" 1>&2
39                   exit 1
40                   ;;
41 esac
42
43
44 # remove various programs from consideration.  some of these are not
45 # reasonable to build for a native compilation (eg newlib).  some of these
46 # aren't built for each cross compiler toolchain (eg emacs).
47
48 if [ x"${host}" = x"${target}" ] ; then
49         # remove from native toolchains
50         configdirs=`echo ${configdirs} | sed -e 's/newlib//'`
51 else
52         # remove from cross compilers in general
53         configdirs=`echo ${configdirs} | sed -e 's/emacs//;s/ispell//;s/rcs//;s/cvs//'`
54 fi      
55
56 # remove more programs from consideration, based on the host or 
57 # target this usually means that a port of the program doesn't
58 # exist yet.
59
60 #case "${host}" in
61 #  hppa*-*-*)
62 #    configdirs=`echo ${configdirs} | sed -e 's/emacs//'`
63 #    ;;
64 #esac
65
66 case "${target}" in
67   mips-*-*)
68     configdirs=`echo ${configdirs} | sed -e 's/ld//;s/binutils//;s/gas//'`
69     ;;
70   rs6000-*-*)
71     configdirs=`echo ${configdirs} | sed -e 's/ld//;s/binutils//;s/gas//'`
72     ;;
73   hppa*-*-*)
74     configdirs=`echo ${configdirs} | sed -e 's/ld//;s/binutils//;s/gas//;s/bfd//;s/gdb//'`
75     ;;
76   *-*-solaris2)
77     configdirs=`echo ${configdirs} | sed -e 's/ld//;s/binutils//;s/gas//'`
78     ;;
79 esac
80
81
82 target_makefile_frag=config/mt-${bfd_target}
83
84 #
85 # Local Variables:
86 # fill-column: 131
87 # End:
88 #
89