summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2013-06-15 13:15:00 (EDT)
committer P. J. McDermott <pjm@nac.net>2013-06-15 13:15:00 (EDT)
commite12e6d4282822a59ebfd9142b5715c8667966339 (patch)
tree8a4980ab34d15c5816206528598541d746a13dcc /configure
parent158ed6fd47b7760d32a09efd9916865d0b96cd73 (diff)
configure: Normalize dependency parameter names.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure6
1 files changed, 4 insertions, 2 deletions
diff --git a/configure b/configure
index 11748d9..48ab69f 100755
--- a/configure
+++ b/configure
@@ -283,7 +283,8 @@ find_dep_cmd()
: ${_element=-.}
if [ -f "${_element}/${_dep}" -a -x "${_element}/${_dep}" ]; then
${quiet} || printf '%s/%s\n' "${_element}" "${_dep}"
- eval "${_dep}"=\"${_element}/${_dep}\"
+ _var="$(printf '%s' "${_dep}" | tr -c '[a-z0-9]' '_')"
+ eval "${_var}"=\"${_element}/${_dep}\"
return 0
fi
done
@@ -307,7 +308,8 @@ find_dep_lib()
: ${_element=-.}
if [ -f "${_element}/${_dep}" -a -x "${_element}/${_dep}" ]; then
${quiet} || printf '%s/%s\n' "${_element}" "${_dep}"
- eval "${_dep}"=\"${_element}/${_dep}\"
+ _var="$(printf '%s' "${_dep}" | tr -c '[a-z0-9]' '_')"
+ eval "${_var}"=\"${_element}/${_dep}\"
return 0
fi
done