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