$NetBSD: patch-ae,v 1.1 2007/10/10 14:10:15 rillig Exp $

--- configure.orig	2007-10-10 14:02:54.000000000 +0000
+++ configure	2007-10-10 14:07:39.000000000 +0000
@@ -2130,6 +2130,7 @@ test -n "$groff_command" || groff_comman
 
 	echo "$as_me:$LINENO: checking the gnu make is" >&5
 echo $ECHO_N "checking the gnu make is... $ECHO_C" >&6
+if [ "${gmake_command+set}" != "set" ]; then
 	ac_search_gnu_make_result="" ;
 	ac_search_gnu_make_path=`echo $PATH | sed 's/:/ /g'` ;
 	for ac_search_gnu_make_path in $ac_search_gnu_make_path ; do
@@ -2145,6 +2146,7 @@ echo $ECHO_N "checking the gnu make is..
 			fi
 		done
 	done
+fi
 	if test -n "$ac_search_gnu_make_result" ; then
 		gmake_command=$ac_search_gnu_make_result ;
 
