diff options
Diffstat (limited to 'Makerules')
-rw-r--r-- | Makerules | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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) |