Skip to content

Commit

Permalink
Merge pull request #5 from shintaro-iwasaki/threads-squash-rebase-con…
Browse files Browse the repository at this point in the history
…figfix

Minor fix of configury
  • Loading branch information
hppritcha authored Feb 14, 2019
2 parents 026bb89 + de2b838 commit e5791f9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
22 changes: 12 additions & 10 deletions config/opal_config_argobots.m4
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,19 @@ dnl Additional copyrights may follow
dnl
dnl $HEADER$
dnl
dnl OPAL_CONFIG_ARGOBOT_THREADS()
dnl OPAL_CONFIG_ARGOBOTS_THREADS()
dnl
dnl Configure argobot threads, setting the following variables (but
dnl Configure Argobots threads, setting the following variables (but
dnl not calling AC_SUBST on them).

#********************************************************************
#
# TODO: work in progress
#
#********************************************************************
AC_DEFUN([OPAL_CONFIG_ARGOBOT_THREADS],[
AC_REQUIRE([AC_PROG_GREP])
[$2]
AC_DEFUN([OPAL_CONFIG_ARGOBOTS_THREADS],[
AC_CHECK_HEADERS([abt.h],
[AC_CHECK_LIB([abt],[ABT_init],
[threads_argobots_happy="yes"],
[threads_argobots_happy="no"])],
[threads_argobots_happy="no"])
AS_IF([test "$threads_argobots_happy" = "yes"],
[$1],
[$2])
])dnl
6 changes: 3 additions & 3 deletions config/opal_config_threads.m4
Original file line number Diff line number Diff line change
Expand Up @@ -63,16 +63,16 @@ AS_IF([test -z "$with_threads" || test "$with_threads" = "pthreads" || test "$wi
#
# see if argobots is called for
#
AS_IF([test -z "$thread_type_found" && test "$with_threads" = argobots"],
[OPAL_CONFIG_ARGOBOT_THREADS(HAVE_THREAD_PKG=1, HAVE_THREAD_PKG=0)
AS_IF([test -z "$thread_type_found" && test "$with_threads" = "argobots"],
[OPAL_CONFIG_ARGOBOTS_THREADS(HAVE_THREAD_PKG=1, HAVE_THREAD_PKG=0)
AC_MSG_CHECKING([for working ARGOBOTS threads package])
AS_IF([test "$HAVE_THREAD_PKG" = "1"],
[AC_MSG_RESULT([yes])
thread_type_found="argobots"],
[AC_MSG_RESULT([no])])],
[])
AS_IF([test -z "$thread_type_found" && test "$with_threads" = qthreads"],
AS_IF([test -z "$thread_type_found" && test "$with_threads" = "qthreads"],
[OPAL_CONFIG_QTHREADS(HAVE_THREAD_PKG=1, HAVE_THREAD_PKG=0)
AC_MSG_CHECKING([for working Qthreads package])
AS_IF([test "$HAVE_THREAD_PKG" = "1"],
Expand Down

0 comments on commit e5791f9

Please sign in to comment.