Add pcre as a configure step dependency to fileinfo (#15349)

The pcre is a required dependency in fileinfo extenstion. This marks it
as a configure step dependency for consistency with other extensions
and to have extensions properly sorted in the generated
internal_functions* files.
This commit is contained in:
Peter Kokot 2024-08-12 00:17:29 +02:00 committed by GitHub
parent 693ec809b9
commit 634708a14f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View file

@ -41,6 +41,7 @@ if test "$PHP_FILEINFO" != "no"; then
[$ext_shared],,
[-I@ext_srcdir@/libmagic])
PHP_ADD_BUILD_DIR([$ext_builddir/libmagic])
PHP_ADD_EXTENSION_DEP(fileinfo, pcre)
AC_CHECK_FUNCS([utimes strndup])

View file

@ -11,5 +11,6 @@ if (PHP_FILEINFO != 'no') {
strcasestr.c buffer.c is_csv.c";
EXTENSION('fileinfo', 'fileinfo.c php_libmagic.c', true, "/I" + configure_module_dirname + "/libmagic /I" + configure_module_dirname);
ADD_EXTENSION_DEP('fileinfo', 'pcre');
ADD_SOURCES(configure_module_dirname + '\\libmagic', LIBMAGIC_SOURCES, "fileinfo");
}