X-Git-Url: https://granicus.if.org/sourcecode?a=blobdiff_plain;f=configure.ac;h=09691738aefe3cd80fe51b4451c8e96b8311245b;hb=7845a42b39e59e904d01e75e21f7bc7eb6462560;hp=75eafc8ad78cbc0de23e2203c38ca3f45d5d51d9;hpb=d354130b3ac060051b55cda46c45ab5f5574548d;p=strace diff --git a/configure.ac b/configure.ac index 75eafc8a..09691738 100644 --- a/configure.ac +++ b/configure.ac @@ -150,6 +150,18 @@ AM_CONDITIONAL([X32], [test x$arch = xx32]) 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], @@ -251,12 +263,11 @@ AC_CHECK_TYPES([struct __old_kernel_stat],,, [#include ]) AC_CHECK_TYPES([struct pt_all_user_regs, struct ia64_fpreg, struct ptrace_peeksiginfo_args],,, [#include ]) -AC_CHECK_TYPES([struct user_desc],,, [#include ]) - AC_CHECK_MEMBERS([struct utsname.domainname],,, [#include ]) AC_CHECK_MEMBERS([struct sigevent._sigev_un._pad, - struct sigevent.__pad],,, [#include ]) + struct sigevent.__pad, + siginfo_t.si_syscall],,, [#include ]) AC_CHECK_TYPES([struct flock64],,, [#include ]) @@ -297,6 +308,7 @@ AC_CACHE_CHECK([for BLKGETSIZE64], [ac_cv_have_blkgetsize64], AC_CHECK_SIZEOF([long]) AC_CHECK_SIZEOF([long long]) +AC_CHECK_SIZEOF([off_t],,[#include ]) AC_CHECK_SIZEOF([rlim_t],,[#include ]) AC_CACHE_CHECK([for SA_RESTORER], [st_cv_sa_restorer], @@ -309,6 +321,15 @@ if test "x$st_cv_sa_restorer" != xno; then [SA_RESTORER defined in ]) 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])