From e67536962dabb3be64b241c2cc348366b6dd1daa Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Fri, 27 May 2011 13:38:52 +0200 Subject: configure: Add AC_CHECK_LIB fallback for protobuf on debian --- configure.ac | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 709cda5..946495e 100644 --- a/configure.ac +++ b/configure.ac @@ -21,7 +21,10 @@ LT_PREREQ([2.2]) LT_INIT PKG_PROG_PKG_CONFIG() -PKG_CHECK_MODULES(PROTOBUF, [libprotobuf-c]) +PKG_CHECK_MODULES(PROTOBUF, [libprotobuf-2c],[], [ + AC_CHECK_LIB([protobuf-c], [protobuf_c_message_pack_to_buffer], [], + [AC_MSG_ERROR([libprotobuf-c not found])]) +]) PKG_CHECK_MODULES(GLIB, [glib-2.0 >= 2.28]) PKG_CHECK_MODULES(GIO, [gio-2.0]) PKG_CHECK_MODULES(GSTREAMER, [gstreamer-0.10 gstreamer-app-0.10]) -- cgit