Merge branch 'dfsg_clean'
[ltp-debian.git] / configure.ac
blob8a3dbb807b2df51294ba5e8b8f0968c647c149b5
1 AC_PREREQ([2.61])
2 AC_INIT([ltp], [LTP_VERSION], [ltp-results@lists.sourceforge.net])
3 AC_CONFIG_AUX_DIR([.])
4 AM_INIT_AUTOMAKE
5 AC_CONFIG_HEADERS([include/config.h])
6 AC_CONFIG_FILES([ \
7     include/mk/config.mk \
8     lib/ltp.pc \
9     ltp-devel.spec \
10     m4/Makefile \
11     README.ltp-devel \
14 AM_CONDITIONAL(CROSS_COMPILATION, test x$cross_compiling = xyes)
16 AC_CANONICAL_HOST
18 AC_PROG_CC
19 # <= autoconf 2.61 doesn't have AC_PROG_AR, but 2.63 has it. Not sure about
20 # 2.62.
21 AC_DEFUN([AC_PROG_AR], [AC_CHECK_TOOL(AR, ar, :)])
22 AC_PROG_AR
23 AC_PROG_LEX
24 AC_PROG_RANLIB
25 AC_PROG_YACC
27 AC_PREFIX_DEFAULT(/opt/ltp)
29 AC_CHECK_HEADERS_ONCE([ \
30     dmapi.h \
31     ifaddrs.h \
32     libaio.h \
33     mm.h \
34     linux/genetlink.h \
35     linux/module.h \
36     linux/netlink.h \
37     sys/acl.h \
38     sys/epoll.h \
39     sys/inotify.h \
40     sys/jfsdmapi.h \
41     sys/prctl.h \
44 # open_hpi_testsuite does NOT fit cleanly in the build. BLAH.
45 #AC_CONFIG_SUBDIRS([ \
46 #    testcases/open_hpi_testsuite/ \
47 #    testcases/kernel/syscalls/pcllib/ \
48 #])
50 AC_CONFIG_SUBDIRS([ \
51     testcases/kernel/syscalls/pcllib/ \
54 LTP_CHECK_CAPABILITY_SUPPORT
55 LTP_CHECK_CRYPTO
56 LTP_CHECK_LINUX_PTRACE
57 LTP_CHECK_SELINUX
58 LTP_CHECK_SYSCALL_EVENTFD
59 LTP_CHECK_SYSCALL_MODIFY_LDT
60 LTP_CHECK_SYSCALL_NUMA
61 LTP_CHECK_SYSCALL_QUOTACTL
62 LTP_CHECK_SYSCALL_SIGNALFD
63 LTP_CHECK_SYSCALL_UNSHARE
64 LTP_CHECK_SYSCALL_SWAPONOFF
65 LTP_CHECK_TASKSTATS
67 AC_OUTPUT