summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Sowden <jeremy@azazel.net>2021-08-27 18:41:43 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2021-08-28 11:17:43 +0200
commit3229d620a9d38c52352792909ecdda7f676dd018 (patch)
treea98c86a6c1843e497ba9721c61b26b97266fa692
parent8d58e2fe4fde51bd0cf949172ec9086a4b8dde52 (diff)
build: remove broken code from autogen.sh.
The `include` function, which is intended to include a copy of the kernel's nfnetlink_log.h into the source distribution, has been broken since 2012 when the header file was moved from where the function expects to find it. The header is manually sync'ed when necessary. Signed-off-by: Jeremy Sowden <jeremy@azazel.net> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
-rwxr-xr-xautogen.sh35
1 files changed, 0 insertions, 35 deletions
diff --git a/autogen.sh b/autogen.sh
index 2b29953..5e1344a 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -1,39 +1,4 @@
#!/bin/sh -e
-include ()
-{
- # If we keep a copy of the kernel header in the SVN tree, we'll have
- # to worry about synchronization issues forever. Instead, we just copy
- # the headers that we need from the lastest kernel version at autogen
- # stage.
-
- INCLUDEDIR=${KERNEL_DIR:-/lib/modules/`uname -r`/build}/include/linux
- if [ -f $INCLUDEDIR/netfilter/nfnetlink_log.h ]
- then
- TARGET=include/libnetfilter_log/linux_nfnetlink_log.h
- echo "Copying nfnetlink_log.h to linux_nfnetlink_log.h"
- cp $INCLUDEDIR/netfilter/nfnetlink_log.h $TARGET
- TEMP=`tempfile`
- sed 's/linux\/netfilter\/nfnetlink.h/libnfnetlink\/linux_nfnetlink.h/g' $TARGET > $TEMP
- # Add aligned_u64 definition after #define _NFNETLINK_LOG_H
- awk '{
- if ( $0 == "#define _NFNETLINK_LOG_H" ) {
- print $0
- getline
- print $0
- print "#ifndef aligned_u64"
- print "#define aligned_u64 unsigned long long __attribute__((aligned(8)))"
- print "#endif"
- }
-
- print $0
- }' $TEMP > $TARGET
- else
- echo "can't find nfnetlink_log.h kernel file in $INCLUDEDIR"
- exit 1
- fi
-}
-
-[ "x$1" = "xdistrib" ] && include
autoreconf -fi
rm -Rf autom4te.cache