diff options
| author | Manolo Gouy <Manolo> | 2016-12-21 15:05:02 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2016-12-21 15:05:02 +0000 |
| commit | 461750c38e1835e4a730e0f83a48fe090f41feae (patch) | |
| tree | eb7091c6cc46c06bfb47abe1ff5ca2c8ada3fa3d /configure.ac | |
| parent | 00ebcd23aa5e17dad822ab79584b0220341e1831 (diff) | |
X11 platform: Add optional use of the pango library to draw text, gaining the possibility to draw text in any script supported by Unicode.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12153 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'configure.ac')
| -rw-r--r-- | configure.ac | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 2b592920d..8c2a51bd0 100644 --- a/configure.ac +++ b/configure.ac @@ -1041,6 +1041,41 @@ case $host_os_gui in fi fi + dnl Check for the pango library unless disabled... + AC_ARG_ENABLE(pango, [ --enable-pango turn on Pango support [[default=no]]]) + + pango_found=no + if test x$enable_pango = xyes; then + case $host_os in + darwin*) + CXXFLAGS="-I/sw/include/pango-1.0 -I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/include $CXXFLAGS" + PANGOLIBDIR="-L/sw/lib" + ;; + linux*) + CXXFLAGS="-I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include $CXXFLAGS" + CXXFLAGS="-I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/lib/x86_64-linux-gnu/glib-2.0/include $CXXFLAGS" + ;; + freebsd*) + CXXFLAGS="-I/usr/local/include/pango-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include $CXXFLAGS" + ;; + netbsd*) + CXXFLAGS="-I/usr/pkg/include/pango-1.0 -I/usr/pkg/include/glib-2.0 -I/usr/pkg/lib/glib-2.0/include $CXXFLAGS" + CXXFLAGS="-I/usr/pkg/include/glib/glib-2.0 $CXXFLAGS" + PANGOLIBDIR="-L/usr/pkg/lib" + LDFLAGS="-Wl,-rpath,/usr/pkg/lib $LDFLAGS" + ;; + esac + CPPFLAGS="$PANGOLIBDIR $CXXFLAGS" + AC_CHECK_HEADER(pango/pango.h, + AC_CHECK_HEADER(pango/pangoxft.h, + AC_CHECK_LIB(pango-1.0, pango_layout_new, + AC_CHECK_LIB(pangoxft-1.0, pango_xft_render_layout, + AC_DEFINE(USE_PANGO) + pango_found=yes + LIBS="$PANGOLIBDIR -lpango-1.0 -lpangoxft-1.0 -lgobject-2.0 $LIBS")))) + CPPFLAGS=$CXXFLAGS + fi + dnl Check for the Xdbe extension unless disabled... AC_ARG_ENABLE(xdbe, [ --enable-xdbe turn on Xdbe support [[default=yes]]]) @@ -1507,6 +1542,9 @@ case $host_os_gui in if test x$xrender_found = xyes; then graphics="$graphics + Xrender" fi + if test x$pango_found = xyes; then + graphics="$graphics + pango" + fi ;; esac |
