aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac5
1 files changed, 4 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index b6ce4455..fdd311db 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,7 +1,7 @@
AC_INIT(sg3_utils, 1.43, dgilbert@interlog.com)
AM_INIT_AUTOMAKE
-AM_MAINTAINER_MODE
+AM_MAINTAINER_MODE([-Wall -Werror foreign])
AM_CONFIG_HEADER(config.h)
AC_PROG_CC
@@ -11,6 +11,9 @@ AC_PROG_INSTALL
# Adding libtools to the build seems to bring in C++ environment
AC_PROG_LIBTOOL
+# AM_PROG_AR is supported and needed since automake v1.12+
+ifdef([AM_PROG_AR], [AM_PROG_AR], [])
+
# check for headers
AC_HEADER_STDC
AC_CHECK_HEADERS([linux/types.h linux/bsg.h linux/kdev_t.h], [], [],