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

Diff of /eclass/autotools.eclass

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

Revision 1.80 Revision 1.81
1# Copyright 1999-2008 Gentoo Foundation 1# Copyright 1999-2008 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.80 2008/07/31 20:45:41 darkside Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/autotools.eclass,v 1.81 2008/09/26 16:21:54 jmbsvicetto 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
74# @FUNCTION: eautoreconf 74# @FUNCTION: eautoreconf
75# @DESCRIPTION: 75# @DESCRIPTION:
76# This function mimes the behavior of autoreconf, but uses the different 76# This function mimes the behavior of autoreconf, but uses the different
77# eauto* functions to run the tools. It doesn't accept parameters, but 77# eauto* functions to run the tools. It doesn't accept parameters, but
78# the directory with include files can be specified with AT_M4DIR variable. 78# the directory with include files can be specified with AT_M4DIR variable.
79# 79#
80# Should do a full autoreconf - normally what most people will be interested in. 80# Should do a full autoreconf - normally what most people will be interested in.
81# Also should handle additional directories specified by AC_CONFIG_SUBDIRS. 81# Also should handle additional directories specified by AC_CONFIG_SUBDIRS.
82eautoreconf() { 82eautoreconf() {
83 local pwd=$(pwd) x auxdir 83 local pwd=$(pwd) x auxdir
84 84
85 if [[ -z ${AT_NO_RECURSIVE} ]]; then 85 if [[ -z ${AT_NO_RECURSIVE} ]]; then
86 # Take care of subdirs 86 # Take care of subdirs
87 for x in $(autotools_get_subdirs); do 87 for x in $(autotools_get_subdirs); do
88 if [[ -d ${x} ]] ; then 88 if [[ -d ${x} ]] ; then
89 cd "${x}" 89 cd "${x}"
234 autotools_run_tool automake --add-missing --copy ${extra_opts} "$@" 234 autotools_run_tool automake --add-missing --copy ${extra_opts} "$@"
235} 235}
236 236
237# Internal function to run an autotools' tool 237# Internal function to run an autotools' tool
238autotools_run_tool() { 238autotools_run_tool() {
239 if [[ ${EBUILD_PHASE} != "unpack" ]]; then 239 if [[ ${EBUILD_PHASE} != "unpack" && ${EBUILD_PHASE} != "prepare" ]]; then
240 ewarn "QA Warning: running $1 in ${EBUILD_PHASE} phase" 240 ewarn "QA Warning: running $1 in ${EBUILD_PHASE} phase"
241 fi 241 fi
242 242
243 local STDERR_TARGET="${T}/$$.out" 243 local STDERR_TARGET="${T}/$$.out"
244 local ris 244 local ris

Legend:
Removed from v.1.80  
changed lines
  Added in v.1.81

  ViewVC Help
Powered by ViewVC 1.1.20