The pkgconfig file is generated at make-time, leading to absolute /usr/include & /usr/lib search paths.
The patch lets autoconf handle pkgconfig file subst, like other packages do.
Signed-off-by: Nicolas Thill <redacted>
--- /dev/null
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -35,9 +35,6 @@ SED_PROCESS = \
+ -e 's,@zlib_LIBS\@,${zlib_LIBS},g' \
+ < $< > $@ || rm $@
+
+-%.pc: %.pc.in Makefile
+- $(SED_PROCESS)
+-
+ LIBKMOD_CURRENT=4
+ LIBKMOD_REVISION=9
+ LIBKMOD_AGE=2
+--- a/configure.ac
++++ b/configure.ac
+@@ -221,6 +221,7 @@ AC_CONFIG_HEADERS(config.h)
+ AC_CONFIG_FILES([
+ Makefile
+ man/Makefile
++ libkmod/libkmod.pc
+ libkmod/docs/Makefile
+ libkmod/docs/version.xml
+ ])