+AC_DEFUN([ENSC_SYSCALL_ALTERNATIVE],
+[
+ AC_MSG_CHECKING([whether to use alternative _syscallX macros])
+ AC_ARG_ENABLE([alternative-syscalls],
+ [AC_HELP_STRING([--disable-alternative-syscalls],
+ [do not use the alternative _syscallX macros
+ provided by Herbert Poetzl (default: use them)])],
+ [case $enableval in
+ (yes|no) ensc_use_alternative_syscall_macros=$enableval;;
+ (*) AC_MSG_ERROR(['$enableval' is not a valid value for '--disable-alternative-syscalls']);;
+ esac],
+ [ensc_use_alternative_syscall_macros=yes])
+
+ case $ensc_use_alternative_syscall_macros in
+ (yes) AC_DEFINE(ENSC_USE_ALTERNATIVE_SYSCALL_MACROS, 1, [Use alternative _syscallX macros]);;
+ esac
+
+ AC_MSG_RESULT([$ensc_use_alternative_syscall_macros])
+])
+