summaryrefslogtreecommitdiff
path: root/Makerules
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2014-05-07 13:42:34 +0200
committerTor Andersson <tor.andersson@artifex.com>2014-05-07 13:42:34 +0200
commit6778237e119ba28f4d8c1b3293ac9a148b408771 (patch)
tree926af43581af9c2332ec324ae4ade41fd42171f2 /Makerules
parent6d92ef42d2c04e7c0aac9fe5b7da8e8771d7bd99 (diff)
downloadmupdf-6778237e119ba28f4d8c1b3293ac9a148b408771.tar.xz
Fix 694428: use system CURL library if available.
Diffstat (limited to 'Makerules')
-rw-r--r--Makerules7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makerules b/Makerules
index d52d5591..6b1b3afd 100644
--- a/Makerules
+++ b/Makerules
@@ -63,8 +63,13 @@ SYS_OPENSSL_CFLAGS = -DHAVE_OPENSSL $(shell pkg-config --cflags libcrypto)
SYS_OPENSSL_LIBS = $(shell pkg-config --libs libcrypto)
endif
-# TODO: use pkg-config for system CURL
+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)
+else
SYS_CURL_DEPS = -lpthread -lrt
+endif
SYS_X11_CFLAGS = $(shell pkg-config --cflags x11 xext)
SYS_X11_LIBS = $(shell pkg-config --libs x11 xext)