diff options
| author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2016-02-19 12:04:44 +0000 |
|---|---|---|
| committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2016-02-19 12:18:58 +0000 |
| commit | af14eca77a3f2c037b1aca4d3f6945ffa2b985db (patch) | |
| tree | 66c31b1007570db31682e8c56331e7200a58742b /m4 | |
| parent | 00e36366aa437f592a8e7d9dad5a7764890f40b2 (diff) | |
| download | dbus-python-af14eca77a3f2c037b1aca4d3f6945ffa2b985db.tar.gz | |
configure.ac: use AS_CASE, AS_IF
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Diffstat (limited to 'm4')
| -rw-r--r-- | m4/dbus-py-add-rst2htmlflag.m4 | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/m4/dbus-py-add-rst2htmlflag.m4 b/m4/dbus-py-add-rst2htmlflag.m4 index 88b4de0..59e37ec 100644 --- a/m4/dbus-py-add-rst2htmlflag.m4 +++ b/m4/dbus-py-add-rst2htmlflag.m4 @@ -3,21 +3,19 @@ dnl checks whether rst2html supports the given flag, and if so, adds dnl it to $RST2HTMLFLAGS. Same as JH_ADD_CFLAG, really. AC_DEFUN([DBUS_PY_ADD_RST2HTMLFLAG], [ -case " $RST2HTMLFLAGS " in -*@<:@\ \ @:>@$1@<:@\ \ @:>@*) - ;; -*) +AS_CASE([" $RST2HTMLFLAGS "], +[*@<:@\ \ @:>@$1@<:@\ \ @:>@*], + [], +[*], + [ save_RST2HTMLFLAGS="$RST2HTMLFLAGS" RST2HTMLFLAGS="$RST2HTMLFLAGS $1" AC_MSG_CHECKING([whether [$]RST2HTML understands $1]) - if $RST2HTML --strict $RST2HTMLFLAGS /dev/null > /dev/null 2>/dev/null; then - dbuspy_has_option=yes - else - dbuspy_has_option=no - fi + AS_IF([$RST2HTML --strict $RST2HTMLFLAGS /dev/null > /dev/null 2>/dev/null], + [dbuspy_has_option=yes], + [dbuspy_has_option=no]) AC_MSG_RESULT($dbuspy_has_option) - if test $dbuspy_has_option = no; then - RST2HTMLFLAGS="$save_RST2HTMLFLAGS" - fi - ;; -esac]) + AS_IF([test $dbuspy_has_option = no], + [RST2HTMLFLAGS="$save_RST2HTMLFLAGS"]) + ]) +]) |
