From 6617d48e0071ff35d25a38469288b1e28bc45ed4 Mon Sep 17 00:00:00 2001 From: Brian Barrett Date: Tue, 18 Apr 2006 18:22:00 +0000 Subject: [PATCH] * fix small issue with cross-compiling - we don't need to run the working test when cross-compiling, so just ignore it for now.. This commit was SVN r9653. --- config/ompi_setup_libevent.m4 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/ompi_setup_libevent.m4 b/config/ompi_setup_libevent.m4 index 41ea0bec8e..4ca5ff8310 100644 --- a/config/ompi_setup_libevent.m4 +++ b/config/ompi_setup_libevent.m4 @@ -151,7 +151,7 @@ fi haveepoll=no AC_CHECK_FUNCS(epoll_ctl, [haveepoll=yes], ) -if test "x$haveepoll" = "xyes" ; then +if test "x$haveepoll" = "xyes" -a "$cross_compiling" != "yes" ; then # OMPI: Unfortunately, this test is not sufficient on some # Linux distros (e.g., RH 9), where the function is defined @@ -162,6 +162,7 @@ if test "x$haveepoll" = "xyes" ; then # Hence, the test succeeds because it thinks it can use # epoll_ctl (and friends). So we have to do a better test # after we determine that epoll_ctl is linkable. Grumble. + # If we are cross compiling, just trust AC_CHECK_FUNCS AC_MSG_CHECKING([for epoll_ctl on broken Linux distros]) rm -f conftest.out