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