From: Tomek Mrugalski Date: Mon, 12 Aug 2019 19:09:51 +0000 (-0700) Subject: [#433] configure.ac better detects sysrepo (and errors out when missing) X-Git-Tag: Kea-1.6.0~41^2~114 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6bad8cf444955b08b307672a2569ad053a6bcb13;p=thirdparty%2Fkea.git [#433] configure.ac better detects sysrepo (and errors out when missing) --- diff --git a/configure.ac b/configure.ac index 463e52965f..8d3b5a82f4 100644 --- a/configure.ac +++ b/configure.ac @@ -859,6 +859,9 @@ AC_ARG_WITH([sysrepo], [sysrepo_config="$withval"]) if test "${sysrepo_config}" = "yes" ; then + if test "$PKG_CONFIG" = ""; then + AC_MSG_ERROR([--with-sysrepo specified without any parameter and pkg-config was not found. Either use --with-sysrepo=path or install pkg-config]) + fi SYSREPO_CONFIG="$PKG_CONFIG" DISTCHECK_SYSREPO_CONFIGURE_FLAG="-with-sysrepo=${sysrepo_config}" elif test "${sysrepo_config}" != "no" ; then