proper way of doing things

git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@416 59561ff5-6e30-0410-9f3c-9617f08c8826
This commit is contained in:
vlm 2004-09-26 14:18:32 +00:00
parent 275e5fda84
commit ee2e9c5509
2 changed files with 11 additions and 6 deletions

13
configure vendored
View File

@ -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

View File

@ -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)