$NetBSD: patch-ac,v 1.4 2006/01/03 15:33:22 joerg Exp $

--- Makefile.in.orig	1999-11-07 16:39:32.000000000 +0000
+++ Makefile.in
@@ -9,13 +9,13 @@ sbindir=@sbindir@
 mandir=@mandir@
 
 # Root of X11 tree
-XROOT = @xroot@
+XROOT = ${X11BASE}
 
 # Compiler and flags
 # DEFS should include -Dacceptarg3_t=int (replace with the correct data type)
 CXX = @CXX@
-CXXFLAGS = @extracxxflags@ @DEFS@ -O2 -I@includedir@ -I$(XROOT)/include -I/usr/local/include -I/usr/contrib/include -c
-LDFLAGS = @extraldflags@ -L@libdir@ -L$(XROOT)/lib -L/usr/local/lib -L/usr/contrib/lib -s -o
+CXXFLAGS = @extracxxflags@ @DEFS@ -O2 -I@includedir@ -I$(XROOT)/include -I/usr/local/include -I/usr/contrib/include -DPREFIX='"${prefix}"' -DPKG_SYSCONFDIR='"@sysconfdir@"' -c
+LDFLAGS = @extraldflags@ -L@libdir@ -Wl,-R@libdir@ -L$(XROOT)/lib -Wl,-R$(XROOT)/lib -s -o
 
 # Extra switches and libs determined by configure.in
 extraswitches=@extraswitches@
