Skip to content

Commit

Permalink
configure: Moved pandoc check to m4/dovecot.m4
Browse files Browse the repository at this point in the history
  • Loading branch information
sirainen authored and GitLab committed Dec 8, 2016
1 parent b8eb321 commit 97745d1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 11 deletions.
12 changes: 1 addition & 11 deletions configure.ac
Expand Up @@ -818,17 +818,7 @@ LDFLAGS="\$(NOPLUGIN_LDFLAGS) $LDFLAGS"
AC_SUBST(NOPLUGIN_LDFLAGS)

DC_CC_WRAPPER

AC_ARG_VAR(PANDOC, [Path to pandoc program])

# Optional tool for making documentation
AC_CHECK_PROGS(PANDOC, [pandoc], [true])

if test "$PANDOC" = "true"; then
if test ! -e README; then
AC_MSG_ERROR([Cannot produce documentation without pandoc])
fi
fi
DC_PANDOC

if test "$docdir" = ""; then
dnl docdir supported only by autoconf v2.59c and later
Expand Down
13 changes: 13 additions & 0 deletions m4/dovecot.m4
Expand Up @@ -169,3 +169,16 @@ EOF
fi
fi
])

AC_DEFUN([DC_PANDOC], [
AC_ARG_VAR(PANDOC, [Path to pandoc program])
# Optional tool for making documentation
AC_CHECK_PROGS(PANDOC, [pandoc], [true])
if test "$PANDOC" = "true"; then
if test ! -e README; then
AC_MSG_ERROR([Cannot produce documentation without pandoc - disable with PANDOC=false ./configure])
fi
fi
])

0 comments on commit 97745d1

Please sign in to comment.