mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-09-07 21:25:12 +02:00
doc: improve documentation for using non-standard location of libxtables
How to use PKG_CONFIG_PATH. Get rid of remaining references to recently removed --with-xtables flag.
This commit is contained in:

committed by
Jan Engelhardt

parent
dac1b7d506
commit
1f8b91ce53
14
INSTALL
14
INSTALL
@@ -64,8 +64,13 @@ If you want to enable debugging, use
|
|||||||
(-O0 is used to turn off instruction reordering, which makes debugging
|
(-O0 is used to turn off instruction reordering, which makes debugging
|
||||||
much easier.)
|
much easier.)
|
||||||
|
|
||||||
To make use of a libxtables that is not in the default path, override
|
To make use of a libxtables that is not in the default path, either
|
||||||
the pkgconfig variables, for example:
|
|
||||||
|
a) append the location of the pkg-config files like:
|
||||||
|
|
||||||
|
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
|
||||||
|
|
||||||
|
b) override the default pkg-config variables, for example:
|
||||||
|
|
||||||
./configure libxtables_CFLAGS="-I../iptables/include" \
|
./configure libxtables_CFLAGS="-I../iptables/include" \
|
||||||
libxtables_LIBS="-L../iptables/.libs \
|
libxtables_LIBS="-L../iptables/.libs \
|
||||||
@@ -86,5 +91,6 @@ Note to distribution packagers
|
|||||||
Except for --with-kbuild, distributions should not have a need to
|
Except for --with-kbuild, distributions should not have a need to
|
||||||
supply any other flags (besides --prefix=/usr and perhaps
|
supply any other flags (besides --prefix=/usr and perhaps
|
||||||
--libdir=/usr/lib64, etc.) to configure when all prerequired packages
|
--libdir=/usr/lib64, etc.) to configure when all prerequired packages
|
||||||
are installed. If iptables-devel is installed, necessary headers should
|
are installed. If iptables-devel is installed, necessary headers
|
||||||
be in /usr/include, so --with-xtables is not needed.
|
should be in /usr/include, so PKG_CONFIG_PATH, libxtables_CFLAGS and
|
||||||
|
libxtables_LIBS variables are not needed.
|
||||||
|
@@ -29,7 +29,7 @@ AC_ARG_WITH([xtlibdir],
|
|||||||
|
|
||||||
PKG_CHECK_MODULES([libxtables], [xtables >= 1.4.3])
|
PKG_CHECK_MODULES([libxtables], [xtables >= 1.4.3])
|
||||||
AC_CHECK_HEADERS([linux/netfilter/x_tables.h], [],
|
AC_CHECK_HEADERS([linux/netfilter/x_tables.h], [],
|
||||||
[AC_MSG_ERROR([You need to have linux/netfilter/x_tables.h, either through /usr/include or the iptables directory (--with-xtables=)])])
|
[AC_MSG_ERROR([You need to have linux/netfilter/x_tables.h, see INSTALL file for details])])
|
||||||
|
|
||||||
regular_CFLAGS="-D_LARGEFILE_SOURCE=1 -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 \
|
regular_CFLAGS="-D_LARGEFILE_SOURCE=1 -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 \
|
||||||
-D_REENTRANT -Wall -Waggregate-return -Wmissing-declarations \
|
-D_REENTRANT -Wall -Waggregate-return -Wmissing-declarations \
|
||||||
|
Reference in New Issue
Block a user