On 05/13/2010 11:27 AM, Bart Van Assche wrote: > Hello Jan, > > Is there a particular reason why you have used AC_CHECK_DECLS() instead > of AC_CHECK_FUNC() ? Even if AC_CHECK_DECLS() finds the specified > declaration, linking can still fail. AC_CHECK_FUNC() verifies whether > linking succeeds.
The linking is checked later in config_os_libs. But these checks are run after config_modules_agent inspects agent/mibgroup/hardware/sensors.h, so if I want to know in agent/mibgroup/hardware/sensors.h which implementation to use (lmsensors_v2.c or lmsensors_v3.c), I've added quick check earlier, e.g. in config_modules_lib. Other option would be check for value of SENSORS_API_VERSION, I just find AC_CHECK_DECLS easier. Jan ------------------------------------------------------------------------------ _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
