summaryrefslogtreecommitdiff
path: root/m4/as-compiler-flag.m4
diff options
context:
space:
mode:
authorinfirit <[email protected]>2013-10-21 17:29:09 +0200
committerinfirit <[email protected]>2013-10-21 17:30:08 +0200
commitca9f84d88073cb5eac19716dd2a55b88600891b5 (patch)
treecdbd7f075bed983f5414299f833672b2ac495c04 /m4/as-compiler-flag.m4
parent4faae133cefe118792509638d2d7284993d2091b (diff)
downloadmate-media-ca9f84d88073cb5eac19716dd2a55b88600891b5.tar.bz2
mate-media-ca9f84d88073cb5eac19716dd2a55b88600891b5.tar.xz
just use MATE_COMPILE_WARNINGS(maximum) and remove custom macros
Diffstat (limited to 'm4/as-compiler-flag.m4')
-rw-r--r--m4/as-compiler-flag.m433
1 files changed, 0 insertions, 33 deletions
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])
-])
-