summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin E Martin <kem@kem.org>2005-07-13 20:03:23 +0000
committerKevin E Martin <kem@kem.org>2005-07-13 20:03:23 +0000
commit960184a2b6861d2573209b51012d7af8046ce77e (patch)
tree303b39a20c2a579faf96186f342256418e8e584a
parent9e2a5fdbab3897cf3466b2c88dddc410edbb56a6 (diff)
Make the module dir configurable
-rw-r--r--configure.ac11
1 files changed, 8 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index b4987e5..5d166b5 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.