https://svn.lrde.epita.fr/svn/oln/trunk
Index: ChangeLog
from Roland Levillain <roland(a)lrde.epita.fr>
Fix CXXFLAGS usage.
* configure.ac: Erase CXXFLAGS if the user doesn't set it.
configure.ac | 6 ++++++
extended/ChangeLog | 4 ++++
extended/tests/Makefile.am | 7 +++----
metalic/ChangeLog | 4 ++++
metalic/tests/Makefile.am | 7 +++----
olena/ChangeLog | 7 +++++++
olena/tests/algorithms/Makefile.am | 8 ++++----
olena/tests/core/Makefile.am | 8 ++++----
olena/tests/io/Makefile.am | 8 ++++----
olena/tests/morphers/Makefile.am | 8 ++++----
olena/tests/value/Makefile.am | 8 ++++----
static/ChangeLog | 5 +++++
static/stc/scoop.hh | 3 ++-
static/tests/Makefile.am | 7 +++----
14 files changed, 57 insertions(+), 33 deletions(-)
Index: extended/tests/Makefile.am
--- extended/tests/Makefile.am (revision 689)
+++ extended/tests/Makefile.am (working copy)
@@ -6,11 +6,10 @@
#
# AM_CXXFLAGS = $(CXXFLAGS_STRICT) $(CXXFLAGS_DEBUG)
#
-# when oln.m4 is available in the distribution.
-# Meanwhile, alter CXXFLAGS to turn off any optimization (Automake will
-# warn against this, but that's OK).
+# when oln.m4 is available in the distribution, instead of using the
+# set-by-hand TESTS_CXXFLAGS.
TESTS_CXXFLAGS = @TESTS_CXXFLAGS@
-CXXFLAGS += $(TESTS_CXXFLAGS)
+AM_CXXFLAGS = $(TESTS_CXXFLAGS)
check_PROGRAMS = \
Index: extended/ChangeLog
--- extended/ChangeLog (revision 689)
+++ extended/ChangeLog (working copy)
@@ -1,3 +1,7 @@
+2006-10-31 Roland Levillain <roland(a)lrde.epita.fr>
+
+ * tests/Makefile.am: Alter AM_CXXFLAGS instead of CXXFLAGS.
+
2006-10-27 Roland Levillain <roland(a)lrde.epita.fr>
Fix the distribution.
Index: configure.ac
--- configure.ac (revision 689)
+++ configure.ac (working copy)
@@ -23,6 +23,12 @@
## C++ compiler set up. ##
## --------------------- ##
+# If the user doesn't provide any CXXFLAGS, prevent Autoconf from
+# settings its own default ones (e.g., `-g -O2' for g++).
+if test ! ${CXXFLAGS+set}; then
+ CXXFLAGS=""
+fi
+
# Look for a C++ compiler.
AC_LANG([C++])
AC_PROG_CXX
Index: static/tests/Makefile.am
--- static/tests/Makefile.am (revision 689)
+++ static/tests/Makefile.am (working copy)
@@ -6,11 +6,10 @@
#
# AM_CXXFLAGS = $(CXXFLAGS_STRICT) $(CXXFLAGS_DEBUG)
#
-# when oln.m4 is available in the distribution.
-# Meanwhile, alter CXXFLAGS to turn off any optimization (Automake will
-# warn against this, but that's OK).
+# when oln.m4 is available in the distribution, instead of using the
+# set-by-hand TESTS_CXXFLAGS.
TESTS_CXXFLAGS = @TESTS_CXXFLAGS@
-CXXFLAGS += $(TESTS_CXXFLAGS)
+AM_CXXFLAGS = $(TESTS_CXXFLAGS)
check_PROGRAMS = \
Index: static/ChangeLog
--- static/ChangeLog (revision 689)
+++ static/ChangeLog (working copy)
@@ -1,3 +1,8 @@
+2006-10-31 Roland Levillain <roland(a)lrde.epita.fr>
+
+ * tests/Makefile.am: Alter AM_CXXFLAGS instead of CXXFLAGS.
+ * stc/scoop.hh: Fix comment.
+
2006-10-09 Thierry GERAUD <theo(a)tegucigalpa.lrde.epita.fr>
* stc/scoop.hh (stc_virtual_typedef): Remove this macro which
Index: static/stc/scoop.hh
--- static/stc/scoop.hh (revision 689)
+++ static/stc/scoop.hh (working copy)
@@ -63,7 +63,7 @@
namespace stc
{
- /// Error messages raised by static assertions.
+ /// Error messages raised by static assertions/abortions.
namespace ERROR
{
@@ -203,6 +203,7 @@
\
/** Accessor helper: specializations for the case of two super */ \
/** classes or more. */ \
+ /* FIXME: Currently works only for 2 and 3 super types. */ \
template <typename super1, typename super2, typename super3> \
struct get_super_types_helper< mlc::valist_ <super1, super2, super3> >
\
{ \
Index: metalic/tests/Makefile.am
--- metalic/tests/Makefile.am (revision 689)
+++ metalic/tests/Makefile.am (working copy)
@@ -6,11 +6,10 @@
#
# AM_CXXFLAGS = $(CXXFLAGS_STRICT) $(CXXFLAGS_DEBUG)
#
-# when oln.m4 is available in the distribution.
-# Meanwhile, alter CXXFLAGS to turn off any optimization (Automake will
-# warn against this, but that's OK).
+# when oln.m4 is available in the distribution, instead of using the
+# set-by-hand TESTS_CXXFLAGS.
TESTS_CXXFLAGS = @TESTS_CXXFLAGS@
-CXXFLAGS += $(TESTS_CXXFLAGS)
+AM_CXXFLAGS = $(TESTS_CXXFLAGS)
check_PROGRAMS = \
Index: metalic/ChangeLog
--- metalic/ChangeLog (revision 689)
+++ metalic/ChangeLog (working copy)
@@ -1,3 +1,7 @@
+2006-10-31 Roland Levillain <roland(a)lrde.epita.fr>
+
+ * tests/Makefile.am: Alter AM_CXXFLAGS instead of CXXFLAGS.
+
2006-10-27 Roland Levillain <roland(a)lrde.epita.fr>
Fix the distribution.
Index: olena/tests/morphers/Makefile.am
--- olena/tests/morphers/Makefile.am (revision 689)
+++ olena/tests/morphers/Makefile.am (working copy)
@@ -12,11 +12,11 @@
#
# AM_CXXFLAGS = $(CXXFLAGS_STRICT) $(CXXFLAGS_DEBUG)
#
-# when oln.m4 is available in the distribution.
-# Meanwhile, alter CXXFLAGS to turn off any optimization (Automake will
-# warn against this, but that's OK).
+# when oln.m4 is available in the distribution, instead of using the
+# set-by-hand TESTS_CXXFLAGS.
TESTS_CXXFLAGS = @TESTS_CXXFLAGS@
-CXXFLAGS += $(TESTS_CXXFLAGS)
+AM_CXXFLAGS = $(TESTS_CXXFLAGS)
+
check_PROGRAMS = \
identity_morpher \
Index: olena/tests/io/Makefile.am
--- olena/tests/io/Makefile.am (revision 689)
+++ olena/tests/io/Makefile.am (working copy)
@@ -12,11 +12,11 @@
#
# AM_CXXFLAGS = $(CXXFLAGS_STRICT) $(CXXFLAGS_DEBUG)
#
-# when oln.m4 is available in the distribution.
-# Meanwhile, alter CXXFLAGS to turn off any optimization (Automake will
-# warn against this, but that's OK).
+# when oln.m4 is available in the distribution, instead of using the
+# set-by-hand TESTS_CXXFLAGS.
TESTS_CXXFLAGS = @TESTS_CXXFLAGS@
-CXXFLAGS += $(TESTS_CXXFLAGS)
+AM_CXXFLAGS = $(TESTS_CXXFLAGS)
+
check_PROGRAMS = \
io_pnm
Index: olena/tests/core/Makefile.am
--- olena/tests/core/Makefile.am (revision 689)
+++ olena/tests/core/Makefile.am (working copy)
@@ -12,11 +12,11 @@
#
# AM_CXXFLAGS = $(CXXFLAGS_STRICT) $(CXXFLAGS_DEBUG)
#
-# when oln.m4 is available in the distribution.
-# Meanwhile, alter CXXFLAGS to turn off any optimization (Automake will
-# warn against this, but that's OK).
+# when oln.m4 is available in the distribution, instead of using the
+# set-by-hand TESTS_CXXFLAGS.
TESTS_CXXFLAGS = @TESTS_CXXFLAGS@
-CXXFLAGS += $(TESTS_CXXFLAGS)
+AM_CXXFLAGS = $(TESTS_CXXFLAGS)
+
check_PROGRAMS = \
dpoint2d \
Index: olena/tests/algorithms/Makefile.am
--- olena/tests/algorithms/Makefile.am (revision 689)
+++ olena/tests/algorithms/Makefile.am (working copy)
@@ -16,11 +16,11 @@
#
# AM_CXXFLAGS = $(CXXFLAGS_STRICT) $(CXXFLAGS_DEBUG)
#
-# when oln.m4 is available in the distribution.
-# Meanwhile, alter CXXFLAGS to turn off any optimization (Automake will
-# warn against this, but that's OK).
+# when oln.m4 is available in the distribution, instead of using the
+# set-by-hand TESTS_CXXFLAGS.
TESTS_CXXFLAGS = @TESTS_CXXFLAGS@
-CXXFLAGS += $(TESTS_CXXFLAGS)
+AM_CXXFLAGS = $(TESTS_CXXFLAGS)
+
check_PROGRAMS = \
fill
Index: olena/tests/value/Makefile.am
--- olena/tests/value/Makefile.am (revision 689)
+++ olena/tests/value/Makefile.am (working copy)
@@ -12,11 +12,11 @@
#
# AM_CXXFLAGS = $(CXXFLAGS_STRICT) $(CXXFLAGS_DEBUG)
#
-# when oln.m4 is available in the distribution.
-# Meanwhile, alter CXXFLAGS to turn off any optimization (Automake will
-# warn against this, but that's OK).
+# when oln.m4 is available in the distribution, instead of using the
+# set-by-hand TESTS_CXXFLAGS.
TESTS_CXXFLAGS = @TESTS_CXXFLAGS@
-CXXFLAGS += $(TESTS_CXXFLAGS)
+AM_CXXFLAGS = $(TESTS_CXXFLAGS)
+
check_PROGRAMS = \
accessor \
Index: olena/ChangeLog
--- olena/ChangeLog (revision 689)
+++ olena/ChangeLog (working copy)
@@ -1,3 +1,10 @@
+2006-10-31 Roland Levillain <roland(a)lrde.epita.fr>
+
+ * tests/algorithms/Makefile.am, tests/core/Makefile.am,
+ * tests/io/Makefile.am, tests/morphers/Makefile.am,
+ * tests/value/Makefile.am, tests/value/Makefile.am:
+ Alter AM_CXXFLAGS instead of CXXFLAGS.
+
2006-10-27 Roland Levillain <roland(a)lrde.epita.fr>
Various fixes.