diff options
author | Tobias Brunner <tobias@strongswan.org> | 2009-07-16 14:59:30 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2009-07-16 15:15:40 +0200 |
commit | 69fc7820000d4e0081ec0db1180348208c785bd4 (patch) | |
tree | f873a8281011a5532c97ae69626c4745ed52d93c | |
parent | 88957f54f2e1723fe2faf4c48dd17d4fb3e403f5 (diff) | |
download | strongswan-69fc7820000d4e0081ec0db1180348208c785bd4.tar.bz2 strongswan-69fc7820000d4e0081ec0db1180348208c785bd4.tar.xz |
Check for gperf version added to configure script.
-rw-r--r-- | configure.in | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/configure.in b/configure.in index 2d01ba7c9..aefa2303e 100644 --- a/configure.in +++ b/configure.in @@ -763,10 +763,23 @@ dnl ========================= AC_PROG_INSTALL AC_PROG_LIBTOOL +AC_PROG_AWK AC_PROG_LEX AC_PROG_YACC -AC_PATH_PROG([GPERF], [gperf], [], [$PATH:/bin:/usr/bin:/usr/local/bin]) AC_PATH_PROG([PERL], [perl], [], [$PATH:/bin:/usr/bin:/usr/local/bin]) +AC_PATH_PROG([GPERF], [gperf], [], [$PATH:/bin:/usr/bin:/usr/local/bin]) + +dnl because gperf is not needed by end-users we just report it but do not abort on failure +AC_MSG_CHECKING([gperf version >= 3.0.0]) +if test -x "$GPERF"; then + if test "`$GPERF --version | $AWK -F' ' '/^GNU gperf/ { print $3 }' | $AWK -F. '{ print $1 }'`" -ge "3"; then + AC_MSG_RESULT([yes]) + else + AC_MSG_RESULT([no]) + fi +else + AC_MSG_RESULT([not found]) +fi dnl ========================= dnl dependency calculation |