X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=configure.ac;h=dea5e17d3d7c57c8bcc102c9d32bca77114fb57b;hb=d1e355de2c6aae38cea3cdc0e0b902ea2b194e86;hp=21fc5219d65fa7628e13fb7368d5f824746d3134;hpb=927f99e4125743bbecf41b1aa7dbce9587fb6156;p=chaz%2Fopenbox diff --git a/configure.ac b/configure.ac index 21fc5219..dea5e17d 100644 --- a/configure.ac +++ b/configure.ac @@ -68,6 +68,31 @@ PKG_CHECK_MODULES(LIBSN, [libstartup-notification-1.0], ] ) +PKG_CHECK_MODULES(GTK, [gtk+-2.0], + [ + AC_SUBST(GTK_CFLAGS) + AC_SUBST(GTK_LIBS) + use_gtk="yes" + + PKG_CHECK_MODULES(GLADE, [libglade-2.0], + [ + AC_SUBST(GLADE_CFLAGS) + AC_SUBST(GLADE_LIBS) + use_glade="yes" + ], + [ + use_glade="no" + AC_MSG_WARN([disabling build of the configuration tool]) + ] + ) + ], + [ + use_gtk="no" + AC_MSG_WARN([disabling build of the configuration tool]) + ] +) +AM_CONDITIONAL(OBCONF, [test "$use_gtk" = "yes" && test "$use_glade" = "yes"]) + # Check for X11 extensions X11_EXT_XKB X11_EXT_XRANDR @@ -82,12 +107,16 @@ AC_CONFIG_FILES([Makefile themes/Makefile data/Makefile render/Makefile + parser/Makefile kernel/Makefile plugins/Makefile + plugins/resistance/Makefile plugins/placement/Makefile plugins/mouse/Makefile plugins/keyboard/Makefile - plugins/menu/Makefile]) + plugins/menu/Makefile + tools/Makefile + tools/obconf/Makefile]) AC_OUTPUT AC_MSG_RESULT