The pkglibdir is used by neard.pc.in (so by autoconf) however the automake defines it, not autoconf. Add early definition of pkglibdir so substitute in neard.pc.in will work correctly. Signed-off-by: Krzysztof Kozlowski --- configure.ac | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configure.ac b/configure.ac index c1fdc44ae02d..ffe453049939 100644 --- a/configure.ac +++ b/configure.ac @@ -15,6 +15,10 @@ if (test "${libdir}" = '${exec_prefix}/lib'); then libdir='${prefix}/lib' fi +# pkglibdir is defined by automake but autoconf parses the neard.pc.in +# which uses pkglibdir, therefore define it manually in autoconf. +AC_SUBST([pkglibdir], ["\${libdir}/${PACKAGE_NAME}"]) + plugindir='${pkglibdir}/plugins' se_plugindir='${pkglibdir}/plugins-se' AC_SUBST(plugindir) -- 2.30.2