diff -Nur XFree86-4.0.2.org/xc/config/cf/site.def XFree86-4.0.2/xc/config/cf/site.def
--- XFree86-4.0.2.org/xc/config/cf/site.def Tue Jun 27 02:55:45 2000
+++ XFree86-4.0.2/xc/config/cf/site.def Wed Dec 20 13:41:02 2000
-@@ -131,10 +131,13 @@
+@@ -131,10 +131,14 @@
#define HasSentinel YES
*/
+
+
+#define HasPam YES
++#define HasPamMisc YES
/* You do NOT need SetUID if you only run the server under xdm */
#endif
#ifndef X_NOT_POSIX
+--- XFree86-4.0.2/xc/programs/Xserver/hw/xfree86/xf86cfg/Imakefile~ Thu Dec 14 20:47:46 2000
++++ XFree86-4.0.2/xc/programs/Xserver/hw/xfree86/xf86cfg/Imakefile Fri Dec 22 17:58:27 2000
+@@ -92,7 +92,7 @@
+
+ #if HasNCurses
+ CURSESLIB = NCursesLibName
+-CURSESDEFINES = -DHAS_NCURSES
++CURSESDEFINES = -DHAS_NCURSES -I/usr/include/ncurses
+ #endif
+
+ DEFINES = -DXF86CONFIG=\"XConfigFile\" $(MODULEDEFINES) \
#include <Server.tmpl>
#ifdef XFree86Version
-@@ -264,7 +259,7 @@
- EXTRASYSLIBS = ServerExtraSysLibs
- #endif
- #if HasPam && HasPamMisc
-- PAMLIBS = PamLibraries PamMiscLibraries
-+ PAMLIBS = -lpam -lpam_misc -ldl PamLibraries PamMiscLibraries
- #endif
- #if !(SystemV4 || defined(SGIArchitecture) || UseRgbTxt)
- DBMLIBS = DBMLibrary
@@ -1017,6 +1012,11 @@
$(XNESTLIBS) $(LOADABLEEXTS) $(LIBCWRAPPER),$(XNESTSYSLIBS))
#endif /* XnestServer */