summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2011-05-27 13:38:52 +0200
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2011-05-27 13:38:52 +0200
commite67536962dabb3be64b241c2cc348366b6dd1daa (patch)
treedca2c68dccac493b0da6761b0cdf25545e45f835
parentfca9ec532a39050aab18dc2a56279d6749e41d24 (diff)
downloadcmumble-e67536962dabb3be64b241c2cc348366b6dd1daa.tar.gz
cmumble-e67536962dabb3be64b241c2cc348366b6dd1daa.tar.bz2
cmumble-e67536962dabb3be64b241c2cc348366b6dd1daa.zip
configure: Add AC_CHECK_LIB fallback for protobuf on debian
-rw-r--r--configure.ac5
1 files changed, 4 insertions, 1 deletions
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])