Commit b4f010e0 authored by Martijn Pieters's avatar Martijn Pieters Committed by Nils Goroll

Quote macro argument to AC_ARG_WITH()

On some autoconf versions (e.g. 2.71 on MacOS, installed with `brew 
install autoconf`), not quoting this argument results in a syntax error
in `configure`:

sh configure
# ...
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking whether more special flags are required for pthreads... no
checking for PTHREAD_PRIO_INHERIT... yes
configure: line 14927: syntax error near unexpected token `newline'
configure: line 14927: `    '''

Adding `[...]` quotes fixes this; see for a similar problem in a
different OSS project.
parent d3348808
......@@ -32,7 +32,7 @@ AC_ARG_WITH([rst2man],
[Location of rst2man (auto)]),
AC_CHECK_PROGS(RST2MAN, [rst2man], []))
[AC_CHECK_PROGS(RST2MAN, [rst2man], [])])
m4_ifndef([VARNISH_PREREQ], AC_MSG_ERROR([Need varnish.m4 -- see README.rst]))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment