blob: 9347b704f937b2f132c8df1a57407d2cb05a019c [file] [log] [blame]
yaberauneya9913e822009-11-26 11:27:34 +00001AC_PREREQ(2.61)
Cyril Hrubis70d7e8c2015-09-15 12:50:31 +02002AC_INIT([ltp], [LTP_VERSION], [ltp@lists.linux.it])
yaberauneyaef772532009-10-09 17:55:43 +00003AC_CONFIG_AUX_DIR([.])
4AM_INIT_AUTOMAKE
subrata_modak3d8666c2008-11-11 08:31:27 +00005AC_CONFIG_HEADERS([include/config.h])
Cyril Hrubisedbae292014-07-15 14:57:27 +02006AC_CONFIG_MACRO_DIR([m4])
yaberauneyaef772532009-10-09 17:55:43 +00007AC_CONFIG_FILES([ \
8 include/mk/config.mk \
Cyril Hrubis63b65322016-04-20 18:23:53 +02009 include/mk/config-openposix.mk \
Garrett Cooper4f71cae2010-11-01 21:09:17 -070010 include/mk/features.mk \
yaberauneyaef772532009-10-09 17:55:43 +000011 lib/ltp.pc \
yaberauneyaef772532009-10-09 17:55:43 +000012 m4/Makefile \
yaberauneya0d39b832009-11-20 05:45:41 +000013 execltp \
vapierdf8759f2009-01-18 22:22:40 +000014])
subrata_modak3d8666c2008-11-11 08:31:27 +000015
Petr Vorelb6eab542020-10-05 15:30:44 +020016AC_ARG_VAR(HOSTCC, [The C compiler on the host])
17
Petr Vorel427b1be2018-02-14 23:27:54 +010018AM_MAINTAINER_MODE([enable])
19
yaberauneyaef772532009-10-09 17:55:43 +000020AC_CANONICAL_HOST
21
22AC_PROG_CC
yaberauneyaf7df1402009-10-17 02:24:20 +000023# <= autoconf 2.61 doesn't have AC_PROG_AR, but 2.63 has it. Not sure about
24# 2.62.
25AC_DEFUN([AC_PROG_AR], [AC_CHECK_TOOL(AR, ar, :)])
yaberauneyaef772532009-10-09 17:55:43 +000026AC_PROG_AR
27AC_PROG_LEX
28AC_PROG_RANLIB
yaberauneyaa4bed682009-12-05 23:45:55 +000029AC_DEFUN([AC_PROG_STRIP], [AC_CHECK_TOOL(STRIP, strip, :)])
30AC_PROG_STRIP
yaberauneyaef772532009-10-09 17:55:43 +000031AC_PROG_YACC
32
Petr Vorel3fda26a2021-02-18 15:49:23 +010033m4_ifndef([PKG_CHECK_EXISTS],
Petr Vorel6e17e2b2021-02-15 12:00:39 +010034 [m4_fatal([must install pkg-config or pkgconfig and pkg.m4 macro (usual dependency), see INSTALL])])
35
yaberauneyaef772532009-10-09 17:55:43 +000036AC_PREFIX_DEFAULT(/opt/ltp)
37
Petr Vorel452c5132020-01-29 19:26:27 +010038AC_CHECK_DECLS([IFLA_NET_NS_PID],,,[#include <linux/if_link.h>])
39AC_CHECK_DECLS([MADV_MERGEABLE],,,[#include <sys/mman.h>])
40AC_CHECK_DECLS([PR_CAPBSET_DROP, PR_CAPBSET_READ],,,[#include <sys/prctl.h>])
Martin Doucha3cc956f2021-03-19 12:43:49 +010041AC_CHECK_DECLS([SEM_STAT_ANY],,,[#include <sys/sem.h>])
Petr Vorel452c5132020-01-29 19:26:27 +010042
Petr Vorel2ebe5dd2020-09-02 14:43:06 +020043AC_CHECK_HEADERS_ONCE([ \
Petr Vorel452c5132020-01-29 19:26:27 +010044 asm/ldt.h \
yaberauneyaef772532009-10-09 17:55:43 +000045 ifaddrs.h \
Petr Vorelbc2568d2017-10-16 17:41:54 +020046 keyutils.h \
Petr Vorel66923c62017-10-12 20:33:19 +020047 linux/can.h \
Yang Xudf5ce332019-07-30 13:45:32 +080048 linux/cgroupstats.h \
Richard Palethorpea0ce4432018-07-05 16:56:33 +020049 linux/cryptouser.h \
Richard Palethorpe via ltp6c68f3c2021-02-11 17:45:39 +000050 linux/close_range.h \
Yang Xudf5ce332019-07-30 13:45:32 +080051 linux/dccp.h \
Petr Vorel452c5132020-01-29 19:26:27 +010052 linux/fs.h \
yaberauneyaef772532009-10-09 17:55:43 +000053 linux/genetlink.h \
Eric Biggersef851012019-03-18 10:13:22 -070054 linux/if_alg.h \
Richard Palethorpedb141702017-11-02 15:34:41 +010055 linux/if_ether.h \
Petr Vorelb6bf84c2020-02-17 15:22:27 +010056 linux/if_packet.h \
Martin Douchafe9e9512021-02-04 12:03:39 +010057 linux/io_uring.h \
Yang Xudf5ce332019-07-30 13:45:32 +080058 linux/keyctl.h \
yaberauneyacb805c42009-12-22 23:10:41 +000059 linux/mempolicy.h \
yaberauneyaef772532009-10-09 17:55:43 +000060 linux/module.h \
61 linux/netlink.h \
Alessio Balsini531c7992021-05-05 23:18:36 +010062 linux/openat2.h \
Yang Xu3ddc2172019-05-23 10:54:00 +080063 linux/seccomp.h \
Yang Xufe9d9212019-07-12 17:54:35 +080064 linux/securebits.h \
Petr Vorelef12b902020-05-06 13:03:29 +020065 linux/tty.h \
Petr Vorel28a9cd82019-06-17 23:00:49 +020066 linux/types.h \
Christian Amannb3621af2019-03-19 09:07:32 +010067 linux/userfaultfd.h \
Xiao Yangbf8f1d72018-04-04 19:12:54 +080068 netinet/sctp.h \
Petr Vorel839128b2017-10-12 20:33:18 +020069 pthread.h \
yaberauneyaef772532009-10-09 17:55:43 +000070 sys/epoll.h \
Jan Karaf057c1c2013-11-20 23:43:13 +010071 sys/fanotify.h \
Petr Vorel839128b2017-10-12 20:33:18 +020072 sys/inotify.h \
yaberauneyaef772532009-10-09 17:55:43 +000073 sys/prctl.h \
Sandeep Patil524edfb2017-11-08 16:34:36 -080074 sys/shm.h \
Petr Vorel452c5132020-01-29 19:26:27 +010075 sys/timerfd.h \
Petr Vorel0ff33b32017-10-11 15:53:33 +020076 sys/ustat.h \
Petr Vorel2e7b8092019-07-06 22:51:06 +020077 sys/utsname.h \
Petr Vorel839128b2017-10-12 20:33:18 +020078 sys/xattr.h \
Yang Xu208f2312019-10-23 17:00:27 +080079 xfs/xqm.h \
yaberauneyaef772532009-10-09 17:55:43 +000080])
Petr Vorel452c5132020-01-29 19:26:27 +010081AC_CHECK_HEADERS(fts.h, [have_fts=1])
82AC_SUBST(HAVE_FTS_H, $have_fts)
yaberauneyaef772532009-10-09 17:55:43 +000083
Petr Vorel2ebe5dd2020-09-02 14:43:06 +020084AC_CHECK_FUNCS_ONCE([ \
Viresh Kumar1b0e8dd2020-03-20 09:54:02 +053085 clone3 \
Richard Palethorpe via ltp6c68f3c2021-02-11 17:45:39 +000086 close_range \
Christian Amanna72f4b22019-05-06 12:54:57 +020087 copy_file_range \
Xiao Yang8fd49ce2019-04-05 15:55:39 +080088 epoll_pwait \
89 execveat \
90 fallocate \
91 fchownat \
Viresh Kumar9832fd92020-02-14 17:05:50 +053092 fsconfig \
93 fsmount \
94 fsopen \
95 fspick \
Xiao Yang8fd49ce2019-04-05 15:55:39 +080096 fstatat \
Cyril Hrubis6ab05d52020-06-26 11:57:27 +020097 getauxval \
Khem Raj6d9de5f2019-07-26 11:25:23 -070098 getdents \
99 getdents64 \
Viresh Kumar57a961f2020-01-28 08:31:33 +0530100 io_pgetevents \
Vikas Kumar95399bc2020-03-13 11:50:58 +0530101 io_uring_setup \
102 io_uring_register \
103 io_uring_enter \
Petr Vorelb6bf84c2020-02-17 15:22:27 +0100104 kcmp \
Yang Xu7eb7a972021-02-18 13:52:49 +0800105 mallinfo \
Petr Vorel4df2c0a2021-01-14 13:45:10 +0100106 mallopt \
Xiao Yang8fd49ce2019-04-05 15:55:39 +0800107 mkdirat \
108 mknodat \
Petr Vorel452c5132020-01-29 19:26:27 +0100109 modify_ldt \
Viresh Kumar9832fd92020-02-14 17:05:50 +0530110 move_mount \
Matthew Bobrowski02b39d82019-06-20 19:57:58 +1000111 name_to_handle_at \
Viresh Kumar9832fd92020-02-14 17:05:50 +0530112 open_tree \
Xiao Yang8fd49ce2019-04-05 15:55:39 +0800113 openat \
Viresh Kumar1b884d92020-03-16 12:06:15 +0530114 openat2 \
Viresh Kumar54151622020-01-27 14:07:48 +0530115 pidfd_open \
Christian Amanne3c82be2019-06-14 09:28:27 +0200116 pidfd_send_signal \
Yang Xudf5ce332019-07-30 13:45:32 +0800117 pkey_mprotect \
Xiao Yang8fd49ce2019-04-05 15:55:39 +0800118 preadv \
119 preadv2 \
Petr Vorel0ff33b32017-10-11 15:53:33 +0200120 profil \
Xiao Yang8fd49ce2019-04-05 15:55:39 +0800121 pwritev \
122 pwritev2 \
Alexey Kodanev652e02f2020-09-24 10:17:39 +0300123 rand_r \
Xiao Yang8fd49ce2019-04-05 15:55:39 +0800124 readlinkat \
Steve Muckle1010e922019-07-25 14:11:19 -0700125 recvmmsg \
Xiao Yang8fd49ce2019-04-05 15:55:39 +0800126 renameat \
127 renameat2 \
Yang Xu4c41cf72019-04-17 14:05:02 +0800128 sched_getcpu \
Steve Muckle1010e922019-07-25 14:11:19 -0700129 sendmmsg \
Cyril Hrubis7cd69c12020-03-18 16:37:54 +0100130 setns \
Xiao Yanga600c362019-04-05 15:46:24 +0800131 sigpending \
Xiao Yang8fd49ce2019-04-05 15:55:39 +0800132 splice \
Petr Vorel452c5132020-01-29 19:26:27 +0100133 statx \
Xiao Yang66c59e92019-04-05 17:12:50 +0800134 stime \
Xiao Yang8fd49ce2019-04-05 15:55:39 +0800135 sync_file_range \
Petr Vorelb6bf84c2020-02-17 15:22:27 +0100136 syncfs \
Xiao Yang8fd49ce2019-04-05 15:55:39 +0800137 tee \
Petr Vorel452c5132020-01-29 19:26:27 +0100138 timerfd_create \
139 timerfd_gettime \
140 timerfd_settime \
Xiao Yang8fd49ce2019-04-05 15:55:39 +0800141 unshare \
Petr Vorel0ff33b32017-10-11 15:53:33 +0200142 ustat \
Xiao Yang8fd49ce2019-04-05 15:55:39 +0800143 vmsplice \
Petr Vorel0ff33b32017-10-11 15:53:33 +0200144])
Petr Vorel452c5132020-01-29 19:26:27 +0100145AC_CHECK_FUNCS(mkdtemp,[],AC_MSG_ERROR(mkdtemp() not found!))
146
147AC_CHECK_MEMBERS([struct fanotify_event_info_fid.fsid.__val],,,[#include <sys/fanotify.h>])
148AC_CHECK_MEMBERS([struct perf_event_mmap_page.aux_head],,,[#include <linux/perf_event.h>])
149AC_CHECK_MEMBERS([struct sigaction.sa_sigaction],[],[],[#include <signal.h>])
150
151AC_CHECK_MEMBERS([struct utsname.domainname],,,[
152#define _GNU_SOURCE
153#include <sys/utsname.h>
154])
155
156AC_CHECK_TYPES([enum kcmp_type],,,[#include <linux/kcmp.h>])
157AC_CHECK_TYPES([struct acct_v3],,,[#include <sys/acct.h>])
Yang Xu88412592020-08-21 18:18:39 +0800158AC_CHECK_TYPES([struct af_alg_iv, struct sockaddr_alg],,,[# include <linux/if_alg.h>])
Alessio Balsinibb496d92021-05-05 23:32:33 +0100159AC_CHECK_TYPES([struct clone_args],,,[#include <sched.h>])
Petr Vorela26fedd2020-08-28 12:46:42 +0200160AC_CHECK_TYPES([struct fanotify_event_info_fid, struct fanotify_event_info_header],,,[#include <sys/fanotify.h>])
Petr Vorel452c5132020-01-29 19:26:27 +0100161AC_CHECK_TYPES([struct file_dedupe_range],,,[#include <linux/fs.h>])
Petr Vorel86cf8112021-01-12 13:31:45 +0100162
163AC_CHECK_TYPES([struct file_handle],,,[
164#define _GNU_SOURCE
165#include <fcntl.h>
166])
167
Petr Vorel452c5132020-01-29 19:26:27 +0100168AC_CHECK_TYPES([struct fs_quota_statv],,,[#include <xfs/xqm.h>])
169AC_CHECK_TYPES([struct if_nextdqblk],,,[#include <linux/quota.h>])
170AC_CHECK_TYPES([struct iovec],,,[#include <sys/uio.h>])
Viresh Kumar3e1fc062020-05-22 12:46:04 +0530171AC_CHECK_TYPES([struct ipc64_perm],,,[#include <sys/ipcbuf.h>])
Yang Xu18987542020-06-11 18:35:13 +0800172AC_CHECK_TYPES([struct loop_config],,,[#include <linux/loop.h>])
Petr Vorel452c5132020-01-29 19:26:27 +0100173
Alessio Balsini7b969102021-05-05 23:42:51 +0100174AC_CHECK_TYPES([struct __kernel_itimerspec],,,[#include <linux/time_types.h>])
175AC_CHECK_TYPES([struct __kernel_old_timespec],,,[#include <linux/time_types.h>])
176AC_CHECK_TYPES([struct __kernel_old_timeval],,,[#include <linux/time_types.h>])
177AC_CHECK_TYPES([struct __kernel_timespec],,,[#include <linux/time_types.h>])
178
179AC_CHECK_TYPES([struct __kernel_timex],,,[#include <sys/timex.h>])
180AC_CHECK_TYPES([struct __kernel_timex_timeval],,,[#include <sys/timex.h>])
181
Petr Vorel452c5132020-01-29 19:26:27 +0100182AC_CHECK_TYPES([struct mmsghdr],,,[
183#define _GNU_SOURCE
184#include <sys/types.h>
185#include <sys/socket.h>
186])
187
Petr Vorela26fedd2020-08-28 12:46:42 +0200188AC_CHECK_TYPES([struct msqid64_ds],,,[#include <sys/msgbuf.h>])
189
Petr Vorel452c5132020-01-29 19:26:27 +0100190AC_CHECK_TYPES([struct rlimit64],,,[
191#define _LARGEFILE64_SOURCE
192#include <sys/resource.h>
193])
194
Alessio Balsini76769932021-05-06 12:34:11 +0100195AC_CHECK_TYPES([struct semun],,,[#include <sys/sem.h>])
Petr Vorela26fedd2020-08-28 12:46:42 +0200196AC_CHECK_TYPES([struct semid64_ds],,,[#include <sys/sem.h>])
197AC_CHECK_TYPES([struct shmid64_ds],,,[#include <sys/shmbuf.h>])
198
Petr Vorel452c5132020-01-29 19:26:27 +0100199AC_CHECK_TYPES([struct statx, struct statx_timestamp],,,[
200#define _GNU_SOURCE
201#include <sys/stat.h>
202])
203
204AC_CHECK_TYPES([struct termio],,,[#include <sys/ioctl.h>])
Petr Vorela26fedd2020-08-28 12:46:42 +0200205AC_CHECK_TYPES([struct tpacket_req3],,,[# include <linux/if_packet.h>])
206AC_CHECK_TYPES([struct user_desc, struct modify_ldt_ldt_s],[],[],[#include <asm/ldt.h>])
Petr Vorel452c5132020-01-29 19:26:27 +0100207
208AC_CHECK_TYPES([struct xt_entry_match, struct xt_entry_target],,,[
209#include <sys/types.h>
210#include <netinet/in.h>
211#include <net/if.h>
212#include <limits.h>
213#include <linux/netfilter_ipv4/ip_tables.h>
214])
Petr Vorel25b35652017-10-02 15:33:41 +0200215
Garrett Cooper52288dc2010-11-16 22:01:43 -0800216# Tools knobs
217
Petr Vorel31085e02020-10-05 15:30:53 +0200218# Bash
Garrett Cooper52288dc2010-11-16 22:01:43 -0800219AC_ARG_WITH([bash],
220 [AC_HELP_STRING([--with-bash],
Joerg Vehlow9e7f5682019-11-13 11:41:49 +0100221 [have the Bourne Again Shell interpreter])],
222 [with_bash=$withval],
223 [with_bash=no]
Garrett Cooper52288dc2010-11-16 22:01:43 -0800224)
225if test "x$with_bash" = xyes; then
226 AC_SUBST([WITH_BASH],["yes"])
227else
228 AC_SUBST([WITH_BASH],["no"])
229fi
230
Petr Vorel31085e02020-10-05 15:30:53 +0200231# metadata
232AC_ARG_ENABLE([metadata],
233 [AC_HELP_STRING([--disable-metadata],
234 [Disable metadata generation (both HTML and PDF, default no)])],
235 [], [enable_metadata=yes]
236)
237AC_ARG_ENABLE([metadata_html],
238 [AC_HELP_STRING([--disable-metadata-html],
239 [Disable metadata HTML generation (default no)])],
240 [], [enable_metadata_html=yes]
241)
242
243AC_ARG_ENABLE([metadata_pdf],
244 [AC_HELP_STRING([--enable-metadata-pdf],
245 [Enable metadata PDF generation (default no)])],
246 [], [enable_metadata_pdf=no]
247)
248
249AC_ARG_WITH([metadata_generator],
250 [AC_HELP_STRING([--with-metadata-generator=asciidoc|asciidoctor],
251 [Specify metadata generator to use (default autodetect)])],
252 [with_metadata_generator=$withval],
253 [with_metadata_generator=detect]
254)
255
256LTP_DOCPARSE
257
258# Expect
Garrett Cooper52288dc2010-11-16 22:01:43 -0800259AC_ARG_WITH([expect],
260 [AC_HELP_STRING([--with-expect],
Joerg Vehlow9e7f5682019-11-13 11:41:49 +0100261 [have the Tcl/expect library])],
262 [with_expect=$withval],
Garrett Cooper52288dc2010-11-16 22:01:43 -0800263 [with_expect=no]
264)
265if test "x$with_expect" = xyes; then
266 AC_SUBST([WITH_EXPECT],["yes"])
267else
268 AC_SUBST([WITH_EXPECT],["no"])
269fi
270
Anders Roxell39a85a12018-02-05 11:56:04 +0100271# Numa
272AC_ARG_WITH([numa],
273 AC_HELP_STRING([--without-numa],
Joerg Vehlow9e7f5682019-11-13 11:41:49 +0100274 [without numa support]),
275 [with_numa=$withval],
Anders Roxell39a85a12018-02-05 11:56:04 +0100276 [with_numa=yes]
277)
278
Garrett Cooper52288dc2010-11-16 22:01:43 -0800279# Perl
280AC_ARG_WITH([perl],
281 [AC_HELP_STRING([--with-perl],
Joerg Vehlow9e7f5682019-11-13 11:41:49 +0100282 [have a perl interpreter])],
283 [with_perl=$withval],
Garrett Cooper52288dc2010-11-16 22:01:43 -0800284 [with_perl=no]
285)
286if test "x$with_perl" = xyes; then
287 AC_SUBST([WITH_PERL],["yes"])
288else
289 AC_SUBST([WITH_PERL],["no"])
290fi
291
292# Python
293AC_ARG_WITH([python],
294 [AC_HELP_STRING([--with-python],
Joerg Vehlow9e7f5682019-11-13 11:41:49 +0100295 [have a python interpreter])],
296 [with_python=$withval],
Garrett Cooper52288dc2010-11-16 22:01:43 -0800297 [with_python=no]
298)
299if test "x$with_python" = xyes; then
300 AC_SUBST([WITH_PYTHON],["yes"])
301else
302 AC_SUBST([WITH_PYTHON],["no"])
303fi
Anders Roxell7b258152018-02-14 13:04:31 +0100304
305# TI RPC
306AC_ARG_WITH([tirpc],
307 AC_HELP_STRING([--without-tirpc],
Joerg Vehlow9e7f5682019-11-13 11:41:49 +0100308 [without libtirpc support]),
309 [with_tirpc=$withval],
Anders Roxell7b258152018-02-14 13:04:31 +0100310 [with_tirpc=yes]
311)
Garrett Cooper52288dc2010-11-16 22:01:43 -0800312# END tools knobs
313
314# Testsuites knobs
315
Garrett Cooper92dfd5b2010-11-16 20:02:26 -0800316AC_ARG_WITH([open-posix-testsuite],
317 [AC_HELP_STRING([--with-open-posix-testsuite],
Joerg Vehlow9e7f5682019-11-13 11:41:49 +0100318 [compile and install the open posix testsuite])],
319 [with_open_posix_testsuite=$withval],
320 [with_open_posix_testsuite=no]
Garrett Cooper92dfd5b2010-11-16 20:02:26 -0800321)
322if test "x$with_open_posix_testsuite" = xyes; then
323 AC_SUBST([WITH_OPEN_POSIX_TESTSUITE],["yes"])
324else
325 AC_SUBST([WITH_OPEN_POSIX_TESTSUITE],["no"])
326fi
327
Joerg Vehlow9e7f5682019-11-13 11:41:49 +0100328# TODO: testcases/realtime requires bash and python.
329AC_ARG_WITH([realtime-testsuite],
330 [AC_HELP_STRING([--with-realtime-testsuite],
331 [compile and install the realtime testsuite])],
332 [with_realtime_testsuite=$withval],
333 [with_realtime_testsuite=no]
334)
335
Garrett Cooper92dfd5b2010-11-16 20:02:26 -0800336if test "x$with_realtime_testsuite" = xyes; then
337 AC_SUBST([WITH_REALTIME_TESTSUITE],["yes"])
Garrett Cooper52288dc2010-11-16 22:01:43 -0800338 # Run configure on testcases/realtime as well.
339 AC_CONFIG_SUBDIRS([testcases/realtime])
Garrett Cooper92dfd5b2010-11-16 20:02:26 -0800340else
341 AC_SUBST([WITH_REALTIME_TESTSUITE],["no"])
342fi
343
Li Wang8d47fa72017-10-26 16:51:15 +0800344AC_CONFIG_COMMANDS([syscalls.h], [cd ${ac_top_srcdir}/include/lapi/syscalls; ./regen.sh])
Cyril Hrubisa07008f2017-06-14 17:25:09 +0200345
Petr Vorela50338c2019-04-12 15:48:53 +0200346# custom functions
Petr Vorel452c5132020-01-29 19:26:27 +0100347# NOTE: don't create custom functions for simple checks, put them into this file
Petr Vorela50338c2019-04-12 15:48:53 +0200348LTP_CHECK_ACL_SUPPORT
349LTP_CHECK_ATOMIC_MEMORY_MODEL
350LTP_CHECK_BUILTIN_CLEAR_CACHE
yaberauneyaef772532009-10-09 17:55:43 +0000351LTP_CHECK_CAPABILITY_SUPPORT
Petr Vorela50338c2019-04-12 15:48:53 +0200352LTP_CHECK_CC_WARN_OLDSTYLE
353LTP_CHECK_CLONE_SUPPORTS_7_ARGS
yaberauneyaef772532009-10-09 17:55:43 +0000354LTP_CHECK_CRYPTO
Petr Vorela50338c2019-04-12 15:48:53 +0200355LTP_CHECK_FORTIFY_SOURCE
Petr Vorela50338c2019-04-12 15:48:53 +0200356LTP_CHECK_KERNEL_DEVEL
357LTP_CHECK_KEYUTILS_SUPPORT
Petr Vorel553ca8e2019-11-01 14:48:16 +0100358LTP_CHECK_LIBMNL
yaberauneyaef772532009-10-09 17:55:43 +0000359LTP_CHECK_LINUX_PTRACE
Petr Vorela50338c2019-04-12 15:48:53 +0200360LTP_CHECK_LINUXRANDOM
Petr Vorela50338c2019-04-12 15:48:53 +0200361LTP_CHECK_MREMAP_FIXED
Mike Frysinger9bd940b2010-08-17 17:22:03 -0400362LTP_CHECK_NOMMU_LINUX
yaberauneyaef772532009-10-09 17:55:43 +0000363LTP_CHECK_SELINUX
Jan Stancekf61391e2016-04-13 13:09:23 +0200364LTP_CHECK_SYNC_ADD_AND_FETCH
Petr Vorela50338c2019-04-12 15:48:53 +0200365LTP_CHECK_SYSCALL_EVENTFD
366LTP_CHECK_SYSCALL_FCNTL
Xing Gua3bfea22014-06-17 15:26:30 +0800367
Petr Vorelf4176722018-02-07 11:29:42 +0100368if test "x$with_numa" = xyes; then
369 LTP_CHECK_SYSCALL_NUMA
Petr Vorel2faab872021-01-21 10:38:19 +0100370 numa_error_msg="test requires libnuma development packages with LIBNUMA_API_VERSION >= 2"
Petr Vorelf4176722018-02-07 11:29:42 +0100371else
372 numa_error_msg="NUMA support was disabled during build"
373fi
374AC_DEFINE_UNQUOTED(NUMA_ERROR_MSG, ["$numa_error_msg"], [Error message when no NUMA support])
375
Christian Amanne3c82be2019-06-14 09:28:27 +0200376
Petr Vorela50338c2019-04-12 15:48:53 +0200377LTP_CHECK_SYSCALL_PERF_EVENT_OPEN
Petr Vorela50338c2019-04-12 15:48:53 +0200378LTP_CHECK_SYSCALL_SIGNALFD
379LTP_CHECK_SYSCALL_UTIMENSAT
380LTP_CHECK_TASKSTATS
Petr Vorela50338c2019-04-12 15:48:53 +0200381test "x$with_tirpc" = xyes && LTP_CHECK_TIRPC
Petr Vorela50338c2019-04-12 15:48:53 +0200382LTP_DETECT_HOST_CPU
383
subrata_modak3d8666c2008-11-11 08:31:27 +0000384AC_OUTPUT