$NetBSD: patch-ab,v 1.5 2006/08/17 23:51:33 adam Exp $

--- configure.orig	2006-08-18 01:34:22.000000000 +0200
+++ configure
@@ -27759,6 +27759,9 @@ else
   ac_cv_my_have_xaw="no (cross-compiling)"
 fi
 
+if test "${WITH_XAW}" = "no"; then
+  ac_cv_my_have_xaw=no
+fi
 
 if test "${ac_cv_my_have_xaw}" = "yes"; then
   HAVE_XAW_TRUE=
