qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From g...@apache.org
Subject svn commit: r1065832 - /qpid/trunk/qpid/cpp/configure.ac
Date Mon, 31 Jan 2011 22:17:04 GMT
Author: gsim
Date: Mon Jan 31 22:17:04 2011
New Revision: 1065832

URL: http://svn.apache.org/viewvc?rev=1065832&view=rev
Log:
QPID-3009: Improved configure support for python bindings based on suggestion by Jose Pedro
Oliveira

Modified:
    qpid/trunk/qpid/cpp/configure.ac

Modified: qpid/trunk/qpid/cpp/configure.ac
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/configure.ac?rev=1065832&r1=1065831&r2=1065832&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/configure.ac (original)
+++ qpid/trunk/qpid/cpp/configure.ac Mon Jan 31 22:17:04 2011
@@ -232,11 +232,13 @@ AM_CONDITIONAL([HAVE_PYTHON_DEVEL], [tes
 # Perl bindings:
 
 AC_CHECK_PROG([H2XS], [h2xs], [h2xs])
-if test -n "$H2XS" ; then
-   AC_CHECK_FILE("$libdir/perl5/CORE/perl.h", [AC_SUBST([PERL_INC], "$libdir/perl5/CORE")])
-fi
-AM_CONDITIONAL([HAVE_PERL_DEVEL], [test -n "$H2XS" && test -n "$SWIG" &&
test -n "$PERL_INC"])
-
+AC_CHECK_PROG([PERL], [perl], [perl])
+if test -n "$PERL"; then
+    PERL_ARCHLIB=`perl -MConfig -e 'print "$Config{archlib}";'`
+    AC_CHECK_FILE( ["$PERL_ARCHLIB/CORE/perl.h"],
+            [AC_SUBST([PERL_INC], ["$PERL_ARCHLIB/CORE"])] )
+fi 
+AM_CONDITIONAL([HAVE_PERL_DEVEL], [test -n "$PERL" && test -n "$H2XS" &&
test -n "$SWIG" && test -n "$PERL_INC"])
 
 specdir=`pwd`/$srcdir/../specs
 AMQP_FINAL_XML=$specdir/amqp.0-10-qpid-errata.xml



---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:commits-subscribe@qpid.apache.org


Mime
View raw message