mirror of https://github.com/fltk/fltk
Add support of configure --enable-wayland --disable-gl
This commit is contained in:
parent
61d72c76d2
commit
7432079632
18
configure.ac
18
configure.ac
|
@ -1021,10 +1021,20 @@ AS_CASE([$host_os_gui], [cygwin* | mingw*], [
|
|||
LDFLAGS="$LDFLAGS -rdynamic -no-pie"
|
||||
|
||||
AC_SEARCH_LIBS([dlopen], [dl])
|
||||
AC_CHECK_HEADER([GL/gl.h], [AC_DEFINE([HAVE_GL])])
|
||||
AC_CHECK_HEADER([GL/glu.h], [
|
||||
AC_DEFINE([HAVE_GL_GLU_H])
|
||||
GLLIBS="$($PKGCONFIG --libs wayland-egl) $($PKGCONFIG --libs egl) $($PKGCONFIG --libs glu) $($PKGCONFIG --libs gl) $GLLIBS"
|
||||
|
||||
AS_IF([test x$enable_gl != xno], [
|
||||
AC_CHECK_HEADER([GL/gl.h], [AC_DEFINE([HAVE_GL])])
|
||||
AC_CHECK_HEADER([GL/glu.h], [
|
||||
AC_DEFINE([HAVE_GL_GLU_H])
|
||||
GLLIBS="$($PKGCONFIG --libs wayland-egl) $($PKGCONFIG --libs egl) $($PKGCONFIG --libs glu) $($PKGCONFIG --libs gl) $GLLIBS"
|
||||
])
|
||||
GLWLDEMO="egl"
|
||||
], [
|
||||
LINKFLTKGL=""
|
||||
GLLIBNAME=""
|
||||
GLDSONAME=""
|
||||
GLDEMOS=""
|
||||
GLWLDEMO=""
|
||||
])
|
||||
|
||||
dnl Check for GTK-3 ...
|
||||
|
|
|
@ -22,7 +22,7 @@ OBJECTS = fl_libdecor.o libdecor-cairo-blur.o fl_libdecor-plugins.o \
|
|||
../../src/text-input-protocol.o cursor-settings.o os-compatibility.o
|
||||
PROTOCOLS = /usr/share/wayland-protocols
|
||||
|
||||
all : demo egl
|
||||
all : demo $(GLWLDEMO)
|
||||
|
||||
depend:
|
||||
: echo "libdecor/build: make depend..."
|
||||
|
|
Loading…
Reference in New Issue