summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2022-07-13 20:07:16 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2022-07-13 20:07:16 +0800
commitc400df631c1915f12c5fc1b21e040ed588bad12e (patch)
tree285a08ea9c793e416fde8790faf75d6b6547777f
parentc36c5a02153388c43b7615614bb7cf44ec5ccd0b (diff)
Wasmness test instead of emscriptennessHEADmaster
-rw-r--r--Makefile.am2
-rw-r--r--configure.ac10
2 files changed, 6 insertions, 6 deletions
diff --git a/Makefile.am b/Makefile.am
index 71876b7..edea43b 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -7,7 +7,7 @@ librtclient_la_SOURCES = \
search.c
librtclient_la_CPPFLAGS = -I${prefix}/include
librtclient_la_LDFLAGS = -L${prefix}/lib
-if EMSCRIPTEN
+if WASM
librtclient_la_LDFLAGS += -static
else
librtclient_la_CPPFLAGS += $(CURL_CFLAGS)
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