From 8a179b577f68fafc9274da99843a81f8bcb817cd Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Mon, 15 Jan 2018 07:09:52 +0000 Subject: 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 --- configure.ac | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index bba8ba27e..5cfa35b08 100644 --- a/configure.ac +++ b/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]]]) -- cgit v1.2.3