Skip to content

Commit

Permalink
Require at least openssl 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen committed Aug 9, 2018
1 parent 105c822 commit 85b874c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ fi
# Default
PKG_LIBS="-lssl -lcrypto $SASL_LIBS"

# Use pkg-config if available
if [ $(command -v pkg-config) ]; then
# Use pkg-config if openssl 1.0 is available
pkg-config ${PKG_CONFIG_NAME} --atleast-version=1.0
if [ $? -eq 0 ]; then
PKGCONFIG_CFLAGS="$(pkg-config --cflags --silence-errors ${PKG_CONFIG_NAME})"
PKGCONFIG_LIBS="$(pkg-config --libs ${PKG_CONFIG_NAME})"
fi
Expand Down

0 comments on commit 85b874c

Please sign in to comment.