From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Q3SXh-0006Ad-T1 for garchives@archives.gentoo.org; Sat, 26 Mar 2011 12:24:34 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2CE731C01B; Sat, 26 Mar 2011 12:24:12 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id F0B301C013 for ; Sat, 26 Mar 2011 12:24:11 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 55C0C1B411F for ; Sat, 26 Mar 2011 12:24:11 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id BF8EE8005E for ; Sat, 26 Mar 2011 12:24:10 +0000 (UTC) From: "Petteri Räty" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Petteri Räty" Message-ID: <986ef45bb379a1f70061498613a6284dbf8d28aa.betelgeuse@gentoo> Subject: [gentoo-commits] proj/libbash:master commit in: / X-VCS-Repository: proj/libbash X-VCS-Files: Makefile.am configure.ac X-VCS-Directories: / X-VCS-Committer: betelgeuse X-VCS-Committer-Name: Petteri Räty X-VCS-Revision: 986ef45bb379a1f70061498613a6284dbf8d28aa Date: Sat, 26 Mar 2011 12:24:10 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 8bb68a3c6ad922abe0709f595f80adb2 commit: 986ef45bb379a1f70061498613a6284dbf8d28aa Author: Petteri R=C3=A4ty petteriraty eu> AuthorDate: Sat Mar 26 10:09:06 2011 +0000 Commit: Petteri R=C3=A4ty gentoo org> CommitDate: Sat Mar 26 11:16:22 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/libbash.git;a= =3Dcommit;h=3D986ef45b Enable libstdc++ debug mode for developers --- Makefile.am | 6 +++++- configure.ac | 7 ++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/Makefile.am b/Makefile.am index 229c11a..21342d5 100644 --- a/Makefile.am +++ b/Makefile.am @@ -55,7 +55,11 @@ COMMON_FLAGS =3D $(BOOST_CPPFLAGS) -std=3Dc++0x -I$(to= p_srcdir)/src/ # code embedded in them. # no DEVELOPER_FLAGS to as the generated files don't pass -Werror AM_CFLAGS =3D -x c++ $(COMMON_FLAGS) -AM_CXXFLAGS =3D $(COMMON_FLAGS) @DEVELOPER_FLAGS@ +AM_CXXFLAGS =3D $(COMMON_FLAGS) +if DEVELOPER_MODE +AM_CXXFLAGS +=3D -Wall -Werror +AM_CPPFLAGS =3D -D_GLIBCXX_DEBUG +endif =20 if HAVE_GTEST TESTS +=3D core_unittests builtin_unittests post_check diff --git a/configure.ac b/configure.ac index 27276fa..445460e 100644 --- a/configure.ac +++ b/configure.ac @@ -24,9 +24,10 @@ AC_PROG_CXX LT_INIT =20 AC_ARG_ENABLE([developer], - [AS_HELP_STRING([--enable-developer],[makes compiler warnings error= s])], - [AS_IF([test "x$enable_developer" !=3D xno],[AC_SUBST(DEVELOPER_FLA= GS,["-Wall -Werror"])]])) -AS_IF([test "x$enable_developer" !=3D xno],[boost_version=3D"1.46.1"],[b= oost_version=3D"1.43.0"]) + [AS_HELP_STRING([--enable-developer],[enables various QA checks])]) +AM_CONDITIONAL([DEVELOPER_MODE],[test "x$enable_developer" =3D xyes]) + +AS_IF([test "x$enable_developer" =3D xyes],[boost_version=3D"1.46.1"],[b= oost_version=3D"1.43.0"]) AX_BOOST_BASE([$boost_version],[:], [AC_MSG_ERROR([Needed boost not found])]) AX_BOOST_SYSTEM