From fe10555229b2d2636e16f16a9aa8b4b6ba1f6863 Mon Sep 17 00:00:00 2001 From: Oliver Buchtala Date: Wed, 5 Mar 2014 01:51:29 +0100 Subject: [PATCH] Add check to skip javascript test-suite if default interpreter is not installed. --- configure.ac | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/configure.ac b/configure.ac index dc446897d..ac392028b 100644 --- a/configure.ac +++ b/configure.ac @@ -1128,6 +1128,13 @@ else ;; esac + #- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + # Look for Node.js which is the default javascript engine + # without it, the javascript test-suite will be skipped + #- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + AC_CHECK_PROGS(NODEJS, node) + #---------------------------------------------------------------- # Look for JavascriptCore (Webkit) settings (JSCOREINCDIR, JSCOREDYNAMICLINKING) #---------------------------------------------------------------- @@ -2455,6 +2462,9 @@ fi AC_SUBST(SKIP_JAVA) SKIP_JAVASCRIPT= +if test -z "$JAVASCRIPT" || test -z "$NODEJS"; then + SKIP_JAVASCRIPT="1" +fi AC_SUBST(SKIP_JAVASCRIPT) SKIP_GUILE=