| 1 |
dnl $Id: configure.ac 57688 2021-02-09 18:23:15Z karl $ |
| 2 |
dnl Process this file with autoconf to produce a configure script. |
| 3 |
dnl |
| 4 |
dnl Copyright 2021 Bob Tennent <[email protected]> |
| 5 |
dnl |
| 6 |
dnl This file is free software; the copyright holder |
| 7 |
dnl gives unlimited permission to copy and/or distribute it, |
| 8 |
dnl with or without modifications, as long as this notice is preserved. |
| 9 |
dnl |
| 10 |
m4_define([xml2pmx_version], [2021-02-07])[]dnl using unmodified xml2pmx source |
| 11 |
AC_INIT([xml2pmx (TeX Live)], xml2pmx_version, [[email protected]]) |
| 12 |
AC_PREREQ([2.65]) |
| 13 |
AC_CONFIG_SRCDIR([xml2pmx-src/obx.h]) |
| 14 |
AC_CONFIG_AUX_DIR([../../build-aux]) |
| 15 |
AC_CONFIG_MACRO_DIR([../../m4]) |
| 16 |
AC_DEFINE(REVID, "xml2pmx", [Build id for runtime]) |
| 17 |
|
| 18 |
KPSE_BASIC([xml2pmx]) |
| 19 |
AC_CONFIG_HEADERS([config.h])[] |
| 20 |
|
| 21 |
# Copied from xml2pmx-src/configure.ac. |
| 22 |
# Checks for programs. |
| 23 |
AC_PROG_CC |
| 24 |
AC_C_CONST |
| 25 |
AC_C_BIGENDIAN |
| 26 |
AC_C_INLINE |
| 27 |
AC_UNISTD_H |
| 28 |
|
| 29 |
# defined in acinclude.m4. |
| 30 |
AC_C_UNUSED |
| 31 |
AC_C_USED |
| 32 |
AC_C_NORETURN |
| 33 |
|
| 34 |
AC_DEFINE(PAGESIZE, 4096, [Notional page size for garbage collector]) |
| 35 |
AC_DEFINE(LOG_PAGESIZE, 12, [log2 of PAGESIZE]) |
| 36 |
|
| 37 |
# M64X32 allows Keiko programs (with 4-byte pointers) to run on machines |
| 38 |
# with a 64-bit address space. |
| 39 |
AC_CHECK_SIZEOF([int *]) |
| 40 |
if test $ac_cv_sizeof_int_p = 8; then |
| 41 |
AC_DEFINE(M64X32, 1, [Define for 64-bit runtime with 32-bit pointers]) |
| 42 |
fi |
| 43 |
|
| 44 |
# Indexed jumps allow the interpreter to run faster, but it works |
| 45 |
# without them. |
| 46 |
# AC_C_INDEXED_JUMPS |
| 47 |
|
| 48 |
# SEGMEM allows malloc to be used for all dynamic storage allocation |
| 49 |
AC_DEFINE(SEGMEM, 1, [Define to simulate segmented memory]) |
| 50 |
|
| 51 |
AC_DEFINE(PRELOAD, 1, [Define to use preloaded image]) |
| 52 |
AC_DEFINE(MAGIC, "OBCX", [Magic number for executables]) |
| 53 |
AC_DEFINE(SIG, 0x00030290, [OBC version signature]) |
| 54 |
AC_DEFINE(DEBUG, 1, [Debug]) |
| 55 |
|
| 56 |
# trailing tl stuff. |
| 57 |
AC_PROG_MAKE_SET |
| 58 |
KPSE_COND_WIN32_WRAP |
| 59 |
AC_SUBST([XML2PMX_TREE], [xml2pmx-src]) |
| 60 |
|
| 61 |
AC_CONFIG_FILES([Makefile]) |
| 62 |
AC_OUTPUT |