Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

67 lines (59 sloc) 2.347 kB
PHP_ARG_WITH([couchbase], [for Couchbase support],
[ --with-couchbase Include Couchbase support])
if test "$PHP_COUCHBASE" != "no"; then
dnl PCBC-180 Add support for igbinary.
dnl The PHP include directories is not searched by default, so
dnl we need to add $INCLUDES to $CPPFLAGS
saved_cppflags="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS $INCLUDES"
AC_CHECK_HEADERS([libcouchbase/couchbase.h zlib.h ext/igbinary/igbinary.h])
dnl Reset the CPPFLAGS
CPPFLAGS="$saved_cppflags"
AS_IF([test "x$ac_cv_header_libcouchbase_couchbase" = "xno"], [
AC_MSG_ERROR([The Couchbase extension require libcouchbase])])
PHP_ADD_LIBRARY(couchbase, 1, COUCHBASE_SHARED_LIBADD)
AS_IF([test "x$ac_cv_header_zlib_h" = "xyes"], [
AC_DEFINE(HAVE_COMPRESSION_ZLIB,1,[Whether zlib lib is available])
PHP_ADD_LIBRARY(z, 1, COUCHBASE_SHARED_LIBADD)])
AS_IF([test "x$ac_cv_header_ext_igbinary_igbinary_h" = "xyes"], [
PHP_ADD_EXTENSION_DEP(couchbase, igbinary)
])
PHP_SUBST(COUCHBASE_SHARED_LIBADD)
PHP_NEW_EXTENSION([couchbase],
[ \
apidecl.c \
arithmetic.c \
ccache.c \
compress.c \
convert.c \
couchbase.c \
create.c \
designdoc.c \
error.c \
exceptions.c \
fastlz/fastlz.c \
flush.c \
get.c \
ht.c \
management/buckets.c \
management/instance.c \
management/management.c \
misc.c \
observe.c \
options.c \
remove.c \
replica.c \
resmgr.c \
simple_observe.c \
stat.c \
store.c \
timeout.c \
touch.c \
unlock.c \
version.c \
viewopts.c \
views.c \
], [$ext_shared])
PHP_ADD_BUILD_DIR($ext_builddir/fastlz, 1)
PHP_ADD_BUILD_DIR($ext_builddir/management, 1)
fi
Jump to Line
Something went wrong with that request. Please try again.