summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorOthmar Truniger <github@truniger.ch>2021-06-16 17:14:25 +0200
committerOthmar Truniger <github@truniger.ch>2021-06-16 17:14:25 +0200
commit035d3d5029a414e18262b65831b1426cd2afad69 (patch)
tree6dd7655259ba9316d6a2869ca5475be5d608197d /net
parentcc1d0aa3d2e83252b1e85e65ce6eb6c7a4c4e98b (diff)
linknx: adopt new libesmtp version
Signed-off-by: Othmar Truniger <github@truniger.ch>
Diffstat (limited to 'net')
-rw-r--r--net/linknx/patches/020-configure.ac.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/net/linknx/patches/020-configure.ac.patch b/net/linknx/patches/020-configure.ac.patch
new file mode 100644
index 000000000..c78b8731e
--- /dev/null
+++ b/net/linknx/patches/020-configure.ac.patch
@@ -0,0 +1,36 @@
+--- a/configure.ac
++++ b/configure.ac
+@@ -90,8 +90,24 @@ if test x"$enable_smtp" != xno ; then
+ )
+ fi
+
+-AC_MSG_CHECKING(whether to use libesmtp)
++AC_MSG_CHECKING(whether to use libesmtp >= v1.1.x)
+ if test x"$enable_smtp" != xno ; then
++ PKG_CHECK_MODULES(ESMTP, libesmtp-1.0 >= 1.1.0, [
++ AC_DEFINE([HAVE_LIBESMTP], [1], [Build with libesmtp email support.])
++ AC_SUBST(ESMTP_CFLAGS)
++ AC_SUBST(ESMTP_LIBS)
++ if test x"`echo $ESMTP_LIBS | grep pthread`" != x ; then
++ AC_MSG_WARN([libesmtp is compiled with pthread support. This can conflict with pth. If you observe segmentation faults at startup, try to recompile with libesmtp support disabled])
++ AC_DEFINE([HAVE_LIBESMTP_PTHREAD], [1], [libesmtp is compiled with pthread support.])
++ fi
++ found_esmtp=yes
++ ],[
++ AC_MSG_RESULT([no])
++ ])
++fi
++if test x"$found_esmtp" = x ; then
++AC_MSG_CHECKING(whether to use libesmtp v1.0.x)
++if test x"$enable_smtp" != xno && test x`which libesmtp-config` != x ; then
+ ESMTP_CFLAGS="`libesmtp-config --cflags`"
+ ESMTP_LIBS="`libesmtp-config --libs`"
+ if test x"`libesmtp-config --libs | grep pthread`" != x ; then
+@@ -110,6 +126,7 @@ if test x"$enable_smtp" != xno ; then
+ else
+ AC_MSG_RESULT([no])
+ fi
++fi
+ AM_CONDITIONAL([USE_B64], [test x"$enable_smtp" != xno])
+
+