1 From 36829a8d7ad2888515fbee95c2a70b3d636d7538 Mon Sep 17 00:00:00 2001
2 From: Ross Burton <ross.burton@intel.com>
3 Date: Wed, 9 Jul 2014 14:30:33 +0200
4 Subject: [PATCH 2/9] Correctly implement with AC_WITH(glut) so that
8 configure.ac | 26 +++++++++++++++-----------
9 1 file changed, 15 insertions(+), 11 deletions(-)
11 diff --git a/configure.ac b/configure.ac
12 index c4ee12b..9445424 100644
15 @@ -67,21 +67,25 @@ DEMO_CFLAGS="$DEMO_CFLAGS $GL_CFLAGS"
16 DEMO_LIBS="$DEMO_LIBS $GL_LIBS"
24 [AS_HELP_STRING([--with-glut=DIR],
25 [glut install directory])],
26 [GLUT_CFLAGS="-I$withval/include"
27 - GLUT_LIBS="-L$withval/lib -lglut"])
28 -AC_CHECK_HEADER([GL/glut.h],
35 + GLUT_LIBS="-L$withval/lib -lglut"],
39 +AS_IF([test "x$with_glut" != xno],
40 + [AC_CHECK_HEADER([GL/glut.h],
43 + AC_CHECK_LIB([glut],
50 dnl Check for FreeGLUT 2.6 or later
51 AC_EGREP_HEADER([glutInitContextProfile],