]> granicus.if.org Git - pdns/commitdiff
Bail out if geoip and yaml libs are not installed
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Sat, 27 Sep 2014 21:58:43 +0000 (23:58 +0200)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Sat, 27 Sep 2014 21:58:43 +0000 (23:58 +0200)
m4/pdns_with_geo.m4

index d0bcb6343b2d6bf9f8cf4649779689c6c325911c..b239356a33167cb63bafef297ad50bb09562e456 100644 (file)
@@ -1,4 +1,8 @@
 AC_DEFUN([PDNS_CHECK_GEOIP], [
-  PKG_CHECK_MODULES([GEOIP], [geoip])
-  PKG_CHECK_MODULES([YAML], [yaml-cpp >= 0.5])
+  PKG_CHECK_MODULES([GEOIP], [geoip],[],
+    AC_MSG_ERROR([Could not find libGeoIP])
+  )
+  PKG_CHECK_MODULES([YAML], [yaml-cpp >= 0.5],[],
+    AC_MSG_ERROR([Could not find yaml-cpp])
+  )
 ])