From 00026af7bb6da7060a6d9ef51c263b9954470cba Mon Sep 17 00:00:00 2001 From: Joshua Hursey Date: Mon, 23 Jan 2017 21:50:29 -0600 Subject: [PATCH] libevent2021: Fix broken configure AC_LANG_PROGRAM * The AC_LANG_PROGRAM macro adds the `main()` so it is erroneous to add it to the test program. * This was detected with the XL compilers which will fail to build the program in this situation. The GNU compiler does not error out or warn, but successfully compiles the program. Signed-off-by: Joshua Hursey --- opal/mca/event/libevent2021/libevent/configure.ac | 7 ------- 1 file changed, 7 deletions(-) diff --git a/opal/mca/event/libevent2021/libevent/configure.ac b/opal/mca/event/libevent2021/libevent/configure.ac index b78c3ffd6f3..a47dc8c9514 100644 --- a/opal/mca/event/libevent2021/libevent/configure.ac +++ b/opal/mca/event/libevent2021/libevent/configure.ac @@ -610,8 +610,6 @@ if test "$enable_epoll" != "no" ; then AC_INCLUDES_DEFAULT #include ],[[ -int main(int argc, char **argv) -{ struct epoll_event epevin; struct epoll_event epevout; int res; @@ -639,7 +637,6 @@ int main(int argc, char **argv) } } /* SUCCESS */ -} ]])], [haveepoll=yes # OMPI: Don't use AC_LIBOBJ @@ -671,9 +668,6 @@ AC_INCLUDES_DEFAULT #include #include ],[[ -int -main(int argc, char **argv) -{ struct epoll_event epevin; struct epoll_event epevout; int res; @@ -702,7 +696,6 @@ main(int argc, char **argv) } } /* SUCCESS */ -} ]])], [haveepollsyscall=yes # OMPI: don't use AC_LIBOBJ