nm: Automatically determine path to the auth dialog
This commit is contained in:
committed by
Tobias Brunner
parent
1579779119
commit
97939530e0
@@ -14,7 +14,7 @@ appdata_in_files = NetworkManager-strongswan.appdata.xml.in
|
||||
|
||||
nm-strongswan-service.name: $(srcdir)/nm-strongswan-service.name.in
|
||||
$(AM_V_GEN) \
|
||||
sed -e 's|[@]LIBEXECDIR[@]|$(libexecdir)|' \
|
||||
sed -e 's|[@]NM_LIBEXECDIR[@]|$(nm_libexecdir)|' \
|
||||
-e 's|[@]CHARON[@]|$(charon)|' $< >$@
|
||||
|
||||
EXTRA_DIST = \
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
libexec_PROGRAMS = nm-strongswan-auth-dialog
|
||||
nm_libexec_PROGRAMS = nm-strongswan-auth-dialog
|
||||
|
||||
nm_strongswan_auth_dialog_CPPFLAGS = \
|
||||
$(GTHREAD_CFLAGS) \
|
||||
|
||||
@@ -14,6 +14,7 @@ AC_PROG_CC
|
||||
AM_PROG_CC_C_O
|
||||
AC_PROG_INSTALL
|
||||
AC_PROG_LIBTOOL
|
||||
PKG_PROG_PKG_CONFIG
|
||||
|
||||
dnl
|
||||
dnl Required headers
|
||||
@@ -75,6 +76,8 @@ AC_ARG_WITH(
|
||||
[AC_SUBST(charon, "$withval")],
|
||||
[AC_SUBST(charon, "${libexecdir}/ipsec/charon-nm")]
|
||||
)
|
||||
nm_libexecdir=$($PKG_CONFIG --variable=libgnome_serverdir NetworkManager)
|
||||
AC_SUBST(nm_libexecdir)
|
||||
|
||||
NM_COMPILER_WARNINGS
|
||||
|
||||
|
||||
@@ -4,5 +4,5 @@ service=org.freedesktop.NetworkManager.strongswan
|
||||
program=@CHARON@
|
||||
|
||||
[GNOME]
|
||||
auth-dialog=@LIBEXECDIR@/nm-strongswan-auth-dialog
|
||||
auth-dialog=@NM_LIBEXECDIR@/nm-strongswan-auth-dialog
|
||||
properties=libnm-strongswan-properties
|
||||
|
||||
Reference in New Issue
Block a user