summaryrefslogtreecommitdiff
path: root/Build/source/utils/vlna/configure.ac
blob: abcaf895df7b8bd9aa3004738c495c685895aa61 (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 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
AC_INIT([vlna for TeX Live], [1.3], [tex-live@tug.org])
AC_PREREQ([2.63])
AC_CONFIG_SRCDIR([vlna.w])
AC_CONFIG_AUX_DIR([../../build-aux])
AC_CONFIG_MACRO_DIR([../../m4])

AM_INIT_AUTOMAKE([foreign no-define])
AM_MAINTAINER_MODE

# Checks for programs.
AC_PROG_CC

KPSE_COMPILER_WARNINGS

# 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_CONFIG_FILES([Makefile])
AC_OUTPUT