2002-08-30 21:23:27 +00:00
|
|
|
dnl $Id: broken2.m4,v 1.4 2002/05/19 22:16:46 joda Exp $
|
2001-02-13 16:46:19 +00:00
|
|
|
dnl
|
|
|
|
dnl AC_BROKEN but with more arguments
|
|
|
|
|
|
|
|
dnl AC_BROKEN2(func, includes, arguments)
|
2002-08-30 21:23:27 +00:00
|
|
|
AC_DEFUN([AC_BROKEN2],
|
|
|
|
[AC_MSG_CHECKING([for $1])
|
|
|
|
AC_CACHE_VAL(ac_cv_func_[]$1,
|
2001-02-13 16:46:19 +00:00
|
|
|
[AC_TRY_LINK([$2],
|
|
|
|
[
|
|
|
|
/* The GNU C library defines this for functions which it implements
|
|
|
|
to always fail with ENOSYS. Some functions are actually named
|
|
|
|
something starting with __ and the normal name is an alias. */
|
|
|
|
#if defined (__stub_$1) || defined (__stub___$1)
|
|
|
|
choke me
|
|
|
|
#else
|
2002-08-30 21:23:27 +00:00
|
|
|
$1($3)
|
2001-02-13 16:46:19 +00:00
|
|
|
#endif
|
2002-08-30 21:23:27 +00:00
|
|
|
], [eval "ac_cv_func_[]$1=yes"], [eval "ac_cv_func_[]$1=no"])])
|
|
|
|
if eval "test \"\${ac_cv_func_[]$1}\" = yes"; then
|
|
|
|
AC_DEFINE_UNQUOTED(AS_TR_CPP(HAVE_[]$1), 1, define)
|
2001-02-13 16:46:19 +00:00
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
2002-08-30 21:23:27 +00:00
|
|
|
rk_LIBOBJ($1)
|
|
|
|
fi])
|