[Debtags-commits] [svn] r713 - in libdebtags/trunk: . swig swig/perl

Enrico Zini debtags-commits@lists.alioth.debian.org
Sat, 07 May 2005 20:28:34 +0000


Author: enrico
Date: Sat May  7 20:28:33 2005
New Revision: 713

Added:
   libdebtags/trunk/swig/perl/Makefile.PL.in
Modified:
   libdebtags/trunk/   (props changed)
   libdebtags/trunk/configure.ac
   libdebtags/trunk/swig/Makefile.am
   libdebtags/trunk/swig/perl/Debtags.so
   libdebtags/trunk/swig/perl/Makefile.am
Log:
 r2898@viaza:  enrico | 2005-05-06 21:27:53 +0200
 Perl module building and installing starts coming together


Modified: libdebtags/trunk/configure.ac
==============================================================================
--- libdebtags/trunk/configure.ac	(original)
+++ libdebtags/trunk/configure.ac	Sat May  7 20:28:33 2005
@@ -20,6 +20,9 @@
 dnl Python build system
 AM_PATH_PYTHON
 
+perlincludedir=`perl -e 'use Config; print $Config{archlib};'`
+AC_SUBST(perlincludedir)
+
 dnl Use libtool
 AM_PROG_LIBTOOL
 
@@ -53,6 +56,17 @@
 	AC_MSG_ERROR([
 *** libz not found. Check 'config.log' for more details.]))
 
+AC_PATH_PROG(PERL, perl)
+
+AC_MSG_CHECKING(for ExtUtils::MakeMaker)
+if ! $PERL -e "use ExtUtils::MakeMaker;"
+then
+	AC_MSG_ERROR([No ExtUtils::MakeMaker found])
+fi
+AC_MSG_RESULT(yes)
+
+AC_OUTPUT_COMMANDS([echo "running perl Makefile.PL"; cd swig/perl && $PERL Makefile.PL && cd -], PERL=$PERL)
+
 extra_warnings=""
 #extra_warnings="-W -Wsystem-headers -Wfloat-equal -Wundef -Wendif-labels -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wconversion -Wsign-compare -Wstrict-prototypes -Wmissing-prototypes -Wmissing-noreturn -Wmissing-format-attribute -Wno-multichar -Wno-deprecated-declarations -Wpacked -Wpadded -Wredundant-decls -Wunreachable-code -Winline -Wlong-long -Wdisabled-optimization"
 dnl -Waggregate-return 
@@ -65,10 +79,11 @@
 debtags/Makefile
 tests/Makefile
 swig/Makefile
-swig/perl/Makefile
 swig/python/Makefile
+swig/perl/Makefile.PL
 doc/Makefile
 libdebtags.pc
 ])
 AC_OUTPUT
 
+dnl swig/perl/Makefile

Modified: libdebtags/trunk/swig/Makefile.am
==============================================================================
--- libdebtags/trunk/swig/Makefile.am	(original)
+++ libdebtags/trunk/swig/Makefile.am	Sat May  7 20:28:33 2005
@@ -2,4 +2,6 @@
 
 SUBDIRS = . perl python
 
+export PREFIX=$(prefix)
+
 EXTRA_DIST = libdebtags.i

Modified: libdebtags/trunk/swig/perl/Debtags.so
==============================================================================
--- libdebtags/trunk/swig/perl/Debtags.so	(original)
+++ libdebtags/trunk/swig/perl/Debtags.so	Sat May  7 20:28:33 2005
@@ -1 +1 @@
-link .libs/Debtags.so
\ No newline at end of file
+link blib/arch/auto/Debtags/Debtags.so
\ No newline at end of file

Modified: libdebtags/trunk/swig/perl/Makefile.am
==============================================================================
--- libdebtags/trunk/swig/perl/Makefile.am	(original)
+++ libdebtags/trunk/swig/perl/Makefile.am	Sat May  7 20:28:33 2005
@@ -12,7 +12,7 @@
 libdebtags_wrap.cc: ../libdebtags.i
 	swig -perl -c++ -o $@ $<
 
-INCLUDES = $(LIBTAGCOLL_CFLAGS) -DSTATEDIR=\"$(statedir)\" -I/usr/lib/perl/5.8/CORE
+INCLUDES = $(LIBTAGCOLL_CFLAGS) -DSTATEDIR=\"$(statedir)\" -I$(perlincludedir)/CORE
 
 EXTRA_DIST = libdebtags.i