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

proper way of doing things

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