{"action":"created","issue":{"url":"https://api.github.com/repos/rpodgorny/uptimed/issues/4","labels_url":"https://api.github.com/repos/rpodgorny/uptimed/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/rpodgorny/uptimed/issues/4/comments","events_url":"https://api.github.com/repos/rpodgorny/uptimed/issues/4/events","html_url":"https://github.com/rpodgorny/uptimed/issues/4","id":64930852,"number":4,"title":"error: conditional \"HAVE_SYSTEMD\" was never defined","user":{"login":"bfontaine","id":1334295,"avatar_url":"https://avatars.githubusercontent.com/u/1334295?v=3","gravatar_id":"","url":"https://api.github.com/users/bfontaine","html_url":"https://github.com/bfontaine","followers_url":"https://api.github.com/users/bfontaine/followers","following_url":"https://api.github.com/users/bfontaine/following{/other_user}","gists_url":"https://api.github.com/users/bfontaine/gists{/gist_id}","starred_url":"https://api.github.com/users/bfontaine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bfontaine/subscriptions","organizations_url":"https://api.github.com/users/bfontaine/orgs","repos_url":"https://api.github.com/users/bfontaine/repos","events_url":"https://api.github.com/users/bfontaine/events{/privacy}","received_events_url":"https://api.github.com/users/bfontaine/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-28T11:13:19Z","updated_at":"2015-03-29T06:10:02Z","closed_at":null,"body":"Hello, I’m trying to build `uptimed` on OS X, and this is what `./configure` give me:\r\n\r\n```\r\n(…)\r\nchecking if libtool supports shared libraries... yes\r\nchecking whether to build shared libraries... yes\r\nchecking whether to build static libraries... yes\r\nchecking for a BSD-compatible install... /usr/bin/install -c\r\nchecking whether build environment is sane... yes\r\n/bin/sh: /Users/baptiste/missing: No such file or directory\r\nconfigure: WARNING: 'missing' script is too old or missing\r\nchecking for a thread-safe mkdir -p... ./install-sh -c -d\r\nchecking whether make sets $(MAKE)... yes\r\nchecking for style of include used by make... GNU\r\nchecking whether make supports nested variables... yes\r\nchecking dependency style of clang... none\r\nchecking for getopt... yes\r\nchecking getopt.h usability... yes\r\nchecking getopt.h presence... yes\r\nchecking for getopt.h... yes\r\nchecking for getdtablesize... yes\r\nchecking that generated files are newer than configure... done\r\nconfigure: error: conditional \"HAVE_SYSTEMD\" was never defined.\r\nUsually this means the macro was only invoked conditionally.\r\n```\r\n\r\nI don’t know how to write automake/autoconf directives, but looking at the code `HAVE_SYSTEMD` is used in [`etc/Makefile.am`](https://github.com/rpodgorny/uptimed/blob/master/etc/Makefile.am#L5) but is only defined in the [`configure.ac`](https://github.com/rpodgorny/uptimed/blob/master/configure.ac#L20) script if one is using Linux. I removed the `if HAVE_SYSTEMD` condition in `Makefile.am` but it didn’t fix the issue."},"comment":{"url":"https://api.github.com/repos/rpodgorny/uptimed/issues/comments/87361587","html_url":"https://github.com/rpodgorny/uptimed/issues/4#issuecomment-87361587","issue_url":"https://api.github.com/repos/rpodgorny/uptimed/issues/4","id":87361587,"user":{"login":"asparagui","id":518607,"avatar_url":"https://avatars.githubusercontent.com/u/518607?v=3","gravatar_id":"","url":"https://api.github.com/users/asparagui","html_url":"https://github.com/asparagui","followers_url":"https://api.github.com/users/asparagui/followers","following_url":"https://api.github.com/users/asparagui/following{/other_user}","gists_url":"https://api.github.com/users/asparagui/gists{/gist_id}","starred_url":"https://api.github.com/users/asparagui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asparagui/subscriptions","organizations_url":"https://api.github.com/users/asparagui/orgs","repos_url":"https://api.github.com/users/asparagui/repos","events_url":"https://api.github.com/users/asparagui/events{/privacy}","received_events_url":"https://api.github.com/users/asparagui/received_events","type":"User","site_admin":false},"created_at":"2015-03-29T06:10:02Z","updated_at":"2015-03-29T06:10:02Z","body":"sugoi"}}