[BACK]Return to configure.host CVS log [TXT][DIR] Up to [local] / OpenXM_contrib2 / asir2000 / gc

File: [local] / OpenXM_contrib2 / asir2000 / gc / configure.host (download)

Revision 1.2, Tue Jun 24 05:11:32 2003 UTC (20 years, 10 months ago) by noro
Branch: MAIN
CVS Tags: R_1_3_1-2, RELEASE_1_3_1_13b, RELEASE_1_2_3_12, RELEASE_1_2_3, RELEASE_1_2_2_KNOPPIX_b, RELEASE_1_2_2_KNOPPIX, KNOPPIX_2006, HEAD, DEB_REL_1_2_3-9
Changes since 1.1: +14 -8 lines

Upgraded gc to gc6.2alpha6.

# configure.host

# This shell script handles all host based configuration for the garbage
# collector.
# It sets various shell variables based on the the host and the
# configuration options.  You can modify this shell script without
# needing to rerun autoconf.

# This shell script should be invoked as
#   . configure.host
# If it encounters an error, it will exit with a message.

# It uses the following shell variables:
#   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:
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:*)
    gc_cflags="${gc_cflags} -Os"
    ;;
  :m32r-* | :d10v-* | :d30v-*)
    gc_cflags="${gc_cflags} -Os"
    ;;
  no:* | :*)
    # Nothing.
    ;;
esac

# Set any host dependent compiler flags.
# THIS TABLE IS SORTED.  KEEP IT THAT WAY.

case "${host}" in
  mips-tx39-*|mipstx39-unknown-*)
	boehm_gc_cflags="${boehm_gc_cflags} -G 0"
	;;
  *)
	;;
esac