AC_INIT(daemon/main.c)
-AM_INIT_AUTOMAKE([doldaconnect], [1.2])
+AM_INIT_AUTOMAKE([doldaconnect], [1.4])
AM_CONFIG_HEADER(config.h)
DOLDA_AC_GROUP([Checking build chain])
AC_DEFINE(HAVE_NOTIFY)
fi
+# libattr check
+AH_TEMPLATE(HAVE_XATTR, [define to compile support for extended attributes])
+AC_ARG_WITH(xattr, [ --with-xattr Enable XATTR support])
+DOLDA_PKG([HAS_XATTR], [test "$with_xattr" = no && HAS_XATTR=no],
+ [AC_CHECK_LIB(attr, getxattr, [:], [HAS_XATTR=no])],
+ [DOLDA_CHECK_HEADER(attr/xattr.h, [], [HAS_XATTR=no])],
+ [XATTR_LIBS=-lattr])
+if test "$with_xattr" = yes -a "$HAS_XATTR" = no; then
+ AC_MSG_ERROR([*** cannot find xattr support on this system])
+fi
+if test "$HAS_XATTR" = yes; then
+ AC_DEFINE(HAVE_XATTR)
+fi
+AC_SUBST(XATTR_LIBS)
+
# libpanelapplet check
DOLDA_PKG([HAS_LIBPANELAPPLET], [PKG_CHECK_MODULES(PANELAPPLET, libpanelapplet-2.0, [], [HAS_LIBPANELAPPLET=no])])
AM_CONDITIONAL(GUISHELL, test "$enable_guishell" = yes)
# Gnome applet check
-DOLDA_ENABLE(gnomeapplet, [ --enable-gnomeapplet Enable GNOME transfer applet (experimental)], no,
+DOLDA_ENABLE(gnomeapplet, [ --enable-gnomeapplet Enable GNOME transfer applet], no,
[HAS_LIBPANELAPPLET])
-if test "$enable_gnomeapplet" = yes; then
- experimental=yes
-fi
AM_CONDITIONAL(CLI_GNOMEAPPLET, test "$enable_gnomeapplet" = yes)
# Gaim plugin check
gaimplugin_msg=
-DOLDA_ENABLE(gaimplugin, [ --enable-gaimplugin Enable Gaim chat plugin (experimental)], no,
+DOLDA_ENABLE(gaimplugin, [ --enable-gaimplugin Enable Gaim chat plugin], no,
[HAS_LIBGAIM])
if test "$enable_gaimplugin" = yes; then
- experimental=yes
gaimplugin_msg="Gaim $gaimplugin_msg"
fi
AM_CONDITIONAL(CLI_GAIM, test "$enable_gaimplugin" = yes)
-DOLDA_ENABLE(pidginplugin, [ --enable-pidginplugin Enable Pidgin chat plugin (experimental)], no,
+DOLDA_ENABLE(pidginplugin, [ --enable-pidginplugin Enable Pidgin chat plugin], no,
[HAS_LIBPURPLE])
if test "$enable_pidginplugin" = yes; then
- experimental=yes
gaimplugin_msg="Pidgin $gaimplugin_msg"
fi
AM_CONDITIONAL(CLI_PIDGIN, test "$enable_pidginplugin" = yes)
AC_DEFINE(HAVE_KRB5)
krb_msg=yes
fi
-AC_SUBST([KRB5_LIBS KRB5_CFLAGS])
+AC_SUBST(KRB5_LIBS)
+AC_SUBST(KRB_CFLAGS)
# Linux keyring
AH_TEMPLATE(HAVE_KEYUTILS, [define if your system supports the Linux keyring functions])