configure: add AM_PROG_AR
authorKoen Kooi <koen@dominion.thruhere.net>
Thu, 5 Sep 2013 12:20:10 +0000 (14:20 +0200)
committerMatt Porter <matt.porter@linaro.org>
Thu, 5 Sep 2013 12:27:31 +0000 (08:27 -0400)
This fixes:

| automake: warnings are treated as errors
| /build/v2012.12/build/tmp-angstrom_v2012_12-eglibc/sysroots/x86_64-linux/usr/share/automake-1.12/am/ltlibrary.am: warning: 'libgadget.la': linking libtool libraries using a non-POSIX
| /build/v2012.12/build/tmp-angstrom_v2012_12-eglibc/sysroots/x86_64-linux/usr/share/automake-1.12/am/ltlibrary.am: archiver requires 'AM_PROG_AR' in 'configure.ac'
| src/Makefile.am:1:   while processing Libtool library 'libgadget.la'

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
configure.ac

index c85b4c0..bdff17a 100644 (file)
@@ -1,6 +1,7 @@
 AC_INIT([libgadget], [0.0.1], [matt.porter@linaro.org])
 AM_INIT_AUTOMAKE([-Wall -Werror foreign])
 AC_PROG_CC
+AM_PROG_AR
 AC_CONFIG_MACRO_DIR([m4])
 LT_INIT
 AC_CONFIG_FILES([Makefile src/Makefile examples/Makefile libgadget.pc])