]> arthur.barton.de Git - netatalk.git/blobdiff - macros/netatalk.m4
small fix of configure summary
[netatalk.git] / macros / netatalk.m4
index 61994a80d2af9b1df194aec07ae32f5ce92c9535..3e57077827de55f35b726b83318ff9b1dd2131ff 100644 (file)
@@ -1,5 +1,18 @@
 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 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)])
@@ -23,12 +36,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
@@ -231,7 +248,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 +257,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])