configure.ac: Add AM_PROG_AR for automake-1.12
authorW. Trevor King <wking@tremily.us>
Sat, 19 Jan 2013 02:32:00 +0000 (02:32 +0000)
committerIan Abbott <abbotti@mev.co.uk>
Mon, 21 Jan 2013 15:55:21 +0000 (15:55 +0000)
This is what automake told me to do:

  $ ./autogen.sh
  ...
  automake: warnings are treated as errors
  /usr/share/automake-1.12/am/ltlibrary.am: warning: 'libcomedi.la': linking libtool libraries using a non-POSIX
  /usr/share/automake-1.12/am/ltlibrary.am: archiver requires 'AM_PROG_AR' in 'configure.ac'
  lib/Makefile.am:2:   while processing Libtool library 'libcomedi.la'
  ...
  autoreconf-2.69: automake failed with exit status: 1

AM_PROG_AR is new in automake-1.11.2.  For further details, see:

  http://lists.gnu.org/archive/html/bug-automake/2012-05/msg00009.html

configure.ac

index 90f2eb5f96c4afd219db972bb4275a846d85f1c2..979d1307f157d8f31341ff7a45974936845ed0c2 100644 (file)
@@ -98,6 +98,7 @@ ACLOCAL="$ACLOCAL -I m4"
 
 AM_MAINTAINER_MODE
 
+AM_PROG_AR
 AC_PROG_CC
 AM_PROG_CC_C_O
 AC_PROG_CC_STDC