|
@@ -100,6 +100,21 @@ AC_CHECK_DECLS([__CYGWIN__])
|
|
|
AC_FUNC_FORK
|
|
|
AC_CHECK_FUNCS([gettimeofday inet_ntoa memset select socket strerror strlcpy])
|
|
|
|
|
|
+# Add -Wall -Werror for GCC if not already there
|
|
|
+if test "x$GCC" = "xyes"; then
|
|
|
+ case " $CFLAGS " in
|
|
|
+ *[[\ \ ]]-Wall[[\ \ ]]*) ;;
|
|
|
+ *) CFLAGS="$CFLAGS -Wall" ;;
|
|
|
+ esac
|
|
|
+fi
|
|
|
+
|
|
|
+if test "x$GCC" = "xyes"; then
|
|
|
+ case " $CFLAGS " in
|
|
|
+ *[[\ \ ]]-Werror[[\ \ ]]*) ;;
|
|
|
+ *) CFLAGS="$CFLAGS -Werror" ;;
|
|
|
+ esac
|
|
|
+fi
|
|
|
+
|
|
|
AC_CONFIG_FILES([
|
|
|
Makefile
|
|
|
src/Makefile
|