diff options
Diffstat (limited to 'server')
-rw-r--r-- | server/Makefile.am | 6 | ||||
-rw-r--r-- | server/configure.ac | 3 | ||||
-rw-r--r-- | server/spice.pc.in | 13 |
3 files changed, 20 insertions, 2 deletions
diff --git a/server/Makefile.am b/server/Makefile.am index 63d88e18..15ed08e2 100644 --- a/server/Makefile.am +++ b/server/Makefile.am @@ -82,3 +82,9 @@ EXTRA_DIST = \ glz_encode_match_tmpl.c \ glz_encode_tmpl.c \ $(NULL) + +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = spice.pc + +DISTCLEANFILES = \ + spice.pc diff --git a/server/configure.ac b/server/configure.ac index 254341ec..d047078b 100644 --- a/server/configure.ac +++ b/server/configure.ac @@ -32,8 +32,7 @@ AC_SUBST(SPICE_REQUIRES) AC_SUBST(SPICE_NONPKGCONFIG_CFLAGS) AC_SUBST(SPICE_NONPKGCONFIG_LIBS) -AC_CONFIG_FILES([Makefile]) -#AC_CONFIG_FILES([Makefile spice.pc]) +AC_CONFIG_FILES([Makefile spice.pc]) AC_OUTPUT dnl ========================================================================== diff --git a/server/spice.pc.in b/server/spice.pc.in new file mode 100644 index 00000000..5639f4ae --- /dev/null +++ b/server/spice.pc.in @@ -0,0 +1,13 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ + +Name: spice +Description: SPICE server library +Version: @VERSION@ + +Requires: @SPICE_REQUIRES@ +Libs: -L${libdir} -lspice +Libs.private: @SPICE_NONPKGCONFIG_LIBS@ +Cflags: -I${includedir}/libspice |