mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-09-07 21:25:12 +02:00
build: fix --without-kbuild semantics
The --without-build option is useful when your distro has multiple kernels and/or you want to build a common package for userspace stuff only. Support this option properly.
This commit is contained in:

committed by
Jan Engelhardt

parent
6f8582eb5e
commit
7bd0157a9a
11
configure.ac
11
configure.ac
@@ -9,11 +9,18 @@ AM_PROG_CC_C_O
|
|||||||
AC_DISABLE_STATIC
|
AC_DISABLE_STATIC
|
||||||
AC_PROG_LIBTOOL
|
AC_PROG_LIBTOOL
|
||||||
|
|
||||||
kbuilddir="/lib/modules/$(uname -r)/build";
|
|
||||||
AC_ARG_WITH([kbuild],
|
AC_ARG_WITH([kbuild],
|
||||||
AS_HELP_STRING([--with-kbuild=PATH],
|
AS_HELP_STRING([--with-kbuild=PATH],
|
||||||
[Path to kernel build directory [[/lib/modules/CURRENT/build]]]),
|
[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([ksource],,[ksourcedir="$withval"])
|
||||||
AC_ARG_WITH([xtables],
|
AC_ARG_WITH([xtables],
|
||||||
AS_HELP_STRING([--with-xtables=PATH],
|
AS_HELP_STRING([--with-xtables=PATH],
|
||||||
|
Reference in New Issue
Block a user