You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
897 B

24 years ago
  1. dnl
  2. dnl $Id$
  3. dnl
  4. AC_MSG_CHECKING(for embedded SAPI library support)
  5. AC_ARG_ENABLE(embed,
  6. [ --enable-embed[=TYPE] EXPERIMENTAL: Enable building of embedded SAPI library
  7. TYPE is either 'shared' or 'static'. [TYPE=shared]],
  8. [
  9. case $enableval in
  10. yes|shared)
  11. PHP_EMBED_TYPE=shared
  12. INSTALL_IT="\$(mkinstalldirs) \$(INSTALL_ROOT)\$(prefix)/lib; \$(INSTALL) -m 0755 $SAPI_SHARED \$(INSTALL_ROOT)\$(prefix)/lib"
  13. ;;
  14. static)
  15. PHP_EMBED_TYPE=static
  16. INSTALL_IT="\$(mkinstalldirs) \$(INSTALL_ROOT)\$(prefix)/lib; \$(INSTALL) -m 0644 $SAPI_STATIC \$(INSTALL_ROOT)\$(prefix)/lib"
  17. ;;
  18. *)
  19. PHP_EMBED_TYPE=no
  20. ;;
  21. esac
  22. ],[
  23. PHP_EMBED_TYPE=no
  24. ])
  25. AC_MSG_RESULT($PHP_EMBED_TYPE)
  26. if test "$PHP_EMBED_TYPE" != "no"; then
  27. PHP_SELECT_SAPI(embed, $PHP_EMBED_TYPE, php_embed.c)
  28. PHP_INSTALL_HEADERS([sapi/embed/php_embed.h])
  29. fi