86f6a31e |
1 | dnl -*-fundamental-*- |
2 | dnl |
3 | dnl $Id: configure.in,v 1.1 2002/02/03 20:49:03 mdw Exp $ |
4 | dnl |
5 | dnl Configuration script for mdwtools |
6 | dnl |
7 | dnl (c) 2002 Mark Wooding |
8 | dnl |
9 | |
10 | dnl ----- Licensing notice -------------------------------------------------- |
11 | dnl |
12 | dnl This file is part of the mdwtools LaTeX package collection. |
13 | dnl |
14 | dnl mdwtools is free software; you can redistribute it and/or modify |
15 | dnl it under the terms of the GNU General Public License as published by |
16 | dnl the Free Software Foundation; either version 2 of the License, or |
17 | dnl (at your option) any later version. |
18 | dnl |
19 | dnl mdwtools is distributed in the hope that it will be useful, |
20 | dnl but WITHOUT ANY WARRANTY; without even the implied warranty of |
21 | dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
22 | dnl GNU General Public License for more details. |
23 | dnl |
24 | dnl You should have received a copy of the GNU General Public License |
25 | dnl along with mdwtools; if not, write to the Free Software Foundation, |
26 | dnl Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
27 | |
28 | dnl ----- Revision history -------------------------------------------------- |
29 | dnl |
30 | dnl $Log: configure.in,v $ |
31 | dnl Revision 1.1 2002/02/03 20:49:03 mdw |
32 | dnl Checkin for new build system. |
33 | dnl |
34 | |
35 | AC_INIT(mdwtools.ins) |
36 | AM_INIT_AUTOMAKE(mdwtools, 1.6.0) |
37 | |
38 | AC_ARG_WITH([texmfdir], |
39 | [ --with-texmfdir=DIR set the TeX install directory to DIR], |
40 | [texmfdir=$witharg], |
41 | [AC_MSG_CHECKING([where to put installed TeX files]) |
42 | mdw_DEFINE_PATHS([ |
43 | texmfdir='${datadir}/texmf' |
44 | for d in \ |
45 | '${datadir}/texmf' '${libdir}/texmf' '${prefix}/lib/texmf' \ |
46 | '${prefix}/texmf'; do |
47 | if test -d "mdw_PATH([$d])"; then |
48 | texmfdir=$d |
49 | break |
50 | fi |
51 | done |
52 | AC_MSG_RESULT([$texmfdir])])]) |
53 | AC_SUBST(texmfdir) |
54 | |
55 | AC_OUTPUT(Makefile) |
56 | |
57 | dnl ----- That's all, folks ------------------------------------------------- |