Skip to content

Commit 17fef6c

Browse files
committed
configure: Don't use pandoc < 1.8. Closes #1513
1 parent 193279d commit 17fef6c

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

configure

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,16 @@ then
298298
probe CFG_NODE nodejs
299299
fi
300300

301+
if [ ! -z "$CFG_PANDOC" ]
302+
then
303+
PV=$(pandoc --version | awk '/^pandoc/ {print $2}')
304+
if [ "$PV" \< "1.8" ]
305+
then
306+
step_msg "pandoc $PV is too old. disabling"
307+
BAD_PANDOC=1
308+
fi
309+
fi
310+
301311
if [ -z "$CFG_ENABLE_CLANG" -a -z "$CFG_GCC" ]
302312
then
303313
err "either clang or gcc is required"
@@ -616,6 +626,13 @@ then
616626
putvar CFG_DISABLE_MANAGE_SUBMODULES
617627
fi
618628

629+
# Ditto for pandoc
630+
if [ ! -z $BAD_PANDOC ]
631+
then
632+
CFG_PANDOC=
633+
putvar CFG_PANDOC
634+
fi
635+
619636
if head -n 1 ${CFG_SRC_DIR}src/snapshots.txt | grep -q '^T'
620637
then
621638
CFG_IN_TRANSITION=1

0 commit comments

Comments
 (0)