diff options
-rwxr-xr-x | configure | 21 |
1 files changed, 8 insertions, 13 deletions
@@ -25,13 +25,13 @@ package_description='OPK Build System' srcdir="$(cd "${0%/*}" && pwd)" prefix='/usr/local' -bindir='$(prefix)/bin' -libdir='$(prefix)/share' -datadir='$(prefix)/share' -mandir='$(datadir)/man' -localedir='$(datadir)/locale' +bindir='${prefix}/bin' +libdir='${prefix}/share' +datadir='${prefix}/share' +mandir='${datadir}/man' +localedir='${datadir}/locale' sysconfdir='/etc' -libopkbuild='$(libdir)/libopkbuild.1' +libopkbuild='${libdir}/libopkbuild.1' metadata='proteanos' quiet='false' @@ -301,12 +301,9 @@ find_dep_lib() ${quiet} || printf 'checking for %s... ' "${_dep}" - IFS=':' - - for _element in ${libdir}:${PATH}; do - unset IFS + for _element in $(eval echo "${libdir}") ${PATH}; do : ${_element=-.} - if [ -f "${_element}/${_dep}" -a -x "${_element}/${_dep}" ]; then + if [ -d "${_element}/${_dep}" ]; then ${quiet} || printf '%s/%s\n' "${_element}" "${_dep}" _var="$(printf '%s' "${_dep}" | tr -c '[a-z0-9]' '_')" eval "${_var}"=\"${_element}/${_dep}\" @@ -314,8 +311,6 @@ find_dep_lib() fi done - unset IFS - ${quiet} || printf 'not found\n' return 1 } |