From: Trond Norbye Date: Sun, 20 Dec 2009 11:18:07 +0000 (+0100) Subject: Detect podchecker during configure X-Git-Tag: 0.37~45^2 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=58f976626a7636c7b2e87fca0674f709d34f33c0;p=m6w6%2Flibmemcached Detect podchecker during configure --- diff --git a/configure.ac b/configure.ac index 342f92de..3199aa8a 100644 --- a/configure.ac +++ b/configure.ac @@ -32,6 +32,7 @@ ENABLE_UTILLIB SETSOCKOPT_SANITY ENABLE_HSIEH_HASH REQUIRE_POD2MAN +REQUIRE_PODCHECKER PROTOCOL_BINARY_TEST WITH_MEMCACHED ENABLE_DEPRECATED diff --git a/docs/Makefile.am b/docs/Makefile.am index 11046090..e00c655c 100644 --- a/docs/Makefile.am +++ b/docs/Makefile.am @@ -434,38 +434,38 @@ hashkit_value.3: hashkit_value.pod ${POD2MAN} -c "libhashkit" -r "" -s 3 ${top_srcdir}/docs/hashkit_value.pod > hashkit_value.3 test-docs: - podchecker $(top_srcdir)/docs/hashkit_create.pod - podchecker $(top_srcdir)/docs/hashkit_functions.pod - podchecker $(top_srcdir)/docs/hashkit_value.pod - podchecker $(top_srcdir)/docs/libmemcached.pod - podchecker $(top_srcdir)/docs/libmemcached_examples.pod - podchecker $(top_srcdir)/docs/memcached_auto.pod - podchecker $(top_srcdir)/docs/memcached_behavior.pod - podchecker $(top_srcdir)/docs/memcached_callback.pod - podchecker $(top_srcdir)/docs/memcached_create.pod - podchecker $(top_srcdir)/docs/memcached_delete.pod - podchecker $(top_srcdir)/docs/memcached_flush.pod - podchecker $(top_srcdir)/docs/memcached_flush_buffers.pod - podchecker $(top_srcdir)/docs/memcached_get.pod - podchecker $(top_srcdir)/docs/memcached_memory_allocators.pod - podchecker $(top_srcdir)/docs/memcached_pool.pod - podchecker $(top_srcdir)/docs/memcached_quit.pod - podchecker $(top_srcdir)/docs/memcached_server_st.pod - podchecker $(top_srcdir)/docs/memcached_servers.pod - podchecker $(top_srcdir)/docs/memcached_set.pod - podchecker $(top_srcdir)/docs/memcached_stats.pod - podchecker $(top_srcdir)/docs/memcached_strerror.pod - podchecker $(top_srcdir)/docs/memcached_user_data.pod - podchecker $(top_srcdir)/docs/memcached_verbosity.pod - podchecker $(top_srcdir)/docs/memcached_version.pod - podchecker $(top_srcdir)/docs/memcapable.pod - podchecker $(top_srcdir)/docs/memcat.pod - podchecker $(top_srcdir)/docs/memcp.pod - podchecker $(top_srcdir)/docs/memerror.pod - podchecker $(top_srcdir)/docs/memflush.pod - podchecker $(top_srcdir)/docs/memrm.pod - podchecker $(top_srcdir)/docs/memslap.pod - podchecker $(top_srcdir)/docs/memstat.pod + ${PODCHECKER} $(top_srcdir)/docs/hashkit_create.pod + ${PODCHECKER} $(top_srcdir)/docs/hashkit_functions.pod + ${PODCHECKER} $(top_srcdir)/docs/hashkit_value.pod + ${PODCHECKER} $(top_srcdir)/docs/libmemcached.pod + ${PODCHECKER} $(top_srcdir)/docs/libmemcached_examples.pod + ${PODCHECKER} $(top_srcdir)/docs/memcached_auto.pod + ${PODCHECKER} $(top_srcdir)/docs/memcached_behavior.pod + ${PODCHECKER} $(top_srcdir)/docs/memcached_callback.pod + ${PODCHECKER} $(top_srcdir)/docs/memcached_create.pod + ${PODCHECKER} $(top_srcdir)/docs/memcached_delete.pod + ${PODCHECKER} $(top_srcdir)/docs/memcached_flush.pod + ${PODCHECKER} $(top_srcdir)/docs/memcached_flush_buffers.pod + ${PODCHECKER} $(top_srcdir)/docs/memcached_get.pod + ${PODCHECKER} $(top_srcdir)/docs/memcached_memory_allocators.pod + ${PODCHECKER} $(top_srcdir)/docs/memcached_pool.pod + ${PODCHECKER} $(top_srcdir)/docs/memcached_quit.pod + ${PODCHECKER} $(top_srcdir)/docs/memcached_server_st.pod + ${PODCHECKER} $(top_srcdir)/docs/memcached_servers.pod + ${PODCHECKER} $(top_srcdir)/docs/memcached_set.pod + ${PODCHECKER} $(top_srcdir)/docs/memcached_stats.pod + ${PODCHECKER} $(top_srcdir)/docs/memcached_strerror.pod + ${PODCHECKER} $(top_srcdir)/docs/memcached_user_data.pod + ${PODCHECKER} $(top_srcdir)/docs/memcached_verbosity.pod + ${PODCHECKER} $(top_srcdir)/docs/memcached_version.pod + ${PODCHECKER} $(top_srcdir)/docs/memcapable.pod + ${PODCHECKER} $(top_srcdir)/docs/memcat.pod + ${PODCHECKER} $(top_srcdir)/docs/memcp.pod + ${PODCHECKER} $(top_srcdir)/docs/memerror.pod + ${PODCHECKER} $(top_srcdir)/docs/memflush.pod + ${PODCHECKER} $(top_srcdir)/docs/memrm.pod + ${PODCHECKER} $(top_srcdir)/docs/memslap.pod + ${PODCHECKER} $(top_srcdir)/docs/memstat.pod html-local: pod2htmltree "/libmemcached" . diff --git a/m4/podchecker.m4 b/m4/podchecker.m4 new file mode 100644 index 00000000..ae10a6bd --- /dev/null +++ b/m4/podchecker.m4 @@ -0,0 +1,7 @@ +AC_DEFUN([REQUIRE_PODCHECKER],[ + AC_PATH_PROG([PODCHECKER], [podchecker], + "no", [$PATH:/usr/bin:/usr/local/bin:/usr/perl5/bin]) + AS_IF([test "x$PODCHECKER" = "xno"], + AC_MSG_ERROR(["Could not find podchecker anywhere in path"])) + AC_SUBST(PODCHECKER) +])