]> sigrok.org Git - libsigrok.git/commitdiff
Build: Fix SR_CHECK_COMPILE_FLAGS
authorDaniel Elstner <redacted>
Mon, 24 Aug 2015 22:17:09 +0000 (00:17 +0200)
committerDaniel Elstner <redacted>
Mon, 24 Aug 2015 22:17:09 +0000 (00:17 +0200)
Do not put "no" into the flags if the check fails.

m4/sigrok.m4

index 30d87800577494e9476c581efa47437e2dcc5cf4..e9052585c2339e302130e865d102b9cbc4745902 100644 (file)
@@ -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])
 ])