group together AC_CHECK_DECLS for functions in stdlib.h