radvd: fix bashism in configure.ac
authorPeter Korsgaard <jacmet@sunsite.dk>
Mon, 18 Jun 2012 21:32:39 +0000 (23:32 +0200)
committerPeter Korsgaard <jacmet@sunsite.dk>
Mon, 18 Jun 2012 21:33:18 +0000 (23:33 +0200)
Fixes http://autobuild.buildroot.net/results/c3d0d04f8b3df63b3206cecf54dfdd67a4c7ccfb/build-end.log

Patch sent upstream.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/radvd/radvd-configure.ac-fix-bashism.patch [new file with mode: 0644]
package/radvd/radvd.mk

diff --git a/package/radvd/radvd-configure.ac-fix-bashism.patch b/package/radvd/radvd-configure.ac-fix-bashism.patch
new file mode 100644 (file)
index 0000000..a635cf8
--- /dev/null
@@ -0,0 +1,31 @@
+From ce34738107678cb76e3da34cd16dc9a34d8dd242 Mon Sep 17 00:00:00 2001
+From: Peter Korsgaard <jacmet@sunsite.dk>
+Date: Mon, 18 Jun 2012 23:12:05 +0200
+Subject: [PATCH] configure.ac: fix bashism
+
+'==' is a bashism, breaking configure on systems where /bin/sh isn't bash
+(E.G. Ubuntu).  Fixes:
+
+http://autobuild.buildroot.net/results/c3d0d04f8b3df63b3206cecf54dfdd67a4c7ccfb/build-end.log
+
+Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
+---
+ configure.ac |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index 3ab6667..c3b907b 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -176,7 +176,7 @@ dnl Checks for library functions.
+ AC_CHECK_FUNCS(getopt_long)
+ CONDITIONAL_SOURCES="device-${arch}.${OBJEXT} ${CONDITIONAL_SOURCES}"
+-if test x${arch} == xlinux ; then
++if test x${arch} = xlinux ; then
+       CONDITIONAL_SOURCES="privsep-${arch}.${OBJEXT} ${CONDITIONAL_SOURCES}"
+       AC_DEFINE(USE_PRIVSEP, 1, [Use privsep])
+ fi
+-- 
+1.7.10
+
index e63e8e030b13202dd7a45a4b224412849b07b24e..474a29925655ae647a7412100b692064d17885d8 100644 (file)
@@ -7,6 +7,7 @@
 RADVD_VERSION = 1.8.5
 RADVD_SITE = http://www.litech.org/radvd/dist
 RADVD_DEPENDENCIES = flex host-flex
+RADVD_AUTORECONF = YES
 
 define RADVD_INSTALL_INITSCRIPT
        $(INSTALL) -m 0755 package/radvd/S50radvd $(TARGET_DIR)/etc/init.d