diff options
author | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-08-18 01:04:43 +0000 |
---|---|---|
committer | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-08-18 01:04:43 +0000 |
commit | 8fee6c5ba203062646a84ef04770c79ba2be0a6a (patch) | |
tree | 0a038d94cc4acd44c0926f011247f6b7969fa84b /boehm-gc/aclocal.m4 | |
parent | 75ae025532a15d2842c5401959ef6775e3ebe550 (diff) | |
download | gcc-8fee6c5ba203062646a84ef04770c79ba2be0a6a.tar.gz |
* Makefile.am, acinclude.m4, configure.in: Imported GC 6.0 and
merged local changes.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@44994 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'boehm-gc/aclocal.m4')
-rw-r--r-- | boehm-gc/aclocal.m4 | 46 |
1 files changed, 30 insertions, 16 deletions
diff --git a/boehm-gc/aclocal.m4 b/boehm-gc/aclocal.m4 index ab624da2693..f35b954b0fc 100644 --- a/boehm-gc/aclocal.m4 +++ b/boehm-gc/aclocal.m4 @@ -10,13 +10,26 @@ dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A dnl PARTICULAR PURPOSE. +# Copyright (c) 1999-2001 by Red Hat, Inc. All rights reserved. +# +# THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED +# OR IMPLIED. ANY USE IS AT YOUR OWN RISK. +# +# Permission is hereby granted to use or copy this program +# for any purpose, provided the above notices are retained on all copies. +# Permission to modify the code and to distribute modified code is granted, +# provided the above notices are retained, and a notice that the code was +# modified is included with the above copyright notice. +# +# Original author: Tom Tromey + # FIXME: We temporarily define our own version of AC_PROG_CC. This is # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We # are probably using a cross compiler, which will not be able to fully # link an executable. This should really be fixed in autoconf # itself. -AC_DEFUN(BOEHM_CONFIGURE, +AC_DEFUN(GC_CONFIGURE, [ dnl Default to --enable-multilib AC_ARG_ENABLE(multilib, @@ -30,17 +43,18 @@ AC_ARG_ENABLE(multilib, dnl We may get other options which we don't document: dnl --with-target-subdir, --with-multisrctop, --with-multisubdir +dnl I needed to add the -n test to allow configuration in src directory - HB if test "[$]{srcdir}" = "."; then - if test "[$]{with_target_subdir}" != "."; then - boehm_gc_basedir="[$]{srcdir}/[$]{with_multisrctop}../$1" + if test "[$]{with_target_subdir}" != "." -a -n "[$]{with_target_subdir}"; then + gc_basedir="[$]{srcdir}/[$]{with_multisrctop}../$1" else - boehm_gc_basedir="[$]{srcdir}/[$]{with_multisrctop}$1" + gc_basedir="[$]{srcdir}/[$]{with_multisrctop}$1" fi else - boehm_gc_basedir="[$]{srcdir}/$1" + gc_basedir="[$]{srcdir}/$1" fi -AC_SUBST(boehm_gc_basedir) -AC_CONFIG_AUX_DIR($boehm_gc_basedir/..) +AC_SUBST(gc_basedir) +AC_CONFIG_AUX_DIR($gc_basedir/..) if :; then :; else # This overrides the previous occurrence for automake, but not for # autoconf, which is exactly what we want. @@ -53,7 +67,7 @@ AC_CANONICAL_SYSTEM mkinstalldirs="`cd $ac_aux_dir && pwd`/mkinstalldirs" AC_SUBST(mkinstalldirs) -AM_INIT_AUTOMAKE(boehm-gc, 5.1, no-define) +AM_INIT_AUTOMAKE(gc, 6.0, no-define) # FIXME: We temporarily define our own version of AC_PROG_CC. This is # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We @@ -162,22 +176,22 @@ fi . [$]{srcdir}/configure.host -case [$]{boehm_gc_basedir} in -/* | [A-Za-z]:[/\\]*) boehm_gc_flagbasedir=[$]{boehm_gc_basedir} ;; -*) boehm_gc_flagbasedir='[$](top_builddir)/'[$]{boehm_gc_basedir} ;; +case [$]{gc_basedir} in +/* | [A-Za-z]:[/\\]*) gc_flagbasedir=[$]{gc_basedir} ;; +*) gc_flagbasedir='[$](top_builddir)/'[$]{gc_basedir} ;; esac -boehm_gc_cflags="[$]{boehm_gc_cflags} -I"'[$](top_builddir)'"/$1/targ-include -I[$]{boehm_gc_flagbasedir}/libc/include" +gc_cflags="[$]{gc_cflags} -I"'[$](top_builddir)'"/$1/targ-include -I[$]{gc_flagbasedir}/libc/include" case "${host}" in *-*-cygwin32*) - boehm_gc_cflags="[$]{boehm_gc_cflags} -I[$]{boehm_gc_flagbasedir}/../winsup/include" + gc_cflags="[$]{gc_cflags} -I[$]{gc_flagbasedir}/../winsup/include" ;; esac -boehm_gc_cflags="[$]{boehm_gc_cflags} -fno-builtin" +dnl gc_cflags="[$]{gc_cflags} -fno-builtin" -BOEHM_GC_CFLAGS=${boehm_gc_cflags} -AC_SUBST(BOEHM_GC_CFLAGS) +GC_CFLAGS=${gc_cflags} +AC_SUBST(GC_CFLAGS) ])) )))) |