diff mbox

[02/11] libtool: Fix libtool warnings

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

Commit Message

Chuck Lever July 2, 2013, 7:30 p.m. UTC
When building 0.9 on Fedora 18, I get these warnings from
autogen.sh:

/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
   'libadmin.la'

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(+)
diff mbox

Patch

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])
 AC_CONFIG_MACRO_DIR([m4])
 
 # Automake and libtools initialization
+m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
 LT_INIT
 AM_INIT_AUTOMAKE([-Wall -Werror silent-rules])