This is the mail archive of the
libstdc++@sources.redhat.com
mailing list for the libstdc++ project.
V3 PATCH: Set CXX_libstcxx from CXX
- To: gcc-patches at gcc dot gnu dot org, libstdc++ at sources dot redhat dot com
- Subject: V3 PATCH: Set CXX_libstcxx from CXX
- From: Mark Mitchell <mark at codesourcery dot com>
- Date: Sat, 04 Nov 2000 18:39:53 -0800
- Organization: CodeSourcery, LLC
As dicussed previously, here's the V3 patch required to make configure
work again, when CXX is coming in from above.
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com
2000-11-04 Mark Mitchell <mark@codesourcery.com>
* acinclude.m4 (LIB_AC_PROG_CXX): Set CXX_libstdcxx from CXX.
* aclocal.m4: Regenerated.
* configure: Likewise.
Index: acinclude.m4
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/acinclude.m4,v
retrieving revision 1.84
diff -c -p -r1.84 acinclude.m4
*** acinclude.m4 2000/11/04 23:00:26 1.84
--- acinclude.m4 2000/11/05 02:37:53
*************** dnl Fool anybody using AC_PROG_CXX.
*** 90,96 ****
AC_PROVIDE([AC_PROG_CXX])
# Use CXX_libstdcxx so that we do not cause CXX to be cached with the
# flags that come in CXX while configuring libstdc++. They're different
! # from those used for all other target libraries.
AC_CHECK_PROGS(CXX_libstdcxx, "$CXX" "$CCC" c++ g++ gcc CC cxx cc++, gcc)
CXX=$CXX_libstdcxx
AC_SUBST(CXX)
--- 90,98 ----
AC_PROVIDE([AC_PROG_CXX])
# Use CXX_libstdcxx so that we do not cause CXX to be cached with the
# flags that come in CXX while configuring libstdc++. They're different
! # from those used for all other target libraries. If CXX is set in
! # the environment, respect that here.
! CXX_libstdcxx=$CXX
AC_CHECK_PROGS(CXX_libstdcxx, "$CXX" "$CCC" c++ g++ gcc CC cxx cc++, gcc)
CXX=$CXX_libstdcxx
AC_SUBST(CXX)