diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2008-05-15 02:39:26 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2008-05-15 02:39:26 +0000 |
commit | 865f1108806df04d4bc1b81d08756924e5d52d6a (patch) | |
tree | 7331cc1cddca390a10cb4e879d24ccda1b17da5d /acinclude.m4 | |
parent | aacac39879203869ff190be2df7a6f0556ced060 (diff) |
Add initial work for netlink plugin
Diffstat (limited to 'acinclude.m4')
-rw-r--r-- | acinclude.m4 | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index 07572bb7..5aed6526 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -138,6 +138,12 @@ AC_DEFUN([AC_PATH_USB], [ AC_DEFINE(NEED_USB_INTERRUPT_READ, 1, [Define to 1 if you need the usb_interrupt_read() function.])) ]) +AC_DEFUN([AC_PATH_NETLINK], [ + PKG_CHECK_MODULES(NETLINK, libnl-1, netlink_found=yes, netlink_found=no) + AC_SUBST(NETLINK_CFLAGS) + AC_SUBST(NETLINK_LIBS) +]) + AC_DEFUN([AC_PATH_SNDFILE], [ PKG_CHECK_MODULES(SNDFILE, sndfile, sndfile_found=yes, sndfile_found=no) AC_SUBST(SNDFILE_CFLAGS) @@ -149,6 +155,7 @@ AC_DEFUN([AC_ARG_BLUEZ], [ debug_enable=no pie_enable=no sndfile_enable=${sndfile_found} + netlink_enable=${netlink_found} usb_enable=${usb_found} alsa_enable=${alsa_found} glib_enable=no @@ -336,6 +343,7 @@ AC_DEFUN([AC_ARG_BLUEZ], [ AC_SUBST([SBC_LIBS], ['$(top_builddir)/sbc/libsbc.la']) AM_CONDITIONAL(SNDFILE, test "${sndfile_enable}" = "yes" && test "${sndfile_found}" = "yes") + AM_CONDITIONAL(NETLINK, test "${netlink_enable}" = "yes" && test "${netlink_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") |