forked from enlightenment/efl
autotools: make systemd dependency detection automatic.
This commit is contained in:
parent
770dc9a805
commit
94b4e53b7f
18
configure.ac
18
configure.ac
|
@ -351,13 +351,6 @@ esac
|
||||||
AM_CONDITIONAL([HAVE_CRYPTO_GNUTLS], [test "${build_crypto}" = "gnutls"])
|
AM_CONDITIONAL([HAVE_CRYPTO_GNUTLS], [test "${build_crypto}" = "gnutls"])
|
||||||
AM_CONDITIONAL([HAVE_CRYPTO_OPENSSL], [test "${build_crypto}" = "openssl"])
|
AM_CONDITIONAL([HAVE_CRYPTO_OPENSSL], [test "${build_crypto}" = "openssl"])
|
||||||
|
|
||||||
# check for systemd library if requested
|
|
||||||
if test "x{want_systemd}" = "xyes"; then
|
|
||||||
PKG_CHECK_MODULES([SYSTEMD], [libsystemd-daemon >= 192 libsystemd-journal >= 192],
|
|
||||||
[want_systemd="yes"],
|
|
||||||
[want_systemd="no"])
|
|
||||||
fi
|
|
||||||
|
|
||||||
#### Checks for header files
|
#### Checks for header files
|
||||||
|
|
||||||
# Common Checks (keep names sorted for ease of use):
|
# Common Checks (keep names sorted for ease of use):
|
||||||
|
@ -575,9 +568,16 @@ AC_ARG_ENABLE([systemd],
|
||||||
want_systemd="no"
|
want_systemd="no"
|
||||||
fi
|
fi
|
||||||
],
|
],
|
||||||
[want_systemd="no"])
|
[want_systemd="auto"])
|
||||||
AM_CONDITIONAL([WANT_SYSTEMD], [test "${want_systemd}" = "yes"])
|
|
||||||
|
|
||||||
|
# check for systemd library if requested
|
||||||
|
if test "x${want_systemd}" = "xyes" -o "x${want_systemd}" = "xauto"; then
|
||||||
|
PKG_CHECK_MODULES([SYSTEMD], [libsystemd-daemon >= 192 libsystemd-journal >= 192],
|
||||||
|
[want_systemd="yes"],
|
||||||
|
[want_systemd="no"])
|
||||||
|
fi
|
||||||
|
|
||||||
|
AM_CONDITIONAL([WANT_SYSTEMD], [test "${want_systemd}" = "yes"])
|
||||||
|
|
||||||
#### Platform-dependent
|
#### Platform-dependent
|
||||||
DL_LIBS=""
|
DL_LIBS=""
|
||||||
|
|
Loading…
Reference in New Issue