Skip to content

Commit

Permalink
Merge pull request #118 from mithro/werror
Browse files Browse the repository at this point in the history
Enable -Werror (fixes #82)
  • Loading branch information
mithro committed Jan 11, 2015
2 parents f310e32 + d571934 commit dd37ff6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,17 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([ ], [ ])], [
AC_MSG_RESULT([no])
])

dnl check if compiler understands -Werror (if yes, add -Werror to GST_CFLAGS)
AC_MSG_CHECKING([to see if compiler understands -Werror])
save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -Werror"
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([ ], [ ])], [
GST_CFLAGS="$GST_CFLAGS -Werror"
AC_MSG_RESULT([yes])
], [
AC_MSG_RESULT([no])
])

dnl set the plugindir where plugins should be installed (for plugins/Makefile.am)
if test "x${prefix}" = "x$HOME"; then
plugindir="$HOME/.gstreamer-1.0/plugins"
Expand Down

0 comments on commit dd37ff6

Please sign in to comment.