From 9fa8ed1df31292e739870d230306b13e7b39bd88 Mon Sep 17 00:00:00 2001 From: Morris Jette <jette@schedmd.com> Date: Wed, 18 Jul 2012 11:54:00 -0700 Subject: [PATCH] switch/nrt: Linking mods for percs testbed --- auxdir/x_ac_nrt.m4 | 14 +++++++------- config.h.in | 2 +- configure | 18 +++++++++--------- src/plugins/switch/nrt/libpermapi/Makefile.am | 2 +- src/plugins/switch/nrt/libpermapi/Makefile.in | 2 +- 5 files changed, 19 insertions(+), 19 deletions(-) diff --git a/auxdir/x_ac_nrt.m4 b/auxdir/x_ac_nrt.m4 index fa1dd962a9b..a9c335cd77a 100644 --- a/auxdir/x_ac_nrt.m4 +++ b/auxdir/x_ac_nrt.m4 @@ -16,15 +16,15 @@ AC_DEFUN([X_AC_NRT], [ nrt_default_dirs="/usr/include" - AC_ARG_WITH([nrth], AS_HELP_STRING(--with-nrth=PATH,Parent directory of nrt.h), [ nrt_default_dirs="$withval $nrt_default_dirs"]) - AC_MSG_CHECKING([Checking NRT header file]) + AC_ARG_WITH([nrth], AS_HELP_STRING(--with-nrth=PATH,Parent directory of nrt.h and permapi.h), [ nrt_default_dirs="$withval $nrt_default_dirs"]) + AC_MSG_CHECKING([Checking NRT and PERMAPI header files]) for nrt_dir in $nrt_default_dirs; do # skip dirs that don't exist if test ! -z "$nrt_dir" -a ! -d "$nrt_dir" ; then continue; fi - # search for required NRT API libraries - if test -f "$nrt_dir/nrt.h"; then + # search for required NRT and PERMAPI header files + if test -f "$nrt_dir/nrt.h" -a -f "$nrt_dir/permapi.h"; then ac_have_nrt_h="yes" NRT_CPPFLAGS="-I$nrt_dir" break; @@ -32,7 +32,7 @@ AC_DEFUN([X_AC_NRT], done if test "x$ac_have_nrt_h" != "xyes" ; then AC_MSG_RESULT([no]) - AC_MSG_NOTICE([Cannot support IBM NRT API without nrt.h]) + AC_MSG_NOTICE([Cannot support IBM NRT without nrt.h and permapi.h]) else AC_MSG_RESULT([yes]) fi @@ -58,10 +58,10 @@ AC_DEFUN([X_AC_NRT], if test "x$ac_have_libnrt" != "xyes" ; then AC_MSG_RESULT([no]) - AC_MSG_NOTICE([Cannot support IBM NRT API without libnrt.]) + AC_MSG_NOTICE([Cannot support IBM NRT API without libnrt.so]) else AC_MSG_RESULT([yes]) - AC_DEFINE(HAVE_LIBNRT, 1, [define if you have libnrt.]) + AC_DEFINE(HAVE_LIBNRT, 1, [define if you have libnrt.so]) fi if test "x$ac_have_nrt_h" == "xyes" && test "x$ac_have_libnrt" == "xyes"; then diff --git a/config.h.in b/config.h.in index 52cb1666ffe..96fca1ea50e 100644 --- a/config.h.in +++ b/config.h.in @@ -142,7 +142,7 @@ /* Define to 1 if you have the `job' library (-ljob). */ #undef HAVE_LIBJOB -/* define if you have libnrt. */ +/* define if you have libnrt.so */ #undef HAVE_LIBNRT /* Define to 1 if you have the <limits.h> header file. */ diff --git a/configure b/configure index c068457ca29..4a640e212f0 100755 --- a/configure +++ b/configure @@ -1642,7 +1642,7 @@ Optional Packages: --with-slurmdbd-port=N set slurmdbd default port [6819] --with-slurmctld-port-count=N set slurmctld default port count [1] - --with-nrth=PATH Parent directory of nrt.h + --with-nrth=PATH Parent directory of nrt.h and permapi.h --with-libnrt=PATH Parent directory of libnrt.so --without-readline compile without readline support --with-ssl=PATH Specify path to OpenSSL installation @@ -21197,15 +21197,15 @@ if test "${with_nrth+set}" = set; then : withval=$with_nrth; nrt_default_dirs="$withval $nrt_default_dirs" fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking NRT header file" >&5 -$as_echo_n "checking Checking NRT header file... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking NRT and PERMAPI header files" >&5 +$as_echo_n "checking Checking NRT and PERMAPI header files... " >&6; } for nrt_dir in $nrt_default_dirs; do # skip dirs that don't exist if test ! -z "$nrt_dir" -a ! -d "$nrt_dir" ; then continue; fi - # search for required NRT API libraries - if test -f "$nrt_dir/nrt.h"; then + # search for required NRT and PERMAPI header files + if test -f "$nrt_dir/nrt.h" -a -f "$nrt_dir/permapi.h"; then ac_have_nrt_h="yes" NRT_CPPFLAGS="-I$nrt_dir" break; @@ -21214,8 +21214,8 @@ $as_echo_n "checking Checking NRT header file... " >&6; } if test "x$ac_have_nrt_h" != "xyes" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot support IBM NRT API without nrt.h" >&5 -$as_echo "$as_me: Cannot support IBM NRT API without nrt.h" >&6;} + { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot support IBM NRT without nrt.h and permapi.h" >&5 +$as_echo "$as_me: Cannot support IBM NRT without nrt.h and permapi.h" >&6;} else { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } @@ -21249,8 +21249,8 @@ $as_echo_n "checking whether to enable IBM NRT support... " >&6; } if test "x$ac_have_libnrt" != "xyes" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot support IBM NRT API without libnrt." >&5 -$as_echo "$as_me: Cannot support IBM NRT API without libnrt." >&6;} + { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot support IBM NRT API without libnrt.so" >&5 +$as_echo "$as_me: Cannot support IBM NRT API without libnrt.so" >&6;} else { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } diff --git a/src/plugins/switch/nrt/libpermapi/Makefile.am b/src/plugins/switch/nrt/libpermapi/Makefile.am index 50614fff15f..ef6525a23d2 100644 --- a/src/plugins/switch/nrt/libpermapi/Makefile.am +++ b/src/plugins/switch/nrt/libpermapi/Makefile.am @@ -5,7 +5,7 @@ AUTOMAKE_OPTIONS = foreign PLUGIN_FLAGS = -module -avoid-version --export-dynamic INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/src/common \ - -I$(top_srcdir)/src/srun/libsrun + -I$(top_srcdir)/src/srun/libsrun $(NRT_CPPFLAGS) # making a .la diff --git a/src/plugins/switch/nrt/libpermapi/Makefile.in b/src/plugins/switch/nrt/libpermapi/Makefile.in index 3200a4e5bab..b94f1e7852e 100644 --- a/src/plugins/switch/nrt/libpermapi/Makefile.in +++ b/src/plugins/switch/nrt/libpermapi/Makefile.in @@ -342,7 +342,7 @@ top_srcdir = @top_srcdir@ AUTOMAKE_OPTIONS = foreign PLUGIN_FLAGS = -module -avoid-version --export-dynamic INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/src/common \ - -I$(top_srcdir)/src/srun/libsrun + -I$(top_srcdir)/src/srun/libsrun $(NRT_CPPFLAGS) # making a .la -- GitLab