aboutsummaryrefslogtreecommitdiffstats
path: root/macros/gnome-undelfs.m4
diff options
context:
space:
mode:
Diffstat (limited to 'macros/gnome-undelfs.m4')
-rw-r--r--macros/gnome-undelfs.m422
1 files changed, 22 insertions, 0 deletions
diff --git a/macros/gnome-undelfs.m4 b/macros/gnome-undelfs.m4
new file mode 100644
index 0000000000..fe031cd6fc
--- /dev/null
+++ b/macros/gnome-undelfs.m4
@@ -0,0 +1,22 @@
+dnl GNOME_UNDELFS_CHECKS
+dnl Check for ext2fs undel support.
+dnl Set shell variable ext2fs_undel to "yes" if we have it,
+dnl "no" otherwise. May define USE_EXT2FSLIB for cpp.
+dnl Will set EXT2FS_UNDEL_LIBS to required libraries.
+
+AC_DEFUN([GNOME_UNDELFS_CHECKS], [
+ ext2fs_undel=no
+ EXT2FS_UNDEL_LIBS=
+ AC_CHECK_HEADERS(linux/ext2_fs.h)
+ if test x$ac_cv_header_linux_ext2_fs_h = xyes
+ then
+ AC_CHECK_HEADERS(ext2fs/ext2fs.h, , , [#include <stdio.h>
+#include <linux/ext2_fs.h>])
+ if test x$ac_cv_header_ext2fs_ext2fs_h = xyes
+ then
+ AC_DEFINE(USE_EXT2FSLIB)
+ ext2fs_undel=yes
+ EXT2FS_UNDEL_LIBS="-lext2fs -lcom_err"
+ fi
+ fi
+])
)AuthorAgeFilesLines * 1: Stagify.vanilla2014-06-301-9/+8 * Add NO_STAGE all over the place in preparation for the staging support (cat: ...bapt2013-09-211-0/+1 * - Update to 0.08az2013-09-023-14/+11 * - Cleanup outdated checks. (PERL_LEVEL < 5.12)az2013-06-181-4/+0 * Convert the remaining ports that depend on databases/p5-DBD-mysql${MYSQL_VER}flo2012-12-291-1/+2 * - update to 0.07 [1]jgh2012-06-132-17/+20 * - Get Rid MD5 supportmiwi2011-03-191-1/+0 * Remove useless dependency to PostgreSQL.martymac2010-10-011-1/+1 * Update to 0.05makc2010-09-192-5/+24 * - Update to 0.04sylvio2010-04-252-4/+4 * - Update to 0.03miwi2009-10-102-5/+5