mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-09-01 23:05:11 +00:00
Merge Do not abuse AC_CHECK_FILE
AC_CHECK_FILE is meant to check for host files and therefore fails hard during cross compilation unless one supplies a cached check result. Here we want to know about the presence of a build system file though, so AC_CHECK_FILE is the wrong tool. This is part of https://bugs.debian.org/984582. MR: https://gitlab.com/apparmor/apparmor/-/merge_requests/728 Acked-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:
@@ -58,7 +58,7 @@ if test "$with_perl" = "yes"; then
|
|||||||
AC_PATH_PROG(PERL, perl)
|
AC_PATH_PROG(PERL, perl)
|
||||||
test -z "$PERL" && AC_MSG_ERROR([perl is required when enabling perl bindings])
|
test -z "$PERL" && AC_MSG_ERROR([perl is required when enabling perl bindings])
|
||||||
perl_includedir="`$PERL -e 'use Config; print $Config{archlib}'`/CORE"
|
perl_includedir="`$PERL -e 'use Config; print $Config{archlib}'`/CORE"
|
||||||
AC_CHECK_FILE($perl_includedir/perl.h, enable_perl=yes, enable_perl=no)
|
AS_IF([test -e "$perl_includedir/perl.h"], enable_perl=yes, enable_perl=no)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user