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

Diff of /eclass/autotools.eclass

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

Revision 1.145 Revision 1.146
1# Copyright 1999-2012 Gentoo Foundation 1# Copyright 1999-2012 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.145 2012/06/07 04:50:04 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/autotools.eclass,v 1.146 2012/06/07 06:00:05 vapier Exp $
4 4
5# @ECLASS: autotools.eclass 5# @ECLASS: autotools.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# base-system@gentoo.org 7# base-system@gentoo.org
8# @BLURB: Regenerates auto* build scripts 8# @BLURB: Regenerates auto* build scripts
14# from the GNU version of m4 without worrying about other variants (i.e. BSD). 14# from the GNU version of m4 without worrying about other variants (i.e. BSD).
15 15
16if [[ ${___ECLASS_ONCE_AUTOTOOLS} != "recur -_+^+_- spank" ]] ; then 16if [[ ${___ECLASS_ONCE_AUTOTOOLS} != "recur -_+^+_- spank" ]] ; then
17___ECLASS_ONCE_AUTOTOOLS="recur -_+^+_- spank" 17___ECLASS_ONCE_AUTOTOOLS="recur -_+^+_- spank"
18 18
19inherit libtool 19inherit libtool multiprocessing
20 20
21# @ECLASS-VARIABLE: WANT_AUTOCONF 21# @ECLASS-VARIABLE: WANT_AUTOCONF
22# @DESCRIPTION: 22# @DESCRIPTION:
23# The major version of autoconf your package needs 23# The major version of autoconf your package needs
24: ${WANT_AUTOCONF:=latest} 24: ${WANT_AUTOCONF:=latest}
142# the directory with include files can be specified with AT_M4DIR variable. 142# the directory with include files can be specified with AT_M4DIR variable.
143# 143#
144# Should do a full autoreconf - normally what most people will be interested in. 144# Should do a full autoreconf - normally what most people will be interested in.
145# Also should handle additional directories specified by AC_CONFIG_SUBDIRS. 145# Also should handle additional directories specified by AC_CONFIG_SUBDIRS.
146eautoreconf() { 146eautoreconf() {
147 local x g 147 local x g multitop
148 148
149 if [[ -z ${AT_TOPLEVEL_EAUTORECONF} ]] ; then
150 AT_TOPLEVEL_EAUTORECONF="yes"
151 multitop="yes"
152 multijob_init
153 fi
154
149 if [[ -z ${AT_NO_RECURSIVE} ]]; then 155 if [[ -z ${AT_NO_RECURSIVE} ]] ; then
150 # Take care of subdirs 156 # Take care of subdirs
151 for x in $(autotools_check_macro_val AC_CONFIG_SUBDIRS) ; do 157 for x in $(autotools_check_macro_val AC_CONFIG_SUBDIRS) ; do
152 if [[ -d ${x} ]] ; then 158 if [[ -d ${x} ]] ; then
153 pushd "${x}" >/dev/null 159 pushd "${x}" >/dev/null
154 AT_NOELIBTOOLIZE="yes" eautoreconf 160 AT_NOELIBTOOLIZE="yes" multijob_child_init eautoreconf || die
155 popd >/dev/null 161 popd >/dev/null
156 fi 162 fi
157 done 163 done
158 fi 164 fi
159 165
197 203
198 eautoconf 204 eautoconf
199 eautoheader 205 eautoheader
200 [[ ${AT_NOEAUTOMAKE} != "yes" ]] && FROM_EAUTORECONF="yes" eautomake ${AM_OPTS} 206 [[ ${AT_NOEAUTOMAKE} != "yes" ]] && FROM_EAUTORECONF="yes" eautomake ${AM_OPTS}
201 207
202 [[ ${AT_NOELIBTOOLIZE} == "yes" ]] && return 0 208 if [[ ${AT_NOELIBTOOLIZE} != "yes" ]] ; then
203
204 # Call it here to prevent failures due to elibtoolize called _before_ 209 # Call it here to prevent failures due to elibtoolize called _before_
205 # eautoreconf. We set $S because elibtoolize runs on that #265319 210 # eautoreconf. We set $S because elibtoolize runs on that #265319
206 S=${PWD} elibtoolize --force 211 S=${PWD} elibtoolize --force
212 fi
213
214 if [[ -n ${multitop} ]] ; then
215 unset AT_TOPLEVEL_EAUTORECONF
216 multijob_finish || die
217 fi
207 218
208 return 0 219 return 0
209} 220}
210 221
211# @FUNCTION: _at_uses_pkg 222# @FUNCTION: _at_uses_pkg

Legend:
Removed from v.1.145  
changed lines
  Added in v.1.146

  ViewVC Help
Powered by ViewVC 1.1.20