$NetBSD: patch-aa,v 1.2 2002/10/08 04:49:42 cjep Exp $

--- configure.orig	2002-01-15 15:03:18.000000000 +0000
+++ configure
@@ -606,7 +606,7 @@ NONE)
   esac ;;
 esac
 
-target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
+target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias | sed 's/-gnu//'`
 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
@@ -887,7 +887,7 @@ else
 fi
 
 
-gapdir=`pwd`
+gapdir=${PREFIX}/lib/gap4.3
 mkdir -p bin
 trap '' 1 2 15
 cat > confcache <<\EOF
