1
1

configury/libevent: fix incorrect drop of OPAL_HAVE_WORKING_EVENTOPS

Fixes PR https://github.com/open-mpi/ompi/pull/1687
The code that sets OPAL_HAVE_WORKING_EVENTOPS for internal libevent
was executed even if the external libevent component was configured.

As the result libevent progress wasn't called in opal_progress which
for example caused ring_c to hang when pml/ob1 was used.
Этот коммит содержится в:
Boris Karasev 2016-08-04 16:15:40 +06:00
родитель 30f98cd9d0
Коммит 9d6a4b3b2d

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

@ -190,13 +190,15 @@ AC_DEFUN([MCA_opal_event_libevent2022_CONFIG],[
AS_IF([test "$with_libevent" != "internal" && test -n "$with_libevent" && test "$with_libevent" != "yes"], AS_IF([test "$with_libevent" != "internal" && test -n "$with_libevent" && test "$with_libevent" != "yes"],
[AC_MSG_WARN([using an external libevent; disqualifying this component]) [AC_MSG_WARN([using an external libevent; disqualifying this component])
libevent_happy=no]) libevent_happy=no],
AS_IF([test "$libevent_happy" = "yes" && test -r $libevent_file], [AS_IF([test "$libevent_happy" = "yes" && test -r $libevent_file],
[OPAL_HAVE_WORKING_EVENTOPS=`grep HAVE_WORKING_EVENTOPS $libevent_file | awk '{print [$]3 }'` [OPAL_HAVE_WORKING_EVENTOPS=`grep HAVE_WORKING_EVENTOPS $libevent_file | awk '{print [$]3 }'`
$1], $1],
[$2 [$2
OPAL_HAVE_WORKING_EVENTOPS=0]) OPAL_HAVE_WORKING_EVENTOPS=0])
]
)
OPAL_VAR_SCOPE_POP OPAL_VAR_SCOPE_POP
]) ])