Index: configure.ac =================================================================== --- configure.ac +++ configure.ac @@ -1098,6 +1098,7 @@ src/Makefile src/gcrypt.h src/libgcrypt-config +src/libgcrypt.pc src/versioninfo.rc tests/Makefile ]) Index: src/Makefile.am =================================================================== --- src/Makefile.am +++ src/Makefile.am @@ -34,6 +34,9 @@ bin_PROGRAMS += getrandom endif USE_RANDOM_DAEMON +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = libgcrypt.pc +DISTCLEANFILES = $(pkgconfig_DATA) if HAVE_LD_VERSION_SCRIPT libgcrypt_version_script_cmd = -Wl,--version-script=$(srcdir)/libgcrypt.vers Index: src/libgcrypt.pc.in =================================================================== --- src/libgcrypt.pc.in +++ src/libgcrypt.pc.in @@ -1,3 +1,15 @@ +# Process this file with autoconf to produce a pkg-config metadata file. +# Copyright (C) 2002, 2003, 2004, 2005, 2006 Free Software Foundation +# Author: Simon Josefsson +# +# This file is free software; as a special exception the author gives +# unlimited permission to copy and/or distribute it, with or without +# modifications, as long as this notice is preserved. +# +# This file is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the +# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + prefix=@prefix@ exec_prefix=@exec_prefix@ libdir=@libdir@ @@ -3,8 +15,17 @@ includedir=@includedir@ +# API info +api_version=@LIBGCRYPT_CONFIG_API_VERSION@ + +# Misc information. +symmetric_ciphers=@LIBGCRYPT_CIPHERS@ +asymmetric_ciphers=@LIBGCRYPT_PUBKEY_CIPHERS@ +digests=@LIBGCRYPT_DIGESTS@ + Name: libgcrypt Description: General purpose crypto library +URL: http://www.gnupg.org Version: @VERSION@ -Requires: libgpg-error -Libs: -L${libdir} -lgcrypt -Cflags: -I${includedir} +Libs: -L${libdir} @LIBGCRYPT_CONFIG_LIBS@ +Libs.private: @GPG_ERROR_LIBS@ +Cflags: -I${includedir} @LIBGCRYPT_CONFIG_CFLAGS@ @GPG_ERROR_CFLAGS@