2005-07-16 00:51:05 +02:00
|
|
|
/* dix-config.h.in: not at all generated. -*- c -*- */
|
|
|
|
|
|
|
|
#ifndef _DIX_CONFIG_H_
|
|
|
|
#define _DIX_CONFIG_H_
|
2005-07-01 23:15:20 +02:00
|
|
|
|
|
|
|
/* Support BigRequests extension */
|
|
|
|
#undef BIGREQS
|
|
|
|
|
|
|
|
/* Builder address */
|
|
|
|
#undef BUILDERADDR
|
|
|
|
|
2005-07-12 03:20:36 +02:00
|
|
|
/* Operating System Name */
|
|
|
|
#undef OSNAME
|
|
|
|
|
|
|
|
/* Operating System Vendor */
|
|
|
|
#undef OSVENDOR
|
|
|
|
|
2007-02-12 23:22:39 +01:00
|
|
|
/* Builder string */
|
|
|
|
#undef BUILDERSTRING
|
|
|
|
|
2005-07-01 23:15:20 +02:00
|
|
|
/* Default font path */
|
|
|
|
#undef COMPILEDDEFAULTFONTPATH
|
|
|
|
|
2007-11-26 21:24:15 +01:00
|
|
|
/* Miscellaneous server configuration files path */
|
|
|
|
#undef SERVER_MISC_CONFIG_PATH
|
|
|
|
|
2005-07-01 23:15:20 +02:00
|
|
|
/* Support Composite Extension */
|
|
|
|
#undef COMPOSITE
|
|
|
|
|
|
|
|
/* Support Damage extension */
|
|
|
|
#undef DAMAGE
|
|
|
|
|
2005-07-05 00:18:40 +02:00
|
|
|
/* Use OsVendorVErrorF */
|
|
|
|
#undef DDXOSVERRORF
|
|
|
|
|
|
|
|
/* Use ddxBeforeReset */
|
|
|
|
#undef DDXBEFORERESET
|
|
|
|
|
2005-07-01 23:15:20 +02:00
|
|
|
/* Build DPMS extension */
|
|
|
|
#undef DPMSExtension
|
|
|
|
|
2013-04-10 04:59:39 +02:00
|
|
|
/* Build DRI3 extension */
|
|
|
|
#undef DRI3
|
|
|
|
|
2005-07-01 23:15:20 +02:00
|
|
|
/* Build GLX extension */
|
|
|
|
#undef GLXEXT
|
|
|
|
|
2006-03-12 01:11:34 +01:00
|
|
|
/* Build GLX DRI loader */
|
|
|
|
#undef GLX_DRI
|
|
|
|
|
|
|
|
/* Path to DRI drivers */
|
|
|
|
#undef DRI_DRIVER_PATH
|
|
|
|
|
2005-07-01 23:15:20 +02:00
|
|
|
/* Support XDM-AUTH*-1 */
|
|
|
|
#undef HASXDMAUTH
|
|
|
|
|
|
|
|
/* Support SHM */
|
|
|
|
#undef HAS_SHM
|
|
|
|
|
2008-10-14 19:00:50 +02:00
|
|
|
/* Has backtrace support */
|
|
|
|
#undef HAVE_BACKTRACE
|
|
|
|
|
2013-02-21 00:02:44 +01:00
|
|
|
/* Has libunwind support */
|
|
|
|
#undef HAVE_LIBUNWIND
|
|
|
|
|
2007-01-04 00:44:55 +01:00
|
|
|
/* Define to 1 if you have the <byteswap.h> header file. */
|
|
|
|
#undef HAVE_BYTESWAP_H
|
|
|
|
|
2011-12-01 07:20:09 +01:00
|
|
|
/* Define to 1 if you have the `cbrt' function. */
|
2007-05-10 03:49:44 +02:00
|
|
|
#undef HAVE_CBRT
|
|
|
|
|
2005-07-01 23:15:20 +02:00
|
|
|
/* Define to 1 if you have the <dbm.h> header file. */
|
|
|
|
#undef HAVE_DBM_H
|
|
|
|
|
2014-09-21 18:49:06 +02:00
|
|
|
/* Define to 1 if you have the declaration of `program_invocation_short_name', and
|
|
|
|
to 0 if you don't. */
|
|
|
|
#undef HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
|
|
|
|
|
2005-07-01 23:15:20 +02:00
|
|
|
/* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.
|
|
|
|
*/
|
|
|
|
#undef HAVE_DIRENT_H
|
|
|
|
|
|
|
|
/* Define to 1 if you have the <dlfcn.h> header file. */
|
|
|
|
#undef HAVE_DLFCN_H
|
|
|
|
|
2008-10-14 19:00:50 +02:00
|
|
|
/* Have execinfo.h */
|
|
|
|
#undef HAVE_EXECINFO_H
|
|
|
|
|
2005-07-01 23:15:20 +02:00
|
|
|
/* Define to 1 if you have the <fcntl.h> header file. */
|
|
|
|
#undef HAVE_FCNTL_H
|
|
|
|
|
2011-12-01 07:20:09 +01:00
|
|
|
/* Define to 1 if you have the `ffs' function. */
|
|
|
|
#undef HAVE_FFS
|
|
|
|
|
|
|
|
/* Define to 1 if you have the `getdtablesize' function. */
|
|
|
|
#undef HAVE_GETDTABLESIZE
|
|
|
|
|
|
|
|
/* Define to 1 if you have the `getifaddrs' function. */
|
|
|
|
#undef HAVE_GETIFADDRS
|
|
|
|
|
|
|
|
/* Define to 1 if you have the `getpeereid' function. */
|
|
|
|
#undef HAVE_GETPEEREID
|
|
|
|
|
|
|
|
/* Define to 1 if you have the `getpeerucred' function. */
|
|
|
|
#undef HAVE_GETPEERUCRED
|
|
|
|
|
2014-09-21 18:49:06 +02:00
|
|
|
/* Define to 1 if you have the `getprogname' function. */
|
|
|
|
#undef HAVE_GETPROGNAME
|
|
|
|
|
2007-09-28 01:47:06 +02:00
|
|
|
/* Define to 1 if you have the `getzoneid' function. */
|
|
|
|
#undef HAVE_GETZONEID
|
|
|
|
|
2005-07-01 23:15:20 +02:00
|
|
|
/* Define to 1 if you have the <inttypes.h> header file. */
|
|
|
|
#undef HAVE_INTTYPES_H
|
|
|
|
|
2007-11-22 04:51:14 +01:00
|
|
|
/* Have Quartz */
|
|
|
|
#undef XQUARTZ
|
|
|
|
|
2009-07-19 00:51:29 +02:00
|
|
|
/* Support application updating through sparkle. */
|
|
|
|
#undef XQUARTZ_SPARKLE
|
|
|
|
|
2011-04-25 06:35:04 +02:00
|
|
|
/* Prefix to use for bundle identifiers */
|
|
|
|
#undef BUNDLE_ID_PREFIX
|
2009-09-04 04:40:11 +02:00
|
|
|
|
2008-11-16 04:52:34 +01:00
|
|
|
/* Build a standalone xpbproxy */
|
|
|
|
#undef STANDALONE_XPBPROXY
|
2008-10-03 20:09:26 +02:00
|
|
|
|
2005-07-01 23:15:20 +02:00
|
|
|
/* Define to 1 if you have the `m' library (-lm). */
|
|
|
|
#undef HAVE_LIBM
|
|
|
|
|
2011-04-22 00:51:32 +02:00
|
|
|
/* Define to 1 if you have the libdispatch (GCD) available */
|
|
|
|
#undef HAVE_LIBDISPATCH
|
|
|
|
|
2005-07-01 23:15:20 +02:00
|
|
|
/* Define to 1 if you have the <linux/agpgart.h> header file. */
|
|
|
|
#undef HAVE_LINUX_AGPGART_H
|
|
|
|
|
|
|
|
/* Define to 1 if you have the <linux/apm_bios.h> header file. */
|
|
|
|
#undef HAVE_LINUX_APM_BIOS_H
|
|
|
|
|
|
|
|
/* Define to 1 if you have the <linux/fb.h> header file. */
|
|
|
|
#undef HAVE_LINUX_FB_H
|
|
|
|
|
2011-12-01 07:20:09 +01:00
|
|
|
/* Define to 1 if you have the `mmap' function. */
|
|
|
|
#undef HAVE_MMAP
|
|
|
|
|
2016-09-11 06:14:19 +02:00
|
|
|
/* Define to 1 if you have the function pthread_setname_np(const char*) */
|
|
|
|
#undef HAVE_PTHREAD_SETNAME_NP_WITHOUT_TID
|
|
|
|
|
|
|
|
/* Define to 1 if you have the function pthread_setname_np(pthread_t, const char*) */
|
|
|
|
#undef HAVE_PTHREAD_SETNAME_NP_WITH_TID
|
|
|
|
|
2005-07-01 23:15:20 +02:00
|
|
|
/* Define to 1 if you have the <ndbm.h> header file. */
|
|
|
|
#undef HAVE_NDBM_H
|
|
|
|
|
|
|
|
/* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */
|
|
|
|
#undef HAVE_NDIR_H
|
|
|
|
|
2015-03-21 16:42:19 +01:00
|
|
|
/* Define to 1 if you have the `reallocarray' function. */
|
|
|
|
#undef HAVE_REALLOCARRAY
|
|
|
|
|
2005-07-01 23:15:20 +02:00
|
|
|
/* Define to 1 if you have the <rpcsvc/dbm.h> header file. */
|
|
|
|
#undef HAVE_RPCSVC_DBM_H
|
|
|
|
|
2009-11-02 11:11:24 +01:00
|
|
|
/* Define to use libc SHA1 functions */
|
|
|
|
#undef HAVE_SHA1_IN_LIBC
|
|
|
|
|
2009-11-06 03:13:07 +01:00
|
|
|
/* Define to use CommonCrypto SHA1 functions */
|
|
|
|
#undef HAVE_SHA1_IN_COMMONCRYPTO
|
|
|
|
|
2012-04-26 08:49:06 +02:00
|
|
|
/* Define to use CryptoAPI SHA1 functions */
|
|
|
|
#undef HAVE_SHA1_IN_CRYPTOAPI
|
|
|
|
|
2009-10-14 23:30:55 +02:00
|
|
|
/* Define to use libmd SHA1 functions */
|
2008-09-23 18:22:07 +02:00
|
|
|
#undef HAVE_SHA1_IN_LIBMD
|
|
|
|
|
2009-10-14 23:51:22 +02:00
|
|
|
/* Define to use libgcrypt SHA1 functions */
|
|
|
|
#undef HAVE_SHA1_IN_LIBGCRYPT
|
|
|
|
|
2012-10-30 04:37:37 +01:00
|
|
|
/* Define to use libnettle SHA1 functions */
|
|
|
|
#undef HAVE_SHA1_IN_LIBNETTLE
|
|
|
|
|
2009-10-28 20:54:00 +01:00
|
|
|
/* Define to use libsha1 for SHA1 */
|
|
|
|
#undef HAVE_SHA1_IN_LIBSHA1
|
|
|
|
|
2007-10-10 03:44:04 +02:00
|
|
|
/* Define to 1 if you have the `shmctl64' function. */
|
|
|
|
#undef HAVE_SHMCTL64
|
|
|
|
|
2005-07-01 23:15:20 +02:00
|
|
|
/* Define to 1 if you have the <stdlib.h> header file. */
|
|
|
|
#undef HAVE_STDLIB_H
|
|
|
|
|
2011-12-01 07:20:09 +01:00
|
|
|
/* Define to 1 if you have the `strcasecmp' function. */
|
|
|
|
#undef HAVE_STRCASECMP
|
|
|
|
|
|
|
|
/* Define to 1 if you have the `strcasestr' function. */
|
|
|
|
#undef HAVE_STRCASESTR
|
|
|
|
|
|
|
|
/* Define to 1 if you have the `strncasecmp' function. */
|
|
|
|
#undef HAVE_STRNCASECMP
|
|
|
|
|
|
|
|
/* Define to 1 if you have the `strlcat' function. */
|
|
|
|
#undef HAVE_STRLCAT
|
|
|
|
|
|
|
|
/* Define to 1 if you have the `strlcpy' function. */
|
|
|
|
#undef HAVE_STRLCPY
|
|
|
|
|
2005-07-01 23:15:20 +02:00
|
|
|
/* Define to 1 if you have the <strings.h> header file. */
|
|
|
|
#undef HAVE_STRINGS_H
|
|
|
|
|
|
|
|
/* Define to 1 if you have the <string.h> header file. */
|
|
|
|
#undef HAVE_STRING_H
|
|
|
|
|
2011-10-25 05:28:32 +02:00
|
|
|
/* Define to 1 if you have the `strndup' function. */
|
|
|
|
#undef HAVE_STRNDUP
|
|
|
|
|
2013-11-25 11:54:07 +01:00
|
|
|
/* Define to 1 if libsystemd-daemon is available */
|
|
|
|
#undef HAVE_SYSTEMD_DAEMON
|
|
|
|
|
2005-07-01 23:15:20 +02:00
|
|
|
/* Define to 1 if SYSV IPC is available */
|
|
|
|
#undef HAVE_SYSV_IPC
|
|
|
|
|
|
|
|
/* Define to 1 if you have the <sys/agpio.h> header file. */
|
|
|
|
#undef HAVE_SYS_AGPIO_H
|
|
|
|
|
|
|
|
/* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'.
|
|
|
|
*/
|
|
|
|
#undef HAVE_SYS_DIR_H
|
|
|
|
|
|
|
|
/* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'.
|
|
|
|
*/
|
|
|
|
#undef HAVE_SYS_NDIR_H
|
|
|
|
|
|
|
|
/* Define to 1 if you have the <sys/stat.h> header file. */
|
|
|
|
#undef HAVE_SYS_STAT_H
|
|
|
|
|
|
|
|
/* Define to 1 if you have the <sys/types.h> header file. */
|
|
|
|
#undef HAVE_SYS_TYPES_H
|
|
|
|
|
2010-06-08 05:39:53 +02:00
|
|
|
/* Define to 1 if you have the <sys/utsname.h> header file. */
|
|
|
|
#undef HAVE_SYS_UTSNAME_H
|
|
|
|
|
2017-02-28 19:18:25 +01:00
|
|
|
/* Define to 1 if you have the `timingsafe_memcmp' function. */
|
|
|
|
#undef HAVE_TIMINGSAFE_MEMCMP
|
|
|
|
|
2005-07-01 23:15:20 +02:00
|
|
|
/* Define to 1 if you have the <tslib.h> header file. */
|
|
|
|
#undef HAVE_TSLIB_H
|
|
|
|
|
|
|
|
/* Define to 1 if you have the <unistd.h> header file. */
|
|
|
|
#undef HAVE_UNISTD_H
|
|
|
|
|
2009-10-02 15:29:28 +02:00
|
|
|
/* Define to 1 if you have the <fnmatch.h> header file. */
|
|
|
|
#undef HAVE_FNMATCH_H
|
|
|
|
|
2007-11-17 01:53:11 +01:00
|
|
|
/* Have /dev/urandom */
|
|
|
|
#undef HAVE_URANDOM
|
|
|
|
|
2010-11-28 03:43:12 +01:00
|
|
|
/* Define to 1 if you have the `vasprintf' function. */
|
|
|
|
#undef HAVE_VASPRINTF
|
|
|
|
|
2005-07-01 23:15:20 +02:00
|
|
|
/* Support IPv6 for TCP connections */
|
|
|
|
#undef IPv6
|
|
|
|
|
2006-08-24 01:15:19 +02:00
|
|
|
/* Support os-specific local connections */
|
|
|
|
#undef LOCALCONN
|
|
|
|
|
2005-07-01 23:15:20 +02:00
|
|
|
/* Support MIT-SHM Extension */
|
|
|
|
#undef MITSHM
|
|
|
|
|
2006-07-20 02:09:55 +02:00
|
|
|
/* Enable some debugging code */
|
|
|
|
#undef DEBUG
|
|
|
|
|
2005-07-01 23:15:20 +02:00
|
|
|
/* Name of package */
|
|
|
|
#undef PACKAGE
|
|
|
|
|
|
|
|
/* Internal define for Xinerama */
|
|
|
|
#undef PANORAMIX
|
|
|
|
|
2013-07-12 01:11:57 +02:00
|
|
|
/* Support Present extension */
|
|
|
|
#undef PRESENT
|
|
|
|
|
2005-07-01 23:15:20 +02:00
|
|
|
/* Overall prefix */
|
|
|
|
#undef PROJECTROOT
|
|
|
|
|
|
|
|
/* Support RANDR extension */
|
|
|
|
#undef RANDR
|
|
|
|
|
|
|
|
/* Support Record extension */
|
2005-07-12 03:20:36 +02:00
|
|
|
#undef XRECORD
|
2005-07-01 23:15:20 +02:00
|
|
|
|
|
|
|
/* Support RENDER extension */
|
|
|
|
#undef RENDER
|
|
|
|
|
|
|
|
/* Support X resource extension */
|
|
|
|
#undef RES
|
|
|
|
|
2010-12-22 15:51:09 +01:00
|
|
|
/* Support client ID tracking in X resource extension */
|
|
|
|
#undef CLIENTIDS
|
|
|
|
|
2005-07-01 23:15:20 +02:00
|
|
|
/* Support MIT-SCREEN-SAVER extension */
|
|
|
|
#undef SCREENSAVER
|
|
|
|
|
2007-08-18 00:29:16 +02:00
|
|
|
/* Support Secure RPC ("SUN-DES-1") authentication for X11 clients */
|
|
|
|
#undef SECURE_RPC
|
|
|
|
|
2005-07-01 23:15:20 +02:00
|
|
|
/* Support SHAPE extension */
|
|
|
|
#undef SHAPE
|
|
|
|
|
Xorg: Add a suid root wrapper
With the recent systemd-logind changes it is possible to install the Xorg
binary without suid root rights and still have everything working as it
should *if* the user only has cards which are supported by kms.
This commit adds a little suid root wrapper, which is a bit weird, first we
strip the suid-root bit of the Xorg binary, and then we add a wrapper ?
The function of this wrapper is to see if a system still needs root-rights,
if it does not (it supports kms and the kms drivers are properly loaded),
then it will immediately drop all elevated rights before executing the real
Xorg binary. If it finds (some) cards which don't support kms, or no cards
at all, then it will execute the Xorg server with elevated rights so that
ie the nvidia binary driver and the vesa driver can keep working normally.
To make it possible for security concious users who don't need the root
rights to completely remove the wrapper, Xorg is started in a 3 step process
when the wrapper is enabled during build time:
1) A simple shell script which checks if the wrapper is there, if it is
it executes the wrapper, if not it directly executes the real Xorg binary
2) The wrapper gets executed, does its checks, normally drops all elevated
rights and then executes the real Xorg binary
3) The real Xorg binary does its thing
This allows distributions to put the wrapper binary in a separate package, and
will allow users to remove this package. IE the plan with Fedora is to make
"legacy" drivers depend on the wrapper pkg, and since our default install
contains some legacy drivers it will be part of the default install, but
users can later yum remove it (which will also automatically remove the
legacy driver packages as those won't work without it anyways).
The wrapper is loosely modelled after the existing Debian Xwrapper, it
uses the same config-file + config-file format, and also allows restricting
Xserver execution (through the wrapper) to console users only.
There also is a new needs_root_rights config file directive, which can
be used to override the auto-detection the wrapper does.
Hopefully this will allow Debian to replace their own wrapper with this
upstream one.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
2014-03-05 16:41:14 +01:00
|
|
|
/* Where to install Xorg.bin and Xorg.wrap */
|
|
|
|
#undef SUID_WRAPPER_DIR
|
|
|
|
|
2005-07-29 23:55:57 +02:00
|
|
|
/* Define to 1 on systems derived from System V Release 4 */
|
|
|
|
#undef SVR4
|
|
|
|
|
Xorg: Add a suid root wrapper
With the recent systemd-logind changes it is possible to install the Xorg
binary without suid root rights and still have everything working as it
should *if* the user only has cards which are supported by kms.
This commit adds a little suid root wrapper, which is a bit weird, first we
strip the suid-root bit of the Xorg binary, and then we add a wrapper ?
The function of this wrapper is to see if a system still needs root-rights,
if it does not (it supports kms and the kms drivers are properly loaded),
then it will immediately drop all elevated rights before executing the real
Xorg binary. If it finds (some) cards which don't support kms, or no cards
at all, then it will execute the Xorg server with elevated rights so that
ie the nvidia binary driver and the vesa driver can keep working normally.
To make it possible for security concious users who don't need the root
rights to completely remove the wrapper, Xorg is started in a 3 step process
when the wrapper is enabled during build time:
1) A simple shell script which checks if the wrapper is there, if it is
it executes the wrapper, if not it directly executes the real Xorg binary
2) The wrapper gets executed, does its checks, normally drops all elevated
rights and then executes the real Xorg binary
3) The real Xorg binary does its thing
This allows distributions to put the wrapper binary in a separate package, and
will allow users to remove this package. IE the plan with Fedora is to make
"legacy" drivers depend on the wrapper pkg, and since our default install
contains some legacy drivers it will be part of the default install, but
users can later yum remove it (which will also automatically remove the
legacy driver packages as those won't work without it anyways).
The wrapper is loosely modelled after the existing Debian Xwrapper, it
uses the same config-file + config-file format, and also allows restricting
Xserver execution (through the wrapper) to console users only.
There also is a new needs_root_rights config file directive, which can
be used to override the auto-detection the wrapper does.
Hopefully this will allow Debian to replace their own wrapper with this
upstream one.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
2014-03-05 16:41:14 +01:00
|
|
|
/* sysconfdir */
|
|
|
|
#undef SYSCONFDIR
|
|
|
|
|
2005-07-01 23:15:20 +02:00
|
|
|
/* Support TCP socket connections */
|
|
|
|
#undef TCPCONN
|
|
|
|
|
|
|
|
/* Support tslib touchscreen abstraction library */
|
|
|
|
#undef TSLIB
|
|
|
|
|
|
|
|
/* Support UNIX socket connections */
|
|
|
|
#undef UNIXCONN
|
|
|
|
|
2007-01-04 00:44:55 +01:00
|
|
|
/* Define to use byteswap macros from <sys/endian.h> */
|
|
|
|
#undef USE_SYS_ENDIAN_H
|
|
|
|
|
2005-07-01 23:15:20 +02:00
|
|
|
/* unaligned word accesses behave as expected */
|
|
|
|
#undef WORKING_UNALIGNED_INT
|
|
|
|
|
2007-10-11 20:17:17 +02:00
|
|
|
/* Build X string registry */
|
|
|
|
#undef XREGISTRY
|
|
|
|
|
2006-06-21 04:01:34 +02:00
|
|
|
/* Build X-ACE extension */
|
|
|
|
#undef XACE
|
|
|
|
|
2006-09-08 21:15:19 +02:00
|
|
|
/* Build SELinux extension */
|
|
|
|
#undef XSELINUX
|
|
|
|
|
2005-07-01 23:15:20 +02:00
|
|
|
/* Support XCMisc extension */
|
|
|
|
#undef XCMISC
|
|
|
|
|
|
|
|
/* Build Security extension */
|
|
|
|
#undef XCSECURITY
|
|
|
|
|
|
|
|
/* Support Xdmcp */
|
|
|
|
#undef XDMCP
|
|
|
|
|
|
|
|
/* Build XFree86 BigFont extension */
|
|
|
|
#undef XF86BIGFONT
|
|
|
|
|
|
|
|
/* Support XFree86 Video Mode extension */
|
|
|
|
#undef XF86VIDMODE
|
|
|
|
|
|
|
|
/* Support XFixes extension */
|
|
|
|
#undef XFIXES
|
|
|
|
|
|
|
|
/* Build XDGA support */
|
2005-11-10 05:59:21 +01:00
|
|
|
#undef XFreeXDGA
|
2005-07-01 23:15:20 +02:00
|
|
|
|
|
|
|
/* Support Xinerama extension */
|
|
|
|
#undef XINERAMA
|
|
|
|
|
|
|
|
/* Vendor release */
|
|
|
|
#undef XORG_RELEASE
|
|
|
|
|
|
|
|
/* Current Xorg version */
|
|
|
|
#undef XORG_VERSION_CURRENT
|
|
|
|
|
2005-11-08 23:47:57 +01:00
|
|
|
/* Xorg release date */
|
|
|
|
#undef XORG_DATE
|
|
|
|
|
2005-12-01 23:06:49 +01:00
|
|
|
/* Build Xv Extension */
|
|
|
|
#undef XvExtension
|
|
|
|
|
|
|
|
/* Build XvMC Extension */
|
|
|
|
#undef XvMCExtension
|
|
|
|
|
2005-07-01 23:15:20 +02:00
|
|
|
/* Support XSync extension */
|
|
|
|
#undef XSYNC
|
|
|
|
|
|
|
|
/* Support XTest extension */
|
|
|
|
#undef XTEST
|
|
|
|
|
2005-10-17 09:18:59 +02:00
|
|
|
/* Support Xv extension */
|
2005-07-01 23:15:20 +02:00
|
|
|
#undef XV
|
|
|
|
|
2005-10-17 09:18:59 +02:00
|
|
|
/* Support DRI extension */
|
2005-07-16 00:51:05 +02:00
|
|
|
#undef XF86DRI
|
|
|
|
|
2008-02-04 17:58:24 +01:00
|
|
|
/* Build DRI2 extension */
|
|
|
|
#undef DRI2
|
|
|
|
|
2005-11-02 16:56:40 +01:00
|
|
|
/* Build DBE support */
|
|
|
|
#undef DBE
|
|
|
|
|
2005-07-01 23:15:20 +02:00
|
|
|
/* Vendor name */
|
|
|
|
#undef XVENDORNAME
|
|
|
|
|
2015-03-17 02:21:12 +01:00
|
|
|
/* Number of bits in a file offset, on hosts where this is settable. */
|
|
|
|
#undef _FILE_OFFSET_BITS
|
|
|
|
|
2007-01-10 22:10:43 +01:00
|
|
|
/* Enable GNU and other extensions to the C environment for GLIBC */
|
|
|
|
#undef _GNU_SOURCE
|
2005-08-08 04:30:31 +02:00
|
|
|
|
2015-03-17 02:21:12 +01:00
|
|
|
/* Define for large files, on AIX-style hosts. */
|
|
|
|
#undef _LARGE_FILES
|
|
|
|
|
2005-07-01 23:15:20 +02:00
|
|
|
/* Define to empty if `const' does not conform to ANSI C. */
|
|
|
|
#undef const
|
|
|
|
|
|
|
|
/* Define to `int' if <sys/types.h> does not define. */
|
|
|
|
#undef pid_t
|
2005-07-06 01:01:51 +02:00
|
|
|
|
|
|
|
/* Build Rootless code */
|
|
|
|
#undef ROOTLESS
|
2005-07-16 00:51:05 +02:00
|
|
|
|
2005-08-21 21:23:17 +02:00
|
|
|
/* Define to 1 if unsigned long is 64 bits. */
|
|
|
|
#undef _XSERVER64
|
|
|
|
|
2005-09-13 20:37:35 +02:00
|
|
|
/* System is BSD-like */
|
|
|
|
#undef CSRG_BASED
|
|
|
|
|
2005-12-30 06:44:14 +01:00
|
|
|
/* Define to 1 if `struct sockaddr_in' has a `sin_len' member */
|
|
|
|
#undef BSD44SOCKETS
|
|
|
|
|
2007-07-08 13:28:58 +02:00
|
|
|
/* Support D-Bus */
|
2006-07-19 16:05:12 +02:00
|
|
|
#undef HAVE_DBUS
|
|
|
|
|
2009-09-27 14:45:47 +02:00
|
|
|
/* Use libudev for input hotplug */
|
|
|
|
#undef CONFIG_UDEV
|
|
|
|
|
xfree86: use udev to provide device enumeration for kms devices (v10)
On Linux in order for future hotplug work, we are required to interface
to udev to detect device creation/removal. In order to try and get
some earlier testing on this, this patch adds the ability to use
udev for device enumeration on Linux.
At startup the list of drm/kms devices is probed and this info is
used to load drivers.
A new driver probing method is introduced that passes the udev
device info to the driver for probing.
The probing integrates with the pci probing code and will fallback
to the pci probe and old school probe functions in turn.
The flags parameter to the probe function will be used later
to provide hotplug and gpu screen flags for the driver to behave
in a different way.
This patch changes the driver ABI, all drivers should at least
be set with a NULL udev probe function after this commit.
v2: rename to platform bus, now with 100% less udev specific,
this version passes config_odev_attribs around which are an array
of id/string pairs, then the udev code can attach the set of attribs
it understands, the OS specific code can attach its attrib, and then
the core/drivers can lookup the required attribs.
also add MATCH_PCI_DEVICES macro.
This version is mainly to address concerns raised by ajax.
v3: Address comments from Peter.
fix whitespace that snuck in.
rework to use a linked list with some core functions that
xf86 wraps.
v4: add free list, fix struct whitespace.
ajax this address most of your issues?
v5: drop probe ifdef, fix logic issue
v6: some overhaul after more testing.
Implement primaryBus for platform devices.
document hotplug.h dev attribs - drop sysname attrib
fix build with udev kms disabled
make probing work like the PCI probe code,
match against bus id if one exists, or primary device.
RFC: add new bus id support "PLAT:syspath". we probably
want to match on this a bit different, or use a different
property maybe. I was mainly wanting this for use with
specifying usb devices in xorg.conf directly, but PLAT:path
could also work I suppose.
v6.1: add missing noop platform function
v7: fix two interactions with pci probing and slot claiming, prevents
pci and platform trying to load two drivers for same slot.
v8: test with zaphod mode on -ati driver, fixup resulting issue
clean up common probe code into another function, change busid
matching to allow dropping end of strings.
v9: fix platform probing logic so it actually works.
v9.1: fix pdev init to NULL properly.
v10: address most of Keith's concerns.
v4 was thanks to Reviewed-by: Adam Jackson <ajax@redhat.com>
v5 was Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-05-08 15:26:47 +02:00
|
|
|
/* Use libudev for kms enumeration */
|
|
|
|
#undef CONFIG_UDEV_KMS
|
|
|
|
|
2011-09-27 19:04:06 +02:00
|
|
|
/* Use udev_monitor_filter_add_match_tag() */
|
|
|
|
#undef HAVE_UDEV_MONITOR_FILTER_ADD_MATCH_TAG
|
|
|
|
|
|
|
|
/* Use udev_enumerate_add_match_tag() */
|
|
|
|
#undef HAVE_UDEV_ENUMERATE_ADD_MATCH_TAG
|
|
|
|
|
2013-12-04 11:10:06 +01:00
|
|
|
/* Enable D-Bus core */
|
|
|
|
#undef NEED_DBUS
|
2008-07-02 18:52:58 +02:00
|
|
|
|
2007-08-01 00:10:50 +02:00
|
|
|
/* Support HAL for hotplug */
|
|
|
|
#undef CONFIG_HAL
|
|
|
|
|
2014-01-07 12:15:12 +01:00
|
|
|
/* Enable systemd-logind integration */
|
|
|
|
#undef SYSTEMD_LOGIND 1
|
|
|
|
|
2006-10-25 22:57:00 +02:00
|
|
|
/* Have a monotonic clock from clock_gettime() */
|
|
|
|
#undef MONOTONIC_CLOCK
|
|
|
|
|
2006-11-03 21:54:43 +01:00
|
|
|
/* Define to 1 if the DTrace Xserver provider probes should be built in */
|
|
|
|
#undef XSERVER_DTRACE
|
|
|
|
|
2007-01-04 00:44:55 +01:00
|
|
|
/* Define to 16-bit byteswap macro */
|
|
|
|
#undef bswap_16
|
|
|
|
|
|
|
|
/* Define to 32-bit byteswap macro */
|
|
|
|
#undef bswap_32
|
|
|
|
|
|
|
|
/* Define to 64-bit byteswap macro */
|
|
|
|
#undef bswap_64
|
|
|
|
|
2012-08-28 19:06:51 +02:00
|
|
|
/* Define to 1 if typeof works with your compiler. */
|
|
|
|
#undef HAVE_TYPEOF
|
|
|
|
|
2012-12-07 01:15:50 +01:00
|
|
|
/* Define to __typeof__ if your compiler spells it that way. */
|
|
|
|
#undef typeof
|
|
|
|
|
2009-01-16 06:03:27 +01:00
|
|
|
/* Correctly set _XSERVER64 for OSX fat binaries */
|
|
|
|
#ifdef __APPLE__
|
2009-01-31 01:17:58 +01:00
|
|
|
#include "dix-config-apple-verbatim.h"
|
2009-01-16 06:03:27 +01:00
|
|
|
#endif
|
2009-01-07 19:55:08 +01:00
|
|
|
|
2013-11-08 06:08:56 +01:00
|
|
|
/* Enable general extensions on Solaris. */
|
|
|
|
#ifndef __EXTENSIONS__
|
|
|
|
# undef __EXTENSIONS__
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* Defined if needed to expose struct msghdr.msg_control */
|
|
|
|
#undef _XOPEN_SOURCE
|
|
|
|
|
2013-11-06 03:37:12 +01:00
|
|
|
/* Have support for X shared memory fence library (xshmfence) */
|
|
|
|
#undef HAVE_XSHMFENCE
|
|
|
|
|
2013-11-07 08:05:46 +01:00
|
|
|
/* Use XTrans FD passing support */
|
|
|
|
#undef XTRANS_SEND_FDS
|
|
|
|
|
2013-11-03 22:12:40 +01:00
|
|
|
/* Wrap SIGBUS to catch MIT-SHM faults */
|
|
|
|
#undef BUSFAULT
|
|
|
|
|
2013-11-13 04:17:10 +01:00
|
|
|
/* Directory for shared memory temp files */
|
|
|
|
#undef SHMDIR
|
|
|
|
|
2013-12-15 10:05:51 +01:00
|
|
|
/* Don't let Xdefs.h define 'pointer' */
|
|
|
|
#define _XTYPEDEF_POINTER 1
|
|
|
|
|
2014-01-22 23:30:28 +01:00
|
|
|
/* Don't let XIproto define 'Pointer' */
|
|
|
|
#define _XITYPEDEF_POINTER 1
|
|
|
|
|
2013-12-13 20:25:45 +01:00
|
|
|
/* Ask fontsproto to make font path element names const */
|
|
|
|
#define FONT_PATH_ELEMENT_NAME_CONST 1
|
|
|
|
|
2013-12-18 20:35:53 +01:00
|
|
|
/* Build GLAMOR */
|
|
|
|
#undef GLAMOR
|
|
|
|
|
2013-12-28 01:44:15 +01:00
|
|
|
/* Build glamor's GBM-based EGL support */
|
|
|
|
#undef GLAMOR_HAS_GBM
|
|
|
|
|
2015-06-10 06:46:22 +02:00
|
|
|
/* Build glamor/gbm has linear support */
|
|
|
|
#undef GLAMOR_HAS_GBM_LINEAR
|
|
|
|
|
2014-07-21 16:06:53 +02:00
|
|
|
/* byte order */
|
|
|
|
#undef X_BYTE_ORDER
|
|
|
|
|
2014-09-12 20:33:48 +02:00
|
|
|
/* Listen on TCP socket */
|
|
|
|
#undef LISTEN_TCP
|
|
|
|
|
|
|
|
/* Listen on Unix socket */
|
|
|
|
#undef LISTEN_UNIX
|
|
|
|
|
|
|
|
/* Listen on local socket */
|
|
|
|
#undef LISTEN_LOCAL
|
|
|
|
|
2015-07-06 18:15:44 +02:00
|
|
|
/* Define if no local socket credentials interface exists */
|
|
|
|
#undef NO_LOCAL_CLIENT_CRED
|
|
|
|
|
2015-11-12 07:02:01 +01:00
|
|
|
/* Have setitimer support */
|
|
|
|
#undef HAVE_SETITIMER
|
|
|
|
|
2016-03-08 13:05:33 +01:00
|
|
|
/* Have posix_fallocate() */
|
|
|
|
#undef HAVE_POSIX_FALLOCATE
|
|
|
|
|
2015-12-08 20:37:51 +01:00
|
|
|
/* Use input thread */
|
|
|
|
#undef INPUTTHREAD
|
|
|
|
|
2016-07-12 00:30:05 +02:00
|
|
|
/* Have poll() */
|
|
|
|
#undef HAVE_POLL
|
|
|
|
|
2016-05-26 19:20:45 +02:00
|
|
|
/* Have epoll_create1() */
|
|
|
|
#undef HAVE_EPOLL_CREATE1
|
|
|
|
|
2005-07-16 00:51:05 +02:00
|
|
|
#endif /* _DIX_CONFIG_H_ */
|