2 * InspIRCd -- Internet Relay Chat Daemon
4 * Copyright (C) 2014, 2016, 2018-2020 Sadie Powell <sadie@witchery.services>
6 * This file is part of InspIRCd. InspIRCd is free software: you can
7 * redistribute it and/or modify it under the terms of the GNU General Public
8 * License as published by the Free Software Foundation, version 2.
10 * This program is distributed in the hope that it will be useful, but WITHOUT
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
22 /** The branch version that is shown to unprivileged users. */
23 #define INSPIRCD_BRANCH "InspIRCd-@VERSION_MAJOR@"
25 /** The full version that is shown to privileged users. */
26 #define INSPIRCD_VERSION "InspIRCd-@VERSION_FULL@"
28 /** Determines whether this version of InspIRCd is older than the requested version. */
29 #define INSPIRCD_VERSION_BEFORE(MAJOR, MINOR) (((@VERSION_MAJOR@ << 8) | @VERSION_MINOR@) < ((MAJOR << 8) | (MINOR)))
31 /** Determines whether this version of InspIRCd is equal to or newer than the requested version. */
32 #define INSPIRCD_VERSION_SINCE(MAJOR, MINOR) (((@VERSION_MAJOR@ << 16) | @VERSION_MINOR@) >= ((MAJOR << 8) | (MINOR)))
34 /** The default location that config files are stored in. */
35 #define INSPIRCD_CONFIG_PATH "@CONFIG_DIR@"
37 /** The default location that data files are stored in. */
38 #define INSPIRCD_DATA_PATH "@DATA_DIR@"
40 /** The default location that log files are stored in. */
41 #define INSPIRCD_LOG_PATH "@LOG_DIR@"
43 /** The default location that module files are stored in. */
44 #define INSPIRCD_MODULE_PATH "@MODULE_DIR@"
46 /** The default location that runtime files are stored in. */
47 #define INSPIRCD_RUNTIME_PATH "@RUNTIME_DIR@"
49 /** The URL of the InspIRCd docs site. */
50 #define INSPIRCD_DOCS "https://docs.inspircd.org/@VERSION_MAJOR@/"
53 %target include/config.h
55 /** Whether the arc4random_buf() function was available at compile time. */
56 %define HAS_ARC4RANDOM_BUF
58 /** Whether the clock_gettime() function was available at compile time. */
59 %define HAS_CLOCK_GETTIME
61 /** Whether the eventfd() function was available at compile time. */