From 49f59e4f7d0a62b735546a5e1cece6e9a926ca38 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Sat, 24 Apr 2010 21:23:23 +0200 Subject: [PATCH] pkgconfig support --- Makefile.am | 2 ++ configure.ac | 4 ++-- d0_blind_id.pc.in | 11 +++++++++++ 3 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 d0_blind_id.pc.in diff --git a/Makefile.am b/Makefile.am index 4e540ef..503c946 100644 --- a/Makefile.am +++ b/Makefile.am @@ -12,3 +12,5 @@ libblind_id_la_LDFLAGS = -versioninfo 0:0:0 library_includedir = $(includedir)/d0_blind_id library_include_HEADERS = d0_blind_id.h d0.h +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_HEADERS = d0_blind_id.pc diff --git a/configure.ac b/configure.ac index 65b2ea8..a034e98 100644 --- a/configure.ac +++ b/configure.ac @@ -6,6 +6,6 @@ AM_PROG_LIBTOOL AC_SEARCH_LIBS(clock_gettime, rt, , [AC_MSG_ERROR([GNU MP not found, see http://gmplib.org/])]) AC_SEARCH_LIBS(__gmpz_init, gmp, , [AC_MSG_ERROR([GNU MP not found, see http://gmplib.org/])]) -AC_CONFIG_HEADERS([config.h]) -AC_CONFIG_FILES([Makefile]) +dnl AC_CONFIG_HEADERS([config.h]) +AC_CONFIG_FILES([Makefile d0_blind_id.pc]) AC_OUTPUT diff --git a/d0_blind_id.pc.in b/d0_blind_id.pc.in new file mode 100644 index 0000000..bfd5097 --- /dev/null +++ b/d0_blind_id.pc.in @@ -0,0 +1,11 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ + +Name: Blind-ID +Description: Library for user identification using RSA blind signatures +Requires: +Version: @VERSION@ +Libs: -L${libdir} -lblind_id +Cflags: -I${includedir}/blind_id -- 2.39.2