]> jfr.im git - irc/atheme/atheme-contrib-modules.git/blame - configure.ac
dnsbl.c: add action to set a formatted vhost
[irc/atheme/atheme-contrib-modules.git] / configure.ac
CommitLineData
fffd353d
AJ
1# SPDX-License-Identifier: ISC
2# SPDX-URL: https://spdx.org/licenses/ISC.html
3#
4# Copyright (C) 2005-2015 Atheme Project (http://atheme.org/)
5# Copyright (C) 2021 Atheme Development Group (https://atheme.github.io/)
6
7AC_PREREQ([2.69])
8
9AC_LANG([C])
10AC_INIT([Atheme IRC Services Contrib Modules], [1.0], [https://github.com/atheme/atheme-contrib-modules/issues/], [atheme-contrib-modules], [https://atheme.github.io/])
11
12AC_CONFIG_AUX_DIR([build-aux])
13AC_CONFIG_FILES([buildsys.mk extra.mk])
14AC_CONFIG_HEADERS([src/contrib-sysconf.h])
15AC_CONFIG_MACRO_DIR([m4])
16AC_CONFIG_SRCDIR([src/atheme-compat.h])
17AC_PREFIX_DEFAULT([~/atheme])
18AS_IF([test "x${prefix}" = "xNONE"], [prefix="${ac_default_prefix}"])
19
20# Programs required by the build system
21AC_PROG_CC
22AC_PROG_CC_C99
23AS_IF([test "x${ac_cv_prog_cc_c99}" = "xno"], [
24 AC_MSG_FAILURE([This program requires a C99 compiler])
25])
26AC_CHECK_TOOL([AR], [ar])
27AC_PATH_PROG([CP], [cp])
28AC_PROG_INSTALL
29AC_PATH_PROG([LN], [ln])
30AC_PROG_LN_S
31AC_PROG_MAKE_SET
32AC_PROG_MKDIR_P
33AC_PATH_PROG([MV], [mv])
34AC_PROG_RANLIB
35AC_PATH_PROG([RM], [rm])
36AC_PATH_PROG([TAR], [tar])
37
38# Does what its name implies. The above block can't be put into this function
39# because of autotools black magic voodoo crap that no-one understands ...
40ATHEME_CONTRIB_CHECK_BUILD_REQUIREMENTS
41
42# Automake compatibility. --nenolod
43AC_SUBST([PACKAGE], [AC_PACKAGE_TARNAME])
44AC_SUBST([VERSION], [AC_PACKAGE_VERSION])
45AC_DEFINE_UNQUOTED([PACKAGE], ["${PACKAGE}"], [Name of package])
46AC_DEFINE_UNQUOTED([VERSION], ["${VERSION}"], [Version number of package])
47
48# This should be before any library tests so that insufficient header
49# inclusions in those tests are caught before they become a runtime
50# problem
51ATHEME_CONTRIB_TEST_CC_FLAGS([-Werror=implicit])
52
53# Some modules use platform-specific functionality and thus need checks that
54# the functionality is available
55ATHEME_CONTRIB_LIBTEST_RES_QUERY
56
57
58
59AC_OUTPUT
60BUILDSYS_TOUCH_DEPS