PHP: Try to detect broken libcurl early.
PHP: Try to detect broken libcurl early.
Sync curl build from sources logic.
Revert "Sync curl build from sources logic."

This reverts commit 62d0c527d9f758782dcfae9cb80977b9dc511cd2.
Do not force cURL rebuild on systems with OpenSSL not built from sources.
Remove duplicate code.
Revert "Revert "Sync curl build from sources logic.""

This reverts commit bf201d75ff002dd0cd2066a423b53c2132690bea.
Do not touch cURL on Ubuntu.
Remove Ubuntu specific line.
Merge branch 'refs/heads/master' into 2.3.x-dev