mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 13:56:01 +03:00
Use of AC_CHECK_FILE prevents cross compilation.
The use of AC_CHECK_FILE causes the following error when cross compiling: configure: error: cannot check for file existence when cross compiling The solution is to check for the file directly instead of using a macro. Resolves: #1983
This commit is contained in:
parent
a9e9da8694
commit
8af8cad907
@ -55,8 +55,8 @@ AC_PROG_MAKE_SET
|
|||||||
# AX_CXX_COMPILE_STDCXX_11(,mandatory)
|
# AX_CXX_COMPILE_STDCXX_11(,mandatory)
|
||||||
|
|
||||||
# Check for libinjection
|
# Check for libinjection
|
||||||
AC_CHECK_FILE("others/libinjection/src/libinjection_html5.c", HAS_LIBINJECTION=1)
|
if ! test -f "others/libinjection/src/libinjection_html5.c"; then
|
||||||
test "x$HAS_LIBINJECTION" = "x" && AC_MSG_ERROR([\
|
AC_MSG_ERROR([\
|
||||||
|
|
||||||
|
|
||||||
libInjection was not found within ModSecurity source directory.
|
libInjection was not found within ModSecurity source directory.
|
||||||
@ -71,6 +71,7 @@ test "x$HAS_LIBINJECTION" = "x" && AC_MSG_ERROR([\
|
|||||||
$ git submodule update
|
$ git submodule update
|
||||||
|
|
||||||
])
|
])
|
||||||
|
fi
|
||||||
# Libinjection version
|
# Libinjection version
|
||||||
AC_DEFUN([LIBINJECTION_VERSION], m4_esyscmd_s(cd "others/libinjection" && git describe && cd ../..))
|
AC_DEFUN([LIBINJECTION_VERSION], m4_esyscmd_s(cd "others/libinjection" && git describe && cd ../..))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user