From c400df631c1915f12c5fc1b21e040ed588bad12e 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: Wed, 13 Jul 2022 20:07:16 +0800 Subject: Wasmness test instead of emscriptenness --- configure.ac | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 0edd8a3..da76e45 100644 --- a/configure.ac +++ b/configure.ac @@ -4,11 +4,12 @@ AC_PROG_CC AM_PROG_AR LT_INIT AC_CANONICAL_HOST -case $host_os in - *emscripten* ) emscripten=true;; - *) emscripten=false;; +case $host_cpu in + *wasm* ) wasm=true;; + *) wasm=false;; esac -if test "x$emscripten" = "xfalse"; then +AM_CONDITIONAL([WASM], [test x$wasm = xtrue]) +if test "x$wasm" = "xfalse"; then PKG_CHECK_MODULES([CURL], [libcurl]) fi AC_CHECK_HEADERS([stddef.h]) @@ -19,7 +20,6 @@ AC_FUNC_MALLOC AC_FUNC_REALLOC AC_TYPE_SIZE_T AC_TYPE_SSIZE_T -AM_CONDITIONAL([EMSCRIPTEN], [test x$emscripten = xtrue]) AC_CONFIG_HEADERS([config.h]) AC_CONFIG_FILES([Makefile]) AC_OUTPUT -- cgit v1.2.3