Monoalphabetic match filter. Simplify the button list.
[anag] / configure.in
CommitLineData
6e403221 1dnl -*-fundamental-*-
2dnl
50959b4c 3dnl $Id: configure.in,v 1.3 2002/08/11 12:59:00 mdw Exp $
6e403221 4dnl
5dnl Configuration script
6dnl
7dnl (c) 2001 Mark Wooding
8dnl
9
10dnl ----- Licensing notice --------------------------------------------------
11dnl
12dnl This file is part of Anag: a simple wordgame helper.
13dnl
14dnl Anag is free software; you can redistribute it and/or modify
15dnl it under the terms of the GNU General Public License as published by
16dnl the Free Software Foundation; either version 2 of the License, or
17dnl (at your option) any later version.
18dnl
19dnl Anag is distributed in the hope that it will be useful,
20dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
21dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22dnl GNU General Public License for more details.
23dnl
24dnl You should have received a copy of the GNU General Public License
25dnl along with Anag; if not, write to the Free Software Foundation,
26dnl Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
27
28dnl ----- Revision history --------------------------------------------------
29dnl
30dnl $Log: configure.in,v $
50959b4c 31dnl Revision 1.3 2002/08/11 12:59:00 mdw
32dnl New Tcl/Tk interface; regular expression support.
33dnl
0484a0d9 34dnl Revision 1.2 2001/02/06 10:06:25 mdw
35dnl Find a suitable Java compiler. If there isn't one, don't compile the
36dnl Java bits.
37dnl
6e403221 38dnl Revision 1.1 2001/02/04 17:14:42 mdw
39dnl Initial checkin
40dnl
41
42AC_INIT(anag.c)
50959b4c 43AM_INIT_AUTOMAKE(anag, 1.1.0)
6e403221 44AM_CONFIG_HEADER(config.h)
45AC_PROG_CC
46mdw_GCC_FLAGS
50959b4c 47AC_CHECK_PROGS([JAVAC], [jikes javac], [none])
0484a0d9 48if test "$JAVAC" = "none"; then
49 AC_MSG_WARN([No Java compiler found])
50959b4c 50 JARFILES=""
51else
52 JARFILES="anag.jar"
53fi
54AC_CHECK_PROGS([WISH], [wish wish8], [none])
55if test "$WISH" = "none"; then
56 AC_MSG_WARN([No Tcl/Tk interpreter found])
57 TKPROGS=""
0484a0d9 58else
50959b4c 59 TKPROGS="anag-gui"
0484a0d9 60fi
50959b4c 61EXTNODE=""
62AC_CHECK_FUNCS([regcomp])
63AC_SUBST([JARFILES])
64AC_SUBST([TKPROGS])
6e403221 65AC_ARG_WITH(dictionary,
66[ --with-dictionary=DICT set default word list to be DICT],
50959b4c 67[DICTIONARY=$withval],
68[DICTIONARY="/usr/dict/words"])
69AC_DEFINE_UNQUOTED([DICTIONARY], ["$DICTIONARY"])
70AC_SUBST([DICTIONARY])
71mdw_DEFINE_PATHS([
72 ANAG=mdw_PATH([${bindir}])/mdw_PROG([anag])
73])
74AC_SUBST([ANAG])
75AC_OUTPUT(Makefile anag-gui)
6e403221 76
77dnl ----- That's all, folks -------------------------------------------------