1dnl Process this file with autoconf to produce a configure script. 2dnl 3dnl Copyright (C) 2013, 2014 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 9m4_include([version.ac])[] dnl define lua52_version 10AC_INIT([lua52 (TeX Live)], lua52_version, [tex-k@tug.org]) 11AC_PREREQ([2.65]) 12AC_CONFIG_SRCDIR([lua-]lua52_version[/src/lua.c]) 13AC_CONFIG_AUX_DIR([../../build-aux]) 14AC_CONFIG_MACRO_DIR([../../m4]) 15 16KPSE_BASIC([lua52]) 17 18AC_PROG_CC 19AC_PROG_RANLIB 20AC_PROG_LN_S 21 22AC_SUBST([LUA52VERSION], [lua52_version]) 23KPSE_LT_VERSION([lua52]) 24 25LT_INIT([win32-dll]) 26 27KPSE_DLL_NAME([texlua52], [texlua52]) 28 29AC_CONFIG_HEADERS([config.h])[]dnl unused, to avoid zillions of -D's on command line 30 31AM_CONDITIONAL([build], [test "x$enable_build" != xno]) 32 33AC_SEARCH_LIBS([sqrt], [m]) 34 35KPSE_LUA52_DEFINES 36KPSE_LARGEFILE([LUA52_DEFINES]) 37 38if test "x$ac_cv_header_stdc" = xyes; then 39 LUA52_DEFINES="$LUA52_DEFINES -DHAVE_UNISTD_H" 40fi 41 42AC_SUBST([LUA52_TREE], [lua-]lua52_version) 43 44AC_CONFIG_FILES([Makefile include/Makefile texlua52.pc]) 45 46AC_OUTPUT 47