only set PWD if it is already set (and likely wrong). from p3.
[deliverable/binutils-gdb.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 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 "
7 srctrigger=cfg-paper.texi
8 srcname="gnu development package"
9
10 # per-host:
11
12 # XXX - FIXME there needs to be a case for mh_dgux
13
14 case "${host_os}" in
15 aix*) host_makefile_frag=config/mh-aix ;;
16 m88kbcs) host_makefile_frag=config/mh-delta88;;
17 sysv4*) host_makefile_frag=config/mh-sysv4 ;;
18 solaris*) host_makefile_frag=config/mh-solaris ;;
19 sysv* | irix3) host_makefile_frag=config/mh-sysv ;;
20 scout) ;;
21 sco*) host_makefile_frag=config/mh-sco ;;
22 irix4) host_makefile_frag=config/mh-irix4 ;;
23 linux) host_makefile_frag=config/mh-linux ;;
24 hpux) host_makefile_frag=config/mh-hpux ;;
25 ultrix*)
26 case "${host_cpu}" in
27 mips) host_makefile_frag=config/mh-decstation ;;
28 esac
29 esac
30
31 case "${host_vendor}" in
32 apollo*) case "${host_cpu}" in
33 m68k*)
34 case "${host_os}" in
35 sysv*) host_makefile_frag=config/mh-apollo68 ;;
36 bsd*) host_makefile_frag=config/mh-a68bsd ;;
37 esac;;
38 esac ;;
39 ncr*) case "${host_os}" in
40 sysv4*) host_makefile_frag=config/mh-ncr3000 ;;
41 esac ;;
42
43 esac
44
45 # per-target:
46
47 bfd_target=
48
49 case "${target_vendor}" in
50 amd)
51 case "${target_os}" in
52 ebmon) bfd_target="ebmon29k"
53 ;;
54 udi) bfd_target="udi29k"
55 ;;
56 *) echo "bad target_os for amd" 1>&2
57 ;;
58 esac
59 ;;
60 ericsson)
61 case "${target_alias}" in
62 OSE68000 | ose68000)
63 bfd_target="ose68000"
64 ;;
65 OSE68k | ose68k)
66 bfd_target="ose68k"
67 ;;
68 *)
69 bfd_target=${target-alias}
70 ;;
71 esac
72 ;;
73 *)
74 bfd_target=${target_alias}
75 ;;
76 esac
77
78 # remove various programs from consideration, if this is a cross-compiler
79 # (host != target) build, AND if the host is one that has a
80 # "native" environment that we support
81
82 if [ x"${host}" = x"${target}" ] ; then
83 configdirs=`echo ${configdirs} | sed -e 's/newlib//'`
84 else
85 true
86 fi
87
88 # remove various programs from consideration, based on the host or
89 # target this usually means that a port of the program doesn't
90 # exist yet.
91
92 case "${host}" in
93 hppa*-*-*)
94 configdirs=`echo ${configdirs} | sed -e 's/emacs//'`
95 ;;
96 *-*-solaris2)
97 configdirs=`echo ${configdirs} | sed -e 's/emacs//'`
98 ;;
99 esac
100
101 case "${target}" in
102 mips-*-*)
103 configdirs=`echo ${configdirs} | sed -e 's/ld//;s/binutils//;s/gas//'`
104 ;;
105 rs6000-*-*)
106 configdirs=`echo ${configdirs} | sed -e 's/gas//;s/binutils//;s/ld//;s/libgcc//'`
107 ;;
108 hppa*-*-*)
109 configdirs=`echo ${configdirs} | sed -e 's/gas//;s/bfd//;s/gdb//;s/binutils//;s/gdbtest//;s/ld//;s/libg++//'`
110 ;;
111 *-*-solaris2)
112 configdirs=`echo ${configdirs} | sed -e 's/gas//'`
113 ;;
114 esac
115
116
117 target_makefile_frag=config/mt-${bfd_target}
118
119 #
120 # Local Variables:
121 # fill-column: 131
122 # End:
123 #
124
This page took 0.033131 seconds and 4 git commands to generate.