builder instanceof MacOSBuilder) { FileSystem::replaceFileStr(SOURCE_PATH . '/php-src/ext/gettext/config.m4', 'AC_CHECK_LIB($GETTEXT_CHECK_IN_LIB', 'AC_CHECK_LIB(intl'); } return true; } /** * @throws WrongUsageException * @throws FileSystemException */ public function patchBeforeConfigure(): bool { if ($this->builder instanceof MacOSBuilder) { $frameworks = ' ' . $this->builder->getFrameworks(true) . ' '; FileSystem::replaceFileStr(SOURCE_PATH . '/php-src/configure', '-lintl', $this->getLibFilesString() . $frameworks); } return true; } }