]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
build: provide a clearer message if pkg-config is not installed
authorVincent Bernat <vincent@bernat.ch>
Sat, 13 Nov 2021 08:24:27 +0000 (09:24 +0100)
committerVincent Bernat <vincent@bernat.ch>
Sat, 13 Nov 2021 08:24:27 +0000 (09:24 +0100)
configure.ac

index 995b01d257556c313328ef3a5f7fe5e9975177f0..7c87a55fde37fceabd5fcef90c66f0c20dfec429 100644 (file)
@@ -54,6 +54,10 @@ AC_PROG_LN_S
 AC_PROG_EGREP
 AC_PROG_AWK
 
+# Check for pkg-config
+m4_ifndef([PKG_CHECK_MODULES], [
+  AC_MSG_ERROR([PKG_CHECK_MODULES not found. Please install pkg-config and re-run autogen.sh])])
+
 # Doxygen
 DX_HTML_FEATURE(ON)
 DX_DOT_FEATURE(OFF)