]> sigrok.org Git - libsigrok.git/commitdiff
configure.ac: Compile baylibre-acme driver for Linux only.
authorBartosz Golaszewski <redacted>
Thu, 12 Feb 2015 13:53:51 +0000 (14:53 +0100)
committerUwe Hermann <redacted>
Mon, 16 Feb 2015 00:20:07 +0000 (01:20 +0100)
The driver for BayLibre ACME depends on Linux-specific sysfs
interfaces to ina226 and tmp435 devices. Exclude it for different
targets.

Signed-off-by: Bartosz Golaszewski <redacted>
configure.ac

index 1c3fa14dc3dbd46637007ec827b310a443bc1a80..b86a59ceb5665d40fb12e4678693af311d0432ad 100644 (file)
@@ -431,6 +431,12 @@ AM_CONDITIONAL(HAVE_CHECK, test x"$have_check" = "xyes")
 # build it if these headers aren't available.
 AC_CHECK_HEADERS([sys/mman.h sys/ioctl.h], [], [HW_BEAGLELOGIC="no"])
 
+# The ACME driver can only be built for Linux.
+case "$target_os" in
+       linux*) ;;
+       *) HW_ACME="no" ;;
+esac
+
 AC_SUBST(SR_PKGLIBS)
 
 CFLAGS="$CFLAGS -Iinclude/libsigrok -I${srcdir}/include/libsigrok $LIB_CFLAGS"