=================================================================== RCS file: /home/cvs/OpenXM_contrib2/asir2000/gc/configure.host,v retrieving revision 1.1 retrieving revision 1.2 diff -u -p -r1.1 -r1.2 --- OpenXM_contrib2/asir2000/gc/configure.host 2002/07/24 08:00:08 1.1 +++ OpenXM_contrib2/asir2000/gc/configure.host 2003/06/24 05:11:32 1.2 @@ -14,20 +14,26 @@ # 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 - ;; - *-*-hpux* ) - gc_cflags=+ESdbgasm - ;; -esac +if test :"$GCC": = :yes: ; then + gc_cflags="${gc_cflags} -fexceptions" +else + case "$host" in + *-*-hpux* ) + gc_cflags="${gc_flags} +ESdbgasm" + # :TODO: actaully we should check using Autoconf if + # the compiler supports this option. + ;; + esac +fi case "${target_optspace}:${host}" in yes:*)