Commit | Line | Data |
---|---|---|
9dcdc856 MW |
1 | dnl -*-autoconf-*- |
2 | dnl | |
3 | dnl Configuration script for YAID | |
4 | dnl | |
5 | dnl (c) 2012 Straylight/Edgeware | |
6 | dnl | |
7 | ||
8 | dnl----- Licensing notice --------------------------------------------------- | |
9 | dnl | |
10 | dnl This file is part of Yet Another Ident Daemon (YAID). | |
11 | dnl | |
12 | dnl YAID is free software; you can redistribute it and/or modify | |
13 | dnl it under the terms of the GNU General Public License as published by | |
14 | dnl the Free Software Foundation; either version 2 of the License, or | |
15 | dnl (at your option) any later version. | |
16 | dnl | |
17 | dnl YAID is distributed in the hope that it will be useful, | |
18 | dnl but WITHOUT ANY WARRANTY; without even the implied warranty of | |
19 | dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
20 | dnl GNU General Public License for more details. | |
21 | dnl | |
22 | dnl You should have received a copy of the GNU General Public License | |
23 | dnl along with YAID; if not, write to the Free Software Foundation, | |
24 | dnl Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
25 | ||
26 | dnl-------------------------------------------------------------------------- | |
27 | dnl Initialization. | |
28 | ||
29 | mdw_AUTO_VERSION | |
30 | AC_INIT([yaid], AUTO_VERSION, [mdw@distorted.org.uk]) | |
9da480be | 31 | AC_CONFIG_SRCDIR([yaid.c]) |
9dcdc856 MW |
32 | AC_CONFIG_AUX_DIR([config]) |
33 | AM_INIT_AUTOMAKE([foreign]) | |
38b211f2 | 34 | AC_CANONICAL_HOST |
9dcdc856 MW |
35 | mdw_SILENT_RULES |
36 | ||
38b211f2 MW |
37 | dnl-------------------------------------------------------------------------- |
38 | dnl C programming environment. | |
39 | ||
9dcdc856 MW |
40 | AC_PROG_CC |
41 | AM_PROG_CC_C_O | |
42 | AX_CFLAGS_WARN_ALL | |
43 | ||
9dcdc856 MW |
44 | AC_CHECK_HEADERS([stdarg.h]) |
45 | ||
46 | AC_SEARCH_LIBS([socket], [socket]) | |
9da480be | 47 | |
bc23d2c7 | 48 | PKG_CHECK_MODULES([mLib], [mLib >= 2.2.1]) |
9dcdc856 MW |
49 | AM_CFLAGS="$AM_CFLAGS $mLib_CFLAGS" |
50 | ||
51 | dnl-------------------------------------------------------------------------- | |
38b211f2 MW |
52 | dnl System-specific code. |
53 | ||
54 | case "$host_os" in | |
55 | linux*) SYS=linux ;; | |
56 | *) AC_MSG_ERROR([no support for system `$host_os': patches welcome]) ;; | |
57 | esac | |
58 | AC_SUBST([SYS]) | |
59 | ||
60 | dnl-------------------------------------------------------------------------- | |
74716d82 MW |
61 | dnl Paths for interesting files. |
62 | ||
63 | mdw_DEFINE_PATHS([ | |
64 | mdw_DEFINE_PATH([POLICYFILE], [${sysconfdir}/yaid.policy], | |
65 | [read global policy from this file.]) | |
66 | ]) | |
67 | ||
68 | dnl-------------------------------------------------------------------------- | |
9dcdc856 MW |
69 | dnl Produce output. |
70 | ||
38b211f2 | 71 | AC_CONFIG_HEADER([config/config.h]) |
9dcdc856 MW |
72 | AC_CONFIG_FILES([Makefile]) |
73 | AC_OUTPUT | |
74 | ||
75 | dnl----- That's all, folks -------------------------------------------------- |