summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorP. 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)
commita9a2c55a006c2644bd976afc11dc53d2706e767c (patch)
treed0a793c517e5a01e0fcc6a7dd6957c98ab58944b /configure
parentda1d9ca33306a740760ed10a77dad91262963a8e (diff)
configure: Better handle unecognized options.
optind needs to be incremented for every option.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure4
1 files changed, 1 insertions, 3 deletions
diff --git a/configure b/configure
index cb13a3e..8df5d8d 100755
--- a/configure
+++ b/configure
@@ -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