summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2011-09-18 07:57:55 +0000
committerMichał Górny <mgorny@gentoo.org>2011-09-18 07:57:55 +0000
commite164840af958e4d5dcb326f13a9de9db1e1dfa6a (patch)
treeefd19d358652075ef8ba7f48631ab938fba22e7d /eclass/autotools-utils.eclass
parentDeprecate implicit IUSE=debug. (diff)
downloadgentoo-2-e164840af958e4d5dcb326f13a9de9db1e1dfa6a.tar.gz
gentoo-2-e164840af958e4d5dcb326f13a9de9db1e1dfa6a.tar.bz2
gentoo-2-e164840af958e4d5dcb326f13a9de9db1e1dfa6a.zip
Fail if myeconfargs is not an array.
Diffstat (limited to 'eclass/autotools-utils.eclass')
-rw-r--r--eclass/autotools-utils.eclass5
1 files changed, 4 insertions, 1 deletions
diff --git a/eclass/autotools-utils.eclass b/eclass/autotools-utils.eclass
index ec7d2e04503f..04731d569276 100644
--- a/eclass/autotools-utils.eclass
+++ b/eclass/autotools-utils.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/autotools-utils.eclass,v 1.21 2011/09/18 07:57:34 mgorny Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/autotools-utils.eclass,v 1.22 2011/09/18 07:57:55 mgorny Exp $
# @ECLASS: autotools-utils.eclass
# @MAINTAINER:
@@ -225,6 +225,9 @@ autotools-utils_src_prepare() {
autotools-utils_src_configure() {
debug-print-function ${FUNCNAME} "$@"
+ [[ -z ${myeconfargs+1} || $(declare -p myeconfargs) == 'declare -a'* ]] \
+ || die 'autotools-utils.eclass: myeconfargs has to be an array.'
+
# Common args
local econfargs=()