diff options
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/configure b/configure index ef016329cc2..13dad004db5 100755 --- a/configure +++ b/configure @@ -7320,24 +7320,32 @@ $as_echo "$as_me: error: Perl not found" >&2;} { $as_echo "$as_me:$LINENO: checking for Perl archlibexp" >&5 $as_echo_n "checking for Perl archlibexp... " >&6; } perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'` +test "$PORTNAME" = "win32" && perl_archlibexp=`echo $perl_archlibexp | sed 's,\\\\,/,g'` { $as_echo "$as_me:$LINENO: result: $perl_archlibexp" >&5 $as_echo "$perl_archlibexp" >&6; } { $as_echo "$as_me:$LINENO: checking for Perl privlibexp" >&5 $as_echo_n "checking for Perl privlibexp... " >&6; } perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'` +test "$PORTNAME" = "win32" && perl_privlibexp=`echo $perl_privlibexp | sed 's,\\\\,/,g'` { $as_echo "$as_me:$LINENO: result: $perl_privlibexp" >&5 $as_echo "$perl_privlibexp" >&6; } { $as_echo "$as_me:$LINENO: checking for Perl useshrplib" >&5 $as_echo_n "checking for Perl useshrplib... " >&6; } perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'` +test "$PORTNAME" = "win32" && perl_useshrplib=`echo $perl_useshrplib | sed 's,\\\\,/,g'` { $as_echo "$as_me:$LINENO: result: $perl_useshrplib" >&5 $as_echo "$perl_useshrplib" >&6; } { $as_echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5 $as_echo_n "checking for flags to link embedded Perl... " >&6; } +if test "$PORTNAME" = "win32" ; then +perl_lib=`basename $perl_archlibexp/CORE/perl[5-9]*.lib .lib` +test -e "$perl_archlibexp/CORE/$perl_lib.lib" && perl_embed_ldflags="-L$perl_archlibexp/CORE -l$perl_lib" +else pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts` pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'` perl_embed_ldflags=`echo X"$pgac_tmp1" | sed -e "s/^X//" -e "s%$pgac_tmp2%%" -e "s/ -arch [-a-zA-Z0-9_]*//g"` +fi if test -z "$perl_embed_ldflags" ; then { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } |