ftp://ftp.ntnu.no/old/pub/X11/R5contrib/xscreensaver-1.17.tar.gz
[xscreensaver] / config.h
1 /*
2  * Config file for xscreensaver, Copyright (c) 1991-1993 Jamie Zawinski.
3  * This file is included by the various Imakefiles.
4  */
5
6 /*  Uncomment the following line if you have the XIdle extension installed.
7  *  XIdle comes on the X11r5 contrib tape, in .../contrib/extensions/xidle/.
8  *  Installing it is the morally superior thing to do, but xscreensaver will
9  *  work without it.
10  */
11 #define HAVE_XIDLE
12
13 /*  Uncomment the following line if you don't have Motif.  If you don't have
14  *  Motif, then the screensaver won't have any dialog boxes, which means
15  *  that it won't be compiled with support for demo-mode or display-locking.
16  */
17 /* #define NO_MOTIF */
18
19 /* Uncomment the following line if for some reason the locking code doesn't
20  * work (for example, if you don't have the crypt() system call, or if you
21  * don't use standard passwd files.)
22  */
23 /* #define NO_LOCKING */
24
25 /*  Uncomment the following line if your system doesn't have the select()
26  *  system call.
27  */
28 /* #define NO_SELECT */
29
30 /*  Uncomment the following line if your system doesn't have the setuid(),
31  *  setregid(), and getpwnam() library routines.
32  *
33  *  WARNING: if you do this, it will be unsafe to run xscreensaver as root
34  *  (which probably means you can't have it be started by xdm.)  If you are
35  *  on such a system, please try to find the corresponding way to do this,
36  *  and then tell me what it is.
37  */
38 /* #define NO_SETUID */
39
40
41 /*  You may need to edit these to correspond to where Motif is installed.
42  */
43 #ifndef NO_MOTIF
44   MOTIFINCLUDES = /* -I... */
45  MOTIFLDOPTIONS = /* -L... */
46       MOTIFLIBS = -lXm
47 #endif
48
49 /*  On some systems, only programs running as root can use the getpwent()
50     library routine.  This means that, in order for locking to work, the
51     screensaver must be installed as setuid to root.  Define this to make
52     that happen.  (You must run "make install" as root for it to work.)
53  */
54 #if defined(HPArchitecture) /* What other systems need this?  Let me know. */
55 # define INSTALL_SETUID
56 #endif
57
58 #ifdef HPArchitecture
59       CCOPTIONS = -Aa -D_HPUX_SOURCE    /* eat me */
60 # if (ProjectX <= 4)
61   MOTIFINCLUDES = -I/usr/include/Motif1.1
62  MOTIFLDOPTIONS = -L/usr/lib/Motif1.1
63 # else /* R5 */
64   MOTIFINCLUDES = -I/usr/include/Motif1.2
65  MOTIFLDOPTIONS = -L/usr/lib/Motif1.2
66 # endif /* R5 */
67 #endif /* HPArchitecture */
68
69 #ifdef MacIIArchitecture
70       CCOPTIONS = -D_POSIX_SOURCE
71 #endif /* MacIIArchitecture */
72
73 #if (ProjectX <= 4)
74 # define R5ISMS -DXPointer="char*"
75 #else /* r5 or better */
76 # define R5ISMS
77 #endif