#16 with-systemd should return ac_result no if pkg-config doesn't find headers.
Closed 7 years ago Opened 7 years ago by firstyear.

If you use --with-systemd on a non-systemd system, it should detect the lack of header files and set result no, instead of continuing and failing to build.


I would need to check Fedora packaging guidelines[1]
Because I am not sure whether you can rely on fact that systemd is part of build-root. It might be better to use BuidRequires: pkgconfig(systemd)

sh$ rpm -q --provides systemd | grep pkgconfig
pkgconfig(systemd) = 231
pkgconfig(udev) = 231

BTW what is a purpose of following ifdef:
+#ifdef HAVE_SYSTEMD
+#ifndef _WIN32

If I read condition right then it will be true for systems which has systemd and are not windows. Systemd is linux only so the 2nd ifdef is redundant.

[1] http://fedoraproject.org/wiki/Packaging:Guidelines

ACK,
works fine with fedora and freebsd

I almost every time forget that 389-team is used to keep autoconf generated files in git. So please do not forget regenerate them. It is required due to changes in m4/systemd.m4

commit 2e8ffb5
Compressing objects: 100% (8/8), done.
Writing objects: 100% (8/8), 1.17 KiB | 0 bytes/s, done.
Total 8 (delta 7), reused 0 (delta 0)
To ssh://git@pagure.io/svrcore.git
ed490d1..2e8ffb5 master -> master

@firstyear changed the status to Closed

7 years ago

Login to comment on this ticket.

Metadata