diff options
author | infirit <[email protected]> | 2013-10-21 17:29:09 +0200 |
---|---|---|
committer | infirit <[email protected]> | 2013-10-21 17:30:08 +0200 |
commit | ca9f84d88073cb5eac19716dd2a55b88600891b5 (patch) | |
tree | cdbd7f075bed983f5414299f833672b2ac495c04 | |
parent | 4faae133cefe118792509638d2d7284993d2091b (diff) | |
download | mate-media-ca9f84d88073cb5eac19716dd2a55b88600891b5.tar.bz2 mate-media-ca9f84d88073cb5eac19716dd2a55b88600891b5.tar.xz |
just use MATE_COMPILE_WARNINGS(maximum) and remove custom macros
-rw-r--r-- | configure.ac | 10 | ||||
-rw-r--r-- | m4/as-compiler-flag.m4 | 33 |
2 files changed, 1 insertions, 42 deletions
diff --git a/configure.ac b/configure.ac index d7b068d..55beeac 100644 --- a/configure.ac +++ b/configure.ac @@ -44,15 +44,7 @@ AC_PROG_GCC_TRADITIONAL AC_FUNC_MMAP # CFLAGS -MATE_COMPILE_WARNINGS - -AS_COMPILER_FLAG(-Wall, GM_ERROR_CFLAGS="-Wall") - -if test "x$GM_RELEASE" = "xno" -then - AS_COMPILER_FLAG(-Werror, GM_ERROR_CFLAGS="$GM_ERROR_CFLAGS -Werror") -fi -AC_MSG_NOTICE([Using $GM_ERROR_CFLAGS as error checking CFLAGS]) +MATE_COMPILE_WARNINGS(maximum) GLIB_REQUIRED_VERSION=2.18.2 GIO_REQUIRED_VERSION=2.25.0 diff --git a/m4/as-compiler-flag.m4 b/m4/as-compiler-flag.m4 deleted file mode 100644 index c828bf4..0000000 --- a/m4/as-compiler-flag.m4 +++ /dev/null @@ -1,33 +0,0 @@ -dnl as-compiler-flag.m4 0.1.0 - -dnl autostars m4 macro for detection of compiler flags - -dnl David Schleef <[email protected]> - -dnl $Id: as-compiler-flag.m4,v 1.1 2004/06/01 10:08:56 thomasvs Exp $ - -dnl AS_COMPILER_FLAG(CFLAGS, ACTION-IF-ACCEPTED, [ACTION-IF-NOT-ACCEPTED]) -dnl Tries to compile with the given CFLAGS. -dnl Runs ACTION-IF-ACCEPTED if the compiler can compile with the flags, -dnl and ACTION-IF-NOT-ACCEPTED otherwise. - -AC_DEFUN([AS_COMPILER_FLAG], -[ - AC_MSG_CHECKING([to see if compiler understands $1]) - - save_CFLAGS="$CFLAGS" - CFLAGS="$CFLAGS $1" - - AC_TRY_COMPILE([ ], [], [flag_ok=yes], [flag_ok=no]) - CFLAGS="$save_CFLAGS" - - if test "X$flag_ok" = Xyes ; then - $2 - true - else - $3 - true - fi - AC_MSG_RESULT([$flag_ok]) -]) - |