OSDN Git Service

2002-01-02 Andreas Tobler <a.tobler@schweiz.ch>
[pf3gnuchains/gcc-fork.git] / libjava / configure.host
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
22 libgcj_flags=
23 libgcj_cflags=
24 libgcj_cxxflags=
25 libgcj_javaflags=
26 libgcj_interpreter=
27 enable_java_net_default=yes
28 enable_hash_synchronization_default=no
29
30 case "${target_optspace}:${host}" in
31   yes:*)
32     libgcj_flags="${libgcj_flags} -Os"
33     ;;
34   :m32r-* | :d10v-* | :d30v-*)
35     libgcj_flags="${libgcj_flags} -Os"
36     ;;
37   no:* | :*)
38     # Nothing.
39     ;;
40 esac
41
42 AM_RUNTESTFLAGS= 
43
44 # Set any host dependent compiler flags.
45 # THIS TABLE IS SORTED.  KEEP IT THAT WAY.
46
47 echo "$target"
48
49 DIVIDESPEC=-fuse-divide-subroutine
50 EXCEPTIONSPEC=-fnon-call-exceptions
51
52 case "${host}" in
53   mips-tx39-*|mipstx39-unknown-*)
54         libgcj_flags="${libgcj_flags} -G 0"
55         LDFLAGS="$LDFLAGS -Tjmr3904dram.ld"
56         AM_RUNTESTFLAGS="--target_board=jmr3904-sim"    
57         # Use "Ecos" processes since they are a no-op.
58         PROCESS=Ecos
59         enable_java_net_default=no
60         enable_getenv_properties_default=no
61         ;;
62   i686-*|i586-*|i486-*|i386-*)
63         libgcj_flags="${libgcj_flags} -ffloat-store"
64         libgcj_interpreter=yes
65         libgcj_cxxflags="-D__NO_MATH_INLINES"
66         libgcj_cflags="-D__NO_MATH_INLINES"
67         DIVIDESPEC=-fno-use-divide-subroutine
68         enable_hash_synchronization_default=yes
69         ;;
70   alpha*-*)
71         libgcj_flags="${libgcj_flags} -mieee"
72         libgcj_interpreter=yes
73         enable_hash_synchronization_default=yes
74         ;;
75   powerpc*-linux*)
76         libgcj_interpreter=yes
77         ;;
78   powerpc-apple-*)
79         libgcj_interpreter=no
80         ;;
81   sparc-*)
82         ;;
83   ia64-*)
84         libgcj_flags="${libgcj_flags} -funwind-tables"
85         libgcj_interpreter=yes
86         enable_hash_synchronization_default=yes
87         ;;
88 esac
89
90 libgcj_cflags="${libgcj_cflags} ${libgcj_flags}"
91 libgcj_cxxflags="${libgcj_cxxflags} ${libgcj_flags}"
92 libgcj_javaflags="${libgcj_javaflags} ${libgcj_flags}"