(trunk r12588)
authorZac Medico <zmedico@gentoo.org>
Wed, 11 Mar 2009 03:45:01 +0000 (03:45 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 11 Mar 2009 03:45:01 +0000 (03:45 -0000)
svn path=/main/branches/2.1.6/; revision=12869

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[= ]}))