From 72a1e22cc5ddc24886a2c6c86252ff616449bba7 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sun, 05 May 2013 16:24:34 -0400 Subject: configure: Normalize dependency parameter names. --- (limited to 'configure') diff --git a/configure b/configure index 6600539..6041650 100755 --- a/configure +++ b/configure @@ -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 -- cgit v0.9.1