summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: be663d3)
raw | patch | inline | side by side (parent: be663d3)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sun, 9 Aug 2015 17:02:25 +0000 (19:02 +0200) | ||
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sat, 28 Nov 2015 12:10:29 +0000 (13:10 +0100) |
configure.ac | patch | blob | history |
diff --git a/configure.ac b/configure.ac
index 12f2d469873874fa5576e39cbfc6bca1c66142ca..888c6e9dc7fbc1d94ad5905b8a3b1a75070ed3d2 100644 (file)
--- a/configure.ac
+++ b/configure.ac
have_protoc_c="no (protoc-c compiler not found)"
fi
-if test "X$have_protoc_c" = "xyes"
+if test "x$have_protoc_c" = "xyes"
then
AC_CHECK_HEADERS([google/protobuf-c/protobuf-c.h],
- []
+ [have_protoc_c="yes"],
[have_protoc_c="no (<google/protobuf-c/protobuf-c.h> not found)"])
fi
+if test "x$have_protoc_c" = "xyes"
+then
+ AC_CHECK_LIB([protobuf-c], [protobuf_c_version],
+ [have_protoc_c="yes"],
+ [have_protoc_c="no (libprotobuf-c not found)"])
+
+fi
AM_CONDITIONAL(HAVE_PROTOC_C, test "x$have_protoc_c" = "xyes")
AC_MSG_CHECKING([for kernel type ($host_os)])