diff options
author | Daniel Golle <daniel@makrotopia.org> | 2016-05-07 16:48:27 +0000 |
---|---|---|
committer | Daniel Golle <daniel@makrotopia.org> | 2016-05-07 16:48:27 +0000 |
commit | 932908a83c7be5d6928e4dab794ecb8dff2cbe90 (patch) | |
tree | 86c23c59c810ae3af3a44aebc2c7a941869d434a /src/curl | |
parent | 9f79f8dc3087234641ac623097ce12ad7838bcb4 (diff) | |
download | gnunet-932908a83c7be5d6928e4dab794ecb8dff2cbe90.tar.gz gnunet-932908a83c7be5d6928e4dab794ecb8dff2cbe90.zip |
curl: fix linking against libgnurl/libcurl
Diffstat (limited to 'src/curl')
-rw-r--r-- | src/curl/Makefile.am | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/curl/Makefile.am b/src/curl/Makefile.am index c716abe52..af8b64078 100644 --- a/src/curl/Makefile.am +++ b/src/curl/Makefile.am | |||
@@ -6,6 +6,16 @@ if USE_COVERAGE | |||
6 | XLIB = -lgcov | 6 | XLIB = -lgcov |
7 | endif | 7 | endif |
8 | 8 | ||
9 | if HAVE_LIBGNURL | ||
10 | LIB_GNURL=@LIBGNURL@ | ||
11 | CPP_GNURL=@LIBGNURL_CPPFLAGS@ | ||
12 | else | ||
13 | if HAVE_LIBCURL | ||
14 | LIB_GNURL=@LIBCURL@ | ||
15 | CPP_GNURL=@LIBCURL_CPPFLAGS@ | ||
16 | endif | ||
17 | endif | ||
18 | |||
9 | lib_LTLIBRARIES = \ | 19 | lib_LTLIBRARIES = \ |
10 | libgnunetcurl.la | 20 | libgnunetcurl.la |
11 | 21 | ||
@@ -18,8 +28,10 @@ libgnunetcurl_la_SOURCES = \ | |||
18 | libgnunetcurl_la_LIBADD = \ | 28 | libgnunetcurl_la_LIBADD = \ |
19 | $(top_builddir)/src/util/libgnunetutil.la \ | 29 | $(top_builddir)/src/util/libgnunetutil.la \ |
20 | -ljansson \ | 30 | -ljansson \ |
21 | -lcurl \ | 31 | $(LIB_GNURL) \ |
22 | $(XLIB) | 32 | $(XLIB) |
33 | libgnunetcurl_la_CPPFLAGS = \ | ||
34 | $(CPP_GNURL) $(AM_CPPFLAGS) | ||
23 | 35 | ||
24 | #check_PROGRAMS = \ | 36 | #check_PROGRAMS = \ |
25 | # test_curl | 37 | # test_curl |