php-src/ext/json/config.m4

22 lines
623 B
Plaintext
Raw Normal View History

dnl
dnl $Id$
dnl
PHP_ARG_ENABLE(json, whether to enable JavaScript Object Serialization support,
2007-07-03 17:25:43 +00:00
[ --disable-json Disable JavaScript Object Serialization support], yes)
2006-07-20 10:11:15 +00:00
if test "$PHP_JSON" != "no"; then
2006-07-20 10:47:37 +00:00
AC_DEFINE([HAVE_JSON],1 ,[whether to enable JavaScript Object Serialization support])
AC_HEADER_STDC
2014-11-13 20:20:46 +00:00
PHP_NEW_EXTENSION(json,
json.c \
2014-11-24 20:46:13 +00:00
json_encoder.c \
2014-11-13 20:20:46 +00:00
json_parser.tab.c \
json_scanner.c,
$ext_shared,, -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1)
PHP_INSTALL_HEADERS([ext/json], [php_json.h php_json_parser.h php_json_scanner.h])
2014-11-13 20:20:46 +00:00
PHP_ADD_MAKEFILE_FRAGMENT()
2006-07-20 10:11:15 +00:00
PHP_SUBST(JSON_SHARED_LIBADD)
fi