ab686ce029
RELOCATE_PROJECTROOT is AC_DEFINED in configure.ac, but currently has no effect as it doesn't appear in any AC_CONFIG_HEADER header. When packaged for Windows, we do not have a unix-style filesystem tree, where file needed by the X server can be found in fixed, absolute paths under the prefix (PROJECTROOT). Instead, the filesystem tree containing files needed by the X server and clients will be installed with the directory containing the X server executable as the root directory of that tree. (Typically, this will be in the Program Files directory, which does not have a fixed name, as it can be moved, localized, or added to to indicate x86 or x64 binaries) So, RELOCATE_PROJECTROOT is used to make a native Windows build of the X server look for various files (fonts, xkb data) in locations relative to the X server rather than at absolute paths, by translating those paths at run-time. Additionally the XKEYSYMDB, XERRORDB, XLOCALEDIR env vars checked by libX11 are set appropriately for clients started by the X server. Signed-off-by: Ryan Pavlik <rpavlik@iastate.edu> Reviewed-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Colin Harrison <colin.harrison@virgin.net>
37 lines
725 B
C
37 lines
725 B
C
/*
|
|
* xwin-config.h.in
|
|
*
|
|
* This file has all defines used in the xwin ddx
|
|
*
|
|
*/
|
|
#include <dix-config.h>
|
|
|
|
/* Winsock networking */
|
|
#undef HAS_WINSOCK
|
|
|
|
/* Cygwin has /dev/windows for signaling new win32 messages */
|
|
#undef HAS_DEVWINDOWS
|
|
|
|
/* Switch on debug messages */
|
|
#undef CYGDEBUG
|
|
#undef CYGWINDOWING_DEBUG
|
|
#undef CYGMULTIWINDOW_DEBUG
|
|
|
|
/* Define to 1 if unsigned long is 64 bits. */
|
|
#undef _XSERVER64
|
|
|
|
/* Short vendor name */
|
|
#undef XVENDORNAMESHORT
|
|
|
|
/* Vendor web address for support */
|
|
#undef __VENDORDWEBSUPPORT__
|
|
|
|
/* Location of system.XWinrc */
|
|
#undef SYSCONFDIR
|
|
|
|
/* Default log location */
|
|
#undef DEFAULT_LOGDIR
|
|
|
|
/* Whether we should re-locate the root to where the executable lives */
|
|
#undef RELOCATE_PROJECTROOT
|