--- configure.orig	Fri Dec 14 08:34:33 2001
+++ configure	Sat Dec 15 01:42:47 2001
@@ -1672,7 +1672,7 @@
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   ac_save_LIBS="$LIBS"
-LIBS="-lgnugetopt  $LIBS"
+LIBS="-L${prefix}/lib -lgnugetopt  $LIBS"
 cat > conftest.$ac_ext <<EOF
 #line 1678 "configure"
 #include "confdefs.h"
@@ -1706,7 +1706,7 @@
 #define $ac_tr_lib 1
 EOF
 
-  LIBS="-lgnugetopt $LIBS"
+  LIBS="-L${prefix}/lib -lgnugetopt $LIBS"
 
 else
   echo "$ac_t""no" 1>&6
