summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Herbrechtsmeier <sherbrec@cit-ec.uni-bielefeld.de>2012-07-31 12:54:07 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2012-07-31 13:11:31 +0200
commitf2f1e160ce411a08836e31c36a09c9dd55ec9784 (patch)
tree75dfe843a8dfc156c7029fab7cda3883ef808319
parentd70957afea75b978ffd08a587ad8174441f3dc58 (diff)
fix for automake-1.12
This patch fixes following kind of issues with automake 1.12 | automake: warnings are treated as errors ... | warning: 'libmediactl.la': linking libtool libraries using a non-POSIX | ltlibrary.am: archiver requires 'AM_PROG_AR' in 'configure.in' | warning: 'libv4l2subdev.la': linking libtool libraries using a non-POSIX | ltlibrary.am: archiver requires 'AM_PROG_AR' in 'configure.in' ... | src/Makefile.am:10: warning: compiling 'main.c' with per-target flags requires 'AM_PROG_CC_C_O' in 'configure.in' Signed-off-by: Stefan Herbrechtsmeier <sherbrec@cit-ec.uni-bielefeld.de>
-rw-r--r--configure.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 6903451..98459d4 100644
--- a/configure.in
+++ b/configure.in
@@ -9,6 +9,9 @@ AM_INIT_AUTOMAKE([-Wall -Werror foreign])
# Checks for programs.
AC_PROG_CC
+AM_PROG_CC_C_O
+# automake 1.12 seems to require this, but automake 1.11 doesn't recognize it
+m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
AC_PROG_LIBTOOL
# Checks for libraries.