Skip to content

Commit 4e34d6c

Browse files
author
foobar
committed
Fix bug: #19124, xmlrpc extension builds ok now as shared extension.
1 parent 55b22b1 commit 4e34d6c

File tree

4 files changed

+24
-6
lines changed

4 files changed

+24
-6
lines changed

ext/rpc/xmlrpc/config.m4

+8
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ xmlrpc_ext_shared=$ext_shared
1515
PHP_ARG_WITH(expat-dir, libexpat dir for XMLRPC-EPI,
1616
[ --with-expat-dir=DIR XMLRPC-EPI: libexpat dir for XMLRPC-EPI.])
1717

18+
PHP_ARG_WITH(iconv-dir, iconv dir for XMLRPC-EPI,
19+
[ --with-iconv-dir=DIR XMLRPC-EPI: iconv dir for XMLRPC-EPI.])
20+
1821
if test "$PHP_XMLRPC" != "no"; then
1922

2023
PHP_SUBST(XMLRPC_SHARED_LIBADD)
@@ -34,9 +37,14 @@ if test "$PHP_XMLRPC" != "no"; then
3437
AC_MSG_ERROR(XML-RPC support requires libexpat. Use --with-expat-dir=<DIR>)
3538
fi
3639

40+
if test "$PHP_ICONV_DIR" != "no"; then
41+
PHP_ICONV=$PHP_ICONV_DIR
42+
fi
43+
3744
if test "$PHP_ICONV" = "no"; then
3845
PHP_ICONV=yes
3946
fi
47+
4048
PHP_SETUP_ICONV(XMLRPC_SHARED_LIBADD, [], [
4149
AC_MSG_ERROR([iconv not found, in order to build xmlrpc you need the iconv library])
4250
])

ext/rpc/xmlrpc/xmlrpc-epi-php.c

+4-3
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,14 @@
5959
* of null, when the right thing may be no value at all. (SOAP) *
6060
**********************************************************************/
6161

62+
#ifdef HAVE_CONFIG_H
63+
#include "config.h"
64+
#endif
65+
6266
#include "php.h"
6367
#include "ext/standard/info.h"
6468
#include "php_ini.h"
6569
#include "php_xmlrpc.h"
66-
#ifndef PHP_WIN32
67-
#include "php_config.h"
68-
#endif
6970
#include "xmlrpc.h"
7071

7172
#define PHP_EXT_VERSION "0.51"

ext/xmlrpc/config.m4

+8
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ xmlrpc_ext_shared=$ext_shared
1515
PHP_ARG_WITH(expat-dir, libexpat dir for XMLRPC-EPI,
1616
[ --with-expat-dir=DIR XMLRPC-EPI: libexpat dir for XMLRPC-EPI.])
1717

18+
PHP_ARG_WITH(iconv-dir, iconv dir for XMLRPC-EPI,
19+
[ --with-iconv-dir=DIR XMLRPC-EPI: iconv dir for XMLRPC-EPI.])
20+
1821
if test "$PHP_XMLRPC" != "no"; then
1922

2023
PHP_SUBST(XMLRPC_SHARED_LIBADD)
@@ -34,9 +37,14 @@ if test "$PHP_XMLRPC" != "no"; then
3437
AC_MSG_ERROR(XML-RPC support requires libexpat. Use --with-expat-dir=<DIR>)
3538
fi
3639

40+
if test "$PHP_ICONV_DIR" != "no"; then
41+
PHP_ICONV=$PHP_ICONV_DIR
42+
fi
43+
3744
if test "$PHP_ICONV" = "no"; then
3845
PHP_ICONV=yes
3946
fi
47+
4048
PHP_SETUP_ICONV(XMLRPC_SHARED_LIBADD, [], [
4149
AC_MSG_ERROR([iconv not found, in order to build xmlrpc you need the iconv library])
4250
])

ext/xmlrpc/xmlrpc-epi-php.c

+4-3
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,14 @@
5959
* of null, when the right thing may be no value at all. (SOAP) *
6060
**********************************************************************/
6161

62+
#ifdef HAVE_CONFIG_H
63+
#include "config.h"
64+
#endif
65+
6266
#include "php.h"
6367
#include "ext/standard/info.h"
6468
#include "php_ini.h"
6569
#include "php_xmlrpc.h"
66-
#ifndef PHP_WIN32
67-
#include "php_config.h"
68-
#endif
6970
#include "xmlrpc.h"
7071

7172
#define PHP_EXT_VERSION "0.51"

0 commit comments

Comments
 (0)