From c6c96944ae1bb1d7363349ec21be9dca76ee9ec4 Mon Sep 17 00:00:00 2001 From: Takamichi Horikawa Date: Tue, 4 Apr 2017 23:57:39 +0900 Subject: gtk: add Oscilloscope view OpenGL renderer --- gtk/configure.ac | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'gtk/configure.ac') diff --git a/gtk/configure.ac b/gtk/configure.ac index f49bd74..79d02c1 100644 --- a/gtk/configure.ac +++ b/gtk/configure.ac @@ -22,5 +22,18 @@ AS_IF([test "x$emmintrin_found" = "xyes"], [ AC_DEFINE([ENABLE_SSE]) ]) +AC_ARG_ENABLE([opengl], AS_HELP_STRING([--enable-opengl], [Enable OpenGL rendering for Oscilloscope view (default: enable if found)])) +AS_IF([test "x$enable_opengl" != "xno"], [ + AC_CHECK_LIB([GL], [glGetString], [opengl_found=yes]) + AC_CHECK_HEADER([GL/glcorearb.h], , [opengl_found=]) + AS_IF([test "x$enable_opengl" = "x" -a "x$opengl_found" = "xyes"], [ + enable_opengl=yes + ]) + AS_IF([test "x$enable_opengl" = "xyes" -a "x$opengl_found" != "xyes"], [ + AC_MSG_ERROR([OpenGL header/library not found (-lGL, GL/glcorearb.h)], [1]) + ]) +]) +AM_CONDITIONAL([ENABLE_OPENGL], [test "x$enable_opengl" = "xyes"]) + AC_CONFIG_FILES([Makefile]) AC_OUTPUT -- cgit v1.2.3