6ef88a3d0bb778698db123a85d8b9a837a682a6d
[cacao.git] / src / mm / boehm-gc / configure.host
1 # configure.host
2
3 # This shell script handles all host based configuration for the garbage
4 # collector.
5 # It sets various shell variables based on the the host and the
6 # configuration options.  You can modify this shell script without
7 # needing to rerun autoconf.
8
9 # This shell script should be invoked as
10 #   . configure.host
11 # If it encounters an error, it will exit with a message.
12
13 # It uses the following shell variables:
14 #   host                The configuration host
15 #   host_cpu            The configuration host CPU
16 #   target_optspace     --enable-target-optspace ("yes", "no", "")
17 #   GCC                 should be "yes" if using gcc
18
19 # It sets the following shell variables:
20 #   gc_cflags   Special CFLAGS to use when building
21
22 gc_cflags=""
23
24 # We should set -fexceptions if we are using gcc and might be used
25 # inside something like gcj.  This is the zeroth approximation:
26 if test :"$GCC": = :yes: ; then
27 # TWISTI: we do not use c++
28 #    gc_cflags="${gc_cflags} -fexceptions"
29     gc_cflags="${gc_cflags}"
30 else
31     case "$host" in 
32         hppa*-*-hpux* )
33         if test :$GCC: != :"yes": ; then
34             gc_cflags="${gc_flags} +ESdbgasm"
35         fi
36         # :TODO: actaully we should check using Autoconf if
37         #     the compiler supports this option.
38         ;;
39     esac
40 fi
41
42 case "${target_optspace}:${host}" in
43   yes:*)
44     gc_cflags="${gc_cflags} -Os"
45     ;;
46   :m32r-* | :d10v-* | :d30v-*)
47     gc_cflags="${gc_cflags} -Os"
48     ;;
49   no:* | :*)
50     # Nothing.
51     ;;
52 esac
53
54 # Set any host dependent compiler flags.
55 # THIS TABLE IS SORTED.  KEEP IT THAT WAY.
56
57 case "${host}" in
58   mips-tx39-*|mipstx39-unknown-*)
59         gc_cflags="${gc_cflags} -G 0"
60         ;;
61   *)
62         ;;
63 esac