Permalink
Browse files

libremix : Add --enable-gcc-werror configure option.

git-svn-id: http://svn.metadecks.org/libremix/trunk@400 e2d53364-18fc-0310-981e-b60a84739af0
  • Loading branch information...
1 parent b4583ad commit 1b6c950c85a49fe509043590b644e9ff0f25f3ee erikd committed Jul 15, 2006
Showing with 10 additions and 7 deletions.
  1. +10 −7 configure.ac
View
@@ -131,15 +131,18 @@ fi
AC_DEFINE_UNQUOTED(PACKAGE_PLUGIN_DIR, "$PACKAGE_PLUGIN_DIR",
[Set the plugin directory for remix])
+AC_ARG_ENABLE(gcc-werror,
+ AC_HELP_STRING([--enable-gcc-werror], [enable -Werror in all Makefiles]))
+
dnl Use -Wall if we have gcc.
-changequote(,)dnl
-if test "x$GCC" = "xyes"; then
- case " $CFLAGS " in
- *[\ \ ]-Wall[\ \ ]*) ;;
- *) CFLAGS="$CFLAGS -Wall" ;;
- esac
+if test "x$ac_cv_prog_gcc" = xyes ; then
+ CFLAGS="$CFLAGS -Wall"
+
+ if test x$enable_gcc_werror = "xyes" ; then
+ CFLAGS="$CFLAGS -Werror"
+ fi
+
fi
-changequote([,])dnl
AC_OUTPUT([
Makefile

0 comments on commit 1b6c950

Please sign in to comment.