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