http://x.cybermirror.org/R5contrib/xscreensaver-1.21.tar.Z
[xscreensaver] / config.h
index 6ec75c87b4055c4cb80579fd5b3004f27711d9e8..691c98c63ac2cdad41a8d99ec0014f96566d529d 100644 (file)
--- a/config.h
+++ b/config.h
  */
 #define HAVE_XIDLE
 
+/*  Uncomment the following line if you have the XPM library installed.
+ *  Some of the demos can make use of this.
+ */
+/* #define HAVE_XPM */
+
 /*  Uncomment the following line if you don't have Motif.  If you don't have
  *  Motif, then the screensaver won't have any dialog boxes, which means
  *  that it won't be compiled with support for demo-mode or display-locking.
  */
 /* #define NO_SETUID */
 
+/*  Uncomment the following line if your system uses `shadow' passwords,
+ *  that is, the passwords live in /etc/shadow instead of /etc/passwd,
+ *  and one reads them with getspnam() instead of getpwnam().
+ */
+/* #define HAVE_SHADOW */
 
 /*  You may need to edit these to correspond to where Motif is installed.
  */
@@ -50,8 +60,9 @@
     library routine.  This means that, in order for locking to work, the
     screensaver must be installed as setuid to root.  Define this to make
     that happen.  (You must run "make install" as root for it to work.)
+    (What systems other than HP need this?  Let me know.)
  */
-#if defined(HPArchitecture) /* What other systems need this?  Let me know. */
+#if defined(HPArchitecture) || defined(HAVE_SHADOW)
 # define INSTALL_SETUID
 #endif
 
@@ -75,3 +86,8 @@
 #else /* r5 or better */
 # define R5ISMS
 #endif
+
+/* It seems that some versions of Sun's dynamic X libraries are broken; if
+   you get link errors about _get_wmShellWidgetClass being undefined, try
+   adding -Bstatic to the link command.
+ */