configure.ac: fix check for futex and eventfd
authorRyan Lortie <desrt@desrt.ca>
Fri, 20 Jun 2014 18:43:26 +0000 (14:43 -0400)
committerRyan Lortie <desrt@desrt.ca>
Fri, 20 Jun 2014 20:00:48 +0000 (16:00 -0400)
commit9362a1b2d987125a8aa0723b916d29aaaece329a
treeb1284963e2d8fb9f806725808dc33482cf75b087
parentbef557e55d8ab89b324ff2099b2621254aeb3929
configure.ac: fix check for futex and eventfd

We were using AC_LANG_PROGRAM to build a program to test for our ability
to call syscall (__NR_futex, ...);.  This macro adds "main () { ... }"
around the provided code segment automatically.  The provided code
segment provided its own main() function, however.

The result looked something like:

int main (void) {
  int main (void) {
    ...
  }
}

which worked on GCC, but not on clang.

Let's fix that.  Let's fix the same mistake copied over for eventfd()
detection while we're at it.
configure.ac