[Gmp-commit] /var/hg/gmp: 2 new changesets

mercurial at gmplib.org mercurial at gmplib.org
Wed Aug 21 18:01:31 UTC 2019


details:   /var/hg/gmp/rev/010685d5dc45
changeset: 17830:010685d5dc45
user:      Hugh McMaster <hugh.mcmaster at outlook.com>
date:      Thu Aug 08 23:46:02 2019 +1000
description:
Generate and install a pkg-config file for the gmp library

details:   /var/hg/gmp/rev/fdc9d35fb5c8
changeset: 17831:fdc9d35fb5c8
user:      Hugh McMaster <hugh.mcmaster at outlook.com>
date:      Thu Aug 08 23:48:03 2019 +1000
description:
Generate and install a pkg-config file for the gmpxx library

diffstat:

 Makefile.am  |   4 ++++
 configure.ac |   2 +-
 gmp.pc.in    |  11 +++++++++++
 gmpxx.pc.in  |  12 ++++++++++++
 4 files changed, 28 insertions(+), 1 deletions(-)

diffs (62 lines):

diff -r 57b61ed99643 -r fdc9d35fb5c8 Makefile.am
--- a/Makefile.am	Mon Aug 19 21:58:56 2019 +0200
+++ b/Makefile.am	Thu Aug 08 23:48:03 2019 +1000
@@ -115,11 +115,15 @@
 EXTRA_DIST = configfsf.guess configfsf.sub .gdbinit INSTALL.autoconf \
 	     COPYING.LESSERv3 COPYINGv2 COPYINGv3
 
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = gmp.pc
+
 # Put asl.h here for now.
 EXTRA_DIST += asl.h
 
 if WANT_CXX
 GMPXX_HEADERS_OPTION = gmpxx.h
+pkgconfig_DATA += gmpxx.pc
 endif
 EXTRA_DIST += gmpxx.h
 
diff -r 57b61ed99643 -r fdc9d35fb5c8 configure.ac
--- a/configure.ac	Mon Aug 19 21:58:56 2019 +0200
+++ b/configure.ac	Thu Aug 08 23:48:03 2019 +1000
@@ -3967,7 +3967,7 @@
   tests/cxx/Makefile							\
   doc/Makefile tune/Makefile						\
   demos/Makefile demos/calc/Makefile demos/expr/Makefile		\
-  gmp.h:gmp-h.in)
+  gmp.h:gmp-h.in gmp.pc:gmp.pc.in gmpxx.pc:gmpxx.pc.in)
 
 AC_MSG_NOTICE([summary of build options:
 
diff -r 57b61ed99643 -r fdc9d35fb5c8 gmp.pc.in
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/gmp.pc.in	Thu Aug 08 23:48:03 2019 +1000
@@ -0,0 +1,11 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+includedir=@includedir@
+libdir=@libdir@
+
+Name: @PACKAGE_NAME@
+Description: GNU Multiple Precision Arithmetic Library
+URL: https://gmplib.org
+Version: @PACKAGE_VERSION@
+Cflags: -I${includedir}
+Libs: -L${libdir} -lgmp
diff -r 57b61ed99643 -r fdc9d35fb5c8 gmpxx.pc.in
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/gmpxx.pc.in	Thu Aug 08 23:48:03 2019 +1000
@@ -0,0 +1,12 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+includedir=@includedir@
+libdir=@libdir@
+
+Name: @PACKAGE_NAME@ C++
+Description: GNU Multiple Precision Arithmetic Library (C++ bindings)
+URL: https://gmplib.org
+Version: @PACKAGE_VERSION@
+Requires: gmp
+Cflags: -I${includedir}
+Libs: -L${libdir} -lgmpxx


More information about the gmp-commit mailing list