Add --automake to libtoolize if we are using automake.
authorMartin Schlemmer <azarah@gentoo.org>
Fri, 2 Sep 2005 08:23:30 +0000 (08:23 +0000)
committerMartin Schlemmer <azarah@gentoo.org>
Fri, 2 Sep 2005 08:23:30 +0000 (08:23 +0000)
eclass/autotools.eclass

index 6ae51884fbd308f34aad4736b46c1eb7d7b44628..ea6dbe0431901f16ff6b32ca83723da75c866566 100644 (file)
@@ -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.18 2005/08/31 20:17:43 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/autotools.eclass,v 1.19 2005/09/02 08:23:30 azarah Exp $
 #
 # Author: Diego Pettenò <flameeyes@gentoo.org>
 # Enhancements: Martin Schlemmer <azarah@gentoo.org>
@@ -104,10 +104,15 @@ eaclocal() {
 }
 
 _elibtoolize() {
+       local opts
+       
        # Check if we should run libtoolize
        [[ -n $(autotools_check_macro "AC_PROG_LIBTOOL") ]] || return 0
+
+       [[ -f Makefile.am ]] && opts="--automake"
+       
        [[ "${USERLAND}" == "Darwin" ]] && LIBTOOLIZE="glibtoolize"
-       autotools_run_tool ${LIBTOOLIZE:-libtoolize} "$@"
+       autotools_run_tool ${LIBTOOLIZE:-libtoolize} "$@" ${opts}
 
        # Need to rerun aclocal
        eaclocal