acinclude.m4 (GLIBCPP_ENABLE_SHADOW): New macro, stub.

2000-05-16  Phil Edwards  <pme@sourceware.cygnus.com>

	* acinclude.m4 (GLIBCPP_ENABLE_SHADOW):  New macro, stub.
	* aclocal.m4:  Regenerate.
	* configure.in:  Call.
	* configure:  Regenerate.
	* docs/configopts.html:  Stub documentation.

From-SVN: r33936
This commit is contained in:
Phil Edwards 2000-05-16 17:06:39 +00:00 committed by Phil Edwards
parent 317d4315c2
commit 99246c9013
6 changed files with 277 additions and 186 deletions

View File

@ -1,3 +1,11 @@
2000-05-16 Phil Edwards <pme@sourceware.cygnus.com>
* acinclude.m4 (GLIBCPP_ENABLE_SHADOW): New macro, stub.
* aclocal.m4: Regenerate.
* configure.in: Call.
* configure: Regenerate.
* docs/configopts.html: Stub documentation.
2000-05-14 Nathan Myers <ncm@cantrip.org>
* mkcshadow: build in more-correct directory, create cshadow/

View File

@ -928,13 +928,39 @@ AC_DEFUN(GLIBCPP_ENABLE_LONG_LONG, [dnl
])
dnl
dnl Check for certain special build configurations.
dnl
dnl GLIBCPP_ENABLE_SHADOW
dnl --enable-shadow-headers [does stuff].
dnl --disable-shadow-headers [does not do stuff].
dnl + This will eventually need to be on by default.
dnl + Usage: GLIBCPP_ENABLE_SHADOW[(DEFAULT)]
dnl Where DEFAULT is either `yes' or `no'. If ommitted, it
dnl defaults to `no'.
AC_DEFUN(GLIBCPP_ENABLE_SHADOW, [dnl
define([GLIBCPP_ENABLE_SHADOW_DEFAULT], ifelse($1, yes, yes, no))dnl
AC_ARG_ENABLE(debug,
changequote(<<, >>)dnl
<< --enable-shadow-headers construct "shadowed" C header files for
g++ [default=>>GLIBCPP_ENABLE_SHADOW_DEFAULT],
changequote([, ])dnl
[case "$enableval" in
yes) enable_shadow_headers=yes ;;
no) enable_shadow_headers=no ;;
*) AC_MSG_ERROR([Unknown argument to enable/disable shadowed C headers]) ;;
esac],
enable_debug=GLIBCPP_ENABLE_SHADOW_DEFAULT)dnl
dnl Option parsed, now set things appropriately
case "$enable_debug" in
yes)
SHADOW_INCLUDES="-I -am -the -walrus"
;;
no)
SHADOW_INCLUDES=''
;;
esac
AC_SUBST(SHADOW_INCLUDES)
])

View File

@ -940,14 +940,40 @@ AC_DEFUN(GLIBCPP_ENABLE_LONG_LONG, [dnl
])
dnl
dnl Check for certain special build configurations.
dnl
dnl GLIBCPP_ENABLE_SHADOW
dnl --enable-shadow-headers [does stuff].
dnl --disable-shadow-headers [does not do stuff].
dnl + This will eventually need to be on by default.
dnl + Usage: GLIBCPP_ENABLE_SHADOW[(DEFAULT)]
dnl Where DEFAULT is either `yes' or `no'. If ommitted, it
dnl defaults to `no'.
AC_DEFUN(GLIBCPP_ENABLE_SHADOW, [dnl
define([GLIBCPP_ENABLE_SHADOW_DEFAULT], ifelse($1, yes, yes, no))dnl
AC_ARG_ENABLE(debug,
changequote(<<, >>)dnl
<< --enable-shadow-headers construct "shadowed" C header files for
g++ [default=>>GLIBCPP_ENABLE_SHADOW_DEFAULT],
changequote([, ])dnl
[case "$enableval" in
yes) enable_shadow_headers=yes ;;
no) enable_shadow_headers=no ;;
*) AC_MSG_ERROR([Unknown argument to enable/disable shadowed C headers]) ;;
esac],
enable_debug=GLIBCPP_ENABLE_SHADOW_DEFAULT)dnl
dnl Option parsed, now set things appropriately
case "$enable_debug" in
yes)
SHADOW_INCLUDES="-I -am -the -walrus"
;;
no)
SHADOW_INCLUDES=''
;;
esac
AC_SUBST(SHADOW_INCLUDES)
])

361
libstdc++-v3/configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -28,6 +28,7 @@ GLIBCPP_CHECK_CPU
GLIBCPP_ENABLE_DEBUG
GLIBCPP_ENABLE_CSTDIO
GLIBCPP_ENABLE_LONG_LONG
GLIBCPP_ENABLE_SHADOW(no)
GLIBCPP_ENABLE_THREADS
#GLIBCPP_ENABLE_RELIBGCC([../..])
GLIBCPP_ENABLE_CXX_FLAGS([none])

View File

@ -9,7 +9,7 @@
<TITLE>libstdc++-v3 configure options</TITLE>
<LINK REL="home" HREF="http://sourceware.cygnus.com/libstdc++/">
<LINK REL=StyleSheet HREF="lib3styles.css">
<!-- $Id: configopts.html,v 1.1 2000/04/21 20:33:30 bkoz Exp $ -->
<!-- $Id: configopts.html,v 1.2 2000/05/09 20:25:13 pme Exp $ -->
</HEAD>
<BODY>
@ -87,6 +87,11 @@ options</A></H1>
the global namespace.
</P>
<DT><TT>--enable-shadow-headers </TT>
<DD><P>This turns on the code to construct shadowed C headers. Very
experimental as of this writing.
</P>
<DT><TT>--enable-threads </TT>
<DD><P>This is an abbreviated form of <TT>'--enable-threads=yes'</TT>
(described next).
@ -154,7 +159,7 @@ options</A></H1>
<HR>
<P CLASS="fineprint"><EM>
$Id: configopts.html,v 1.1 2000/04/21 20:33:30 bkoz Exp $
$Id: configopts.html,v 1.2 2000/05/09 20:25:13 pme Exp $
</EM></P>