1dnl 2dnl Check for arc4random on BSD systems 3dnl 4AC_CHECK_DECLS([arc4random_buf]) 5 6dnl 7dnl Check for CCRandomGenerateBytes 8dnl header absent in previous macOs releases 9dnl 10AC_CHECK_HEADERS([CommonCrypto/CommonRandom.h], [], [], 11[ 12 #include <sys/types.h> 13 #include <Availability.h> 14 #include <CommonCrypto/CommonCryptoError.h> 15]) 16 17dnl 18dnl Setup extension 19dnl 20PHP_NEW_EXTENSION(random, 21 random.c \ 22 csprng.c \ 23 engine_combinedlcg.c \ 24 engine_mt19937.c \ 25 engine_pcgoneseq128xslrr64.c \ 26 engine_xoshiro256starstar.c \ 27 engine_secure.c \ 28 engine_user.c \ 29 gammasection.c \ 30 randomizer.c, 31 no,, -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1) 32PHP_INSTALL_HEADERS([ext/random], [php_random.h php_random_csprng.h php_random_uint128.h]) 33