Re: Third Party lib.so
| From: | Mikko Koppanen | Date: | Thu, 05 May 2011 16:53:08 +0000 |
| Subject: | Re: Third Party lib.so | ||
| References: | 1 2 3 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-8223@lists.php.net to get a copy of this message | ||
On Thu, May 5, 2011 at 4:41 PM, Garry Taylor <giz@gbdesign.net> wrote:
> *config.m4*
> PHP_ARG_ENABLE(hello, whether to enable Hello World support,
> [ --enable-hello Enable Hello World support])
>
> PHP_ADD_INCLUDE("/home/gizard/paf-pcpplus/pcplus/lib/")
>
> if test "$PHP_HELLO" = "yes"; then
> PHP_ADD_LIBRARY(pcplib, 1, PCPLIB_SHARED_LIBADD)
> AC_DEFINE(HAVE_HELLO, 1, [Whether you have Hello World])
> PHP_NEW_EXTENSION(hello, hello.c, $ext_shared)
> fi
Hi,
the following should work:
PHP_ARG_ENABLE(hello, whether to enable Hello World support,
[ --enable-hello Enable Hello World support])
PHP_ADD_INCLUDE("/home/gizard/paf-pcpplus/pcplus/lib/")
if test "$PHP_HELLO" = "yes"; then
PHP_ADD_LIBRARY(pcplib, 1, HELLO_SHARED_LIBADD)
AC_DEFINE(HAVE_HELLO, 1, [Whether you have Hello World])
PHP_NEW_EXTENSION(hello, hello.c, $ext_shared)
PHP_SUBST(HELLO_SHARED_LIBADD)
fi
PHP_SUBST is defined here:
http://lxr.php.net/opengrok/xref/PHP_5_3/acinclude.m4#85
--
Mikko Koppanen