From 7342cc6c041f57777c80afe7b090253059848d95 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 7 Feb 2009 09:14:46 +0000 Subject: fix --libdir detection when econf is passed whitespace/empty arguments ... those break the plain string expansion comparison svn path=/main/trunk/; revision=12588 --- bin/ebuild.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/ebuild.sh b/bin/ebuild.sh index 335eae748..34e4f747b 100755 --- a/bin/ebuild.sh +++ b/bin/ebuild.sh @@ -491,7 +491,7 @@ econf() { CONF_LIBDIR="${!LIBDIR_VAR}" fi unset LIBDIR_VAR - if [ -n "${CONF_LIBDIR}" ] && [ "${*/--libdir}" == "$*" ]; then + if [ -n "${CONF_LIBDIR}" ] && ! hasq --libdir=* "$@" ; then if [ "${*/--exec-prefix}" != "$*" ]; then local args="$(echo $*)" local -a pref=($(echo ${args/*--exec-prefix[= ]})) -- cgit v1.2.3-1-g7c22