3 dnl AC_BROKEN but with more arguments
5 dnl AC_BROKEN2(func, includes, arguments)
7 [AC_MSG_CHECKING([for $1])
8 AC_CACHE_VAL(ac_cv_func_[]$1,
9 [AC_LINK_IFELSE([AC_LANG_PROGRAM([[$2]],[[
10 /* The GNU C library defines this for functions which it implements
11 to always fail with ENOSYS. Some functions are actually named
12 something starting with __ and the normal name is an alias. */
13 #if defined (__stub_$1) || defined (__stub___$1)
18 ]])], [eval "ac_cv_func_[]$1=yes"], [eval "ac_cv_func_[]$1=no"])])
19 if eval "test \"\${ac_cv_func_[]$1}\" = yes"; then
20 AC_DEFINE_UNQUOTED(AS_TR_CPP(HAVE_[]$1), 1, define)