diff --git a/configure.ac b/configure.ac index 7b804bd..bf11bd9 100644 --- a/configure.ac +++ b/configure.ac @@ -111,12 +111,13 @@ AC_CHECK_DECLS([TIOCSRS485], [], [], [[#include ]]) # Check for RTS flags AC_CHECK_DECLS([TIOCM_RTS], [], [], [[#include ]]) +# Wtype-limits is not supported by gcc 4.2 (default on recent Mac OS X) my_CFLAGS="-Wall \ -Wmissing-declarations -Wmissing-prototypes \ -Wnested-externs -Wpointer-arith \ -Wpointer-arith -Wsign-compare -Wchar-subscripts \ -Wstrict-prototypes -Wshadow \ --Wformat-security -Wtype-limits" +-Wformat-security" AC_SUBST([my_CFLAGS]) AC_CONFIG_HEADERS([config.h tests/unit-test.h])