]> sigrok.org Git - libsigrokdecode.git/commitdiff
srd: Show config summary, libs, and Python info.
authorUwe Hermann <redacted>
Wed, 4 Jan 2012 01:41:33 +0000 (02:41 +0100)
committerUwe Hermann <redacted>
Wed, 4 Jan 2012 01:41:33 +0000 (02:41 +0100)
configure.ac

index d78fc2424b41c4e8f901ce2ed7309e51e03cb073..f2bf69d9eaffe234f1a47bb61255dea7fd071200 100644 (file)
@@ -162,3 +162,31 @@ AC_CONFIG_FILES([Makefile
 
 AC_OUTPUT
 
+echo
+echo "libsigrokdecode configuration summary:"
+echo
+echo "  - Package version (major.minor.micro):    $LIBSIGROKDECODE_VERSION"
+echo "  - Library version (current:revision:age): $LIBSIGROKDECODE_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"; 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 "Detected Python:"
+echo
+echo "  - Python CPPFLAGS: $CPPFLAGS_PYTHON"
+echo "  - Python LDFLAGS: $LDFLAGS_PYTHON"
+echo
+