configure: add helper for setting xserver directory

With this the X server directory can become independent from the
installation prefix set by autoconf.

Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
This commit is contained in:
Tiago Vignatti
2011-08-03 12:12:31 +03:00
committed by Kristian Høgsberg
parent 338c96325b
commit 5884bcde4a
3 changed files with 8 additions and 3 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ bin_PROGRAMS = wayland-compositor
AM_CPPFLAGS = \
-DDATADIR='"$(datadir)"' \
-DMODULEDIR='"$(moduledir)"' \
-DBINDIR='"$(bindir)"' \
-DXSERVER_PATH='"@XSERVER_PATH@"' \
$(COMPOSITOR_CFLAGS)
wayland_compositor_LDFLAGS = -export-dynamic
+2 -2
View File
@@ -501,8 +501,8 @@ wlsc_xserver_handle_event(int listen_fd, uint32_t mask, void *data)
snprintf(logfile, sizeof logfile,
"/tmp/x-log-%d", mxs->display);
if (execl(BINDIR "/Xorg",
BINDIR "/Xorg",
if (execl(XSERVER_PATH,
XSERVER_PATH,
display,
"-wayland",
"-rootless",