This is the mail archive of the
libstdc++@sourceware.cygnus.com
mailing list for the libstdc++ project.
Re: [CVS gcc "gcc" patch] v2 + v3, --enable-libstdcxx-v3
- To: libstdc++ at sourceware dot cygnus dot com
- Subject: Re: [CVS gcc "gcc" patch] v2 + v3, --enable-libstdcxx-v3
- From: Benjamin Kosnik <bkoz at cygnus dot com>
- Date: Wed, 5 Apr 2000 12:21:50 -0700
take two,
2000-04-05 Benjamin Kosnik <bkoz@cygnus.com>
* configure.in: And here.
* configure: Regenerate.
* acconfig.h: Add ENABLE_STD_NAMESPACE to set flag_honor_std if
--enable-libstdcxx-v3 is passed at configure time.
* config.h.in: Regenerate.
Index: configure.in
===================================================================
RCS file: /cvs/gcc/egcs/gcc/configure.in,v
retrieving revision 1.351
diff -u -p -c -p -r1.351 configure.in
*** configure.in 2000/04/05 07:34:36 1.351
--- configure.in 2000/04/05 19:19:55
*************** echo "Building a new-abi g++ compiler."
*** 4601,4606 ****
--- 4601,4621 ----
])
AC_SUBST(GXX_ABI_FLAG)
+ # Build a new-libstdc++ system (ie libstdc++-v3)
+ AC_MSG_CHECKING([for libstdc++ to install])
+ AC_ARG_ENABLE(libstdcxx-v3,
+ [ --enable-libstdcxx-v3
+ enable libstdc++-v3 for building and installation],
+ [enable_libstdcxx_v3=yes], [enable_libstdcxx_v3=no])
+
+ if test x$enable_libstdcxx_v3 = xyes; then
+ AC_MSG_RESULT(v3)
+ AC_DEFINE(ENABLE_STD_NAMESPACE)
+ else
+ AC_MSG_RESULT(v2)
+ fi
+
+
# Make empty files to contain the specs and options for each language.
# Then add #include lines to for a compiler that has specs and/or options.
Index: acconfig.h
===================================================================
RCS file: /cvs/gcc/egcs/gcc/acconfig.h,v
retrieving revision 1.44
diff -u -p -c -p -r1.44 acconfig.h
*** acconfig.h 2000/04/05 07:34:36 1.44
--- acconfig.h 2000/04/05 19:20:12
***************
*** 4,9 ****
--- 4,15 ----
/* Define if printf supports "%p". */
#undef HAVE_PRINTF_PTR
+ /* Define if you want to enable namespaces (-fhonor-std) by default. */
+ #undef ENABLE_STD_NAMESPACE
+ #if !defined(ENABLE_STD_NAMESPACE)
+ # define ENABLE_STD_NAMESPACE 0
+ #endif
+
/* Define if you want to always select the new-abi for g++. */
#undef ENABLE_NEW_GXX_ABI