summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/strace/strace-4.8/strace-add-configure-options.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/strace/strace-4.8/strace-add-configure-options.patch')
-rw-r--r--meta/recipes-devtools/strace/strace-4.8/strace-add-configure-options.patch60
1 files changed, 60 insertions, 0 deletions
diff --git a/meta/recipes-devtools/strace/strace-4.8/strace-add-configure-options.patch b/meta/recipes-devtools/strace/strace-4.8/strace-add-configure-options.patch
new file mode 100644
index 0000000000..27266d9052
--- /dev/null
+++ b/meta/recipes-devtools/strace/strace-4.8/strace-add-configure-options.patch
@@ -0,0 +1,60 @@
1Add options "aio" and "acl" to enable/disable libaio and acl support.
2
3Upstream-Status: Pending
4
5Signed-off-by: Kai Kang <kai.kang@windriver.com>
6
7--- strace-4.8/configure.ac.orig 2013-06-21 15:37:52.145892182 +0800
8+++ strace-4.8/configure.ac 2013-06-21 15:45:49.029909004 +0800
9@@ -219,7 +219,6 @@ AC_CHECK_HEADERS(m4_normalize([
10 netinet/sctp.h
11 poll.h
12 stropts.h
13- sys/acl.h
14 sys/asynch.h
15 sys/conf.h
16 sys/epoll.h
17@@ -231,6 +230,19 @@ AC_CHECK_HEADERS(m4_normalize([
18 sys/uio.h
19 sys/vfs.h
20 ]))
21+
22+AC_ARG_ENABLE([acl],
23+ [AS_HELP_STRING([--enable-acl], [turn on acl support])],
24+ [case $enableval in
25+ yes)
26+ AC_CHECK_HEADERS([sys/acl.h])
27+ ;;
28+ no) ;;
29+ *) AC_MSG_ERROR([bad value $enableval for aio option]) ;;
30+ esac]
31+
32+)
33+
34 AC_CHECK_HEADERS([linux/icmp.h linux/in6.h linux/netlink.h linux/if_packet.h],
35 [], [], [#include <stddef.h>
36 #include <sys/socket.h>
37@@ -301,10 +313,19 @@ AC_CHECK_SIZEOF([long])
38 AC_CHECK_SIZEOF([long long])
39 AC_CHECK_SIZEOF([rlim_t],,[#include <sys/resource.h>])
40
41-AC_CHECK_HEADERS([libaio.h], [
42- AC_CHECK_MEMBERS([struct iocb.u.c.flags],,, [#include <libaio.h>])
43- AC_CHECK_DECLS([IO_CMD_PWRITE, IO_CMD_PWRITEV],,, [#include <libaio.h>])
44-])
45+AC_ARG_ENABLE([aio],
46+ [AS_HELP_STRING([--enable-aio], [turn on libaio support])],
47+ [case $enableval in
48+ yes)
49+ AC_CHECK_HEADERS([libaio.h], [
50+ AC_CHECK_MEMBERS([struct iocb.u.c.flags],,, [#include <libaio.h>])
51+ AC_CHECK_DECLS([IO_CMD_PWRITE, IO_CMD_PWRITEV],,, [#include <libaio.h>])
52+ ])
53+ ;;
54+ no) ;;
55+ *) AC_MSG_ERROR([bad value $enableval for aio option]) ;;
56+ esac]
57+)
58
59 AC_PATH_PROG([PERL], [perl])
60