From ef226fecbeae89451529fc9094b4a2c2387f6884 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Wed, 28 Dec 2005 06:53:43 +0000 Subject: [PATCH] * config.make.in (c++-sysincludes): New substituted variable. * configure.in (CXX_SYSINCLUDES): New substituted variable. * configure: Regenerated. * Makeconfig (CXXFLAGS): Prepend $(c++-sysincludes) here. --- ChangeLog | 5 +++++ Makeconfig | 3 ++- config.make.in | 1 + configure | 11 ++++++++++- configure.in | 8 ++++++++ 5 files changed, 26 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index a2d062ebe4..fe454f1d2b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2005-12-27 Roland McGrath + * config.make.in (c++-sysincludes): New substituted variable. + * configure.in (CXX_SYSINCLUDES): New substituted variable. + * configure: Regenerated. + * Makeconfig (CXXFLAGS): Prepend $(c++-sysincludes) here. + * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE): Fix cast. diff --git a/Makeconfig b/Makeconfig index f32a19eab6..67f85c0905 100644 --- a/Makeconfig +++ b/Makeconfig @@ -651,7 +651,8 @@ override CFLAGS = -std=gnu99 \ $(filter-out %frame-pointer,$(+cflags)) $(+gccwarn-c) \ $(sysdep-CFLAGS) $(CFLAGS-$(suffix $@)) $(CFLAGS-$(&5` && + cxxmachine=`$CXX -dumpmachine 2>&5` && + cxxheaders=`$CXX -print-file-name=../../../../include/c++/`"$cxxversion" && + CXX_SYSINCLUDES="-isystem $cxxheaders \ +-isystem $cxxheaders/$cxxmachine -isystem $cxxheaders/backward" + fi fi + # check if ranlib is necessary echo "$as_me:$LINENO: checking whether ranlib is necessary" >&5 echo $ECHO_N "checking whether ranlib is necessary... $ECHO_C" >&6 @@ -8401,6 +8409,7 @@ s,@MAKEINFO@,$MAKEINFO,;t t s,@SED@,$SED,;t t s,@AUTOCONF@,$AUTOCONF,;t t s,@SYSINCLUDES@,$SYSINCLUDES,;t t +s,@CXX_SYSINCLUDES@,$CXX_SYSINCLUDES,;t t s,@libc_cv_gcc_static_libgcc@,$libc_cv_gcc_static_libgcc,;t t s,@BASH@,$BASH,;t t s,@libc_cv_have_bash2@,$libc_cv_have_bash2,;t t diff --git a/configure.in b/configure.in index ba7ca30b2f..4ae30ae2c9 100644 --- a/configure.in +++ b/configure.in @@ -838,8 +838,16 @@ if test -n "$sysheaders"; then ccheaders=`$CC -print-file-name=include` SYSINCLUDES="-nostdinc -isystem $ccheaders \ -isystem `echo $sysheaders | sed 's/:/ -isystem /g'`" + if test -n "$CXX"; then + cxxversion=`$CXX -dumpversion 2>&AS_MESSAGE_LOG_FD` && + cxxmachine=`$CXX -dumpmachine 2>&AS_MESSAGE_LOG_FD` && + cxxheaders=`$CXX -print-file-name=../../../../include/c++/`"$cxxversion" && + CXX_SYSINCLUDES="-isystem $cxxheaders \ +-isystem $cxxheaders/$cxxmachine -isystem $cxxheaders/backward" + fi fi AC_SUBST(SYSINCLUDES) +AC_SUBST(CXX_SYSINCLUDES) # check if ranlib is necessary AC_CACHE_CHECK(whether ranlib is necessary, libc_cv_ranlib_necessary, [dnl