X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=configure.ac;h=b148d4fa9021bf93de31ffe20fd55a8c21412177;hb=40c614d84ae5bf7c1808a30a2ccac8db12228519;hp=6dac0a9a2bb46a527b8b22d0d50dd8171c4a3e6d;hpb=b0cd81f83c380d93c7019e43910cff73b0d5e800;p=netatalk.git diff --git a/configure.ac b/configure.ac index 6dac0a9a..b148d4fa 100644 --- a/configure.ac +++ b/configure.ac @@ -23,9 +23,10 @@ AC_PROG_PERL AC_PROG_GREP AC_PROG_PS AM_PROG_CC_C_O - -dnl Checks for typedefs, structures, and compiler characteristics. +AC_C_BIGENDIAN AC_C_INLINE +AC_PROG_LEX +AC_PROG_YACC dnl Check if we can use attribute unused (gcc only) from ethereal AC_MSG_CHECKING(to see if we can add '__attribute__((unused))' to CFLAGS) @@ -50,6 +51,7 @@ AC_CHECK_HEADERS([sys/mount.h], , , #include #endif ]) +AC_CHECK_TYPES([fshare_t], [], [], [[#include ]]) AC_SYS_LARGEFILE([], AC_MSG_ERROR([AFP 3.x support requires Large File Support.])) @@ -74,17 +76,13 @@ AC_CHECK_MEMBERS(struct tm.tm_gmtoff,,, [#include ]) dnl these tests have been comfirmed to be needed in 2011 AC_CHECK_FUNCS(backtrace_symbols dirfd getusershell pread pwrite pselect) -AC_CHECK_FUNCS(setlinebuf strlcat strlcpy strnlen) +AC_CHECK_FUNCS(setlinebuf strlcat strlcpy strnlen mempcpy) AC_CHECK_FUNCS(mmap utime getpagesize) dnl needed by tbd dnl search for necessary libraries AC_SEARCH_LIBS(gethostbyname, nsl) AC_SEARCH_LIBS(connect, socket) -AC_SEARCH_LIBS(pthread_sigmask, pthread,,[AC_MSG_ERROR([missing pthread_sigmask])]) -if test x"$ac_cv_search_pthread_sigmask" != x"none required" ; then - PTHREAD_LIBS=$ac_cv_search_pthread_sigmask -fi -AC_SUBST(PTHREAD_LIBS) +AX_PTHREAD(, [AC_MSG_ERROR([missing pthread_sigmask])]) AC_DEFINE(OPEN_NOFOLLOW_ERRNO, ELOOP, errno returned by open with O_NOFOLLOW) @@ -137,7 +135,7 @@ dnl Check for optional valid-shell-check 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/"]) @@ -160,6 +158,9 @@ AC_NETATALK_PGP_UAM 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 @@ -172,19 +173,23 @@ AC_NETATALK_ACL dnl Check for Extended Attributes support AC_NETATALK_EXTENDED_ATTRIBUTES -dnl Check for libsmbsharemodes from Samba for Samba/Netatalk access/deny/share modes interop -AC_NETATALK_SMB_SHAREMODES - dnl Check if realpath() takes NULL AC_NETATALK_REALPATH dnl Check for sendfile() AC_NETATALK_SENDFILE +dnl Check whether bundled libevent shall not be used +AC_NETATALK_LIBEVENT + +dnl Check for Tracker +AC_NETATALK_SPOTLIGHT + dnl FHS stuff has to be done last because it overrides other defaults AC_NETATALK_FHS -LIBS="$LIBS -L\$(top_srcdir)/libatalk" +AC_DEVELOPER + CFLAGS="-I\$(top_srcdir)/include -I\$(top_srcdir)/sys $CFLAGS" UAMS_PATH="${uams_path}" @@ -196,7 +201,7 @@ AM_CONDITIONAL(SOLARIS_MODULE, test x$solaris_module = xyes) 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) @@ -207,9 +212,12 @@ AM_CONDITIONAL(USE_PGP, test x$compile_pgp = xyes) AM_CONDITIONAL(DEFAULT_HOOK, test x$neta_cv_have_libgcrypt != xyes && test x$neta_cv_have_openssl != xyes) AM_CONDITIONAL(USE_BDB, test x$bdb_required = xyes) AM_CONDITIONAL(HAVE_ATFUNCS, test x"$ac_neta_haveatfuncs" = x"yes") +AM_CONDITIONAL(USE_SHADOWPW, test x$shadowpw = xyes) -dnl --------------------- generate files +dnl Enable silent Automake rules if present +m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])]) +dnl --------------------- generate files AC_OUTPUT([Makefile bin/Makefile bin/ad/Makefile @@ -236,6 +244,8 @@ AC_OUTPUT([Makefile etc/Makefile etc/afpd/Makefile etc/cnid_dbd/Makefile + etc/netatalk/Makefile + etc/spotlight/Makefile etc/uams/Makefile include/Makefile include/atalk/Makefile @@ -251,6 +261,7 @@ AC_OUTPUT([Makefile libatalk/compat/Makefile libatalk/dsi/Makefile libatalk/iniparser/Makefile + libatalk/talloc/Makefile libatalk/tdb/Makefile libatalk/unicode/Makefile libatalk/unicode/charsets/Makefile