Don't assume that libdbus only gives method call messages to object-path handlers...
[dbus-python-phuang.git] / m4 / dbus-py-add-rst2htmlflag.m4
blob88b4de0e3cafbbf53a84457e163650da7165945f
1 dnl DBUS_PY_ADD_RST2HTMLFLAG(FLAG)
2 dnl checks whether rst2html supports the given flag, and if so, adds
3 dnl it to $RST2HTMLFLAGS. Same as JH_ADD_CFLAG, really.
4 AC_DEFUN([DBUS_PY_ADD_RST2HTMLFLAG],
6 case " $RST2HTMLFLAGS " in
7 *@<:@\  \ @:>@$1@<:@\   \ @:>@*)
8   ;;
9 *)
10   save_RST2HTMLFLAGS="$RST2HTMLFLAGS"
11   RST2HTMLFLAGS="$RST2HTMLFLAGS $1"
12   AC_MSG_CHECKING([whether [$]RST2HTML understands $1])
13   if $RST2HTML --strict $RST2HTMLFLAGS /dev/null > /dev/null 2>/dev/null; then
14     dbuspy_has_option=yes
15   else
16     dbuspy_has_option=no
17   fi
18   AC_MSG_RESULT($dbuspy_has_option)
19   if test $dbuspy_has_option = no; then
20     RST2HTMLFLAGS="$save_RST2HTMLFLAGS"
21   fi
22   ;;
23 esac])