Index: /issm/trunk-jpl/m4/issm_options.m4
===================================================================
--- /issm/trunk-jpl/m4/issm_options.m4	(revision 14182)
+++ /issm/trunk-jpl/m4/issm_options.m4	(revision 14183)
@@ -1046,5 +1046,6 @@
 		if test -n "$FORTRAN_LIB" ; then
 			dnl check that library provided EXISTS!
-			if test -f "$FORTRAN_LIB"; then
+		   FORTRAN_DIR=$(echo $FORTRAN_LIB | sed -e "s/-L//g" | awk '{print $[1]}')
+			if test -d "$FORTRAN_DIR" || test -f "$FORTRAN_DIR"; then
 				FORTRANLIB="$FORTRAN_LIB"
 				AC_DEFINE([_HAVE_FORTRAN_],[1],[with FORTRAN in ISSM src])
