Commit 04c2317e authored by Lev Walkin's avatar Lev Walkin

proper way of doing things

parent 7c6e9243
......@@ -21401,11 +21401,16 @@ mingw* | p32*)
;;
esac
# Check whether --enable-autoconf or --disable-autoconf was given.
if test "${enable_autoconf+set}" = set; then
enableval="$enable_autoconf"
ADD_CFLAGS="-Werror -W -Wpointer-arith"
# Check whether --enable-Werror or --disable-Werror was given.
if test "${enable_Werror+set}" = set; then
enableval="$enable_Werror"
enable_werror=$enableval
else
enable_werror=no
fi;
if test x$enable_werror = xyes; then
ADD_CFLAGS="-Werror -W -Wpointer-arith"
fi
case "$GCC" in
......
......@@ -49,11 +49,11 @@ mingw* | p32*)
;;
esac
AC_ARG_ENABLE(autoconf,
AC_ARG_ENABLE(Werror,
[ --enable-Werror abort compilation after any C compiler warning],
enable_werror=$enableval, enable_werror=no)
if test x$enable_werror = xyes; then
ADD_CFLAGS="-Werror -W -Wpointer-arith")
ADD_CFLAGS="-Werror -W -Wpointer-arith"
fi
AC_SUBST(ADD_CFLAGS)
......
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