cmus: fix configure checks against host files
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 29 Jan 2014 12:58:17 +0000 (12:58 +0000)
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 29 Jan 2014 12:58:17 +0000 (12:58 +0000)
cmuses configure checks an absolute path for the existence of a kernel
header. This results in a check against the hosts version of
/usr/include/sys/soundcard.h, which potentially does not exists (at
least on my system).

This patch supersedes http://patchwork.openwrt.org/patch/2713/.

Signed-off-by: Mathias Kresin <openwrt@kresin.me>
git-svn-id: svn://svn.openwrt.org/openwrt/packages@39417 3c298f89-4303-0410-b956-a3cf2f4a3e73

sound/cmus/patches/020-check_header_sys_soundcard.patch [new file with mode: 0644]

diff --git a/sound/cmus/patches/020-check_header_sys_soundcard.patch b/sound/cmus/patches/020-check_header_sys_soundcard.patch
new file mode 100644 (file)
index 0000000..74f622e
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/configure        2011-04-23 22:35:36.000000000 +0200
++++ b/configure        2014-01-23 15:50:42.139304856 +0100
+@@ -247,7 +247,7 @@
+       OSS_CFLAGS=""
+       OSS_LIBS=""
+       msg_checking "for header <sys/soundcard.h>"
+-      if test -f /usr/include/sys/soundcard.h
++      if check_header sys/soundcard.h
+       then
+               msg_result "yes"
+               makefile_vars OSS_CFLAGS OSS_LIBS