summaryrefslogtreecommitdiffstats
path: root/patches/01_better-handle-unrecognized-options.patch
blob: 87f4f1a0d2bb137f3ac80206204b4e7b05c914ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
From: "P. J. McDermott" <pjm@nac.net>
Description: Better handle unecognized options
 optind needs to be incremented for every option.

--- src.orig/configure	2012-11-16 15:41:08.000000000 -0500
+++ src/configure	2013-06-02 17:19:30.619119593 -0400
@@ -256,9 +256,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