diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2008-05-22 15:01:08 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2008-05-22 15:01:08 +0200 |
commit | ed50c346126f5385163d03bc9639d28ead6c8536 (patch) | |
tree | 7c48e25a4d4e08822d3b3fa9bd9b1c5bafcea305 /configure.in | |
parent | 5f19f9a20d4bde74e2f95a670d766fc98c7d8684 (diff) | |
download | conntrack-tools-ed50c346126f5385163d03bc9639d28ead6c8536.tar.gz conntrack-tools-ed50c346126f5385163d03bc9639d28ead6c8536.zip |
add flex version warning (better with >= 2.5.33)
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/configure.in b/configure.in index f3b8785..0a6b8fe 100644 --- a/configure.in +++ b/configure.in @@ -49,6 +49,21 @@ then exit 1 fi +AC_MSG_CHECKING(flex version) +flex_version=`$LEX --version | sed 's/version//g' | awk '/flex/ {print $2}'` +flex_major=`echo $flex_version| cut -d . -f 1` +flex_minor=`echo $flex_version| cut -d . -f 2` +flex_rev=`echo $flex_version| cut -d . -f 3` + +if test "$flex_major" -eq "2" && test "$flex_minor" -eq "5" && test "$flex_rev" -ge "33"; then + AC_MSG_RESULT([$flex_version. OK]) +else + AC_MSG_WARN([flex version $flex_version found. + Version 2.5.33 or greater is required. You may experience problems + while compilating the conntrack-tools. Please, consider to upgrade + flex.]) +fi + AC_CHECK_HEADERS([linux/capability.h],, [AC_MSG_ERROR([Cannot find linux/capabibility.h])]) # Checks for libraries. |