aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenichi Handa2008-05-14 01:49:04 +0000
committerKenichi Handa2008-05-14 01:49:04 +0000
commit1ef37fa87d5e6c463b202853d80fb5fcadb61781 (patch)
tree9ce36798788a23bf167c07c481b5f3e19cdf79f6
parent3aa9f0c4083a096d1d410c6dcda35fe812af004f (diff)
downloademacs-1ef37fa87d5e6c463b202853d80fb5fcadb61781.tar.gz
emacs-1ef37fa87d5e6c463b202853d80fb5fcadb61781.zip
Don't handle --disable-font-backend. Don't print
a message about a font backend.
-rw-r--r--configure.in168
1 files changed, 77 insertions, 91 deletions
diff --git a/configure.in b/configure.in
index 75317a59630..dd81dc39aaa 100644
--- a/configure.in
+++ b/configure.in
@@ -175,12 +175,6 @@ AC_ARG_ENABLE(carbon-app,
175 [DIR=/Application]])], 175 [DIR=/Application]])],
176[ carbon_appdir_x=${enableval}]) 176[ carbon_appdir_x=${enableval}])
177 177
178## Enabled by default.
179AC_ARG_ENABLE(font-backend,
180[AS_HELP_STRING([--disable-font-backend],[don't compile font-backend support])],
181 USE_FONT_BACKEND=$enableval,
182 USE_FONT_BACKEND=yes)
183
184AC_ARG_ENABLE(asserts, 178AC_ARG_ENABLE(asserts,
185[AS_HELP_STRING([--enable-asserts], [compile code with asserts enabled])], 179[AS_HELP_STRING([--enable-asserts], [compile code with asserts enabled])],
186 USE_XASSERTS=$enableval, 180 USE_XASSERTS=$enableval,
@@ -1982,100 +1976,93 @@ either XPointer or XPointer*.])dnl
1982fi 1976fi
1983 1977
1984### Start of font-backend section. 1978### Start of font-backend section.
1985if test "${HAVE_X11}" != "yes"; then 1979
1986 USE_FONT_BACKEND=no 1980## Use -lXft if available, unless `--with-freetype=no' nor `--with-xft=no'.
1981HAVE_XFT=maybe
1982if test "x${with_freetype}" = "xno"; then
1983 with_xft="no";
1984fi
1985if test "x${with_xft}" != "xno"; then
1986
1987 PKG_CHECK_MODULES(XFT, xft >= 0.13.0, , HAVE_XFT=no)
1988 if test "$HAVE_XFT" != no; then
1989 OLD_CPPFLAGS="$CPPFLAGS"
1990 OLD_CFLAGS="$CFLAGS"
1991 OLD_LIBS="$LIBS"
1992 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
1993 CFLAGS="$CFLAGS $XFT_CFLAGS"
1994 LIBS="$XFT_LIBS $LIBS"
1995 AC_CHECK_HEADER(X11/Xft/Xft.h,
1996 AC_CHECK_LIB(Xft, XftFontOpen, HAVE_XFT=yes, , $XFT_LIBS))
1997
1998 if test "${HAVE_XFT}" = "yes"; then
1999 AC_DEFINE(HAVE_XFT, 1, [Define to 1 if you have the Xft library.])
2000 AC_SUBST(XFT_LIBS)
2001 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
2002 else
2003 CPPFLAGS="$OLD_CPPFLAGS"
2004 CFLAGS="$OLD_CFLAGS"
2005 LIBS="$OLD_LIBS"
2006 fi # "${HAVE_XFT}" = "yes"
2007 fi # "$HAVE_XFT" != no
2008fi # "x${with_xft}" != "xno"
2009
2010dnl For the "Does Emacs use" message at the end.
2011if test "$HAVE_XFT" != "yes"; then
2012 HAVE_XFT=no
1987fi 2013fi
1988 2014
1989if test "${USE_FONT_BACKEND}" = "yes"; then
1990 AC_DEFINE(USE_FONT_BACKEND, 1, [Define to 1 if we should use font-backend.])
1991 2015
1992 ## Use -lXft if available, unless `--with-freetype=no' nor `--with-xft=no'. 2016HAVE_FREETYPE=no
1993 HAVE_XFT=maybe 2017### Use -lfreetype if available, unless `--with-freetype=no'.
1994 if test "x${with_freetype}" = "xno"; then 2018if test "${HAVE_XFT}" = "yes"; then
1995 with_xft="no"; 2019 dnl As we use Xft, we anyway use freetype.
1996 fi 2020 dnl In this case, there's no need of additional CFLAGS and LIBS.
1997 if test "x${with_xft}" != "xno"; then 2021 HAVE_FREETYPE=yes
2022elif test "x${with_freetype}" != "xno"; then
1998 2023
1999 PKG_CHECK_MODULES(XFT, xft >= 0.13.0, , HAVE_XFT=no) 2024 PKG_CHECK_MODULES(FREETYPE, freetype2, HAVE_FREETYPE=yes, HAVE_FREETYPE=no)
2000 if test "$HAVE_XFT" != no; then 2025 if test "${HAVE_FREETYPE}" = "yes"; then
2001 OLD_CPPFLAGS="$CPPFLAGS" 2026 PKG_CHECK_MODULES(FONTCONFIG, fontconfig, HAVE_FC=yes, HAVE_FC=no)
2002 OLD_CFLAGS="$CFLAGS" 2027 if test "${HAVE_FC}" = "no"; then
2003 OLD_LIBS="$LIBS" 2028 dnl Without fontconfig, we can't use freetype at the moment.
2004 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS" 2029 HAVE_FREETYPE=no
2005 CFLAGS="$CFLAGS $XFT_CFLAGS"
2006 LIBS="$XFT_LIBS $LIBS"
2007 AC_CHECK_HEADER(X11/Xft/Xft.h,
2008 AC_CHECK_LIB(Xft, XftFontOpen, HAVE_XFT=yes, , $XFT_LIBS))
2009
2010 if test "${HAVE_XFT}" = "yes"; then
2011 AC_DEFINE(HAVE_XFT, 1, [Define to 1 if you have the Xft library.])
2012 AC_SUBST(XFT_LIBS)
2013 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
2014 else
2015 CPPFLAGS="$OLD_CPPFLAGS"
2016 CFLAGS="$OLD_CFLAGS"
2017 LIBS="$OLD_LIBS"
2018 fi # "${HAVE_XFT}" = "yes"
2019 fi # "$HAVE_XFT" != no
2020 fi # "x${with_xft}" != "xno"
2021
2022 dnl For the "Does Emacs use" message at the end.
2023 if test "$HAVE_XFT" != "yes"; then
2024 HAVE_XFT=no
2025 fi
2026
2027
2028 HAVE_FREETYPE=no
2029 ### Use -lfreetype if available, unless `--with-freetype=no'.
2030 if test "${HAVE_XFT}" = "yes"; then
2031 dnl As we use Xft, we anyway use freetype.
2032 dnl In this case, there's no need of additional CFLAGS and LIBS.
2033 HAVE_FREETYPE=yes
2034 elif test "x${with_freetype}" != "xno"; then
2035
2036 PKG_CHECK_MODULES(FREETYPE, freetype2, HAVE_FREETYPE=yes, HAVE_FREETYPE=no)
2037 if test "${HAVE_FREETYPE}" = "yes"; then
2038 PKG_CHECK_MODULES(FONTCONFIG, fontconfig, HAVE_FC=yes, HAVE_FC=no)
2039 if test "${HAVE_FC}" = "no"; then
2040 dnl Without fontconfig, we can't use freetype at the moment.
2041 HAVE_FREETYPE=no
2042 fi
2043 fi 2030 fi
2044 fi 2031 fi
2045 2032fi
2046 HAVE_LIBOTF=no 2033
2047 if test "${HAVE_FREETYPE}" = "yes"; then 2034HAVE_LIBOTF=no
2048 AC_DEFINE(HAVE_FREETYPE, 1, 2035if test "${HAVE_FREETYPE}" = "yes"; then
2049 [Define to 1 if using the freetype and fontconfig libraries.]) 2036 AC_DEFINE(HAVE_FREETYPE, 1,
2050 if test "${with_libotf}" != "no"; then 2037 [Define to 1 if using the freetype and fontconfig libraries.])
2051 PKG_CHECK_MODULES(LIBOTF, libotf, HAVE_LIBOTF=yes, 2038 if test "${with_libotf}" != "no"; then
2052 HAVE_LIBOTF=no) 2039 PKG_CHECK_MODULES(LIBOTF, libotf, HAVE_LIBOTF=yes,
2053 if test "$HAVE_LIBOTF" = "yes"; then 2040 HAVE_LIBOTF=no)
2054 AC_DEFINE(HAVE_LIBOTF, 1, [Define to 1 if using libotf.]) 2041 if test "$HAVE_LIBOTF" = "yes"; then
2055 fi 2042 AC_DEFINE(HAVE_LIBOTF, 1, [Define to 1 if using libotf.])
2056 fi 2043 fi
2044 fi
2057dnl FIXME should there be an error if HAVE_FREETYPE != yes? 2045dnl FIXME should there be an error if HAVE_FREETYPE != yes?
2058dnl Does the new font backend require it, or can it work without it? 2046dnl Does the new font backend require it, or can it work without it?
2047fi
2048
2049HAVE_M17N_FLT=no
2050if test "${with_m17n_flt}" != "no"; then
2051 PKG_CHECK_MODULES(M17N_FLT, m17n-flt, HAVE_M17N_FLT=yes, HAVE_M17N_FLT=no)
2052 if test "$HAVE_M17N_FLT" = "yes"; then
2053 AC_DEFINE(HAVE_M17N_FLT, 1, [Define to 1 if using libm17n-flt.])
2059 fi 2054 fi
2060 2055fi
2061 HAVE_M17N_FLT=no 2056
2062 if test "${with_m17n_flt}" != "no"; then 2057AC_SUBST(FREETYPE_CFLAGS)
2063 PKG_CHECK_MODULES(M17N_FLT, m17n-flt, HAVE_M17N_FLT=yes, HAVE_M17N_FLT=no) 2058AC_SUBST(FREETYPE_LIBS)
2064 if test "$HAVE_M17N_FLT" = "yes"; then 2059AC_SUBST(FONTCONFIG_CFLAGS)
2065 AC_DEFINE(HAVE_M17N_FLT, 1, [Define to 1 if using libm17n-flt.]) 2060AC_SUBST(FONTCONFIG_LIBS)
2066 fi 2061AC_SUBST(LIBOTF_CFLAGS)
2067 fi 2062AC_SUBST(LIBOTF_LIBS)
2068 2063AC_SUBST(M17N_FLT_CFLAGS)
2069 AC_SUBST(FREETYPE_CFLAGS) 2064AC_SUBST(M17N_FLT_LIBS)
2070 AC_SUBST(FREETYPE_LIBS) 2065
2071 AC_SUBST(FONTCONFIG_CFLAGS)
2072 AC_SUBST(FONTCONFIG_LIBS)
2073 AC_SUBST(LIBOTF_CFLAGS)
2074 AC_SUBST(LIBOTF_LIBS)
2075 AC_SUBST(M17N_FLT_CFLAGS)
2076 AC_SUBST(M17N_FLT_LIBS)
2077
2078fi # "${USE_FONT_BACKEND}" = "yes"
2079### End of font-backend section. 2066### End of font-backend section.
2080 2067
2081### Use -lXpm if available, unless `--with-xpm=no'. 2068### Use -lXpm if available, unless `--with-xpm=no'.
@@ -3023,7 +3010,6 @@ echo " Does Emacs use -lpng? ${HAVE_PNG}"
3023echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}" 3010echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
3024echo " Does Emacs use -lgpm? ${HAVE_GPM}" 3011echo " Does Emacs use -lgpm? ${HAVE_GPM}"
3025echo " Does Emacs use -ldbus? ${HAVE_DBUS}" 3012echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
3026echo " Does Emacs use a font backend? ${USE_FONT_BACKEND}"
3027 3013
3028if test "${USE_FONT_BACKEND}" = "yes"; then 3014if test "${USE_FONT_BACKEND}" = "yes"; then
3029 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}" 3015 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"