summaryrefslogtreecommitdiff
path: root/Makerules
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@gmail.com>2016-11-16 02:40:03 +0800
committerSebastian Rasmussen <sebras@gmail.com>2016-11-17 01:19:11 +0800
commit2840bc523e71ffcadfc1394994b513b672d4dbe8 (patch)
treed986b77e63cd2e5d4f27cae9b1eb6e6b788464fa /Makerules
parent9b5735e5890f20e6345965c7f55e8f07505648de (diff)
downloadmupdf-2840bc523e71ffcadfc1394994b513b672d4dbe8.tar.xz
Detect openssl to support https when using curl.
Diffstat (limited to 'Makerules')
-rw-r--r--Makerules7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makerules b/Makerules
index fdee2d88..8a17d779 100644
--- a/Makerules
+++ b/Makerules
@@ -117,8 +117,13 @@ ifeq "$(shell pkg-config --exists libcurl && echo yes)" "yes"
HAVE_CURL = yes
SYS_CURL_CFLAGS = $(shell pkg-config --cflags libcurl)
SYS_CURL_LIBS = $(shell pkg-config --libs libcurl)
+ifeq "$(shell pkg-config --exists openssl && echo yes)" "yes"
+HAVE_OPENSSL_SSL = yes
+SYS_CURL_CFLAGS += $(shell pkg-config --cflags openssl)
+SYS_CURL_DEPS += $(shell pkg-config --libs openssl)
endif
-SYS_CURL_DEPS = -lpthread -lrt
+endif
+SYS_CURL_DEPS += -lpthread -lrt
ifeq "$(shell pkg-config --exists x11 xext && echo yes)" "yes"
HAVE_X11 = yes