diff options
author | P. J. McDermott <pjm@nac.net> | 2012-10-08 20:52:47 (EDT) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2012-10-08 20:52:47 (EDT) |
commit | 0c089cf264eb94a7162ac157eb1dee3f3ac578a4 (patch) | |
tree | 65eb36588e74a452099ea382b821ebeca1fc6661 /configure | |
parent | 16a3b7f12cdc67db533d99620c5b5139e80b0909 (diff) |
Improve IFS setting in find_dep_*() in configure.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -244,20 +244,20 @@ find_dep_cmd() ${quiet} || printf 'checking for %s... ' "${dep}" - _old_ifs="${IFS}" - IFS=: + IFS=':' for _element in ${PATH}; do + unset IFS : ${_element=-.} if [ -f "${_element}/${_dep}" -a -x "${_element}/${_dep}" ]; then ${quiet} || printf '%s/%s\n' "${_element}" "${_dep}" eval "${_dep}"=\"${_element}/${_dep}\" - IFS="${_old_ifs}" return 0 fi done - IFS="${_old_ifs}" + unset IFS + ${quiet} || printf 'not found\n' missing_deps='true' return 1 @@ -269,20 +269,20 @@ find_dep_lib() ${quiet} || printf 'checking for %s... ' "${dep}" - _old_ifs="${IFS}" - IFS=: + IFS=':' for _element in ${libdir}:${PATH}; do + unset IFS : ${_element=-.} if [ -f "${_element}/${_dep}" -a -x "${_element}/${_dep}" ]; then ${quiet} || printf '%s/%s\n' "${_element}" "${_dep}" eval "${_dep}"=\"${_element}/${_dep}\" - IFS="${_old_ifs}" return 0 fi done - IFS="${_old_ifs}" + unset IFS + ${quiet} || printf 'not found\n' missing_deps='true' return 1 |