b35e89a056e294c65e84c5caa9d42b6302313b8b
[xscreensaver] / config.h.in
1 /* config.h.in --- xscreensaver, Copyright (c) 1998 Jamie Zawinski.
2  *
3  *  The best way to set these parameters is by running the included `configure'
4  *  script.  That examines your system, and generates `config.h' from 
5  *  `config.h.in'.
6  *
7  *  If something goes very wrong, you can edit `config.h' directly, but beware
8  *  that your changes will be lost if you ever run `configure' again.
9  */
10
11
12 /* *************************************************************************
13                           CONFIGURING SERVER EXTENSIONS
14    ************************************************************************* */
15
16 /* Define this if you have the XReadDisplay extension (I think this is an
17    SGI-only thing; it's in <X11/extensions/readdisplay.h>.)  A few of the
18    screenhacks will take advantage of this if it's available.
19  */
20 #undef HAVE_READ_DISPLAY_EXTENSION
21
22 /* Define this if you have the Iris Video Library (dmedia/vl.h on SGI.)
23    A few of the screenhacks will take advantage of this if it's available.
24  */
25 #undef HAVE_SGI_VIDEO
26
27 /* Define this if you have the XHPDisableReset function (an HP only thing.)
28  */
29 #undef HAVE_XHPDISABLERESET
30
31 /*  First, some background: there are three distinct server extensions which
32  *  are useful to a screen saver program: they are XIDLE, MIT-SCREEN-SAVER, 
33  *  and SCREEN_SAVER.
34  *
35  *  The XIDLE extension resides in .../contrib/extensions/xidle/ on the X11R5
36  *  contrib tape.  This extension lets the client get accurate idle-time 
37  *  information from the X server in a potentially more reliable way than by
38  *  simply watching for keyboard and mouse activity.  However, the XIDLE 
39  *  extension has apparently not been ported to X11R6.
40  *
41  *  The SCREEN_SAVER extension is found (as far as I know) only in the SGI
42  *  X server, and it exists in all releases since (at least) Irix 5.  The
43  *  relevant header file is /usr/include/X11/extensions/XScreenSaver.h.
44  *
45  *  The similarly-named MIT-SCREEN-SAVER extension came into existence long
46  *  after the SGI SCREEN_SAVER extension was already in use, and resides in
47  *  .../contrib/extensions/screensaver/ on the X11R6 contrib tape.  It is
48  *  also found in certain recent X servers built in to NCD X terminals.
49  *
50  *     The MIT extension does basically the same thing that the XIDLE extension
51  *     does, but there are two things wrong with it: first, because of the way
52  *     the extension was designed, the `fade' option to XScreenSaver will be
53  *     uglier: just before the screen fades out, there will be an unattractive
54  *     flicker to black, because this extension blanks the screen *before*
55  *     telling us that it is time to do so.  Second, this extension is known to
56  *     be buggy; on the systems I use, it works, but some people have reported
57  *     X server crashes as a result of using it.  XScreenSaver uses this
58  *     extension rather conservatively, because when I tried to use any of its
59  *     more complicated features, I could get it to crash the server at the
60  *     drop of a hat.
61  *
62  *     In short, the MIT-SCREEN-SAVER extension is a piece of junk.  The older
63  *     SGI SCREEN_SAVER extension works great, as does XIDLE.  It would be nice
64  *     If those two existed on more systems, that is, would be adopted by the
65  *     X Consortium in favor of their inferior "not-invented-here" entry.
66  */
67
68 /*  Define this if you have the XIDLE extension installed. If you have the
69  *  XIDLE extension, this is recommended.  (You have this extension if the
70  *  file /usr/include/X11/extensions/xidle.h exists.)  Turning on this flag
71  *  lets XScreenSaver work better with servers which support this extension; 
72  *  but it will still work with servers which do not suport it, so it's a good
73  *  idea to compile in support for it if you can.
74  */
75 #undef HAVE_XIDLE_EXTENSION
76
77 /*  Define this if you have the MIT-SCREEN-SAVER extension installed.  See the
78  *  caveats about this extension, above.  (It's available if the file
79  *  /usr/include/X11/extensions/scrnsaver.h exists.)
80  */
81 #undef HAVE_MIT_SAVER_EXTENSION
82
83 /*  Define this if you have the SGI SCREEN_SAVER extension.  This is standard
84  *  on Irix systems, and not available elsewhere.
85  */
86 #undef HAVE_SGI_SAVER_EXTENSION
87
88 /*  Define this if you have the SGI-VIDEO-CONTROL extension.  This is standard
89  *  on Irix systems, and not available elsewhere.
90  */
91 #undef HAVE_SGI_VC_EXTENSION
92
93 /*  Define this if you have the XDPMS extension.  This is standard on
94  *  sufficiently-recent XFree86 systems, and possibly elsewhere.  (It's
95  *  available if the file /usr/include/X11/extensions/dpms.h exists.)
96  */
97 #undef HAVE_DPMS_EXTENSION
98
99 /*  Define this if you have the functions XF86VidModeGetModeLine() and
100  *  XF86VidModeGetViewPort(), in support of virtual desktops where the
101  *  X server's root window is bigger than the actual screen.  This is
102  *  an XFree86 thing, and probably doesn't exist elsewhere.  (It's
103  *  available if the file /usr/include/X11/extensions/xf86vmode.h exists.)
104  */
105 #undef HAVE_XF86VMODE
106
107 /*  Define this if you have a Linux-like /proc/interrupts file which can be
108  *  examined to determine when keyboard activity has occurred.
109  */
110 #undef HAVE_PROC_INTERRUPTS
111
112
113
114 /* *************************************************************************
115                           CONFIGURING GRAPHICS TOOLKITS
116    ************************************************************************* */
117
118 /*  Define this if you have Motif.
119  */
120 #undef HAVE_MOTIF
121
122 /*  Define this if you have the XmComboBox Motif widget (Motif 2.0.)
123  */
124 #undef HAVE_XMCOMBOBOX
125
126 /*  Define this if you have Gtk.
127  */
128 #undef HAVE_GTK
129
130 /*  Define this if you have Gnome and want to build support for the 
131     xscreensaver control panel in the Gnome Control Center (gnomecc).
132  */
133 #undef HAVE_CRAPPLET
134
135 /*  Define this if you have the XPM library installed.  Some of the demos can
136  *  make use of this if it is available.
137  */
138 #undef HAVE_XPM
139
140 /*  Define this if you have the Xmu library.  This is standard part of X, and
141  *  if your vendor doesn't ship it, you should report that as a bug.
142  */
143 #undef HAVE_XMU
144
145 /*  Define this if you have OpenGL.  Some of the demos require it, so if you
146  *  don't have it, then those particular demos won't be built.  (This won't
147  *  affect the screen saver as a whole.)
148  */
149 #undef HAVE_GL
150
151 /*  Define this if you have OpenGL, but it's the MesaGL variant.  (The 
152     libraries have different names.)  (HAVE_GL should be defined too.)
153  */
154 #undef HAVE_MESA_GL
155
156 /*  Define this if your version of OpenGL has the glBindTexture() routine.
157     This is the case for OpenGL 1.1, but not for OpenGL 1.0.
158  */
159 #undef HAVE_GLBINDTEXTURE
160
161 /*  Define this if you have the -lgle and -lmatrix libraries (GL extrusion.)
162  */
163 #undef HAVE_GLE
164
165 /*  Define this if the `xscreensaver' process itself (the driver process)
166     should be linked against GL.  Most systems won't want this (in particular,
167     if you're using Linux and/or Mesa, you don't want this) but SGI systems
168     do want this.  It may also be useful on other systems that have serious
169     GL support -- you only need this if you have a lot of different visuals,
170     not all of which work with GL programs.
171  */
172 #undef DAEMON_USE_GL
173
174 /*  Define this if you have the X Shared Memory Extension.
175  */
176 #undef HAVE_XSHM_EXTENSION
177
178 /*  Define this if you have the X Double Buffer Extension.
179  */
180 #undef HAVE_DOUBLE_BUFFER_EXTENSION
181
182 /*  Some screenhacks like to run an external program to generate random pieces
183     of text; set this to the one you like ("yow" and "fortune" are the most
184     likely prospects.)  Note that this is just the default; X resources can
185     be used to override it.
186  */
187 #define ZIPPY_PROGRAM "fortune"
188
189
190
191 /* *************************************************************************
192                        CONFIGURING PASSWORD AUTHENTICATION
193    ************************************************************************* */
194
195 /* Define this to remove the option of locking the screen at all.
196  */
197 #undef NO_LOCKING
198
199 /*  Define this if you want to use Kerberos authentication to lock/unlock the
200  *  screen instead of your local password.  This currently uses Kerberos V4, 
201  *  but a V5 server with V4 compatibility will work.  WARNING: DO NOT USE AFS
202  *  string-to-key passwords with this option. This option currently *only* 
203  *  works with standard Kerberos des_string_to_key.  If your password is an
204  *  AFS password and not a kerberos password, it will not authenticate 
205  *  properly. See the comments in driver/kpasswd.c for more information if you
206  *  need it. 
207  */
208 #undef HAVE_KERBEROS
209
210 /* Define this if you have Kerberos 5, meaning we need to use the Kerberos 4
211  * compatibility layer.
212  */
213 #undef HAVE_KERBEROS5
214
215 /*  Define this if you want to use PAM (Pluggable Authentication Modules)
216  *  to lock/unlock the screen, instead of standard /etc/passwd authentication.
217  */
218 #undef HAVE_PAM
219
220 /*  If PAM is being used, this is the name of the PAM service that xscreensaver
221  *  will authenticate as.  The default is "xscreensaver", which means that the
222  *  PAM library will look for an "xscreensaver" line in /etc/pam.conf, or (on
223  *  recent Linux systems) will look for a file called /etc/pam.d/xscreensaver.
224  *  Some systems might already have a PAM installation that is configured for
225  *  xlock, so setting this to "xlock" would also work in that case.
226  */
227 #define PAM_SERVICE_NAME "xscreensaver"
228
229 /* Define if you have PAM and pam_strerror() requires two arguments.  */
230 #undef PAM_STRERROR_TWO_ARGS
231
232 /*  Define this if your system uses `shadow' passwords, that is, the passwords
233  *  live in /etc/shadow instead of /etc/passwd, and one reads them with
234  *  getspnam() instead of getpwnam().  (Note that SCO systems do some random
235  *  other thing; others might as well.  See the ifdefs in driver/passwd-pwent.c
236  *  if you're having trouble related to reading passwords.)
237  */
238 #undef HAVE_SHADOW_PASSWD
239
240 /*  Define this if your system is Digital or SCO Unix with so-called ``Enhanced
241     Security'', that is, the passwords live in /tcb/files/auth/<x>/<xyz> 
242     instead of in /etc/passwd, and one reads them with getprpwnam() instead 
243     of getpwnam().
244  */
245 #undef HAVE_ENHANCED_PASSWD
246
247 /*  Define this if your system is Solaris with ``adjunct'' passwords (this is
248     the version where one gets at the passwords with getpwanam() instead of
249     getpwnam().)  I haven't tested this one, let me know if it works.
250  */
251 #undef HAVE_ADJUNCT_PASSWD
252
253 /*  Define this if you are running HPUX with so-called ``Secure Passwords'' 
254     (if you have /usr/include/hpsecurity.h, you probably have this.)  I
255     haven't tested this one, let me know if it works.
256  */
257 #undef HAVE_HPUX_PASSWD
258
259 /*  Define this if you are on a system that supports the VT_LOCKSWITCH and
260     VT_UNLOCKSWITCH ioctls.  If this is defined, then when the screen is
261     locked, switching to another virtual terminal will also be prevented.
262     That is, the whole console will be locked, rather than just the VT on
263     which X is running.  (Well, that's the theory anyway -- in practice,
264     I haven't yet figured out how to make that work.)
265  */
266 #undef HAVE_VT_LOCKSWITCH
267
268
269 /* Define this if you the openlog(), syslog(), and closelog() functions.
270    This is used for logging failed login attempts.
271  */
272 #undef HAVE_SYSLOG
273
274
275 /* *************************************************************************
276                             OTHER C ENVIRONMENT JUNK
277    ************************************************************************* */
278
279 /* Define this to void* if you're using X11R4 or earlier.  */
280 #undef XPointer
281
282 /* Define if you have the nice function.  */
283 #undef HAVE_NICE
284
285 /* Define if you have the setpriority function.  */
286 #undef HAVE_SETPRIORITY
287
288 /* Define to empty if the keyword does not work.  */
289 #undef const
290
291 /* Define if you have <sys/wait.h> that is POSIX.1 compatible.  */
292 #undef HAVE_SYS_WAIT_H
293
294 /* Define as __inline if that's what the C compiler calls it.  */
295 #undef inline
296
297 /* Define to `int' if <sys/types.h> doesn't define.  */
298 #undef mode_t
299
300 /* Define to `int' if <sys/types.h> doesn't define.  */
301 #undef pid_t
302
303 /* Define as the return type of signal handlers (int or void).  */
304 #undef RETSIGTYPE
305
306 /* Define to `unsigned' if <sys/types.h> doesn't define.  */
307 #undef size_t
308
309 /* Define if you have the ANSI C header files.  */
310 #undef STDC_HEADERS
311
312 /* Define if you can safely include both <sys/time.h> and <time.h>.  */
313 #undef TIME_WITH_SYS_TIME
314
315 /* Define if you have the gettimeofday function.  */
316 #undef HAVE_GETTIMEOFDAY
317
318 /* Define if gettimeofday requires two arguments.  */
319 #undef GETTIMEOFDAY_TWO_ARGS
320
321 /* Define if you have the putenv function.  */
322 #undef HAVE_PUTENV
323
324 /* Define if you have the select function.  */
325 #undef HAVE_SELECT
326
327 /* Define if you have the getcwd function.  */
328 #undef HAVE_GETCWD
329
330 /* Define if you have the getcwd function.  */
331 #undef HAVE_GETWD
332
333 /* Define if you have the realpath function.  */
334 #undef HAVE_REALPATH
335
336 /* Define if you have the uname function.  */
337 #undef HAVE_UNAME
338
339 /* Define if you have the fcntl function.  */
340 #undef HAVE_FCNTL
341
342 /* Define if you have the sigaction function.  */
343 #undef HAVE_SIGACTION
344
345 /* Define if you have the <unistd.h> header file.  */
346 #undef HAVE_UNISTD_H
347
348 /* Define if you have the <crypt.h> header file.  */
349 #undef HAVE_CRYPT_H
350
351 /* Define if you have <sys/select.h> that defines fd_set and FD_SET.  */
352 #undef HAVE_SYS_SELECT_H
353
354 /* Define to use sigaction() instead of signal() for SIGCHLD-related activity.
355    This is necessary at least on SCO OpenServer 5, due to a Unix kernel bug.
356  */
357 #undef USE_SIGACTION
358
359 /* Define this if you do pings with a `struct icmp' and  a `icmp_id' slot.
360  */
361 #undef HAVE_ICMP
362
363 /* Define this if you do pings with a `struct icmphdr' and a `un.echo.id' slot.
364  */
365 #undef HAVE_ICMPHDR