]> git.ipfire.org Git - thirdparty/gcc.git/blame - libjava/configure.host
IA-64 ABI Exception Handling.
[thirdparty/gcc.git] / libjava / configure.host
CommitLineData
ee9dd372
TT
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=
b11f6430 26libgcj_interpreter=
ee9dd372
TT
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
d342a2e1
AH
47DIVIDESPEC=-fuse-divide-subroutine
48
ee9dd372
TT
49case "${host}" in
50 mips-tx39-*|mipstx39-unknown-*)
51 libgcj_flags="${libgcj_flags} -G 0"
52 LDFLAGS="$LDFLAGS -Tjmr3904dram.ld"
d342a2e1 53 AM_RUNTESTFLAGS="--target_board=jmr3904-sim"
ab31268c
TT
54 # Use "Ecos" processes since they are a no-op.
55 PROCESS=Ecos
4b68fe8a 56 enable_java_net_default=no
ffccc6be 57 enable_getenv_properties_default=no
ee9dd372 58 ;;
97ce4a51 59 i686-*|i586-*|i486-*|i386-*)
6cc96432 60 libgcj_flags="${libgcj_flags} -ffloat-store"
b11f6430 61 libgcj_interpreter=yes
6cc96432
AG
62 libgcj_cxxflags="-D__NO_MATH_INLINES"
63 libgcj_cflags="-D__NO_MATH_INLINES"
d342a2e1 64 DIVIDESPEC=-fno-use-divide-subroutine
ee9dd372 65 ;;
48a9aced 66 alpha*-*)
0be25992 67 libgcj_flags="${libgcj_flags} -mieee"
bc38c787
AG
68 libgcj_interpreter=yes
69 ;;
3cf88fb4
TT
70 sparc-*)
71 ;;
6c80c45e
TT
72 ia64-*)
73 libgcj_flags="${libgcj_flags} -funwind-tables"
6c80c45e
TT
74 libgcj_interpreter=yes
75 ;;
ee9dd372
TT
76esac
77
78libgcj_cflags="${libgcj_cflags} ${libgcj_flags}"
79libgcj_cxxflags="${libgcj_cxxflags} ${libgcj_flags}"
80libgcj_javaflags="${libgcj_javaflags} ${libgcj_flags}"