aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac19
-rw-r--r--src/backend/Makefile.am6
2 files changed, 25 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 8e7b36e0..ad12b3f3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -288,6 +288,25 @@ AS_IF([test $libtalerexchange != 1],
*** ]])])
+libdonau=0
+AC_MSG_CHECKING([for libdonau])
+AC_ARG_WITH(donau,
+ [AS_HELP_STRING([--with-donau=PFX], [base of Taler DONAU installation])],
+ [AC_MSG_RESULT([given as $with_donau])],
+ [AC_MSG_RESULT(not given)
+ with_donau=yes])
+AS_CASE([$with_donau],
+ [yes], [],
+ [no], [],
+ [LDFLAGS="-L$with_donau/lib $LDFLAGS"
+ CPPFLAGS="-I$with_donau/include $CPPFLAGS $POSTGRESQL_CPPFLAGS"])
+
+AC_CHECK_HEADERS([donau/donau_service.h],
+ [AC_CHECK_LIB([donau], [DONAU_get_keys], libdonau=1)])
+AM_CONDITIONAL(HAVE_DONAU, test x$libdonau = x1)
+
+
+
libtalermhd=0
AC_MSG_CHECKING([for libtalermhd])
AC_ARG_WITH(exchange,
diff --git a/src/backend/Makefile.am b/src/backend/Makefile.am
index cf429777..23a11004 100644
--- a/src/backend/Makefile.am
+++ b/src/backend/Makefile.am
@@ -219,6 +219,12 @@ taler_merchant_httpd_LDADD = \
-lgnunetutil \
@QR_LIBS@ \
$(XLIB)
+
+if HAVE_DONAU
+taler_merchant_httpd_LDADD += \
+ -ldonau
+endif
+
taler_merchant_httpd_CFLAGS = \
@QR_CFLAGS@ \
$(AM_CFLAGS)