couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dav...@apache.org
Subject svn commit: r800912 - /couchdb/trunk/configure.ac
Date Tue, 04 Aug 2009 18:32:04 GMT
Author: davisp
Date: Tue Aug  4 18:32:03 2009
New Revision: 800912

URL: http://svn.apache.org/viewvc?rev=800912&view=rev
Log:
Rookie mistake. Needed to force a compiler error to determine the difference in
function signature.


Modified:
    couchdb/trunk/configure.ac

Modified: couchdb/trunk/configure.ac
URL: http://svn.apache.org/viewvc/couchdb/trunk/configure.ac?rev=800912&r1=800911&r2=800912&view=diff
==============================================================================
--- couchdb/trunk/configure.ac (original)
+++ couchdb/trunk/configure.ac Tue Aug  4 18:32:03 2009
@@ -104,13 +104,16 @@
         ])])
 
 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])



Mime
View raw message