From 77b54feeb6391fa3fc862fc600b58fdb36f3ccaa Mon Sep 17 00:00:00 2001 From: Mayank Gupta Date: Tue, 21 Mar 2017 19:33:21 +0530 Subject: [PATCH] Added check for pkg-config m4 macros --- linux/configure.ac | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/linux/configure.ac b/linux/configure.ac index 4aa4f6da..880ed8be 100644 --- a/linux/configure.ac +++ b/linux/configure.ac @@ -13,6 +13,16 @@ AC_PROG_CC AC_PROG_INSTALL AC_PROG_MAKE_SET +#Checks for "pkg-config" utility +AC_MSG_CHECKING([pkg-config m4 macros]) +if test m4_ifdef([PKG_CHECK_MODULES], [yes], [no]) == yes; then + AC_MSG_RESULT([yes]); +else + AC_MSG_RESULT([no]); + AC_MSG_ERROR([ +pkg-config is required.]) +fi + # Checks for libraries. AC_CHECK_LIB([m], [sin], [], [AC_MSG_ERROR(Math library not installed. Install it before proceeding.)]) AC_CHECK_LIB([lept], [getLeptonicaVersion], [HAS_LEPT=1 && PKG_CHECK_MODULES([lept], [lept])], [HAS_LEPT=0])