1dnl Functions for testing 2dnl 3dnl Version: 20200128 4 5dnl Function to detect if tests dependencies are available 6AC_DEFUN([AX_TESTS_CHECK_LOCAL], 7 [AC_CHECK_HEADERS([dlfcn.h]) 8 9 AC_CHECK_FUNCS([fmemopen getopt mkstemp setenv tzset unlink]) 10 11 AC_CHECK_LIB( 12 dl, 13 dlsym) 14 15 AS_IF( 16 [test "x$lt_cv_prog_gnu_ld" = xyes && test "x$ac_cv_lib_dl_dlsym" = xyes], 17 [AC_DEFINE( 18 [HAVE_GNU_DL_DLSYM], 19 [1], 20 [Define to 1 if dlsym function is available in GNU dl.]) 21 ]) 22]) 23 24