[1/5] libtool: Fix libtool warnings

Submitted by Chuck Lever on June 3, 2013, 3:44 p.m.


Message ID 20130603154440.37741.52202.stgit@manray.1015granger.net
State Accepted
Headers show

Commit Message

Chuck Lever June 3, 2013, 3:44 p.m.
When building 0.9 on Fedora 18, I get these warnings from

/usr/share/automake-1.12/am/ltlibrary.am: warning: 'libadmin.la':
   linking libtool libraries using a non-POSIX
/usr/share/automake-1.12/am/ltlibrary.am: archiver requires
   'AM_PROG_AR' in 'configure.ac'
src/libadmin/Makefile.am:26:   while processing Libtool library

Some web searching suggests this is a problem introduced by automake
1.12 after support for building in Microsoft environments was added,
but the true issue is caused by libtool, and can be addressed by
a one-line change to configure.ac.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
 configure.ac |    1 +
 1 file changed, 1 insertion(+)

Patch hide | download patch | download mbox

diff --git a/configure.ac b/configure.ac
index 0cc81af..deb457a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -33,6 +33,7 @@  AC_CONFIG_HEADERS([config.h])
 # Automake and libtools initialization
+m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
 AM_INIT_AUTOMAKE([-Wall -Werror silent-rules])