]> jfr.im git - irc/znc/znc.git/blame - include/znc/version.h
ZNC 1.7.3-rc1
[irc/znc/znc.git] / include / znc / version.h
CommitLineData
a0a3479d 1/*
d647eaab 2Copyright (C) 2004-2018 ZNC, see the NOTICE file for details.
a0a3479d
P
3
4Licensed under the Apache License, Version 2.0 (the "License");
5you may not use this file except in compliance with the License.
6You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS IS" BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15*/
940cae8f
N
16#ifndef ZNC_VERSION_H
17#define ZNC_VERSION_H
a1311277 18
561a1805 19#ifndef BUILD_WITH_CMAKE
a1311277 20// The following defines are for #if comparison (preprocessor only likes ints)
33b0627d 21#define VERSION_MAJOR 1
59cf8aab 22#define VERSION_MINOR 7
6b03fac6 23#define VERSION_PATCH 3
13049e5f 24// This one is for display purpose and to check ABI compatibility of modules
6b03fac6 25#define VERSION_STR "1.7.3"
561a1805
AS
26#endif
27
13049e5f 28// Don't use this one
33b0627d 29#define VERSION (VERSION_MAJOR + VERSION_MINOR / 10.0)
a1311277 30
88d1e27c
AS
31// autoconf: You can add -DVERSION_EXTRA="stuff" to your CXXFLAGS!
32// CMake: You can add -DVERSION_EXTRA=stuff to cmake!
baa798ce 33#ifndef VERSION_EXTRA
33b0627d 34#define VERSION_EXTRA ""
baa798ce 35#endif
a1311277
AS
36extern const char* ZNC_VERSION_EXTRA;
37
13049e5f
AS
38// Compilation options which affect ABI
39
40#ifdef HAVE_IPV6
41#define ZNC_VERSION_TEXT_IPV6 "yes"
42#else
43#define ZNC_VERSION_TEXT_IPV6 "no"
44#endif
45
46#ifdef HAVE_LIBSSL
47#define ZNC_VERSION_TEXT_SSL "yes"
48#else
49#define ZNC_VERSION_TEXT_SSL "no"
50#endif
51
52#ifdef HAVE_THREADED_DNS
53#define ZNC_VERSION_TEXT_DNS "threads"
54#else
55#define ZNC_VERSION_TEXT_DNS "blocking"
56#endif
57
58#ifdef HAVE_ICU
59#define ZNC_VERSION_TEXT_ICU "yes"
60#else
61#define ZNC_VERSION_TEXT_ICU "no"
62#endif
63
64#ifdef HAVE_I18N
65#define ZNC_VERSION_TEXT_I18N "yes"
66#else
67#define ZNC_VERSION_TEXT_I18N "no"
68#endif
69
70#define ZNC_COMPILE_OPTIONS_STRING \
71 "IPv6: " ZNC_VERSION_TEXT_IPV6 ", SSL: " ZNC_VERSION_TEXT_SSL \
72 ", DNS: " ZNC_VERSION_TEXT_DNS ", charset: " ZNC_VERSION_TEXT_ICU \
73 ", i18n: " ZNC_VERSION_TEXT_I18N
74
33b0627d 75#endif // !ZNC_VERSION_H