From 029964a748230475bc4c950334bd85d593e2352e Mon Sep 17 00:00:00 2001 From: Joshua Hursey Date: Mon, 23 Jan 2017 13:39:33 -0600 Subject: [PATCH] libevent2022: 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/libevent2022/libevent/configure.ac | 3 --- 1 file changed, 3 deletions(-) diff --git a/opal/mca/event/libevent2022/libevent/configure.ac b/opal/mca/event/libevent2022/libevent/configure.ac index 0ed4e4b3dc..de8263b3d5 100644 --- a/opal/mca/event/libevent2022/libevent/configure.ac +++ b/opal/mca/event/libevent2022/libevent/configure.ac @@ -611,8 +611,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; @@ -640,7 +638,6 @@ int main(int argc, char **argv) } } /* SUCCESS */ -} ]])], [haveepoll=yes # OMPI: Don't use AC_LIBOBJ