From: Glenn Morris Date: Wed, 28 Apr 2010 07:08:53 +0000 (-0700) Subject: Set FONT_DRIVERS with configure rather than cpp. X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~438^2~358 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=bc0b5f61851a4014a4b3857b5c8c79db96ee756f;p=emacs.git Set FONT_DRIVERS with configure rather than cpp. * configure.in (FONT_OBJ): New output variable. * src/Makefile.in (FONT_OBJ): New, set by configure. (FONT_DRIVERS): Use $FONT_OBJ. --- diff --git a/ChangeLog b/ChangeLog index 0673c9a1089..639ba623e91 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2010-04-28 Glenn Morris + * configure.in (FONT_OBJ): New output variable. + * configure.in (LIBXMU): New output variable. * configure.in (NS_OBJ, NS_SUPPORT): New output variables. diff --git a/configure.in b/configure.in index 57831879b71..89f2b47ff8f 100644 --- a/configure.in +++ b/configure.in @@ -2121,6 +2121,15 @@ else HAVE_LIBOTF=no HAVE_M17N_FLT=no fi + +FONT_OBJ=xfont.o +if test "$HAVE_XFT" = "yes"; then + FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o" +elif test "$HAVE_FREETYPE" = "yes"; then + FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o" +fi +AC_SUBST(FONT_OBJ) + ### End of font-backend (under X11) section. AC_SUBST(FREETYPE_CFLAGS) diff --git a/src/ChangeLog b/src/ChangeLog index b045fa9b4e1..53eab88cc39 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,8 @@ 2010-04-28 Glenn Morris + * Makefile.in (FONT_OBJ): New, set by configure. + (FONT_DRIVERS): Use $FONT_OBJ. + * Makefile.in (LIBXMU): Set with configure, not cpp. * s/aix4-2.h (LIBXMU): * s/hpux10-20.h (LIBXMU): diff --git a/src/Makefile.in b/src/Makefile.in index 256662a4029..a90b0ef862d 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -109,6 +109,9 @@ WIDGET_OBJ=@WIDGET_OBJ@ NS_OBJ=@NS_OBJ@ NS_SUPPORT=@NS_SUPPORT@ +## Only used if HAVE_X_WINDOWS and HAVE_WINDOW_SYSTEM. +FONT_OBJ=@FONT_OBJ@ + LIBSELINUX_LIBS = @LIBSELINUX_LIBS@ INTERVALS_H = dispextern.h intervals.h composite.h @@ -374,13 +377,7 @@ ns_appsrc=@ns_appsrc@ #ifdef HAVE_WINDOW_SYSTEM #ifdef HAVE_X_WINDOWS -#if defined (HAVE_XFT) -FONT_DRIVERS = xfont.o ftfont.o xftfont.o ftxfont.o -#elif defined (HAVE_FREETYPE) -FONT_DRIVERS = xfont.o ftfont.o ftxfont.o -#else /* ! defined (HAVE_XFT) && ! defined (HAVE_FREETYPE) */ -FONT_DRIVERS = xfont.o -#endif /* ! defined (HAVE_XFT) && ! defined (HAVE_FREETYPE) */ +FONT_DRIVERS=$(FONT_OBJ) #endif /* HAVE_X_WINDOWS */ #endif /* HAVE_WINDOW_SYSTEM */