aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-05-19 13:02:46 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-05-19 13:02:46 +0000
commit90632c63787bf9fcf78e15b04cc33a060d3971c6 (patch)
tree02c58de05da1433f0b4d370abf94c9cd3e4d2aa0 /configure.ac
parentc2a3f405f8ce31b9fca29a4eb0021e8e46d22fa9 (diff)
downloadpaludis-90632c63787bf9fcf78e15b04cc33a060d3971c6.tar.gz
paludis-90632c63787bf9fcf78e15b04cc33a060d3971c6.tar.xz
Make Python less noisy
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac6
1 files changed, 6 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 91a747324..13fca4557 100644
--- a/configure.ac
+++ b/configure.ac
@@ -426,6 +426,7 @@ PALUDIS_CXXFLAGS_NO_WREDUNDANT_DECLS=
PALUDIS_CXXFLAGS_NO_WSHADOW=
PALUDIS_CXXFLAGS_NO_WUNUSED=
PALUDIS_CXXFLAGS_NO_WEXTRA=
+PALUDIS_CXXFLAGS_NO_WWRITE_STRINGS=
PALUDIS_CXXFLAGS_WITHOUT_PEDANTIC=
PALUDIS_CXXFLAGS_VISIBILITY=
AC_MSG_CHECKING([whether our compiler is iccy])
@@ -502,6 +503,10 @@ elif test "x${ac_cv_cxx_compiler_gnu}" = "xyes" ; then
PALUDIS_CXXFLAGS_WITHOUT_PEDANTIC=$PALUDIS_CXXFLAGS
CHECK_CXXFLAG([-Wlogical-op])
CHECK_CXXFLAG([-Wvla])
+ CHECK_CXXFLAG([-Wwrite-strings])
+ if test "x$cxxflag_success" = "xyes" ; then
+ PALUDIS_CXXFLAGS_NO_WWRITE_STRINGS=-Wno-write-strings
+ fi
CHECK_CXXFLAG([-pedantic])
else
CHECK_CXXFLAG([-Wall])
@@ -514,6 +519,7 @@ AC_SUBST([PALUDIS_CXXFLAGS_NO_WSHADOW])
AC_SUBST([PALUDIS_CXXFLAGS_NO_WREDUNDANT_DECLS])
AC_SUBST([PALUDIS_CXXFLAGS_NO_WEXTRA])
AC_SUBST([PALUDIS_CXXFLAGS_NO_WUNUSED])
+AC_SUBST([PALUDIS_CXXFLAGS_NO_WWRITE_STRINGS])
AC_MSG_CHECKING([whether to enable visibility])
AC_ARG_ENABLE([visibility],