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

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to