From 0ff55c3ac279ef4e144608eb67311233e42afff6 Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Tue, 3 Jul 2007 14:21:32 +0200 Subject: [PATCH] configure.in: Faster lookup for SpiderMonkey. --- configure.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.in b/configure.in index 00b71cd7..90f344d2 100644 --- a/configure.in +++ b/configure.in @@ -630,7 +630,8 @@ if test -z "$disable_spidermonkey"; then for spidermonkeydir in "$withval" "" /usr /usr/local /opt/spidermonkey /opt/js; do for spidermonkeyinclude in "/include" "/include/js" "/include/smjs" "/include/mozjs"; do for spidermonkeylib in js smjs mozjs; do - if test "$cf_result" = no; then + if test "$cf_result" = no && + test -f "$spidermonkeydir$spidermonkeyinclude/jsapi.h"; then SPIDERMONKEY_LIBS="-l$spidermonkeylib" if test ! -z "$spidermonkeydir"; then -- 2.11.4.GIT