From a1447fe7c776bb7d1ec22109e6d2fbb90b751b78 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Diego=20Elio=20Petten=C3=B2?= Date: Tue, 28 Mar 2006 08:11:46 +0000 Subject: [PATCH] Check also for AM_PROG_LIBTOOL before ignoring libtoolize step. --- eclass/autotools.eclass | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/eclass/autotools.eclass b/eclass/autotools.eclass index 29f15f823f90..6928f4ad5369 100644 --- a/eclass/autotools.eclass +++ b/eclass/autotools.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/autotools.eclass,v 1.33 2006/03/19 22:35:50 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/autotools.eclass,v 1.34 2006/03/28 08:11:46 flameeyes Exp $ # # Author: Diego Pettenò # Enhancements: Martin Schlemmer @@ -109,9 +109,12 @@ eaclocal() { _elibtoolize() { local opts + local lttest - # Check if we should run libtoolize - [[ -n $(autotools_check_macro "AC_PROG_LIBTOOL") ]] || return 0 + # Check if we should run libtoolize (AM_PROG_LIBTOOL is an older macro, + # check for both it and the current AC_PROG_LIBTOOL) + lttest="$(autotools_check_macro "AC_PROG_LIBTOOL")$(autotools_check_macro "AM_PROG_LIBTOOL")" + [[ -n $lttest ]] || return 0 [[ -f Makefile.am ]] && opts="--automake" -- 2.26.2