## along with this program. If not, see <http://www.gnu.org/licenses/>.
##
-AC_PREREQ(2.61)
+AC_PREREQ([2.61])
# libsigrokdecode package version number (NOT the same as shared lib version!).
m4_define([libsigrokdecode_major_version], [0])
# Checks for header files.
# These are already checked: inttypes.h stdint.h stdlib.h string.h unistd.h.
-AC_CHECK_HEADERS([fcntl.h sys/time.h termios.h])
+# AC_CHECK_HEADERS([])
# Checks for typedefs, structures, and compiler characteristics.
AC_C_INLINE
AC_TYPE_SIZE_T
# Checks for library functions.
-AC_CHECK_FUNCS([gettimeofday memset strchr strcspn strdup strerror strncasecmp strstr strtol strtoul strtoull])
+AC_CHECK_FUNCS([memset strtoull])
AC_SUBST(DECODERS_DIR, "$datadir/libsigrokdecode/decoders")
AC_SUBST(MAKEFLAGS, '--no-print-directory')
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
+