Revision 96b28307 configure.ac
b/configure.ac | ||
---|---|---|
373 | 373 |
then |
374 | 374 |
AC_MSG_WARN(m4_normalize([sphinx-build not found, documentation rebuild will |
375 | 375 |
not be possible])) |
376 |
else |
|
377 |
# Sphinx exits with code 1 when it prints its usage |
|
378 |
sphinxver=`{ $SPHINX --version 2>&1 || :; } | head -n 3` |
|
379 |
|
|
380 |
if ! echo "$sphinxver" | grep -q -w -e '^Sphinx' -e '^Usage:'; then |
|
381 |
AC_MSG_ERROR([Unable to determine Sphinx version]) |
|
382 |
|
|
383 |
# Note: Character classes ([...]) need to be double quoted due to autoconf |
|
384 |
# using m4 |
|
385 |
elif ! echo "$sphinxver" | grep -q -E '^Sphinx[[[:space:]]]+v[[1-9]]\>'; then |
|
386 |
AC_MSG_ERROR([Sphinx 1.0 or higher is required]) |
|
387 |
fi |
|
376 | 388 |
fi |
377 | 389 |
|
378 | 390 |
AC_ARG_ENABLE([manpages-in-doc], |
Also available in: Unified diff