| 1 |
dnl $Id: configure.ac 55198 2020-05-18 17:56:12Z karl $ |
| 2 |
dnl Process this file with autoconf to produce a configure script. |
| 3 |
dnl |
| 4 |
dnl Copyright 2015-2020 Karl Berry <[email protected]> |
| 5 |
dnl Copyright 2012-2015 Peter Breitenlohner <[email protected]> |
| 6 |
dnl |
| 7 |
dnl This file is free software; the copyright holder |
| 8 |
dnl gives unlimited permission to copy and/or distribute it, |
| 9 |
dnl with or without modifications, as long as this notice is preserved. |
| 10 |
dnl |
| 11 |
m4_include([version.ac])[] dnl define pmx_version |
| 12 |
AC_INIT([pmx (TeX Live)], pmx_version, [[email protected]]) |
| 13 |
AC_PREREQ([2.65]) |
| 14 |
AC_CONFIG_SRCDIR([pmx-src/pmxab.c]) |
| 15 |
AC_CONFIG_AUX_DIR([../../build-aux]) |
| 16 |
AC_CONFIG_MACRO_DIR([../../m4]) |
| 17 |
|
| 18 |
KPSE_BASIC([pmx]) |
| 19 |
|
| 20 |
dnl Check compiler and flags |
| 21 |
AC_PROG_CC |
| 22 |
|
| 23 |
dnl initial value for PMX_DEFINES |
| 24 |
AC_SUBST([PMX_DEFINES], ['-DNON_UNIX_STDIO']) |
| 25 |
|
| 26 |
KPSE_COND_WIN32 |
| 27 |
dnl WIN32 has no <sys/times.h>, native WIN32 is as MSDOS |
| 28 |
AS_CASE([$kpse_cv_have_win32], |
| 29 |
[native], [PMX_DEFINES="$PMX_DEFINES -DMSDOS"], |
| 30 |
[mingw32], [PMX_DEFINES="$PMX_DEFINES -DUSE_CLOCK"]) |
| 31 |
|
| 32 |
dnl Checks for programs. |
| 33 |
AC_PROG_INSTALL |
| 34 |
AC_PROG_LN_S |
| 35 |
AC_PROG_MAKE_SET |
| 36 |
AC_PROG_RANLIB |
| 37 |
|
| 38 |
AC_SEARCH_LIBS([erf], [m]) |
| 39 |
|
| 40 |
AC_CHECK_SIZEOF([long long]) |
| 41 |
if test $ac_cv_sizeof_long_long -lt 8; then |
| 42 |
PMX_DEFINES="$PMX_DEFINES -DNO_LONG_LONG" |
| 43 |
fi |
| 44 |
|
| 45 |
AC_SUBST([PMX_TREE], [pmx-src]) |
| 46 |
|
| 47 |
AC_CONFIG_FILES([Makefile]) |
| 48 |
AC_OUTPUT |