error messages review
[mono.git] / libgc / 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 if test :"$GCC": = :yes: ; then
25 else
26     case "$host" in 
27         hppa*-*-hpux* )
28         if test :$GCC: != :"yes": ; then
29             gc_cflags="${gc_flags} +ESdbgasm"
30         fi
31         # :TODO: actaully we should check using Autoconf if
32         #     the compiler supports this option.
33         ;;
34     esac
35 fi
36
37 case "${target_optspace}:${host}" in
38   yes:*)
39     gc_cflags="${gc_cflags} -Os"
40     ;;
41   :m32r-* | :d10v-* | :d30v-*)
42     gc_cflags="${gc_cflags} -Os"
43     ;;
44   no:* | :*)
45     # Nothing.
46     ;;
47 esac
48
49 # Set any host dependent compiler flags.
50 # THIS TABLE IS SORTED.  KEEP IT THAT WAY.
51
52 case "${host}" in
53   mips-tx39-*|mipstx39-unknown-*)
54         gc_cflags="${gc_cflags} -G 0"
55         ;;
56   *)
57         ;;
58 esac