summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in129
1 files changed, 64 insertions, 65 deletions
diff --git a/configure.in b/configure.in
index 774850d9..20e5514c 100644
--- a/configure.in
+++ b/configure.in
@@ -196,70 +196,70 @@ else
AC_MSG_FAILURE("Could not find gmp library (set CPPFLAGS and LDFLAGS?)")
fi
-# check for expat or xmlparse
-AC_ARG_ENABLE(xml,
- [ --enable-xml Turn on support for XML parsing],
- [case "${enableval}" in
- yes) xml=true ;;
- no) xml=false ;;
- *) AC_MSG_ERROR(bad value ${enableval} for --enable-xml) ;;
- esac],[xml=true])
-
-AM_CONDITIONAL(USE_XML, test x$xml = xtrue)
-
-if [test x$xml = xtrue ]; then
- AC_CACHE_CHECK(
- [if libexpat is available],
- [libexpat_avail],
- [libexpat_save_libs=$LIBS
- LIBS="-lexpat $LIBS"
- AC_LANG_PUSH(C++)
- AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <stdio.h>
- extern "C" {
- #include <expat.h> // expat XML parser
- }]], [[XML_Parser parser = XML_ParserCreate(NULL);
- return parser != NULL;]])],[libexpat_avail=true],[libexpat_avail=false])
- AC_LANG_POP
- LIBS=$libexpat_save_libs])
-
- if [test x$libexpat_avail = xtrue ]; then
- AM_CONDITIONAL(HAVE_EXPAT, true)
- LIBS="-lexpat $LIBS"
- else
- AM_CONDITIONAL(HAVE_EXPAT, false)
- fi
-else
- AM_CONDITIONAL(HAVE_EXPAT, false)
-fi
-
-if [test x$xml = xtrue ]; then
- if [test x$libexpat_avail = xfalse ]; then
- AC_CACHE_CHECK(
- [if libxmlparse is available],
- [libxmlparse_avail],
- [libxmlparse_save_libs=$LIBS
- LIBS="-lxmlparse -lxmltok $LIBS"
- AC_LANG_PUSH(C++)
- AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <stdio.h>
- extern "C" {
- #include <xmlparse.h> // expat XML parser
- }]], [[XML_Parser parser = XML_ParserCreate(NULL);
- return parser != NULL;]])],[libxmlparse_avail=true],[libxmlparse_avail=false])
- AC_LANG_POP
- LIBS=$libxmlparse_save_libs])
-
- if [test x$libxmlparse_avail = xtrue ]; then
- AM_CONDITIONAL(HAVE_XMLPARSE, true)
- LIBS="-lxmlparse -lxmltok $LIBS"
- else
- AM_CONDITIONAL(HAVE_XMLPARSE, false)
- fi
- else
- AM_CONDITIONAL(HAVE_XMLPARSE, false)
- fi
-else
- AM_CONDITIONAL(HAVE_XMLPARSE, false)
-fi
+## check for expat or xmlparse
+#AC_ARG_ENABLE(xml,
+# [ --enable-xml Turn on support for XML parsing],
+# [case "${enableval}" in
+# yes) xml=true ;;
+# no) xml=false ;;
+# *) AC_MSG_ERROR(bad value ${enableval} for --enable-xml) ;;
+# esac],[xml=true])
+#
+#AM_CONDITIONAL(USE_XML, test x$xml = xtrue)
+#
+#if [test x$xml = xtrue ]; then
+# AC_CACHE_CHECK(
+# [if libexpat is available],
+# [libexpat_avail],
+# [libexpat_save_libs=$LIBS
+# LIBS="-lexpat $LIBS"
+# AC_LANG_PUSH(C++)
+# AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <stdio.h>
+# extern "C" {
+# #include <expat.h> // expat XML parser
+# }]], [[XML_Parser parser = XML_ParserCreate(NULL);
+# return parser != NULL;]])],[libexpat_avail=true],[libexpat_avail=false])
+# AC_LANG_POP
+# LIBS=$libexpat_save_libs])
+#
+# if [test x$libexpat_avail = xtrue ]; then
+# AM_CONDITIONAL(HAVE_EXPAT, true)
+# LIBS="-lexpat $LIBS"
+# else
+# AM_CONDITIONAL(HAVE_EXPAT, false)
+# fi
+#else
+# AM_CONDITIONAL(HAVE_EXPAT, false)
+#fi
+#
+#if [test x$xml = xtrue ]; then
+# if [test x$libexpat_avail = xfalse ]; then
+# AC_CACHE_CHECK(
+# [if libxmlparse is available],
+# [libxmlparse_avail],
+# [libxmlparse_save_libs=$LIBS
+# LIBS="-lxmlparse -lxmltok $LIBS"
+# AC_LANG_PUSH(C++)
+# AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <stdio.h>
+# extern "C" {
+# #include <xmlparse.h> // expat XML parser
+# }]], [[XML_Parser parser = XML_ParserCreate(NULL);
+# return parser != NULL;]])],[libxmlparse_avail=true],[libxmlparse_avail=false])
+# AC_LANG_POP
+# LIBS=$libxmlparse_save_libs])
+#
+# if [test x$libxmlparse_avail = xtrue ]; then
+# AM_CONDITIONAL(HAVE_XMLPARSE, true)
+# LIBS="-lxmlparse -lxmltok $LIBS"
+# else
+# AM_CONDITIONAL(HAVE_XMLPARSE, false)
+# fi
+# else
+# AM_CONDITIONAL(HAVE_XMLPARSE, false)
+# fi
+#else
+# AM_CONDITIONAL(HAVE_XMLPARSE, false)
+#fi
# check for libofx
AC_ARG_ENABLE(ofx,
@@ -370,7 +370,6 @@ AC_TYPE_SIZE_T
AC_STRUCT_TM
# Checks for library functions.
-#AC_FUNC_ERROR_AT_LINE
AC_HEADER_STDC
AC_CHECK_FUNCS([access mktime realpath getpwuid getpwnam nl_langinfo])