config.m4 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. dnl
  2. dnl $Id$
  3. dnl
  4. PHP_ARG_WITH(nsapi, for NSAPI support,
  5. [ --with-nsapi=DIR Build PHP as NSAPI module for Netscape/iPlanet/Sun Webserver], no, no)
  6. if test "$PHP_NSAPI" != "no"; then
  7. if test ! -d $PHP_NSAPI/bin ; then
  8. AC_MSG_ERROR(Please specify the path to the root of your Netscape/iPlanet/Sun Webserver using --with-nsapi=DIR)
  9. fi
  10. AC_MSG_CHECKING([for NSAPI include files])
  11. if test -d $PHP_NSAPI/include ; then
  12. NSAPI_INC_DIR="$PHP_NSAPI/include"
  13. AC_MSG_RESULT([Netscape 3.x / Sun 7.x style])
  14. AC_CHECK_HEADERS([$NSAPI_INC_DIR/nsapi.h])
  15. NSAPI_INCLUDE="-I$NSAPI_INC_DIR"
  16. fi
  17. if test -d $PHP_NSAPI/plugins/include ; then
  18. NSAPI_INC_DIR="$PHP_NSAPI/plugins/include"
  19. AC_MSG_RESULT([iPlanet 4.x / Sun 6.x style])
  20. AC_CHECK_HEADERS([$NSAPI_INC_DIR/nsapi.h])
  21. NSAPI_INCLUDE="$NSAPI_INCLUDE -I$NSAPI_INC_DIR"
  22. fi
  23. if test -z "$NSAPI_INCLUDE"; then
  24. AC_MSG_ERROR([Please check you have nsapi.h in either $PHP_NSAPI/include or $PHP_NSAPI/plugins/include])
  25. fi
  26. PHP_EVAL_INCLINE($NSAPI_INCLUDE)
  27. PHP_BUILD_THREAD_SAFE
  28. AC_DEFINE(HAVE_NSAPI, 1, [Whether you have a Netscape/iPlanet/Sun Webserver])
  29. PHP_SELECT_SAPI(nsapi, shared, nsapi.c)
  30. INSTALL_IT="\$(INSTALL) -m 0755 $SAPI_SHARED \$(INSTALL_ROOT)$PHP_NSAPI/bin/"
  31. fi
  32. dnl ## Local Variables:
  33. dnl ## tab-width: 4
  34. dnl ## End: