]> sigrok.org Git - libsigrok.git/commitdiff
configure.ac: Only enable rigol-ds1xx2 on Linux.
authorUwe Hermann <redacted>
Tue, 9 Apr 2013 15:58:37 +0000 (17:58 +0200)
committerUwe Hermann <redacted>
Tue, 9 Apr 2013 15:59:47 +0000 (17:59 +0200)
configure.ac

index f7dfcfccf92bcbe53c06e38bd2ec6ef34a9a44ba..7be2dfff9dd143ae265de482fa2ba0ef386178cc 100644 (file)
@@ -263,6 +263,21 @@ PKG_CHECK_MODULES([check], [check >= 0.9.4],
        LIBS="$LIBS $check_LIBS"], [have_check="no"])
 AM_CONDITIONAL(HAVE_CHECK, test x"$have_check" = "xyes")
 
+# The Rigol DS1xx2 driver currently uses the Linux kernel usbtmc module
+# (though it is planned to rewrite the driver to be portable later).
+# Thus, it will be disabled for non-Linux builds for now.
+case "$build" in
+*linux*)
+       # Do nothing. Whether the driver is enabled is determined by the
+       # previous --enable-all-drivers/--disable-all-drivers and/or any
+       # --enable-rigol-ds1xx2/--disable-rigol-ds1xx2 options.
+       ;;
+*)
+       # Disable the driver for builds that don't target Linux.
+       HW_RIGOL_DS1XX2="no"
+       ;;
+esac
+
 AC_SUBST(SR_PKGLIBS)
 
 # Now set AM_CONDITIONALs and AC_DEFINEs for the enabled/disabled drivers.