summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorpeter <peter@pmikkelsen.com>2026-09-26 12:16:31 +0000
committerpeter <peter@pmikkelsen.com>2026-09-26 12:16:31 +0000
commitbffc02133d96f02f778dd0d44e0a5fa10157aca9 (patch)
treee30332b75424ab8a7ff4463df92bc33f6d33a441 /configure.ac
parent99b3c6e10dc4bce0f1dd75ce9ae244efe24f16bd (diff)
Support cross compilation.
Include AX_PROG_CC_FOR_BUILD from autoconf-archive, and use CC_FOR_BUILD to build the two generator binaries, even when a different host system is targeted using ./configure --host=... I have not yet tested that the aplwc binary works when built this way. FossilOrigin-Name: 55b2cc92bc6d0a76ac7da97ad35489d435a484d7173348eefe3499fe058e0a69
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac2
1 files changed, 2 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 9b3e9d4..155748d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -5,8 +5,10 @@ AM_MAINTAINER_MODE([disable])
AC_CONFIG_SRCDIR([src/bin/main.c])
AC_CONFIG_HEADERS([config.h])
+AC_CONFIG_MACRO_DIRS([m4])
AC_PROG_CC
+AX_PROG_CC_FOR_BUILD
AC_C_FLEXIBLE_ARRAY_MEMBER
AC_PROG_RANLIB
AM_PROG_AR