Uwe Hermann | 826938d | 2011-12-30 10:42:39 +0100 | [diff] [blame] | 1 | ## |
| 2 | ## This file is part of the sigrok project. |
| 3 | ## |
Bert Vermeulen | c73d2ea | 2012-02-13 14:31:51 +0100 | [diff] [blame] | 4 | ## Copyright (C) 2010-2012 Bert Vermeulen <bert@biot.com> |
Uwe Hermann | 826938d | 2011-12-30 10:42:39 +0100 | [diff] [blame] | 5 | ## |
| 6 | ## This program is free software: you can redistribute it and/or modify |
| 7 | ## it under the terms of the GNU General Public License as published by |
| 8 | ## the Free Software Foundation, either version 3 of the License, or |
| 9 | ## (at your option) any later version. |
| 10 | ## |
| 11 | ## This program is distributed in the hope that it will be useful, |
| 12 | ## but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | ## GNU General Public License for more details. |
| 15 | ## |
| 16 | ## You should have received a copy of the GNU General Public License |
| 17 | ## along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 18 | ## |
| 19 | |
Uwe Hermann | ef7228b | 2012-01-28 21:26:56 +0100 | [diff] [blame] | 20 | # We require at least autoconf 2.63 (AC_INIT format changed there). |
| 21 | AC_PREREQ([2.63]) |
Uwe Hermann | 826938d | 2011-12-30 10:42:39 +0100 | [diff] [blame] | 22 | |
Uwe Hermann | 3af71f0 | 2012-01-04 00:05:43 +0100 | [diff] [blame] | 23 | # libsigrok package version number (NOT the same as shared lib version!). |
Uwe Hermann | 6dddd90 | 2012-03-31 11:28:24 +0200 | [diff] [blame^] | 24 | m4_define([sr_package_version_major], [0]) |
| 25 | m4_define([sr_package_version_minor], [1]) |
| 26 | m4_define([sr_package_version_micro], [0]) |
| 27 | m4_define([sr_package_version], [sr_package_version_major.sr_package_version_minor.sr_package_version_micro]) |
Uwe Hermann | 826938d | 2011-12-30 10:42:39 +0100 | [diff] [blame] | 28 | |
Uwe Hermann | 6dddd90 | 2012-03-31 11:28:24 +0200 | [diff] [blame^] | 29 | AC_INIT([libsigrok], [sr_package_version], [sigrok-devel@lists.sourceforge.net], |
Uwe Hermann | db8ae7b | 2011-12-30 10:50:00 +0100 | [diff] [blame] | 30 | [libsigrok], [http://www.sigrok.org]) |
Uwe Hermann | 826938d | 2011-12-30 10:42:39 +0100 | [diff] [blame] | 31 | AC_CONFIG_HEADER([config.h]) |
Uwe Hermann | d8521c9 | 2012-01-03 21:55:48 +0100 | [diff] [blame] | 32 | AC_CONFIG_MACRO_DIR([autostuff]) |
| 33 | AC_CONFIG_AUX_DIR([autostuff]) |
Uwe Hermann | 826938d | 2011-12-30 10:42:39 +0100 | [diff] [blame] | 34 | |
Uwe Hermann | ef7228b | 2012-01-28 21:26:56 +0100 | [diff] [blame] | 35 | # We require at least automake 1.11 (needed for 'silent rules'). |
| 36 | AM_INIT_AUTOMAKE([1.11 -Wall -Werror foreign std-options]) |
Uwe Hermann | 826938d | 2011-12-30 10:42:39 +0100 | [diff] [blame] | 37 | m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) |
| 38 | |
Uwe Hermann | 6dddd90 | 2012-03-31 11:28:24 +0200 | [diff] [blame^] | 39 | AH_TOP([#ifndef SR_CONFIG_H |
| 40 | #define SR_CONFIG_H /* To stop multiple inclusions. */]) |
| 41 | AH_BOTTOM([#endif /* SR_CONFIG_H */]) |
Uwe Hermann | 826938d | 2011-12-30 10:42:39 +0100 | [diff] [blame] | 42 | |
Uwe Hermann | 1a081ca | 2012-02-01 23:40:35 +0100 | [diff] [blame] | 43 | # Enable more compiler warnings via -Wall and -Wextra. Add -fvisibility=hidden |
| 44 | # and enforce use of SR_API to explicitly mark all public API functions. |
| 45 | CFLAGS="-g -Wall -Wextra -fvisibility=hidden" |
Uwe Hermann | 826938d | 2011-12-30 10:42:39 +0100 | [diff] [blame] | 46 | |
| 47 | # Checks for programs. |
| 48 | AC_PROG_CXX |
| 49 | AC_PROG_CC |
| 50 | AC_PROG_CPP |
| 51 | AC_PROG_INSTALL |
| 52 | AC_PROG_LN_S |
| 53 | |
| 54 | # Initialize libtool. |
| 55 | LT_INIT |
| 56 | |
| 57 | # Initialize pkg-config. |
| 58 | # We require at least 0.22, as "Requires.private" behaviour changed there. |
| 59 | PKG_PROG_PKG_CONFIG([0.22]) |
| 60 | |
Uwe Hermann | 3af71f0 | 2012-01-04 00:05:43 +0100 | [diff] [blame] | 61 | # Library version for libsigrok (NOT the same as the package version). |
Uwe Hermann | 826938d | 2011-12-30 10:42:39 +0100 | [diff] [blame] | 62 | # Carefully read the libtool docs before updating these numbers! |
| 63 | # The algorithm for determining which number to change (and how) is nontrivial! |
| 64 | # http://www.gnu.org/software/libtool/manual/libtool.html#Updating-version-info |
Uwe Hermann | 6dddd90 | 2012-03-31 11:28:24 +0200 | [diff] [blame^] | 65 | SR_LIB_VERSION_CURRENT=0 |
| 66 | SR_LIB_VERSION_REVISION=0 |
| 67 | SR_LIB_VERSION_AGE=0 |
| 68 | SR_LIB_VERSION="$SR_LIB_VERSION_CURRENT:$SR_LIB_VERSION_REVISION:$SR_LIB_VERSION_AGE" |
| 69 | SR_LIB_LDFLAGS="-version-info $SR_LIB_VERSION" |
| 70 | AC_SUBST(SR_LIB_VERSION_CURRENT) |
| 71 | AC_SUBST(SR_LIB_VERSION_REVISION) |
| 72 | AC_SUBST(SR_LIB_VERSION_AGE) |
| 73 | AC_SUBST(SR_LIB_VERSION) |
| 74 | AC_SUBST(SR_LIB_LDFLAGS) |
Uwe Hermann | 826938d | 2011-12-30 10:42:39 +0100 | [diff] [blame] | 75 | |
Uwe Hermann | 826938d | 2011-12-30 10:42:39 +0100 | [diff] [blame] | 76 | # Logic analyzer hardware support '--enable' options. |
| 77 | |
| 78 | # Disabled by default, unfinished. |
| 79 | AC_ARG_ENABLE(alsa, AC_HELP_STRING([--enable-alsa], |
| 80 | [enable ALSA driver support [default=no]]), |
| 81 | [LA_ALSA="$enableval"], |
| 82 | [LA_ALSA=no]) |
| 83 | AM_CONDITIONAL(LA_ALSA, test x$LA_ALSA = xyes) |
| 84 | if test "x$LA_ALSA" = "xyes"; then |
| 85 | AC_DEFINE(HAVE_LA_ALSA, 1, [ALSA driver support]) |
| 86 | fi |
| 87 | |
| 88 | AC_ARG_ENABLE(asix-sigma, AC_HELP_STRING([--enable-asix-sigma], |
| 89 | [enable ASIX Sigma support [default=yes]]), |
| 90 | [LA_ASIX_SIGMA="$enableval"], |
| 91 | [LA_ASIX_SIGMA=yes]) |
| 92 | AM_CONDITIONAL(LA_ASIX_SIGMA, test x$LA_ASIX_SIGMA = xyes) |
| 93 | if test "x$LA_ASIX_SIGMA" = "xyes"; then |
| 94 | AC_DEFINE(HAVE_LA_ASIX_SIGMA, 1, [ASIX Sigma support]) |
| 95 | fi |
| 96 | |
| 97 | AC_ARG_ENABLE(chronovu-la8, AC_HELP_STRING([--enable-chronovu-la8], |
| 98 | [enable ChronoVu LA8 support [default=yes]]), |
| 99 | [LA_CHRONOVU_LA8="$enableval"], |
| 100 | [LA_CHRONOVU_LA8=yes]) |
| 101 | AM_CONDITIONAL(LA_CHRONOVU_LA8, test x$LA_CHRONOVU_LA8 = xyes) |
| 102 | if test "x$LA_CHRONOVU_LA8" = "xyes"; then |
| 103 | AC_DEFINE(HAVE_LA_CHRONOVU_LA8, 1, [ChronoVu LA8 support]) |
| 104 | fi |
| 105 | |
Joel Holdsworth | f302a08 | 2012-02-11 12:08:49 +0000 | [diff] [blame] | 106 | AC_ARG_ENABLE(fx2lafw, AC_HELP_STRING([--enable-fx2lafw], |
Uwe Hermann | b575052 | 2012-03-21 19:45:46 +0100 | [diff] [blame] | 107 | [enable fx2lafw support (for FX2 LAs). [default=yes]]), |
Joel Holdsworth | f302a08 | 2012-02-11 12:08:49 +0000 | [diff] [blame] | 108 | [LA_FX2LAFW="$enableval"], |
Uwe Hermann | b575052 | 2012-03-21 19:45:46 +0100 | [diff] [blame] | 109 | [LA_FX2LAFW=yes]) |
Joel Holdsworth | f302a08 | 2012-02-11 12:08:49 +0000 | [diff] [blame] | 110 | AM_CONDITIONAL(LA_FX2LAFW, test x$LA_FX2LAFW = xyes) |
| 111 | if test "x$LA_FX2LAFW" = "xyes"; then |
| 112 | AC_DEFINE(HAVE_LA_FX2LAFW, 1, [fx2lafw support]) |
| 113 | fi |
| 114 | |
Uwe Hermann | 826938d | 2011-12-30 10:42:39 +0100 | [diff] [blame] | 115 | AC_ARG_ENABLE(demo, AC_HELP_STRING([--enable-demo], |
| 116 | [enable demo driver support [default=yes]]), |
| 117 | [LA_DEMO="$enableval"], |
| 118 | [LA_DEMO=yes]) |
| 119 | AM_CONDITIONAL(LA_DEMO, test x$LA_DEMO = xyes) |
| 120 | if test "x$LA_DEMO" = "xyes"; then |
| 121 | AC_DEFINE(HAVE_LA_DEMO, 1, [Demo driver support]) |
| 122 | fi |
| 123 | |
| 124 | # Disabled by default, unfinished. |
| 125 | AC_ARG_ENABLE(link-mso19, AC_HELP_STRING([--enable-link-mso19], |
| 126 | [enable Link Instruments MSO-19 support [default=no]]), |
| 127 | [LA_LINK_MSO19="$enableval"], |
| 128 | [LA_LINK_MSO19=no]) |
| 129 | AM_CONDITIONAL(LA_LINK_MSO19, test x$LA_LINK_MSO19 = xyes) |
| 130 | if test "x$LA_LINK_MSO19" = "xyes"; then |
| 131 | AC_DEFINE(HAVE_LA_LINK_MSO19, 1, [Link Instruments MSO-19 support]) |
| 132 | fi |
| 133 | |
| 134 | AC_ARG_ENABLE(ols, AC_HELP_STRING([--enable-ols], |
| 135 | [enable OpenBench Logic Sniffer (OLS) support [default=yes]]), |
| 136 | [LA_OLS="$enableval"], |
| 137 | [LA_OLS=yes]) |
| 138 | AM_CONDITIONAL(LA_OLS, test x$LA_OLS = xyes) |
| 139 | if test "x$LA_OLS" = "xyes"; then |
| 140 | AC_DEFINE(HAVE_LA_OLS, 1, [OpenBench Logic Sniffer (OLS) support]) |
| 141 | fi |
| 142 | |
| 143 | AC_ARG_ENABLE(saleae-logic, AC_HELP_STRING([--enable-saleae-logic], |
| 144 | [enable Saleae Logic support [default=yes]]), |
| 145 | [LA_SALEAE_LOGIC="$enableval"], |
| 146 | [LA_SALEAE_LOGIC=yes]) |
| 147 | AM_CONDITIONAL(LA_SALEAE_LOGIC, test x$LA_SALEAE_LOGIC = xyes) |
| 148 | if test "x$LA_SALEAE_LOGIC" = "xyes"; then |
| 149 | AC_DEFINE(HAVE_LA_SALEAE_LOGIC, 1, [Saleae Logic support]) |
| 150 | fi |
| 151 | |
| 152 | AC_ARG_ENABLE(zeroplus-logic-cube, |
| 153 | AC_HELP_STRING([--enable-zeroplus-logic-cube], |
| 154 | [enable Zeroplus Logic Cube support [default=yes]]), |
| 155 | [LA_ZEROPLUS_LOGIC_CUBE="$enableval"], |
| 156 | [LA_ZEROPLUS_LOGIC_CUBE=yes]) |
| 157 | AM_CONDITIONAL(LA_ZEROPLUS_LOGIC_CUBE, test x$LA_ZEROPLUS_LOGIC_CUBE = xyes) |
| 158 | if test "x$LA_ZEROPLUS_LOGIC_CUBE" = "xyes"; then |
| 159 | AC_DEFINE(HAVE_LA_ZEROPLUS_LOGIC_CUBE, 1, [Zeroplus Logic Cube support]) |
| 160 | fi |
| 161 | |
| 162 | # Checks for libraries. |
| 163 | |
| 164 | # This variable collects the pkg-config names of all detected libs. |
| 165 | # It is then used to construct the "Requires.private:" field in the |
| 166 | # libsigrok.pc file. |
Uwe Hermann | 6dddd90 | 2012-03-31 11:28:24 +0200 | [diff] [blame^] | 167 | SR_PKGLIBS="" |
Uwe Hermann | 826938d | 2011-12-30 10:42:39 +0100 | [diff] [blame] | 168 | |
| 169 | # libglib-2.0 is always needed. |
| 170 | # Note: glib-2.0 is part of the libsigrok API (hard pkg-config requirement). |
| 171 | AM_PATH_GLIB_2_0([2.22.0], |
| 172 | [CFLAGS="$CFLAGS $GLIB_CFLAGS"; LIBS="$LIBS $GLIB_LIBS"]) |
| 173 | |
| 174 | # libgthread-2.0 is always needed (e.g. for the demo hardware driver). |
| 175 | PKG_CHECK_MODULES([gthread], [gthread-2.0 >= 2.22.0], |
| 176 | [CFLAGS="$CFLAGS $gthread_CFLAGS"; LIBS="$LIBS $gthread_LIBS"; |
Uwe Hermann | 6dddd90 | 2012-03-31 11:28:24 +0200 | [diff] [blame^] | 177 | SR_PKGLIBS="$SR_PKGLIBS gthread-2.0"]) |
Uwe Hermann | 826938d | 2011-12-30 10:42:39 +0100 | [diff] [blame] | 178 | |
| 179 | # libusb is only needed for some hardware drivers. |
| 180 | if test "x$LA_SALEAE_LOGIC" != xno \ |
| 181 | -o "x$LA_ASIX_SIGMA" != xno \ |
| 182 | -o "x$LA_CHRONOVU_LA8" != xno \ |
Joel Holdsworth | f302a08 | 2012-02-11 12:08:49 +0000 | [diff] [blame] | 183 | -o "x$LA_ZEROPLUS_LOGIC_CUBE" != xno \ |
| 184 | -o "x$LA_FX2LAFW" != xno; then |
Uwe Hermann | 826938d | 2011-12-30 10:42:39 +0100 | [diff] [blame] | 185 | case "$build" in |
| 186 | *freebsd*) |
| 187 | # FreeBSD comes with an "integrated" libusb-1.0-style USB API. |
| 188 | AC_DEFINE_UNQUOTED(HAVE_LIBUSB_1_0, [1], |
| 189 | [Specifies whether we have a libusb.h header.]) |
| 190 | ;; |
| 191 | *) |
| 192 | PKG_CHECK_MODULES([libusb], [libusb-1.0 >= 1.0.5], |
| 193 | [CFLAGS="$CFLAGS $libusb_CFLAGS"; |
| 194 | LIBS="$LIBS $libusb_LIBS"; |
Uwe Hermann | 6dddd90 | 2012-03-31 11:28:24 +0200 | [diff] [blame^] | 195 | SR_PKGLIBS="$SR_PKGLIBS libusb-1.0"]) |
Uwe Hermann | 826938d | 2011-12-30 10:42:39 +0100 | [diff] [blame] | 196 | AC_CHECK_LIB(usb-1.0, libusb_init) |
| 197 | ;; |
| 198 | esac |
| 199 | fi |
| 200 | |
| 201 | # libzip is always needed. |
| 202 | PKG_CHECK_MODULES([libzip], [libzip >= 0.8], |
| 203 | [CFLAGS="$CFLAGS $libzip_CFLAGS"; LIBS="$LIBS $libzip_LIBS"; |
Uwe Hermann | 6dddd90 | 2012-03-31 11:28:24 +0200 | [diff] [blame^] | 204 | SR_PKGLIBS="$SR_PKGLIBS libzip"]) |
Uwe Hermann | 826938d | 2011-12-30 10:42:39 +0100 | [diff] [blame] | 205 | |
| 206 | # zlib is only needed for some hardware drivers. |
| 207 | if test "x$LA_ASIX_SIGMA" != xno; then |
Uwe Hermann | 44b6aaf | 2012-02-11 00:34:16 +0100 | [diff] [blame] | 208 | case "$build" in |
| 209 | *freebsd*) |
| 210 | # FreeBSD has zlib, but no pkg-config file for it. |
Uwe Hermann | 6dddd90 | 2012-03-31 11:28:24 +0200 | [diff] [blame^] | 211 | # Check manually, and do NOT add it to SR_PKGLIBS. |
Uwe Hermann | 44b6aaf | 2012-02-11 00:34:16 +0100 | [diff] [blame] | 212 | AC_CHECK_LIB(z, uncompress) |
| 213 | ;; |
| 214 | *) |
| 215 | PKG_CHECK_MODULES([zlib], [zlib >= 1.2.3.1], |
| 216 | [CFLAGS="$CFLAGS $zlib_CFLAGS"; LIBS="$LIBS $zlib_LIBS"; |
Uwe Hermann | 6dddd90 | 2012-03-31 11:28:24 +0200 | [diff] [blame^] | 217 | SR_PKGLIBS="$SR_PKGLIBS zlib"]) |
Uwe Hermann | 44b6aaf | 2012-02-11 00:34:16 +0100 | [diff] [blame] | 218 | ;; |
| 219 | esac |
Uwe Hermann | 826938d | 2011-12-30 10:42:39 +0100 | [diff] [blame] | 220 | fi |
| 221 | |
| 222 | # libftdi is only needed for some hardware drivers. |
| 223 | if test "x$LA_ASIX_SIGMA" != xno \ |
| 224 | -o "x$LA_CHRONOVU_LA8" != xno; then |
| 225 | PKG_CHECK_MODULES([libftdi], [libftdi >= 0.16], |
| 226 | [CFLAGS="$CFLAGS $libftdi_CFLAGS"; |
| 227 | LIBS="$LIBS $libftdi_LIBS"; |
Uwe Hermann | 6dddd90 | 2012-03-31 11:28:24 +0200 | [diff] [blame^] | 228 | SR_PKGLIBS="$SR_PKGLIBS libftdi"]) |
Uwe Hermann | 826938d | 2011-12-30 10:42:39 +0100 | [diff] [blame] | 229 | fi |
| 230 | |
| 231 | # libudev is only needed for some hardware drivers. |
| 232 | if test "x$LA_LINK_MSO19" != xno; then |
| 233 | PKG_CHECK_MODULES([libudev], [libudev >= 151], |
| 234 | [CFLAGS="$CFLAGS $libudev_CFLAGS"; LIBS="$LIBS $libudev_LIBS"; |
Uwe Hermann | 6dddd90 | 2012-03-31 11:28:24 +0200 | [diff] [blame^] | 235 | SR_PKGLIBS="$SR_PKGLIBS libudev"]) |
Uwe Hermann | 826938d | 2011-12-30 10:42:39 +0100 | [diff] [blame] | 236 | fi |
| 237 | |
| 238 | # ALSA is only needed for some hardware drivers. |
| 239 | if test "x$LA_ALSA" != xno; then |
| 240 | PKG_CHECK_MODULES([alsa], [alsa >= 1.0], |
| 241 | [CFLAGS="$CFLAGS $alsa_CFLAGS"; LIBS="$LIBS $alsa_LIBS"; |
Uwe Hermann | 6dddd90 | 2012-03-31 11:28:24 +0200 | [diff] [blame^] | 242 | SR_PKGLIBS="$SR_PKGLIBS alsa"]) |
Uwe Hermann | 826938d | 2011-12-30 10:42:39 +0100 | [diff] [blame] | 243 | fi |
| 244 | |
Uwe Hermann | 6dddd90 | 2012-03-31 11:28:24 +0200 | [diff] [blame^] | 245 | AC_SUBST(SR_PKGLIBS) |
Uwe Hermann | 826938d | 2011-12-30 10:42:39 +0100 | [diff] [blame] | 246 | |
| 247 | # Checks for header files. |
| 248 | # These are already checked: inttypes.h stdint.h stdlib.h string.h unistd.h. |
| 249 | AC_CHECK_HEADERS([fcntl.h sys/time.h termios.h]) |
| 250 | |
| 251 | # Checks for typedefs, structures, and compiler characteristics. |
| 252 | AC_C_INLINE |
| 253 | AC_TYPE_INT8_T |
| 254 | AC_TYPE_INT16_T |
| 255 | AC_TYPE_INT32_T |
| 256 | AC_TYPE_INT64_T |
| 257 | AC_TYPE_UINT8_T |
| 258 | AC_TYPE_UINT16_T |
| 259 | AC_TYPE_UINT32_T |
| 260 | AC_TYPE_UINT64_T |
| 261 | AC_TYPE_SIZE_T |
| 262 | |
| 263 | # Checks for library functions. |
| 264 | AC_CHECK_FUNCS([gettimeofday memset strchr strcspn strdup strerror strncasecmp strstr strtol strtoul strtoull]) |
| 265 | |
Uwe Hermann | 8e19023 | 2012-01-03 20:06:36 +0100 | [diff] [blame] | 266 | AC_SUBST(FIRMWARE_DIR, "$datadir/libsigrok/firmware") |
Uwe Hermann | 826938d | 2011-12-30 10:42:39 +0100 | [diff] [blame] | 267 | AC_SUBST(MAKEFLAGS, '--no-print-directory') |
| 268 | AC_SUBST(AM_LIBTOOLFLAGS, '--silent') |
| 269 | |
Uwe Hermann | 6dddd90 | 2012-03-31 11:28:24 +0200 | [diff] [blame^] | 270 | SR_PACKAGE_VERSION_MAJOR=sr_package_version_major |
| 271 | SR_PACKAGE_VERSION_MINOR=sr_package_version_minor |
| 272 | SR_PACKAGE_VERSION_MICRO=sr_package_version_micro |
| 273 | SR_PACKAGE_VERSION=sr_package_version |
Uwe Hermann | 826938d | 2011-12-30 10:42:39 +0100 | [diff] [blame] | 274 | |
Uwe Hermann | 6dddd90 | 2012-03-31 11:28:24 +0200 | [diff] [blame^] | 275 | AC_SUBST(SR_PACKAGE_VERSION_MAJOR) |
| 276 | AC_SUBST(SR_PACKAGE_VERSION_MINOR) |
| 277 | AC_SUBST(SR_PACKAGE_VERSION_MICRO) |
| 278 | AC_SUBST(SR_PACKAGE_VERSION) |
Uwe Hermann | 826938d | 2011-12-30 10:42:39 +0100 | [diff] [blame] | 279 | |
Uwe Hermann | 826938d | 2011-12-30 10:42:39 +0100 | [diff] [blame] | 280 | AC_CONFIG_FILES([Makefile |
Uwe Hermann | 4937b23 | 2012-03-24 10:03:36 +0100 | [diff] [blame] | 281 | sigrok.h |
Uwe Hermann | db8ae7b | 2011-12-30 10:50:00 +0100 | [diff] [blame] | 282 | firmware/Makefile |
| 283 | hardware/Makefile |
| 284 | hardware/alsa/Makefile |
| 285 | hardware/asix-sigma/Makefile |
| 286 | hardware/chronovu-la8/Makefile |
| 287 | hardware/common/Makefile |
| 288 | hardware/demo/Makefile |
Joel Holdsworth | f302a08 | 2012-02-11 12:08:49 +0000 | [diff] [blame] | 289 | hardware/fx2lafw/Makefile |
Uwe Hermann | db8ae7b | 2011-12-30 10:50:00 +0100 | [diff] [blame] | 290 | hardware/link-mso19/Makefile |
| 291 | hardware/openbench-logic-sniffer/Makefile |
| 292 | hardware/saleae-logic/Makefile |
| 293 | hardware/zeroplus-logic-cube/Makefile |
| 294 | input/Makefile |
| 295 | output/Makefile |
| 296 | output/text/Makefile |
| 297 | libsigrok.pc |
Uwe Hermann | 826938d | 2011-12-30 10:42:39 +0100 | [diff] [blame] | 298 | contrib/Makefile |
Uwe Hermann | 826938d | 2011-12-30 10:42:39 +0100 | [diff] [blame] | 299 | ]) |
| 300 | |
| 301 | AC_OUTPUT |
| 302 | |
| 303 | echo |
Uwe Hermann | 45aed07 | 2012-01-04 00:49:21 +0100 | [diff] [blame] | 304 | echo "libsigrok configuration summary:" |
Uwe Hermann | 826938d | 2011-12-30 10:42:39 +0100 | [diff] [blame] | 305 | echo |
Uwe Hermann | 6dddd90 | 2012-03-31 11:28:24 +0200 | [diff] [blame^] | 306 | echo " - Package version (major.minor.micro): $SR_PACKAGE_VERSION" |
| 307 | echo " - Library version (current:revision:age): $SR_LIB_VERSION" |
Uwe Hermann | 45aed07 | 2012-01-04 00:49:21 +0100 | [diff] [blame] | 308 | echo " - Prefix: $prefix" |
| 309 | echo |
| 310 | echo "Detected libraries:" |
| 311 | echo |
| 312 | |
| 313 | # Note: This only works for libs with pkg-config integration. |
| 314 | for lib in "glib-2.0" "gthread-2.0" "libusb-1.0" "libzip" "zlib" "libftdi" "libudev" "alsa"; do |
| 315 | if `$PKG_CONFIG --exists $lib`; then |
| 316 | ver=`$PKG_CONFIG --modversion $lib` |
| 317 | answer="yes ($ver)" |
| 318 | else |
| 319 | answer="no" |
| 320 | fi |
| 321 | echo " - $lib: $answer" |
| 322 | done |
| 323 | |
| 324 | echo |
| 325 | echo "Enabled hardware drivers:" |
| 326 | echo |
| 327 | echo " - ASIX SIGMA...................... $LA_ASIX_SIGMA" |
| 328 | echo " - ChronoVu LA8.................... $LA_CHRONOVU_LA8" |
| 329 | echo " - Demo driver..................... $LA_DEMO" |
Uwe Hermann | b575052 | 2012-03-21 19:45:46 +0100 | [diff] [blame] | 330 | echo " - fx2lafw (for FX2 LAs)........... $LA_FX2LAFW" |
Uwe Hermann | 45aed07 | 2012-01-04 00:49:21 +0100 | [diff] [blame] | 331 | echo " - Link MSO-19..................... $LA_LINK_MSO19" |
| 332 | echo " - Openbench Logic Sniffer......... $LA_OLS" |
| 333 | echo " - Saleae Logic.................... $LA_SALEAE_LOGIC" |
| 334 | echo " - Zeroplus Logic Cube............. $LA_ZEROPLUS_LOGIC_CUBE" |
Uwe Hermann | 826938d | 2011-12-30 10:42:39 +0100 | [diff] [blame] | 335 | echo |
| 336 | |