--- configure.orig	Tue May 21 12:06:21 2002
+++ configure	Mon Jun  3 00:24:38 2002
@@ -8082,6 +8082,7 @@
 
 # This can be used to rebuild libtool when needed
 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
+$ac_aux_dir/ltconfig $LIBTOOL_DEPS
 
 # Always use our own libtool.
 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
@@ -10568,8 +10569,7 @@
 		PERL_CC=`perl -MConfig -e 'print $Config{cc},"\n";'`
 		PERL_LD=`perl -MConfig -e 'print $Config{ld},"\n";'`
 		PERL_CCOPTS=`perl -MExtUtils::Embed -e ccopts`
-		PERL_LDOPTS=`perl -MExtUtils::Embed -e ldopts`
-
+		PERL_LDOPTS=`perl -MExtUtils::Embed -e '$_ = ldopts(1); s/-lc //g; print $_ . "\n"'`
 
 
 
@@ -10589,7 +10589,7 @@
 
 
 
-if test $perl_val == true; then
+if test $perl_val = true; then
   WITH_PERL_TRUE=
   WITH_PERL_FALSE='#'
 else
