~ubuntu-branches/ubuntu/hardy/libgc/hardy-updates

« back to all changes in this revision

Viewing changes to configure.host

  • Committer: Bazaar Package Importer
  • Author(s): Ryan Murray
  • Date: 2005-02-03 00:50:53 UTC
  • mto: (3.1.1 etch) (1.2.4 upstream)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20050203005053-9c0v9r2qcm2g1cfp
Tags: upstream-6.4
ImportĀ upstreamĀ versionĀ 6.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
#   host                The configuration host
15
15
#   host_cpu            The configuration host CPU
16
16
#   target_optspace     --enable-target-optspace ("yes", "no", "")
 
17
#   GCC                 should be "yes" if using gcc
17
18
 
18
19
# It sets the following shell variables:
19
20
#   gc_cflags   Special CFLAGS to use when building
20
21
 
 
22
gc_cflags=""
 
23
 
21
24
# We should set -fexceptions if we are using gcc and might be used
22
25
# inside something like gcj.  This is the zeroth approximation:
23
 
case "$host" in 
24
 
    *-*-linux* )
25
 
    gc_cflags=-fexceptions
26
 
    ;;
27
 
    *-*-hpux* )
28
 
    gc_cflags=+ESdbgasm
29
 
    ;;
30
 
esac
 
26
if test :"$GCC": = :yes: ; then
 
27
    gc_cflags="${gc_cflags} -fexceptions"
 
28
else
 
29
    case "$host" in 
 
30
        hppa*-*-hpux* )
 
31
        if test :$GCC: != :"yes": ; then
 
32
            gc_cflags="${gc_flags} +ESdbgasm"
 
33
        fi
 
34
        # :TODO: actaully we should check using Autoconf if
 
35
        #     the compiler supports this option.
 
36
        ;;
 
37
    esac
 
38
fi
31
39
 
32
40
case "${target_optspace}:${host}" in
33
41
  yes:*)
46
54
 
47
55
case "${host}" in
48
56
  mips-tx39-*|mipstx39-unknown-*)
49
 
        boehm_gc_cflags="${boehm_gc_cflags} -G 0"
 
57
        gc_cflags="${gc_cflags} -G 0"
50
58
        ;;
51
59
  *)
52
60
        ;;