Skip to content

Commit 21474a6

Browse files
author
Ralph Castain
authored
Merge pull request #4413 from rhc54/topic/event
Address external libevent once again
2 parents ae4f310 + 36d7e75 commit 21474a6

File tree

2 files changed

+19
-11
lines changed

2 files changed

+19
-11
lines changed

opal/mca/event/external/configure.m4

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,13 +99,23 @@ AC_DEFUN([MCA_opal_event_external_CONFIG],[
9999
OPAL_CHECK_WITHDIR([libevent], [$opal_event_dir],
100100
[include/event.h])
101101
AS_IF([test -z "$with_libevent_libdir" || test "$with_libevent_libdir" = "yes"],
102-
[AS_IF([test -d "$with_libevent/lib64"],
102+
[AC_MSG_CHECKING([for $with_libevent/lib64])
103+
AS_IF([test -d "$with_libevent/lib64"],
104+
[opal_event_libdir_found=yes
105+
AC_MSG_RESULT([found])],
106+
[opal_event_libdir_found=no
107+
AC_MSG_RESULT([not found])])
108+
AS_IF([test "$opal_event_libdir_found" = "yes"],
103109
[opal_event_libdir="$with_libevent/lib64"],
104-
[AS_IF([test -d "$with_libevent/lib"],
105-
[opal_event_libdir="$with_libevent/lib"],
106-
[AC_MSG_WARN([libevent library were neither found under:])
110+
[AC_MSG_CHECKING([for $with_libevent/lib])
111+
AS_IF([test -d "$with_libevent/lib"],
112+
[AC_MSG_RESULT([found])
113+
opal_event_libdir="$with_libevent/lib"],
114+
[AC_MSG_RESULT([not found])
115+
AC_MSG_WARN([Library directories were not found:])
107116
AC_MSG_WARN([ $with_libevent/lib64])
108117
AC_MSG_WARN([ $with_libevent/lib])
118+
AC_MSG_WARN([Please use --with-libevent-libdir to identify it.])
109119
AC_MSG_ERROR([Cannot continue])])])])],
110120
[AC_MSG_RESULT([(default search paths)])])
111121
AS_IF([test ! -z "$with_libevent_libdir" && test "$with_libevent_libdir" != "yes"],
@@ -136,6 +146,7 @@ AC_DEFUN([MCA_opal_event_external_CONFIG],[
136146
AC_MSG_WARN([Open MPI requires libevent to be compiled with])
137147
AC_MSG_WARN([thread support enabled])
138148
AC_MSG_ERROR([Cannot continue])])
149+
139150
AC_CHECK_LIB([event_pthreads], [evthread_use_pthreads],
140151
[],
141152
[AC_MSG_WARN([External libevent does not have thread support])

opal/mca/pmix/pmix3x/configure.m4

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,11 @@ AC_DEFUN([MCA_opal_pmix_pmix3x_CONFIG],[
5959
CFLAGS="$OPAL_CFLAGS_BEFORE_PICKY $OPAL_VISIBILITY_CFLAGS -g"],
6060
[opal_pmix_pmix3x_args="--disable-debug $opal_pmix_pmix3x_args"
6161
CFLAGS="$OPAL_CFLAGS_BEFORE_PICKY $OPAL_VISIBILITY_CFLAGS"])
62+
AC_MSG_CHECKING([if want to install standalone libpmix])
6263
AS_IF([test "$enable_install_libpmix" == "yes"],
63-
[AS_IF([test "$opal_event_external_want" != "yes"],
64-
[AC_MSG_WARN([Installing the embedded PMIx library as a separate])
65-
AC_MSG_WARN([standalone library requires that OMPI be configured])
66-
AC_MSG_WARN([against an external version of libevent.])
67-
AC_MSG_ERROR([Cannot continue])])
68-
opal_pmix_pmix3x_args="--with-pmix-extra-lib=\"$opal_event_libdir/libevent.la $opal_event_libdir/libevent_pthreads.la\" $opal_pmix_pmix3x_args"],
69-
[opal_pmix_pmix3x_args="--with-pmix-symbol-rename=OPAL_MCA_PMIX2X_ --enable-embedded-mode $opal_pmix_pmix3x_args"])
64+
[AC_MSG_RESULT([yes])],
65+
[AC_MSG_RESULT([no])
66+
opal_pmix_pmix3x_args="--with-pmix-symbol-rename=OPAL_MCA_PMIX3X_ --enable-embedded-mode $opal_pmix_pmix3x_args"])
7067
AS_IF([test "$with_devel_headers" = "yes"],
7168
[opal_pmix_pmix3x_args="--with-devel-headers $opal_pmix_pmix3x_args"])
7269
CPPFLAGS="-I$OPAL_TOP_SRCDIR -I$OPAL_TOP_BUILDDIR -I$OPAL_TOP_SRCDIR/opal/include -I$OPAL_TOP_BUILDDIR/opal/include $CPPFLAGS"

0 commit comments

Comments
 (0)