Commit fce17f8f authored by conrad's avatar conrad

add option "./configure --enable-gcc-werror" to add gcc option -Werror to

CFLAGS in all Makefiles. Patch from Erik de Castro Lopo.


git-svn-id: http://svn.annodex.net/liboggz/trunk@3173 8158c8cd-e7e1-0310-9fa4-c5954c97daef
parent d8c71d4b
......@@ -289,13 +289,29 @@ AM_CONDITIONAL(HAVE_OGG, [test "x$HAVE_OGG" = "xyes"])
# Checks for typedefs, structures, and compiler characteristics.
dnl Use -Wall if we have gcc.
dnl Add some useful warnings if we have gcc.
dnl changequote(,)dnl
if test "x$ac_cv_prog_gcc" = xyes ; then
CFLAGS="$CFLAGS -Wall -g -std=gnu99 -Wdeclaration-after-statement"
fi
dnl changequote([,])dnl
dnl
dnl Configuration option to add -Werror to all Makefiles
dnl
AC_ARG_ENABLE(gcc-werror,
AC_HELP_STRING([--enable-gcc-werror], [enable -Werror in all Makefiles]),
[ ac_enable_gcc_werror=yes ], [ ac_enable_gcc_werror=no] )
if test "x${ac_enable_gcc_werror}" = xyes ; then
CFLAGS="-Werror $CFLAGS"
fi
dnl
dnl Shared library symbol versioning and hiding
dnl
case "$target_os" in
linux* | solaris*)
SHLIB_VERSION_ARG="-Wl,--version-script=Version_script"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment