$NetBSD: patch-aa,v 1.2 2001/11/13 21:12:44 jlam Exp $

--- configure.orig	Sun Apr  8 22:51:03 2001
+++ configure
@@ -3520,6 +3520,11 @@
   kde_x_includes=$ac_x_includes
 fi
 
+# for --x-libraries too
+if test "${x_libraries+set}" = "set"; then
+  ac_x_libraries=$x_libraries
+fi
+
 if test "$kde_x_includes" = NO; then
   { echo "configure: error: Can't find X includes. Please check your installation and add the correct paths!" 1>&2; exit 1; }
 fi
@@ -4558,7 +4563,7 @@
 if test $kde_qtver = 2; then
 
   
-  LIBQT="$LIBQT $LIBPNG"
+  LIBQT="$LIBQT $LIBPNG -lmng -ljpeg -llcms"
 fi
 echo $ac_n "checking for Qt""... $ac_c" 1>&6
 echo "configure:4565: checking for Qt" >&5
