support ifort v11.
authorGengbin Zheng <gzheng@honest4.ncsa.uiuc.edu>
Tue, 4 May 2010 01:39:04 +0000 (20:39 -0500)
committerGengbin Zheng <gzheng@honest4.ncsa.uiuc.edu>
Tue, 4 May 2010 01:39:04 +0000 (20:39 -0500)
src/arch/common/conv-mach-ifort.sh

index 4f746a537fee03f0e81c3bdbc68dc3e68c084a55..b2b759386b90bb14b1e00faa43abe1f87bc84b93 100644 (file)
@@ -10,7 +10,15 @@ then
 fi
 if test -x "$F90DIR" 
 then
-  F90LIBDIR="`dirname $F90DIR`/../lib"
+  F90DIR=`dirname $F90DIR`
+  Minor=`basename $F90DIR`
+  if test "$Minor" = "intel64"
+  then
+    F90DIR=`dirname $F90DIR`
+    F90LIBDIR="$F90DIR/../lib/$Minor"
+  else
+    F90LIBDIR="$F90DIR/../lib"
+  fi
   F90MAIN="$F90LIBDIR/for_main.o"
 fi
 # for_main.o is important for main() in f90 code