aboutsummaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
authorAditya Kali <adityakali@google.com>2011-07-20 11:40:02 -0700
committerTheodore Ts'o <tytso@mit.edu>2011-08-31 15:21:40 -0400
commitf239fefc14226f655477179801c734749a04d4b4 (patch)
tree5d614dcaf12abbf9dc00cf8b1f3f95eb61662e3a /configure.in
parenta4aff9ca5bcc3df76dcb3d49765674feba3d7654 (diff)
downloade2fsprogs-f239fefc14226f655477179801c734749a04d4b4.tar.gz
e2fsprogs-f239fefc14226f655477179801c734749a04d4b4.tar.xz
e2fsprogs-f239fefc14226f655477179801c734749a04d4b4.zip
e2fsprogs: add quota library to e2fsprogs
This patch adds the quota library (ported form Jan Kara's quota-tools) in e2fsprogs in order to make quotas as a first class supported feature in Ext4. This patch also provides interface in lib/quota/mkquota.h that will be used by mke2fs, tune2fs, e2fsck, etc. to initialize and update quota files. This first version of the quota library does not support reading existing quota files. This support will be added in the near future. Thanks to Jan Kara for his work on quota-tools. Most of the files in this patch are taken as-is from quota tools and were simply modified to work with libext2fs in e2fsprogs. Signed-off-by: Aditya Kali <adityakali@google.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in53
1 files changed, 52 insertions, 1 deletions
diff --git a/configure.in b/configure.in
index 57d58261..6b6c852c 100644
--- a/configure.in
+++ b/configure.in
@@ -527,6 +527,57 @@ AC_SUBST(PROFILED_LIBBLKID)
AC_SUBST(DEPPROFILED_LIBBLKID)
AC_SUBST(BLKID_CMT)
dnl
+dnl handle --disable-libquota
+dnl
+PKG_PROG_PKG_CONFIG
+LIBQUOTA=
+DEPLIBQUOTA=
+STATIC_LIBQUOTA=
+DEPSTATIC_LIBQUOTA=
+PROFILED_LIBQUOTA=
+DEPPROFILED_LIBQUOTA=
+QUOTA_CMT=
+AC_ARG_ENABLE([libquota],
+[ --disable-libquota do not build private quota library],
+if test "$enableval" = "no"
+then
+ if test -z "$PKG_CONFIG"; then
+ AC_MSG_ERROR([pkg-config not installed; please install it.])
+ fi
+
+ AC_CHECK_LIB(quota,
+ [LIBQUOTA=`$PKG_CONFIG --libs quota`;
+ STATIC_LIBQUOTA=`$PKG_CONFIG --static --libs quota`],
+ [AC_MSG_ERROR([external quota library not found])],
+ [$LIBQUOTA])
+ QUOTA_CMT=#
+ AC_MSG_RESULT([Disabling private quota library])
+else
+ LIBQUOTA='$(LIB)/libquota'$LIB_EXT
+ DEPLIBQUOTA=$LIBQUOTA
+ STATIC_LIBQUOTA='$(LIB)/libquota'$STATIC_LIB_EXT
+ DEPSTATIC_LIBQUOTA=$STATIC_LIBQUOTA
+ PROFILED_LIBQUOTA='$(LIB)/libquota'$PROFILED_LIB_EXT
+ DEPPROFILED_LIBQUOTA=$PROFILED_LIBQUOTA
+ AC_MSG_RESULT([Enabling private quota library])
+fi
+,
+LIBQUOTA='$(LIB)/libquota'$LIB_EXT
+DEPLIBQUOTA=$LIBQUOTA
+STATIC_LIBQUOTA='$(LIB)/libquota'$STATIC_LIB_EXT
+DEPSTATIC_LIBQUOTA=$STATIC_LIBQUOTA
+PROFILED_LIBQUOTA='$(LIB)/libquota'$PROFILED_LIB_EXT
+DEPPROFILED_LIBQUOTA=$PROFILED_LIBQUOTA
+AC_MSG_RESULT([Enabling private quota library by default])
+)
+AC_SUBST(LIBQUOTA)
+AC_SUBST(DEPLIBQUOTA)
+AC_SUBST(STATIC_LIBQUOTA)
+AC_SUBST(DEPSTATIC_LIBQUOTA)
+AC_SUBST(PROFILED_LIBQUOTA)
+AC_SUBST(DEPPROFILED_LIBQUOTA)
+AC_SUBST(QUOTA_CMT)
+dnl
dnl handle --enable-debugfs
dnl
AC_ARG_ENABLE([debugfs],
@@ -1096,7 +1147,7 @@ for i in MCONFIG Makefile e2fsprogs.spec \
lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
lib/uuid/Makefile lib/uuid/uuid_types.h \
- lib/blkid/Makefile lib/blkid/blkid_types.h \
+ lib/blkid/Makefile lib/blkid/blkid_types.h lib/quota/Makefile \
lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
misc/Makefile ext2ed/Makefile e2fsck/Makefile \