From 8980f39bafb3e59d6de17e7b311df4932e5b5182 Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Mon, 5 Oct 2020 17:17:48 +0100 Subject: Allow for cross-compilation --- configure.ac | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 197a687..a45a1cb 100644 --- a/configure.ac +++ b/configure.ac @@ -8,6 +8,11 @@ if test "x$GUILD" = "x"; then AC_MSG_ERROR(['guild' binary not found; please check your guile 3 installation.]) fi +if test "$cross_compiling" != no; then + GUILE_TARGET="--target=$host_alias" + AC_SUBST([GUILE_TARGET]) +fi + AC_CONFIG_FILES([Makefile]) AC_CONFIG_FILES([pre-inst-env], [chmod +x pre-inst-env]) -- cgit v1.2.3