mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-09-07 05:05:12 +02:00
build: consolidate xtables_CFLAGS and libxtables_CFLAGS
There was one variable too much around.
This commit is contained in:
@@ -10,8 +10,8 @@ CC = @CC@
|
||||
CCLD = ${CC}
|
||||
|
||||
regular_CFLAGS = @regular_CFLAGS@
|
||||
xtables_CFLAGS = @xtables_CFLAGS@
|
||||
AM_CFLAGS = ${regular_CFLAGS} ${xtables_CFLAGS}
|
||||
libxtables_CFLAGS = @libxtables_CFLAGS@
|
||||
AM_CFLAGS = ${regular_CFLAGS} ${libxtables_CFLAGS}
|
||||
AM_DEPFLAGS = -Wp,-MMD,$(@D)/.$(@F).d,-MT,$@
|
||||
|
||||
AM_DEFAULT_VERBOSITY = 0
|
||||
|
@@ -39,10 +39,10 @@ if [[ -n "$xtables_location" ]]; then
|
||||
AC_MSG_CHECKING([xtables.h presence])
|
||||
if [[ -f "$xtables_location/xtables.h" ]]; then
|
||||
AC_MSG_RESULT([$xtables_location/xtables.h])
|
||||
xtables_CFLAGS="-I $xtables_location";
|
||||
libxtables_CFLAGS="-I $xtables_location";
|
||||
elif [[ -f "$xtables_location/include/xtables.h" ]]; then
|
||||
AC_MSG_RESULT([$xtables_location/include/xtables.h])
|
||||
xtables_CFLAGS="-I $xtables_location/include";
|
||||
libxtables_CFLAGS="-I $xtables_location/include";
|
||||
fi;
|
||||
if [[ -z "$xtables_CFLAGS" ]]; then
|
||||
if [[ -f "$includedir/xtables.h" ]]; then
|
||||
@@ -51,6 +51,9 @@ if [[ -n "$xtables_location" ]]; then
|
||||
AC_MSG_RESULT([no])
|
||||
fi;
|
||||
fi;
|
||||
libxtables_LIBS="-lxtables";
|
||||
AC_SUBST([libxtables_CFLAGS])
|
||||
AC_SUBST([libxtables_LIBS])
|
||||
else
|
||||
PKG_CHECK_MODULES([libxtables], [xtables >= 1.4.3])
|
||||
fi;
|
||||
@@ -104,7 +107,6 @@ elif test \( "$kmajor" -lt 2 -o "$kminor" -lt 6 -o "$kmicro" -lt 17 \) -o \
|
||||
fi;
|
||||
|
||||
AC_SUBST([regular_CFLAGS])
|
||||
AC_SUBST([xtables_CFLAGS])
|
||||
AC_SUBST([kinclude_CFLAGS])
|
||||
AC_SUBST([kbuilddir])
|
||||
AC_SUBST([ksourcedir])
|
||||
|
Reference in New Issue
Block a user