chiark / gitweb /
zoneconf.in: More master-map hacking: !ADDR means ADDR!ADDR.
[zoneconf] / configure.ac
CommitLineData
a37c695a
MW
1dnl -*-autoconf-*-
2dnl
3dnl Configuration script for zoneconf
4dnl
5dnl (c) 2011 Mark Wooding
6dnl
7
8dnl----- Licensing notice ---------------------------------------------------
9dnl
10dnl This program is free software; you can redistribute it and/or modify
11dnl it under the terms of the GNU General Public License as published by
12dnl the Free Software Foundation; either version 2 of the License, or
13dnl (at your option) any later version.
14dnl
15dnl This program is distributed in the hope that it will be useful,
16dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
17dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18dnl GNU General Public License for more details.
19dnl
20dnl You should have received a copy of the GNU General Public License
21dnl along with this program; if not, write to the Free Software Foundation,
22dnl Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
23
24dnl Initialization.
25mdw_AUTO_VERSION
26AC_INIT([zoneconf], AUTO_VERSION, [mdw@distorted.org.uk])
27AC_CONFIG_SRCDIR([zoneconf.in])
28AC_CONFIG_AUX_DIR([config])
29AM_INIT_AUTOMAKE([foreign])
30mdw_SILENT_RULES
31
32dnl Directories for things.
33AC_MSG_CHECKING([where the BIND utility programs are])
34bindprogsdir=none
35for dir in \
36 /bin /usr/bin /sbin /usr/sbin /usr/local/bin /usr/local/sbin \
37 $(echo $PATH | tr : " ")
38do
39 foundp=t
40 for prog in rndc named-checkzone dnssec-signzone; do
41 if ! test -x "$dir/$prog"; then
42 foundp=nil
43 break
44 fi
45 done
46 case $foundp in t) bindprogsdir=$dir; break ;; esac
47done
48case $bindprogsdir in
49 none) AC_MSG_ERROR([Failed to find BIND utilties.]) ;;
50esac
51AC_MSG_RESULT([$bindprogsdir])
52AC_SUBST([bindprogsdir])
53
54dnl Tcl language support.
55AX_PROG_TCL([8.5])
56
57dnl Output.
58AC_CONFIG_FILES(
59 [Makefile])
60AC_OUTPUT
61
62dnl----- That's all, folks --------------------------------------------------