@@ -248,6 +248,9 @@ DEFAULT_FONT_PATH="${FONTDIR}/misc/,${FONTDIR}/100dpi/,${FONTDIR}/75dpi/"
248
248
AC_ARG_WITH ( default-font-path , AS_HELP_STRING ( [ --with-default-font-path=PATH] , [ Comma separated list of font dirs] ) ,
249
249
[ FONTPATH="$withval" ] ,
250
250
[ FONTPATH="${DEFAULT_FONT_PATH}" ] )
251
+ AC_ARG_ENABLE ( libXfont2 , AS_HELP_STRING ( [ --enable-libXfont2] ,
252
+ [ Build with libXfont2 (default: disabled)] ) ,
253
+ [ XFONT2=$enableval] , [ XFONT2=no] )
251
254
252
255
dnl Extensions.
253
256
AC_ARG_ENABLE ( xres , AS_HELP_STRING ( [ --disable-xres] , [ Build XRes extension (default: enabled)] ) , [ RES=$enableval] , [ RES=yes] )
@@ -319,9 +322,18 @@ XEXT_INC='-I$(top_srcdir)/Xext'
319
322
XEXT_LIB='$(top_builddir)/Xext/libXext.la'
320
323
XEXTXORG_LIB='$(top_builddir)/Xext/libXextbuiltin.la'
321
324
325
+ AM_CONDITIONAL(DEBUG, test "x$DEBUGGING" = xyes)
326
+
327
+ if test "x$XFONT2" = xyes; then
328
+ AC_DEFINE ( XFONT2 , 1 , [ Build with libXfont2] )
329
+ XFONT_LIB="xfont2"
330
+ else
331
+ XFONT_LIB="xfont"
332
+ fi
333
+
322
334
dnl Core modules for most extensions, et al.
323
335
REQUIRED_MODULES="[ randrproto >= 1.2] renderproto [ fixesproto >= 4.0] [ damageproto >= 1.1] xcmiscproto xextproto xproto xtrans xf86bigfontproto [ scrnsaverproto >= 1.1] bigreqsproto resourceproto fontsproto inputproto [ kbproto >= 1.0.3] "
324
- REQUIRED_LIBS="xfont fontenc"
336
+ REQUIRED_LIBS="$XFONT_LIB fontenc"
325
337
326
338
AM_CONDITIONAL(SCREENSAVER, [ test "x$SCREENSAVER" = xyes] )
327
339
if test "x$SCREENSAVER" = xyes; then
0 commit comments