diff -urN samba-4.1.13.orig/lib/util/wscript_build samba-4.1.13/lib/util/wscript_build --- samba-4.1.13.orig/lib/util/wscript_build 2014-09-08 11:26:14.000000000 +0200 +++ samba-4.1.13/lib/util/wscript_build 2014-11-04 13:24:18.844005416 +0100 @@ -10,7 +10,7 @@ server_id.c dprintf.c parmlist.c bitmap.c pidfile.c tevent_debug.c util_process.c memcache.c''', deps='DYNCONFIG', - public_deps='talloc tevent execinfo uid_wrapper pthread LIBCRYPTO charset util_setid systemd-daemon', + public_deps='talloc tevent execinfo uid_wrapper pthread LIBCRYPTO charset util_setid systemd', public_headers='debug.h attr.h byteorder.h data_blob.h memory.h safe_string.h time.h talloc_stack.h xfile.h dlinklist.h samba_util.h string_wrappers.h', header_path= [ ('dlinklist.h samba_util.h', '.'), ('*', 'util') ], local_include=False, diff -urN samba-4.1.13.orig/wscript samba-4.1.13/wscript --- samba-4.1.13.orig/wscript 2014-07-28 09:13:45.000000000 +0200 +++ samba-4.1.13/wscript 2014-11-04 13:18:10.600184579 +0100 @@ -186,7 +186,7 @@ conf.check_cfg(package='libsystemd-daemon', args='--cflags --libs', msg='Checking for libsystemd-daemon', uselib_store="SYSTEMD-DAEMON") conf.CHECK_HEADERS('systemd/sd-daemon.h', lib='systemd-daemon') - conf.CHECK_LIB('systemd-daemon', shlib=True) + conf.CHECK_LIB('systemd-daemon systemd', shlib=True) if conf.CONFIG_SET('HAVE_SYSTEMD_SD_DAEMON_H'): conf.DEFINE('HAVE_SYSTEMD', '1')