]> sigrok.org Git - libsigrok.git/blobdiff - configure.ac
rigol-ds: fix search for the closest vdiv.
[libsigrok.git] / configure.ac
index 7488a890198fbaf3751bdb856a7cc3cb630d675f..595dafe25623ed48b822b095bbc281b59e6f21e3 100644 (file)
@@ -33,6 +33,9 @@ AC_CONFIG_HEADER([config.h])
 AC_CONFIG_MACRO_DIR([autostuff])
 AC_CONFIG_AUX_DIR([autostuff])
 
+# We require this to know the target settings if we're cross-compiling.
+AC_CANONICAL_SYSTEM
+
 # We require at least automake 1.11 (needed for 'silent rules').
 AM_INIT_AUTOMAKE([1.11 -Wall -Werror subdir-objects check-news color-tests])
 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
@@ -396,7 +399,7 @@ PKG_CHECK_MODULES([glibmm], [glibmm-2.4 >= 2.32.0],
        [BINDINGS_CXX="no"; cxx_msg="glibmm required"])
 
 # C++ bindings want stoi and stod.
-if test "x$BINDINGS_CXX" == "xyes"; then
+if test "x$BINDINGS_CXX" = "xyes"; then
        AC_LANG_PUSH([C++])
        AC_MSG_CHECKING([for stoi and stod])
        AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <string>],