+mark_as_advanced(HAVE_F2C_LIB)
+
+if(HAVE_F2C_H)
+ include_directories(${HAVE_F2C_H})
+else()
+ message("-- Fortran for smpi is not installed (http://www.netlib.org/f2c/).")
+endif()
+
+set(SMPI_F2C 0)
+if(HAVE_F2C_H AND F2C_EXE AND HAVE_F2C_LIB)
+ set(SMPI_F2C 1)
+endif()