config.m4 1.0 KB

12345678910111213141516171819202122232425262728
  1. dnl ## $Id$ -*- sh -*-
  2. PHP_ARG_WITH(continuity, for Continuity support,
  3. [ --with-continuity=DIR Build PHP as Continuity Server module.
  4. DIR is path to the installed Continuity Server root], no, no)
  5. if test "$PHP_CONTINUITY" != "no"; then
  6. if test ! -d $PHP_CONTINUITY; then
  7. AC_MSG_ERROR([Please specify the path to the root of your Continuity server using --with-continuity=DIR])
  8. fi
  9. AC_MSG_CHECKING([for Continuity include files])
  10. if test -d $PHP_CONTINUITY/include ; then
  11. CAPI_INCLUDE=$PHP_CONTINUITY/include
  12. AC_MSG_RESULT([Continuity Binary Distribution])
  13. else
  14. AC_MSG_ERROR([Cannot find your CAPI include files in either DIR/src or DIR/include])
  15. fi
  16. PHP_SELECT_SAPI(continuity, shared, capi.c)
  17. PHP_ADD_INCLUDE($CAPI_INCLUDE)
  18. PHP_BUILD_THREAD_SAFE
  19. AC_DEFINE(HAVE_CONTINUITY, 1, [Whether you have a Continuity Server])
  20. INSTALL_IT="\$(INSTALL) -m 0755 $SAPI_SHARED \$(INSTALL_ROOT)$PHP_CONTINUITY/lib/"
  21. fi
  22. dnl ## Local Variables:
  23. dnl ## tab-width: 4
  24. dnl ## End: