How to compile curl with latest openssl (1.0.2) Debian
<p>I am trying to compile curl with openssl 1.0.2 on a debian jessie machine. </p>

<pre><code>$ which openssl
/usr/bin/openssl
$ openssl version
OpenSSL 1.0.2h  3 May 2016
$ openssl version -d
OPENSSLDIR: "/usr/lib/ssl"
</code></pre>

<p>I tried configuring curl in many different ways, for example</p>

<pre><code>$ ./configure --with-ssl=/usr/lib/ssl
$ ./configure --with-ssl=/usr/bin/openssl // Makes no sense anyways
</code></pre>

<p>Now still, whatever I do, it does not compile with the right openssl version:</p>

<pre><code>$ curl --version
curl 7.49.1 (x86_64-pc-linux-gnu) libcurl/7.49.1 OpenSSL/1.0.1t [...]
</code></pre>

<p>How do I find out, which path to set?
Could it be, that I have to compile OpenSSL with the option "shared"? I installed openssl via apt-get.</p>

<p><strong>UPDATE</strong></p>

<p>So what I eventually did was, to add Debian Stretch Packages to <code>/etc/apt/sources.list</code> and installed OpenSSL 1.0.2, then libssl1.0.2 and finally libcurl4-openssl-dev.</p>

<p>After doing so, <code>curl -V</code> is not indicating any OpenSSL, but it works fine even with ALPN support, why I originally did all of this.</p>

<p>Thanks for any help.</p>