annotate cmake/internal/sysconfig.hpp.in @ 706:bd7feaa002cb

Irccd: check ABI compatibility in dynlib_plugin
author David Demelier <markand@malikania.fr>
date Fri, 06 Jul 2018 19:32:54 +0200
parents 2007a37d7e1a
children 48afa8c41f50
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
95
1125d90b3b44 Misc: switch to .hpp, #477
David Demelier <markand@malikania.fr>
parents:
diff changeset
1 /*
659
e9adad05580f CMake: style #782
David Demelier <markand@malikania.fr>
parents: 628
diff changeset
2 * sysconfig.hpp -- configuration for irccd
95
1125d90b3b44 Misc: switch to .hpp, #477
David Demelier <markand@malikania.fr>
parents:
diff changeset
3 *
628
27587ff92a64 Misc: update copyrights
David Demelier <markand@malikania.fr>
parents: 620
diff changeset
4 * Copyright (c) 2013-2018 David Demelier <markand@malikania.fr>
95
1125d90b3b44 Misc: switch to .hpp, #477
David Demelier <markand@malikania.fr>
parents:
diff changeset
5 *
1125d90b3b44 Misc: switch to .hpp, #477
David Demelier <markand@malikania.fr>
parents:
diff changeset
6 * Permission to use, copy, modify, and/or distribute this software for any
1125d90b3b44 Misc: switch to .hpp, #477
David Demelier <markand@malikania.fr>
parents:
diff changeset
7 * purpose with or without fee is hereby granted, provided that the above
1125d90b3b44 Misc: switch to .hpp, #477
David Demelier <markand@malikania.fr>
parents:
diff changeset
8 * copyright notice and this permission notice appear in all copies.
1125d90b3b44 Misc: switch to .hpp, #477
David Demelier <markand@malikania.fr>
parents:
diff changeset
9 *
1125d90b3b44 Misc: switch to .hpp, #477
David Demelier <markand@malikania.fr>
parents:
diff changeset
10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
1125d90b3b44 Misc: switch to .hpp, #477
David Demelier <markand@malikania.fr>
parents:
diff changeset
11 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
1125d90b3b44 Misc: switch to .hpp, #477
David Demelier <markand@malikania.fr>
parents:
diff changeset
12 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
1125d90b3b44 Misc: switch to .hpp, #477
David Demelier <markand@malikania.fr>
parents:
diff changeset
13 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
1125d90b3b44 Misc: switch to .hpp, #477
David Demelier <markand@malikania.fr>
parents:
diff changeset
14 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
1125d90b3b44 Misc: switch to .hpp, #477
David Demelier <markand@malikania.fr>
parents:
diff changeset
15 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
1125d90b3b44 Misc: switch to .hpp, #477
David Demelier <markand@malikania.fr>
parents:
diff changeset
16 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
1125d90b3b44 Misc: switch to .hpp, #477
David Demelier <markand@malikania.fr>
parents:
diff changeset
17 */
1125d90b3b44 Misc: switch to .hpp, #477
David Demelier <markand@malikania.fr>
parents:
diff changeset
18
659
e9adad05580f CMake: style #782
David Demelier <markand@malikania.fr>
parents: 628
diff changeset
19 #ifndef IRCCD_SYSCONFIG_HPP
e9adad05580f CMake: style #782
David Demelier <markand@malikania.fr>
parents: 628
diff changeset
20 #define IRCCD_SYSCONFIG_HPP
95
1125d90b3b44 Misc: switch to .hpp, #477
David Demelier <markand@malikania.fr>
parents:
diff changeset
21
1125d90b3b44 Misc: switch to .hpp, #477
David Demelier <markand@malikania.fr>
parents:
diff changeset
22 /*
1125d90b3b44 Misc: switch to .hpp, #477
David Demelier <markand@malikania.fr>
parents:
diff changeset
23 * Fix annoying "Please include winsock2.h before windows.h"
1125d90b3b44 Misc: switch to .hpp, #477
David Demelier <markand@malikania.fr>
parents:
diff changeset
24 */
1125d90b3b44 Misc: switch to .hpp, #477
David Demelier <markand@malikania.fr>
parents:
diff changeset
25 #if defined(_WIN32)
256
f04acabfbbe5 CMake: switch to NSIS with various fixes, closes #533
David Demelier <markand@malikania.fr>
parents: 253
diff changeset
26 # if !defined(WIN32_MEAN_AND_LEAN)
f04acabfbbe5 CMake: switch to NSIS with various fixes, closes #533
David Demelier <markand@malikania.fr>
parents: 253
diff changeset
27 # define WIN32_MEAN_AND_LEAN
f04acabfbbe5 CMake: switch to NSIS with various fixes, closes #533
David Demelier <markand@malikania.fr>
parents: 253
diff changeset
28 # endif
f04acabfbbe5 CMake: switch to NSIS with various fixes, closes #533
David Demelier <markand@malikania.fr>
parents: 253
diff changeset
29 # if !defined(NOMINMAX)
f04acabfbbe5 CMake: switch to NSIS with various fixes, closes #533
David Demelier <markand@malikania.fr>
parents: 253
diff changeset
30 # define NOMINMAX
f04acabfbbe5 CMake: switch to NSIS with various fixes, closes #533
David Demelier <markand@malikania.fr>
parents: 253
diff changeset
31 # endif
f04acabfbbe5 CMake: switch to NSIS with various fixes, closes #533
David Demelier <markand@malikania.fr>
parents: 253
diff changeset
32
f04acabfbbe5 CMake: switch to NSIS with various fixes, closes #533
David Demelier <markand@malikania.fr>
parents: 253
diff changeset
33 # include <winsock2.h>
f04acabfbbe5 CMake: switch to NSIS with various fixes, closes #533
David Demelier <markand@malikania.fr>
parents: 253
diff changeset
34 # include <windows.h>
95
1125d90b3b44 Misc: switch to .hpp, #477
David Demelier <markand@malikania.fr>
parents:
diff changeset
35 #endif
1125d90b3b44 Misc: switch to .hpp, #477
David Demelier <markand@malikania.fr>
parents:
diff changeset
36
1125d90b3b44 Misc: switch to .hpp, #477
David Demelier <markand@malikania.fr>
parents:
diff changeset
37 /*
1125d90b3b44 Misc: switch to .hpp, #477
David Demelier <markand@malikania.fr>
parents:
diff changeset
38 * Auto generated from CMake.
1125d90b3b44 Misc: switch to .hpp, #477
David Demelier <markand@malikania.fr>
parents:
diff changeset
39 * ------------------------------------------------------------------
1125d90b3b44 Misc: switch to .hpp, #477
David Demelier <markand@malikania.fr>
parents:
diff changeset
40 */
1125d90b3b44 Misc: switch to .hpp, #477
David Demelier <markand@malikania.fr>
parents:
diff changeset
41
207
6635b9187d71 Irccd: switch to 4 spaces indent, #518
David Demelier <markand@malikania.fr>
parents: 189
diff changeset
42 #define PREFIX "@CMAKE_INSTALL_PREFIX@"
95
1125d90b3b44 Misc: switch to .hpp, #477
David Demelier <markand@malikania.fr>
parents:
diff changeset
43
207
6635b9187d71 Irccd: switch to 4 spaces indent, #518
David Demelier <markand@malikania.fr>
parents: 189
diff changeset
44 #define IRCCD_VERSION_MAJOR @IRCCD_VERSION_MAJOR@
6635b9187d71 Irccd: switch to 4 spaces indent, #518
David Demelier <markand@malikania.fr>
parents: 189
diff changeset
45 #define IRCCD_VERSION_MINOR @IRCCD_VERSION_MINOR@
6635b9187d71 Irccd: switch to 4 spaces indent, #518
David Demelier <markand@malikania.fr>
parents: 189
diff changeset
46 #define IRCCD_VERSION_PATCH @IRCCD_VERSION_PATCH@
706
bd7feaa002cb Irccd: check ABI compatibility in dynlib_plugin
David Demelier <markand@malikania.fr>
parents: 701
diff changeset
47 #define IRCCD_VERSION_SHLIB @IRCCD_VERSION_SHLIB@
207
6635b9187d71 Irccd: switch to 4 spaces indent, #518
David Demelier <markand@malikania.fr>
parents: 189
diff changeset
48 #define IRCCD_VERSION "@IRCCD_VERSION@"
95
1125d90b3b44 Misc: switch to .hpp, #477
David Demelier <markand@malikania.fr>
parents:
diff changeset
49
1125d90b3b44 Misc: switch to .hpp, #477
David Demelier <markand@malikania.fr>
parents:
diff changeset
50 /*
1125d90b3b44 Misc: switch to .hpp, #477
David Demelier <markand@malikania.fr>
parents:
diff changeset
51 * User definable options.
1125d90b3b44 Misc: switch to .hpp, #477
David Demelier <markand@malikania.fr>
parents:
diff changeset
52 * ------------------------------------------------------------------
1125d90b3b44 Misc: switch to .hpp, #477
David Demelier <markand@malikania.fr>
parents:
diff changeset
53 */
1125d90b3b44 Misc: switch to .hpp, #477
David Demelier <markand@malikania.fr>
parents:
diff changeset
54
701
2007a37d7e1a CMake: prefix options with IRCCD_, #closes 800 @2h
David Demelier <markand@malikania.fr>
parents: 700
diff changeset
55 #define IRCCD_WITH_CACHEDIR "@IRCCD_WITH_CACHEDIR@"
2007a37d7e1a CMake: prefix options with IRCCD_, #closes 800 @2h
David Demelier <markand@malikania.fr>
parents: 700
diff changeset
56 #define IRCCD_WITH_DATADIR "@IRCCD_WITH_DATADIR@"
2007a37d7e1a CMake: prefix options with IRCCD_, #closes 800 @2h
David Demelier <markand@malikania.fr>
parents: 700
diff changeset
57 #define IRCCD_WITH_BINDIR "@IRCCD_WITH_BINDIR@"
2007a37d7e1a CMake: prefix options with IRCCD_, #closes 800 @2h
David Demelier <markand@malikania.fr>
parents: 700
diff changeset
58 #define IRCCD_WITH_SYSCONFDIR "@IRCCD_WITH_SYSCONFDIR@"
2007a37d7e1a CMake: prefix options with IRCCD_, #closes 800 @2h
David Demelier <markand@malikania.fr>
parents: 700
diff changeset
59 #define IRCCD_WITH_PLUGINDIR "@IRCCD_WITH_PLUGINDIR@"
95
1125d90b3b44 Misc: switch to .hpp, #477
David Demelier <markand@malikania.fr>
parents:
diff changeset
60
701
2007a37d7e1a CMake: prefix options with IRCCD_, #closes 800 @2h
David Demelier <markand@malikania.fr>
parents: 700
diff changeset
61 #cmakedefine IRCCD_HAVE_JS
2007a37d7e1a CMake: prefix options with IRCCD_, #closes 800 @2h
David Demelier <markand@malikania.fr>
parents: 700
diff changeset
62 #cmakedefine IRCCD_HAVE_SSL
2007a37d7e1a CMake: prefix options with IRCCD_, #closes 800 @2h
David Demelier <markand@malikania.fr>
parents: 700
diff changeset
63 #cmakedefine IRCCD_HAVE_LIBEDIT
95
1125d90b3b44 Misc: switch to .hpp, #477
David Demelier <markand@malikania.fr>
parents:
diff changeset
64
1125d90b3b44 Misc: switch to .hpp, #477
David Demelier <markand@malikania.fr>
parents:
diff changeset
65 /*
1125d90b3b44 Misc: switch to .hpp, #477
David Demelier <markand@malikania.fr>
parents:
diff changeset
66 * Platform checks.
1125d90b3b44 Misc: switch to .hpp, #477
David Demelier <markand@malikania.fr>
parents:
diff changeset
67 * ------------------------------------------------------------------
1125d90b3b44 Misc: switch to .hpp, #477
David Demelier <markand@malikania.fr>
parents:
diff changeset
68 */
1125d90b3b44 Misc: switch to .hpp, #477
David Demelier <markand@malikania.fr>
parents:
diff changeset
69
1125d90b3b44 Misc: switch to .hpp, #477
David Demelier <markand@malikania.fr>
parents:
diff changeset
70 #cmakedefine HAVE_DAEMON
507
65e80d258b34 Irccd: use system username, closes #562
David Demelier <markand@malikania.fr>
parents: 486
diff changeset
71 #cmakedefine HAVE_GETLOGIN
95
1125d90b3b44 Misc: switch to .hpp, #477
David Demelier <markand@malikania.fr>
parents:
diff changeset
72 #cmakedefine HAVE_GETPID
1125d90b3b44 Misc: switch to .hpp, #477
David Demelier <markand@malikania.fr>
parents:
diff changeset
73 #cmakedefine HAVE_POPEN
1125d90b3b44 Misc: switch to .hpp, #477
David Demelier <markand@malikania.fr>
parents:
diff changeset
74 #cmakedefine HAVE_SETGID
1125d90b3b44 Misc: switch to .hpp, #477
David Demelier <markand@malikania.fr>
parents:
diff changeset
75 #cmakedefine HAVE_SETPROGNAME
1125d90b3b44 Misc: switch to .hpp, #477
David Demelier <markand@malikania.fr>
parents:
diff changeset
76 #cmakedefine HAVE_SETUID
669
6eb4caea77a5 Tests: split libirccd util tests into libcommon, closes #789 @1h
David Demelier <markand@malikania.fr>
parents: 659
diff changeset
77 #cmakedefine HAVE_SIGNED_GID_T
6eb4caea77a5 Tests: split libirccd util tests into libcommon, closes #789 @1h
David Demelier <markand@malikania.fr>
parents: 659
diff changeset
78 #cmakedefine HAVE_SIGNED_UID_T
95
1125d90b3b44 Misc: switch to .hpp, #477
David Demelier <markand@malikania.fr>
parents:
diff changeset
79 #cmakedefine HAVE_STAT
1125d90b3b44 Misc: switch to .hpp, #477
David Demelier <markand@malikania.fr>
parents:
diff changeset
80 #cmakedefine HAVE_STAT_ST_ATIME
1125d90b3b44 Misc: switch to .hpp, #477
David Demelier <markand@malikania.fr>
parents:
diff changeset
81 #cmakedefine HAVE_STAT_ST_BLKSIZE
1125d90b3b44 Misc: switch to .hpp, #477
David Demelier <markand@malikania.fr>
parents:
diff changeset
82 #cmakedefine HAVE_STAT_ST_BLOCKS
1125d90b3b44 Misc: switch to .hpp, #477
David Demelier <markand@malikania.fr>
parents:
diff changeset
83 #cmakedefine HAVE_STAT_ST_CTIME
1125d90b3b44 Misc: switch to .hpp, #477
David Demelier <markand@malikania.fr>
parents:
diff changeset
84 #cmakedefine HAVE_STAT_ST_DEV
1125d90b3b44 Misc: switch to .hpp, #477
David Demelier <markand@malikania.fr>
parents:
diff changeset
85 #cmakedefine HAVE_STAT_ST_GID
1125d90b3b44 Misc: switch to .hpp, #477
David Demelier <markand@malikania.fr>
parents:
diff changeset
86 #cmakedefine HAVE_STAT_ST_INO
1125d90b3b44 Misc: switch to .hpp, #477
David Demelier <markand@malikania.fr>
parents:
diff changeset
87 #cmakedefine HAVE_STAT_ST_MODE
1125d90b3b44 Misc: switch to .hpp, #477
David Demelier <markand@malikania.fr>
parents:
diff changeset
88 #cmakedefine HAVE_STAT_ST_MTIME
1125d90b3b44 Misc: switch to .hpp, #477
David Demelier <markand@malikania.fr>
parents:
diff changeset
89 #cmakedefine HAVE_STAT_ST_NLINK
1125d90b3b44 Misc: switch to .hpp, #477
David Demelier <markand@malikania.fr>
parents:
diff changeset
90 #cmakedefine HAVE_STAT_ST_RDEV
1125d90b3b44 Misc: switch to .hpp, #477
David Demelier <markand@malikania.fr>
parents:
diff changeset
91 #cmakedefine HAVE_STAT_ST_SIZE
1125d90b3b44 Misc: switch to .hpp, #477
David Demelier <markand@malikania.fr>
parents:
diff changeset
92 #cmakedefine HAVE_STAT_ST_UID
669
6eb4caea77a5 Tests: split libirccd util tests into libcommon, closes #789 @1h
David Demelier <markand@malikania.fr>
parents: 659
diff changeset
93 #cmakedefine HAVE_STD_PUT_TIME
95
1125d90b3b44 Misc: switch to .hpp, #477
David Demelier <markand@malikania.fr>
parents:
diff changeset
94 #cmakedefine HAVE_SYSLOG
1125d90b3b44 Misc: switch to .hpp, #477
David Demelier <markand@malikania.fr>
parents:
diff changeset
95
659
e9adad05580f CMake: style #782
David Demelier <markand@malikania.fr>
parents: 628
diff changeset
96 #endif // !IRCCD_SYSCONFIG_HPP