Fw: enable pkg-config in gmp

Simon Lazenby sjlazenby at yahoo.co.uk
Tue May 21 11:23:26 CEST 2013


Hi Folks,
Could you take a look at the following feature request for inclusion in gmp.
thanks
Simon



----- Forwarded Message -----
>From: Simon Lazenby <sjlazenby at yahoo.co.uk>
>To: "gmp-bugs at gmplib.org" <gmp-bugs at gmplib.org> 
>Sent: Monday, 20 May 2013, 17:26
>Subject: enable pkg-config in gmp
> 
>
>
>Good evening gents,
>Could you please make pkg-config work in your product.
>This will allow me to use the following commands to see if GMP is installed and check its version number:
>pkg-config --list-all | grep gmp
>pkg-config --modversion gmp
>
>
>https://en.wikipedia.org/wiki/Pkg-config
>
>"pkg-config is a system for managing library compile and link flags that works with automake and
>autoconf"
>Most of the packages I install seem to use 'pkg-config' in one way or another, it seems to be how some
>packages test for the existence of other packages and also seems to be used for passing pre-req package and
>library path information.
>
>
>This suggested change would be for all platforms, but I include my platform information for completeness:
>uname -a
>Darwin jamaica.local 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15 16:57:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_PPC Power Macintosh
>cc --version
>powerpc-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5465)
>autoconf --version
>autoconf (GNU Autoconf) 2.69
>
>
>
>
>
>Here is a list of suggested modifications to the GMP source tree to enable pkg-config to be used with GMP:
>Create a file called gmp.pc.in in the GMP src tree, it should contain the following text:
>
>
>prefix=@prefix@
>exec_prefix=@exec_prefix@
>libdir=@libdir@
>includedir=@includedir@
>
>Name: gmp 
>Description: GNU Multiple Precision Arithmetic Library
>URL: http://gmplib.org
>Version: @PACKAGE_VERSION@
>Libs: -L${libdir} -lgmp
>Cflags: -I${includedir}
>
>
>Alter file Makefile.am to include:
>
>
>pkgconfigdir = $(libdir)/pkgconfig
>pkgconfig_DATA = gmp.pc
>
>
>I added this at line 100, but I guess anywhere in the file would do.
>
>
>Alter file configure.ac to include:
>
>
>AC_CONFIG_FILES([gmp.pc])
>
>
>I added this at line 3648, but I guess anywhere in the file would do.
>
>
>Please note that I had to issue the "autoreconf" command to enable the suggested alterations to work
>in the make install step, this will copy a file called gmp.pc into directory "/usr/local/lib/pkgconfig" and
>as long as you set your environment correctly (PKG_CONFIG_PATH=/usr/local/lib/pkgconfig) you should
>be able to use pkg-config to list GMP and its version number.
>
>
>Many thanks for looking at this suggested improvement
>
>Simon Lazenby
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>


More information about the gmp-discuss mailing list