From 2d2240bb99e343379e9648e10d796d107705f06f Mon Sep 17 00:00:00 2001 From: Daniel Elstner Date: Tue, 25 Aug 2015 00:17:09 +0200 Subject: [PATCH] Build: Fix SR_CHECK_COMPILE_FLAGS Do not put "no" into the flags if the check fails. --- m4/sigrok.m4 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/m4/sigrok.m4 b/m4/sigrok.m4 index 30d87800..e9052585 100644 --- a/m4/sigrok.m4 +++ b/m4/sigrok.m4 @@ -288,7 +288,8 @@ do test "x$sr_ccf_result" = xno || break done CPPFLAGS=$sr_ccf_save_CPPFLAGS -SR_APPEND([$1], [$sr_ccf_result]) +AS_IF([test "x$sr_ccf_result" != xno], + [SR_APPEND([$1], [$sr_ccf_result])]) AC_MSG_RESULT([$sr_ccf_result]) AC_SUBST([$1]) ])