summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2012-01-04 02:41:33 +0100
committerUwe Hermann <uwe@hermann-uwe.de>2012-01-04 02:41:33 +0100
commitaa56f7ad4f6238fd994b37bf61ba0efa052c14d5 (patch)
tree81ce2565bb4f42375a9dda91aad52168b0515a04
parenta101c52f7651995196a77cb94da65a02583bb1f1 (diff)
downloadlibsigrokdecode-aa56f7ad4f6238fd994b37bf61ba0efa052c14d5.tar.gz
libsigrokdecode-aa56f7ad4f6238fd994b37bf61ba0efa052c14d5.zip
srd: Show config summary, libs, and Python info.
-rw-r--r--configure.ac28
1 files changed, 28 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index d78fc24..f2bf69d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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
+