/[gentoo-x86]/eclass/autotools.eclass
Gentoo

Diff of /eclass/autotools.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.39 Revision 1.43
1# Copyright 1999-2005 Gentoo Foundation 1# Copyright 1999-2005 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/autotools.eclass,v 1.39 2006/07/03 18:42:54 flameeyes Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/autotools.eclass,v 1.43 2006/09/20 19:10:36 flameeyes Exp $
4# 4#
5# Author: Diego Pettenò <flameeyes@gentoo.org> 5# Author: Diego Pettenò <flameeyes@gentoo.org>
6# Enhancements: Martin Schlemmer <azarah@gentoo.org> 6# Enhancements: Martin Schlemmer <azarah@gentoo.org>
7# 7#
8# This eclass is for handling autotooled software packages that 8# This eclass is for handling autotooled software packages that
10# 10#
11# NB: If you add anything, please comment it! 11# NB: If you add anything, please comment it!
12 12
13inherit eutils libtool 13inherit eutils libtool
14 14
15DEPEND="sys-devel/automake 15_automake_atom="sys-devel/automake"
16 sys-devel/autoconf 16_autoconf_atom="sys-devel/autoconf"
17[[ -n ${WANT_AUTOMAKE} ]] && _automake_atom="=sys-devel/automake-${WANT_AUTOMAKE}*"
18if [[ -n ${WANT_AUTOCONF} ]]; then
19 case ${WANT_AUTOCONF} in
20 2.1) _autoconf_atom="=sys-devel/autoconf-${WANT_AUTOCONF}*" ;;
21 2.5) _autoconf_atom=">=sys-devel/autoconf-2.50" ;;
22 esac
23fi
24DEPEND="${_automake_atom}
25 ${_autoconf_atom}
17 sys-devel/libtool" 26 sys-devel/libtool"
27unset _automake_atom _autoconf_atom
18 28
19# Variables: 29# Variables:
20# 30#
21# AT_M4DIR - Additional director(y|ies) aclocal should search 31# AT_M4DIR - Additional director(y|ies) aclocal should search
22# AM_OPTS - Additional options to pass to automake during 32# AM_OPTS - Additional options to pass to automake during
140eautomake() { 150eautomake() {
141 local extra_opts 151 local extra_opts
142 152
143 [[ -f Makefile.am ]] || return 0 153 [[ -f Makefile.am ]] || return 0
144 154
155 if [[ -n ${WANT_AUTOMAKE} ]]; then
156 export WANT_AUTOMAKE # let the automake wrapper pick it up
157 einfo "Required automake ${WANT_AUTOMAKE}. Using $(automake --version | head -n 1)."
158 fi
159
145 if [[ -z ${FROM_EAUTORECONF} && -f Makefile.in ]]; then 160 if [[ -z ${FROM_EAUTORECONF} && -f Makefile.in ]]; then
146 local used_automake 161 local used_automake
147 local installed_automake 162 local installed_automake
148 163
149 installed_automake=$(automake --version | head -n 1 | \ 164 installed_automake=$(automake --version | head -n 1 | \

Legend:
Removed from v.1.39  
changed lines
  Added in v.1.43

  ViewVC Help
Powered by ViewVC 1.1.20