Fixed finding CURL on systems with multiarch support
authorCarsten Brandt <mail@cebe.cc>
Fri, 14 Jul 2017 11:45:33 +0000 (13:45 +0200)
committerJoe Watkins <krakjoe@php.net>
Tue, 25 Jul 2017 05:58:11 +0000 (06:58 +0100)
commit3fd7d819b8ea164bdf255cddcd0a1b1d156f4a3b
tree3add0c8a8b005201f25e2f575b9eb1118e3420aa
parent69b48f83dfc287a8430cf8e993d0937c5128623f
Fixed finding CURL on systems with multiarch support

fixes https://bugs.php.net/bug.php?id=74125

This commit makes the cURL config script aware of debian/ubuntu
[multiarch support][1] which installs architecture specific
headers in a different location.

It checks whether the `dpkg-architecture` script exists and is
executeable, if that is the case, the multiarch architecture is
detected by calling `dpkg-architecture -qDEB_HOST_MULTIARCH` as
documented in [debian multiarch implementation docs][2]:

> `/usr/include/<triplet>`: used for arch-varying headers

[1]: https://wiki.debian.org/Multiarch
[2]: https://wiki.debian.org/Multiarch/Implementation
NEWS
ext/curl/config.m4