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

Diff of /eclass/autotools-utils.eclass

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

Revision 1.59 Revision 1.60
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-utils.eclass,v 1.59 2012/12/03 09:29:09 mgorny Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/autotools-utils.eclass,v 1.60 2012/12/03 12:05:51 mgorny Exp $
4 4
5# @ECLASS: autotools-utils.eclass 5# @ECLASS: autotools-utils.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# Maciej Mrozowski <reavertm@gentoo.org> 7# Maciej Mrozowski <reavertm@gentoo.org>
8# Michał Górny <mgorny@gentoo.org> 8# Michał Górny <mgorny@gentoo.org>
196 196
197 # In the next call, both variables will be set already 197 # In the next call, both variables will be set already
198 # and we'd have to know which one takes precedence. 198 # and we'd have to know which one takes precedence.
199 _RESPECT_AUTOTOOLS_BUILD_DIR=1 199 _RESPECT_AUTOTOOLS_BUILD_DIR=1
200 fi 200 fi
201
201 if [[ ${_RESPECT_AUTOTOOLS_BUILD_DIR} ]]; then 202 if [[ ${_RESPECT_AUTOTOOLS_BUILD_DIR} ]]; then
202 BUILD_DIR=${AUTOTOOLS_BUILD_DIR} 203 BUILD_DIR=${AUTOTOOLS_BUILD_DIR:-${WORKDIR}/${P}_build}
203 fi 204 else
204
205 : ${BUILD_DIR:=${WORKDIR}/${P}_build} 205 : ${BUILD_DIR:=${WORKDIR}/${P}_build}
206 fi
206 fi 207 fi
207 208
208 # Backwards compatibility for getting the value. 209 # Backwards compatibility for getting the value.
209 AUTOTOOLS_BUILD_DIR=${BUILD_DIR} 210 AUTOTOOLS_BUILD_DIR=${BUILD_DIR}
210 echo ">>> Working in BUILD_DIR: \"${BUILD_DIR}\"" 211 echo ">>> Working in BUILD_DIR: \"${BUILD_DIR}\""

Legend:
Removed from v.1.59  
changed lines
  Added in v.1.60

  ViewVC Help
Powered by ViewVC 1.1.20