Mercurial > octave-nkf
comparison configure.in @ 9403:4af6e29449c1
[mq]: graphics_text_engine
author | Michael Goffioul <michael.goffioul@gmail.com> |
---|---|
date | Fri, 26 Jun 2009 21:12:09 +0100 |
parents | 75c502937d2c |
children | 69d05d1a63b9 |
comparison
equal
deleted
inserted
replaced
9402:cdfb9ad48080 | 9403:4af6e29449c1 |
---|---|
685 OCTAVE_OPENGL | 685 OCTAVE_OPENGL |
686 if test -n "$OPENGL_LIBS"; then | 686 if test -n "$OPENGL_LIBS"; then |
687 AC_DEFINE(HAVE_OPENGL, 1, [Define if OpenGL is available]) | 687 AC_DEFINE(HAVE_OPENGL, 1, [Define if OpenGL is available]) |
688 | 688 |
689 ## ftgl (needs freetype 2) | 689 ## ftgl (needs freetype 2) |
690 AC_CHECK_FT2([9.0.3],[], | 690 AC_CHECK_FT2([9.0.3],[AC_DEFINE(HAVE_FREETYPE, 1, [Define to 1 if you have Freetype library.])], |
691 [warn_freetype="FreeType library not found. Native renderer will not have on-screen text"]) | 691 [warn_freetype="FreeType library not found. Native renderer will not have on-screen text"]) |
692 if test -z "$warn_freetype"; then | 692 if test -z "$warn_freetype"; then |
693 AC_LANG_PUSH(C++) | 693 AC_LANG_PUSH(C++) |
694 save_LIBS="$LIBS" | 694 save_LIBS="$LIBS" |
695 save_CXXFLAGS="$CXXFLAGS" | 695 save_CXXFLAGS="$CXXFLAGS" |
738 else | 738 else |
739 warn_ftgl="FTGL headers not found. Native renderer will not have on-screen text" | 739 warn_ftgl="FTGL headers not found. Native renderer will not have on-screen text" |
740 fi | 740 fi |
741 AC_LANG_POP(C++) | 741 AC_LANG_POP(C++) |
742 fi | 742 fi |
743 fi | |
744 | |
745 # fontconfig library | |
746 | |
747 warn_fontconfig="" | |
748 PKG_PROG_PKG_CONFIG | |
749 if test -z "$warn_freetype"; then | |
750 PKG_CHECK_MODULES(FONTCONFIG,[fontconfig],[ | |
751 have_fontconfig=yes | |
752 OPENGL_LIBS="$FONTCONFIG_LIBS $OPENGL_LIBS" | |
753 XTRA_CXXFLAGS="$XTRA_CXXFLAGS $FONTCONFIG_CFLAGS" | |
754 AC_DEFINE(HAVE_FONTCONFIG, 1, [Define to 1 if fontconfig is present])],[ | |
755 have_fontconfig=no | |
756 warn_fontconfig="Fontconfig not found. Native text rendering will use hard-coded font instead."]) | |
743 fi | 757 fi |
744 | 758 |
745 GRAPHICS_LIBS= | 759 GRAPHICS_LIBS= |
746 GRAPHICS_CFLAGS= | 760 GRAPHICS_CFLAGS= |
747 | 761 |
2434 AC_MSG_WARN("$warn_freetype") | 2448 AC_MSG_WARN("$warn_freetype") |
2435 native_graphics=false | 2449 native_graphics=false |
2436 warn_msg_printed=true | 2450 warn_msg_printed=true |
2437 fi | 2451 fi |
2438 | 2452 |
2453 if test -n "$warn_fontconfig"; then | |
2454 AC_MSG_WARN("$warn_fontconfig") | |
2455 native_graphics=false | |
2456 warn_msg_printed=true | |
2457 fi | |
2458 | |
2439 if test -n "$warn_ftgl"; then | 2459 if test -n "$warn_ftgl"; then |
2440 AC_MSG_WARN("$warn_ftgl") | 2460 AC_MSG_WARN("$warn_ftgl") |
2441 native_graphics=false | 2461 native_graphics=false |
2442 warn_msg_printed=true | 2462 warn_msg_printed=true |
2443 fi | 2463 fi |