Hello, While using AC_CHECK_LIB, a tiny program is generated. If I say on configure.ac: AC_CHECK_LIB([netcdf],[nf90_inq_libvers]) It creates a program main nf90_inq_libvers end What is enough for a simple program. The problem is, for that library, the specific fortran 90 commands are exported via a module only, so instead of having generated that three-line-long file, I would need a single additional line to search for the .mod file, resulting in: program main use netcdf nf90_inq_libvers end Is there a way I can specify and additional line to be created to conftest file in autoconf? As a ‘workaround’ I could either build a custom script to make configtest as I need it, or check for the .MOD file existence and just try with the functions that work right away with –lnetcdf like ‘nf_inq_libvers’, but it would be nicer if there was an option to specify the ‘use’ line in the conftest to a AC_CHECK_LIB/AC_HAVE_LIBRARY or similar command. Remember, I am using FORTRAN 90. Thanks in advance, Fabricio Murta _______________________________________________ Autoconf mailing list Autoconf@xxxxxxx https://lists.gnu.org/mailman/listinfo/autoconf