Code

configure.ac: Amend -Werror using the cflag framework
authorAvuton Olrich <avuton@gmail.com>
Sat, 29 Oct 2011 12:50:42 +0000 (05:50 -0700)
committerAvuton Olrich <avuton@gmail.com>
Thu, 3 Nov 2011 02:33:50 +0000 (19:33 -0700)
configure.ac

index e6c8ee99bbb4fdafc6e814a7b75321ca7905aa11..3dc9234e7a694529e5f628ec8a9881e88b0bc92b 100644 (file)
@@ -363,7 +363,7 @@ AC_ARG_ENABLE(werror,
        enable_werror=no)
 
 if test "x$enable_werror" = xyes; then
-       AM_CFLAGS="$AM_CFLAGS -Werror"
+       CHECK_CFLAG([-Werror])
 fi
 
 AC_ARG_ENABLE(debug,