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 | ||
3ad0ef37 | 6 | configdirs="autoconf libgcc mmalloc libiberty texinfo 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 | ;; | |
59 | *) | |
e99a90a7 | 60 | bfd_target=${target_alias} |
44e4e473 SC |
61 | ;; |
62 | esac | |
63 | ||
dfa891fc DZ |
64 | # remove various programs from consideration, if this is a cross-compiler |
65 | # (host != target) build, AND if the host is one that has a | |
66 | # "native" environment that we support | |
43557c0a DZ |
67 | |
68 | if [ x"${host}" = x"${target}" ] ; then | |
dfa891fc | 69 | configdirs=`echo ${configdirs} | sed -e 's/newlib//'` |
43557c0a DZ |
70 | else |
71 | true | |
72 | fi | |
73 | ||
dfa891fc DZ |
74 | # remove various programs from consideration, based on the host or |
75 | # target this usually means that a port of the program doesn't | |
76 | # exist yet. | |
77 | ||
78 | case "${host}" in | |
79 | hppa*-*-*) | |
80 | configdirs=`echo ${configdirs} | sed -e 's/emacs//'` | |
81 | ;; | |
82 | *-*-solaris2) | |
83 | configdirs=`echo ${configdirs} | sed -e 's/emacs//'` | |
84 | ;; | |
85 | esac | |
86 | ||
43557c0a DZ |
87 | case "${target}" in |
88 | mips-*-*) | |
89 | configdirs=`echo ${configdirs} | sed -e 's/ld//;s/binutils//;s/gas//'` | |
90 | ;; | |
91 | rs6000-*-*) | |
dfa891fc | 92 | configdirs=`echo ${configdirs} | sed -e 's/gas//;s/binutils//;s/ld//;s/libgcc//'` |
43557c0a DZ |
93 | ;; |
94 | hppa*-*-*) | |
dfa891fc | 95 | configdirs=`echo ${configdirs} | sed -e 's/gas//;s/bfd//;s/gdb//;s/binutils//;s/gdbtest//;s/ld//;s/libg++//'` |
43557c0a DZ |
96 | ;; |
97 | *-*-solaris2) | |
98 | configdirs=`echo ${configdirs} | sed -e 's/gas//'` | |
05cd8d98 HS |
99 | ;; |
100 | esac | |
101 | ||
43557c0a | 102 | |
bcdbe02f | 103 | target_makefile_frag=config/mt-${bfd_target} |
0e302572 | 104 | |
bc58b41d RP |
105 | # |
106 | # Local Variables: | |
107 | # fill-column: 131 | |
108 | # End: | |
109 | # | |
9d3f69fb | 110 |