summaryrefslogtreecommitdiff
path: root/Build/source/utils/xml2pmx/xml2pmx-src/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/utils/xml2pmx/xml2pmx-src/configure.ac')
-rw-r--r--Build/source/utils/xml2pmx/xml2pmx-src/configure.ac43
1 files changed, 43 insertions, 0 deletions
diff --git a/Build/source/utils/xml2pmx/xml2pmx-src/configure.ac b/Build/source/utils/xml2pmx/xml2pmx-src/configure.ac
new file mode 100644
index 00000000000..6e1d7ece5f6
--- /dev/null
+++ b/Build/source/utils/xml2pmx/xml2pmx-src/configure.ac
@@ -0,0 +1,43 @@
+# configure.ac for XML2PMX
+
+AC_INIT(xml2pmx, 2021-01-23, rdt@cs.queensu.ca)
+AC_CONFIG_AUX_DIR(scripts)
+AM_INIT_AUTOMAKE([-Wall foreign])
+AC_CONFIG_SRCDIR(obx.h)
+AC_CONFIG_FILES(Makefile)
+AC_CONFIG_HEADERS(config.h)
+AC_DEFINE(REVID, "xml2pmx", [Build id for runtime])
+
+AC_CANONICAL_HOST
+AC_PROG_CC
+AC_C_CONST
+AC_C_BIGENDIAN
+AC_C_INLINE
+AC_C_UNUSED
+AC_C_USED
+AC_C_NORETURN
+AC_UNISTD_H
+
+AC_DEFINE(PAGESIZE, 4096, [Notional page size for garbage collector])
+AC_DEFINE(LOG_PAGESIZE, 12, [log2 of PAGESIZE])
+
+# M64X32 allows Keiko programs (with 4-byte pointers) to run on machines
+# with a 64-bit address space.
+AC_CHECK_SIZEOF([int *])
+if test $ac_cv_sizeof_int_p = 8; then
+ AC_DEFINE(M64X32, 1, [Define for 64-bit runtime with 32-bit pointers])
+fi
+
+# Indexed jumps allow the interpreter to run faster, but it works
+# without them.
+# AC_C_INDEXED_JUMPS
+
+# SEGMEM allows malloc to be used for all dynamic storage allocation
+AC_DEFINE(SEGMEM, 1, [Define to simulate segmented memory])
+
+AC_DEFINE(PRELOAD, 1, [Define to use preloaded image])
+AC_DEFINE(MAGIC, "OBCX", [Magic number for executables])
+AC_DEFINE(SIG, 0x00030290, [OBC version signature])
+AC_DEFINE(DEBUG, 1, [Debug])
+
+AC_OUTPUT