[5/7] nfs-utils: Add pkgconf data for libnfsconf
diff mbox

Message ID 1504094250.10850.9.camel@redhat.com
State New
Headers show

Commit Message

Justin Mitchell Aug. 30, 2017, 11:57 a.m. UTC
Generate pkgconf files for the nfsconf shared library

Signed-off-by: Justin Mitchell <jumitche@redhat.com>
---
 Makefile.am      |  5 +++++
 configure.ac     |  1 +
 libnfsconf.pc.in | 11 +++++++++++
 3 files changed, 17 insertions(+)
 create mode 100644 libnfsconf.pc.in

Patch
diff mbox

diff --git a/Makefile.am b/Makefile.am
index e1f39aa..a3109d9 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -35,3 +35,8 @@  uninstall-hook:
 	rm $(DESTDIR)$(statedir)/etab
 	rm $(DESTDIR)$(statedir)/rmtab
 	rm $(DESTDIR)$(statdpath)/state
+
+pkgconfigdir=$(libdir)/pkgconfig
+pkgconfig_DATA=libnfsconf.pc
+
+$(pkgconfig_DATA): $(top_builddir)/config.status
diff --git a/configure.ac b/configure.ac
index 1ca1603..0b2e8fc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -525,6 +525,7 @@  AC_CONFIG_COMMANDS_PRE([eval eval _sysconfdir=$sysconfdir])
 
 AC_CONFIG_FILES([
 	Makefile
+	libnfsconf.pc
 	systemd/rpc-gssd.service
 	linux-nfs/Makefile
 	support/Makefile
diff --git a/libnfsconf.pc.in b/libnfsconf.pc.in
new file mode 100644
index 0000000..f134e32
--- /dev/null
+++ b/libnfsconf.pc.in
@@ -0,0 +1,11 @@ 
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: libnfsconf
+Description: Library that parses nfs.conf and related config files.
+Requires:
+Version: @PACKAGE_VERSION@
+Libs: -L@libdir@ -lnfsconf
+Cflags: -I@includedir@