Change from AS_COMPILER() to AS_COMPILER_FLAG() in order to directly check for availa...
authorDavid Schleef <ds@schleef.org>
Sun, 11 May 2003 07:08:46 +0000 (07:08 +0000)
committerDavid Schleef <ds@schleef.org>
Sun, 11 May 2003 07:08:46 +0000 (07:08 +0000)
Original commit message from CVS:
Change from AS_COMPILER() to AS_COMPILER_FLAG() in order to directly
check for available warning/error flags

common
configure.ac

diff --git a/common b/common
index ed42933..c5d7301 160000 (submodule)
--- a/common
+++ b/common
@@ -1 +1 @@
-Subproject commit ed429334bba35b10172ba97d9b3795b75a65b388
+Subproject commit c5d7301d645fbee2881c30e86152cb3d2152e33b
index af4e497..d242635 100644 (file)
@@ -36,15 +36,9 @@ AM_PROG_AS
 AS="${CC}"
 
 dnl decide on error flags
-AS_COMPILER(COMPILER)
-if test "x$COMPILER" = "xforte"; then
-  GST_ERROR=
-else
-  if test "x$GST_CVS"="xyes"; then
-    GST_ERROR="-Wall -Werror"
-  else
-    GST_ERROR="-Wall"
-  fi
+AS_COMPILER_FLAG(-Wall,GST_ERROR="$GST_ERROR -Wall",)
+if test "x$GST_CVS"="xyes"; then
+  AS_COMPILER_FLAG(-Werror,GST_ERROR="$GST_ERROR -Werror",)
 fi
 
 dnl We disable static building for development, for time savings