changeset 90407:a5e4ef15f5c1

(main) [USE_FONT_BACKEND]: Handle arg --enable-font-backend. Call syms_of_font.
author Kenichi Handa <handa@m17n.org>
date Tue, 06 Jun 2006 03:50:58 +0000
parents 205c3ef62243
children cc49fe5026c6
files src/emacs.c
diffstat 1 files changed, 13 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/emacs.c	Tue Jun 06 03:50:45 2006 +0000
+++ b/src/emacs.c	Tue Jun 06 03:50:58 2006 +0000
@@ -821,6 +821,9 @@
   return count >= 3 ? REPORT_EMACS_BUG_PRETEST_ADDRESS : REPORT_EMACS_BUG_ADDRESS;
 }
 
+#ifdef USE_FONT_BACKEND
+extern int enable_font_backend;
+#endif	/* USE_FONT_BACKEND */
 
 /* ARGSUSED */
 int
@@ -1178,6 +1181,13 @@
       exit (0);
     }
 
+#ifdef USE_FONT_BACKEND
+  enable_font_backend = 0;
+  if (argmatch (argv, argc, "-enable-font-backend", "--enable-font-backend",
+		4, NULL, &skip_args))
+    enable_font_backend = 1;
+#endif	/* USE_FONT_BACKEND */
+
   if (! noninteractive)
     {
 #ifdef BSD_PGRPS
@@ -1624,6 +1634,9 @@
       syms_of_window ();
       syms_of_xdisp ();
 #ifdef HAVE_WINDOW_SYSTEM
+#ifdef USE_FONT_BACKEND
+      syms_of_font ();
+#endif	/* USE_FONT_BACKEND */
       syms_of_fringe ();
       syms_of_image ();
 #endif /* HAVE_WINDOW_SYSTEM */