diff options
author | Tiago Vignatti <tiago.vignatti@intel.com> | 2011-08-03 12:12:31 +0300 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2011-08-11 15:09:59 -0400 |
commit | 5884bcde4a93723ab95324aee9ca18a16bbd846f (patch) | |
tree | eb14024b37d211b97e6dadcb644be4ea9fca700c /configure.ac | |
parent | 338c96325b24b30b960073e8e2bfe14d15a581f9 (diff) |
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>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 228b527..f19c4e7 100644 --- a/configure.ac +++ b/configure.ac @@ -37,6 +37,11 @@ AM_CONDITIONAL(ENABLE_XSERVER_LAUNCHER, test x$enable_xserver_launcher == xyes) if test x$enable_xserver_launcher == xyes; then PKG_CHECK_MODULES([XSERVER_LAUNCHER], xcb) AC_DEFINE([BUILD_XSERVER_LAUNCHER], [1], [Build the X server launcher]) + + AC_ARG_WITH(xserver-path, AS_HELP_STRING([--with-xserver-path=PATH], + [Path to X server]), [XSERVER_PATH="$withval"], + [XSERVER_PATH="$bindir/Xorg"]) + AC_SUBST([XSERVER_PATH]) fi |