From: foobar Date: Thu, 20 Jul 2006 10:11:15 +0000 (+0000) Subject: MFH: simplify X-Git-Tag: php-5.2.0RC1~44 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=68ae2707939bf9f8b48b52876567d57af12491d4;p=php MFH: simplify --- diff --git a/ext/json/config.m4 b/ext/json/config.m4 index 065d0411aa..675e0b9a8c 100644 --- a/ext/json/config.m4 +++ b/ext/json/config.m4 @@ -2,87 +2,15 @@ dnl dnl $Id$ dnl -AC_DEFUN([PHP_JSON_ADD_SOURCES], [ - PHP_JSON_SOURCES="$PHP_JSON_SOURCES $1" -]) - -AC_DEFUN([PHP_JSON_ADD_BASE_SOURCES], [ - PHP_JSON_BASE_SOURCES="$PHP_JSON_BASE_SOURCES $1" -]) - -AC_DEFUN([PHP_JSON_ADD_BUILD_DIR], [ - PHP_JSON_EXTRA_BUILD_DIRS="$PHP_JSON_EXTRA_BUILD_DIRS $1" -]) - -AC_DEFUN([PHP_JSON_ADD_INCLUDE], [ - PHP_JSON_EXTRA_INCLUDES="$PHP_JSON_EXTRA_INCLUDES $1" -]) - -AC_DEFUN([PHP_JSON_ADD_CONFIG_HEADER], [ - PHP_JSON_EXTRA_CONFIG_HEADERS="$PHP_JSON_EXTRA_CONFIG_HEADERS $1" -]) - -AC_DEFUN([PHP_JSON_ADD_CFLAG], [ - PHP_JSON_CFLAGS="$PHP_JSON_CFLAGS $1" -]) - -AC_DEFUN([PHP_JSON_EXTENSION], [ - PHP_NEW_EXTENSION(json, $PHP_JSON_SOURCES, $ext_shared,, $PHP_JSON_CFLAGS) - PHP_SUBST(JSON_SHARED_LIBADD) - - for dir in $PHP_JSON_EXTRA_BUILD_DIRS; do - PHP_ADD_BUILD_DIR([$ext_builddir/$dir], 1) - done - - for dir in $PHP_JSON_EXTRA_INCLUDES; do - PHP_ADD_INCLUDE([$ext_srcdir/$dir]) - PHP_ADD_INCLUDE([$ext_builddir/$dir]) - done - - if test "$ext_shared" = "no"; then - PHP_ADD_SOURCES(PHP_EXT_DIR(json), $PHP_JSON_BASE_SOURCES,$PHP_JSON_CFLAGS) - out="php_config.h" - else - PHP_ADD_SOURCES_X(PHP_EXT_DIR(json),$PHP_JSON_BASE_SOURCES,$PHP_JSON_CFLAGS,shared_objects_json,yes) - if test -f "$ext_builddir/config.h.in"; then - out="$abs_builddir/config.h" - else - out="php_config.h" - fi - fi - - for cfg in $PHP_JSON_EXTRA_CONFIG_HEADERS; do - cat > $ext_builddir/$cfg <