summaryrefslogtreecommitdiffstats
path: root/acinclude.m4
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-09-24 02:47:48 +0200
committerMarcel Holtmann <marcel@holtmann.org>2008-09-24 02:47:48 +0200
commit5475636b22ecf822cb163d4b3a03e3d5a29cbd51 (patch)
tree2ecebc128a48b3f5965b7e7f5a90d48475ff8893 /acinclude.m4
parent449f0d94a9b1a0272be7d57121ff8d09237f09c4 (diff)
Add first step for providing HAL plugin
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m412
1 files changed, 12 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 1991e4aa..02e456fa 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -156,6 +156,12 @@ AC_DEFUN([AC_PATH_USB], [
[Define to 1 if you need the usb_interrupt_read() function.]))
])
+AC_DEFUN([AC_PATH_HAL], [
+ PKG_CHECK_MODULES(HAL, hal, hal_found=yes, hal_found=no)
+ AC_SUBST(HAL_CFLAGS)
+ AC_SUBST(HAL_LIBS)
+])
+
AC_DEFUN([AC_PATH_NETLINK], [
PKG_CHECK_MODULES(NETLINK, libnl-1, netlink_found=yes, netlink_found=no)
AC_SUBST(NETLINK_CFLAGS)
@@ -174,6 +180,7 @@ AC_DEFUN([AC_ARG_BLUEZ], [
pie_enable=yes
sndfile_enable=${sndfile_found}
netlink_enable=no
+ hal_enable=${hal_found}
usb_enable=${usb_found}
alsa_enable=${alsa_found}
gstreamer_enable=${gstreamer_found}
@@ -237,6 +244,10 @@ AC_DEFUN([AC_ARG_BLUEZ], [
usb_enable=${enableval}
])
+ AC_ARG_ENABLE(hal, AC_HELP_STRING([--enable-hal], [enable HAL support]), [
+ hal_enable=${enableval}
+ ])
+
AC_ARG_ENABLE(netlink, AC_HELP_STRING([--enable-netlink], [enable NETLINK support]), [
netlink_enable=${enableval}
])
@@ -331,6 +342,7 @@ AC_DEFUN([AC_ARG_BLUEZ], [
AM_CONDITIONAL(SNDFILE, test "${sndfile_enable}" = "yes" && test "${sndfile_found}" = "yes")
AM_CONDITIONAL(NETLINK, test "${netlink_enable}" = "yes" && test "${netlink_found}" = "yes")
+ AM_CONDITIONAL(HAL, test "${hal_enable}" = "yes" && test "${hal_found}" = "yes")
AM_CONDITIONAL(USB, test "${usb_enable}" = "yes" && test "${usb_found}" = "yes")
AM_CONDITIONAL(SBC, test "${alsa_enable}" = "yes" || test "${gstreamer_enable}" = "yes")
AM_CONDITIONAL(ALSA, test "${alsa_enable}" = "yes" && test "${alsa_found}" = "yes")