summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorJan Lehnardt <jan@apache.org>2009-08-04 12:28:58 +0000
committerJan Lehnardt <jan@apache.org>2009-08-04 12:28:58 +0000
commitafb9467fbe19d0741559253d3042627c299abbcf (patch)
tree6c5a9bfe148323eef7c22f7a0fab672ea37c16cb /configure.ac
parenta613317745c9b88e2c0d01e9a24f8b5d7b5b242e (diff)
add compile-time conditionals to support the upcoming Spidermonkey 1.8, swap searching for libjs and libmozjs, patch by Alessandro Decina, closes COUCHDB-288
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@800750 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index f42b4b77..72e8aef3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -85,8 +85,8 @@ CPPFLAGS="$FLAGS $CPPFLAGS"
# manually linking libm is requred for FreeBSD 7.0
LDFLAGS="$FLAGS -lm $LDFLAGS"
-AC_CHECK_LIB([js], [JS_NewContext], [], [
- AC_CHECK_LIB([mozjs], [JS_NewContext], [], [
+AC_CHECK_LIB([mozjs], [JS_NewContext], [], [
+ AC_CHECK_LIB([js], [JS_NewContext], [], [
AC_MSG_ERROR([Could not find the js library.
Is the Mozilla SpiderMonkey library installed?])])])