diff options
author | Alex Rønne Petersen <alexrp@xamarin.com> | 2016-04-07 09:37:30 +0300 |
---|---|---|
committer | Alex Rønne Petersen <alexrp@xamarin.com> | 2016-04-07 09:37:30 +0300 |
commit | 13f33daabf777a54ad33e36ac548a1e74e5aaa97 (patch) | |
tree | d80a2b79872f77f29ea5ceab81f42890becd19a5 /libgc | |
parent | 346cd3d86c5dc439f7e39217d7764a8b603e96d1 (diff) |
[libgc] Fix broken AC_TRY_COMPILE() invocation in configure.ac.
Fixes: https://bugzilla.xamarin.com/show_bug.cgi?id=40144
Tested on PowerPC by Mathieu Malaterre <malat@debian.org>.
Diffstat (limited to 'libgc')
-rw-r--r-- | libgc/configure.ac | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libgc/configure.ac b/libgc/configure.ac index ac992abfaf9..7f5aa03148d 100644 --- a/libgc/configure.ac +++ b/libgc/configure.ac @@ -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) |