github.com/containers/podman/v2@v2.2.2-0.20210501105131-c1e07d070c4c/hack/systemd_tag.sh (about)

     1  #!/usr/bin/env bash
     2  ${CPP:-${CC:-cc} -E} ${CPPFLAGS} - > /dev/null 2> /dev/null << EOF
     3  #include <systemd/sd-daemon.h>
     4  EOF
     5  if test $? -eq 0 ; then
     6  	echo systemd
     7  fi