summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/strace/strace-4.8
diff options
context:
space:
mode:
authorKai Kang <kai.kang@windriver.com>2013-06-21 16:12:21 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-06-21 13:24:49 +0100
commit302a039cda0b4dc8829844c15db846f055424f8b (patch)
treeeee93b3b01c96cfb9e1c958475565160518e8fcf /meta/recipes-devtools/strace/strace-4.8
parent4e5ba5f88285e94de4b78399306b07e0b57e7f03 (diff)
downloadpoky-302a039cda0b4dc8829844c15db846f055424f8b.tar.gz
strace: add configure options libaio and acl
Add strace configure options libaio and acl to enable or disable build with them. Then PACKAGECONFIG can be used to handle dependency. Set "libaio" as a default feature of PACKAGECONFIG. (From OE-Core rev: 9b6b7973a5e49fe9cd283c5b4af31e8a7940e7b5) Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/strace/strace-4.8')
-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