configure: Ensure PKG_CONFIG before querying systemd unit path

Use PKG_PROG_PKG_CONFIG to ensure that $PKG_CONFIG is set before it is
used to query the systemd unit install path.
ulab-next-nosound
Michał Górny 10 years ago
parent dba0070360
commit b2d324f770

@ -7,6 +7,7 @@ AM_INIT_AUTOMAKE([1.6 foreign])
AC_PROG_CC
AC_C_CONST
AC_PROG_LIBTOOL
PKG_PROG_PKG_CONFIG
AC_ARG_WITH([systemdsystemunitdir],
AS_HELP_STRING([--with-systemdsystemunitdir=DIR], [Directory for systemd service files]),
[], [with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)])

Loading…
Cancel
Save