php-src/ext/dl_test/config.m4
Peter Kokot 816aea797b
Autotools: Mark always-shared extensions with ext_shared variable (#15739)
This makes future config.m4 files changes simpler in case of adding
additional checks, macro calls etc. Or if these extensions configuration
would change at some point.
2024-09-04 23:28:29 +02:00

14 lines
349 B
Text

PHP_ARG_ENABLE([dl-test],
[whether to enable dl-test extension],
[AS_HELP_STRING([--enable-dl-test],
[Enable dl_test extension])])
if test "$PHP_DL_TEST" != "no"; then
dnl Always build as shared extension.
ext_shared=yes
PHP_NEW_EXTENSION([dl_test],
[dl_test.c],
[$ext_shared],,
[-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1])
fi