-dnl $Id: configure.in,v 1.211 2009-02-16 13:49:19 franklahm Exp $
+dnl $Id: configure.in,v 1.215 2009-04-10 11:21:18 franklahm Exp $
dnl configure.in for netatalk
AC_INIT(etc/afpd/main.c)
AC_FUNC_UTIME_NULL
AC_FUNC_WAIT3
AC_CHECK_FUNCS(getcwd gethostname gettimeofday getusershell mkdir rmdir select socket strdup strcasestr strstr strtoul strchr memcpy)
-AC_CHECK_FUNCS(backtrace_symbols)
-AC_CHECK_FUNCS(setlocale nl_langinfo)
+AC_CHECK_FUNCS(backtrace_symbols setlocale nl_langinfo)
AC_CHECK_FUNCS(waitpid getcwd strdup strndup strnlen strtoul strerror chown fchown chmod fchmod chroot link mknod mknod64)
-AC_CHECK_FUNCS(strlcpy strlcat)
-AC_CHECK_FUNCS(setlinebuf)
+AC_CHECK_FUNCS(strlcpy strlcat setlinebuf gethostid dirfd)
AC_CHECK_MEMBERS(struct tm.tm_gmtoff,,, [#include <time.h>])
AC_CACHE_SAVE
NETATALK_CONFIG_DIRS
-AC_MSG_CHECKING([whether to use logfile])
+AC_MSG_CHECKING([whether to force logfile])
AC_ARG_WITH(logfile,
- [ --with-logfile=PATH path for file used by logger],[
+ [ --with-logfile=PATH force logging to file PATH],[
if test x"$withval" = x"no"; then
- AC_DEFINE(DISABLE_LOGGER, 1, [Define if the logger should not be used])
AC_MSG_RESULT([no, syslog])
elif test "$withval" != "yes"; then
AC_DEFINE_UNQUOTED(LOGFILEPATH, "$withval", [Path to the log file])
AC_DEFINE_UNQUOTED(LOGFILEPATH, "/var/log/netatalk.log", [Path to the log file])
AC_MSG_RESULT([/var/log/netatalk.log])
fi],[
- AC_DEFINE(DISABLE_LOGGER, 1, [Define if the logger should not be used])
- AC_MSG_RESULT([no, syslog])
+ AC_MSG_RESULT([no, syslog])
]
)
-
netatalk_cv_with_cracklib=no
AC_ARG_WITH(cracklib,
[ --with-cracklib=DICT enable/set location of cracklib dictionary],[
]
)
+AC_MSG_CHECKING([whether to enable debugging with debuggers])
+AC_ARG_ENABLE(debugging,
+ [ --enable-debugging disable SIGALRM timers and DSI tickles (eg for debugging with gdb/dbx/...)],[
+ if test "$enableval" != "no"; then
+ if test "$enableval" = "yes"; then
+ AC_DEFINE(DEBUGGING, 1, [Define if you want to disable SIGALRM timers and DSI tickles])
+ else
+ AC_DEFINE_UNQUOTED(DEBUGGING, $enableval, [Define if you want to disable SIGALRM timers and DSI tickles])
+ fi
+ AC_MSG_RESULT([yes])
+ else
+ AC_MSG_RESULT([no])
+ fi
+ ],[
+ AC_MSG_RESULT([no])
+ ]
+)
+
+
afp3=no
afp3set=no
AC_MSG_CHECKING([whether AFP 3.x calls should be enabled])
libatalk/nbp/Makefile
libatalk/netddp/Makefile
libatalk/util/Makefile
+ libatalk/util/test/Makefile
libatalk/tdb/Makefile
libatalk/unicode/Makefile
libatalk/unicode/charsets/Makefile