]> git.ipfire.org Git - thirdparty/lldpd.git/commit
build: check if pkg-config is correctly installed in ./autogen.sh
authorVincent Bernat <vincent@bernat.im>
Fri, 5 Sep 2014 18:19:34 +0000 (20:19 +0200)
committerVincent Bernat <vincent@bernat.im>
Fri, 5 Sep 2014 18:19:34 +0000 (20:19 +0200)
commit79790b96b5eb02843071bb6689dfb6e1b62c3432
tree503f7f591a8d8b886303fe363354bfac3cca343e
parent17cd6a2ec9ede260a99dd997be0ec871c62370c1
build: check if pkg-config is correctly installed in ./autogen.sh

Absence of pkg-config leads to some odd messages:

    configure.ac:27: error: possibly undefined macro: AC_SUBST
          If this token and others are legitimate, please use m4_pattern_allow.
          See the Autoconf documentation.
    configure.ac:163: error: possibly undefined macro: AC_MSG_FAILURE
    configure:21413: error: possibly undefined macro: AC_MSG_CHECKING
    configure:21418: error: possibly undefined macro: AC_TRY_LINK
    configure:21423: error: possibly undefined macro: AC_MSG_RESULT
    configure:21432: error: possibly undefined macro: AC_MSG_NOTICE
    configure:21894: error: possibly undefined macro: AC_PATH_TOOL
    configure:21896: error: possibly undefined macro: AC_MSG_ERROR
    configure:21975: error: possibly undefined macro: AC_DEFINE_UNQUOTED

We try to detect this situation by looking for `PKG_CHECK_MODULES` macro
in `aclocal.m4`. If not present, we issue some useful tips, like
installing the package or telling aclocal the location of
`pkg.m4` (mostly for OSX users).
autogen.sh