php-src/ext/exif/config.m4
Peter Kokot 9ee9c0e674
Sync exif dependency on mbstring extension as optional (#16062)
When decoding multibyte data in EXIF tags, the mbstring extension needs
to be enabled. In Autotools this is now synced with ZEND_MOD_OPTIONAL
in the C code, and on Windows it is now also optional.

The required dependency on mbstring extension was removed via
755c2cd0d8 which made the mbstring
extension optional dependency.
2024-09-26 09:53:58 +02:00

14 lines
449 B
Text

PHP_ARG_ENABLE([exif],
[whether to enable EXIF (metadata from images) support],
[AS_HELP_STRING([--enable-exif],
[Enable EXIF (metadata from images) support])])
if test "$PHP_EXIF" != "no"; then
AC_DEFINE([HAVE_EXIF], [1],
[Define to 1 if the PHP extension 'exif' is available.])
PHP_NEW_EXTENSION([exif],
[exif.c],
[$ext_shared],,
[-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1])
PHP_ADD_EXTENSION_DEP(exif, mbstring, true)
fi