X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=configure.in;h=a29500277ba3a1ff80c0f18e12ea40bc987eef77;hb=903e5d9bfe845116cb40c13c1c3736b759db2b22;hp=25ccb4de369cc5817b82136aa82a9a05a2d7296c;hpb=6b1ac16a9b4d5223453b69b56223165c513f9dc4;p=netatalk.git diff --git a/configure.in b/configure.in index 25ccb4de..a2950027 100644 --- a/configure.in +++ b/configure.in @@ -1,4 +1,4 @@ -dnl $Id: configure.in,v 1.229 2009-11-23 10:20:15 franklahm Exp $ +dnl $Id: configure.in,v 1.242 2010-04-07 14:25:24 hat001 Exp $ dnl configure.in for netatalk AC_INIT(etc/afpd/main.c) @@ -135,9 +135,9 @@ AC_TYPE_SIGNAL 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 setlocale nl_langinfo) +AC_CHECK_FUNCS(backtrace_symbols setlocale nl_langinfo strlcpy strlcat setlinebuf dirfd pselect) AC_CHECK_FUNCS(waitpid getcwd strdup strndup strnlen strtoul strerror chown fchown chmod fchmod chroot link mknod mknod64) -AC_CHECK_FUNCS(strlcpy strlcat setlinebuf gethostid dirfd) +AC_CHECK_FUNC(renameat, AC_DEFINE([_ATFILE_SOURCE], 1, AT file source)) AC_CHECK_MEMBERS(struct tm.tm_gmtoff,,, [#include ]) AC_CACHE_SAVE @@ -713,14 +713,21 @@ fi dnl ----- see etc/afpd/quota.c AC_DEFINE(HAVE_BROKEN_DBTOB, 1, [Define if dbtob is broken]) - netatalk_cv_linux_sendfile=no + netatalk_cv_linux_sendfile=yes + AC_MSG_CHECKING([use sendfile syscall]) AC_ARG_ENABLE(sendfile, - [ --enable-sendfile use sendfile syscall default (no) ],[ - if test "$enableval" = "yes"; then - netatalk_cv_linux_sendfile=yes + [ --disable-sendfile disable linux sendfile syscall],[ + if test x"$enableval" = x"no"; then + netatalk_cv_linux_sendfile=no + AC_MSG_RESULT([no]) + else + AC_MSG_RESULT([yes]) + fi - AC_MSG_RESULT([enabling sendfile syscall]) - ] + ],[ + AC_MSG_RESULT([yes]) + ] + ) if test x"$netatalk_cv_linux_sendfile" = "xyes"; then @@ -1048,7 +1055,7 @@ fi AC_SUBST(LIBATALK_ACLS) dnl --------------------- check for Extended Attributes support -neta_cv_eas="files" +neta_cv_eas="ad" neta_cv_eas_sys_found=no neta_cv_eas_sys_not_found=no @@ -1141,10 +1148,39 @@ esac if test "x$neta_cv_eas_sys_found" = "xyes" ; then if test "x$neta_cv_eas_sys_not_found" != "xyes" ; then - neta_cv_eas="$neta_cv_eas | native" + neta_cv_eas="$neta_cv_eas | sys" fi fi +dnl --------------------- Check if realpath() takes NULL +AC_CACHE_CHECK([if the realpath function allows a NULL argument], + neta_cv_REALPATH_TAKES_NULL, [ + AC_TRY_RUN([ + #include + #include + #include + + void exit_on_core(int ignored) { + exit(1); + } + + main() { + char *newpath; + signal(SIGSEGV, exit_on_core); + newpath = realpath("/tmp", NULL); + exit((newpath != NULL) ? 0 : 1); + }], + neta_cv_REALPATH_TAKES_NULL=yes, + neta_cv_REALPATH_TAKES_NULL=no, + neta_cv_REALPATH_TAKES_NULL=cross + ) + ] +) + +if test x"$neta_cv_REALPATH_TAKES_NULL" = x"yes"; then + AC_DEFINE(REALPATH_TAKES_NULL,1,[Whether the realpath function allows NULL]) +fi + dnl --------------------- Netatalk Webmin NETATALK_WEBMIN @@ -1190,7 +1226,6 @@ AC_OUTPUT([Makefile bin/afile/Makefile bin/afppasswd/Makefile bin/cnid/Makefile - bin/cnid/cnid_maint bin/cnid/cnid2_create bin/getzones/Makefile bin/megatron/Makefile @@ -1200,19 +1235,17 @@ AC_OUTPUT([Makefile bin/psorder/Makefile bin/uniconv/Makefile config/Makefile + config/pam/Makefile contrib/Makefile - contrib/acltests/Makefile contrib/macusers/Makefile contrib/macusers/macusers - contrib/nu/Makefile - contrib/nu/nu contrib/printing/Makefile contrib/shell_utils/Makefile contrib/shell_utils/afpd-mtab.pl contrib/shell_utils/apple_cp + contrib/shell_utils/apple_dump contrib/shell_utils/apple_mv contrib/shell_utils/apple_rm - contrib/shell_utils/apple_cleanup contrib/shell_utils/asip-status.pl contrib/timelord/Makefile contrib/a2boot/Makefile @@ -1240,7 +1273,6 @@ AC_OUTPUT([Makefile libatalk/cnid/Makefile libatalk/cnid/cdb/Makefile libatalk/cnid/last/Makefile - libatalk/cnid/mtab/Makefile libatalk/cnid/dbd/Makefile libatalk/cnid/tdb/Makefile libatalk/compat/Makefile