mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-09 08:16:58 +08:00
Merge branch 'gperf' into 'master'
build: add gperf check See merge request openconnect/ocserv!466
This commit is contained in:
@@ -49,7 +49,7 @@ apt-get install -y ronn
|
||||
## Fedora/RHEL:
|
||||
```
|
||||
# Basic build tools
|
||||
yum install -y install make automake gcc pkgconf-pkg-config
|
||||
yum install -y make automake gcc pkgconf-pkg-config
|
||||
# Required
|
||||
yum install -y gnutls-devel libev-devel readline-devel
|
||||
# Optional functionality and testing
|
||||
@@ -84,7 +84,7 @@ Note that the code coverage reported does not currently include tests which
|
||||
are run within docker.
|
||||
|
||||
In addition to the prerequisites listed above, building from git requires
|
||||
the following packages: autoconf, automake, and xz.
|
||||
the following packages: autoconf, automake, gperf, and xz.
|
||||
|
||||
To build from the git repository use:
|
||||
```
|
||||
|
||||
12
configure.ac
12
configure.ac
@@ -22,6 +22,18 @@ if test "$GCC" = "yes" && ! expr "$CC" : clang >/dev/null 2>&1;then
|
||||
CFLAGS="$CFLAGS -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-missing-field-initializers -Wno-implicit-fallthrough -Wno-stringop-truncation"
|
||||
fi
|
||||
|
||||
AC_PATH_PROG([GPERF], [gperf])
|
||||
|
||||
if test -z "$GPERF"; then
|
||||
GPERF_FILE="src/http-heads.h"
|
||||
if test ! -f "$GPERF_FILE"; then
|
||||
AC_MSG_ERROR([[
|
||||
***
|
||||
*** GNU gperf was not found. It is required to generate $GPERF_FILE
|
||||
*** ]])
|
||||
fi
|
||||
fi
|
||||
|
||||
AC_CHECK_PROGS([IPCALC], [ipcalc ipcalc-ng], [:])
|
||||
|
||||
if test x"$IPCALC" = "x:"; then
|
||||
|
||||
Reference in New Issue
Block a user