-dnl $Id: configure.in,v 1.179.2.3.2.13 2003-12-03 15:21:36 lenneis Exp $
+dnl $Id: configure.in,v 1.179.2.3.2.14 2003-12-12 19:29:55 didg Exp $
dnl configure.in for netatalk
AC_INIT(etc/afpd/main.c)
dnl ----- Linux specific -----
if test x"$this_os" = "xlinux"; then
AC_MSG_RESULT([ * Linux specific configuration])
+
+ dnl ----- kernel 2.6 changed struct at_addr to atalk_addr
+ AC_MSG_CHECKING([for struct atalk_addr])
+ AC_COMPILE_IFELSE([
+#include <sys/socket.h>
+#include <asm/types.h>
+#include <linux/atalk.h>
+
+int main() {
+ struct atalk_addr foo;
+
+ return 0;
+}
+ ], [
+ ac_have_atalk_addr=yes
+ AC_MSG_RESULT([yes])
+ ], [
+ AC_MSG_RESULT([no])
+ ])
+
+if test "x$ac_have_atalk_addr" = "xyes"; then
+ AC_DEFINE(HAVE_ATALK_ADDR, 1, [set if struct at_addr is called atalk_addr])
+fi
dnl ----- check if we need the quotactl wrapper
# AC_CHECK_HEADERS(sys/quota.h linux/quota.h)
AM_NETATALK_LIBS_SUMMARY
AM_NETATALK_CONFIG_SUMMARY
+