diff options
Diffstat (limited to 'boehm-gc/configure.host')
-rw-r--r-- | boehm-gc/configure.host | 28 |
1 files changed, 17 insertions, 11 deletions
diff --git a/boehm-gc/configure.host b/boehm-gc/configure.host index 82294cf6ef1..a98a0a7cb30 100644 --- a/boehm-gc/configure.host +++ b/boehm-gc/configure.host @@ -14,22 +14,28 @@ # host The configuration host # host_cpu The configuration host CPU # target_optspace --enable-target-optspace ("yes", "no", "") +# GCC should be "yes" if using gcc # It sets the following shell variables: # gc_cflags Special CFLAGS to use when building +gc_cflags="" + # We should set -fexceptions if we are using gcc and might be used # inside something like gcj. This is the zeroth approximation: -case "$host" in - *-*-linux* ) - gc_cflags=-fexceptions - ;; - hppa*-*-hpux* ) - if test $GCC != "yes" ; then - gc_cflags=+ESdbgasm - fi - ;; -esac +if test :"$GCC": = :yes: ; then + gc_cflags="${gc_cflags} -fexceptions" +else + case "$host" in + hppa*-*-hpux* ) + if test :$GCC: != :"yes": ; then + gc_cflags="${gc_flags} +ESdbgasm" + fi + # :TODO: actaully we should check using Autoconf if + # the compiler supports this option. + ;; + esac +fi case "${target_optspace}:${host}" in yes:*) @@ -48,7 +54,7 @@ esac case "${host}" in mips-tx39-*|mipstx39-unknown-*) - boehm_gc_cflags="${boehm_gc_cflags} -G 0" + gc_cflags="${gc_cflags} -G 0" ;; *) ;; |