summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-11-06 17:54:06 (EST)
committer P. J. McDermott <pjm@nac.net>2012-11-06 17:54:06 (EST)
commitd2343237b94588459d23eb6e49824e2c7bb423d5 (patch)
tree6ec73c279c9ba385b5b597c4ef1460924366b1bd /configure
parent58c31de0ee34171ad79a3e74f54b135c62c5ac56 (diff)
Fix find_dep_lib() in configure.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure16
1 files changed, 8 insertions, 8 deletions
diff --git a/configure b/configure
index f39846a..712aa0d 100755
--- a/configure
+++ b/configure
@@ -25,12 +25,12 @@ package_description='OPK Build Helper Tools'
srcdir="$(cd "${0%/*}" && pwd)"
prefix='/usr/local'
-bindir='$(prefix)/bin'
-libdir='$(prefix)/share'
-datadir='$(prefix)/share'
-mandir='$(datadir)/man'
-localedir='$(datadir)/locale'
-libopkhelper='$(libdir)/libopkhelper.3.0'
+bindir='${prefix}/bin'
+libdir='${prefix}/share'
+datadir='${prefix}/share'
+mandir='${datadir}/man'
+localedir='${datadir}/locale'
+libopkhelper='${libdir}/libopkhelper.3.0'
quiet='false'
missing_deps='false'
@@ -286,10 +286,10 @@ find_dep_lib()
IFS=':'
- for _element in ${libdir}:${PATH}; do
+ for _element in $(eval echo "${libdir}") ${PATH}; do
unset IFS
: ${_element=-.}
- if [ -f "${_element}/${_dep}" -a -x "${_element}/${_dep}" ]; then
+ if [ -d "${_element}/${_dep}" ]; then
${quiet} || printf '%s/%s\n' "${_element}" "${_dep}"
eval "${_dep}"=\"${_element}/${_dep}\"
return 0