--- acinclude.m4 +++ acinclude.m4 @@ -411,6 +411,8 @@ ]) AC_DEFUN([OGRE_CHECK_CEGUI], [ + AC_ARG_ENABLE(cegui) + if test x$enable_cegui != xno; then PKG_CHECK_MODULES(CEGUI, CEGUI >= 0.5.0, [build_cegui_sample=true], [build_cegui_sample=false]) if test x$build_cegui_sample = xtrue; then @@ -426,6 +428,7 @@ else AC_MSG_RESULT([CEGUI not available, Gui and FacialAnimation samples will not be built]) fi + fi AM_CONDITIONAL([HAVE_CEGUI], [test x$build_cegui_sample = xtrue]) ])