Fix --with-xft=no

This commit is contained in:
mainzelm 2004-02-11 22:03:12 +00:00
parent 573a31f9ea
commit ad84aa5c87
3 changed files with 12 additions and 9 deletions

View File

@ -3,8 +3,13 @@ INCLUDES = -I@top_srcdir@/c/xlib -I@top_srcdir@/c/libs -I@x_includes@ \
noinst_LTLIBRARIES = libscxxft.la
libscxxft_la_SOURCES = \
xft.c xrender.c
if WITH_XFT
xft_sources = xft.c xrender.c
xft_libadd = -lXft
endif
libscxxft_la_LIBADD = $(X_LIBS) -lXft
libscxxft_la_SOURCES = \
$(xft_sources)
libscxxft_la_LIBADD = $(X_LIBS) $(xft_libadd)
libscxxft_la_LDFLAGS= -avoid-version -module

View File

@ -23,12 +23,10 @@
AC_ARG_WITH(xft,
AC_HELP_STRING([--with-xft],
[Compile with Xft support]),
with_xft="yes",
with_xft="no")
[Compile with Xft support]))
dnl Compile with Xft support?
if test "$with_xft" = "yes"; then
if test "x$with_xft" = "xyes"; then
AC_CHECKING([xft-config program])
AC_CHECK_PROG([XFT_CONFIG], [xft-config], "yes", "no", $PATH, [])
@ -45,7 +43,7 @@
SCX_PREPEND(\$(XFT_OBJECTS), extra_objects)
AC_SUBST(load_xft_packages, yes)
fi
AM_CONDITIONAL(WITH_XFT, test "x$with_xft" = "xyes")
schemedir='${prefix}'"/scheme"
libdir='${prefix}'"/lib"
libsysdir='${prefix}'

View File

@ -10,7 +10,7 @@
(xft? (get-option-value 'with-xft))
(configure `("./configure"
,(string-append "--prefix=" prefix)
,(if xft? "--with-xft" "--without-xft")
,(if xft? "--with-xft=yes" "--with-xft=no")
,(string-append "--with-scsh-includes=" scsh-includes)
,(string-append "--build=" build-host)))