From deb29cbd1004f2eb8c994e9bd7fe3e375a46272e Mon Sep 17 00:00:00 2001 From: Reuben Thomas Date: Tue, 29 Jan 2008 21:25:40 +0000 Subject: Add support for libattr. Add extra warnings to C compilation. --- configure.ac | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 85de1bf..7b6f5e7 100644 --- a/configure.ac +++ b/configure.ac @@ -38,6 +38,11 @@ fi AC_MSG_RESULT(no) ]) +dnl Turn on additional compiler warnings +if test "$GCC" = "yes"; then + CFLAGS="$CFLAGS -Wall -W -Wmissing-prototypes -Wstrict-prototypes -pedantic" +fi + dnl NLS support ALL_LINGUAS="de sv" AM_GNU_GETTEXT @@ -128,7 +133,7 @@ AC_RUN_IFELSE([ # check for libattr for plpfuse AC_CHECK_HEADER(attr/attributes.h,, [AC_MSG_ERROR([Need libattr to build plpfuse])]) -AC_CHECK_LIB(attr,attr_set,, +AC_CHECK_LIB(attr, attr_set,, [AC_MSG_ERROR([Need libattr to build plpfuse])]) dnl these three are for solaris -- cgit v1.2.3