]> sigrok.org Git - libsigrok.git/commitdiff
sr: configure.ac: Print more summary info.
authorUwe Hermann <redacted>
Tue, 3 Jan 2012 23:49:21 +0000 (00:49 +0100)
committerUwe Hermann <redacted>
Wed, 4 Jan 2012 01:22:17 +0000 (02:22 +0100)
 - Package version (major.minor.micro)

 - Library version (current:revision:age)

 - Installation prefix (usually /usr/local)

 - Detected libraries and their versions (only for pkg-config libs)

configure.ac

index 7c1ee441acd40823528c5afeafcf444064b75203..053b93d2ca293822cf5e12fb3ea816d596588a0a 100644 (file)
@@ -282,13 +282,37 @@ AC_CONFIG_FILES([Makefile
 AC_OUTPUT
 
 echo
-echo "Building drivers:"
+echo "libsigrok configuration summary:"
 echo
-echo "ASIX SIGMA...................... " $LA_ASIX_SIGMA
-echo "ChronoVu LA8.................... " $LA_CHRONOVU_LA8
-echo "Link MSO-19..................... " $LA_LINK_MSO19
-echo "Openbench Logic Sniffer......... " $LA_OLS
-echo "Saleae Logic.................... " $LA_SALEAE_LOGIC
-echo "Zeroplus Logic Cube............. " $LA_ZEROPLUS_LOGIC_CUBE
+echo "Generic info:"
+echo
+echo "  - Package version (major.minor.micro):    $LIBSIGROK_VERSION"
+echo "  - Library version (current:revision:age): $LIBSIGROK_LT_VERSION"
+echo "  - Prefix: $prefix"
+echo
+echo "Detected libraries:"
+echo
+
+# Note: This only works for libs with pkg-config integration.
+for lib in "glib-2.0" "gthread-2.0" "libusb-1.0" "libzip" "zlib" "libftdi" "libudev" "alsa"; do
+       if `$PKG_CONFIG --exists $lib`; then
+               ver=`$PKG_CONFIG --modversion $lib`
+               answer="yes ($ver)"
+       else
+               answer="no"
+       fi
+       echo "  - $lib: $answer"
+done
+
+echo
+echo "Enabled hardware drivers:"
+echo
+echo "  - ASIX SIGMA...................... $LA_ASIX_SIGMA"
+echo "  - ChronoVu LA8.................... $LA_CHRONOVU_LA8"
+echo "  - Demo driver..................... $LA_DEMO"
+echo "  - Link MSO-19..................... $LA_LINK_MSO19"
+echo "  - Openbench Logic Sniffer......... $LA_OLS"
+echo "  - Saleae Logic.................... $LA_SALEAE_LOGIC"
+echo "  - Zeroplus Logic Cube............. $LA_ZEROPLUS_LOGIC_CUBE"
 echo