From c437a1a8f55cdd302a9b797d09b95e3f8f15d39d Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Mon, 03 Jun 2013 13:18:04 -0400 Subject: Add patch to better handle unrecognized options. --- (limited to 'patches/01_better-handle-unrecognized-options.patch') diff --git a/patches/01_better-handle-unrecognized-options.patch b/patches/01_better-handle-unrecognized-options.patch new file mode 100644 index 0000000..9358593 --- /dev/null +++ b/patches/01_better-handle-unrecognized-options.patch @@ -0,0 +1,18 @@ +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 -- cgit v0.9.1