diff options
author | Paolo Bonzini <bonzini@gnu.org> | 2005-02-28 14:07:03 +0000 |
---|---|---|
committer | Paolo Bonzini <bonzini@gnu.org> | 2005-02-28 14:07:03 +0000 |
commit | b00612cca606ac97427efb061ec985bb772c749b (patch) | |
tree | 037c35cc54ed9aeed4606edde2ef9d83358ca88b /config/acx.m4 | |
parent | 5f0aed8e42239b933fc7d215f8344ddc6eef2c1d (diff) | |
download | gdb-b00612cca606ac97427efb061ec985bb772c749b.zip gdb-b00612cca606ac97427efb061ec985bb772c749b.tar.gz gdb-b00612cca606ac97427efb061ec985bb772c749b.tar.bz2 |
2005-02-28 Paolo Bonzini <bonzini@gnu.org>
Sync from gcc.
2005-02-28 Paolo Bonzini <bonzini@gnu.org>
PR bootstrap/17383
* Makefile.def (target_modules): Remove "stage", now unnecessary.
* Makefile.tpl (HOST_SUBDIR): New substitution.
(STAGE_HOST_EXPORTS, EXPECT, HOST_LIB_PATH, USUAL_AR_FOR_TARGET,
USUAL_AS_FOR_TARGET, USUAL_DLLTOOL_FOR_TARGET, USUAL_GCC_FOR_TARGET,
USUAL_LD_FOR_TARGET, USUAL_NM_FOR_TARGET, USUAL_OBJDUMP_FOR_TARGET,
USUAL_RANLIB_FOR_TARGET, USUAL_WINDRES_FOR_TARGET): Use it.
(Host modules, Bootstrapped modules): Use it.
(Build modules, Target modules): Do not create symlink trees,
always configure out-of-srcdir.
(distclean): Try removing $(host_subdir) with rm before using rm -rf.
* configure.in (FLAGS_FOR_TARGET, CC_FOR_TARGET, GCJ_FOR_TARGET,
GFORTRAN_FOR_TARGET, CXX_FOR_TARGET, RAW_CXX_FOR_TARGET): Use
$(HOST_SUBDIR). Create a symlink for host_subdir.
* Makefile.in: Regenerate.
* configure: Regenerate.
Merged from libada-gnattools-branch:
2004-11-28 Nathanael Nerode <neroden@gcc.gnu.org>
* Makefile.def: Add gnattools as a module, depending on target-libada.
* Makefile.in: Regenerate.
* configure.in: Include gnattools in host_tools; disable it if ada
is disabled.
* configure: Regenerate.
config:
2005-02-28 Paolo Bonzini <bonzini@gnu.org>
PR bootstrap/17383
* acx.m4 (GCC_TOPLEV_SUBDIRS): Set HOST_SUBDIR if an in-src
gcc build is going.
Diffstat (limited to 'config/acx.m4')
-rw-r--r-- | config/acx.m4 | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/config/acx.m4 b/config/acx.m4 index d4a583d..6d3e6d5 100644 --- a/config/acx.m4 +++ b/config/acx.m4 @@ -76,8 +76,13 @@ AC_DEFUN([GCC_TOPLEV_SUBDIRS], AC_REQUIRE([_GCC_TOPLEV_NONCANONICAL_BUILD]) []dnl # Prefix 'build-' so this never conflicts with target_subdir. build_subdir="build-${build_noncanonical}" -# Not really a subdirectory, but here for completeness. -host_subdir=. +# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories +if ( test $srcdir = . && test -d gcc ) \ + || test -d $srcdir/../host-${host_noncanonical}; then + host_subdir="host-${host_noncanonical}" +else + host_subdir=. +fi # No prefix. target_subdir=${target_noncanonical} AC_SUBST([build_subdir]) []dnl |