comparison configure.ac @ 17797:06a850f83dd4

build: Remove embedded gl2ps. Require gl2ps as external dependency. * NEWS: Announce that gl2ps is no longer distributed with Octave. * build-aux/common.mk: New AC_SUBST macro GL2PS_LIBS. * configure.ac: When building native graphics, test for gl2ps.h header. If not found, print a warning and disable printing of FLTK figures. * libinterp/corefcn/gl2ps-renderer.cc, libinterp/corefcn/gl2ps-renderer.h: Only compile files if HAVE_GL2PS_H is true. * libinterp/dldfcn/__init_fltk__.cc(draw): Use #ifdef HAVE_GL2PS_H to either print figure, or issue a warning when gl2ps is not available. * libinterp/link-deps.mk: Add GL2PS_LIBS to libinter link dependencies * libinterp/corefcn/module.mk: Remove gl2ps.h, gl2ps.c from build system. * libinterp/corefcn/gl2ps.c, libinterp/corefcn/gl2ps.h: Removed from distribution.
author Rik <rik@octave.org>
date Tue, 29 Oct 2013 15:16:23 -0700
parents 26e9312e6928
children e6317049225b
comparison
equal deleted inserted replaced
17796:6b51f5f44aea 17797:06a850f83dd4
1187 fi 1187 fi
1188 fi 1188 fi
1189 1189
1190 AC_SUBST(GRAPHICS_CFLAGS) 1190 AC_SUBST(GRAPHICS_CFLAGS)
1191 AC_SUBST(GRAPHICS_LIBS) 1191 AC_SUBST(GRAPHICS_LIBS)
1192
1193 ## Check for gl2ps which is required for printing with OpenGL graphics
1194 if test $native_graphics = yes; then
1195 AC_CHECK_HEADERS([gl2ps.h],
1196 [GL2PS_LIBS="-lgl2ps"],
1197 [AC_MSG_WARN([gl2ps library not found. OpenGL printing is disabled.])])
1198 fi
1199
1200 AC_SUBST(GL2PS_LIBS)
1192 1201
1193 ### Start determination of shared vs. static libraries 1202 ### Start determination of shared vs. static libraries
1194 1203
1195 ## Use -static if compiling on Alpha OSF/1 1.3 systems. 1204 ## Use -static if compiling on Alpha OSF/1 1.3 systems.
1196 case $canonical_host_type in 1205 case $canonical_host_type in