Skip to content

Commit

Permalink
Merge pull request #1742 from rubenk/detect-cdb-on-osx
Browse files Browse the repository at this point in the history
Detect cdb on OSX
  • Loading branch information
Peter van Dijk committed Sep 29, 2014
2 parents d5fb401 + 8c539d0 commit b24a4ee
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions m4/pdns_check_cdb.m4
@@ -1,7 +1,13 @@
AC_DEFUN([PDNS_CHECK_CDB],[
PKG_CHECK_MODULES([CDB], [libcdb],
[HAVE_CDB=yes],
[AC_MSG_ERROR([Could not find libcdb/tinycdb])]
[],
[AC_CHECK_HEADERS([cdb.h],
[AC_CHECK_LIB([cdb], [cdb_find],
[CDB_LIBS="-lcdb"],
[AC_MSG_ERROR([Could not find libcdb])]
)],
[AC_MSG_ERROR([Could not find cdb])]
)]
)
AC_SUBST(CDB_LIBS)
AC_SUBST(CDB_CFLAGS)
Expand Down

0 comments on commit b24a4ee

Please sign in to comment.