Various fixes.
[anag] / configure.in
CommitLineData
d9af4a2b 1dnl -*-m4-*-
6e403221 2dnl
fd2edfa6 3dnl $Id: configure.in,v 1.5 2003/11/30 00:58:21 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 $
fd2edfa6 31dnl Revision 1.5 2003/11/30 00:58:21 mdw
32dnl Various fixes.
33dnl
d9af4a2b 34dnl Revision 1.4 2003/11/29 23:38:37 mdw
35dnl Debianization.
36dnl
50959b4c 37dnl Revision 1.3 2002/08/11 12:59:00 mdw
38dnl New Tcl/Tk interface; regular expression support.
39dnl
0484a0d9 40dnl Revision 1.2 2001/02/06 10:06:25 mdw
41dnl Find a suitable Java compiler. If there isn't one, don't compile the
42dnl Java bits.
43dnl
6e403221 44dnl Revision 1.1 2001/02/04 17:14:42 mdw
45dnl Initial checkin
46dnl
47
48AC_INIT(anag.c)
50959b4c 49AM_INIT_AUTOMAKE(anag, 1.1.0)
6e403221 50AM_CONFIG_HEADER(config.h)
51AC_PROG_CC
52mdw_GCC_FLAGS
d9af4a2b 53
fd2edfa6 54AC_CHECK_PROGS([JAVAC], [javac jikes], [none])
0484a0d9 55if test "$JAVAC" = "none"; then
56 AC_MSG_WARN([No Java compiler found])
50959b4c 57 JARFILES=""
58else
59 JARFILES="anag.jar"
60fi
d9af4a2b 61AC_SUBST([JARFILES])
62
50959b4c 63AC_CHECK_PROGS([WISH], [wish wish8], [none])
64if test "$WISH" = "none"; then
65 AC_MSG_WARN([No Tcl/Tk interpreter found])
66 TKPROGS=""
0484a0d9 67else
50959b4c 68 TKPROGS="anag-gui"
0484a0d9 69fi
d9af4a2b 70AC_SUBST([TKPROGS])
71
50959b4c 72EXTNODE=""
73AC_CHECK_FUNCS([regcomp])
d9af4a2b 74mdw_CHECK_MANYLIBS([pcre_fullinfo], [pcre], [AC_DEFINE([HAVE_PCRE])])
75
6e403221 76AC_ARG_WITH(dictionary,
77[ --with-dictionary=DICT set default word list to be DICT],
50959b4c 78[DICTIONARY=$withval],
79[DICTIONARY="/usr/dict/words"])
80AC_DEFINE_UNQUOTED([DICTIONARY], ["$DICTIONARY"])
81AC_SUBST([DICTIONARY])
d9af4a2b 82
50959b4c 83mdw_DEFINE_PATHS([
84 ANAG=mdw_PATH([${bindir}])/mdw_PROG([anag])
85])
d9af4a2b 86
50959b4c 87AC_SUBST([ANAG])
88AC_OUTPUT(Makefile anag-gui)
6e403221 89
90dnl ----- That's all, folks -------------------------------------------------