diff options
author | Jiri Vanek <[email protected]> | 2011-12-21 09:46:46 +0100 |
---|---|---|
committer | Jiri Vanek <[email protected]> | 2011-12-21 09:46:46 +0100 |
commit | 684e9d8dc2e335ef808c2ed7df22d8ee3b801ea1 (patch) | |
tree | 8dcd9864ed77ffd09d297a29e127e59d7efd7eb2 /acinclude.m4 | |
parent | d6072b8d9141bdcc3e4be09671780054bad89432 (diff) |
Made compatible with both versions of xulrunner
Diffstat (limited to 'acinclude.m4')
-rw-r--r-- | acinclude.m4 | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index afbff9f..c819d0f 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -495,6 +495,26 @@ AC_DEFUN_ONCE([IT_CHECK_GLIB_VERSION],[ PKG_CHECK_MODULES([GLIB2_V_216],[glib-2.0 >= 2.16],[],[AC_DEFINE([LEGACY_GLIB])]) ]) +AC_DEFUN_ONCE([IT_CHECK_XULRUNNER_API_VERSION], +[ + AC_MSG_CHECKING([for legacy xulrunner api]) + AC_LANG_PUSH(C++) + CXXFLAGS_BACKUP=$CXXFLAGS + CXXFLAGS=$CXXFLAGS" "$MOZILLA_CFLAGS + AC_TRY_COMPILE([ + #include <npfunctions.h> + const char* NP_GetMIMEDescription () + {return (char*) "yap!";} + ],[],[ + AC_MSG_RESULT(no) + ],[ + AC_MSG_RESULT(yes) + AC_DEFINE([LEGACY_XULRUNNERAPI]) + ]) + CXXFLAGS=$CXXFLAGS_BACKUP + AC_LANG_POP(C++) +]) + AC_DEFUN([IT_CHECK_WITH_GCJ], [ AC_MSG_CHECKING([whether to compile ecj natively]) |