#include <sys/param.h>
#endif
])
+AC_CHECK_TYPES([fshare_t], [], [], [[#include <fcntl.h>]])
AC_SYS_LARGEFILE([], AC_MSG_ERROR([AFP 3.x support requires Large File Support.]))
AC_NETATALK_SHELL_CHECK
dnl Check for optional sysv initscript install
-AC_NETATALK_SYSV_STYLE
+AC_NETATALK_INIT_STYLE
dnl Path where UAM modules shall be installed
AC_ARG_WITH(uams-path, [ --with-uams-path=PATH path to UAMs [[$libdir/netatalk/]]], [uams_path="$withval/"], [uams_path="$libdir/netatalk/"])
dnl Check for building Kerberos V UAM module
AC_NETATALK_KRB5_UAM
+dnl Check for Kerberos 5 support
+AC_NETATALK_KERBEROS
+
dnl Check for overwrite the config files or not
AC_NETATALK_OVERWRITE_CONFIG
dnl Check for sendfile()
AC_NETATALK_SENDFILE
+dnl Check whether bundled libevent shall not be used
+AC_NETATALK_LIBEVENT
+
dnl FHS stuff has to be done last because it overrides other defaults
AC_NETATALK_FHS
-LIBS="$LIBS -L\$(top_srcdir)/libatalk"
CFLAGS="-I\$(top_srcdir)/include -I\$(top_srcdir)/sys $CFLAGS"
UAMS_PATH="${uams_path}"
AM_CONDITIONAL(HAVE_LIBGCRYPT, test x$neta_cv_have_libgcrypt = xyes)
AM_CONDITIONAL(HAVE_OPENSSL, test x$neta_cv_have_openssl = xyes)
AM_CONDITIONAL(HAVE_ACLS, test x"$with_acl_support" = x"yes")
-AM_CONDITIONAL(HAVE_LDAP, test x"$with_ldap" = x"yes")
+AM_CONDITIONAL(HAVE_LDAP, test x"$netatalk_cv_ldap" = x"yes")
AM_CONDITIONAL(USE_DHX, test x$neta_cv_compile_dhx = xyes)
AM_CONDITIONAL(USE_DHX2, test x$neta_cv_compile_dhx2 = xyes)
AM_CONDITIONAL(USE_RANDNUM, test x$neta_cv_have_openssl = xyes)
AM_CONDITIONAL(HAVE_ATFUNCS, test x"$ac_neta_haveatfuncs" = x"yes")
dnl --------------------- generate files
-
AC_OUTPUT([Makefile
bin/Makefile
bin/ad/Makefile
etc/Makefile
etc/afpd/Makefile
etc/cnid_dbd/Makefile
+ etc/netatalk/Makefile
etc/uams/Makefile
include/Makefile
include/atalk/Makefile