2014-04-14 12:42:22 +01:00
|
|
|
/*
|
|
|
|
* InspIRCd -- Internet Relay Chat Daemon
|
|
|
|
*
|
2024-07-14 11:58:57 +01:00
|
|
|
* Copyright (C) 2014, 2016, 2018-2021, 2024 Sadie Powell <sadie@witchery.services>
|
2014-04-14 12:42:22 +01:00
|
|
|
*
|
|
|
|
* This file is part of InspIRCd. InspIRCd is free software: you can
|
|
|
|
* redistribute it and/or modify it under the terms of the GNU General Public
|
|
|
|
* License as published by the Free Software Foundation, version 2.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
|
|
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
|
|
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
|
|
|
* details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2020-05-16 17:34:34 +01:00
|
|
|
/** The branch version that is shown to unprivileged users. */
|
2019-05-13 15:22:14 +01:00
|
|
|
#define INSPIRCD_BRANCH "InspIRCd-@VERSION_MAJOR@"
|
2014-04-14 12:42:22 +01:00
|
|
|
|
2020-05-16 17:34:34 +01:00
|
|
|
/** The full version that is shown to privileged users. */
|
2019-05-13 15:22:14 +01:00
|
|
|
#define INSPIRCD_VERSION "InspIRCd-@VERSION_FULL@"
|
|
|
|
|
2020-05-16 17:34:34 +01:00
|
|
|
/** Determines whether this version of InspIRCd is older than the requested version. */
|
2019-05-13 15:22:14 +01:00
|
|
|
#define INSPIRCD_VERSION_BEFORE(MAJOR, MINOR) (((@VERSION_MAJOR@ << 8) | @VERSION_MINOR@) < ((MAJOR << 8) | (MINOR)))
|
|
|
|
|
2020-05-16 17:34:34 +01:00
|
|
|
/** Determines whether this version of InspIRCd is equal to or newer than the requested version. */
|
2021-01-30 17:31:40 +00:00
|
|
|
#define INSPIRCD_VERSION_SINCE(MAJOR, MINOR) (((@VERSION_MAJOR@ << 8) | @VERSION_MINOR@) >= ((MAJOR << 8) | (MINOR)))
|
2019-05-13 15:22:14 +01:00
|
|
|
|
2020-05-16 17:34:34 +01:00
|
|
|
/** The default location that config files are stored in. */
|
2014-05-21 01:26:22 +01:00
|
|
|
#define INSPIRCD_CONFIG_PATH "@CONFIG_DIR@"
|
2019-05-13 15:22:14 +01:00
|
|
|
|
2024-08-30 15:31:47 +01:00
|
|
|
/** The default location that example config files are stored in. */
|
|
|
|
#define INSPIRCD_EXAMPLE_PATH "@EXAMPLE_DIR@"
|
|
|
|
|
2020-05-16 17:34:34 +01:00
|
|
|
/** The default location that data files are stored in. */
|
2019-05-13 15:22:14 +01:00
|
|
|
#define INSPIRCD_DATA_PATH "@DATA_DIR@"
|
|
|
|
|
2020-05-16 17:34:34 +01:00
|
|
|
/** The default location that log files are stored in. */
|
2019-05-13 15:22:14 +01:00
|
|
|
#define INSPIRCD_LOG_PATH "@LOG_DIR@"
|
|
|
|
|
2020-05-16 17:34:34 +01:00
|
|
|
/** The default location that module files are stored in. */
|
2014-05-21 01:26:22 +01:00
|
|
|
#define INSPIRCD_MODULE_PATH "@MODULE_DIR@"
|
2014-04-14 12:42:22 +01:00
|
|
|
|
2021-01-18 06:56:18 +00:00
|
|
|
/** The default location that runtime files are stored in. */
|
|
|
|
#define INSPIRCD_RUNTIME_PATH "@RUNTIME_DIR@"
|
|
|
|
|
2020-12-20 04:04:19 +00:00
|
|
|
/** The URL of the InspIRCd docs site. */
|
|
|
|
#define INSPIRCD_DOCS "https://docs.inspircd.org/@VERSION_MAJOR@/"
|
|
|
|
|
2014-04-14 12:42:22 +01:00
|
|
|
#ifndef _WIN32
|
|
|
|
%target include/config.h
|
2019-05-13 15:22:14 +01:00
|
|
|
|
2020-05-16 17:34:34 +01:00
|
|
|
/** Whether the arc4random_buf() function was available at compile time. */
|
2018-07-20 12:29:36 +01:00
|
|
|
%define HAS_ARC4RANDOM_BUF
|
2019-05-13 15:22:14 +01:00
|
|
|
|
2020-05-16 17:34:34 +01:00
|
|
|
/** Whether the clock_gettime() function was available at compile time. */
|
2014-04-14 12:42:22 +01:00
|
|
|
%define HAS_CLOCK_GETTIME
|
2019-05-13 15:22:14 +01:00
|
|
|
|
2024-07-13 13:21:50 +01:00
|
|
|
/** Whether the getentropy() function was available at compile time. */
|
|
|
|
%define HAS_GETENTROPY
|
|
|
|
|
2014-04-14 12:42:22 +01:00
|
|
|
#endif
|