$NetBSD: patch-aa,v 1.2 2004/09/24 00:58:30 kim Exp $ --- configure.orig 2002-10-18 17:44:21.000000000 -0400 +++ configure 2004-09-23 19:14:06.000000000 -0400 @@ -2568,7 +2568,7 @@ if test -f "$dir/$perl"; then if test -x "$dir/$perl"; then perlprog="$dir/$perl" - if $perlprog -e 'require 5.003'; then + if $perlprog -e 'use 5.003'; then perlvers=`$perlprog -e 'printf "%.3f",$]'` break 2 fi @@ -2580,7 +2580,7 @@ fi; PATH_PERL=$perlprog echo "$as_me:$LINENO: result: $perlprog v$perlvers" >&5 echo "${ECHO_T}$perlprog v$perlvers" >&6 -if $perlprog -e 'require 5.003'; then +if $perlprog -e 'use 5.003'; then : else echo "" @@ -2639,7 +2639,7 @@ else echo "$as_me:$LINENO: checking for Perl module Getopt::Long (2.16)" >&5 echo $ECHO_N "checking for Perl module Getopt::Long (2.16)... $ECHO_C" >&6 -rc=`$path_perl -e 'eval {require Getopt::Long 2.16}; print "ok" unless $@'`; +rc=`$path_perl -e 'eval {use Getopt::Long 2.16}; print "ok" unless $@'`; if test ".$rc" = .ok; then have_getoptlong=1 echo "$as_me:$LINENO: result: found" >&5 @@ -2653,7 +2653,7 @@ echo "$as_me:$LINENO: checking for Perl module Bit::Vector (5.2)" >&5 echo $ECHO_N "checking for Perl module Bit::Vector (5.2)... $ECHO_C" >&6 -rc=`$path_perl -e 'eval {require Bit::Vector 5.2}; print "ok" unless $@'`; +rc=`$path_perl -e 'eval {use Bit::Vector 5.2}; print "ok" unless $@'`; if test ".$rc" = .ok; then have_bitvector=1 echo "$as_me:$LINENO: result: found" >&5 @@ -2665,9 +2665,9 @@ fi - echo "$as_me:$LINENO: checking for Perl module File::PathConvert (ANY)" >&5 -echo $ECHO_N "checking for Perl module File::PathConvert (ANY)... $ECHO_C" >&6 -rc=`$path_perl -e 'eval {require File::PathConvert }; print "ok" unless $@'`; + echo "$as_me:$LINENO: checking for Perl module File::Spec (0.87)" >&5 +echo $ECHO_N "checking for Perl module File::Spec (0.87)... $ECHO_C" >&6 +rc=`$path_perl -e 'eval {use File::Spec 0.87}; print "ok" unless $@'`; if test ".$rc" = .ok; then have_filepathconvert=1 echo "$as_me:$LINENO: result: found" >&5 @@ -2681,7 +2681,7 @@ echo "$as_me:$LINENO: checking for Perl module Image::Size (2.6)" >&5 echo $ECHO_N "checking for Perl module Image::Size (2.6)... $ECHO_C" >&6 -rc=`$path_perl -e 'eval {require Image::Size 2.6}; print "ok" unless $@'`; +rc=`$path_perl -e 'eval {use Image::Size 2.6}; print "ok" unless $@'`; if test ".$rc" = .ok; then have_imagesize=1 echo "$as_me:$LINENO: result: found" >&5 @@ -2695,7 +2695,7 @@ echo "$as_me:$LINENO: checking for Perl module IO::File (1.07)" >&5 echo $ECHO_N "checking for Perl module IO::File (1.07)... $ECHO_C" >&6 -rc=`$path_perl -e 'eval {require IO::File 1.07}; print "ok" unless $@'`; +rc=`$path_perl -e 'eval {use IO::File 1.07}; print "ok" unless $@'`; if test ".$rc" = .ok; then have_io=1 echo "$as_me:$LINENO: result: found" >&5 @@ -2709,7 +2709,7 @@ echo "$as_me:$LINENO: checking for Perl module Term::ReadKey (2.11)" >&5 echo $ECHO_N "checking for Perl module Term::ReadKey (2.11)... $ECHO_C" >&6 -rc=`$path_perl -e 'eval {require Term::ReadKey 2.11}; print "ok" unless $@'`; +rc=`$path_perl -e 'eval {use Term::ReadKey 2.11}; print "ok" unless $@'`; if test ".$rc" = .ok; then have_termreadkey=1 echo "$as_me:$LINENO: result: found" >&5