Skip to content
Snippets Groups Projects
Commit 1c42d2ec authored by Guido Berhoerster's avatar Guido Berhoerster Committed by Nick Schermer
Browse files

Allow installation of the helpers in a custom location.

parent 4a52a77e
No related branches found
No related tags found
No related merge requests found
......@@ -34,6 +34,14 @@ AM_CONFIG_HEADER([config.h])
AM_MAINTAINER_MODE()
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
dnl set helper path prefix
AC_ARG_WITH([helper-path-prefix],
[AC_HELP_STRING([--with-helper-path-prefix=PATH],
[Path prefix under which helper executables will be installed (default: $libdir)])],
[HELPER_PATH_PREFIX="$withval"],
[HELPER_PATH_PREFIX="$libdir"])
AC_SUBST([HELPER_PATH_PREFIX])
dnl check for UNIX variants
AC_AIX
AC_ISC_POSIX
......
......@@ -6,7 +6,7 @@ INCLUDES = \
$(LIBX11_CFLAGS) \
-DPACKAGE_LOCALE_DIR=\"$(localedir)\"
helper_dialogdir = $(libdir)/xfce4/xfwm4
helper_dialogdir = $(HELPER_PATH_PREFIX)/xfce4/xfwm4
helper_dialog_PROGRAMS = \
helper-dialog
......
......@@ -92,7 +92,7 @@ xfwm4_CFLAGS = \
$(COMPOSITOR_CFLAGS) \
-DPACKAGE_LOCALE_DIR=\"$(localedir)\" \
-DDATADIR=\"$(datadir)\" \
-DLIBDIR=\"$(libdir)\" \
-DHELPERDIR=\"$(HELPER_PATH_PREFIX)\" \
-DPACKAGE_DATADIR=\"$(pkgdatadir)\" \
-DG_LOG_DOMAIN=\"xfwm4\"
......
......@@ -110,7 +110,7 @@ terminateShowDialog (Client *c)
screen_info = c->screen_info;
xid = g_strdup_printf ("0x%lx", c->window);
argv[0] = LIBDIR "/xfce4/xfwm4/helper-dialog";
argv[0] = HELPERDIR "/xfce4/xfwm4/helper-dialog";
argv[1] = xid;
argv[2] = c->name;
argv[3] = NULL;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment