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