diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 1a94700..9b9f39c 100644 --- a/configure.ac +++ b/configure.ac @@ -58,6 +58,29 @@ if test "x$YUM" = "xno" ; then AC_MSG_FAILURE([yum program not found]) fi +AC_PATH_PROG([MKE2FS],[mke2fs],[no]) +if test "x$MKE2FS" = "xno" ; then + AC_MSG_FAILURE([mke2fs program not found (is /sbin in your current path?)]) +fi +AC_DEFINE_UNQUOTED([MKE2FS],["$MKE2FS"], + [Full path to the mke2fs program.]) + +old_LIBS="$LIBS" +AC_CHECK_LIB([com_err],[error_message],[],[ + AC_MSG_FAILURE([com_err library not found (part of e2fsprogs)]) +]) +LIBS="$old_LIBS" + +old_LIBS="$LIBS" +AC_CHECK_LIB([ext2fs],[ext2fs_file_open2],[],[ + AC_MSG_FAILURE([libext2fs library not found (part of e2fsprogs)]) +]) +LIBS="$old_LIBS" + +AC_CHECK_HEADER([ext2fs/ext2fs.h],[],[ + AC_MSG_FAILURE([Header <ext2fs/ext2fs.h> not found (part of e2fsprogs)]) +]) + AC_CONFIG_HEADERS([config.h]) AC_CONFIG_FILES([Makefile lib/Makefile helper/Makefile examples/Makefile]) AC_OUTPUT |