-dnl $Id: configure.in,v 1.126.2.4 2001-11-30 05:54:33 srittau Exp $
+dnl $Id: configure.in,v 1.126.2.5 2001-12-05 08:43:38 srittau Exp $
dnl configure.in for netatalk
AC_INIT(bin/adv1tov2/adv1tov2.c)
AC_CHECK_LIB(auth, main)
dnl Replace `main' with a function in -lcmd:
AC_CHECK_LIB(cmd, main)
-dnl Replace `main' with a function in -lcom_err:
-AC_CHECK_LIB(com_err, main)
dnl Replace `main' with a function in -lcrypt:
AC_CHECK_LIB(crypt, main)
dnl Replace `main' with a function in -ld:
AC_CHECK_LIB(nsl, main)
dnl Replace `main' with a function in -lprot:
AC_CHECK_LIB(prot, main)
-dnl Replace `main' with a function in -lresolv:
-AC_CHECK_LIB(resolv, main)
-dnl Replace `main' with a function in -lrpcsvc:
-AC_CHECK_LIB(rpcsvc, main)
dnl Replace `main' with a function in -lrx:
AC_CHECK_LIB(rx, main)
dnl Replace `main' with a function in -lrxkad:
AC_PATH_DB3(, [AC_MSG_ERROR([Berkeley DB3 library not found!])])
fi
+dnl Check for quota support
+AC_CHECK_QUOTA
+
msg_dir=""
AC_ARG_WITH(message-dir,
[ --with-message-dir=PATH path to message files [[PKGCONF/msg]]],
filedir.h fork.h globals.h icon.h misc.h status.h switch.h uam_auth.h \
uid.h unix.h volume.h parse_mtab.h
-LIBS = @LIBS@ @AFPD_LIBS@
+LIBS = @LIBS@ @AFPD_LIBS@ @QUOTA_LIBS@
CFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/sys \
@CFLAGS@ \
--- /dev/null
+dnl $Id: quota-check.m4,v 1.1.2.1 2001-12-05 08:43:39 srittau Exp $
+dnl Autoconf macro to check for quota support
+dnl FIXME: This is in now way complete.
+
+AC_DEFUN([AC_CHECK_QUOTA], [
+ QUOTA_LIBS=
+ AC_CHECK_LIB(rpcsvc, main, [QUOTA_LIBS=-lrpcsvc])
+ AC_SUBST(QUOTA_LIBS)
+])
+