diff options
author | P. J. McDermott <pjm@nac.net> | 2013-05-05 16:24:34 (EDT) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2013-05-05 16:24:34 (EDT) |
commit | 72a1e22cc5ddc24886a2c6c86252ff616449bba7 (patch) | |
tree | 1f3898b16c2346f3d76d689fed44115a145fdd46 | |
parent | 240abc35e9e303b311186db01833d861a4e14ba8 (diff) |
configure: Normalize dependency parameter names.
-rwxr-xr-x | configure | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -278,7 +278,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 @@ -302,7 +303,8 @@ find_dep_lib() : ${_element=-.} if [ -d "${_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 |