From 417002e1714b97cc3073e3968ee0cee3181dc96c Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Fri, 18 Mar 2011 00:57:14 +0000 Subject: systemd stuff (bug #738) --- configure | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'configure') diff --git a/configure b/configure index 0728146a..77dc560a 100755 --- a/configure +++ b/configure @@ -15,6 +15,7 @@ datadir='$prefix/share/bitlbee/' config='/var/lib/bitlbee/' plugindir='$prefix/lib/bitlbee/' includedir='$prefix/include/bitlbee/' +systemdsystemunitdir='' libevent='/usr/' pidfile='/var/run/bitlbee.pid' ipcsocket='/var/run/bitlbee.sock' @@ -61,6 +62,7 @@ Option Description Default --mandir=... $mandir --datadir=... $datadir --plugindir=... $plugindir +--systemdsystemunitdir=... $systemdsystemunitdir --pidfile=... $pidfile --config=... $config --ipcsocket=... $ipcsocket @@ -486,6 +488,17 @@ else fi; fi +if [ -z "$systemdsystemunitdir" ]; then + if $PKG_CONFIG --exists systemd; then + systemdsystemunitdir=`$PKG_CONFIG --variable=systemdsystemunitdir systemd` + fi +fi +if [ -n "$systemdsystemunitdir" ]; then + if [ "$systemdsystemunitdir" != "no" ]; then + echo "SYSTEMDSYSTEMUNITDIR=$systemdsystemunitdir" >> Makefile.settings + fi +fi + if [ "$gcov" = "1" ]; then echo "CFLAGS+=--coverage" >> Makefile.settings echo "EFLAGS+=--coverage" >> Makefile.settings @@ -726,6 +739,12 @@ else echo ' Off-the-Record (OTR) Messaging disabled.' fi +if [ -n "$systemdsystemunitdir" ]; then + echo ' systemd enabled.' +else + echo ' systemd disabled.' +fi + echo ' Using event handler: '$events echo ' Using SSL library: '$ssl #echo ' Building with these storage backends: '$STORAGES -- cgit v1.2.3