AC_INCLUDEDIR
+AC_ARG_ENABLE([arm-oabi],
+ [AS_HELP_STRING([--enable-arm-oabi],
+ [enable OABI support on ARM EABI])],
+ [], [enable_arm_oabi=no])
+case "$enable_arm_oabi" in
+ yes) enable_arm_oabi=1 ;;
+ no) enable_arm_oabi=0 ;;
+ *) AC_MSG_ERROR([bad value $enable_arm_oabi for arm-oabi option]) ;;
+esac
+AC_DEFINE_UNQUOTED([ENABLE_ARM_OABI], [$enable_arm_oabi],
+ [Define to 1 if you want OABI support on ARM EABI.])
+
gl_WARN_ADD([-Wall])
gl_WARN_ADD([-Wwrite-strings])
AC_ARG_ENABLE([gcc-Werror],
AC_CHECK_TYPES([struct pt_all_user_regs, struct ia64_fpreg, struct ptrace_peeksiginfo_args],,,
[#include <sys/ptrace.h>])
-AC_CHECK_TYPES([struct user_desc],,, [#include <asm/ldt.h>])
-
AC_CHECK_MEMBERS([struct utsname.domainname],,, [#include <sys/utsname.h>])
AC_CHECK_MEMBERS([struct sigevent._sigev_un._pad,
- struct sigevent.__pad],,, [#include <signal.h>])
+ struct sigevent.__pad,
+ siginfo_t.si_syscall],,, [#include <signal.h>])
AC_CHECK_TYPES([struct flock64],,, [#include <fcntl.h>])
AC_CHECK_SIZEOF([long])
AC_CHECK_SIZEOF([long long])
+AC_CHECK_SIZEOF([off_t],,[#include <sys/types.h>])
AC_CHECK_SIZEOF([rlim_t],,[#include <sys/resource.h>])
AC_CACHE_CHECK([for SA_RESTORER], [st_cv_sa_restorer],
[SA_RESTORER defined in <asm/signal.h>])
fi
+AC_CACHE_CHECK([for __builtin_popcount], [st_cv_have___builtin_popcount],
+ [AC_LINK_IFELSE([AC_LANG_PROGRAM([], [__builtin_popcount(0)])],
+ [st_cv_have___builtin_popcount=yes],
+ [st_cv_have___builtin_popcount=no])])
+if test "x$st_cv_have___builtin_popcount" = xyes; then
+ AC_DEFINE([HAVE___BUILTIN_POPCOUNT], [1],
+ [Define to 1 if the system provides __builtin_popcount function])
+fi
+
AC_PATH_PROG([PERL], [perl])
AC_CONFIG_FILES([Makefile tests/Makefile])