From 340f06ab2493625b283510208c3ea2a752328514 Mon Sep 17 00:00:00 2001 From: Eliot Horowitz Date: Fri, 20 Nov 2009 14:24:20 -0500 Subject: [PATCH] better debian support --- buildscripts/hacks_ubuntu.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/buildscripts/hacks_ubuntu.py b/buildscripts/hacks_ubuntu.py index 26714bdd2db..67c5d78f3d1 100644 --- a/buildscripts/hacks_ubuntu.py +++ b/buildscripts/hacks_ubuntu.py @@ -4,7 +4,8 @@ import os def insert( env , options ): if not foundxulrunner( env , options ): - env.Append( CPPDEFINES=[ "MOZJS" ] ) + if os.path.exists( "usr/include/mozjs/" ): + env.Append( CPPDEFINES=[ "MOZJS" ] ) def foundxulrunner( env , options ):