2 * Config file for xscreensaver, Copyright (c) 1991-1993 Jamie Zawinski.
3 * This file is included by the various Imakefiles.
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
11 /* #define HAVE_XIDLE */
13 /* Uncomment the following line if you have the XPM library installed.
14 * Some of the demos can make use of this.
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.
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.)
30 /* Uncomment the following line if your system doesn't have the select()
33 /* #define NO_SELECT */
35 /* Uncomment the following line if your system doesn't have the setuid(),
36 * setregid(), and getpwnam() library routines.
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.
43 /* #define NO_SETUID */
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().
51 /* You may need to edit these to correspond to where Motif is installed.
54 MOTIFINCLUDES = -I/usr/X/include
55 MOTIFLDOPTIONS = -L/usr/X/lib
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.)
65 #if defined(HPArchitecture) || defined(HAVE_SHADOW)
66 # define INSTALL_SETUID
70 CCOPTIONS = -Aa -D_HPUX_SOURCE /* eat me */
72 MOTIFINCLUDES = -I/usr/include/Motif1.1
73 MOTIFLDOPTIONS = -L/usr/lib/Motif1.1
75 MOTIFINCLUDES = -I/usr/include/Motif1.2
76 MOTIFLDOPTIONS = -L/usr/lib/Motif1.2
78 #endif /* HPArchitecture */
80 #ifdef MacIIArchitecture
81 CCOPTIONS = -D_POSIX_SOURCE
82 #endif /* MacIIArchitecture */
85 # define R5ISMS -DXPointer="char*"
86 #else /* r5 or better */
89 /*EXTRA_LIBRARIES=-L/usr/ucblib -lucb -lnsl*/
90 EXTRA_LIBRARIES= -lgen -L/usr/ucblib -lucb -lnsl