summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.am1
-rw-r--r--configure.ac2
-rw-r--r--gmpxx.pc.in12
3 files changed, 14 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 31a9111b8..5e5dc898b 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -123,6 +123,7 @@ EXTRA_DIST += asl.h
if WANT_CXX
GMPXX_HEADERS_OPTION = gmpxx.h
+pkgconfig_DATA += gmpxx.pc
endif
EXTRA_DIST += gmpxx.h
diff --git a/configure.ac b/configure.ac
index d6e0a908e..ba44c46de 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3967,7 +3967,7 @@ AC_OUTPUT(Makefile \
tests/cxx/Makefile \
doc/Makefile tune/Makefile \
demos/Makefile demos/calc/Makefile demos/expr/Makefile \
- gmp.h:gmp-h.in gmp.pc:gmp.pc.in)
+ gmp.h:gmp-h.in gmp.pc:gmp.pc.in gmpxx.pc:gmpxx.pc.in)
AC_MSG_NOTICE([summary of build options:
diff --git a/gmpxx.pc.in b/gmpxx.pc.in
new file mode 100644
index 000000000..181cc70c6
--- /dev/null
+++ b/gmpxx.pc.in
@@ -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