]> sigrok.org Git - libsigrok.git/blobdiff - configure.ac
add VID:PID for generic SILabs F32x USBXpress chips
[libsigrok.git] / configure.ac
index 341df8e28c894735b4c201f7f62a3caf4131bccc..e8d440df96eba099e975a9bf768ee5112cc49858 100644 (file)
@@ -2,6 +2,7 @@
 ## This file is part of the sigrok project.
 ##
 ## Copyright (C) 2010-2012 Bert Vermeulen <bert@biot.com>
+## Copyright (C) 2012 Alexandru Gagniuc <mr.nuke.me@gmail.com>
 ##
 ## This program is free software: you can redistribute it and/or modify
 ## it under the terms of the GNU General Public License as published by
@@ -63,7 +64,7 @@ PKG_PROG_PKG_CONFIG([0.22])
 # Carefully read the libtool docs before updating these numbers!
 # The algorithm for determining which number to change (and how) is nontrivial!
 # http://www.gnu.org/software/libtool/manual/libtool.html#Updating-version-info
-SR_LIB_VERSION_CURRENT=1
+SR_LIB_VERSION_CURRENT=2
 SR_LIB_VERSION_REVISION=0
 SR_LIB_VERSION_AGE=0
 SR_LIB_VERSION="$SR_LIB_VERSION_CURRENT:$SR_LIB_VERSION_REVISION:$SR_LIB_VERSION_AGE"
@@ -77,12 +78,12 @@ AC_SUBST(SR_LIB_LDFLAGS)
 # Hardware support '--enable' options.
 
 AC_ARG_ENABLE(agilent-dmm, AC_HELP_STRING([--enable-agilent-dmm],
-             [enable Agilent DMM driver support [default=yes]]),
+             [enable Agilent DMM support [default=yes]]),
              [HW_AGILENT_DMM="$enableval"],
              [HW_AGILENT_DMM=yes])
 AM_CONDITIONAL(HW_AGILENT_DMM, test x$HW_AGILENT_DMM = xyes)
 if test "x$HW_AGILENT_DMM" = "xyes"; then
-       AC_DEFINE(HAVE_HW_AGILENT_DMM, 1, [Agilent DMM driver support])
+       AC_DEFINE(HAVE_HW_AGILENT_DMM, 1, [Agilent DMM support])
 fi
 
 # Disabled by default, unfinished.
@@ -113,6 +114,33 @@ if test "x$LA_CHRONOVU_LA8" = "xyes"; then
        AC_DEFINE(HAVE_LA_CHRONOVU_LA8, 1, [ChronoVu LA8 support])
 fi
 
+AC_ARG_ENABLE(colead-slm, AC_HELP_STRING([--enable-colead-slm],
+       [enable Colead SLM support [default=yes]]),
+       [HW_COLEAD_SLM="$enableval"],
+       [HW_COLEAD_SLM=yes])
+AM_CONDITIONAL(HW_COLEAD_SLM, test x$HW_COLEAD_SLM = xyes)
+if test "x$HW_COLEAD_SLM" = "xyes"; then
+       AC_DEFINE(HAVE_HW_COLEAD_SLM, 1, [Colead SLM support])
+fi
+
+AC_ARG_ENABLE(demo, AC_HELP_STRING([--enable-demo],
+             [enable demo driver support [default=yes]]),
+             [LA_DEMO="$enableval"],
+             [LA_DEMO=yes])
+AM_CONDITIONAL(LA_DEMO, test x$LA_DEMO = xyes)
+if test "x$LA_DEMO" = "xyes"; then
+       AC_DEFINE(HAVE_LA_DEMO, 1, [Demo driver support])
+fi
+
+AC_ARG_ENABLE(fluke-dmm, AC_HELP_STRING([--enable-fluke-dmm],
+             [enable Fluke DMM support [default=yes]]),
+             [HW_FLUKE_DMM="$enableval"],
+             [HW_FLUKE_DMM=yes])
+AM_CONDITIONAL(HW_FLUKE_DMM, test x$HW_FLUKE_DMM = xyes)
+if test "x$HW_FLUKE_DMM" = "xyes"; then
+       AC_DEFINE(HAVE_HW_FLUKE_DMM, 1, [Fluke DMM support])
+fi
+
 AC_ARG_ENABLE(fx2lafw, AC_HELP_STRING([--enable-fx2lafw],
              [enable fx2lafw support (for FX2 LAs). [default=yes]]),
              [LA_FX2LAFW="$enableval"],
@@ -122,25 +150,25 @@ if test "x$LA_FX2LAFW" = "xyes"; then
        AC_DEFINE(HAVE_LA_FX2LAFW, 1, [fx2lafw support])
 fi
 
-AC_ARG_ENABLE(genericdmm, AC_HELP_STRING([--enable-genericdmm],
-             [enable genericdmm support (for most DMMs). [default=yes]]),
-             [HW_GENERICDMM="$enableval"],
-             [HW_GENERICDMM=yes])
-AM_CONDITIONAL(HW_GENERICDMM, test x$HW_GENERICDMM = xyes)
-if test "x$HW_GENERICDMM" = "xyes"; then
-       AC_DEFINE(HAVE_HW_GENERICDMM, 1, [Generic DMM support])
+AC_ARG_ENABLE(hantek-dso, AC_HELP_STRING([--enable-hantek-dso],
+             [enable Hantek DSO support [default=yes]]),
+             [HW_HANTEK_DSO="$enableval"],
+             [HW_HANTEK_DSO=yes])
+AM_CONDITIONAL(HW_HANTEK_DSO, test x$HW_HANTEK_DSO = xyes)
+if test "x$HW_HANTEK_DSO" = "xyes"; then
+       AC_DEFINE(HAVE_HW_HANTEK_DSO, 1, [Hantek DSO support])
 fi
 
-AC_ARG_ENABLE(demo, AC_HELP_STRING([--enable-demo],
-             [enable demo driver support [default=yes]]),
-             [LA_DEMO="$enableval"],
-             [LA_DEMO=yes])
-AM_CONDITIONAL(LA_DEMO, test x$LA_DEMO = xyes)
-if test "x$LA_DEMO" = "xyes"; then
-       AC_DEFINE(HAVE_LA_DEMO, 1, [Demo driver support])
+# Disabled by default, unfinished.
+AC_ARG_ENABLE(lascar-el-usb, AC_HELP_STRING([--enable-lascar-el-usb],
+       [enable Lascar EL-USB support [default=yes]]),
+       [HW_LASCAR_EL_USB="$enableval"],
+       [HW_LASCAR_EL_USB=yes])
+AM_CONDITIONAL(HW_LASCAR_EL_USB, test x$HW_LASCAR_EL_USB = xyes)
+if test "x$HW_LASCAR_EL_USB" = "xyes"; then
+       AC_DEFINE(HAVE_HW_LASCAR_EL_USB, 1, [Lascar EL-USB support])
 fi
 
-# Disabled by default, unfinished.
 AC_ARG_ENABLE(link-mso19, AC_HELP_STRING([--enable-link-mso19],
              [enable Link Instruments MSO-19 support [default=no]]),
              [LA_LINK_MSO19="$enableval"],
@@ -159,6 +187,42 @@ if test "x$LA_OLS" = "xyes"; then
        AC_DEFINE(HAVE_LA_OLS, 1, [OpenBench Logic Sniffer (OLS) support])
 fi
 
+AC_ARG_ENABLE(serial-dmm, AC_HELP_STRING([--enable-serial-dmm],
+             [enable serial DMM support [default=yes]]),
+             [HW_SERIAL_DMM="$enableval"],
+             [HW_SERIAL_DMM=yes])
+AM_CONDITIONAL(HW_SERIAL_DMM, test x$HW_SERIAL_DMM = xyes)
+if test "x$HW_SERIAL_DMM" = "xyes"; then
+       AC_DEFINE(HAVE_HW_SERIAL_DMM, 1, [Serial DMM support])
+fi
+
+AC_ARG_ENABLE(tondaj-sl-814, AC_HELP_STRING([--enable-tondaj-sl-814],
+       [enable Tondaj SL-814 support [default=yes]]),
+       [HW_TONDAJ_SL_814="$enableval"],
+       [HW_TONDAJ_SL_814=yes])
+AM_CONDITIONAL(HW_TONDAJ_SL_814, test x$HW_TONDAJ_SL_814 = xyes)
+if test "x$HW_TONDAJ_SL_814" = "xyes"; then
+       AC_DEFINE(HAVE_HW_TONDAJ_SL_814, 1, [Tondaj SL-814 support])
+fi
+
+AC_ARG_ENABLE(uni-t-dmm, AC_HELP_STRING([--enable-uni-t-dmm],
+             [enable UNI-T DMM support [default=yes]]),
+             [HW_UNI_T_DMM="$enableval"],
+             [HW_UNI_T_DMM=yes])
+AM_CONDITIONAL(HW_UNI_T_DMM, test x$HW_UNI_T_DMM = xyes)
+if test "x$HW_UNI_T_DMM" = "xyes"; then
+       AC_DEFINE(HAVE_HW_UNI_T_DMM, 1, [UNI-T DMM support])
+fi
+
+AC_ARG_ENABLE(victor-dmm, AC_HELP_STRING([--enable-victor-dmm],
+       [enable victor-dmm support [default=yes]]),
+       [HW_VICTOR_DMM="$enableval"],
+       [HW_VICTOR_DMM=yes])
+AM_CONDITIONAL(HW_VICTOR_DMM, test x$HW_VICTOR_DMM = xyes)
+if test "x$HW_VICTOR_DMM" = "xyes"; then
+       AC_DEFINE(HAVE_HW_VICTOR_DMM, 1, [victor-dmm support])
+fi
+
 AC_ARG_ENABLE(zeroplus-logic-cube,
              AC_HELP_STRING([--enable-zeroplus-logic-cube],
              [enable ZEROPLUS Logic Cube support [default=yes]]),
@@ -169,16 +233,6 @@ if test "x$LA_ZEROPLUS_LOGIC_CUBE" = "xyes"; then
        AC_DEFINE(HAVE_LA_ZEROPLUS_LOGIC_CUBE, 1, [ZEROPLUS Logic Cube support])
 fi
 
-AC_ARG_ENABLE(hantek-dso,
-             AC_HELP_STRING([--enable-hantek-dso],
-             [enable Hantek DSO support [default=yes]]),
-             [HW_HANTEK_DSO="$enableval"],
-             [HW_HANTEK_DSO=yes])
-AM_CONDITIONAL(HW_HANTEK_DSO, test x$HW_HANTEK_DSO = xyes)
-if test "x$HW_HANTEK_DSO" = "xyes"; then
-       AC_DEFINE(HAVE_HW_HANTEK_DSO, 1, [Hantek DSO support])
-fi
-
 # Checks for libraries.
 
 # This variable collects the pkg-config names of all detected libs.
@@ -209,7 +263,7 @@ if test "x$LA_ASIX_SIGMA" != xno \
                        [Specifies whether we have a libusb.h header.])
                ;;
        *)
-               PKG_CHECK_MODULES([libusb], [libusb-1.0 >= 1.0.5],
+               PKG_CHECK_MODULES([libusb], [libusb-1.0 >= 1.0.9],
                        [CFLAGS="$CFLAGS $libusb_CFLAGS";
                        LIBS="$LIBS $libusb_LIBS";
                        SR_PKGLIBS="$SR_PKGLIBS libusb-1.0"])
@@ -246,17 +300,21 @@ if test "x$LA_ALSA" != xno; then
                SR_PKGLIBS="$SR_PKGLIBS alsa"])
 fi
 
-# EZUSB FX2 firmware helpers only needed for some hardware drivers
+# EZUSB FX2 firmware helper code is only needed for some hardware drivers.
 AM_CONDITIONAL(NEED_EZUSB, \
        test "x$LA_FX2LAFW" != xno \
        -o "x$HW_HANTEK_DSO" != xno \
 )
 
-# Serial port helpers only needed for some hardware drivers
+# Serial port helper code is only needed for some hardware drivers.
 AM_CONDITIONAL(NEED_SERIAL, \
-       test "x$LA_OLS" != xno \
-       -o "x$HW_AGILENT_DMM" != xno \
-       -o "x$HW_GENERICDMM" != xno \
+       test "x$HW_AGILENT_DMM" != xno \
+       -o "x$HW_COLEAD_SLM" != xno \
+       -o "x$HW_FLUKE_DMM" != xno \
+       -o "x$LA_LINK_MSO19" != xno \
+       -o "x$LA_OLS" != xno \
+       -o "x$HW_SERIAL_DMM" != xno \
+       -o "x$HW_TONDAJ_SL_814" != xno \
 )
 
 AC_SUBST(SR_PKGLIBS)
@@ -294,21 +352,26 @@ AC_SUBST(SR_PACKAGE_VERSION_MINOR)
 AC_SUBST(SR_PACKAGE_VERSION_MICRO)
 AC_SUBST(SR_PACKAGE_VERSION)
 
-AC_CONFIG_FILES([Makefile
-                version.h
-                hardware/Makefile
+AC_CONFIG_FILES([Makefile version.h hardware/Makefile
                 hardware/agilent-dmm/Makefile
                 hardware/alsa/Makefile
                 hardware/asix-sigma/Makefile
                 hardware/chronovu-la8/Makefile
+                hardware/colead-slm/Makefile
                 hardware/common/Makefile
+                hardware/lascar-el-usb/Makefile
+                hardware/tondaj-sl-814/Makefile
+                hardware/victor-dmm/Makefile
+                hardware/common/dmm/Makefile
                 hardware/demo/Makefile
+                hardware/fluke-dmm/Makefile
                 hardware/fx2lafw/Makefile
-                hardware/genericdmm/Makefile
+                hardware/hantek-dso/Makefile
                 hardware/link-mso19/Makefile
                 hardware/openbench-logic-sniffer/Makefile
+                hardware/serial-dmm/Makefile
+                hardware/uni-t-dmm/Makefile
                 hardware/zeroplus-logic-cube/Makefile
-                hardware/hantek-dso/Makefile
                 input/Makefile
                 output/Makefile
                 output/text/Makefile
@@ -339,18 +402,22 @@ for lib in "glib-2.0" "gthread-2.0" "libusb-1.0" "libzip" "libftdi" "libudev" "a
        echo "  - $lib: $answer"
 done
 
-echo
-echo "Enabled hardware drivers:"
-echo
+echo -e "\nEnabled hardware drivers:\n"
 echo "  - Agilent DMM..................... $HW_AGILENT_DMM"
 echo "  - ASIX SIGMA/SIGMA2............... $LA_ASIX_SIGMA"
 echo "  - ChronoVu LA8.................... $LA_CHRONOVU_LA8"
+echo "  - Colead SLM...................... $HW_COLEAD_SLM"
 echo "  - Demo driver..................... $LA_DEMO"
+echo "  - Fluke DMM....................... $HW_FLUKE_DMM"
 echo "  - fx2lafw (for FX2 LAs)........... $LA_FX2LAFW"
-echo "  - Generic DMM..................... $HW_GENERICDMM"
+echo "  - Hantek DSO...................... $HW_HANTEK_DSO"
+echo "  - Lascar EL-USB................... $HW_LASCAR_EL_USB"
 echo "  - Link MSO-19..................... $LA_LINK_MSO19"
 echo "  - Openbench Logic Sniffer......... $LA_OLS"
+echo "  - Serial DMM...................... $HW_SERIAL_DMM"
+echo "  - Tondaj SL-814................... $HW_TONDAJ_SL_814"
+echo "  - UNI-T DMM....................... $HW_UNI_T_DMM"
+echo "  - victor-dmm...................... $HW_VICTOR_DMM"
 echo "  - ZEROPLUS Logic Cube............. $LA_ZEROPLUS_LOGIC_CUBE"
-echo "  - Hantek DSO...................... $HW_HANTEK_DSO"
 echo