summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
Diffstat (limited to 'eclass')
-rw-r--r--eclass/xfconf.eclass10
1 files changed, 8 insertions, 2 deletions
diff --git a/eclass/xfconf.eclass b/eclass/xfconf.eclass
index 7b3afcccfd75..5e3c4a446e71 100644
--- a/eclass/xfconf.eclass
+++ b/eclass/xfconf.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/xfconf.eclass,v 1.18 2010/09/16 17:09:51 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/xfconf.eclass,v 1.19 2010/11/03 17:39:59 ssuominen Exp $
# @ECLASS: xfconf.eclass
# @MAINTAINER:
@@ -116,7 +116,13 @@ xfconf_src_prepare() {
# Run econf with opts in XFCONF variable
xfconf_src_configure() {
debug-print-function ${FUNCNAME} "$@"
- econf ${XFCONF}
+
+ # Convert XFCONF to an array, see base.eclass for original code
+ if [[ "$(declare -p XFCONF 2>/dev/null 2>&1)" != "declare -a"* ]]; then
+ XFCONF=( ${XFCONF} )
+ fi
+
+ econf ${XFCONF[@]}
}
# @FUNCTION: xfconf_src_compile