<div dir="ltr">Hi,<div><br>I see that there is a built-in FortranCInterface module that provides a lot of useful information for calling Fortran from C and C++. However, is there a module that does the opposite? Specifically, I need to check that the Fortran compiler supports calling C routines. In our autoconf script we do this by test linking a program like so:</div><div><br></div><div>AC_LINK_IFELSE(AC_LANG_PROGRAM([],[use iso_c_binding])],</div><div>                            [action-if-yes],[action-if-no])</div><div><br></div><div>which just attempts to compile and link a one line program "use iso_c_binding". </div><div><br></div><div>I know I can simply recreate this in cmake, but if there is a module that does it already, or if FortranCInterface does it already, I'd like to avoid reinventing the wheel. </div><div><br></div><div>Is there something that does this? </div><div>--Jack</div></div>