$NetBSD$

--- configure.orig	2010-08-05 14:29:51.000000000 +0000
+++ configure
@@ -26254,8 +26254,8 @@ if test "${with_python+set}" = set; then
 		PYTHON_INCDIR=`/usr/bin/python-config --includes`
 		PYTHON_LIBS=`/usr/bin/python-config --libs`
 	     else
-		for python_root in /usr /usr/local /usr/sfw; do
-		   for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python3; do
+		for python_root in ${PREFIX}; do
+		   for ver in python${PYVERSSUFFIX}; do
 		      if test -f $python_root/include/${ver}/Python.h; then
 			 PYTHON_INCDIR=-I$python_root/include/${ver}
 			 if test -d $python_root/lib64/${ver}/config; then
@@ -47521,7 +47523,7 @@ echo "$as_me: error: Could not find qmak
    { (exit 1); exit 1; }; }
    fi
 
-   QMAKEBIN="qmake"
+   QMAKEBIN=${QMAKE}
    cd src/qt-console
    echo "Creating bat Makefile"
    touch bat
