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
13
configure.ac
13
configure.ac
@ -120,6 +120,10 @@ GLLIBBASENAME="libfltk_gl.a"
|
||||
IMGLIBBASENAME="libfltk_images.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...
|
||||
CAIRODIR=""
|
||||
CAIROFLAGS=""
|
||||
@ -1047,10 +1051,17 @@ case $host_os_gui in
|
||||
AC_MSG_WARN([could not find the required Xft headers and/or libraries.])
|
||||
AC_MSG_NOTICE([please install Xft headers and libraries or use 'configure --disable-xft'.])
|
||||
if test x$enable_xft = xyes; then
|
||||
AC_MSG_ERROR([Aborting.])
|
||||
AC_MSG_ERROR([Aborting.])
|
||||
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...
|
||||
AC_ARG_ENABLE(pango, [ --enable-pango turn on Pango support [[default=no]]])
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user