source: trunk/third/gcc/libjava/configure.host @ 16960

Revision 16960, 2.1 KB checked in by ghudson, 22 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r16959, which included commits to RCS files with non-trunk default branches.
Line 
1# configure.host
2
3# This shell script handles all host based configuration for libgcj.
4# It sets various shell variables based on the the host and the
5# configuration options.  You can modify this shell script without
6# needing to rerun autoconf.
7
8# This shell script should be invoked as
9#   . configure.host
10# If it encounters an error, it will exit with a message.
11
12# It uses the following shell variables:
13#   host                The configuration host
14#   host_cpu            The configuration host CPU
15#   target_optspace     --enable-target-optspace ("yes", "no", "")
16
17# It sets the following shell variables:
18#   libgcj_cflags       Special CFLAGS to use when building
19#   libgcj_cxxflags     Special CXXFLAGS to use when building
20#   libgcj_javaflags    Special JAVAFLAGS to use when building
21
22libgcj_flags=
23libgcj_cflags=
24libgcj_cxxflags=
25libgcj_javaflags=
26libgcj_interpreter=
27
28case "${target_optspace}:${host}" in
29  yes:*)
30    libgcj_flags="${libgcj_flags} -Os"
31    ;;
32  :m32r-* | :d10v-* | :d30v-*)
33    libgcj_flags="${libgcj_flags} -Os"
34    ;;
35  no:* | :*)
36    # Nothing.
37    ;;
38esac
39
40AM_RUNTESTFLAGS=
41
42# Set any host dependent compiler flags.
43# THIS TABLE IS SORTED.  KEEP IT THAT WAY.
44
45echo "$target"
46
47DIVIDESPEC=-fuse-divide-subroutine
48EXCEPTIONSPEC=-fnon-call-exceptions
49
50case "${host}" in
51  mips-tx39-*|mipstx39-unknown-*)
52        libgcj_flags="${libgcj_flags} -G 0"
53        LDFLAGS="$LDFLAGS -Tjmr3904dram.ld"
54        AM_RUNTESTFLAGS="--target_board=jmr3904-sim"   
55        # Use "Ecos" processes since they are a no-op.
56        PROCESS=Ecos
57        enable_java_net_default=no
58        enable_getenv_properties_default=no
59        ;;
60  i686-*|i586-*|i486-*|i386-*)
61        libgcj_flags="${libgcj_flags} -ffloat-store"
62        libgcj_interpreter=yes
63        libgcj_cxxflags="-D__NO_MATH_INLINES"
64        libgcj_cflags="-D__NO_MATH_INLINES"
65        ;;
66  alpha*-*)
67        libgcj_flags="${libgcj_flags} -mieee"
68        libgcj_interpreter=yes
69        ;;
70  powerpc*-*)
71        libgcj_interpreter=yes
72        ;;
73  sparc-*)
74        ;;
75  ia64-*)
76        libgcj_flags="${libgcj_flags} -funwind-tables"
77        libgcj_interpreter=yes
78        ;;
79esac
80
81libgcj_cflags="${libgcj_cflags} ${libgcj_flags}"
82libgcj_cxxflags="${libgcj_cxxflags} ${libgcj_flags}"
83libgcj_javaflags="${libgcj_javaflags} ${libgcj_flags}"
Note: See TracBrowser for help on using the repository browser.