-if test x"$cegui" = xyes
- then
- # Save the LIBS into a temp var since AC_CHECK_LIB adds the lib into LIBS
- # and we want just to check and use CEGUI_LIBS
- libstemp="$LIBS"
- # For CEGUI, we have to check the presence of some libraries.
- # The following are mandatory (used by navit)
- # If the user installed NavIt without, issue a warning and disable CEGUI
- AC_CHECK_LIB(CEGUIBase, main,
- [],
- [
- echo "Error! Something is wrong with CEGUIBase. Do you have at least cegui-0.5?"
- ])
- AC_CHECK_LIB(CEGUIOpenGLRenderer, main,
- [],
- [
- echo "Error! Something is wrong with CEGUIOpenGLRenderer. Do you have at least cegui-0.5? "
- ], $OPENGL_LIBS )
- AC_CHECK_LIB(CEGUIFalagardWRBase, main,
- [],
- [
- echo "Error! Something is wrong with CEGUIFalagardWRBase. Do you have at least cegui-0.5?"
- ], $OPENGL_LIBS)
- CEGUI_LIBS="-lCEGUIBase -lCEGUIOpenGLRenderer -lCEGUIFalagardWRBase"
-
- # The following are optional, but we need to link against them if cegui was built with them
- AC_CHECK_LIB(CEGUIXercesParser, main,
- [CEGUI_LIBS="$CEGUI_LIBS -lCEGUIXercesParser"],
- [echo "CEGUIXercesParser not found/not working, disabled."],
- $OPENGL_LIBS
- )
-
- AC_CHECK_LIB(CEGUIExpatParser, main,
- [CEGUI_LIBS="$CEGUI_LIBS -lCEGUIExpatParser"],
- [echo "CEGUIExpatParser not found/not working, disabled."],
- $OPENGL_LIBS
- )
-
- AC_CHECK_LIB(CEGUILibxmlParser, main,
- [CEGUI_LIBS="$CEGUI_LIBS -lCEGUILibxmlParser"],
- [echo "CEGUILibxmlParser not found/not working, disabled."],
- $OPENGL_LIBS
- )
-
- AC_CHECK_LIB(CEGUITinyXMLParser, main,
- [CEGUI_LIBS="$CEGUI_LIBS -lCEGUITinyXMLParser"],
- [echo "CEGUITinyXMLParser not found/not working, disabled."],
- $OPENGL_LIBS
- )
-
- AC_CHECK_LIB(CEGUIDevILImageCodec, main,
- [
- CEGUI_LIBS="$CEGUI_LIBS -lCEGUIDevILImageCodec"
- AC_DEFINE([HAVE_LIBCEGUIDEVILIMAGECODEC],[1],Define to 1 to use DevIL codec)
- ],
- [echo "CEGUIDevILImageCodec not found/not working, disabled."],
- $OPENGL_LIBS
- )
-
- AC_CHECK_LIB(CEGUITGAImageCodec, createImageCodec,
- [
- CEGUI_LIBS="$CEGUI_LIBS -lCEGUITGAImageCodec"
- AC_DEFINE(HAVE_LIBCEGUITGAIMAGECODEC,[1],Define to 1 to use the TGA codec)
- ],
- [echo "GUITGAImageCodec not found/not working, disabled."],
- $OPENGL_LIBS
- )
-
- libssilly="$OPENGL_LIBS -lpng"
- AC_CHECK_LIB(CEGUISILLYImageCodec, createImageCodec,
- [
- CEGUI_LIBS="$CEGUI_LIBS -lCEGUISILLYImageCodec"
- AC_DEFINE([HAVE_LIBCEGUISILLYIMAGECODEC],[1],Define to 1 to use SILLY codec)
- ],
- [echo "CEGUISILLYImageCodec not found/not working, disabled."],
- $libssilly
- )
- # Restore the libs
- LIBS="$libstemp"
- echo "CEGUI_LIBS : $CEGUI_LIBS"
- fi
-
-AC_SUBST(CEGUI_CFLAGS)
-AC_SUBST(CEGUI_LIBS)
-
-AM_CONDITIONAL(GUI_SDL, [test "x$sdl" = "xyes" -a "x$cegui" = "xyes" -a "x$opengl" = "xyes" -a "x$glc" = "xyes" -a "x$xmu" = "xyes" ])
-AM_CONDITIONAL(GRAPHICS_OPENGL, [test "x$glut" = "xyes" - "x$opengl" = "xyes" -a "x$glc" = "xyes" ])
-
-AC_ARG_ENABLE(gui-clutter, [ --disable-gui-clutter don't create gui clutter ], MODULE_GUI_CLUTTER=$enableval, MODULE_GUI_CLUTTER=yes)
-if test "x$MODULE_GUI_CLUTTER" = "xyes"; then
- PKG_CHECK_MODULES(CLUTTER, [clutter-0.8], [clutter_pkgconfig=yes], [clutter_pkgconfig=no])
- if test "x$clutter_pkgconfig" = "xyes"; then
- AC_DEFINE(HAVE_CLUTTER, 1, [Define to 1 if you have clutter])
- fi
-fi
-
-AC_SUBST(CLUTTER_CFLAGS)
-AC_SUBST(CLUTTER_LIBS)
-AM_CONDITIONAL(GUI_CLUTTER, [test "x$clutter_pkgconfig" = "xyes" -a "x$glc" = "xyes" ])
-
-