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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
AC_INIT(babel/thai.dtx)
AM_INIT_AUTOMAKE(thailatex, 0.5.0, thep@linux.thai.net)
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_SED
AC_ARG_ENABLE(hooks,
[AC_HELP_STRING([--disable-hooks],
[disable installation hook scripts])],
, enable_hooks="yes")
AM_CONDITIONAL(ENABLE_HOOKS,test $enable_hooks = "yes")
AC_CHECK_PROGS(LATEX,latex,no)
if test "x$LATEX" = "xno" ; then
AC_MSG_ERROR([You need latex (from texlive distribution)])
fi
AC_CHECK_PROGS(PDFLATEX,pdflatex,no)
if test "x$PDFLATEX" = "xno" ; then
AC_MSG_ERROR([You need pdflatex (from texlive distribution)])
fi
AC_CHECK_PROGS(PATGEN,patgen,no)
if test "x$PATGEN" = "xno" ; then
AC_MSG_ERROR([You need patgen (from texlive distribution)])
fi
AC_CHECK_PROGS(SWATH,swath,no)
AC_CHECK_PROGS(CTTEX,cttex,no)
AC_ARG_WITH(texmfdir,
[AC_HELP_STRING([--with-texmfdir=DIR],
[texmf directory in DIR [PREFIX/share/texmf]])],
[texmfdir="$withval"], [texmfdir=${datarootdir}/texmf])
AC_MSG_CHECKING(--with-texmfdir)
AC_MSG_RESULT("$texmfdir")
AC_SUBST(texmfdir)
if test "x$enable_hooks" = "xyes"; then
AC_PATH_PROG(TEXHASH,[mktexlsr texhash],no)
if test "x$TEXHASH" = "xno" ; then
AC_MSG_ERROR([You need mktexlsr or texhash (from texlive distribution)])
fi
AC_PATH_PROG(FMTUTIL,[fmtutil-sys fmtutil],no)
if test "x$FMTUTIL" = "xno" ; then
AC_MSG_ERROR([You need fmtutil(-sys) (from texlive distribution)])
fi
fi
AC_ARG_WITH(emacsdir,
[AC_HELP_STRING([--with-emacsdir=DIR],
[emacs directory in DIR [PREFIX/share/emacs]])],
[emacsdir="$withval"], [emacsdir=${datarootdir}/emacs])
AC_MSG_CHECKING(--with-emacsdir)
AC_MSG_RESULT("$emacsdir")
AC_SUBST(emacsdir)
AC_OUTPUT(Makefile
babel/Makefile
hyphen/Makefile
emacs/Makefile
scripts/Makefile
scripts/sync-thailatex
doc/Makefile)
|