diff options
Diffstat (limited to 'lib/libdrm/configure.ac')
-rw-r--r-- | lib/libdrm/configure.ac | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/libdrm/configure.ac b/lib/libdrm/configure.ac index c0b11b201..fa0290589 100644 --- a/lib/libdrm/configure.ac +++ b/lib/libdrm/configure.ac @@ -32,6 +32,16 @@ AC_PROG_CC AC_HEADER_STDC AC_SYS_LARGEFILE +dnl Privsep +AC_ARG_ENABLE(privsep, + AC_HELP_STRING([--enable-privsep], + [Build support for X server privilege separation (default is NO)]), + [ENABLE_PRIVSEP="$enableval"], [ENABLE_PRIVSEP="no"]) +if test x$ENABLE_PRIVSEP = xyes ; then + AC_DEFINE(X_PRIVSEP, 1, [Use X server privilege separation]) +fi +AM_CONDITIONAL(X_PRIVSEP, [test x$ENABLE_PRIVSEP = xyes]) + pkgconfigdir=${libdir}/pkgconfig AC_SUBST(pkgconfigdir) |