aboutsummaryrefslogtreecommitdiff
path: root/configure.in
blob: 02fafb8852e0f94c891e55e69dda727416d08181 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# This file is a shell script fragment 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.

configdirs="autoconf libgcc 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 "
srctrigger=cfg-paper.texi
srcname="gnu development package"

# per-host:

case "${host}" in
  m68k-apollo-sysv*)      host_makefile_frag=config/mh-apollo68 ;;
  m68k-apollo-bsd*)       host_makefile_frag=config/mh-a68bsd ;;
  m88k-motorola-m88kbcs)  host_makefile_frag=config/mh-delta88;;
  m88k-dg-dgux*)	  host_makefile_frag=config/mh-dgux ;;
  mips-dec-ultrix*)       host_makefile_frag=config/mh-decstation ;;
  mips-sgi-irix4)         host_makefile_frag=config/mh-irix4 ;;
  mips-sgi-irix3)         host_makefile_frag=config/mh-sysv ;;
  i[34]86-ncr-sysv4*)     host_makefile_frag=config/mh-ncr3000 ;;
  i[34]86-*-sco*)         host_makefile_frag=config/mh-sco ;;
  i[34]86-*-linux)        host_makefile_frag=config/mh-linux ;;
  *-ibm-aix*)             host_makefile_frag=config/mh-aix ;;
  *-sun-solaris*)         host_makefile_frag=config/mh-solaris ;;
  *-hp-hpux)              host_makefile_frag=config/mh-hpux ;;
  *-*sysv4*)              host_makefile_frag=config/mh-sysv4 ;;
  *-*sysv*)               host_makefile_frag=config/mh-sysv ;;
esac

# per-target:

bfd_target=

case "${target}" in
  a29k-amd-ebmon) bfd_target="ebmon29k"  ;;
  a29k-amd-udi)   bfd_target="udi29k" ;;
  a29k-amd-*)     echo "bad target_os for amd" 1>&2
		  exit 1
		  ;;
esac

# remove various programs from consideration, if this is a cross-compiler 
# (host != target) build, AND if the host is one that has a
# "native" environment that we support

if [ x"${host}" = x"${target}" ] ; then
         configdirs=`echo ${configdirs} | sed -e 's/newlib//'`
else
	true
fi	

# remove various programs from consideration, based on the host or 
# target this usually means that a port of the program doesn't
# exist yet.

case "${host}" in
hppa*-*-*)
	configdirs=`echo ${configdirs} | sed -e 's/emacs//'`
	;;
*-*-solaris2)
	configdirs=`echo ${configdirs} | sed -e 's/emacs//'`
	;;
esac

case "${target}" in
mips-*-*)
	configdirs=`echo ${configdirs} | sed -e 's/ld//;s/binutils//;s/gas//'`
	;;
rs6000-*-*)
	configdirs=`echo ${configdirs} | sed -e 's/gas//;s/binutils//;s/ld//;s/libgcc//'`
	;;
hppa*-*-*)
	configdirs=`echo ${configdirs} | sed -e 's/gas//;s/bfd//;s/gdb//;s/binutils//;s/gdbtest//;s/ld//;s/libg++//'`
	;;
*-*-solaris2)
	configdirs=`echo ${configdirs} | sed -e 's/gas//'`
	;;
esac


target_makefile_frag=config/mt-${bfd_target}

#
# Local Variables:
# fill-column: 131
# End:
#