diff options
-rw-r--r-- | configure.ac | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index f8dceebc..a0ced9f3 100644 --- a/configure.ac +++ b/configure.ac @@ -104,13 +104,16 @@ Are the Mozilla SpiderMonkey headers installed?]) ])]) AC_LANG_PUSH(C) -AC_LINK_IFELSE( +OLD_CFLAGS="$CFLAGS" +CFLAGS="-Werror-implicit-function-declaration" +AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( - [[]], + [[#include <jsapi.h>]], [[JS_SetOperationCallback(0, 0);]] )], AC_DEFINE([USE_JS_SETOPCB], [], [Use new JS_SetOperationCallback]) ) +CFLAGS="$OLD_CFLAGS" AC_LANG_POP(C) AC_CHECK_ICU([3]) |