+PKG_CHECK_MODULES(XML, [libxml-2.0])
+AC_SUBST(XML_CFLAGS)
+AC_SUBST(XML_LIBS)
+
+AC_ARG_ENABLE(startup-notification,
+ AC_HELP_STRING(
+ [--enable-startup-notification],
+ [enable the startup notification library. [[default=enabled]]]
+ ),
+ [enable_sn=$enableval],
+ [enable_sn=yes]
+)
+
+if test "$enable_sn" = yes; then
+PKG_CHECK_MODULES(LIBSN, [libstartup-notification-1.0],
+ [
+ AC_DEFINE(USE_LIBSN, [1], [Use startup-notification])
+ AC_SUBST(LIBSN_CFLAGS)
+ AC_SUBST(LIBSN_LIBS)
+ sn_found=yes
+ ],
+ [
+ sn_found=no
+ ]
+)
+else
+ sn_found=no
+fi
+
+dnl Check for session management
+X11_SM
+
+#EFENCE_LIBS=-lefence
+EFENCE_LIBS=""
+AC_SUBST(EFENCE_LIBS)
+
+dnl Check for X11 extensions