AC_PROG_INSTALL
AC_PROG_LN_S
+# Required for per-target flags or subdir-objects with C sources.
+AM_PROG_CC_C_O
+
# Initialize libtool.
LT_INIT
AC_DEFINE(HAVE_LA_ASIX_SIGMA, 1, [ASIX SIGMA/SIGMA2 support])
fi
+AC_ARG_ENABLE(brymen-dmm, AC_HELP_STRING([--enable-brymen-dmm],
+ [enable Brymen DMM support [default=yes]]),
+ [HW_BRYMEN_DMM="$enableval"],
+ [HW_BRYMEN_DMM=yes])
+AM_CONDITIONAL(HW_BRYMEN_DMM, test x$HW_BRYMEN_DMM = xyes)
+if test "x$HW_BRYMEN_DMM" = "xyes"; then
+ AC_DEFINE(HAVE_HW_BRYMEN_DMM, 1, [brymen-dmm support])
+fi
+
AC_ARG_ENABLE(chronovu-la8, AC_HELP_STRING([--enable-chronovu-la8],
[enable ChronoVu LA8 support [default=yes]]),
[LA_CHRONOVU_LA8="$enableval"],
SR_PKGLIBS="$SR_PKGLIBS alsa"])
fi
+# The Check unit testing framework is optional.
+PKG_CHECK_MODULES([check], [check >= 0.9.4],
+ [have_check="yes"; CFLAGS="$CFLAGS $check_CFLAGS";
+ LIBS="$LIBS $check_LIBS"], [have_check="no"])
+AM_CONDITIONAL(HAVE_CHECK, test x"$have_check" = "xyes")
+
# EZUSB FX2 firmware helper code is only needed for some hardware drivers.
AM_CONDITIONAL(NEED_EZUSB, \
test "x$LA_FX2LAFW" != xno \
hardware/agilent-dmm/Makefile
hardware/alsa/Makefile
hardware/asix-sigma/Makefile
+ hardware/brymen-dmm/Makefile
hardware/chronovu-la8/Makefile
hardware/colead-slm/Makefile
hardware/common/Makefile
output/text/Makefile
libsigrok.pc
contrib/Makefile
+ tests/Makefile
])
AC_OUTPUT
echo
# Note: This only works for libs with pkg-config integration.
-for lib in "glib-2.0" "libusb-1.0" "libzip" "libftdi" "libudev" "alsa"; do
+for lib in "glib-2.0" "libusb-1.0" "libzip" "libftdi" "libudev" "alsa" "check"; do
if `$PKG_CONFIG --exists $lib`; then
ver=`$PKG_CONFIG --modversion $lib`
answer="yes ($ver)"
echo " - Agilent DMM..................... $HW_AGILENT_DMM"
echo " - ALSA............................ $HW_ALSA"
echo " - ASIX SIGMA/SIGMA2............... $LA_ASIX_SIGMA"
+echo " - Brymen DMM...................... $HW_BRYMEN_DMM"
echo " - ChronoVu LA8.................... $LA_CHRONOVU_LA8"
echo " - Colead SLM...................... $HW_COLEAD_SLM"
echo " - Demo driver..................... $LA_DEMO"