summaryrefslogtreecommitdiffstats
path: root/patches
diff options
context:
space:
mode:
Diffstat (limited to 'patches')
-rw-r--r--patches/01_better-handle-unrecognized-options.patch18
1 files changed, 18 insertions, 0 deletions
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" <pjm@nac.net>
+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