Make --enable-gcc-warnings a no-op if not using gcc

This commit is contained in:
Nick Mathewson 2011-01-24 17:42:23 -05:00
parent 0c0ec0be2b
commit 3267703658

View File

@ -559,7 +559,7 @@ AM_CONDITIONAL(OPENSSL, [test "$enable_openssl" != "no" && test "$have_openssl"
# Add some more warnings which we use in development but not in the
# released versions. (Some relevant gcc versions can't handle these.)
if test x$enable_gcc_warnings = xyes; then
if test x$enable_gcc_warnings = xyes && test "$GCC" = "yes"; then
AC_COMPILE_IFELSE(AC_LANG_PROGRAM([], [
#if !defined(__GNUC__) || (__GNUC__ < 4)