LAM/MPI logo

LAM/MPI General User's Mailing List Archives

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just in this list

From: Jeff Squyres (jsquyres_at_[hidden])
Date: 2005-02-18 09:00:02


On Feb 17, 2005, at 11:37 PM, Ricky Tang Siu Hong wrote:

> May I request to add a switch to configure script of ssi/boot/tm
> module?
>
> On our x86_64 installation we put tm library in somewhere like
> /usr/torque/lib64, but the LAM only searchs at /usr/torque/lib.

Actually, I'd prefer if our configure script just checked both places
-- that way there's no need for a new configure switch (when a script
can be smart enough and then the user doesn't have to worry about
something extra, that's a Good Thing). I don't have a 64 bit Torque
installation to try this out, however. Can you try the following patch
(I've committed this to SVN; it'll be in tomorrow's nightly snapshot):

Index: configure.stub
===================================================================
--- configure.stub (revision 10059)
+++ configure.stub (working copy)
@@ -51,14 +51,23 @@
  AC_CHECK_LIB(nsl, main, ,)

  #
-# need to find libpbs
+# Sometimes the TM library will be in $prefix/lib, sometimes it will
+# be in $prefix/lib64. Try them both.
  #
-if test ! -z "$TMDIR"; then
+if test -n "$TMDIR" -a -d "$TMDIR/lib"; then
+ LDFLAGS_orig="$LDFLAGS"
      LDFLAGS="$LDFLAGS -L$TMDIR/lib"
  fi
+AC_CHECK_LIB(pbs, tm_init, HAPPY=1, HAPPY=0)

-AC_CHECK_LIB(pbs, tm_init, ,
+if test "$HAPPY" = "0" -a -n "$TMDIR" -a -d "$TMDIR/lib64"; then
+ LDFLAGS="$LDFLAGS_orig -L$TMDIR/lib64"
+ AC_CHECK_LIB(pbs, tm_finalize, HAPPY=1, HAPPY=0)
+fi
+
+if test "$HAPPY" = "0"; then
      AC_MSG_ERROR([*** Cannot find working libpbs.]) )
+fi

  #
  # done with boot tm configure.stub

-- 
{+} Jeff Squyres
{+} jsquyres_at_[hidden]
{+} http://www.lam-mpi.org/