fix --libdir detection when econf is passed whitespace/empty arguments ... those...
authorMike Frysinger <vapier@gentoo.org>
Sat, 7 Feb 2009 09:14:46 +0000 (09:14 -0000)
committerMike Frysinger <vapier@gentoo.org>
Sat, 7 Feb 2009 09:14:46 +0000 (09:14 -0000)
svn path=/main/trunk/; revision=12588

bin/ebuild.sh

index 335eae748940a3cc4e21045413bb5418bfbda190..34e4f747bf28a08658b75f62c85e71612f778378 100755 (executable)
@@ -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[= ]}))