diff options
author | rillig <rillig@pkgsrc.org> | 2020-05-22 15:21:15 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2020-05-22 15:21:15 +0000 |
commit | 1fd8646422fd0bf8fc7140537aa7ee6f8a440b5c (patch) | |
tree | d5f410253b242e1906355d203f38c559622f1baf /mk | |
parent | e52b35218080c4b41a92e7c5cf02d4aec838d82d (diff) | |
download | pkgsrc-1fd8646422fd0bf8fc7140537aa7ee6f8a440b5c.tar.gz |
mk/configure: fix check for unknown configure options
Diffstat (limited to 'mk')
-rw-r--r-- | mk/configure/gnu-configure.mk | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mk/configure/gnu-configure.mk b/mk/configure/gnu-configure.mk index 2306f50292d..bdc165a66b0 100644 --- a/mk/configure/gnu-configure.mk +++ b/mk/configure/gnu-configure.mk @@ -1,4 +1,4 @@ -# $NetBSD: gnu-configure.mk,v 1.26 2020/05/21 21:05:51 rillig Exp $ +# $NetBSD: gnu-configure.mk,v 1.27 2020/05/22 15:21:15 rillig Exp $ # # Package-settable variables: # @@ -238,7 +238,7 @@ _SHOW_UNKNOWN_CONFIGURE_OPTIONS_CMD= \ -e 's,^disable_,enable_,' \ -e 's,^without_,with_,'); \ [ "$$optvar" = 'enable_option_checking' ] && continue; \ - ${GREP} "^$$optvar$$" $$configures 1>/dev/null || { \ + ${GREP} -e "^$$optvar$$" -e "{$$optvar+set}" $$configures 1>/dev/null || { \ ${ERROR_MSG} "[gnu-configure.mk] option $$opt not found in $$configures"; \ exitcode=1; \ }; \ |