ftp://ftp.zenez.com/pub/SCO/Skunk96/UnixWare/FreeBird/x11/utils/xscreensaver-1.18...
[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 have the XPM library installed.
14  *  Some of the demos can make use of this.
15  */
16 #define HAVE_XPM 
17
18 /*  Uncomment the following line if you don't have Motif.  If you don't have
19  *  Motif, then the screensaver won't have any dialog boxes, which means
20  *  that it won't be compiled with support for demo-mode or display-locking.
21  */
22 /*#define NO_MOTIF */
23
24 /* Uncomment the following line if for some reason the locking code doesn't
25  * work (for example, if you don't have the crypt() system call, or if you
26  * don't use standard passwd files.)
27  */
28 #define NO_LOCKING
29
30 /*  Uncomment the following line if your system doesn't have the select()
31  *  system call.
32  */
33 /* #define NO_SELECT */
34
35 /*  Uncomment the following line if your system doesn't have the setuid(),
36  *  setregid(), and getpwnam() library routines.
37  *
38  *  WARNING: if you do this, it will be unsafe to run xscreensaver as root
39  *  (which probably means you can't have it be started by xdm.)  If you are
40  *  on such a system, please try to find the corresponding way to do this,
41  *  and then tell me what it is.
42  */
43 /* #define NO_SETUID */
44
45 /*  Uncomment the following line if your system uses `shadow' passwords,
46  *  that is, the passwords live in /etc/shadow instead of /etc/passwd,
47  *  and one reads them with getspnam() instead of getpwnam().
48  */
49 #define HAVE_SHADOW 
50
51 /*  You may need to edit these to correspond to where Motif is installed.
52  */
53 #ifndef NO_MOTIF
54   MOTIFINCLUDES = -I/usr/X/include
55  MOTIFLDOPTIONS = -L/usr/X/lib
56       MOTIFLIBS = -lXm 
57 #endif
58
59 /*  On some systems, only programs running as root can use the getpwent()
60     library routine.  This means that, in order for locking to work, the
61     screensaver must be installed as setuid to root.  Define this to make
62     that happen.  (You must run "make install" as root for it to work.)
63     (What systems other than HP need this?  Let me know.)
64  */
65 #if defined(HPArchitecture) || defined(HAVE_SHADOW)
66 # define INSTALL_SETUID
67 #endif
68
69 #ifdef HPArchitecture
70       CCOPTIONS = -Aa -D_HPUX_SOURCE    /* eat me */
71 # if (ProjectX <= 4)
72   MOTIFINCLUDES = -I/usr/include/Motif1.1
73  MOTIFLDOPTIONS = -L/usr/lib/Motif1.1
74 # else /* R5 */
75   MOTIFINCLUDES = -I/usr/include/Motif1.2
76  MOTIFLDOPTIONS = -L/usr/lib/Motif1.2
77 # endif /* R5 */
78 #endif /* HPArchitecture */
79
80 #ifdef MacIIArchitecture
81       CCOPTIONS = -D_POSIX_SOURCE
82 #endif /* MacIIArchitecture */
83
84 #if (ProjectX <= 4)
85 # define R5ISMS -DXPointer="char*"
86 #else /* r5 or better */
87 # define R5ISMS
88 #endif
89 /*EXTRA_LIBRARIES=-L/usr/ucblib -lucb -lnsl*/
90 EXTRA_LIBRARIES= -lgen -L/usr/ucblib -lucb -lnsl