~ubuntu-branches/ubuntu/quantal/php5/quantal

« back to all changes in this revision

Viewing changes to sapi/embed/config.m4

  • Committer: Bazaar Package Importer
  • Author(s): Sean Finney
  • Date: 2009-07-01 09:12:10 UTC
  • mto: (0.9.1) (1.1.17 upstream)
  • mto: This revision was merged to the branch mainline in revision 58.
  • Revision ID: james.westby@ubuntu.com-20090701091210-go0h6506p62on17r
Tags: upstream-5.3.0
ImportĀ upstreamĀ versionĀ 5.3.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
dnl
 
2
dnl $Id: config.m4,v 1.9.4.2 2007/07/11 23:20:36 jani Exp $
 
3
dnl
 
4
 
 
5
PHP_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
 
 
9
AC_MSG_CHECKING([for embedded SAPI library support])
 
10
 
 
11
if 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])
 
30
else
 
31
  AC_MSG_RESULT(no)
 
32
fi
 
33