Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2006-07-25 12:39:57 +0400
committerPaolo Bonzini <pbonzini@redhat.com>2006-07-25 12:39:57 +0400
commitc684482df781c15e444220aceba4b9fd2a3f2629 (patch)
tree3ab3cdce82529d24e4e802dce0fb5f9504aba5c5 /config/gxx-include-dir.m4
parentaee7eefa4df20635befcfa3b8919ffccad3c7c35 (diff)
Sync from GCC
2006-07-04 Eric Botcazou <ebotcazou@libertysurf.fr> PR bootstrap/18058 * configure.in: Add -fkeep-inline-functions to CFLAGS for stage 1 if the bootstrap compiler is a GCC version that supports it. * configure: Regenerate. config: 2006-07-21 David Daney <ddaney@avtrex.com> PR libgcj/28426 * gxx-include-dir.m4: Use target_alias in path for cross build.
Diffstat (limited to 'config/gxx-include-dir.m4')
-rw-r--r--config/gxx-include-dir.m48
1 files changed, 7 insertions, 1 deletions
diff --git a/config/gxx-include-dir.m4 b/config/gxx-include-dir.m4
index 0e6e4ffc3..4f54d427f 100644
--- a/config/gxx-include-dir.m4
+++ b/config/gxx-include-dir.m4
@@ -17,7 +17,13 @@ case "${with_gxx_include_dir}" in
yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
*)
libstdcxx_incdir='c++/$(gcc_version)'
- gxx_include_dir='$(prefix)/include/$(libstdcxx_incdir)' ;;
+ gxx_include_dir='include/$(libstdcxx_incdir)'
+ if test -n "$with_cross_host" &&
+ test x"$with_cross_host" != x"no"; then
+ gxx_include_dir='${prefix}/${target_alias}/'"$gxx_include_dir"
+ else
+ gxx_include_dir='${prefix}/'"$gxx_include_dir"
+ fi;;
esac ;;
*) gxx_include_dir=${with_gxx_include_dir} ;;
esac