PageRenderTime 9ms CodeModel.GetById 7ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 0ms

/crypto/heimdal/cf/broken2.m4

https://bitbucket.org/freebsd/freebsd-head/
m4 | 25 lines | 21 code | 1 blank | 3 comment | 0 complexity | c954f77a23b7059d80f35aef5b160717 MD5 | raw file
 1dnl $Id: broken2.m4 14181 2004-08-31 12:53:36Z joda $
 2dnl
 3dnl AC_BROKEN but with more arguments
 4
 5dnl AC_BROKEN2(func, includes, arguments)
 6AC_DEFUN([AC_BROKEN2],
 7[AC_MSG_CHECKING([for $1])
 8AC_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)
14choke me
15#else
16$1($3);
17#endif
18]])], [eval "ac_cv_func_[]$1=yes"], [eval "ac_cv_func_[]$1=no"])])
19if eval "test \"\${ac_cv_func_[]$1}\" = yes"; then
20  AC_DEFINE_UNQUOTED(AS_TR_CPP(HAVE_[]$1), 1, define)
21  AC_MSG_RESULT(yes)
22else
23  AC_MSG_RESULT(no)
24  rk_LIBOBJ($1)
25fi])