dnl -*-autoconf-*- dnl dnl Configuration script for YAID dnl dnl (c) 2012 Straylight/Edgeware dnl dnl----- Licensing notice --------------------------------------------------- dnl dnl This file is part of Yet Another Ident Daemon (YAID). dnl dnl YAID is free software; you can redistribute it and/or modify dnl it under the terms of the GNU General Public License as published by dnl the Free Software Foundation; either version 2 of the License, or dnl (at your option) any later version. dnl dnl YAID is distributed in the hope that it will be useful, dnl but WITHOUT ANY WARRANTY; without even the implied warranty of dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the dnl GNU General Public License for more details. dnl dnl You should have received a copy of the GNU General Public License dnl along with YAID; if not, write to the Free Software Foundation, dnl Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. dnl-------------------------------------------------------------------------- dnl Initialization. mdw_AUTO_VERSION AC_INIT([yaid], AUTO_VERSION, [mdw@distorted.org.uk]) AC_CONFIG_SRCDIR([yaid.c]) AC_CONFIG_AUX_DIR([config]) AM_INIT_AUTOMAKE([foreign]) AC_CANONICAL_HOST mdw_SILENT_RULES dnl-------------------------------------------------------------------------- dnl C programming environment. AC_PROG_CC AM_PROG_CC_C_O AX_CFLAGS_WARN_ALL AC_CHECK_HEADERS([stdarg.h]) AX_TYPE_SOCKLEN_T AC_SEARCH_LIBS([socket], [socket]) PKG_CHECK_MODULES([mLib], [mLib >= 2.2.1]) AM_CFLAGS="$AM_CFLAGS $mLib_CFLAGS" dnl-------------------------------------------------------------------------- dnl System-specific code. case "$host_os" in linux*) SYS=linux ;; *) AC_MSG_ERROR([no support for system `$host_os': patches welcome]) ;; esac AC_SUBST([SYS]) dnl-------------------------------------------------------------------------- dnl Paths for interesting files. mdw_DEFINE_PATHS([ mdw_DEFINE_PATH([POLICYFILE], [${sysconfdir}/yaid.policy], [read global policy from this file.]) ]) dnl-------------------------------------------------------------------------- dnl Produce output. AC_CONFIG_HEADER([config/config.h]) AC_CONFIG_FILES([Makefile]) AC_OUTPUT dnl----- That's all, folks --------------------------------------------------