From 01cc2ec67949faa1284601010fe48283a03aced9 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sun, 3 Dec 2000 07:27:39 +0000 Subject: [PATCH] perl ldflags parsing fixes git-svn-id: http://svn.irssi.org/repos/irssi/trunk@949 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- configure.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/configure.in b/configure.in index ab91269c..1a7a143b 100644 --- a/configure.in +++ b/configure.in @@ -319,7 +319,7 @@ if test "$want_perl" != "no"; then dnl * don't check dynaloader if libperl.a wasn't found.. if test "x$LIBPERL_A" != "x"; then dnl * dynaloader.a -> libperl_dynaloader.la - DYNALOADER_A=`echo $PERL_LDFLAGS | $sedpath 's/.* \([[^ ]]*\.a\).*/\1/'` + DYNALOADER_A=`echo $PERL_LDFLAGS | $sedpath 's/^\(.* \)*\([[^ ]]*DynaLoader\.a\).*/\2/'` fi dnl * remove all database stuffs @@ -347,7 +347,7 @@ if test "$want_perl" != "no"; then want_perl=static else AC_MSG_RESULT(ok) - PERL_LDFLAGS=`echo $PERL_LDFLAGS | $sedpath 's/ [[^ ]]*\.a/ libperl_dynaloader.la/'` + PERL_LDFLAGS=`echo $PERL_LDFLAGS | $sedpath 's/^\(.* \)*[[^ ]]*DynaLoader\.a/\1libperl_dynaloader.la/'` PERL_LDFLAGS=`echo $PERL_LDFLAGS | $sedpath 's/ -lperl/ libperl_orig.la/'` AC_SUBST(LIBPERL_A) AC_SUBST(DYNALOADER_A) @@ -534,7 +534,7 @@ if test "x$want_perl" != "xno"; then old_dir=`pwd` && cd $srcdir && whole_dir=`pwd` && cd $old_dir if test "x$old_dir" != "x$whole_dir"; then - for file in $whole_dir/src/perl/common/typemap $whole_dir/src/perl/common/module.h $whole_dir/src/perl/common/*.xs $whole_dir/src/perl/irc/typemap $whole_dir/src/perl/irc/module.h $whole_dir/src/perl/irc/*.xs; do + for file in $whole_dir/src/perl/*.[[ch]] $whole_dir/src/perl/libperl_orig.la $whole_dir/src/perl/libperl_dynaloader.la $whole_dir/src/perl/common/typemap $whole_dir/src/perl/common/module.h $whole_dir/src/perl/common/*.xs $whole_dir/src/perl/irc/typemap $whole_dir/src/perl/irc/module.h $whole_dir/src/perl/irc/*.xs; do link=`echo $file|sed "s?$whole_dir/??"` rm -f $link $LN_S $file $link