Skip to content

Commit

Permalink
systemd fix
Browse files Browse the repository at this point in the history
  • Loading branch information
microcai committed Oct 29, 2012
1 parent 00c2d1f commit ef6c86b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -38,3 +38,5 @@ libtool
ltmain*


googleproxy.service
googleproxy.service.in
6 changes: 4 additions & 2 deletions configure.ac
Expand Up @@ -26,8 +26,8 @@ AC_CANONICAL_SYSTEM
AM_INIT_AUTOMAKE()

AC_PROG_CXX
PKG_PROG_PKG_CONFIG

AC_CHECK_LIB(systemd-daemon,sd_listen_fds,)

AC_LANG(C++)

Expand All @@ -48,9 +48,11 @@ AC_ARG_WITH([systemdsystemunitdir],

AC_SUBST([systemdsystemunitdir], [$with_systemdsystemunitdir])

if test "x$with_systemdsystemunitdir" != xno; then
if [test -n "$with_systemdsystemunitdir" -a "x$with_systemdsystemunitdir" != xno ]; then
AC_CONFIG_FILES(googleproxy.service.in)
AC_CHECK_LIB(systemd-daemon,sd_listen_fds,)
fi

AM_CONDITIONAL(HAVE_SYSTEMD, [test -n "$with_systemdsystemunitdir" -a "x$with_systemdsystemunitdir" != xno ])

AC_DEFINE_UNQUOTED(GOOGLE_ADDRESS,"${googleaddress}",[the address of www.google.com])
Expand Down

0 comments on commit ef6c86b

Please sign in to comment.