1 dnl $Heimdal: broken2.m4 14181 2004-08-31 12:53:36Z joda $
4 dnl AC_BROKEN but with more arguments
6 dnl AC_BROKEN2(func, includes, arguments)
8 [AC_MSG_CHECKING([for $1])
9 AC_CACHE_VAL(ac_cv_func_[]$1,
10 [AC_LINK_IFELSE([AC_LANG_PROGRAM([[$2]],[[
11 /* The GNU C library defines this for functions which it implements
12 to always fail with ENOSYS. Some functions are actually named
13 something starting with __ and the normal name is an alias. */
14 #if defined (__stub_$1) || defined (__stub___$1)
19 ]])], [eval "ac_cv_func_[]$1=yes"], [eval "ac_cv_func_[]$1=no"])])
20 if eval "test \"\${ac_cv_func_[]$1}\" = yes"; then
21 AC_DEFINE_UNQUOTED(AS_TR_CPP(HAVE_[]$1), 1, define)