dnl dnl $Id: check-kernel.m4,v 1.1 2000/09/11 14:40:46 art Exp $ dnl dnl there are two different heuristics for doing the kernel tests dnl a) running nm and greping the output dnl b) trying linking against the kernel dnl AC_CHECK_KERNEL(name, cv, magic, [includes]) AC_DEFUN(AC_CHECK_KERNEL, [AC_MSG_CHECKING([for $1 in kernel]) AC_CACHE_VAL($2, [ if test "$target_os" = "macos10.0"; then if nm $KERNEL | egrep "\\<_?$1\\>" >/dev/null 2>&1; then eval "$2=yes" else eval "$2=no" fi else cat > conftest.$ac_ext <&AC_FD_CC cat conftest.$ac_ext >&AC_FD_CC fi CFLAGS="$save_CFLAGS" rm -f conftest* fi]) changequote(, )dnl eval "ac_tr_var=HAVE_KERNEL_`echo $1 | tr '[a-z]' '[A-Z]'`" changequote([, ])dnl AC_MSG_RESULT(`eval echo \\${$2}`) if test `eval echo \\${$2}` = yes; then AC_DEFINE_UNQUOTED($ac_tr_var, 1) fi ]) dnl define([foo], [[HAVE_KERNEL_]translit($1, [a-z], [A-Z])]) dnl : << END dnl @@@syms="$syms foo"@@@ dnl END dnl undefine([foo])