| 6843 |
# Yoshihiro OKUMURA |
# Yoshihiro OKUMURA |
| 6844 |
|
|
| 6845 |
dnl AM_XNI_PATH_XML2([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]]) |
dnl AM_XNI_PATH_XML2([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]]) |
| 6846 |
dnl Test for XML, and define XML_CPPFLAGS and XML_LIBS |
dnl Test for XML, and define XML_CPPFLAGS and XML_LIBS and bug version check |
| 6847 |
dnl |
dnl |
| 6848 |
AC_DEFUN([AM_XNI_PATH_XML2], |
AC_DEFUN([AM_XNI_PATH_XML2], |
| 6849 |
[AC_REQUIRE([AM_PATH_XML2])dnl |
[ |
| 6850 |
|
|
| 6851 |
|
AM_PATH_XML2([$1],[$2],[$3]) |
| 6852 |
|
|
| 6853 |
AC_ARG_ENABLE([xml-query-bug-version-check], |
AC_ARG_ENABLE([xml-query-bug-version-check], |
| 6854 |
[AC_HELP_STRING([--disable-xml-query-bug-version-check], |
[AC_HELP_STRING([--disable-xml-query-bug-version-check], |
| 6855 |
[disable version check of GET query bug for libxml2-2.6.19])],, |
[disable library version check for GET query bug in libxml2-2.6.19])]) |
| 6856 |
[disable_xml_query_bug_version_check="yes"]) |
test "x$enable_xml_query_bug_version_check" = "x" && enable_xml_query_bug_version_check=yes |
|
|
|
|
if [ x"$disable_xml_query_bug_version_check" = x"" ]; then |
|
|
disable_xml_query_bug_version_check="no" |
|
|
fi |
|
| 6857 |
|
|
| 6858 |
echo $disable_xml_query_bug_version_check; |
dnl checking libxml2 version for GET query problem |
| 6859 |
AM_PATH_XML2([$1]) |
if test "x$enable_xml_query_bug_version_check" = "xyes" ; then |
| 6860 |
|
xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \ |
|
xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \ |
|
| 6861 |
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` |
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` |
| 6862 |
xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \ |
xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \ |
| 6863 |
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'` |
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'` |
| 6864 |
xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \ |
xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \ |
| 6865 |
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'` |
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'` |
|
|
|
|
if test "$disable_xml_query_bug_version_check" != "yes"; then |
|
| 6866 |
if test $xml_config_major_version -eq 2 && \ |
if test $xml_config_major_version -eq 2 && \ |
| 6867 |
test $xml_config_minor_version -eq 6 && \ |
test $xml_config_minor_version -eq 6 && \ |
| 6868 |
test $xml_config_micro_version -eq 19 ; then |
test $xml_config_micro_version -eq 19 ; then |