~ctwm/ctwm/trunk

338.1.1 by Matthew Fuller
Put together an initial run at a config.h-style configuration, rather
1
/*
2
 * Compile-time config settings.  This gets processed by cmake into the
3
 * file that's actually used.
4
 */
5
6
7
/*
8
 * Defined paths etc
9
 */
399.1.5 by Matthew Fuller
Switch to ETCDIR for the fallback config file.
10
#define SYSTEM_INIT_FILE "@ETCDIR@/system.ctwmrc"
431.1.33 by Matthew Fuller
PIXMAP_DIRECTORY is in fact used whether or not XPM is enabled (e.g.,
11
#define PIXMAP_DIRECTORY "@PIXMAPDIR@"
338.1.1 by Matthew Fuller
Put together an initial run at a config.h-style configuration, rather
12
13
14
/*
15
 * Various on/off configs
16
 */
17
18
/* Using XPM? */
19
#cmakedefine USE_XPM
338.1.4 by Matthew Fuller
Use #ifdef rather than #if, since these are just defined/not flags.
20
#ifdef USE_XPM
338.1.1 by Matthew Fuller
Put together an initial run at a config.h-style configuration, rather
21
# define XPM
22
#endif
23
24
/* libjpeg */
25
#cmakedefine USE_JPEG
338.1.4 by Matthew Fuller
Use #ifdef rather than #if, since these are just defined/not flags.
26
#ifdef USE_JPEG
338.1.1 by Matthew Fuller
Put together an initial run at a config.h-style configuration, rather
27
# define JPEG
28
#endif
29
30
/* m4 preprocessing of config */
31
#cmakedefine USE_M4
338.1.4 by Matthew Fuller
Use #ifdef rather than #if, since these are just defined/not flags.
32
#ifdef USE_M4
338.1.8 by Matthew Fuller
Whoops, the code looks for USEM4, not just M4.
33
# define USEM4
338.1.1 by Matthew Fuller
Put together an initial run at a config.h-style configuration, rather
34
# define M4CMD "@M4_CMD@"
35
#endif
36
37
/* rplay? */
463.1.31 by Matthew Fuller
Update the config catching for USE_RPLAY, and leave a comment about
38
#cmakedefine USE_RPLAY
39
#ifdef USE_RPLAY
40
/*
41
 * This mismatched naming is a historical remnant.  User-facing stuff
42
 * (build-time config, config file params, etc) has been moved as much as
43
 * possible to RPLAY-based to start building up compatibility for any
44
 * future where we support other sound methods.  I've left internal stuff
45
 * based around SOUNDS / sound.c / something_sound_something() / etc
46
 * since that would be a lot of churn, and there aren't the compat
47
 * concerns so we can just do those at the time they become necessary
48
 * without worrying further.
49
 */
338.1.1 by Matthew Fuller
Put together an initial run at a config.h-style configuration, rather
50
# define SOUNDS
51
#endif
52
53
/* How about EWMH properties */
54
#cmakedefine USE_EWMH
338.1.4 by Matthew Fuller
Use #ifdef rather than #if, since these are just defined/not flags.
55
#ifdef USE_EWMH
338.1.1 by Matthew Fuller
Put together an initial run at a config.h-style configuration, rather
56
# define EWMH
57
#endif
58
59
/* Does libc provide regex funcs we use? */
60
#cmakedefine USE_SREGEX
338.1.4 by Matthew Fuller
Use #ifdef rather than #if, since these are just defined/not flags.
61
#ifdef USE_SREGEX
338.1.1 by Matthew Fuller
Put together an initial run at a config.h-style configuration, rather
62
# define USE_SYS_REGEX
63
#endif
614.1.11 by Maxime Soulé
Xrandr support can be disabled at compile time (ON by default)
64
614.1.108 by Matthew Fuller
Don't specify version in the RANDR option; we don't need that much
65
/* Is usable xrandr available? */
66
#cmakedefine USE_XRANDR
67
#ifdef USE_XRANDR
614.1.11 by Maxime Soulé
Xrandr support can be disabled at compile time (ON by default)
68
# define XRANDR
69
#endif
692.1.1 by Matthew Fuller
Add a build option to disabled captive mode, and put the f.functions
70
71
/* Enable captive mode (ctwm -w) related bits */
72
#cmakedefine USE_CAPTIVE
73
#ifdef USE_CAPTIVE
74
# define CAPTIVE
75
#endif
696.1.1 by Matthew Fuller
Create build option to work on disabling VirtualScreens.
76
77
/* Fragments of remaining VirtualScreens support */
78
#cmakedefine USE_VSCREEN
79
#ifdef USE_VSCREEN
80
# define VSCREEN
81
#endif
700.1.1 by Matthew Fuller
Add on param for WindowBox support.
82
83
/* WindowBox support */
84
#cmakedefine USE_WINBOX
85
#ifdef USE_WINBOX
86
# define WINBOX
87
#endif
702.1.3 by Matthew Fuller
Add a build param for whether to enable sessions.
88
89
/* Session support */
90
#cmakedefine USE_SESSION
91
#ifdef USE_SESSION
92
# define SESSION
93
#endif