make lib(c|gn)url mandatory, cleaner makefiles
This commit is contained in:
parent
f8385eeabd
commit
7fad7cb716
12
configure.ac
12
configure.ac
@ -191,17 +191,17 @@ AS_IF([test "$gnurl" = 1],
|
|||||||
[AM_CONDITIONAL(HAVE_LIBGNURL, true)
|
[AM_CONDITIONAL(HAVE_LIBGNURL, true)
|
||||||
AC_DEFINE([HAVE_LIBGNURL],[1],[Have libgnurl])
|
AC_DEFINE([HAVE_LIBGNURL],[1],[Have libgnurl])
|
||||||
AM_CONDITIONAL(HAVE_LIBCURL, false)
|
AM_CONDITIONAL(HAVE_LIBCURL, false)
|
||||||
AC_DEFINE([HAVE_LIBCURL],[0],[Lacking libcurl])],
|
AC_DEFINE([HAVE_LIBCURL],[0],[Lacking libcurl])
|
||||||
|
[LIBGNURLCURL_LIBS="-lgnurl"]],
|
||||||
[AS_IF([test "$curl" = 1],
|
[AS_IF([test "$curl" = 1],
|
||||||
[AM_CONDITIONAL(HAVE_LIBGNURL, false)
|
[AM_CONDITIONAL(HAVE_LIBGNURL, false)
|
||||||
AC_DEFINE([HAVE_LIBGNURL],[0],[Lacking libgnurl])
|
AC_DEFINE([HAVE_LIBGNURL],[0],[Lacking libgnurl])
|
||||||
AM_CONDITIONAL(HAVE_LIBCURL, true)
|
AM_CONDITIONAL(HAVE_LIBCURL, true)
|
||||||
AC_DEFINE([HAVE_LIBCURL],[1],[Have libcurl])],
|
AC_DEFINE([HAVE_LIBCURL],[1],[Have libcurl])],
|
||||||
[AC_MSG_WARN([WARNING: No libgnurl/libcurl, taler-bank support will not be compiled])
|
[LIBGNURLCURL_LIBS="-lcurl"]
|
||||||
AM_CONDITIONAL(HAVE_LIBGNURL, false)
|
[AC_MSG_ERROR([WARNING: No libgnurl/libcurl, taler-bank support will not be compiled])])])
|
||||||
AC_DEFINE([HAVE_LIBGNURL],[0],[Lacking libgnurl])
|
|
||||||
AM_CONDITIONAL(HAVE_LIBCURL, false)
|
AC_SUBST([LIBGNURLCURL_LIBS])
|
||||||
AC_DEFINE([HAVE_LIBCURL],[0],[Lacking libcurl])])])
|
|
||||||
|
|
||||||
# Check for GNUnet's libgnunetcurl.
|
# Check for GNUnet's libgnunetcurl.
|
||||||
libgnunetcurl=0
|
libgnunetcurl=0
|
||||||
|
@ -3,13 +3,6 @@ AM_CPPFLAGS = -I$(top_srcdir)/src/include
|
|||||||
if HAVE_POSTGRESQL
|
if HAVE_POSTGRESQL
|
||||||
PQ_DIR = pq
|
PQ_DIR = pq
|
||||||
endif
|
endif
|
||||||
if HAVE_LIBCURL
|
|
||||||
BANK_LIB = bank-lib
|
|
||||||
else
|
|
||||||
if HAVE_LIBGNURL
|
|
||||||
BANK_LIB = bank-lib
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
|
|
||||||
pkgcfgdir = $(prefix)/share/taler/config.d/
|
pkgcfgdir = $(prefix)/share/taler/config.d/
|
||||||
pkgcfg_DATA = \
|
pkgcfg_DATA = \
|
||||||
@ -18,11 +11,18 @@ pkgcfg_DATA = \
|
|||||||
EXTRA_DIST = \
|
EXTRA_DIST = \
|
||||||
taler.conf
|
taler.conf
|
||||||
|
|
||||||
SUBDIRS = include util json curl $(PQ_DIR) mhd $(BANK_LIB) exchangedb exchange exchange-tools auditordb auditor
|
SUBDIRS = \
|
||||||
if HAVE_LIBCURL
|
include \
|
||||||
SUBDIRS += lib benchmark
|
util \
|
||||||
else
|
json \
|
||||||
if HAVE_LIBGNURL
|
curl \
|
||||||
SUBDIRS += lib benchmark
|
$(PQ_DIR) \
|
||||||
endif
|
mhd \
|
||||||
endif
|
bank-lib \
|
||||||
|
exchangedb \
|
||||||
|
exchange \
|
||||||
|
exchange-tools \
|
||||||
|
auditordb \
|
||||||
|
auditor \
|
||||||
|
lib \
|
||||||
|
benchmark
|
||||||
|
@ -50,6 +50,7 @@ libtalerbank_la_LIBADD = \
|
|||||||
-lgnunetjson \
|
-lgnunetjson \
|
||||||
-lgnunetutil \
|
-lgnunetutil \
|
||||||
-ljansson \
|
-ljansson \
|
||||||
|
$(LIBGNURLCURL_LIBS) \
|
||||||
$(XLIB)
|
$(XLIB)
|
||||||
|
|
||||||
libtalerfakebank_la_LDFLAGS = \
|
libtalerfakebank_la_LDFLAGS = \
|
||||||
@ -65,11 +66,3 @@ libtalerfakebank_la_LIBADD = \
|
|||||||
-ljansson \
|
-ljansson \
|
||||||
-lmicrohttpd \
|
-lmicrohttpd \
|
||||||
$(XLIB)
|
$(XLIB)
|
||||||
|
|
||||||
if HAVE_LIBCURL
|
|
||||||
libtalerbank_la_LIBADD += -lcurl
|
|
||||||
else
|
|
||||||
if HAVE_LIBGNURL
|
|
||||||
libtalerbank_la_LIBADD += -lgnurl
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
|
@ -41,14 +41,8 @@ libtalerexchange_la_LIBADD = \
|
|||||||
-lgnunetjson \
|
-lgnunetjson \
|
||||||
-lgnunetutil \
|
-lgnunetutil \
|
||||||
-ljansson \
|
-ljansson \
|
||||||
|
$(LIBGNURLCURL_LIBS) \
|
||||||
$(XLIB)
|
$(XLIB)
|
||||||
if HAVE_LIBCURL
|
|
||||||
libtalerexchange_la_LIBADD += -lcurl
|
|
||||||
else
|
|
||||||
if HAVE_LIBGNURL
|
|
||||||
libtalerexchange_la_LIBADD += -lgnurl
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
|
|
||||||
libtalerauditor_la_LDFLAGS = \
|
libtalerauditor_la_LDFLAGS = \
|
||||||
-version-info 0:0:0 \
|
-version-info 0:0:0 \
|
||||||
@ -66,14 +60,8 @@ libtalerauditor_la_LIBADD = \
|
|||||||
-lgnunetjson \
|
-lgnunetjson \
|
||||||
-lgnunetutil \
|
-lgnunetutil \
|
||||||
-ljansson \
|
-ljansson \
|
||||||
|
$(LIBGNURLCURL_LIBS) \
|
||||||
$(XLIB)
|
$(XLIB)
|
||||||
if HAVE_LIBCURL
|
|
||||||
libtalerauditor_la_LIBADD += -lcurl
|
|
||||||
else
|
|
||||||
if HAVE_LIBGNURL
|
|
||||||
libtalerauditor_la_LIBADD += -lgnurl
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
|
|
||||||
libtalertesting_la_LDFLAGS = \
|
libtalertesting_la_LDFLAGS = \
|
||||||
-version-info 0:0:0 \
|
-version-info 0:0:0 \
|
||||||
|
Loading…
Reference in New Issue
Block a user