mirror of
https://github.com/php/php-src.git
synced 2026-03-24 08:12:21 +01:00
Fix CS for fnmatch check (#14659)
This wraps the check when cross-compiling into AS_* macros and uses the default description template provided the AC_FUNC_FNMATCH. In such case the 3rd argument can be omitted. Also, newer Autoconf versions have replaced backticks with single quotes in AC_DEFINE* macros descriptions.
This commit is contained in:
@@ -275,17 +275,9 @@ else
|
||||
PHP_ADD_SOURCES(PHP_EXT_DIR(standard), crypt_freesec.c crypt_blowfish.c crypt_sha512.c crypt_sha256.c php_crypt_r.c)
|
||||
fi
|
||||
|
||||
if test "$cross_compiling" = yes ; then
|
||||
case $host_alias in
|
||||
*linux*)
|
||||
AC_DEFINE([HAVE_FNMATCH], 1,
|
||||
[Define to 1 if your system has a working POSIX `fnmatch'
|
||||
function.])
|
||||
;;
|
||||
esac
|
||||
else
|
||||
AC_FUNC_FNMATCH
|
||||
fi
|
||||
AS_VAR_IF([cross_compiling], [no], [AC_FUNC_FNMATCH],
|
||||
[AS_CASE([$host_alias], [*linux*],
|
||||
[AC_DEFINE([HAVE_FNMATCH], [1])])])
|
||||
|
||||
dnl
|
||||
dnl Check if there is a support means of creating a new process and defining
|
||||
|
||||
Reference in New Issue
Block a user