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

Diff of /eclass/autotools.eclass

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

Revision 1.34 Revision 1.35
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.34 2006/03/28 08:11:46 flameeyes Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/autotools.eclass,v 1.35 2006/04/07 16:49:32 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
63 einfo "Running eautoreconf in '$(pwd)' ..." 63 einfo "Running eautoreconf in '$(pwd)' ..."
64 eaclocal 64 eaclocal
65 _elibtoolize --copy --force 65 _elibtoolize --copy --force
66 eautoconf 66 eautoconf
67 eautoheader 67 eautoheader
68 eautomake ${AM_OPTS} 68 FROM_EAUTORECONF="yes" eautomake ${AM_OPTS}
69 69
70 # Normally run by econf() 70 # Normally run by econf()
71 [[ ${AT_GNUCONF_UPDATE} == "yes" ]] && gnuconfig_update 71 [[ ${AT_GNUCONF_UPDATE} == "yes" ]] && gnuconfig_update
72 72
73 [[ ${AT_NOELIBTOOLIZE} == "yes" ]] && return 0 73 [[ ${AT_NOELIBTOOLIZE} == "yes" ]] && return 0
145eautomake() { 145eautomake() {
146 local extra_opts 146 local extra_opts
147 147
148 [[ -f Makefile.am ]] || return 0 148 [[ -f Makefile.am ]] || return 0
149 149
150 if [[ -z ${FROM_EAUTORECONF} && -f Makefile.in ]]; then
151 local used_automake
152 local installed_automake
153
154 installed_automake=$(automake --version | head -n 1 | \
155 sed -e 's:.*(GNU automake) ::')
156 used_automake=$(head -n 1 < Makefile.in | \
157 sed -e 's:.*by automake \(.*\) from .*:\1:')
158
159 if [[ ${installed_automake} != ${used_automake} ]]; then
160 einfo "Automake used for the package (${used_automake}) differs from"
161 einfo "the installed version (${installed_automake})."
162 eautoreconf
163 fi
164 fi
165
150 [[ -f INSTALL && -f AUTHORS && -f ChangeLog && -f NEWS ]] \ 166 [[ -f INSTALL && -f AUTHORS && -f ChangeLog && -f NEWS ]] \
151 || extra_opts="${extra_opts} --foreign" 167 || extra_opts="${extra_opts} --foreign"
152 168
153 # --force-missing seems not to be recognized by some flavours of automake 169 # --force-missing seems not to be recognized by some flavours of automake
154 autotools_run_tool automake --add-missing --copy ${extra_opts} "$@" 170 autotools_run_tool automake --add-missing --copy ${extra_opts} "$@"

Legend:
Removed from v.1.34  
changed lines
  Added in v.1.35

  ViewVC Help
Powered by ViewVC 1.1.20