summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.am3
-rw-r--r--configure.ac3
-rw-r--r--xaw3d.pc.in12
3 files changed, 17 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index c74acb4..c23350b 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1 +1,4 @@
SUBDIRS = include src
+
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = xaw3d.pc
diff --git a/configure.ac b/configure.ac
index 3e1bead..46ce725 100644
--- a/configure.ac
+++ b/configure.ac
@@ -54,6 +54,7 @@ AC_SUBST(XAW3D_CFLAGS)
AC_CONFIG_FILES([Makefile
include/Makefile
- src/Makefile])
+ src/Makefile
+ xaw3d.pc])
AC_OUTPUT
diff --git a/xaw3d.pc.in b/xaw3d.pc.in
new file mode 100644
index 0000000..b243c52
--- /dev/null
+++ b/xaw3d.pc.in
@@ -0,0 +1,12 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: Xaw3d
+Description: X 3D Athena Widgets Library
+Version: @PACKAGE_VERSION@
+Requires: xproto xmu xt
+Requires.private: x11 xext
+Cflags: -I${includedir}
+Libs: -L${libdir} -lXaw3d