diff options
author | Christian Persch <chpe@svn.gnome.org> | 2007-01-29 21:58:58 +0000 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2007-01-29 21:58:58 +0000 |
commit | cfddda64894c4033a5924fdafde7706a89699191 (patch) | |
tree | dcbe755951129bd32a9d4e115a27ca15ac55b332 | |
parent | 01f5dff368a262d7e0ac909823fa178517c9c43c (diff) | |
download | shared-mime-info-cfddda64894c4033a5924fdafde7706a89699191.tar.gz |
Fix --enable-cxx-warnings checks. Bug #360693.
2007-01-29 Christian Persch <chpe@svn.gnome.org>
* macros2/gnome-compiler-flags.m4:
Fix --enable-cxx-warnings checks. Bug #360693.
svn path=/trunk/; revision=3900
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | macros2/gnome-compiler-flags.m4 | 8 |
2 files changed, 9 insertions, 4 deletions
@@ -1,3 +1,8 @@ +2007-01-29 Christian Persch <chpe@svn.gnome.org> + + * macros2/gnome-compiler-flags.m4: + Fix --enable-cxx-warnings checks. Bug #360693. + 2007-01-12 Shaun McCance <shaunm@gnome.org> * macros2/gnome-autogen.sh: diff --git a/macros2/gnome-compiler-flags.m4 b/macros2/gnome-compiler-flags.m4 index 73681784..b9db2fd7 100644 --- a/macros2/gnome-compiler-flags.m4 +++ b/macros2/gnome-compiler-flags.m4 @@ -95,11 +95,11 @@ AC_DEFUN([GNOME_CXX_WARNINGS],[ AC_MSG_CHECKING(what warning flags to pass to the C++ compiler) warnCXXFLAGS= - if test "x$GCC" != xyes; then - enable_compile_warnings=no + if test "x$GXX" != xyes; then + enable_cxx_warnings=no fi if test "x$enable_cxx_warnings" != "xno"; then - if test "x$GCC" = "xyes"; then + if test "x$GXX" = "xyes"; then case " $CXXFLAGS " in *[\ \ ]-Wall[\ \ ]*) ;; *) warnCXXFLAGS="-Wall -Wno-unused" ;; @@ -122,7 +122,7 @@ AC_DEFUN([GNOME_CXX_WARNINGS],[ AC_MSG_CHECKING(what language compliance flags to pass to the C++ compiler) complCXXFLAGS= if test "x$enable_iso_cxx" != "xno"; then - if test "x$GCC" = "xyes"; then + if test "x$GXX" = "xyes"; then case " $CXXFLAGS " in *[\ \ ]-ansi[\ \ ]*) ;; *) complCXXFLAGS="$complCXXFLAGS -ansi" ;; |