1
1

* 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.
Этот коммит содержится в:
Brian Barrett 2006-04-18 18:22:00 +00:00
родитель 29fbf9e296
Коммит 6617d48e00

Просмотреть файл

@ -151,7 +151,7 @@ fi
haveepoll=no haveepoll=no
AC_CHECK_FUNCS(epoll_ctl, [haveepoll=yes], ) 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 # OMPI: Unfortunately, this test is not sufficient on some
# Linux distros (e.g., RH 9), where the function is defined # 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 # Hence, the test succeeds because it thinks it can use
# epoll_ctl (and friends). So we have to do a better test # epoll_ctl (and friends). So we have to do a better test
# after we determine that epoll_ctl is linkable. Grumble. # 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]) AC_MSG_CHECKING([for epoll_ctl on broken Linux distros])
rm -f conftest.out rm -f conftest.out