summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile.am5
-rw-r--r--bluez.pc.in11
-rw-r--r--configure.in2
3 files changed, 16 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am
index 2f4de561..2de6775b 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -4,6 +4,9 @@
SUBDIRS := include src
-DISTCLEANFILES = conftest.c conftest
+DISTCLEANFILES = conftest.c conftest bluez.pc
EXTRA_DIST = ChangeLog libs.spec
+
+install-data-local:
+ $(INSTALL) -D -m 755 $(top_builddir)/bluez.pc $(DESTDIR)$(libdir)/pkgconfig/bluez.pc
diff --git a/bluez.pc.in b/bluez.pc.in
new file mode 100644
index 00000000..e7d98ee8
--- /dev/null
+++ b/bluez.pc.in
@@ -0,0 +1,11 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: BlueZ
+Description: Bluetooth protocol stack for Linux
+Version: @VERSION@
+Requires:
+Libs: -L${libdir} -lbluetooth
+Cflags: -I${includedir}
diff --git a/configure.in b/configure.in
index 253f256e..4aa3aef5 100644
--- a/configure.in
+++ b/configure.in
@@ -23,4 +23,4 @@ m4_ifdef([AC_LIBTOOL_TAGS], [AC_LIBTOOL_TAGS([])])
AC_PROG_LIBTOOL
-AC_OUTPUT(Makefile include/Makefile src/Makefile)
+AC_OUTPUT(Makefile include/Makefile src/Makefile bluez.pc)