configure.ac: Don't hardcode -Wall and -Werror for configure checks, this fails with...
authorBrian Cameron <brian.cameron@sun.com>
Fri, 22 Feb 2008 05:27:24 +0000 (05:27 +0000)
committerSebastian Dröge <slomo@circular-chaos.org>
Fri, 22 Feb 2008 05:27:24 +0000 (05:27 +0000)
Original commit message from CVS:
Patch by: Brian Cameron <brian dot cameron at sun dot com>
* configure.ac:
Don't hardcode -Wall and -Werror for configure checks, this fails
with non-GCC compilers. Fixes bug #517991.

ChangeLog
configure.ac

index c74269b3ae00db8c6493f7cef975b908f8a555df..2a4cc3f1a6567612191d1bc7f54dfb981a87b1cc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2008-02-22  Sebastian Dröge  <slomo@circular-chaos.org>
+
+       Patch by: Brian Cameron <brian dot cameron at sun dot com>
+
+       * configure.ac:
+       Don't hardcode -Wall and -Werror for configure checks, this fails
+       with non-GCC compilers. Fixes bug #517991.
+
 2008-02-21  Stefan Kost  <ensonic@users.sf.net>
 
        * gst/audiotestsrc/gstaudiotestsrc.c:
index 15ab88f3657bc523a0beea1a9ec39aac64e1d68e..3056a6f47e5e31aa0b1a2e6979ea373743872226 100644 (file)
@@ -183,7 +183,7 @@ AM_CONDITIONAL(HAVE_REGEX_H, test "x$HAVE_REGEX_H" = "xyes")
 
 if test "x$HAVE_REGEX_H" = "xyes"; then
   ac_cppflags_save="$CPPFLAGS"
-  CPPFLAGS="-Wall -Werror `$PKG_CONFIG --cflags libxml-2.0`"
+  CPPFLAGS="`$PKG_CONFIG --cflags libxml-2.0`"
   AC_COMPILE_IFELSE(
     AC_LANG_PROGRAM([
 #include <libxml/HTMLparser.h>
@@ -543,9 +543,6 @@ AG_GST_CHECK_FEATURE(VORBIS, [Xiph Vorbis audio codec], vorbis, [
 
 if test "x$HAVE_VORBIS" = "xyes"; then
   ac_cflags_save="$CFLAGS"
-  dnl FIXME: does this work on non-gcc? -- Company
-  dnl FIXME: no, it doesn't.  Why is this here in the first place ? -- thomasvs
-  CFLAGS="-Wall -Werror"
   AC_COMPILE_IFELSE(
     AC_LANG_PROGRAM([
 #include <vorbis/codec.h>