---
 texk/kpathsea/Makefile.am    |    4 ++++
 texk/kpathsea/configure.ac   |    2 +-
 texk/kpathsea/kpathsea.pc.in |   11 +++++++++++
 3 files changed, 16 insertions(+), 1 deletion(-)

--- texlive-bin.orig/texk/kpathsea/Makefile.am
+++ texlive-bin/texk/kpathsea/Makefile.am
@@ -180,6 +180,10 @@
 	xopendir.h \
 	xstat.h
 
+pkgconfigdir = ${libdir}/pkgconfig
+
+pkgconfig_DATA = kpathsea.pc
+
 ## Handle backslash continuations, then null out comments and
 ## leading/trailing whitespace.  An awk script does the rest.
 ## 
--- texlive-bin.orig/texk/kpathsea/configure.ac
+++ texlive-bin/texk/kpathsea/configure.ac
@@ -141,6 +141,6 @@
 #define KPSEVERSION "kpathsea version] kpse_version["])
 AH_BOTTOM([#endif /* !KPATHSEA_C_AUTO_H */])
 
-AC_CONFIG_FILES([Makefile doc/Makefile man/Makefile win32/Makefile])
+AC_CONFIG_FILES([Makefile doc/Makefile man/Makefile win32/Makefile kpathsea.pc])
 
 AC_OUTPUT
--- /dev/null
+++ texlive-bin/texk/kpathsea/kpathsea.pc.in
@@ -0,0 +1,11 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: kpathsea
+Description: Kpathsea library
+Version: @KPSEVERSION@
+Libs: -L${libdir} -lkpathsea
+Cflags: -I${includedir}
+
