aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2010-10-06 22:40:02 +0200
committerMarcel Holtmann <marcel@holtmann.org>2010-10-06 22:40:02 +0200
commit729feb23cae5872a9c5aa15e12f908b807e7dd8c (patch)
tree7fd3c83286d39ec3864fbf84ad687ccf11c4ce60
parent2ff1cc43cc1d03a318d7b4eb019e47945c0cc058 (diff)
downloadpacrunner-729feb23cae5872a9c5aa15e12f908b807e7dd8c.tar.gz
Simplify Mozilla Javascript library detection
-rw-r--r--configure.ac7
1 files changed, 2 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac
index 81aeab0..e66e535 100644
--- a/configure.ac
+++ b/configure.ac
@@ -91,11 +91,8 @@ if (test "${enable_capng}" = "yes"); then
AC_DEFINE(HAVE_CAPNG, 1, [Define to 1 if you have capabilities library.])
fi
-PKG_CHECK_MODULES(MOZJS, mozilla-js >= 1.9, enabled_threads=yes, [
- PKG_CHECK_MODULES(MOZJS, libxul >= 1.9, enable_threads=yes,
- AC_MSG_ERROR(XUL Runtime >= 1.9 is required))
- MOZJS_LIBS="`$PKG_CONFIG --libs-only-L libxul` -lmozjs"
-])
+PKG_CHECK_MODULES(MOZJS, mozilla-js >= 1.9, enabled_threads=yes,
+ AC_MSG_ERROR(Mozilla Javascript >= 1.9 is required))
AC_SUBST(MOZJS_CFLAGS)
AC_SUBST(MOZJS_LIBS)