]>
Commit | Line | Data |
---|---|---|
eb02fd64 RP |
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 | ||
868ebe79 | 6 | configdirs="autoconf libgcc mmalloc libiberty texinfo opcodes bfd binutils byacc bison flex gcc readline glob ld gas gdb emacs ispell make grep diff rcs cvs patch send_pr libg++ newlib gprof gdbtest libm tgas " |
079399f6 | 7 | srctrigger=cfg-paper.texi |
eb02fd64 | 8 | srcname="gnu development package" |
0df06ca0 RP |
9 | |
10 | # per-host: | |
11 | ||
0c6087dd | 12 | # XXX - FIXME there needs to be a case for mh_dgux |
0e302572 SG |
13 | |
14 | case "${host_os}" in | |
b4e2a59b | 15 | aix*) host_makefile_frag=config/mh-aix ;; |
99823b66 | 16 | m88kbcs) host_makefile_frag=config/mh-delta88;; |
5f32984e | 17 | sysv4*) host_makefile_frag=config/mh-sysv4 ;; |
bbc7590a | 18 | solaris*) host_makefile_frag=config/mh-solaris ;; |
407a8389 | 19 | sysv* | irix3) host_makefile_frag=config/mh-sysv ;; |
27c28d61 | 20 | sco*) host_makefile_frag=config/mh-sco ;; |
407a8389 | 21 | irix4) host_makefile_frag=config/mh-irix4 ;; |
4da05fa0 | 22 | linux) host_makefile_frag=config/mh-linux ;; |
0ddd7b50 | 23 | hpux) host_makefile_frag=config/mh-hpux ;; |
3b2cf8e8 JG |
24 | ultrix*) |
25 | case "${host_cpu}" in | |
26 | mips) host_makefile_frag=config/mh-decstation ;; | |
27 | esac | |
0e302572 SG |
28 | esac |
29 | ||
f4bda0ff | 30 | case "${host_vendor}" in |
dd16baba SEF |
31 | apollo*) case "${host_cpu}" in |
32 | m68k*) | |
68cd7865 SEF |
33 | case "${host_os}" in |
34 | sysv*) host_makefile_frag=config/mh-apollo68 ;; | |
35 | bsd*) host_makefile_frag=config/mh-a68bsd ;; | |
36 | esac;; | |
dd16baba | 37 | esac ;; |
c4fb14b7 FF |
38 | ncr*) case "${host_os}" in |
39 | sysv4*) host_makefile_frag=config/mh-ncr3000 ;; | |
40 | esac ;; | |
41 | ||
f4bda0ff SEF |
42 | esac |
43 | ||
0df06ca0 | 44 | # per-target: |
bc58b41d | 45 | |
e99a90a7 RP |
46 | bfd_target= |
47 | ||
44e4e473 SC |
48 | case "${target_vendor}" in |
49 | amd) | |
50 | case "${target_os}" in | |
43557c0a DZ |
51 | ebmon) bfd_target="ebmon29k" |
52 | ;; | |
53 | udi) bfd_target="udi29k" | |
54 | ;; | |
55 | *) echo "bad target_os for amd" 1>&2 | |
56 | ;; | |
44e4e473 SC |
57 | esac |
58 | ;; | |
afba2b22 ILT |
59 | ericsson) |
60 | case "${target_alias}" in | |
61 | OSE68000 | ose68000) | |
62 | bfd_target="ose68000" | |
63 | ;; | |
64 | OSE68k | ose68k) | |
65 | bfd_target="ose68k" | |
66 | ;; | |
67 | *) | |
68 | bfd_target=${target-alias} | |
69 | ;; | |
70 | esac | |
71 | ;; | |
44e4e473 | 72 | *) |
e99a90a7 | 73 | bfd_target=${target_alias} |
44e4e473 SC |
74 | ;; |
75 | esac | |
76 | ||
dfa891fc DZ |
77 | # remove various programs from consideration, if this is a cross-compiler |
78 | # (host != target) build, AND if the host is one that has a | |
79 | # "native" environment that we support | |
43557c0a DZ |
80 | |
81 | if [ x"${host}" = x"${target}" ] ; then | |
dfa891fc | 82 | configdirs=`echo ${configdirs} | sed -e 's/newlib//'` |
43557c0a DZ |
83 | else |
84 | true | |
85 | fi | |
86 | ||
dfa891fc DZ |
87 | # remove various programs from consideration, based on the host or |
88 | # target this usually means that a port of the program doesn't | |
89 | # exist yet. | |
90 | ||
91 | case "${host}" in | |
92 | hppa*-*-*) | |
93 | configdirs=`echo ${configdirs} | sed -e 's/emacs//'` | |
94 | ;; | |
95 | *-*-solaris2) | |
96 | configdirs=`echo ${configdirs} | sed -e 's/emacs//'` | |
97 | ;; | |
98 | esac | |
99 | ||
43557c0a DZ |
100 | case "${target}" in |
101 | mips-*-*) | |
102 | configdirs=`echo ${configdirs} | sed -e 's/ld//;s/binutils//;s/gas//'` | |
103 | ;; | |
104 | rs6000-*-*) | |
dfa891fc | 105 | configdirs=`echo ${configdirs} | sed -e 's/gas//;s/binutils//;s/ld//;s/libgcc//'` |
43557c0a DZ |
106 | ;; |
107 | hppa*-*-*) | |
dfa891fc | 108 | configdirs=`echo ${configdirs} | sed -e 's/gas//;s/bfd//;s/gdb//;s/binutils//;s/gdbtest//;s/ld//;s/libg++//'` |
43557c0a DZ |
109 | ;; |
110 | *-*-solaris2) | |
111 | configdirs=`echo ${configdirs} | sed -e 's/gas//'` | |
05cd8d98 HS |
112 | ;; |
113 | esac | |
114 | ||
43557c0a | 115 | |
bcdbe02f | 116 | target_makefile_frag=config/mt-${bfd_target} |
0e302572 | 117 | |
bc58b41d RP |
118 | # |
119 | # Local Variables: | |
120 | # fill-column: 131 | |
121 | # End: | |
122 | # | |
9d3f69fb | 123 |