diff options
-rw-r--r-- | configure.in | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/configure.in b/configure.in index 0af65e12..c6c511ec 100644 --- a/configure.in +++ b/configure.in @@ -388,6 +388,11 @@ if test "$want_perl" = yes; then AC_SUBST(PERL_LDFLAGS) AC_DEFINE(HAVE_PERL) fi + + dnl ** building from objdir.. + if test ! -d plugins/perl/xs; then + mkdir -p plugins/perl/xs + fi fi dnl ** check what we want to build @@ -463,6 +468,17 @@ plugins/perl/Makefile stamp.h irssi.spec) +dnl ** for building from objdir +if test "x$want_perl" = "xyes"; then + old_dir=`pwd` && cd $srcdir && whole_dir=`pwd` && cd $old_dir + + if test "x$old_dir" != "x$whole_dir"; then + ln -sf $whole_dir/plugins/perl/xs/typemap plugins/perl/xs/typemap + ln -sf $whole_dir/plugins/perl/xs/Irssi.xs plugins/perl/xs/Irssi.xs + ln -sf $whole_dir/plugins/perl/xs/Irssi.pm plugins/perl/xs/Irssi.pm + fi +fi + echo if test "x$GUI_LIBS" != "x"; then |