summaryrefslogtreecommitdiff
path: root/Build/source/utils/vlna/configure.ac
blob: 7543033f18195998ed55df2c2d8dd36b8f1329e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
dnl Process this file with autoconf to produce a configure script.
dnl
dnl   Copyright (C) 2009-2013 Peter Breitenlohner <tex-live@tug.org>
dnl
dnl   This file is free software; the copyright holder
dnl   gives unlimited permission to copy and/or distribute it,
dnl   with or without modifications, as long as this notice is preserved.
dnl
m4_define([vlna_version], [1.5])[]dnl using unmodified vlna source tree
AC_INIT([vlna (TeX Live)], vlna_version, [tex-live@tug.org])
AC_PREREQ([2.65])
AC_CONFIG_SRCDIR([vlna-]vlna_version[/vlna.w])
AC_CONFIG_AUX_DIR([../../build-aux])
AC_CONFIG_MACRO_DIR([../../m4])

KPSE_BASIC([vlna], [no-define])

# Checks for programs.
AC_PROG_CC

# With --enable-maintainer-mode we may want to regenerate
# vlna.c, vlna.tex, and vlna.dvi, this requires ctangle, cweave, and csplain.
AC_CHECK_PROGS([CTANGLE], [ctangle], [none])
AC_CHECK_PROGS([CWEAVE], [cweave], [none])
AC_CHECK_PROGS([CSPLAIN], [csplain], [none])

do_cweb=$enable_maintainer_mode
if test x"$do_cweb" = xyes; then
  case :$CTANGLE:$CWEAVE:$CSPLAIN: in
  *:none:*)
    AC_MSG_WARN([Can not regenerate vlna.c, vlna.tex, and vlna.dvi -- requires ctangle, cweave, and csplain.])
    do_cweb=no
  ;;
  esac
fi
AM_CONDITIONAL([do_cweb], [test "x$do_cweb" = xyes])

AC_SUBST([VLNA_TREE], [vlna-]vlna_version)

AC_CONFIG_FILES([Makefile])
AC_OUTPUT