Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:6322 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 73327 invoked by uid 1010); 9 Dec 2003 23:00:52 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 73273 invoked from network); 9 Dec 2003 23:00:52 -0000 Received: from unknown (HELO main.gmane.org) (80.91.224.249) by pb1.pair.com with SMTP; 9 Dec 2003 23:00:52 -0000 Received: from root by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1ATqqZ-0000CG-00 for ; Wed, 10 Dec 2003 00:00:51 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: internals@lists.php.net Received: from sea.gmane.org ([80.91.224.252]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1ATqpI-0000Av-00 for ; Tue, 09 Dec 2003 23:59:32 +0100 Received: from news by sea.gmane.org with local (Exim 3.35 #1 (Debian)) id 1ATqpI-00072Z-00 for ; Tue, 09 Dec 2003 23:59:32 +0100 Date: Tue, 9 Dec 2003 22:59:28 -0000 Lines: 37 Message-ID: X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Sender: news Subject: php 4.3 build system changes From: sam@liddicott.com ("Sam Liddicott") I'm updating swig (www.swig.org) to honour the new php build system, namely lack of makefile.in etc. I can't get a config.m4 though that will build a .so, only build a .a or .la Here is a sample config.m4 swig will generate in the next release: PHP_ARG_ENABLE(example, [whether to enable example support], [ --enable-example Enable example support]) if test "no" != "$PHP_EXAMPLE" ; then PHP_SUBST(EXAMPLE_SHARED_LIBADD) AC_DEFINE(HAVE_EXAMPLE, 1, [Define to 1 if you have the example library.]) dnl AC_DEFINE_UNQUOTED(PHP_EXAMPLE_DIR, ["$EXAMPLE_DIR"], [ ]) dnl PHP_EXTENSION(example, [$ext_shared]) PHP_NEW_EXTENSION([example],[example_wrap.c example.c ],[$ext_shared]) PHP_ADD_MAKEFILE_FRAGMENT fi (the makefile fragment adds .SUFFIX support for .cxx and a testmodule: target which loads the module into php to see if it will) I've compared my config.m4 to php's ext/bz2 and find no significant difference, but if I: phpize ./configure make to the bz2 module I find it also only makes .la and .a So what am I doing wrong? Sam