2000-06-18 23:30:55 +08:00
|
|
|
PHP_ARG_WITH(pi3web,for Pi3Web Support,
|
|
|
|
[ --with-pi3web=DIR Build PHP as a module for use with Pi3Web.])
|
|
|
|
|
|
|
|
if test "$PHP_PI3WEB" != "no"; then
|
|
|
|
if test "$PHP_PI3WEB" = "yes"; then
|
2000-06-17 20:06:09 +08:00
|
|
|
PI3PATH=../.. # the default
|
|
|
|
else
|
2000-06-18 23:30:55 +08:00
|
|
|
PI3PATH=$PHP_PI3WEB
|
2000-06-17 20:06:09 +08:00
|
|
|
fi
|
|
|
|
test -f "$PI3PATH/PiAPI/PiAPI.h" || AC_MSG_ERROR(Unable to find PiAPI.h in $PI3PATH/PiAPI)
|
|
|
|
PHP_BUILD_THREAD_SAFE
|
2000-06-18 23:30:55 +08:00
|
|
|
AC_DEFINE(WITH_PI3WEB,1,[whether you want Pi3Web support])
|
2001-03-28 04:35:04 +08:00
|
|
|
PHP_ADD_INCLUDE($PI3PATH/PiAPI)
|
|
|
|
PHP_ADD_INCLUDE($PI3PATH/Pi2API)
|
|
|
|
PHP_ADD_INCLUDE($PI3PATH/Pi3API)
|
|
|
|
PHP_ADD_INCLUDE($PI3PATH/PHP4)
|
2000-06-17 20:06:09 +08:00
|
|
|
PHP_SAPI=pi3web
|
|
|
|
PHP_BUILD_SHARED
|
2001-04-04 04:59:50 +08:00
|
|
|
INSTALL_IT="\$(SHELL) \$(srcdir)/install-sh -m 0755 $SAPI_SHARED \$(INSTALL_ROOT)$PI3PATH/bin/"
|
2000-06-18 23:30:55 +08:00
|
|
|
fi
|
2000-06-17 20:06:09 +08:00
|
|
|
|
|
|
|
dnl ## Local Variables:
|
|
|
|
dnl ## tab-width: 4
|
|
|
|
dnl ## End:
|