From f0f947ac56f58ac5e047bdcafcdc8b9a1a1e34ee Mon Sep 17 00:00:00 2001 From: defanor Date: Thu, 4 May 2023 21:29:28 +0300 Subject: Introduce an alternative implementation of rexmpp_socks in Rust Possibly other modules will follow. Aiming to provide memory-safe(r) alternatives, while keeping the C versions as well. --- configure.ac | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 26d0a76..e9588fa 100644 --- a/configure.ac +++ b/configure.ac @@ -13,6 +13,15 @@ AC_CONFIG_FILES([Makefile src/Makefile tests/Makefile rexmpp.pc Doxyfile]) AC_PROG_CC AM_PROG_AR +AC_ARG_WITH([rust], + AS_HELP_STRING([--with-rust], + [use available Rust implementations of modules])) + +AS_IF([test "x$with_rust" == "xyes"], + [AC_PATH_PROG([RUSTC], [rustc], [notfound]) + AS_IF([test "x$RUSTC" == "xnotfound"], [AC_MSG_ERROR([rustc is required])])]) +AM_CONDITIONAL([USE_RUST], [test "x$with_rust" == "xyes"]) + LT_INIT # Checks for libraries and related parameters. -- cgit v1.2.3