@@ -17,8 +17,9 @@ dnl Copyright (c) 2009 Los Alamos National Security, LLC. All rights
17
17
dnl reserved.
18
18
dnl Copyright (c) 2009-2011 Oak Ridge National Labs. All rights reserved.
19
19
dnl Copyright (c) 2011-2013 NVIDIA Corporation. All rights reserved.
20
- dnl Copyright (c) 2015-2016 Research Organization for Information Science
21
20
dnl Copyright (c) 2013-2016 Intel, Inc. All rights reserved
21
+ dnl Copyright (c) 2015 Research Organization for Information Science
22
+ dnl and Technology (RIST). All rights reserved.
22
23
dnl Copyright (c) 2016 Mellanox Technologies, Inc.
23
24
dnl All rights reserved.
24
25
dnl Copyright (c) 2016 IBM Corporation. All rights reserved.
@@ -85,7 +86,6 @@ AC_DEFUN([PMIX_SETUP_CORE],[
85
86
AC_MSG_RESULT([$PMIX_VERSION ])
86
87
87
88
# Save the breakdown the version information
88
- AC_MSG_CHECKING([for pmix major version])
89
89
PMIX_MAJOR_VERSION= " ` $PMIX_top_srcdir /config/pmix_get_version.sh $PMIX_top_srcdir /VERSION --major` "
90
90
if test " $? " ! = " 0" ; then
91
91
AC_MSG_ERROR([Cannot continue])
@@ -94,7 +94,6 @@ AC_DEFUN([PMIX_SETUP_CORE],[
94
94
AC_DEFINE_UNQUOTED([PMIX_MAJOR_VERSION], [" $PMIX_MAJOR_VERSION " ],
95
95
[The library major version is always available, contrary to VERSION])
96
96
97
- AC_MSG_CHECKING([for pmix minor version])
98
97
PMIX_MINOR_VERSION= " ` $PMIX_top_srcdir /config/pmix_get_version.sh $PMIX_top_srcdir /VERSION --minor` "
99
98
if test " $? " ! = " 0" ; then
100
99
AC_MSG_ERROR([Cannot continue])
@@ -103,7 +102,12 @@ AC_DEFUN([PMIX_SETUP_CORE],[
103
102
AC_DEFINE_UNQUOTED([PMIX_MINOR_VERSION], [" $PMIX_MINOR_VERSION " ],
104
103
[The library minor version is always available, contrary to VERSION])
105
104
106
- AC_MSG_CHECKING([for pmix release version])
105
+ pmixmajor= ${PMIX_MAJOR_VERSION} L
106
+ pmixminor= ${PMIX_MINOR_VERSION} L
107
+ AC_SUBST(pmixmajor)
108
+ AC_SUBST(pmixminor)
109
+ AC_CONFIG_FILES(pmix_config_prefix[include/pmix_version.h])
110
+
107
111
PMIX_RELEASE_VERSION= " ` $PMIX_top_srcdir /config/pmix_get_version.sh $PMIX_top_srcdir /VERSION --release` "
108
112
if test " $? " ! = " 0" ; then
109
113
AC_MSG_ERROR([Cannot continue])
@@ -318,7 +322,8 @@ AC_DEFUN([PMIX_SETUP_CORE],[
318
322
time.h unistd.h \
319
323
crt_externs.h signal.h \
320
324
ioLib.h sockLib.h hostLib.h limits.h \
321
- ucred.h])
325
+ sys/statfs.h sys/statvfs.h \
326
+ netdb.h ucred.h])
322
327
323
328
# Note that sometimes we have <stdbool.h>, but it doesn't work (e.g.,
324
329
# have both Portland and GNU installed; using pgcc will find GNU's
@@ -495,7 +500,7 @@ AC_DEFUN([PMIX_SETUP_CORE],[
495
500
# Darwin doesn't need -lm, as it's a symlink to libSystem.dylib
496
501
PMIX_SEARCH_LIBS_CORE([ceil], [m])
497
502
498
- AC_CHECK_FUNCS([asprintf snprintf vasprintf vsnprintf strsignal socketpair strncpy_s usleep getpeereid getpeerucred strnlen])
503
+ AC_CHECK_FUNCS([asprintf snprintf vasprintf vsnprintf strsignal socketpair strncpy_s usleep statfs statvfs getpeereid getpeerucred strnlen])
499
504
500
505
# On some hosts, htonl is a define, so the AC_CHECK_FUNC will get
501
506
# confused. On others, it's in the standard library, but stubbed with
@@ -753,6 +758,26 @@ AC_DEFINE_UNQUOTED([PMIX_WANT_PRETTY_PRINT_STACKTRACE],
753
758
[$WANT_PRETTY_PRINT_STACKTRACE ],
754
759
[if want pretty-print stack trace feature])
755
760
761
+ #
762
+ # Do we want the shared memory datastore usage?
763
+ #
764
+
765
+ AC_MSG_CHECKING([if want shared memory datastore])
766
+ AC_ARG_ENABLE([dstore],
767
+ [AC_HELP_STRING([--disable-dstore],
768
+ [Using shared memory datastore (default: enabled)])])
769
+ if test " $enable_dstore " == " no" ; then
770
+ AC_MSG_RESULT([no])
771
+ WANT_DSTORE=0
772
+ else
773
+ AC_MSG_RESULT([yes])
774
+ WANT_DSTORE=1
775
+ fi
776
+ AC_DEFINE_UNQUOTED([PMIX_ENABLE_DSTORE],
777
+ [$WANT_DSTORE ],
778
+ [if want shared memory dstore feature])
779
+ AM_CONDITIONAL([WANT_DSTORE],[test " x$enable_dstore " != " xno" ])
780
+
756
781
#
757
782
# Ident string
758
783
#
@@ -810,6 +835,7 @@ AC_DEFUN([PMIX_DO_AM_CONDITIONALS],[
810
835
AM_CONDITIONAL([PMIX_COMPILE_TIMING], [test " $WANT_TIMING " = " 1" ])
811
836
AM_CONDITIONAL([PMIX_WANT_MUNGE], [test " $pmix_munge_support " = " 1" ])
812
837
AM_CONDITIONAL([PMIX_WANT_SASL], [test " $pmix_sasl_support " = " 1" ])
838
+ AM_CONDITIONAL([WANT_DSTORE],[test " x$enable_dstore " != " xno" ])
813
839
])
814
840
pmix_did_am_conditionals= yes
815
841
])dnl
0 commit comments