From: Daniel Stenberg Date: Wed, 28 Sep 2011 21:09:46 +0000 (+0200) Subject: configure openssl version check: handle lack of L suffix X-Git-Tag: curl-7_23_0~129 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=421a46027821119e2ab76d28016b9763b13848d2;p=thirdparty%2Fcurl.git configure openssl version check: handle lack of L suffix It seems some versions of the OpenSSL version defines don't come with L appended to the number, so let's deal with that nicely. --- diff --git a/m4/curl-openssl.m4 b/m4/curl-openssl.m4 index 9adc80fd5c..cd9074b02f 100644 --- a/m4/curl-openssl.m4 +++ b/m4/curl-openssl.m4 @@ -55,7 +55,7 @@ AC_DEFUN([CURL_CHECK_OPENSSL_API_HEADERS], [ tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5` tst_api=0x$tst_vermaj$tst_vermin$tst_verfix ;; - x11) + x11|x10) tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3` tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5` tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 7`