1999-04-07 10:01:42 +02:00
|
|
|
# configure.host
|
|
|
|
|
2001-08-18 03:04:43 +02:00
|
|
|
# This shell script handles all host based configuration for the garbage
|
|
|
|
# collector.
|
1999-04-07 10:01:42 +02:00
|
|
|
# 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", "")
|
2003-07-28 06:18:23 +02:00
|
|
|
# GCC should be "yes" if using gcc
|
1999-04-07 10:01:42 +02:00
|
|
|
|
|
|
|
# It sets the following shell variables:
|
2001-08-18 03:04:43 +02:00
|
|
|
# gc_cflags Special CFLAGS to use when building
|
2005-02-16 05:10:42 +01:00
|
|
|
# gc_use_mmap Set to "yes" on platforms where mmap should be used instead
|
|
|
|
# of sbrk. This will define USE_MMAP.
|
1999-04-07 10:01:42 +02:00
|
|
|
|
2003-07-28 06:18:23 +02:00
|
|
|
gc_cflags=""
|
2005-02-16 05:10:42 +01:00
|
|
|
gc_use_mmap=
|
2003-07-28 06:18:23 +02:00
|
|
|
|
2001-08-18 03:04:43 +02:00
|
|
|
# We should set -fexceptions if we are using gcc and might be used
|
|
|
|
# inside something like gcj. This is the zeroth approximation:
|
2003-07-28 06:18:23 +02:00
|
|
|
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
|
1999-04-07 10:01:42 +02:00
|
|
|
|
2005-02-16 05:10:42 +01:00
|
|
|
case "${host}" in
|
|
|
|
*-linux*)
|
|
|
|
gc_use_mmap=yes
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
1999-04-07 10:01:42 +02:00
|
|
|
case "${target_optspace}:${host}" in
|
|
|
|
yes:*)
|
2001-08-18 03:04:43 +02:00
|
|
|
gc_cflags="${gc_cflags} -Os"
|
1999-04-07 10:01:42 +02:00
|
|
|
;;
|
|
|
|
:m32r-* | :d10v-* | :d30v-*)
|
2001-08-18 03:04:43 +02:00
|
|
|
gc_cflags="${gc_cflags} -Os"
|
1999-04-07 10:01:42 +02:00
|
|
|
;;
|
|
|
|
no:* | :*)
|
|
|
|
# Nothing.
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
# Set any host dependent compiler flags.
|
|
|
|
# THIS TABLE IS SORTED. KEEP IT THAT WAY.
|
|
|
|
|
|
|
|
case "${host}" in
|
|
|
|
mips-tx39-*|mipstx39-unknown-*)
|
2003-07-28 06:18:23 +02:00
|
|
|
gc_cflags="${gc_cflags} -G 0"
|
1999-04-07 10:01:42 +02:00
|
|
|
;;
|
|
|
|
*)
|
|
|
|
;;
|
|
|
|
esac
|