From 26a90487fd6fc199fea768d08f55f9eaf4bab146 Mon Sep 17 00:00:00 2001 From: Kevin E Martin Date: Wed, 13 Jul 2005 20:03:21 +0000 Subject: Make the module dir configurable --- configure.ac | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index e35f159..5d9e48e 100644 --- a/configure.ac +++ b/configure.ac @@ -61,15 +61,20 @@ AH_TOP([#include "xorg-server.h"]) # AC_DEFINE(XKB,1,[Enable XKB support]) #fi +AC_ARG_WITH(xorg-module-dir, + AC_HELP_STRING([--with-xorg-module-dir=DIR], + [Default xorg module directory [[default=$libdir/xorg/modules]]]), + [moduledir="$withval"], + [moduledir="$libdir/xorg/modules"]) +inputdir=${moduledir}/input +AC_SUBST(inputdir) + # Checks for pkg-config packages PKG_CHECK_MODULES(XORG, xorg-server xproto) -inputdir=$(pkg-config --variable=moduledir xorg-server)/input -AC_SUBST([inputdir]) sdkdir=$(pkg-config --variable=sdkdir xorg-server) CFLAGS="$XORG_CFLAGS "' -I$(top_srcdir)/src' AC_SUBST([CFLAGS]) -AC_SUBST([INCLUDES]) # Checks for libraries. -- cgit v1.2.3