aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2020-03-27 13:09:17 +0200
committerSergey Poznyakoff <gray@gnu.org>2020-03-27 13:09:17 +0200
commit82d8dc6b0c0f316acb7f9b4f351fbd8cb1f85e99 (patch)
treea3b5b8d93e90941af408d624ac0cf03bdec832c7
parent99b8dd21c7d1a91021b0a63c0d846ac35c4b0093 (diff)
downloadacvmod-82d8dc6b0c0f316acb7f9b4f351fbd8cb1f85e99.tar.gz
acvmod-82d8dc6b0c0f316acb7f9b4f351fbd8cb1f85e99.tar.bz2
Set RST2MAN variable to the full pathname of the rst2man or rst2man.py script.
-rw-r--r--varnishapi.m422
1 files changed, 12 insertions, 10 deletions
diff --git a/varnishapi.m4 b/varnishapi.m4
index 6e47ae7..1d1107b 100644
--- a/varnishapi.m4
+++ b/varnishapi.m4
@@ -1,5 +1,5 @@
## Autoconf macros for writing Varnish modules
-## Copyright (C) 2016,2017 Sergey Poznyakoff
+## Copyright (C) 2016-2020 Sergey Poznyakoff
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
@@ -14,7 +14,7 @@
## You should have received a copy of the GNU General Public License
## along with this program. If not, see <http://www.gnu.org/licenses/>.
-## serial 2
+## serial 3
## VAPI_CHECK_VER([MAJOR], [MINOR], [PATCH]) - Check version
##
@@ -62,12 +62,14 @@ m4_define([VAPI_CHECK_VER],[
## VMODDIR the path of the varnish module directory.
## VARNISH_MAJOR, VARNISH_MINOR, and VARNISH_PATCH
## the corresponding numbers of the varnish API version.
-## VARNISHD full pathname of the varnishd binary
-## VARNISHTEST full pathname of the varnishtest binary
+## VARNISHD full pathname of the varnishd binary.
+## VARNISHTEST full pathname of the varnishtest binary.
## VARNISHAPI_PKGDATADIR
-## varnish API package data directory
+## varnish API package data directory.
## VARNISHAPI_VMODTOOL
-## full pathname of the vmodtool.py script
+## full pathname of the vmodtool.py script.
+## PYTHON full pathname of the python 3 binary.
+## RST2MAN full pathname of the rst2man or rst2man.py script.
##
AC_DEFUN([AM_VARNISHAPI],
[ # Check for pkg-config
@@ -76,10 +78,10 @@ AC_DEFUN([AM_VARNISHAPI],
# Check for python
AM_PATH_PYTHON([3.5])
- # Varnish source tree (deprecated)
- AC_ARG_WITH([varnish-source],
- [],
- [AC_MSG_ERROR([the --with-varnish-source option has been withdrawn])])
+ # Check for rst2man.py or rst2man
+ AC_PATH_PROGS(RST2MAN, [rst2man.py rst2man],
+ [\$(abs_top_srcdir)/build-aux/missing rst2man.py])
+ AC_SUBST([RST2MAN])
# pkg-config
PKG_PROG_PKG_CONFIG

Return to:

Send suggestions and report system problems to the System administrator.