[AMBER-Developers] finding intel libs

From: Josh Berryman <the.real.josh.berryman.gmail.com>
Date: Fri, 18 Jan 2013 11:27:34 +0100

Hello, just a suggestion, I find that the regexp in
AmberTools/src/configure2:

fl=`which ifort | sed -e 's.\(.*\)bin@\1lib@' -e 's.ifort@@'`

...doesn't find the intel libraries on the cluster I'm using just now. The
admins have put ifort and the associated libs in:

/opt/apps/easybuild/software/ifort/2011.6.233/bin/intel64/ifort
/opt/apps/easybuild/software/ifort/2011.6.233/compiler/lib/intel64/

which seems reasonable enough, but breaks the regexp in two different ways.

This two-line approach works for me, does anyone with more experience of
this sort of thing see a reason not to commit it onto the main branch?

  ifhome=`which ifort | sed 's.\(.*\)bin\/.*@\1@'`
  fl=`find $ifhome -name libifcore.a | sed 's.\/libifcore.a@@'`


Josh
_______________________________________________
AMBER-Developers mailing list
AMBER-Developers.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber-developers
Received on Fri Jan 18 2013 - 02:30:02 PST
Custom Search