So, I am writing tests for my code, and I want to disable library function calls (make sure that it calls the correct library calls at the right time and that it handles errors accordingly).
I think I am SOL with the standard C library functions, but these are not the only libraries that I use.
When creating my final executable (and not my test executable) I want to use -lfuse, so I included this line in myconfigure.ac
AC_CHECK_LIB([fuse], [fuse_main])
However, it also rushes in -lfusewhen trying to create mine check_PROGRAMS.
Is there a way I can tell autotools that I don't need a library -lfusewhen creating my test executable ( make check)? Then I must be able to fill in the library calls as I want, since nothing will be associated with the same name.
source
share