alanc@alf:/export/alanc/X.org/head/cvs-rw/xc [7:40pm - 628] head -14
ChangeLog include xorg-config.h for modular build Adjust XF86CONFIG defines for modular build Fixes for modular build: - include modular server config headers - change default XCONFIGFILE to xorg.conf - define XKB_RULES_DIR if not defined by Imake
This commit is contained in:
parent
256fa24945
commit
0531c4be2f
|
@ -29,6 +29,10 @@
|
|||
* $XFree86: xc/programs/Xserver/hw/xfree86/xf86cfg/config.h,v 1.21 2004/02/13 23:58:52 dawes Exp $
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include "xorg-config.h"
|
||||
#endif
|
||||
|
||||
#include <X11/IntrinsicP.h>
|
||||
#include <X11/StringDefs.h>
|
||||
#include <X11/Xmu/SysUtil.h>
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
/* $XdotOrg: $ */
|
||||
/*
|
||||
* Copyright (c) 2000 by Conectiva S.A. (http://www.conectiva.com)
|
||||
*
|
||||
|
@ -528,18 +529,13 @@ main(int argc, char *argv[])
|
|||
|
||||
if (!config_set && startedx) {
|
||||
XtFree(XF86Config_path);
|
||||
#ifdef XF86CONFIG
|
||||
# ifdef XF86CONFIGDIR
|
||||
#ifndef XF86CONFIG
|
||||
# define XF86CONFIG __XCONFIGFILE__
|
||||
#endif
|
||||
#ifdef XF86CONFIGDIR
|
||||
XF86Config_path = XtNewString(XF86CONFIGDIR "/" XF86CONFIG);
|
||||
# else
|
||||
XF86Config_path = XtNewString("/etc/X11/" XF86CONFIG);
|
||||
# endif
|
||||
#else
|
||||
# ifdef XF86CONFIGDIR
|
||||
XF86Config_path = XtNewString(XF86CONFIGDIR "/"__XCONFIGFILE__);
|
||||
# else
|
||||
XF86Config_path = XtNewString("/etc/X11/"__XCONFIGFILE__);
|
||||
# endif
|
||||
XF86Config_path = XtNewString("/etc/X11/" XF86CONFIG);
|
||||
#endif
|
||||
}
|
||||
XtAppMainLoop(appcon);
|
||||
|
|
|
@ -96,6 +96,11 @@
|
|||
/* $XConsortium: xf86config.c /main/21 1996/10/28 05:43:57 kaleb $ */
|
||||
/* $XdotOrg: xc/programs/Xserver/hw/xfree86/xf86config/xorgconfig.c,v 1.14 2005/05/28 00:08:03 alanc Exp $ */
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include "xorg-server.h"
|
||||
# include "xkb-config.h"
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <ctype.h>
|
||||
|
@ -176,7 +181,7 @@ static int getuid() { return 0; }
|
|||
#endif
|
||||
|
||||
#ifndef XCONFIGFILE
|
||||
#define XCONFIGFILE "XF86Config"
|
||||
#define XCONFIGFILE "xorg.conf"
|
||||
#endif
|
||||
#define CONFIGNAME XCONFIGFILE
|
||||
|
||||
|
@ -728,6 +733,10 @@ keyboard_configuration(void)
|
|||
}
|
||||
#endif
|
||||
|
||||
#ifndef XKB_RULES_DIR
|
||||
# define XKB_RULES_DIR XKB_BASE_DIRECTORY "/rules"
|
||||
#endif
|
||||
|
||||
#ifdef XFREE98_XKB
|
||||
config_xkbrules = "xfree98"; /* static */
|
||||
rulesfile = XKB_RULES_DIR "/xfree98";
|
||||
|
|
Loading…
Reference in New Issue