[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [libfints] branch master updated: Adding --with-gnunet swit
From: |
gnunet |
Subject: |
[GNUnet-SVN] [libfints] branch master updated: Adding --with-gnunet switch. |
Date: |
Wed, 10 Oct 2018 15:38:27 +0200 |
This is an automated email from the git hooks/post-receive script.
marcello pushed a commit to branch master
in repository libfints.
The following commit(s) were added to refs/heads/master by this push:
new 089865b Adding --with-gnunet switch.
089865b is described below
commit 089865b7fcdb5dd8974481234549dde8d59fa7f9
Author: Marcello Stanisci <address@hidden>
AuthorDate: Wed Oct 10 15:38:07 2018 +0200
Adding --with-gnunet switch.
---
configure.ac | 28 ++++++++++++++++++++++++++++
src/Makefile.am | 3 ++-
2 files changed, 30 insertions(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index 9f98a86..f090ef7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -100,6 +100,34 @@ then
fi
AC_DEFINE_UNQUOTED([NEED_LIBGCRYPT_VERSION], "$NEED_LIBGCRYPT_VERSION",
[required libgcrypt version])
+# Check for GNUnet's libgnunetutil.
+libgnunetutil=0
+AC_MSG_CHECKING([for libgnunetutil])
+AC_ARG_WITH(gnunet,
+ [AS_HELP_STRING([--with-gnunet=PFX], [base of GNUnet
installation])],
+ [AC_MSG_RESULT([given as $with_gnunet])],
+ [AC_MSG_RESULT(not given)
+ with_gnunet=yes])
+AS_CASE([$with_gnunet],
+ [yes], [],
+ [no], [AC_MSG_ERROR([--with-gnunet is required])],
+ [LDFLAGS="-L$with_gnunet/lib $LDFLAGS"
+ CPPFLAGS="-I$with_gnunet/include $CPPFLAGS"])
+AC_CHECK_HEADERS([gnunet/platform.h gnunet/gnunet_util_lib.h],
+ [AC_CHECK_LIB([gnunetutil], [GNUNET_SCHEDULER_run], libgnunetutil=1)],
+ [], [#ifdef HAVE_GNUNET_PLATFORM_H
+ #include <gnunet/platform.h>
+ #endif])
+AS_IF([test $libgnunetutil != 1],
+ [AC_MSG_ERROR([[
+***
+*** You need libgnunetutil to build this program.
+*** This library is part of GNUnet, available at
+*** https://gnunet.org
+*** ]])])
+
+
+
dnl ==========================================================================
dnl See if we can find GnuTLS
diff --git a/src/Makefile.am b/src/Makefile.am
index affdf42..7d14e11 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -10,9 +10,10 @@ libebics_la_LDFLAGS = \
-no-undefined
libebics_la_SOURCES = \
+ xmlmessages.c \
libebics.c \
xmlproto.c \
- xmlmessages.c
+ util.c
libebics_la_LIBADD = \
$(XML_LIBS) \
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [libfints] branch master updated: Adding --with-gnunet switch.,
gnunet <=