X-Git-Url: http://git.sourceforge.jp/view?a=blobdiff_plain;f=boehm-gc%2Fconfigure.host;h=97f4dacb6deef195b42e58e165ccac5d447a9d28;hb=8c3428a69401ce17fed2bd97381e18bc1fac82ca;hp=82294cf6ef17bc1acf139b9455b51944dafd8ab8;hpb=61a44c4fc96db617b5b28136ef8b852e825342e7;p=pf3gnuchains%2Fgcc-fork.git diff --git a/boehm-gc/configure.host b/boehm-gc/configure.host index 82294cf6ef1..97f4dacb6de 100644 --- a/boehm-gc/configure.host +++ b/boehm-gc/configure.host @@ -14,20 +14,35 @@ # 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_use_mmap Set to "yes" on platforms where mmap should be used instead +# of sbrk. This will define USE_MMAP. + +gc_cflags="" +gc_use_mmap= # 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 +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 "${host}" in + *-linux*) + gc_use_mmap=yes ;; esac @@ -48,7 +63,7 @@ esac case "${host}" in mips-tx39-*|mipstx39-unknown-*) - boehm_gc_cflags="${boehm_gc_cflags} -G 0" + gc_cflags="${gc_cflags} -G 0" ;; *) ;;