Roland McGrath | 6d2b349 | 2002-12-30 00:51:30 +0000 | [diff] [blame] | 1 | dnl Process this file with autoconf to create configure. Use autoreconf. |
| 2 | AC_PREREQ(2.57) |
Dmitry V. Levin | dce7593 | 2013-04-30 23:52:12 +0000 | [diff] [blame] | 3 | AC_INIT([strace], |
| 4 | m4_esyscmd([./git-version-gen .tarball-version]), |
| 5 | [strace-devel@lists.sourceforge.net]) |
Roland McGrath | 6d2b349 | 2002-12-30 00:51:30 +0000 | [diff] [blame] | 6 | AC_CONFIG_SRCDIR([strace.c]) |
Roland McGrath | ffda2d3 | 2009-10-11 16:25:29 -0700 | [diff] [blame] | 7 | AC_CONFIG_AUX_DIR([.]) |
Mike Frysinger | bb3a0f7 | 2013-04-30 22:41:11 -0400 | [diff] [blame] | 8 | AC_CONFIG_HEADERS([config.h]) |
Dmitry V. Levin | cf3ecbd | 2015-08-26 22:50:58 +0000 | [diff] [blame] | 9 | AM_INIT_AUTOMAKE([foreign nostdinc dist-xz no-dist-gzip silent-rules parallel-tests]) |
Roland McGrath | 6d2b349 | 2002-12-30 00:51:30 +0000 | [diff] [blame] | 10 | AM_MAINTAINER_MODE |
| 11 | AC_CANONICAL_HOST |
| 12 | |
H.J. Lu | 35be581 | 2012-04-16 13:00:01 +0200 | [diff] [blame] | 13 | AC_PROG_CC |
Mike Frysinger | 58c7fe9 | 2015-02-26 22:22:36 -0500 | [diff] [blame] | 14 | AX_PROG_CC_FOR_BUILD |
H.J. Lu | 35be581 | 2012-04-16 13:00:01 +0200 | [diff] [blame] | 15 | AC_USE_SYSTEM_EXTENSIONS |
Elvira Khabirova | 0929422 | 2015-08-04 01:47:02 +0300 | [diff] [blame] | 16 | AC_PROG_RANLIB |
H.J. Lu | 35be581 | 2012-04-16 13:00:01 +0200 | [diff] [blame] | 17 | |
Roland McGrath | 6d2b349 | 2002-12-30 00:51:30 +0000 | [diff] [blame] | 18 | AC_MSG_CHECKING([for supported architecture]) |
| 19 | case "$host_cpu" in |
Dmitry V. Levin | 87ea1f4 | 2008-11-10 22:21:41 +0000 | [diff] [blame] | 20 | bfin) |
| 21 | arch=bfin |
| 22 | AC_DEFINE([BFIN], 1, [Define for the Blackfin architecture.]) |
| 23 | ;; |
Roland McGrath | 6d2b349 | 2002-12-30 00:51:30 +0000 | [diff] [blame] | 24 | i[[3456]]86|pentium) |
| 25 | arch=i386 |
| 26 | AC_DEFINE([I386], 1, [Define for the i386 architecture.]) |
| 27 | ;; |
| 28 | ia64) |
| 29 | arch=ia64 |
| 30 | AC_DEFINE([IA64], 1, [Define for the IA64 architecture.]) |
| 31 | ;; |
| 32 | m68k) |
| 33 | arch=m68k |
| 34 | AC_DEFINE([M68K], 1, [Define for the m68k architecture.]) |
| 35 | ;; |
Roland McGrath | 6d1a65c | 2004-07-12 07:44:08 +0000 | [diff] [blame] | 36 | sparc64*) |
| 37 | arch=sparc64 |
| 38 | AC_DEFINE([SPARC64], 1, [Define for the SPARC64 architecture.]) |
| 39 | ;; |
Roland McGrath | 6d2b349 | 2002-12-30 00:51:30 +0000 | [diff] [blame] | 40 | sparc*) |
| 41 | arch=sparc |
| 42 | AC_DEFINE([SPARC], 1, [Define for the SPARC architecture.]) |
| 43 | ;; |
James Hogan | 5f999a8 | 2013-02-22 14:44:10 +0000 | [diff] [blame] | 44 | metag*) |
| 45 | arch=metag |
| 46 | AC_DEFINE([METAG], 1, [Define for the Meta architecture.]) |
| 47 | ;; |
Roland McGrath | 6d2b349 | 2002-12-30 00:51:30 +0000 | [diff] [blame] | 48 | mips*) |
| 49 | arch=mips |
| 50 | AC_DEFINE([MIPS], 1, [Define for the MIPS architecture.]) |
| 51 | ;; |
| 52 | alpha*) |
| 53 | arch=alpha |
| 54 | AC_DEFINE([ALPHA], 1, [Define for the Alpha architecture.]) |
| 55 | ;; |
Roland McGrath | eb28535 | 2003-01-14 09:59:00 +0000 | [diff] [blame] | 56 | powerpc*) |
Roland McGrath | 6d2b349 | 2002-12-30 00:51:30 +0000 | [diff] [blame] | 57 | AC_DEFINE([POWERPC], 1, [Define for the PowerPC architecture.]) |
Anton Blanchard | 9afc2ee | 2013-07-11 12:03:57 +1000 | [diff] [blame] | 58 | AC_TRY_COMPILE( |
| 59 | [#ifndef __LP64__ |
| 60 | # error 32 bit |
Dmitry V. Levin | af3ab5b | 2015-01-21 17:04:31 +0000 | [diff] [blame] | 61 | #endif], [], arch=powerpc64, arch=powerpc) |
| 62 | if test "$arch" = "powerpc64"; then |
Andreas Schwab | d69fa49 | 2010-07-12 21:39:57 +0200 | [diff] [blame] | 63 | AC_DEFINE([POWERPC64], 1, [Define for the PowerPC64 architecture.]) |
| 64 | fi |
Roland McGrath | 6d2b349 | 2002-12-30 00:51:30 +0000 | [diff] [blame] | 65 | ;; |
| 66 | arm*) |
| 67 | arch=arm |
| 68 | AC_DEFINE([ARM], 1, [Define for the ARM architecture.]) |
| 69 | ;; |
Steve McIntyre | d8d3bd3 | 2012-10-24 17:58:16 +0100 | [diff] [blame] | 70 | aarch64*) |
| 71 | arch=aarch64 |
| 72 | AC_DEFINE([AARCH64], 1, [Define for the AArch64 architecture.]) |
| 73 | ;; |
Denys Vlasenko | 5ae2b7c | 2009-02-27 20:32:52 +0000 | [diff] [blame] | 74 | avr32*) |
| 75 | arch=avr32 |
| 76 | AC_DEFINE([AVR32], 1, [Define for the AVR32 architecture.]) |
| 77 | ;; |
Vineet Gupta | 7daacbb | 2013-08-16 12:47:06 +0530 | [diff] [blame] | 78 | arc*) |
| 79 | arch=arc |
| 80 | AC_DEFINE([ARC], 1, [Define for the ARC architecture.]) |
| 81 | ;; |
Roland McGrath | 6d2b349 | 2002-12-30 00:51:30 +0000 | [diff] [blame] | 82 | s390) |
| 83 | arch=s390 |
| 84 | AC_DEFINE([S390], 1, [Define for the S390 architecture.]) |
| 85 | ;; |
| 86 | s390x) |
| 87 | arch=s390x |
| 88 | AC_DEFINE([S390X], 1, [Define for the S390x architecture.]) |
| 89 | ;; |
| 90 | hppa*|parisc*) |
| 91 | arch=hppa |
| 92 | AC_DEFINE([HPPA], 1, [Define for the HPPA architecture.]) |
| 93 | ;; |
Roland McGrath | 67828ca | 2007-11-01 21:32:49 +0000 | [diff] [blame] | 94 | sh64*) |
Roland McGrath | f5a4777 | 2003-06-26 22:40:42 +0000 | [diff] [blame] | 95 | arch=sh64 |
| 96 | AC_DEFINE([SH64], 1, [Define for the SH64 architecture.]) |
Roland McGrath | e1e584b | 2003-06-02 19:18:58 +0000 | [diff] [blame] | 97 | ;; |
Roland McGrath | 67828ca | 2007-11-01 21:32:49 +0000 | [diff] [blame] | 98 | sh*) |
| 99 | arch=sh |
| 100 | AC_DEFINE([SH], 1, [Define for the SH architecture.]) |
| 101 | ;; |
Roland McGrath | 6d2b349 | 2002-12-30 00:51:30 +0000 | [diff] [blame] | 102 | x86?64*) |
H.J. Lu | 35be581 | 2012-04-16 13:00:01 +0200 | [diff] [blame] | 103 | AC_TRY_COMPILE( |
| 104 | [#ifndef __ILP32__ |
| 105 | # error not x32 |
| 106 | #endif], [], arch=x32, arch=x86_64) |
| 107 | if test "$arch" = "x86_64"; then |
| 108 | AC_DEFINE([X86_64], 1, [Define for the 64bit AMD x86-64 architecture.]) |
| 109 | else |
| 110 | AC_DEFINE([X32], 1, [Define for the 32bit AMD x86-64 architecture.]) |
| 111 | fi |
Roland McGrath | 6d2b349 | 2002-12-30 00:51:30 +0000 | [diff] [blame] | 112 | ;; |
Denys Vlasenko | ea0e6e8 | 2009-02-25 17:08:40 +0000 | [diff] [blame] | 113 | cris|crisv10) |
| 114 | arch=crisv10 |
| 115 | AC_DEFINE([CRISV10], 1, [Define for the CRISv10 architecture.]) |
| 116 | ;; |
| 117 | crisv32) |
| 118 | arch=crisv32 |
| 119 | AC_DEFINE([CRISV32], 1, [Define for the CRISv32 architecture.]) |
| 120 | ;; |
Chris Metcalf | c8c6698 | 2009-12-28 10:00:15 -0500 | [diff] [blame] | 121 | tile*) |
| 122 | arch=tile |
| 123 | AC_DEFINE([TILE], 1, [Define for the Tile architecture]) |
| 124 | ;; |
Edgar E. Iglesias | 939caba | 2010-07-06 14:21:07 +0200 | [diff] [blame] | 125 | microblaze*) |
| 126 | arch=microblaze |
| 127 | AC_DEFINE([MICROBLAZE], 1, [Define for the MicroBlaze architecture.]) |
| 128 | ;; |
Ezequiel Garcia | bd8dd77 | 2015-04-18 17:33:27 -0300 | [diff] [blame] | 129 | nios2*) |
| 130 | arch=nios2 |
| 131 | AC_DEFINE([NIOS2], 1, [Define for the Nios-II architecture.]) |
| 132 | ;; |
| 133 | |
Christian Svensson | 492f81f | 2013-02-14 13:26:27 +0100 | [diff] [blame] | 134 | or1k*) |
| 135 | arch=or1k |
| 136 | AC_DEFINE([OR1K], 1, [Define for the OpenRISC 1000 architecture.]) |
| 137 | ;; |
| 138 | |
Chris Zankel | 8f636ed | 2013-03-25 10:22:07 -0700 | [diff] [blame] | 139 | xtensa*) |
| 140 | arch=xtensa |
| 141 | AC_DEFINE([XTENSA], 1, [Define for the Xtensa architecture]) |
| 142 | ;; |
| 143 | |
Roland McGrath | 6d2b349 | 2002-12-30 00:51:30 +0000 | [diff] [blame] | 144 | *) |
| 145 | AC_MSG_RESULT([NO!]) |
| 146 | AC_MSG_ERROR([architecture $host_cpu is not supported by strace]) |
| 147 | ;; |
| 148 | esac |
| 149 | AC_MSG_RESULT($arch) |
| 150 | |
Roland McGrath | 6d2b349 | 2002-12-30 00:51:30 +0000 | [diff] [blame] | 151 | AC_SUBST(arch) |
Roland McGrath | 6d2b349 | 2002-12-30 00:51:30 +0000 | [diff] [blame] | 152 | |
Dmitry V. Levin | 047365e | 2015-02-15 01:08:48 +0000 | [diff] [blame] | 153 | if test "$arch" = mips; then |
Dmitry V. Levin | 6684b68 | 2015-08-18 22:53:22 +0000 | [diff] [blame] | 154 | AC_CACHE_CHECK([for _MIPS_SIM], [st_cv__MIPS_SIM], |
| 155 | [AC_COMPUTE_INT([st_cv__MIPS_SIM], [_MIPS_SIM], |
| 156 | [#include <sgidefs.h>], |
| 157 | [AC_MSG_ERROR([_MIPS_SIM cannot be determined])])]) |
| 158 | |
| 159 | AC_CACHE_CHECK([for MIPS ABI], [st_cv_mips_abi], |
Dmitry V. Levin | 047365e | 2015-02-15 01:08:48 +0000 | [diff] [blame] | 160 | [AC_COMPILE_IFELSE( |
| 161 | [AC_LANG_PROGRAM([[#include <sgidefs.h>]], |
| 162 | [[int i[_MIPS_SIM == _MIPS_SIM_ABI32 ? 1 : - 1];]])], |
Dmitry V. Levin | 6684b68 | 2015-08-18 22:53:22 +0000 | [diff] [blame] | 163 | [st_cv_mips_abi=o32], |
Dmitry V. Levin | 047365e | 2015-02-15 01:08:48 +0000 | [diff] [blame] | 164 | [AC_COMPILE_IFELSE( |
| 165 | [AC_LANG_PROGRAM([[#include <sgidefs.h>]], |
| 166 | [[int i[_MIPS_SIM == _MIPS_SIM_NABI32 ? 1 : - 1];]])], |
Dmitry V. Levin | 6684b68 | 2015-08-18 22:53:22 +0000 | [diff] [blame] | 167 | [st_cv_mips_abi=n32], |
Dmitry V. Levin | 047365e | 2015-02-15 01:08:48 +0000 | [diff] [blame] | 168 | [AC_COMPILE_IFELSE( |
| 169 | [AC_LANG_PROGRAM([[#include <sgidefs.h>]], |
| 170 | [[int i[_MIPS_SIM == _MIPS_SIM_ABI64 ? 1 : - 1];]])], |
Dmitry V. Levin | 6684b68 | 2015-08-18 22:53:22 +0000 | [diff] [blame] | 171 | [st_cv_mips_abi=n64], |
| 172 | [st_cv_mips_abi=unknown])])])]) |
| 173 | |
| 174 | case "$st_cv_mips_abi" in |
Dmitry V. Levin | 047365e | 2015-02-15 01:08:48 +0000 | [diff] [blame] | 175 | o32) AC_DEFINE([LINUX_MIPSO32], [1], [Define for _MIPS_SIM_ABI32.]);; |
| 176 | n32) AC_DEFINE([LINUX_MIPSN32], [1], [Define for _MIPS_SIM_NABI32.]);; |
| 177 | n64) AC_DEFINE([LINUX_MIPSN64], [1], [Define for _MIPS_SIM_ABI64.]);; |
| 178 | *) AC_MSG_ERROR([Unsupported _MIPS_SIM]);; |
| 179 | esac |
| 180 | fi |
| 181 | |
Dmitry V. Levin | 0160e16 | 2014-03-18 23:37:43 +0000 | [diff] [blame] | 182 | AC_ARG_ENABLE([arm-oabi], |
| 183 | [AS_HELP_STRING([--enable-arm-oabi], |
| 184 | [enable OABI support on ARM EABI])], |
| 185 | [], [enable_arm_oabi=no]) |
| 186 | case "$enable_arm_oabi" in |
| 187 | yes) enable_arm_oabi=1 ;; |
| 188 | no) enable_arm_oabi=0 ;; |
| 189 | *) AC_MSG_ERROR([bad value $enable_arm_oabi for arm-oabi option]) ;; |
| 190 | esac |
| 191 | AC_DEFINE_UNQUOTED([ENABLE_ARM_OABI], [$enable_arm_oabi], |
| 192 | [Define to 1 if you want OABI support on ARM EABI.]) |
| 193 | |
Dmitry V. Levin | 918e49b | 2010-09-09 17:41:15 +0000 | [diff] [blame] | 194 | gl_WARN_ADD([-Wall]) |
Dmitry V. Levin | 1ed5d80 | 2010-09-09 17:42:28 +0000 | [diff] [blame] | 195 | gl_WARN_ADD([-Wwrite-strings]) |
Dmitry V. Levin | 3ed5d02 | 2014-09-10 13:46:04 +0000 | [diff] [blame] | 196 | gl_WARN_ADD([-Wsign-compare]) |
Dmitry V. Levin | d376c92 | 2012-05-15 00:50:26 +0000 | [diff] [blame] | 197 | AC_ARG_ENABLE([gcc-Werror], |
| 198 | [AS_HELP_STRING([--enable-gcc-Werror], [turn on gcc's -Werror option])], |
| 199 | [case $enableval in |
| 200 | yes) gl_WARN_ADD([-Werror]) ;; |
| 201 | no) ;; |
| 202 | *) AC_MSG_ERROR([bad value $enableval for gcc-Werror option]) ;; |
| 203 | esac] |
| 204 | ) |
Dmitry V. Levin | 918e49b | 2010-09-09 17:41:15 +0000 | [diff] [blame] | 205 | AC_SUBST([WARN_CFLAGS]) |
Roland McGrath | 6d2b349 | 2002-12-30 00:51:30 +0000 | [diff] [blame] | 206 | |
| 207 | AC_PROG_CPP |
Roland McGrath | 6d2b349 | 2002-12-30 00:51:30 +0000 | [diff] [blame] | 208 | AC_PROG_INSTALL |
| 209 | AC_C_CONST |
Mike Frysinger | 6d12afd | 2010-09-12 03:39:55 -0400 | [diff] [blame] | 210 | AC_C_BIGENDIAN |
Roland McGrath | 6d2b349 | 2002-12-30 00:51:30 +0000 | [diff] [blame] | 211 | AC_HEADER_STDC |
Roland McGrath | 639658b | 2008-08-01 01:06:31 +0000 | [diff] [blame] | 212 | AC_HEADER_STDBOOL |
Roland McGrath | 6d2b349 | 2002-12-30 00:51:30 +0000 | [diff] [blame] | 213 | AC_HEADER_DIRENT |
| 214 | AC_HEADER_STAT |
Dmitry V. Levin | d8879f4 | 2012-03-25 15:12:16 +0000 | [diff] [blame] | 215 | AC_CHECK_MEMBERS(m4_normalize([ |
Dmitry V. Levin | 525eed3 | 2015-08-08 12:12:13 +0000 | [diff] [blame] | 216 | struct stat.st_atim.tv_nsec, |
Dmitry V. Levin | d8879f4 | 2012-03-25 15:12:16 +0000 | [diff] [blame] | 217 | struct stat.st_blksize, |
| 218 | struct stat.st_blocks, |
Dmitry V. Levin | 525eed3 | 2015-08-08 12:12:13 +0000 | [diff] [blame] | 219 | struct stat.st_ctim.tv_nsec, |
Dmitry V. Levin | d8879f4 | 2012-03-25 15:12:16 +0000 | [diff] [blame] | 220 | struct stat.st_flags, |
| 221 | struct stat.st_fstype, |
| 222 | struct stat.st_gen, |
Dmitry V. Levin | 525eed3 | 2015-08-08 12:12:13 +0000 | [diff] [blame] | 223 | struct stat.st_mtim.tv_nsec, |
Dmitry V. Levin | d8879f4 | 2012-03-25 15:12:16 +0000 | [diff] [blame] | 224 | struct stat.st_rdev |
| 225 | ])) |
Roland McGrath | 6d2b349 | 2002-12-30 00:51:30 +0000 | [diff] [blame] | 226 | |
| 227 | AC_TYPE_SIGNAL |
| 228 | AC_TYPE_UID_T |
| 229 | AC_TYPE_MODE_T |
| 230 | AC_TYPE_GETGROUPS |
| 231 | AC_HEADER_MAJOR |
Dmitry V. Levin | d8890b5 | 2015-02-07 15:47:24 +0000 | [diff] [blame] | 232 | AC_CHECK_TYPES([sig_atomic_t],,, [#include <signal.h>]) |
Roland McGrath | e07cd60 | 2003-02-26 20:34:02 +0000 | [diff] [blame] | 233 | AC_CHECK_MEMBERS([struct sockaddr_in6.sin6_scope_id],,, |
| 234 | [#include <sys/types.h> |
| 235 | #include <sys/socket.h> |
| 236 | #include <netinet/in.h>]) |
Roland McGrath | 6d2b349 | 2002-12-30 00:51:30 +0000 | [diff] [blame] | 237 | AC_LITTLE_ENDIAN_LONG_LONG |
Roland McGrath | 6d2b349 | 2002-12-30 00:51:30 +0000 | [diff] [blame] | 238 | |
Dmitry V. Levin | d8879f4 | 2012-03-25 15:12:16 +0000 | [diff] [blame] | 239 | AC_CHECK_FUNCS(m4_normalize([ |
Dmitry V. Levin | 1ea6473 | 2015-01-10 00:08:58 +0000 | [diff] [blame] | 240 | fanotify_mark |
Dmitry V. Levin | d354130 | 2014-02-26 00:01:00 +0000 | [diff] [blame] | 241 | fopen64 |
Dmitry V. Levin | d8879f4 | 2012-03-25 15:12:16 +0000 | [diff] [blame] | 242 | fork |
Dmitry V. Levin | d354130 | 2014-02-26 00:01:00 +0000 | [diff] [blame] | 243 | fputs_unlocked |
Dmitry V. Levin | d8879f4 | 2012-03-25 15:12:16 +0000 | [diff] [blame] | 244 | if_indextoname |
| 245 | inet_ntop |
Dmitry V. Levin | 7bee462 | 2015-06-08 14:19:46 +0000 | [diff] [blame] | 246 | inet_pton |
Dmitry V. Levin | 78ed3f3 | 2015-03-23 00:04:27 +0000 | [diff] [blame] | 247 | pipe2 |
Dmitry V. Levin | d8879f4 | 2012-03-25 15:12:16 +0000 | [diff] [blame] | 248 | prctl |
Mike Frysinger | 97ca027 | 2014-08-11 02:52:08 -0400 | [diff] [blame] | 249 | preadv |
Dmitry V. Levin | d8879f4 | 2012-03-25 15:12:16 +0000 | [diff] [blame] | 250 | process_vm_readv |
Mike Frysinger | 97ca027 | 2014-08-11 02:52:08 -0400 | [diff] [blame] | 251 | pwritev |
Masatake YAMATO | 993198d | 2014-11-07 01:23:27 +0900 | [diff] [blame] | 252 | sendmmsg |
Dmitry V. Levin | d8879f4 | 2012-03-25 15:12:16 +0000 | [diff] [blame] | 253 | sigaction |
Dmitry V. Levin | 30ac062 | 2015-08-03 09:47:25 +0000 | [diff] [blame] | 254 | signalfd |
Dmitry V. Levin | d8879f4 | 2012-03-25 15:12:16 +0000 | [diff] [blame] | 255 | stpcpy |
| 256 | strerror |
| 257 | strsignal |
Dmitry V. Levin | 78e48eb | 2015-07-15 15:34:59 +0000 | [diff] [blame] | 258 | utimensat |
Dmitry V. Levin | d8879f4 | 2012-03-25 15:12:16 +0000 | [diff] [blame] | 259 | ])) |
| 260 | AC_CHECK_HEADERS(m4_normalize([ |
| 261 | asm/cachectl.h |
| 262 | asm/sysmips.h |
Lubomir Rintel | c400a1c | 2014-10-03 11:40:28 +0200 | [diff] [blame] | 263 | bluetooth/bluetooth.h |
Dmitry V. Levin | c41808b | 2013-03-18 00:52:29 +0000 | [diff] [blame] | 264 | elf.h |
Dmitry V. Levin | d8879f4 | 2012-03-25 15:12:16 +0000 | [diff] [blame] | 265 | inttypes.h |
| 266 | ioctls.h |
Bart Van Assche | 67d0a8e | 2015-02-06 13:37:03 +0100 | [diff] [blame] | 267 | linux/bsg.h |
Dmitry V. Levin | 52572b6 | 2014-12-11 19:21:54 +0000 | [diff] [blame] | 268 | linux/falloc.h |
Dmitry V. Levin | 2af6903 | 2015-02-04 23:50:50 +0000 | [diff] [blame] | 269 | linux/filter.h |
Dmitry V. Levin | df7aa2b | 2015-01-19 17:02:16 +0000 | [diff] [blame] | 270 | linux/hiddev.h |
Mike Frysinger | 54646b8 | 2015-08-19 13:29:27 -0400 | [diff] [blame] | 271 | linux/ip_vs.h |
Mike Frysinger | ba10a42 | 2015-10-31 00:47:53 -0400 | [diff] [blame] | 272 | linux/ipc.h |
Dmitry V. Levin | df7aa2b | 2015-01-19 17:02:16 +0000 | [diff] [blame] | 273 | linux/mmtimer.h |
Mike Frysinger | ba10a42 | 2015-10-31 00:47:53 -0400 | [diff] [blame] | 274 | linux/msg.h |
Ben Noordhuis | 88eafd8 | 2013-02-04 00:04:57 +0100 | [diff] [blame] | 275 | linux/perf_event.h |
Dmitry V. Levin | 2af6903 | 2015-02-04 23:50:50 +0000 | [diff] [blame] | 276 | linux/seccomp.h |
Dmitry V. Levin | 1e88073 | 2015-02-14 01:51:03 +0000 | [diff] [blame] | 277 | linux/securebits.h |
Mike Frysinger | ba10a42 | 2015-10-31 00:47:53 -0400 | [diff] [blame] | 278 | linux/sem.h |
| 279 | linux/shm.h |
Dmitry V. Levin | d8879f4 | 2012-03-25 15:12:16 +0000 | [diff] [blame] | 280 | linux/utsname.h |
| 281 | mqueue.h |
| 282 | netinet/sctp.h |
Dmitry V. Levin | fdb896e | 2014-02-25 23:04:55 +0000 | [diff] [blame] | 283 | scsi/sg.h |
Dmitry V. Levin | d8879f4 | 2012-03-25 15:12:16 +0000 | [diff] [blame] | 284 | stropts.h |
Dmitry V. Levin | d8879f4 | 2012-03-25 15:12:16 +0000 | [diff] [blame] | 285 | sys/conf.h |
| 286 | sys/epoll.h |
Dmitry V. Levin | c8cba99 | 2015-08-01 21:08:13 +0000 | [diff] [blame] | 287 | sys/eventfd.h |
Dmitry V. Levin | 1ea6473 | 2015-01-10 00:08:58 +0000 | [diff] [blame] | 288 | sys/fanotify.h |
Dmitry V. Levin | d8879f4 | 2012-03-25 15:12:16 +0000 | [diff] [blame] | 289 | sys/ioctl.h |
Mike Frysinger | ba10a42 | 2015-10-31 00:47:53 -0400 | [diff] [blame] | 290 | sys/ipc.h |
| 291 | sys/msg.h |
Dmitry V. Levin | d8879f4 | 2012-03-25 15:12:16 +0000 | [diff] [blame] | 292 | sys/reg.h |
Mike Frysinger | ba10a42 | 2015-10-31 00:47:53 -0400 | [diff] [blame] | 293 | sys/sem.h |
| 294 | sys/shm.h |
Dmitry V. Levin | 30ac062 | 2015-08-03 09:47:25 +0000 | [diff] [blame] | 295 | sys/signalfd.h |
Dmitry V. Levin | d8879f4 | 2012-03-25 15:12:16 +0000 | [diff] [blame] | 296 | sys/vfs.h |
Masatake YAMATO | f548067 | 2014-11-22 19:03:33 +0900 | [diff] [blame] | 297 | sys/xattr.h |
Dmitry V. Levin | d8879f4 | 2012-03-25 15:12:16 +0000 | [diff] [blame] | 298 | ])) |
Mike Frysinger | ba10a42 | 2015-10-31 00:47:53 -0400 | [diff] [blame] | 299 | AC_CHECK_HEADERS([linux/mqueue.h],,, [#include <linux/types.h>]) |
Roland McGrath | 6d2b349 | 2002-12-30 00:51:30 +0000 | [diff] [blame] | 300 | AC_CHECK_HEADERS([linux/icmp.h linux/in6.h linux/netlink.h linux/if_packet.h], |
Roland McGrath | e7fa305 | 2007-07-05 20:50:34 +0000 | [diff] [blame] | 301 | [], [], [#include <stddef.h> |
Andreas Schwab | 360986b | 2010-03-08 16:07:52 +0100 | [diff] [blame] | 302 | #include <sys/socket.h> |
| 303 | #include <asm/types.h>]) |
Roland McGrath | 41074c0 | 2002-12-30 10:23:01 +0000 | [diff] [blame] | 304 | AC_CHECK_HEADERS([asm/sigcontext.h], [], [], [#include <signal.h>]) |
Dmitry V. Levin | e2de3bd | 2013-11-12 15:27:38 +0000 | [diff] [blame] | 305 | AC_CHECK_TYPES([struct sigcontext],,, [#include <signal.h>]) |
Roland McGrath | a7a0d38 | 2003-01-10 19:55:30 +0000 | [diff] [blame] | 306 | AC_CHECK_HEADERS([netinet/tcp.h netinet/udp.h],,, [#include <netinet/in.h>]) |
Mike Frysinger | 54646b8 | 2015-08-19 13:29:27 -0400 | [diff] [blame] | 307 | AC_CHECK_HEADERS(m4_normalize([ |
| 308 | linux/netfilter_arp/arp_tables.h |
| 309 | linux/netfilter_bridge/ebtables.h |
| 310 | linux/netfilter_ipv4/ip_tables.h |
| 311 | linux/netfilter_ipv6/ip6_tables.h |
| 312 | ]), [], [], [#include <netinet/in.h> |
| 313 | #include <net/if.h>]) |
Roland McGrath | 6d2b349 | 2002-12-30 00:51:30 +0000 | [diff] [blame] | 314 | |
Masatake YAMATO | caf6a43 | 2014-11-07 01:23:25 +0900 | [diff] [blame] | 315 | AC_CHECK_TYPES([struct mmsghdr],,, [#include <sys/socket.h>]) |
Roland McGrath | 6d2b349 | 2002-12-30 00:51:30 +0000 | [diff] [blame] | 316 | AC_CHECK_MEMBERS([struct msghdr.msg_control],,, [#include <sys/socket.h>]) |
Roland McGrath | 6d2b349 | 2002-12-30 00:51:30 +0000 | [diff] [blame] | 317 | |
Dmitry V. Levin | 525eed3 | 2015-08-08 12:12:13 +0000 | [diff] [blame] | 318 | AC_CHECK_MEMBERS(m4_normalize([ |
| 319 | struct stat.st_atime_nsec, |
| 320 | struct stat.st_ctime_nsec, |
| 321 | struct stat.st_mtime_nsec |
| 322 | ]),,, [#include <sys/types.h> |
| 323 | #include <asm/stat.h>]) |
| 324 | |
Dmitry V. Levin | 7b9bc44 | 2015-01-08 04:06:06 +0000 | [diff] [blame] | 325 | AC_CHECK_TYPES([struct stat64],,, [#include <sys/types.h> |
| 326 | #include <asm/stat.h>]) |
Roland McGrath | 79db8af | 2003-06-27 21:20:09 +0000 | [diff] [blame] | 327 | AC_CHECK_TYPES([struct __old_kernel_stat],,, [#include <asm/stat.h>]) |
Dmitry V. Levin | 9e6a7bf | 2015-01-08 04:12:29 +0000 | [diff] [blame] | 328 | AC_CHECK_TYPES([struct statfs64],,, [#include <sys/vfs.h>]) |
Roland McGrath | 79db8af | 2003-06-27 21:20:09 +0000 | [diff] [blame] | 329 | |
Ali Polatel | 0b4060f | 2013-09-24 20:04:32 +0300 | [diff] [blame] | 330 | AC_CHECK_TYPES([struct pt_all_user_regs, struct ia64_fpreg, struct ptrace_peeksiginfo_args],,, |
Roland McGrath | ce9f074 | 2004-03-01 21:29:22 +0000 | [diff] [blame] | 331 | [#include <sys/ptrace.h>]) |
| 332 | |
Dmitry V. Levin | ea22e97 | 2012-05-01 20:56:32 +0000 | [diff] [blame] | 333 | AC_CHECK_MEMBERS([struct utsname.domainname],,, [#include <sys/utsname.h>]) |
| 334 | |
Dmitry V. Levin | ae5aa47 | 2013-11-11 23:54:30 +0000 | [diff] [blame] | 335 | AC_CHECK_MEMBERS([struct sigevent._sigev_un._pad, |
Dmitry V. Levin | bc091e3 | 2014-03-11 22:18:40 +0000 | [diff] [blame] | 336 | struct sigevent.__pad, |
Dmitry V. Levin | 36ab3d5 | 2015-01-13 09:24:04 +0300 | [diff] [blame] | 337 | siginfo_t.si_syscall, |
| 338 | siginfo_t.si_timerid, |
| 339 | siginfo_t.si_overrun],,, [#include <signal.h>]) |
Dmitry V. Levin | ae5aa47 | 2013-11-11 23:54:30 +0000 | [diff] [blame] | 340 | |
Dmitry V. Levin | 594eb8f | 2013-11-12 21:49:03 +0000 | [diff] [blame] | 341 | AC_CHECK_TYPES([struct flock64],,, [#include <fcntl.h>]) |
| 342 | |
Dmitry V. Levin | 0dbb7ac | 2015-09-16 23:15:55 +0000 | [diff] [blame] | 343 | AC_CHECK_MEMBERS([struct timex.tai],,, [#include <sys/timex.h>]) |
| 344 | |
Dmitry V. Levin | 19dadf9 | 2015-02-22 02:50:33 +0300 | [diff] [blame] | 345 | AC_CHECK_HEADERS([linux/input.h], [ |
| 346 | AC_CHECK_MEMBERS([struct input_absinfo.resolution],,, [#include <linux/input.h>]) |
| 347 | ]) |
| 348 | |
Dmitry V. Levin | 4e3ded3 | 2015-07-29 16:27:16 +0000 | [diff] [blame] | 349 | AC_CHECK_HEADERS([linux/bpf.h], [ |
| 350 | AC_CACHE_CHECK([whether union bpf_attr.log_buf initialization works], |
| 351 | [st_cv_have_union_bpf_attr_log_buf], |
| 352 | [AC_COMPILE_IFELSE( |
| 353 | [AC_LANG_PROGRAM([[#include <linux/bpf.h>]], |
| 354 | [[union bpf_attr a = { .log_buf = 0 };]])], |
| 355 | [st_cv_have_union_bpf_attr_log_buf=yes], |
| 356 | [st_cv_have_union_bpf_attr_log_buf=no])]) |
| 357 | if test $st_cv_have_union_bpf_attr_log_buf = yes; then |
| 358 | AC_DEFINE(HAVE_UNION_BPF_ATTR_LOG_BUF, [1], |
| 359 | [Define to 1 if union bpf_attr.log_buf initialization works]) |
| 360 | fi |
| 361 | ]) |
| 362 | |
Roland McGrath | 6d2b349 | 2002-12-30 00:51:30 +0000 | [diff] [blame] | 363 | AC_CHECK_DECLS([sys_errlist]) |
Dmitry V. Levin | d8879f4 | 2012-03-25 15:12:16 +0000 | [diff] [blame] | 364 | AC_CHECK_DECLS(m4_normalize([ |
Dmitry V. Levin | 6974bd4 | 2013-11-12 21:20:50 +0000 | [diff] [blame] | 365 | PTRACE_PEEKUSER, |
Dmitry V. Levin | fadf379 | 2015-02-13 00:26:38 +0000 | [diff] [blame] | 366 | PTRACE_POKEUSER |
Dmitry V. Levin | d8879f4 | 2012-03-25 15:12:16 +0000 | [diff] [blame] | 367 | ]),,, [#include <sys/ptrace.h>]) |
Roland McGrath | 6d2b349 | 2002-12-30 00:51:30 +0000 | [diff] [blame] | 368 | |
Dmitry V. Levin | cf050db | 2012-05-02 10:21:49 +0000 | [diff] [blame] | 369 | AC_CHECK_DECLS(m4_normalize([ |
Dmitry V. Levin | d8ad1dd | 2014-04-26 15:22:08 +0000 | [diff] [blame] | 370 | P_PID, |
| 371 | P_PPID, |
| 372 | P_PGID, |
| 373 | P_SID, |
| 374 | P_CID, |
| 375 | P_UID, |
| 376 | P_GID, |
| 377 | P_ALL, |
| 378 | P_LWPID |
| 379 | ]),,, [#include <sys/wait.h>]) |
| 380 | |
| 381 | AC_CHECK_DECLS(m4_normalize([ |
Dmitry V. Levin | baf60d9 | 2014-04-26 14:12:33 +0000 | [diff] [blame] | 382 | LO_FLAGS_READ_ONLY, |
Dmitry V. Levin | cf050db | 2012-05-02 10:21:49 +0000 | [diff] [blame] | 383 | LO_FLAGS_AUTOCLEAR, |
| 384 | LO_FLAGS_PARTSCAN |
| 385 | ]),,, [#include <linux/loop.h>]) |
| 386 | |
Dmitry V. Levin | 6dbbe07 | 2014-04-26 13:54:12 +0000 | [diff] [blame] | 387 | AC_CHECK_DECLS(m4_normalize([ |
| 388 | CTL_KERN, |
| 389 | CTL_VM, |
| 390 | CTL_NET, |
| 391 | CTL_PROC, |
| 392 | CTL_FS, |
| 393 | CTL_DEBUG, |
| 394 | CTL_DEV, |
| 395 | CTL_BUS, |
| 396 | CTL_ABI, |
| 397 | CTL_CPU, |
| 398 | CTL_ARLAN, |
| 399 | CTL_S390DBF, |
| 400 | CTL_SUNRPC, |
| 401 | CTL_PM, |
| 402 | CTL_FRV, |
| 403 | KERN_OSTYPE, |
| 404 | KERN_OSRELEASE, |
| 405 | KERN_OSREV, |
| 406 | KERN_VERSION, |
| 407 | KERN_SECUREMASK, |
| 408 | KERN_PROF, |
| 409 | KERN_NODENAME, |
| 410 | KERN_DOMAINNAME, |
| 411 | KERN_PANIC, |
| 412 | KERN_REALROOTDEV, |
| 413 | KERN_SPARC_REBOOT, |
| 414 | KERN_CTLALTDEL, |
| 415 | KERN_PRINTK, |
| 416 | KERN_NAMETRANS, |
| 417 | KERN_PPC_HTABRECLAIM, |
| 418 | KERN_PPC_ZEROPAGED, |
| 419 | KERN_PPC_POWERSAVE_NAP, |
| 420 | KERN_MODPROBE, |
| 421 | KERN_SG_BIG_BUFF, |
| 422 | KERN_ACCT, |
| 423 | KERN_PPC_L2CR, |
| 424 | KERN_RTSIGNR, |
| 425 | KERN_RTSIGMAX, |
| 426 | KERN_SHMMAX, |
| 427 | KERN_MSGMAX, |
| 428 | KERN_MSGMNB, |
| 429 | KERN_MSGPOOL, |
| 430 | KERN_SYSRQ, |
| 431 | KERN_MAX_THREADS, |
| 432 | KERN_RANDOM, |
| 433 | KERN_SHMALL, |
| 434 | KERN_MSGMNI, |
| 435 | KERN_SEM, |
| 436 | KERN_SPARC_STOP_A, |
| 437 | KERN_SHMMNI, |
| 438 | KERN_OVERFLOWUID, |
| 439 | KERN_OVERFLOWGID, |
| 440 | KERN_SHMPATH, |
| 441 | KERN_HOTPLUG, |
| 442 | KERN_IEEE_EMULATION_WARNINGS, |
| 443 | KERN_S390_USER_DEBUG_LOGGING, |
| 444 | KERN_CORE_USES_PID, |
| 445 | KERN_TAINTED, |
| 446 | KERN_CADPID, |
| 447 | KERN_PIDMAX, |
| 448 | KERN_CORE_PATTERN, |
| 449 | KERN_PANIC_ON_OOPS, |
| 450 | KERN_HPPA_PWRSW, |
| 451 | KERN_HPPA_UNALIGNED, |
| 452 | KERN_PRINTK_RATELIMIT, |
| 453 | KERN_PRINTK_RATELIMIT_BURST, |
| 454 | KERN_PTY, |
| 455 | KERN_NGROUPS_MAX, |
| 456 | KERN_SPARC_SCONS_PWROFF, |
| 457 | KERN_HZ_TIMER, |
| 458 | KERN_UNKNOWN_NMI_PANIC, |
| 459 | KERN_BOOTLOADER_TYPE, |
| 460 | KERN_RANDOMIZE, |
| 461 | KERN_SETUID_DUMPABLE, |
| 462 | KERN_SPIN_RETRY, |
| 463 | KERN_ACPI_VIDEO_FLAGS, |
| 464 | KERN_IA64_UNALIGNED, |
| 465 | KERN_COMPAT_LOG, |
| 466 | KERN_MAX_LOCK_DEPTH, |
| 467 | KERN_NMI_WATCHDOG, |
| 468 | KERN_PANIC_ON_NMI, |
| 469 | NET_CORE, |
| 470 | NET_ETHER, |
| 471 | NET_802, |
| 472 | NET_UNIX, |
| 473 | NET_IPV4, |
| 474 | NET_IPX, |
| 475 | NET_ATALK, |
| 476 | NET_NETROM, |
| 477 | NET_AX25, |
| 478 | NET_BRIDGE, |
| 479 | NET_ROSE, |
| 480 | NET_IPV6, |
| 481 | NET_X25, |
| 482 | NET_TR, |
| 483 | NET_DECNET, |
| 484 | NET_ECONET, |
| 485 | NET_SCTP, |
| 486 | NET_LLC, |
| 487 | NET_NETFILTER, |
| 488 | NET_DCCP, |
| 489 | NET_IRDA, |
| 490 | NET_CORE_WMEM_MAX, |
| 491 | NET_CORE_RMEM_MAX, |
| 492 | NET_CORE_WMEM_DEFAULT, |
| 493 | NET_CORE_RMEM_DEFAULT, |
| 494 | NET_CORE_DESTROY_DELAY, |
| 495 | NET_CORE_MAX_BACKLOG, |
| 496 | NET_CORE_FASTROUTE, |
| 497 | NET_CORE_MSG_COST, |
| 498 | NET_CORE_MSG_BURST, |
| 499 | NET_CORE_OPTMEM_MAX, |
| 500 | NET_CORE_HOT_LIST_LENGTH, |
| 501 | NET_CORE_DIVERT_VERSION, |
| 502 | NET_CORE_NO_CONG_THRESH, |
| 503 | NET_CORE_NO_CONG, |
| 504 | NET_CORE_LO_CONG, |
| 505 | NET_CORE_MOD_CONG, |
| 506 | NET_CORE_DEV_WEIGHT, |
| 507 | NET_CORE_SOMAXCONN, |
| 508 | NET_CORE_BUDGET, |
| 509 | NET_CORE_AEVENT_ETIME, |
| 510 | NET_CORE_AEVENT_RSEQTH, |
| 511 | NET_CORE_WARNINGS, |
| 512 | NET_IPV4_FORWARD, |
| 513 | NET_IPV4_DYNADDR, |
| 514 | NET_IPV4_CONF, |
| 515 | NET_IPV4_NEIGH, |
| 516 | NET_IPV4_ROUTE, |
| 517 | NET_IPV4_FIB_HASH, |
| 518 | NET_IPV4_NETFILTER, |
| 519 | NET_IPV4_TCP_TIMESTAMPS, |
| 520 | NET_IPV4_TCP_WINDOW_SCALING, |
| 521 | NET_IPV4_TCP_SACK, |
| 522 | NET_IPV4_TCP_RETRANS_COLLAPSE, |
| 523 | NET_IPV4_DEFAULT_TTL, |
| 524 | NET_IPV4_AUTOCONFIG, |
| 525 | NET_IPV4_NO_PMTU_DISC, |
| 526 | NET_IPV4_TCP_SYN_RETRIES, |
| 527 | NET_IPV4_IPFRAG_HIGH_THRESH, |
| 528 | NET_IPV4_IPFRAG_LOW_THRESH, |
| 529 | NET_IPV4_IPFRAG_TIME, |
| 530 | NET_IPV4_TCP_MAX_KA_PROBES, |
| 531 | NET_IPV4_TCP_KEEPALIVE_TIME, |
| 532 | NET_IPV4_TCP_KEEPALIVE_PROBES, |
| 533 | NET_IPV4_TCP_RETRIES1, |
| 534 | NET_IPV4_TCP_RETRIES2, |
| 535 | NET_IPV4_TCP_FIN_TIMEOUT, |
| 536 | NET_IPV4_IP_MASQ_DEBUG, |
| 537 | NET_TCP_SYNCOOKIES, |
| 538 | NET_TCP_STDURG, |
| 539 | NET_TCP_RFC1337, |
| 540 | NET_TCP_SYN_TAILDROP, |
| 541 | NET_TCP_MAX_SYN_BACKLOG, |
| 542 | NET_IPV4_LOCAL_PORT_RANGE, |
| 543 | NET_IPV4_ICMP_ECHO_IGNORE_ALL, |
| 544 | NET_IPV4_ICMP_ECHO_IGNORE_BROADCASTS, |
| 545 | NET_IPV4_ICMP_SOURCEQUENCH_RATE, |
| 546 | NET_IPV4_ICMP_DESTUNREACH_RATE, |
| 547 | NET_IPV4_ICMP_TIMEEXCEED_RATE, |
| 548 | NET_IPV4_ICMP_PARAMPROB_RATE, |
| 549 | NET_IPV4_ICMP_ECHOREPLY_RATE, |
| 550 | NET_IPV4_ICMP_IGNORE_BOGUS_ERROR_RESPONSES, |
| 551 | NET_IPV4_IGMP_MAX_MEMBERSHIPS, |
| 552 | NET_TCP_TW_RECYCLE, |
| 553 | NET_IPV4_ALWAYS_DEFRAG, |
| 554 | NET_IPV4_TCP_KEEPALIVE_INTVL, |
| 555 | NET_IPV4_INET_PEER_THRESHOLD, |
| 556 | NET_IPV4_INET_PEER_MINTTL, |
| 557 | NET_IPV4_INET_PEER_MAXTTL, |
| 558 | NET_IPV4_INET_PEER_GC_MINTIME, |
| 559 | NET_IPV4_INET_PEER_GC_MAXTIME, |
| 560 | NET_TCP_ORPHAN_RETRIES, |
| 561 | NET_TCP_ABORT_ON_OVERFLOW, |
| 562 | NET_TCP_SYNACK_RETRIES, |
| 563 | NET_TCP_MAX_ORPHANS, |
| 564 | NET_TCP_MAX_TW_BUCKETS, |
| 565 | NET_TCP_FACK, |
| 566 | NET_TCP_REORDERING, |
| 567 | NET_TCP_ECN, |
| 568 | NET_TCP_DSACK, |
| 569 | NET_TCP_MEM, |
| 570 | NET_TCP_WMEM, |
| 571 | NET_TCP_RMEM, |
| 572 | NET_TCP_APP_WIN, |
| 573 | NET_TCP_ADV_WIN_SCALE, |
| 574 | NET_IPV4_NONLOCAL_BIND, |
| 575 | NET_IPV4_ICMP_RATELIMIT, |
| 576 | NET_IPV4_ICMP_RATEMASK, |
| 577 | NET_TCP_TW_REUSE, |
| 578 | NET_TCP_FRTO, |
| 579 | NET_TCP_LOW_LATENCY, |
| 580 | NET_IPV4_IPFRAG_SECRET_INTERVAL, |
| 581 | NET_IPV4_IGMP_MAX_MSF, |
| 582 | NET_TCP_NO_METRICS_SAVE, |
| 583 | NET_TCP_DEFAULT_WIN_SCALE, |
| 584 | NET_TCP_MODERATE_RCVBUF, |
| 585 | NET_TCP_TSO_WIN_DIVISOR, |
| 586 | NET_TCP_BIC_BETA, |
| 587 | NET_IPV4_ICMP_ERRORS_USE_INBOUND_IFADDR, |
| 588 | NET_TCP_CONG_CONTROL, |
| 589 | NET_TCP_ABC, |
| 590 | NET_IPV4_IPFRAG_MAX_DIST, |
| 591 | NET_TCP_MTU_PROBING, |
| 592 | NET_TCP_BASE_MSS, |
| 593 | NET_IPV4_TCP_WORKAROUND_SIGNED_WINDOWS, |
| 594 | NET_TCP_DMA_COPYBREAK, |
| 595 | NET_TCP_SLOW_START_AFTER_IDLE, |
| 596 | NET_CIPSOV4_CACHE_ENABLE, |
| 597 | NET_CIPSOV4_CACHE_BUCKET_SIZE, |
| 598 | NET_CIPSOV4_RBM_OPTFMT, |
| 599 | NET_CIPSOV4_RBM_STRICTVALID, |
| 600 | NET_TCP_AVAIL_CONG_CONTROL, |
| 601 | NET_TCP_ALLOWED_CONG_CONTROL, |
| 602 | NET_TCP_MAX_SSTHRESH, |
| 603 | NET_TCP_FRTO_RESPONSE, |
| 604 | NET_IPV4_ROUTE_FLUSH, |
| 605 | NET_IPV4_ROUTE_MIN_DELAY, |
| 606 | NET_IPV4_ROUTE_MAX_DELAY, |
| 607 | NET_IPV4_ROUTE_GC_THRESH, |
| 608 | NET_IPV4_ROUTE_MAX_SIZE, |
| 609 | NET_IPV4_ROUTE_GC_MIN_INTERVAL, |
| 610 | NET_IPV4_ROUTE_GC_TIMEOUT, |
| 611 | NET_IPV4_ROUTE_GC_INTERVAL, |
| 612 | NET_IPV4_ROUTE_REDIRECT_LOAD, |
| 613 | NET_IPV4_ROUTE_REDIRECT_NUMBER, |
| 614 | NET_IPV4_ROUTE_REDIRECT_SILENCE, |
| 615 | NET_IPV4_ROUTE_ERROR_COST, |
| 616 | NET_IPV4_ROUTE_ERROR_BURST, |
| 617 | NET_IPV4_ROUTE_GC_ELASTICITY, |
| 618 | NET_IPV4_ROUTE_MTU_EXPIRES, |
| 619 | NET_IPV4_ROUTE_MIN_PMTU, |
| 620 | NET_IPV4_ROUTE_MIN_ADVMSS, |
| 621 | NET_IPV4_ROUTE_SECRET_INTERVAL, |
| 622 | NET_IPV4_ROUTE_GC_MIN_INTERVAL_MS, |
| 623 | NET_IPV4_CONF_FORWARDING, |
| 624 | NET_IPV4_CONF_MC_FORWARDING, |
| 625 | NET_IPV4_CONF_PROXY_ARP, |
| 626 | NET_IPV4_CONF_ACCEPT_REDIRECTS, |
| 627 | NET_IPV4_CONF_SECURE_REDIRECTS, |
| 628 | NET_IPV4_CONF_SEND_REDIRECTS, |
| 629 | NET_IPV4_CONF_SHARED_MEDIA, |
| 630 | NET_IPV4_CONF_RP_FILTER, |
| 631 | NET_IPV4_CONF_ACCEPT_SOURCE_ROUTE, |
| 632 | NET_IPV4_CONF_BOOTP_RELAY, |
| 633 | NET_IPV4_CONF_LOG_MARTIANS, |
| 634 | NET_IPV4_CONF_TAG, |
| 635 | NET_IPV4_CONF_ARPFILTER, |
| 636 | NET_IPV4_CONF_MEDIUM_ID, |
| 637 | NET_IPV4_CONF_NOXFRM, |
| 638 | NET_IPV4_CONF_NOPOLICY, |
| 639 | NET_IPV4_CONF_FORCE_IGMP_VERSION, |
| 640 | NET_IPV4_CONF_ARP_ANNOUNCE, |
| 641 | NET_IPV4_CONF_ARP_IGNORE, |
| 642 | NET_IPV4_CONF_PROMOTE_SECONDARIES, |
| 643 | NET_IPV4_CONF_ARP_ACCEPT, |
| 644 | NET_IPV4_CONF_ARP_NOTIFY, |
| 645 | NET_IPV6_CONF, |
| 646 | NET_IPV6_NEIGH, |
| 647 | NET_IPV6_ROUTE, |
| 648 | NET_IPV6_ICMP, |
| 649 | NET_IPV6_BINDV6ONLY, |
| 650 | NET_IPV6_IP6FRAG_HIGH_THRESH, |
| 651 | NET_IPV6_IP6FRAG_LOW_THRESH, |
| 652 | NET_IPV6_IP6FRAG_TIME, |
| 653 | NET_IPV6_IP6FRAG_SECRET_INTERVAL, |
| 654 | NET_IPV6_MLD_MAX_MSF, |
| 655 | NET_IPV6_ROUTE_FLUSH, |
| 656 | NET_IPV6_ROUTE_GC_THRESH, |
| 657 | NET_IPV6_ROUTE_MAX_SIZE, |
| 658 | NET_IPV6_ROUTE_GC_MIN_INTERVAL, |
| 659 | NET_IPV6_ROUTE_GC_TIMEOUT, |
| 660 | NET_IPV6_ROUTE_GC_INTERVAL, |
| 661 | NET_IPV6_ROUTE_GC_ELASTICITY, |
| 662 | NET_IPV6_ROUTE_MTU_EXPIRES, |
| 663 | NET_IPV6_ROUTE_MIN_ADVMSS, |
| 664 | NET_IPV6_ROUTE_GC_MIN_INTERVAL_MS, |
| 665 | NET_UNIX_DESTROY_DELAY, |
| 666 | NET_UNIX_DELETE_DELAY, |
| 667 | NET_UNIX_MAX_DGRAM_QLEN, |
| 668 | VM_OVERCOMMIT_MEMORY, |
| 669 | VM_PAGE_CLUSTER, |
| 670 | VM_DIRTY_BACKGROUND, |
| 671 | VM_DIRTY_RATIO, |
| 672 | VM_DIRTY_WB_CS, |
| 673 | VM_DIRTY_EXPIRE_CS, |
| 674 | VM_NR_PDFLUSH_THREADS, |
| 675 | VM_OVERCOMMIT_RATIO, |
| 676 | VM_PAGEBUF, |
| 677 | VM_HUGETLB_PAGES, |
| 678 | VM_SWAPPINESS, |
| 679 | VM_LOWMEM_RESERVE_RATIO, |
| 680 | VM_MIN_FREE_KBYTES, |
| 681 | VM_MAX_MAP_COUNT, |
| 682 | VM_LAPTOP_MODE, |
| 683 | VM_BLOCK_DUMP, |
| 684 | VM_HUGETLB_GROUP, |
| 685 | VM_VFS_CACHE_PRESSURE, |
| 686 | VM_LEGACY_VA_LAYOUT, |
| 687 | VM_SWAP_TOKEN_TIMEOUT |
| 688 | ]),,, |
| 689 | [#include <sys/types.h> |
| 690 | #include <linux/sysctl.h>]) |
| 691 | |
Philippe De Muyter | 0cc9614 | 2014-11-03 21:27:40 +0100 | [diff] [blame] | 692 | AC_CHECK_DECLS(m4_normalize([ |
| 693 | V4L2_FIELD_ANY, |
| 694 | V4L2_FIELD_NONE, |
| 695 | V4L2_FIELD_TOP, |
| 696 | V4L2_FIELD_BOTTOM, |
| 697 | V4L2_FIELD_INTERLACED, |
| 698 | V4L2_FIELD_SEQ_TB, |
| 699 | V4L2_FIELD_SEQ_BT, |
| 700 | V4L2_FIELD_ALTERNATE, |
| 701 | V4L2_FIELD_INTERLACED_TB, |
| 702 | V4L2_FIELD_INTERLACED_BT, |
| 703 | V4L2_BUF_TYPE_VIDEO_CAPTURE, |
| 704 | V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE, |
| 705 | V4L2_BUF_TYPE_VIDEO_OUTPUT, |
| 706 | V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE, |
| 707 | V4L2_BUF_TYPE_VIDEO_OVERLAY, |
| 708 | V4L2_BUF_TYPE_VBI_CAPTURE, |
| 709 | V4L2_BUF_TYPE_VBI_OUTPUT, |
| 710 | V4L2_BUF_TYPE_SLICED_VBI_CAPTURE, |
| 711 | V4L2_BUF_TYPE_SLICED_VBI_OUTPUT, |
| 712 | V4L2_BUF_TYPE_VIDEO_OUTPUT_OVERLAY, |
| 713 | V4L2_TUNER_RADIO, |
| 714 | V4L2_TUNER_ANALOG_TV, |
| 715 | V4L2_TUNER_DIGITAL_TV, |
| 716 | V4L2_MEMORY_MMAP, |
| 717 | V4L2_MEMORY_USERPTR, |
| 718 | V4L2_MEMORY_OVERLAY, |
| 719 | V4L2_MEMORY_DMABUF, |
| 720 | V4L2_COLORSPACE_SMPTE170M, |
| 721 | V4L2_COLORSPACE_SMPTE240M, |
| 722 | V4L2_COLORSPACE_REC709, |
| 723 | V4L2_COLORSPACE_BT878, |
| 724 | V4L2_COLORSPACE_470_SYSTEM_M, |
| 725 | V4L2_COLORSPACE_470_SYSTEM_BG, |
| 726 | V4L2_COLORSPACE_JPEG, |
| 727 | V4L2_COLORSPACE_SRGB, |
| 728 | V4L2_PRIORITY_UNSET, |
| 729 | V4L2_PRIORITY_BACKGROUND, |
| 730 | V4L2_PRIORITY_INTERACTIVE, |
| 731 | V4L2_PRIORITY_RECORD, |
| 732 | V4L2_FRMSIZE_TYPE_DISCRETE, |
| 733 | V4L2_FRMSIZE_TYPE_CONTINUOUS, |
| 734 | V4L2_FRMSIZE_TYPE_STEPWISE, |
| 735 | V4L2_FRMIVAL_TYPE_DISCRETE, |
| 736 | V4L2_FRMIVAL_TYPE_CONTINUOUS, |
| 737 | V4L2_FRMIVAL_TYPE_STEPWISE, |
| 738 | V4L2_CTRL_TYPE_INTEGER, |
| 739 | V4L2_CTRL_TYPE_BOOLEAN, |
| 740 | V4L2_CTRL_TYPE_MENU, |
| 741 | V4L2_CTRL_TYPE_BUTTON, |
| 742 | V4L2_CTRL_TYPE_INTEGER64, |
| 743 | V4L2_CTRL_TYPE_CTRL_CLASS, |
| 744 | V4L2_CTRL_TYPE_STRING, |
| 745 | V4L2_CTRL_TYPE_BITMASK, |
| 746 | V4L2_CTRL_TYPE_INTEGER_MENU |
| 747 | ]),,, [#include <linux/videodev2.h>]) |
| 748 | |
Dmitry V. Levin | 25caa31 | 2011-08-16 21:36:16 +0000 | [diff] [blame] | 749 | AC_CACHE_CHECK([for BLKGETSIZE64], [ac_cv_have_blkgetsize64], |
| 750 | [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([ |
| 751 | #include <stdlib.h> |
| 752 | #include <linux/fs.h>], [return !BLKGETSIZE64;])], |
| 753 | [ac_cv_have_blkgetsize64=yes], [ac_cv_have_blkgetsize64=no])] |
| 754 | if test $ac_cv_have_blkgetsize64 = yes; then |
| 755 | AC_DEFINE([HAVE_BLKGETSIZE64], [1], [Define to 1 if you have BLKGETSIZE64.]) |
| 756 | fi) |
| 757 | |
Dmitry V. Levin | 63e4f86 | 2012-03-15 20:42:46 +0000 | [diff] [blame] | 758 | AC_CHECK_SIZEOF([long]) |
Dmitry V. Levin | 7a498be | 2013-05-04 19:51:57 +0000 | [diff] [blame] | 759 | AC_CHECK_SIZEOF([long long]) |
Dmitry V. Levin | 54cabef | 2014-03-03 23:09:47 +0000 | [diff] [blame] | 760 | AC_CHECK_SIZEOF([off_t],,[#include <sys/types.h>]) |
Dmitry V. Levin | 8c20d89 | 2015-05-21 16:19:40 +0000 | [diff] [blame] | 761 | AC_CHECK_SIZEOF([struct i64_i32],,[struct i64_i32 {long long i64; int i32;};]) |
Dmitry V. Levin | 63e4f86 | 2012-03-15 20:42:46 +0000 | [diff] [blame] | 762 | |
Dmitry V. Levin | 59f63d3 | 2015-03-05 05:03:41 +0000 | [diff] [blame] | 763 | AC_CACHE_CHECK([for SIGRTMIN], [st_cv_SIGRTMIN], |
| 764 | [[st_cv_SIGRTMIN="$(echo SIGRTMIN | |
| 765 | $CPP $CPPFLAGS -P -imacros asm/signal.h - | |
| 766 | grep '^[0-9]')" |
| 767 | test -n "$st_cv_SIGRTMIN" || st_cv_SIGRTMIN=no]]) |
| 768 | if test "x$st_cv_SIGRTMIN" != xno; then |
| 769 | AC_DEFINE_UNQUOTED([ASM_SIGRTMIN], [$st_cv_SIGRTMIN], |
| 770 | [SIGRTMIN defined in <asm/signal.h>]) |
| 771 | fi |
| 772 | AC_CACHE_CHECK([for SA_RESTORER], [st_cv_SA_RESTORER], |
| 773 | [st_cv_SA_RESTORER="$(echo SA_RESTORER | |
Dmitry V. Levin | ab3953b | 2014-02-08 00:15:52 +0000 | [diff] [blame] | 774 | $CPP $CPPFLAGS -P -imacros asm/signal.h - | |
| 775 | grep ^0x)" |
Dmitry V. Levin | 59f63d3 | 2015-03-05 05:03:41 +0000 | [diff] [blame] | 776 | test -n "$st_cv_SA_RESTORER" || st_cv_SA_RESTORER=no]) |
| 777 | if test "x$st_cv_SA_RESTORER" != xno; then |
| 778 | AC_DEFINE_UNQUOTED([ASM_SA_RESTORER], [$st_cv_SA_RESTORER], |
Dmitry V. Levin | ab3953b | 2014-02-08 00:15:52 +0000 | [diff] [blame] | 779 | [SA_RESTORER defined in <asm/signal.h>]) |
| 780 | fi |
| 781 | |
Dmitry V. Levin | 38593e9 | 2014-02-26 16:51:28 +0000 | [diff] [blame] | 782 | AC_CACHE_CHECK([for __builtin_popcount], [st_cv_have___builtin_popcount], |
| 783 | [AC_LINK_IFELSE([AC_LANG_PROGRAM([], [__builtin_popcount(0)])], |
| 784 | [st_cv_have___builtin_popcount=yes], |
| 785 | [st_cv_have___builtin_popcount=no])]) |
| 786 | if test "x$st_cv_have___builtin_popcount" = xyes; then |
| 787 | AC_DEFINE([HAVE___BUILTIN_POPCOUNT], [1], |
| 788 | [Define to 1 if the system provides __builtin_popcount function]) |
| 789 | fi |
| 790 | |
Dmitry V. Levin | 856b759 | 2015-02-27 05:01:25 +0000 | [diff] [blame] | 791 | AC_CHECK_LIB([dl], [dladdr], [dl_LIBS='-ldl'], [dl_LIBS=]) |
Dmitry V. Levin | 977550d | 2015-02-27 04:09:56 +0000 | [diff] [blame] | 792 | if test "x$ac_cv_lib_dl_dladdr" = xyes; then |
| 793 | AC_DEFINE([HAVE_DLADDR], [1], [Define to 1 if the system provides dladdr]) |
Dmitry V. Levin | 977550d | 2015-02-27 04:09:56 +0000 | [diff] [blame] | 794 | fi |
| 795 | AC_SUBST(dl_LIBS) |
| 796 | |
Roland McGrath | 6d2b349 | 2002-12-30 00:51:30 +0000 | [diff] [blame] | 797 | AC_PATH_PROG([PERL], [perl]) |
| 798 | |
Luca Clementi | 327064b | 2013-07-23 00:11:35 -0700 | [diff] [blame] | 799 | dnl stack trace with libunwind |
| 800 | libunwind_CPPFLAGS= |
| 801 | libunwind_LDFLAGS= |
| 802 | libunwind_LIBS= |
| 803 | AC_ARG_WITH([libunwind], |
| 804 | [AS_HELP_STRING([--with-libunwind], |
| 805 | [use libunwind to implement stack tracing support])], |
| 806 | [case "${withval}" in |
| 807 | yes|no|check) ;; |
| 808 | *) with_libunwind=yes |
| 809 | libunwind_CPPFLAGS="-I${withval}/include" |
| 810 | libunwind_LDFLAGS="-L${withval}/lib" ;; |
| 811 | esac], |
| 812 | [with_libunwind=check] |
| 813 | ) |
| 814 | |
| 815 | use_libunwind=no |
| 816 | AS_IF([test "x$with_libunwind" != xno], |
| 817 | [saved_CPPFLAGS="$CPPFLAGS" |
| 818 | CPPFLAGS="$CPPFLAGS $libunwind_CPPFLAGS" |
| 819 | |
| 820 | AC_CHECK_HEADERS([libunwind-ptrace.h], |
| 821 | [saved_LDFLAGS="$LDFLAGS" |
| 822 | LDFLAGS="$LDFLAGS $libunwind_LDFLAGS" |
| 823 | |
| 824 | AC_CHECK_LIB([unwind], [backtrace], |
| 825 | [libunwind_LIBS="-lunwind $libunwind_LIBS" |
| 826 | |
| 827 | AC_MSG_CHECKING([for unw_create_addr_space in libunwind-generic]) |
| 828 | saved_LIBS="$LIBS" |
| 829 | LIBS="-lunwind-generic $libunwind_LIBS $LIBS" |
| 830 | |
| 831 | AC_LINK_IFELSE( |
| 832 | [AC_LANG_PROGRAM([[#include <libunwind-ptrace.h>]], |
| 833 | [[return !unw_create_addr_space(0, 0)]]) |
| 834 | ], |
| 835 | [AC_MSG_RESULT([yes]) |
| 836 | libunwind_LIBS="-lunwind-generic $libunwind_LIBS" |
| 837 | |
| 838 | AC_CHECK_LIB([unwind-ptrace], [_UPT_create], |
| 839 | [libunwind_LIBS="-lunwind-ptrace $libunwind_LIBS" |
| 840 | use_libunwind=yes |
| 841 | ], |
| 842 | [if test "x$with_libunwind" != xcheck; then |
| 843 | AC_MSG_FAILURE([failed to find _UPT_create in libunwind-ptrace]) |
| 844 | fi |
| 845 | ], |
| 846 | [$libunwind_LIBS] |
| 847 | ) |
| 848 | ], |
| 849 | [AC_MSG_RESULT([no]) |
| 850 | if test "x$with_libunwind" != xcheck; then |
| 851 | AC_MSG_FAILURE([failed to find unw_create_addr_space in libunwind-generic]) |
| 852 | fi |
| 853 | ] |
| 854 | ) |
| 855 | |
| 856 | LIBS="$saved_LIBS" |
| 857 | ], |
| 858 | [if test "x$with_libunwind" != xcheck; then |
| 859 | AC_MSG_FAILURE([failed to find libunwind]) |
| 860 | fi |
| 861 | ], |
| 862 | [$libunwind_LIBS] |
| 863 | ) |
| 864 | |
| 865 | LDFLAGS="$saved_LDFLAGS" |
| 866 | ], |
| 867 | [if test "x$with_libunwind" != xcheck; then |
| 868 | AC_MSG_FAILURE([failed to find libunwind-ptrace.h]) |
| 869 | fi |
| 870 | ] |
| 871 | ) |
| 872 | |
| 873 | CPPFLAGS="$saved_CPPFLAGS" |
| 874 | ] |
| 875 | ) |
| 876 | |
| 877 | dnl enable libunwind |
| 878 | AC_MSG_CHECKING([whether to enable stack tracing support using libunwind]) |
| 879 | if test "x$use_libunwind" = xyes; then |
| 880 | AC_DEFINE([USE_LIBUNWIND], 1, [Compile stack tracing functionality]) |
| 881 | AC_SUBST(libunwind_LIBS) |
| 882 | AC_SUBST(libunwind_LDFLAGS) |
| 883 | AC_SUBST(libunwind_CPPFLAGS) |
| 884 | fi |
| 885 | AM_CONDITIONAL([USE_LIBUNWIND], [test "x$use_libunwind" = xyes]) |
| 886 | AC_MSG_RESULT([$use_libunwind]) |
| 887 | |
Dmitry V. Levin | d59287d | 2015-01-13 04:57:27 +0000 | [diff] [blame] | 888 | if test "$arch" = mips && test "$no_create" != yes; then |
| 889 | mkdir -p linux/mips |
| 890 | if $srcdir/linux/mips/genstub.sh linux/mips; then |
| 891 | AC_MSG_RESULT([Generated MIPS syscallent stubs]) |
| 892 | else |
| 893 | AC_MSG_FAILURE([Failed to generate syscallent stubs]) |
| 894 | fi |
| 895 | fi |
| 896 | |
Dmitry V. Levin | f8b4913 | 2015-07-23 11:19:47 +0000 | [diff] [blame] | 897 | st_MPERS([m32], [aarch64|powerpc64|sparc64|tile|x32|x86_64]) |
| 898 | st_MPERS([mx32], [x86_64]) |
Dmitry V. Levin | 679c47c | 2015-01-23 22:45:02 +0000 | [diff] [blame] | 899 | |
| 900 | AC_CONFIG_FILES([Makefile tests/Makefile tests-m32/Makefile tests-mx32/Makefile]) |
Roland McGrath | 6d2b349 | 2002-12-30 00:51:30 +0000 | [diff] [blame] | 901 | AC_OUTPUT |