X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=m4%2Fpod2man.m4;h=26589981496d4722d40b46279ab0333ee012af63;hb=d0a0615a20fae501e944374a7917067f90d5c7e6;hp=8dde96e7e0d31385891cac59f37a218550b617f2;hpb=20b4431225d4ccd4aa22f6d7f67476c92d1c9546;p=m6w6%2Flibmemcached diff --git a/m4/pod2man.m4 b/m4/pod2man.m4 index 8dde96e7..26589981 100644 --- a/m4/pod2man.m4 +++ b/m4/pod2man.m4 @@ -1,5 +1,7 @@ -AC_PATH_PROG([POD2MAN], [pod2man], "no", [$PATH:/usr/bin:/usr/local/bin:/usr/perl5/bin]) -if test "x$POD2MAN" = "xno"; then - AC_MSG_ERROR(["Could not find pod2man anywhere in path"]) -fi -AC_SUBST(POD2MAN) +AC_DEFUN([REQUIRE_POD2MAN],[ + AC_PATH_PROG([POD2MAN], [pod2man], + "no", [$PATH:/usr/bin:/usr/local/bin:/usr/perl5/bin]) + AS_IF([test "x$POD2MAN" = "xno"], + AC_MSG_ERROR(["Could not find pod2man anywhere in path"])) + AC_SUBST(POD2MAN) +])