[Rpm-maint] [rpm-software-management/rpm] Add OpenSSL crypto backend (#129)
Igor Gnatenko
notifications at github.com
Wed Jan 18 16:00:43 UTC 2017
ignatenkobrain commented on this pull request.
> +WITH_OPENSSL_INCLUDE=
+WITH_OPENSSL_LIB=
+if test "$with_openssl" = yes; then
+# If we have pkgconfig make sure CPPFLAGS are setup correctly for the OpenSSL
+# -I include path.
+AC_PATH_TOOL([PKGCONFIG], [pkg-config], [no], [$PATH:/usr/bin:/usr/local/bin])
+if test "x$PKGCONFIG" != "xno"; then
+ CPPFLAGS="$CPPFLAGS $($PKGCONFIG --cflags libcrypto)"
+fi
+
+AC_CHECK_HEADERS([openssl/evp.h], [], [
+ AC_MSG_ERROR([missing required OpenSSL header])
+])
+
+AC_CHECK_LIB(crypto, EVP_DigestInit_ex, [
+ WITH_OPENSSL_LIB=$($PKGCONFIG --libs libcrypto)
I think this will crash if --with-openssl is set, but pkg-config is not found
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/129#pullrequestreview-17256328
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20170118/6bc70c04/attachment-0001.html>
More information about the Rpm-maint
mailing list