1 [ based on https://www-old.cae.wisc.edu/pipermail/octave-maintainers/2009-September/013381.html ]
2 --- octave-3.2.2/configure.in~ 2009-09-22 11:14:44.902786285 +0200
3 +++ octave-3.2.2/configure.in 2009-09-22 11:18:11.702868210 +0200
5 ## libraries needed for graphics
11 if test -n "$OPENGL_LIBS"; then
12 AC_DEFINE(HAVE_OPENGL, 1, [Define if OpenGL is available])
14 -## ftgl (needs freetype 2)
16 AC_CHECK_FT2([9.0.3],[],
17 [warn_freetype="FreeType library not found. Native renderer will not have on-screen text"])
18 if test -z "$warn_freetype"; then
20 LIBS="$LIBS $FT2_LIBS $OPENGL_LIBS"
21 CXXFLAGS="$CXXFLAGS $FT2_CFLAGS"
22 CPPFLAGS="$CPPFLAGS $FT2_CFLAGS"
24 - AC_CHECK_HEADERS([FTGL/ftgl.h ftgl.h], break, [
25 - AC_CHECK_HEADERS([FTGL/FTGL.h FTGL.h], [
26 - AC_DEFINE(HAVE_FTGL_UPPERCASE, 1, [Define to 1 if you have FTGL.h or FTGL/FTGL.h])
29 - if test "$has_ftgl_h" = yes; then
30 - AC_MSG_CHECKING([for FTGLTextureFont in -lftgl])
31 - LIBS="$save_LIBS -lftgl $FT2_LIBS $OPENGL_LIBS"
33 -#ifdef HAVE_FTGL_FTGL_H
34 -#ifdef HAVE_FTGL_UPPERCASE
35 -#include <FTGL/FTGL.h>
37 -#include <FTGL/ftgl.h>
39 -#include <FTGL/FTGLTextureFont.h>
41 -#ifdef HAVE_FTGL_UPPERCASE
46 -#include <FTGLTextureFont.h>
48 -FTGLTextureFont font("");], [
49 - OPENGL_LIBS="-lftgl $FT2_LIBS $OPENGL_LIBS"
51 - CPPFLAGS="$save_CPPFLAGS"
52 - AC_DEFINE(HAVE_FTGL, 1, [Define to 1 if FTGL is present])
54 - XTRA_CXXFLAGS="$XTRA_CXXFLAGS $FT2_CFLAGS"], [
56 - warn_ftgl="FTGL library not found. Native renderer will not have on-screen text"
59 - CXXFLAGS="$save_CXXFLAGS"
60 - CPPFLAGS="$save_CPPFLAGS"
62 - warn_ftgl="FTGL headers not found. Native renderer will not have on-screen text"
68 @@ -2430,12 +2387,6 @@
72 -if test -n "$warn_ftgl"; then
73 - AC_MSG_WARN("$warn_ftgl")
74 - native_graphics=false
75 - warn_msg_printed=true
78 if test -n "$warn_fltk_config"; then
79 AC_MSG_WARN("$warn_fltk_config")