Skip to contentSkip to conversation

xtables-addons: build fix for --without-kbuild

PATCH New Natanael Copa 2 participants 3 messages Nov 3, 2009 netfilter

lore
Share & tools
lore
#0 lore raw

Hi,

The --without-build is useful when your distro has multiple kernels but you want a common package for userspace stuff. Patch fixes the configure script.

Thanks!

-nc

#1 lore raw

PATCH 1/1 build: fix --without-kbuild

Patch fixes ./configure --without-kbuild

---
 configure.ac |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)
configure.ac +9 -2
index 3475611..3b84fb0 100644
@@ -9,11 +9,18 @@ AM_PROG_CC_C_O
 AC_DISABLE_STATIC
 AC_PROG_LIBTOOL
 
-kbuilddir="/lib/modules/$(uname -r)/build";
 AC_ARG_WITH([kbuild],
 	AS_HELP_STRING([--with-kbuild=PATH],
 	[Path to kernel build directory [[/lib/modules/CURRENT/build]]]),
-	[kbuilddir="$withval"])
+	[kbuilddir="$withval"],
+	[kbuilddir="/lib/modules/$(uname -r)/build"])
+#
+# check for --without-kbuild
+#
+if [[ "$kbuilddir" = no ]]; then
+	kbuilddir=
+fi
+
 AC_ARG_WITH([ksource],,[ksourcedir="$withval"])
 AC_ARG_WITH([xtables],
 	AS_HELP_STRING([--with-xtables=PATH],
Signature · 1 line
1.6.5
#2 lore raw
In reply to Natanael Copa
Quoted 5 lines · Natanael Copa

Hi,

The --without-build is useful when your distro has multiple kernels but you want a common package for userspace stuff. Patch fixes the configure script.

Applied, thanks.