2006-05-05 15:49:42 +00:00
|
|
|
dnl
|
|
|
|
dnl $Id$
|
|
|
|
dnl
|
|
|
|
|
2006-07-19 16:17:15 +00:00
|
|
|
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-05-05 15:49:42 +00:00
|
|
|
|
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])
|
2006-05-05 15:49:42 +00:00
|
|
|
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,
|
2014-12-27 19:42:04 +00:00
|
|
|
$ext_shared,, -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1)
|
2016-10-18 12:48:17 +00:00
|
|
|
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)
|
2006-05-05 15:49:42 +00:00
|
|
|
fi
|