X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=configure.ac;h=dc893b748097f8594781acd46c8d1888bb4a8e93;hb=0116d82463197bea2890230d71a69e4b92489166;hp=d8fac47d0c5615f1ed1e2b88a7c9f1fe1514aba0;hpb=616cb6061188a1c752a806bc79932d28b1b704a8;p=chaz%2Fopenbox diff --git a/configure.ac b/configure.ac index d8fac47d..dc893b74 100644 --- a/configure.ac +++ b/configure.ac @@ -57,7 +57,7 @@ LIBTOOL="$LIBTOOL --silent" AC_PROG_INSTALL -AM_GNU_GETTEXT_VERSION(0.12.1) +AM_GNU_GETTEXT_VERSION(0.16.1) AM_GNU_GETTEXT([external]) AC_CHECK_HEADERS(ctype.h fcntl.h locale.h signal.h string.h stdio.h stdlib.h) @@ -70,11 +70,11 @@ if test "$SED" = "no"; then AC_MSG_ERROR([The program "sed" is not available. This program is required to build Openbox.]) fi -PKG_CHECK_MODULES([GLIB], [glib-2.0]) +PKG_CHECK_MODULES([GLIB], [glib-2.0 >= 2.6.0]) AC_SUBST(GLIB_CFLAGS) AC_SUBST(GLIB_LIBS) -PKG_CHECK_MODULES(PANGO, [pango pangoxft]) +PKG_CHECK_MODULES(PANGO, [pango >= 1.8.0 pangoxft >= 1.8.0]) AC_SUBST(PANGO_CFLAGS) AC_SUBST(PANGO_LIBS) @@ -84,8 +84,8 @@ AC_SUBST(XML_LIBS) AC_ARG_ENABLE(startup-notification, AC_HELP_STRING( - [--enable-startup-notification], - [enable the startup notification library. [[default=enabled]]] + [--disable-startup-notification], + [disable the startup notification library. [[default=enabled]]] ), [enable_sn=$enableval], [enable_sn=yes] @@ -107,6 +107,31 @@ else sn_found=no fi +AC_ARG_ENABLE(xcursor, + AC_HELP_STRING( + [--disable-xcursor], + [disable use of the X Cursor library. [[default=enabled]]] + ), + [enable_xcursor=$enableval], + [enable_xcursor=yes] +) + +if test "$enable_xcursor" = yes; then +PKG_CHECK_MODULES(XCURSOR, [xcursor], + [ + AC_DEFINE(USE_XCURSOR, [1], [Use X Cursor library]) + AC_SUBST(XCURSOR_CFLAGS) + AC_SUBST(XCURSOR_LIBS) + xcursor_found=yes + ], + [ + xcursor_found=no + ] +) +else + xcursor_found=no +fi + dnl Check for session management X11_SM @@ -119,6 +144,7 @@ X11_EXT_XKB X11_EXT_XRANDR X11_EXT_SHAPE X11_EXT_XINERAMA +X11_EXT_SYNC AC_CONFIG_FILES([ Makefile @@ -133,6 +159,7 @@ AC_OUTPUT AC_MSG_RESULT AC_MSG_RESULT([Compiling with these options: Startup Notification... $sn_found + X Cursor Library... $xcursor_found Session Management... $SM ]) AC_MSG_RESULT([configure complete, now type "make"])