1dnl Process this file with Autoconf to produce a configure script for Web2c. 2dnl 3dnl Copyright (C) 2009-2015 Peter Breitenlohner <tex-live@tug.org> 4dnl 5dnl This file is free software; the copyright holder 6dnl gives unlimited permission to copy and/or distribute it, 7dnl with or without modifications, as long as this notice is preserved. 8dnl 9dnl -------------------------------------------------------- 10dnl 11dnl This directory is configured separately, because here we create tools 12dnl that have to run on the build system. 13dnl 14m4_include([../../../version.ac])[] dnl define tex_live_version 15AC_INIT([Web2C Tools], tex_live_version(), [tex-k@tug.org]) 16AC_PREREQ([2.63]) 17dnl 18dnl We don't use (for example) tex/tex.web because people who only want 19dnl to build part of the distribution may not have any given program. 20dnl Even main.c isn't guaranteed, but then nothing is, really ... 21AC_CONFIG_SRCDIR([main.c]) 22AC_CONFIG_AUX_DIR([../../../build-aux]) 23AC_CONFIG_MACRO_DIR([../../../m4]) 24 25dnl Common code for all programs using libkpathsea. 26KPSE_COMMON([web2c convert]) 27 28AC_PROG_YACC 29KPSE_PROG_LEX 30 31AC_CHECK_FUNCS([strerror]) 32AC_CHECK_HEADERS([errno.h]) 33AC_CHECK_SIZEOF([int]) 34AC_CHECK_SIZEOF([long]) 35AC_CHECK_SIZEOF([void *]) 36AC_TYPE_UINTPTR_T 37 38dnl Check if <ctype.h> declares isascii. 39AC_CHECK_DECLS([isascii], [], [], [[#include <ctype.h>]]) 40 41dnl Write output here, instead of putting a zillion -D's on the command line. 42AC_CONFIG_HEADERS([kpathsea/c-auto.h:c-auto.in]) 43 44AC_CONFIG_FILES([Makefile]) 45 46AC_OUTPUT 47