From: "P. J. McDermott" Description: Better handle unecognized options optind needs to be incremented for every option. diff -Naur src.orig/configure src/configure --- src.orig/configure 2013-06-01 11:50:34.000000000 -0400 +++ src/configure 2013-06-03 13:13:51.812554003 -0400 @@ -266,9 +266,7 @@ 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