Permalink
Browse files

Rookie mistake. Needed to force a compiler error to determine the dif…

…ference in

function signature.



git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@800912 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information...
1 parent 91a2232 commit fd72a9bc48ebab76976f538c28459a0e26aa1750 @davisp davisp committed Aug 4, 2009
Showing with 5 additions and 2 deletions.
  1. +5 −2 configure.ac
View
7 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])

0 comments on commit fd72a9b

Please sign in to comment.