[PATCH] autogen.sh, configure.ac: Work with automake-1.12
Henry Gebhardt
hsggebhardt at gmail.com
Sun Nov 11 18:24:18 UTC 2012
The fixes in configure.ac fix the following two warnings:
+ automake --add-missing --copy --include-deps
automake-1.12: warnings are treated as errors
/usr/share/automake-1.12/am/ltlibrary.am: warning: 'libldmwidget.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/Makefile.am:34: while processing Libtool library 'libldmwidget.la'
src/Makefile.am:12: warning: compiling 'lightdm-gtk-builder-greeter.c' with per-target flags requires 'AM_PROG_CC_C_O' in 'configure.ac'
---
autogen.sh | 5 +++--
configure.ac | 2 ++
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/autogen.sh b/autogen.sh
index aaaed56..a6f9139 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -5,9 +5,10 @@ AUTOMAKE=${AUTOMAKE:-automake}
AM_INSTALLED_VERSION=$($AUTOMAKE --version | sed -e '2,$ d' -e 's/.* \([0-9]*\.[0-9]*\).*/\1/')
if [ "$AM_INSTALLED_VERSION" != "1.10" \
- -a "$AM_INSTALLED_VERSION" != "1.11" ];then
+ -a "$AM_INSTALLED_VERSION" != "1.11" \
+ -a "$AM_INSTALLED_VERSION" != "1.12" ];then
echo
- echo "You must have automake > 1.10 or 1.11 installed to compile this program."
+ echo "You must have automake > 1.10, 1.11, or 1.12 installed to compile this program."
echo "Install the appropriate package for your distribution,"
echo "or get the source tarball at http://ftp.gnu.org/gnu/automake/"
exit 1
diff --git a/configure.ac b/configure.ac
index e778758..ddc5a4c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -11,7 +11,9 @@ AC_CONFIG_HEADERS([config.h])
# Checks for programs.
AC_PROG_CC
+AM_PROG_CC_C_O
# AM_PROG_LIBTOOL
+AM_PROG_AR
# Checks for libraries.
--
1.8.0
More information about the Lubuntu-users
mailing list