diff options
author | P. J. McDermott <pjm@nac.net> | 2013-06-15 17:01:38 (EDT) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2013-06-15 17:01:38 (EDT) |
commit | a9a2c55a006c2644bd976afc11dc53d2706e767c (patch) | |
tree | d0a793c517e5a01e0fcc6a7dd6957c98ab58944b | |
parent | da1d9ca33306a740760ed10a77dad91262963a8e (diff) |
configure: Better handle unecognized options.
optind needs to be incremented for every option.
-rwxr-xr-x | configure | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -268,9 +268,7 @@ EOF if [ ${?} -ne 0 ]; then printf 'warning: unrecognized %s name: %s\n' \ "${_type}" "${_opt}" >&2 - continue - fi - if ${_optarg_set}; then + elif ${_optarg_set}; then _opt="$(printf '%s' "${_opt}" | tr -c '[a-z0-9]' '_')" eval "${_opt}"=\"\$\{_optarg\}\" else |