arabica/m4/want_dom.m4

26 lines
873 B
Text
Raw Normal View History

AC_DEFUN([ARABICA_WANT_DOM],
[
AC_ARG_WITH([dom],
AS_HELP_STRING([--with-dom=yes|no],
[Control whether DOM tests and examples are built. --with-dom=no to disable]),
[if test "$withval" = "no"; then
want_dom="no"
else
want_dom="yes"
fi],
[want_dom="yes"])
if test x$want_dom = xno; then
AC_MSG_NOTICE([[DOM disabled. DOM components will not be built.]])
fi
2007-07-19 19:04:18 +02:00
AM_CONDITIONAL([WANT_DOM], [test "$want_dom" = "yes"])
if test "$want_dom" = "yes"; then
if test "$boost_is_available" = "yes"; then
want_xpath="yes"
fi
fi
if test "$want_xpath" != "yes"; then
AC_MSG_NOTICE([[XPath disabled. XPath components will not be built.]])
fi
2007-07-19 19:04:18 +02:00
AM_CONDITIONAL([WANT_XPATH], [test "$want_xpath" = "yes"])
])