[02/11] libtool: Fix libtool warnings

Submitted by Chuck Lever on July 2, 2013, 7:30 p.m.


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

Commit Message

Chuck Lever July 2, 2013, 7:30 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 b5c8387..0965cfd 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])