Add two new switches --enable-wx-opengl and --enable-wx-styledtextctrl, useful
for development purposes, but also useful to avoid invoking the wonderfully slow g++ to test for availability during multiple ./configure runs. Originally committed to SVN as r2020.
This commit is contained in:
parent
ae67877863
commit
4c3dde50f6
1 changed files with 18 additions and 8 deletions
16
configure.in
16
configure.in
|
@ -541,20 +541,30 @@ fi
|
|||
aegisub_save_CPPLAGS="$CPPLAGS"
|
||||
CPPFLAGS="$WX_CFLAGS"
|
||||
|
||||
AC_ARG_ENABLE(wx-opengl, [ --enable-wx-opengl Force wxwidgets OpenGL support. ])
|
||||
AC_MSG_CHECKING([wxWidgets OpenGL support])
|
||||
AC_TRY_COMPILE([#include <wx/glcanvas.h>],
|
||||
if test "$enable_wx_opengl" != "yes"; then
|
||||
AC_TRY_COMPILE([#include <wx/glcanvas.h>],
|
||||
[wxGLCanvas *canvas;],
|
||||
with_wxgl=yes, with_wxgl=no)
|
||||
else
|
||||
with_wxgl="yes"
|
||||
fi
|
||||
AC_MSG_RESULT($with_wxgl)
|
||||
|
||||
if test "$with_wxgl" = "no"; then
|
||||
AC_MSG_FAILURE([wxWidgets OpenGL support missing])
|
||||
fi
|
||||
|
||||
AC_ARG_ENABLE(wx-styledtextctrl, [ --enable-wx-styledtextctrl
|
||||
Force wxwidgets StyledTextCtrl support. ])
|
||||
AC_MSG_CHECKING([wxWidgets StyledTextCtrl support])
|
||||
AC_TRY_COMPILE([#include <wx/stc/stc.h>],
|
||||
if test "$enable_wx_styledtextctrl" != "yes"; then
|
||||
AC_TRY_COMPILE([#include <wx/stc/stc.h>],
|
||||
[wxStyledTextCtrl *canvas;],
|
||||
with_wxstc=yes, with_wxstc=no)
|
||||
else
|
||||
with_wxstc="yes"
|
||||
fi
|
||||
AC_MSG_RESULT($with_wxstc)
|
||||
|
||||
if test "$with_wxstc" = "no"; then
|
||||
|
|
Loading…
Reference in a new issue