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

Diff of /eclass/autotools.eclass

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

Revision 1.121 Revision 1.122
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.121 2012/02/13 17:26:17 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/autotools.eclass,v 1.122 2012/02/20 02:54:21 robbat2 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
96# @DEFAULT_UNSET 96# @DEFAULT_UNSET
97# @DESCRIPTION: 97# @DESCRIPTION:
98# Additional options to pass to automake during 98# Additional options to pass to automake during
99# eautoreconf call. 99# eautoreconf call.
100 100
101# @ECLASS-VARIABLE: AT_NOEACLOCAL
102# @DEFAULT_UNSET
103# @DESCRIPTION:
104# Don't run eaclocal command if set to 'yes',
105# useful when eaclocal needs to be ran with
106# particular options
107
108# @ECLASS-VARIABLE: AT_NOEAUTOCONF
109# @DEFAULT_UNSET
110# @DESCRIPTION:
111# Don't run eautoconf command if set to 'yes',
112# useful when eautoconf needs to be ran with
113# particular options
114
115# @ECLASS-VARIABLE: AT_NOEAUTOMAKE
116# @DEFAULT_UNSET
117# @DESCRIPTION:
118# Don't run eautomake command if set to 'yes',
119# useful when eautomake needs to be ran with
120# particular options
121
101# @ECLASS-VARIABLE: AT_NOELIBTOOLIZE 122# @ECLASS-VARIABLE: AT_NOELIBTOOLIZE
102# @DEFAULT_UNSET 123# @DEFAULT_UNSET
103# @DESCRIPTION: 124# @DESCRIPTION:
104# Don't run elibtoolize command if set to 'yes', 125# Don't run elibtoolize command if set to 'yes',
105# useful when elibtoolize needs to be ran with 126# useful when elibtoolize needs to be ran with
140 done 161 done
141 fi 162 fi
142 163
143 auxdir=$(autotools_get_auxdir) 164 auxdir=$(autotools_get_auxdir)
144 165
166 if [[ ${AT_NOEACLOCAL} != "yes" ]]; then
145 einfo "Running eautoreconf in '${PWD}' ..." 167 einfo "Running eautoreconf in '${PWD}' ..."
146 [[ -n ${auxdir} ]] && mkdir -p ${auxdir} 168 [[ -n ${auxdir} ]] && mkdir -p ${auxdir}
147 eaclocal 169 eaclocal
170 fi
148 [[ ${CHOST} == *-darwin* ]] && g=g 171 [[ ${CHOST} == *-darwin* ]] && g=g
149 if ${LIBTOOLIZE:-${g}libtoolize} -n --install >& /dev/null ; then 172 if ${LIBTOOLIZE:-${g}libtoolize} -n --install >& /dev/null ; then
150 _elibtoolize --copy --force --install 173 _elibtoolize --copy --force --install
151 else 174 else
152 _elibtoolize --copy --force 175 _elibtoolize --copy --force
153 fi 176 fi
154 eautoconf 177 [[ ${AT_NOEAUTOCONF} != "yes" ]] && eautoconf
155 eautoheader 178 [[ ${AT_NOEAUTOHEADER} != "yes" ]] && eautoheader
156 FROM_EAUTORECONF="yes" eautomake ${AM_OPTS} 179 [[ ${AT_NOEAUTOMAKE} != "yes" ]] && FROM_EAUTORECONF="yes" eautomake ${AM_OPTS}
157 180
158 [[ ${AT_NOELIBTOOLIZE} == "yes" ]] && return 0 181 [[ ${AT_NOELIBTOOLIZE} == "yes" ]] && return 0
159 182
160 # Call it here to prevent failures due to elibtoolize called _before_ 183 # Call it here to prevent failures due to elibtoolize called _before_
161 # eautoreconf. We set $S because elibtoolize runs on that #265319 184 # eautoreconf. We set $S because elibtoolize runs on that #265319
252# Runs automake. 275# Runs automake.
253eautomake() { 276eautomake() {
254 local extra_opts 277 local extra_opts
255 local makefile_name 278 local makefile_name
256 279
257 # Some packages might need to skip automake
258 # OpenLDAP is a good example. It does not use automake (all the .in files are
259 # handwritten), but it does AM_INIT_AUTOMAKE in configure.in, for all the
260 # other macros involved
261 [[ ${WANT_AUTOMAKE} == "none" ]] && return 0
262
263 # Run automake if: 280 # Run automake if:
264 # - a Makefile.am type file exists 281 # - a Makefile.am type file exists
265 # - the configure script is using the AM_INIT_AUTOMAKE directive 282 # - the configure script is using the AM_INIT_AUTOMAKE directive
266 for makefile_name in {GNUmakefile,{M,m}akefile}.am "" ; do 283 for makefile_name in {GNUmakefile,{M,m}akefile}.am "" ; do
267 [[ -f ${makefile_name} ]] && break 284 [[ -f ${makefile_name} ]] && break

Legend:
Removed from v.1.121  
changed lines
  Added in v.1.122

  ViewVC Help
Powered by ViewVC 1.1.20