http://bugs.gentoo.org/194921 --- pilot-link-0.12.5/configure.ac +++ pilot-link-0.12.5/configure.ac @@ -757,11 +757,9 @@ dnl ************************************* dnl (already done) enable_werror=no -AC_ARG_ENABLE(compile-werror, - [ --enable-compile-werror - Causes warnings to be treated as errors in GCC], - enable_werror=yes) -if test "x$GCC" = "xyes" -a "x$enable_werror" = "xyes"; then +AC_ARG_ENABLE([compile-werror], AS_HELP_STRING([--enable-compile-werror], [Causes warnings to be treated as errors in GCC (default: disabled)])) + +if test "x$GCC" = "xyes" -a "x$enable_compile_werror" = "xyes"; then CFLAGS="$CFLAGS -Werror" fi