]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix autoconf of systemd check for lack of pkg-config.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Mon, 13 Feb 2017 10:15:01 +0000 (10:15 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Mon, 13 Feb 2017 10:15:01 +0000 (10:15 +0000)
git-svn-id: file:///svn/unbound/trunk@4009 be551aaa-1e26-0410-a405-d3ace91eadb9

configure
doc/Changelog
systemd.m4

index 714b42dcb001b7ff6992ea3981ad47015b9afe64..f81ed1e86c903d03f02e622d8c03e2a24d8be7f5 100755 (executable)
--- a/configure
+++ b/configure
@@ -18634,6 +18634,7 @@ fi
 if test "x$enable_systemd" != xno; then :
 
 
+
 pkg_failed=no
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD" >&5
 $as_echo_n "checking for SYSTEMD... " >&6; }
@@ -18796,6 +18797,7 @@ $as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h
      ;;
 esac
 
+
 fi
  if test "x$have_systemd" = xyes; then
   USE_SYSTEMD_TRUE=
index f8fe42b3ee457d561347503dac0be748afdaeb77..a149dff795db42913c39c4133ec3679555a05a5d 100644 (file)
@@ -1,3 +1,6 @@
+13 February 2017: Wouter
+       - Fix autoconf of systemd check for lack of pkg-config.
+
 10 February 2017: Wouter
        - Fix pythonmod for typedef changes.
        - Fix dnstap for warning of set but not used.
index 553822418af2469a22ae7c9f6f2ee89f0233ebc7..e5d4e27f6deb216da015c3d1ee7569e1596d30f7 100644 (file)
@@ -6,6 +6,7 @@ AC_ARG_ENABLE([systemd],
        [], [enable_systemd=no])
 have_systemd=no
 AS_IF([test "x$enable_systemd" != xno], [
+    ifdef([PKG_CHECK_MODULES], [
        dnl systemd v209 or newer
        PKG_CHECK_MODULES([SYSTEMD], [libsystemd], [have_systemd=yes], [have_systemd=no])
        dnl old systemd library
@@ -23,5 +24,8 @@ AS_IF([test "x$enable_systemd" != xno], [
                LIBS="$LIBS $SYSTEMD_LIBS"
                ]
        )
+    ], [
+       AC_MSG_ERROR([systemd enabled but need pkg-config to configure for it])
+    ])
 ])
 AM_CONDITIONAL([USE_SYSTEMD], [test "x$have_systemd" = xyes])