X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=macros%2Fnetatalk.m4;h=8832590e7706647241869a76f239e9a121bfdf79;hb=5957fb1e5f05052f7a5e5c8d7a7b81b7b1e1c205;hp=f7421ab55b3d38b0068f40ba22d1b58a0531e3a7;hpb=a6f27bf879450b929d5ba5aae73f6054c550964e;p=netatalk.git diff --git a/macros/netatalk.m4 b/macros/netatalk.m4 index f7421ab5..8832590e 100644 --- a/macros/netatalk.m4 +++ b/macros/netatalk.m4 @@ -1,5 +1,40 @@ dnl Kitchen sink for configuration macros +dnl Whether to enable developer build +AC_DEFUN([AC_DEVELOPER], [ + AC_MSG_CHECKING([whether to enable developer build]) + AC_ARG_ENABLE( + developer, + AS_HELP_STRING([--enable-developer], [whether to enable developer build (ABI checking)]), + enable_dev=$enableval, + enable_dev=no + ) + AC_MSG_RESULT([$enable_dev]) + AM_CONDITIONAL(DEVELOPER, test x"$enable_dev" = x"yes") + +dnl Tracker, for Spotlight +AC_DEFUN([AC_NETATALK_SPOTLIGHT], [ + ac_cv_tracker_pkg_default=tracker-sparql-0.12 + AC_ARG_WITH([tracker-pkg-config], + [AS_HELP_STRING([--with-tracker-pkg-config],[name of the Tracker SPARQL pkg in pkg-config])], + [ac_cv_tracker_pkg=$withval], + [ac_cv_tracker_pkg=$ac_cv_tracker_pkg_default]) + + AC_MSG_NOTICE([searching for $ac_cv_tracker_pkg]) + + PKG_CHECK_MODULES([TRACKER], [$ac_cv_tracker_pkg >= 0.12], [ac_cv_have_tracker=yes], [ac_cv_have_tracker=no]) + + if test x"$ac_cv_have_tracker" = x"no" ; then + if test x"$need_tracker" = x"yes" ; then + AC_MSG_ERROR([$ac_cv_tracker_pkg not found]) + fi + fi + + AC_SUBST(TRACKER_CFLAGS) + AC_SUBST(TRACKER_LIBS) + AM_CONDITIONAL(HAVE_TRACKER, [test x"$ac_cv_have_tracker" = x"yes"]) +]) + dnl Whether to disable bundled libevent AC_DEFUN([AC_NETATALK_LIBEVENT], [ AC_MSG_CHECKING([whether to disable bundled libevent (define CPPFLAGS and LDFLAGS otherwise appropiately to pick up installed version)]) @@ -12,7 +47,10 @@ AC_DEFUN([AC_NETATALK_LIBEVENT], [ ) if test x"$use_bundled_libevent" = x"yes" ; then + AC_MSG_RESULT([no]) AC_CONFIG_SUBDIRS([libevent]) + else + AC_MSG_RESULT([yes]) fi AM_CONDITIONAL(USE_BUILTIN_LIBEVENT, test x"$use_bundled_libevent" = x"yes") ]) @@ -23,12 +61,16 @@ AC_MSG_CHECKING([whether to use Filesystem Hierarchy Standard (FHS) compatibilit AC_ARG_ENABLE(fhs, [ --enable-fhs use Filesystem Hierarchy Standard (FHS) compatibility],[ if test "$enableval" = "yes"; then - uams_path="${libdir}/netatalk" + bindir="/bin" + sbindir="/sbin" sysconfdir="/etc" - PKGCONFDIR=${sysconfdir}/netatalk - SERVERTEXT="${PKGCONFDIR}/msg" - use_pam_so=yes + libdir="/lib" + localstatedir="/var" mandir="/usr/share/man" + uams_path="${libdir}/netatalk" + PKGCONFDIR="${sysconfdir}" + SERVERTEXT="${localstatedir}/netatalk/msg" + use_pam_so=yes AC_DEFINE(FHS_COMPATIBILITY, 1, [Define if you want compatibily with the FHS]) AC_MSG_RESULT([yes]) else @@ -101,7 +143,7 @@ dnl Check for optional cracklib support AC_DEFUN([AC_NETATALK_CRACKLIB], [ netatalk_cv_with_cracklib=no AC_ARG_WITH(cracklib, - [ --with-cracklib=DICT enable/set location of cracklib dictionary],[ + [ --with-cracklib[[=DICT]] enable/set location of cracklib dictionary [[no]]],[ if test "x$withval" != "xno" ; then cracklib="$withval" AC_CHECK_LIB(crack, main, [ @@ -231,7 +273,7 @@ AC_DEFUN([AC_NETATALK_INIT_STYLE], [ AC_MSG_ERROR([--with-init-style=redhat is obsoleted. Use redhat-sysv or redhat-systemd.]) ;; "redhat-sysv") - AC_MSG_RESULT([enabling redhat-style sysv (upstart) configuration]) + AC_MSG_RESULT([enabling redhat-style sysv initscript support]) ;; "redhat-systemd") AC_MSG_RESULT([enabling redhat-style systemd support]) @@ -240,25 +282,25 @@ AC_DEFUN([AC_NETATALK_INIT_STYLE], [ AC_MSG_ERROR([--with-init-style=suse is obsoleted. Use suse-sysv or suse-systemd.]) ;; "suse-sysv") - AC_MSG_RESULT([enabling suse-style sysv configuration]) + AC_MSG_RESULT([enabling suse-style sysv initscript support]) ;; "suse-systemd") AC_MSG_RESULT([enabling suse-style systemd support (>=openSUSE12.1)]) ;; "gentoo") - AC_MSG_RESULT([enabling gentoo-style sysv support]) + AC_MSG_RESULT([enabling gentoo-style initscript support]) ;; "netbsd") - AC_MSG_RESULT([enabling netbsd-style sysv support]) + AC_MSG_RESULT([enabling netbsd-style initscript support]) ;; "debian") - AC_MSG_RESULT([enabling debian-style sysv support]) + AC_MSG_RESULT([enabling debian-style initscript support]) ;; "solaris") - AC_MSG_RESULT([enabling solaris-style sysv support]) + AC_MSG_RESULT([enabling solaris-style SMF support]) ;; "systemd") - AC_MSG_RESULT([use general systemd configuration]) + AC_MSG_RESULT([enabling general systemd support]) ;; "none") AC_MSG_RESULT([disabling init-style support]) @@ -270,8 +312,6 @@ AC_DEFUN([AC_NETATALK_INIT_STYLE], [ AM_CONDITIONAL(USE_NETBSD, test x$init_style = xnetbsd) AM_CONDITIONAL(USE_REDHAT_SYSV, test x$init_style = xredhat-sysv) AM_CONDITIONAL(USE_SUSE_SYSV, test x$init_style = xsuse-sysv) - AM_CONDITIONAL(USE_SHADOWPW, test x$shadowpw = xyes) - AM_CONDITIONAL(USE_TRU64, test x$init_style = xtru64) AM_CONDITIONAL(USE_SOLARIS, test x$init_style = xsolaris) AM_CONDITIONAL(USE_GENTOO, test x$init_style = xgentoo) AM_CONDITIONAL(USE_DEBIAN, test x$init_style = xdebian) @@ -552,6 +592,15 @@ fi if test x"$with_kerberos" = x"yes"; then AC_DEFINE([HAVE_KERBEROS], [1], [Define if Kerberos 5 is available]) fi + +dnl Check for krb5_free_unparsed_name and krb5_free_error_message +save_CFLAGS="$CFLAGS" +save_LIBS="$LIBS" +CFLAGS="$KRB5_CFLAGS" +LIBS="$KRB5_LIBS" +AC_CHECK_FUNCS([krb5_free_unparsed_name krb5_free_error_message]) +CFLAGS="$save_CFLAGS" +LIBS="$save_LIBS" ]) dnl Check for overwrite the config files or not @@ -924,6 +973,7 @@ if test x"$netatalk_cv_search_sendfile" = x"yes"; then AC_DEFINE(SENDFILE_FLAVOR_SOLARIS, 1, [Solaris sendfile()]) AC_SEARCH_LIBS(sendfile, sendfile) AC_CHECK_FUNC([sendfile], [netatalk_cv_HAVE_SENDFILE=yes]) + AC_CHECK_FUNCS([sendfilev]) ;; *freebsd*) @@ -968,4 +1018,4 @@ AC_CACHE_CHECK([if the realpath function allows a NULL argument], if test x"$neta_cv_REALPATH_TAKES_NULL" = x"yes"; then AC_DEFINE(REALPATH_TAKES_NULL,1,[Whether the realpath function allows NULL]) fi -]) \ No newline at end of file +])