From: Yasuo Ohgaki Date: Sun, 28 Jul 2002 21:03:51 +0000 (+0000) Subject: FHM X-Git-Tag: php-4.2.3RC1~51 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a713a883923d0e42ada86620488a51cd554dff31;p=php FHM --- diff --git a/ext/rpc/xmlrpc/config.m4 b/ext/rpc/xmlrpc/config.m4 index bf032cfc24..2569fc5f61 100644 --- a/ext/rpc/xmlrpc/config.m4 +++ b/ext/rpc/xmlrpc/config.m4 @@ -56,12 +56,17 @@ if test "$PHP_XMLRPC" = "yes"; then elif test "$PHP_XMLRPC" != "no"; then if test -r $PHP_XMLRPC/include/xmlrpc.h; then - XMLRPC_DIR=$PHP_XMLRPC + XMLRPC_DIR=$PHP_XMLRPC/include + elif test -r $PHP_XMLRPC/include/xmlrpc-epi/xmlrpc.h; then +dnl some xmlrpc-epi header files have generic file names like +dnl queue.h or base64.h. Distributions have to create dir +dnl for xmlrpc-epi because of this. + XMLRPC_DIR=$PHP_XMLRPC/include/xmlrpc-epi else AC_MSG_CHECKING(for XMLRPC-EPI in default path) for i in /usr/local /usr; do if test -r $i/include/xmlrpc.h; then - XMLRPC_DIR=$i + XMLRPC_DIR=$i/include AC_MSG_RESULT(found in $i) fi done @@ -72,7 +77,7 @@ elif test "$PHP_XMLRPC" != "no"; then AC_MSG_ERROR(Please reinstall the XMLRPC-EPI distribution) fi - PHP_ADD_INCLUDE($XMLRPC_DIR/include) + PHP_ADD_INCLUDE($XMLRPC_DIR) PHP_ADD_LIBRARY_WITH_PATH(xmlrpc, $XMLRPC_DIR/lib, XMLRPC_SHARED_LIBADD) fi diff --git a/ext/xmlrpc/config.m4 b/ext/xmlrpc/config.m4 index bf032cfc24..2569fc5f61 100644 --- a/ext/xmlrpc/config.m4 +++ b/ext/xmlrpc/config.m4 @@ -56,12 +56,17 @@ if test "$PHP_XMLRPC" = "yes"; then elif test "$PHP_XMLRPC" != "no"; then if test -r $PHP_XMLRPC/include/xmlrpc.h; then - XMLRPC_DIR=$PHP_XMLRPC + XMLRPC_DIR=$PHP_XMLRPC/include + elif test -r $PHP_XMLRPC/include/xmlrpc-epi/xmlrpc.h; then +dnl some xmlrpc-epi header files have generic file names like +dnl queue.h or base64.h. Distributions have to create dir +dnl for xmlrpc-epi because of this. + XMLRPC_DIR=$PHP_XMLRPC/include/xmlrpc-epi else AC_MSG_CHECKING(for XMLRPC-EPI in default path) for i in /usr/local /usr; do if test -r $i/include/xmlrpc.h; then - XMLRPC_DIR=$i + XMLRPC_DIR=$i/include AC_MSG_RESULT(found in $i) fi done @@ -72,7 +77,7 @@ elif test "$PHP_XMLRPC" != "no"; then AC_MSG_ERROR(Please reinstall the XMLRPC-EPI distribution) fi - PHP_ADD_INCLUDE($XMLRPC_DIR/include) + PHP_ADD_INCLUDE($XMLRPC_DIR) PHP_ADD_LIBRARY_WITH_PATH(xmlrpc, $XMLRPC_DIR/lib, XMLRPC_SHARED_LIBADD) fi