X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=configure.ac;h=62c5de515c364d76712d854d61790f49aa11a221;hb=993dff4555379c320212083737241225a6945b04;hp=606c4effa4e3d60351883066e97018d156d7435d;hpb=365d0cc032c8a5df45492cdfc1090984951e78db;p=collectd.git diff --git a/configure.ac b/configure.ac index 606c4eff..62c5de51 100644 --- a/configure.ac +++ b/configure.ac @@ -1,5 +1,9 @@ dnl Process this file with autoconf to produce a configure script. -AC_INIT([collectd],[m4_esyscmd(./version-gen.sh)]) +AC_INIT([collectd], + [m4_esyscmd(./version-gen.sh)], + [https://github.com/collectd/collectd/issues], + [collectd], + [https://collectd.org]) AC_CONFIG_SRCDIR(src/) AC_CONFIG_HEADERS(src/config.h) AC_CONFIG_AUX_DIR([libltdl/config]) @@ -57,12 +61,23 @@ AC_PROG_YACC PKG_PROG_PKG_CONFIG AC_CHECK_PROG([have_protoc_c], [protoc-c], [yes], [no]) -AC_CHECK_HEADERS([google/protobuf-c/protobuf-c.h], - [have_protobuf_c_h="yes"], - [have_protobuf_c_h="no"]) -if test "x$have_protoc_c" = "xyes" && test "x$have_protobuf_c_h" != "xyes" +if test "x$have_protoc_c" = "xno" then - have_protoc_c="no (unable to find )" + have_protoc_c="no (protoc-c compiler not found)" +fi + +if test "x$have_protoc_c" = "xyes" +then + AC_CHECK_HEADERS([protobuf-c/protobuf-c.h google/protobuf-c/protobuf-c.h], + [have_protoc_c="yes"; break], + [have_protoc_c="no ( 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")