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