From dbea417073f08cbc884225a392784abf613d320a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Tue, 8 Jun 2021 13:24:57 +0800 Subject: Further generalise the autotools files --- configure.ac | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 655b47a..1fd249c 100644 --- a/configure.ac +++ b/configure.ac @@ -7,4 +7,20 @@ AC_TYPE_SIZE_T AC_CHECK_FUNCS([strrchr memset]) AM_PROG_AR LT_INIT +AC_CANONICAL_HOST +case $host_vendor in + *apple* ) apple=true;; + *) apple=false;; +esac +AM_CONDITIONAL([APPLE], [test x$apple = xtrue]) +case $host_cpu in + *wasm* ) wasm=true;; + *) wasm=false;; +esac +AM_CONDITIONAL([WASM], [test x$wasm = xtrue]) +case $host in + *arm*apple-darwin1* ) ios=true;; + *) ios=false;; +esac +AM_CONDITIONAL([IOS], [test x$ios = xtrue]) AC_OUTPUT -- cgit v1.2.3