also build mint-lib if we only have libgnurl

This commit is contained in:
Christian Grothoff 2015-08-14 14:44:01 +02:00
parent 911dac83cd
commit 3a3afcb119
2 changed files with 13 additions and 1 deletions

View File

@ -10,6 +10,10 @@ else
SUBDIRS = include util $(PQ_DIR) mintdb mint mint-tools
if HAVE_LIBCURL
SUBDIRS += mint-lib
else
if HAVE_LIBGNURL
SUBDIRS += mint-lib
endif
endif
endif

View File

@ -27,7 +27,15 @@ libtalermint_la_SOURCES = \
libtalermint_la_LIBADD = \
-lgnunetutil \
-ljansson \
-lcurl $(XLIB)
$(XLIB)
if HAVE_LIBCURL
libtalermint_la_LIBADD += -lcurl
else
if HAVE_LIBGNURL
libtalermint_la_LIBADD += -lgnurl
endif
endif
check_PROGRAMS = \
test_mint_api