configure: add checks to avoid incompatible options --disable-xft and --enable-pango and to detect if pango is found but not Xft.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12632 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
baffc84fa1
commit
8a179b577f
11
configure.ac
11
configure.ac
@ -120,6 +120,10 @@ GLLIBBASENAME="libfltk_gl.a"
|
|||||||
IMGLIBBASENAME="libfltk_images.a"
|
IMGLIBBASENAME="libfltk_images.a"
|
||||||
CAIROLIBBASENAME="libfltk_cairo.a"
|
CAIROLIBBASENAME="libfltk_cairo.a"
|
||||||
|
|
||||||
|
if test x$enable_pango = xyes -a x$enable_xft = xno; then
|
||||||
|
AC_MSG_ERROR([--disable-xft and --enable-pango are incompatible because Xft is necessary for pango. Aborting.])
|
||||||
|
fi
|
||||||
|
|
||||||
dnl Check for Cairo library unless disabled...
|
dnl Check for Cairo library unless disabled...
|
||||||
CAIRODIR=""
|
CAIRODIR=""
|
||||||
CAIROFLAGS=""
|
CAIROFLAGS=""
|
||||||
@ -1051,6 +1055,13 @@ case $host_os_gui in
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
dnl test if pango is asked but xft was not found
|
||||||
|
if test x$enable_pango = xyes -a x$xft_found = xno; then
|
||||||
|
AC_MSG_WARN([could not find the Xft headers and/or libraries required for pango.])
|
||||||
|
AC_MSG_NOTICE([please install Xft headers and libraries or don't use configure with '--enable-pango'.])
|
||||||
|
AC_MSG_ERROR([Aborting.])
|
||||||
|
fi
|
||||||
|
|
||||||
dnl Check for the pango library unless disabled...
|
dnl Check for the pango library unless disabled...
|
||||||
AC_ARG_ENABLE(pango, [ --enable-pango turn on Pango support [[default=no]]])
|
AC_ARG_ENABLE(pango, [ --enable-pango turn on Pango support [[default=no]]])
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user