[libgc] Fix broken AC_TRY_COMPILE() invocation in configure.ac.
authorAlex Rønne Petersen <alexrp@xamarin.com>
Thu, 7 Apr 2016 06:37:30 +0000 (08:37 +0200)
committerAlex Rønne Petersen <alexrp@xamarin.com>
Thu, 7 Apr 2016 06:37:30 +0000 (08:37 +0200)
Fixes: https://bugzilla.xamarin.com/show_bug.cgi?id=40144

Tested on PowerPC by Mathieu Malaterre <malat@debian.org>.

libgc/configure.ac

index ac992abfaf99aa62491ecd302c5e8be34881c022..7f5aa03148da79519f638f1bd93b37cdaa45c539 100644 (file)
@@ -233,10 +233,8 @@ AM_CONDITIONAL(POWERPC_DARWIN,test x$powerpc_darwin = xtrue)
 AC_MSG_CHECKING(for __sync_bool_compare_and_swap)
 AC_TRY_COMPILE([],[
 volatile unsigned int foo = 0;
-int main(int argc, char** argv) {
-    unsigned int r1 = __sync_bool_compare_and_swap(&foo, 0, 1);
-    return 0;
-}
+unsigned int r1 = __sync_bool_compare_and_swap(&foo, 0, 1);
+return 0;
 ], [
 AC_MSG_RESULT(yes)
 AC_DEFINE(HAS___SYNC_BOOL_COMPARE_AND_SWAP)