From: Ruben Kerkhof Date: Sun, 9 Aug 2015 16:28:30 +0000 (+0200) Subject: protoc: simplify configure check X-Git-Tag: collectd-5.5.1~40^2~11 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=01902ff138552f2eee0a50fedfccdf4443ca8b4f;p=collectd.git protoc: simplify configure check --- diff --git a/configure.ac b/configure.ac index d5b8c798..f9802cef 100644 --- a/configure.ac +++ b/configure.ac @@ -60,14 +60,13 @@ AC_CHECK_PROG([have_protoc_c], [protoc-c], [yes], [no]) if test "x$have_protoc_c" = "xno" then have_protoc_c="no (protoc-c compiler not found)" -else +fi + +if test "X$have_protoc_c" = "xyes" +then AC_CHECK_HEADERS([google/protobuf-c/protobuf-c.h], - [have_protobuf_c_h="yes"], - [have_protobuf_c_h="no"]) - if test "x$have_protobuf_c_h" = "xno" - then - have_protoc_c="no ( not found)" - fi + [] + [have_protoc_c="no ( not found)"]) fi AM_CONDITIONAL(HAVE_PROTOC_C, test "x$have_protoc_c" = "xyes")