diff options
author | Lee Duncan <lduncan@suse.com> | 2019-06-05 09:17:38 -0700 |
---|---|---|
committer | Lee Duncan <lduncan@suse.com> | 2019-06-05 09:17:38 -0700 |
commit | 655b636528ebf0934d79dc952a6af86047f45af3 (patch) | |
tree | 03d70f66fea54cd1e7f78d5eac7ac8a1573f8f28 /iscsiuio | |
parent | f71581bd641dc26d330cb8b97e5ec272dd08f811 (diff) | |
download | open-iscsi-655b636528ebf0934d79dc952a6af86047f45af3.tar.gz |
Handle systemd disablement correctly in iscsiuio
Commit c1870ae6dddb7bc2dbdc750df68edbbe1a80763f added systemd
support to iscsiuio, but it was not integrated with the
autoconf script there, so this commit rectifies that. Now one
can build without systemd support, from the top, using:
$ make OPTFLAGS="... -DNO_SYSTEMD ...
which now works for both iscsid and iscsiuio.
Diffstat (limited to 'iscsiuio')
-rw-r--r-- | iscsiuio/configure.ac | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/iscsiuio/configure.ac b/iscsiuio/configure.ac index ae23078..096573b 100644 --- a/iscsiuio/configure.ac +++ b/iscsiuio/configure.ac @@ -63,6 +63,14 @@ AC_ARG_ENABLE(debug, CFLAGS="${CFLAGS} -g -O0" fi]) AM_CONDITIONAL([DEBUG], [test x$debug = xtrue]) +## check for systemd support, default on +AC_ARG_WITH([systemd], + AS_HELP_STRING([--without-systemd], [Build without systemd]), + [case "${withval}" in + yes) LDFLAGS="`pkg-config --libs libsystemd`" ;; + no) CFLAGS="${CFLAGS} -DNO_SYSTEMD" ;; + *) AC_MSG_ERROR([bad value $withval for --with-systemd]) ;; + esac],[LDFLAGS="`pkg-config --libs libsystemd`"]) AC_CONFIG_COMMANDS([default],[[ if [ -n "$SOURCE_DATE_EPOCH" ] ; then |