From 6683311142737d6a23831895ed76be6db519ef9e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20G=C3=B3rny?= Date: Fri, 23 Sep 2011 07:56:41 +0000 Subject: [PATCH] Reuse in_iuse() from eutils.eclass. --- eclass/autotools-utils.eclass | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/eclass/autotools-utils.eclass b/eclass/autotools-utils.eclass index 76ad6fc43db8..bae95a1ae592 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.23 2011/09/18 21:03:59 mgorny Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/autotools-utils.eclass,v 1.24 2011/09/23 07:56:41 mgorny Exp $ # @ECLASS: autotools-utils.eclass # @MAINTAINER: @@ -233,7 +233,7 @@ autotools-utils_src_configure() { local econfargs=() # Handle debug found in IUSE - if has debug ${IUSE//+}; then + if in_iuse debug; then local debugarg=$(use_enable debug) if ! has "${debugarg}" "${myeconfargs[@]}"; then eqawarn 'Implicit $(use_enable debug) for IUSE="debug" is no longer supported.' @@ -243,7 +243,7 @@ autotools-utils_src_configure() { fi # Handle static-libs found in IUSE, disable them by default - if has static-libs ${IUSE//+}; then + if in_iuse static-libs; then econfargs+=( --enable-shared $(use_enable static-libs static) -- 2.26.2