From e84cd1f89c6358556879cc9990ce58b5bc21fc5a Mon Sep 17 00:00:00 2001 From: Alexey Kopytov Date: Fri, 6 Jan 2017 15:41:49 +0300 Subject: [PATCH] Check for pkg-config availability in configure.ac. --- configure.ac | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configure.ac b/configure.ac index 937fa60..178a600 100644 --- a/configure.ac +++ b/configure.ac @@ -40,6 +40,11 @@ m4_ifdef([AM_PROG_AR], [AM_PROG_AR]) #LT_LIB_DLLOAD AC_PROG_LIBTOOL +AC_CHECK_PROG(sb_have_pkg_config, pkg-config, yes, no) +if test x"$sb_have_pkg_config" = xno; then + AC_MSG_ERROR("The pkg-config package is required to build sysbench") +fi + AC_CHECK_PROG(sb_have_xxd, xxd, yes, no) if test x"$sb_have_xxd" = xno; then AC_MSG_ERROR("xxd is required to build sysbench (usually comes with the vim package)")