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

Diff of /eclass/autotools.eclass

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

Revision 1.168 Revision 1.169
1# Copyright 1999-2014 Gentoo Foundation 1# Copyright 1999-2014 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.168 2014/11/15 07:11:41 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/autotools.eclass,v 1.169 2014/11/15 07:50:02 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
10# This eclass is for safely handling autotooled software packages that need to 10# This eclass is for safely handling autotooled software packages that need to
11# regenerate their build scripts. All functions will abort in case of errors. 11# regenerate their build scripts. All functions will abort in case of errors.
12 12
13# Note: We require GNU m4, as does autoconf. So feel free to use any features 13# Note: We require GNU m4, as does autoconf. So feel free to use any features
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
16if [[ ${__AUTOTOOLS_AUTO_DEPEND+set} == "set" ]] ; then
17 # See if we were included already, but someone changed the value
18 # of AUTOTOOLS_AUTO_DEPEND on us. We could reload the entire
19 # eclass at that point, but that adds overhead, and it's trivial
20 # to re-order inherit in eclasses/ebuilds instead. #409611
21 if [[ ${__AUTOTOOLS_AUTO_DEPEND} != ${AUTOTOOLS_AUTO_DEPEND} ]] ; then
22 die "AUTOTOOLS_AUTO_DEPEND changed value between inherits; please inherit autotools.eclass first! ${__AUTOTOOLS_AUTO_DEPEND} -> ${AUTOTOOLS_AUTO_DEPEND}"
23 fi
24fi
15 25
16if [[ -z ${_AUTOTOOLS_ECLASS} ]]; then 26if [[ -z ${_AUTOTOOLS_ECLASS} ]]; then
17_AUTOTOOLS_ECLASS=1 27_AUTOTOOLS_ECLASS=1
18 28
19inherit libtool multiprocessing 29inherit libtool multiprocessing
105# their own DEPEND string. 115# their own DEPEND string.
106: ${AUTOTOOLS_AUTO_DEPEND:=yes} 116: ${AUTOTOOLS_AUTO_DEPEND:=yes}
107if [[ ${AUTOTOOLS_AUTO_DEPEND} != "no" ]] ; then 117if [[ ${AUTOTOOLS_AUTO_DEPEND} != "no" ]] ; then
108 DEPEND=${AUTOTOOLS_DEPEND} 118 DEPEND=${AUTOTOOLS_DEPEND}
109fi 119fi
120__AUTOTOOLS_AUTO_DEPEND=${AUTOTOOLS_AUTO_DEPEND} # See top of eclass
110 121
111unset _automake_atom _autoconf_atom 122unset _automake_atom _autoconf_atom
112 123
113# @ECLASS-VARIABLE: AM_OPTS 124# @ECLASS-VARIABLE: AM_OPTS
114# @DEFAULT_UNSET 125# @DEFAULT_UNSET

Legend:
Removed from v.1.168  
changed lines
  Added in v.1.169

  ViewVC Help
Powered by ViewVC 1.1.20