dnl febootstrap configure.ac
-dnl (C) Copyright 2009-2010 Red Hat Inc.
+dnl (C) Copyright 2009-2011 Red Hat Inc.
dnl
dnl This program is free software; you can redistribute it and/or modify
dnl it under the terms of the GNU General Public License as published by
dnl
dnl Written by Richard W.M. Jones <rjones@redhat.com>
-AC_INIT(febootstrap,3.0)
+AC_INIT(febootstrap,3.7)
AM_INIT_AUTOMAKE
dnl Check for basic C environment.
AC_CHECK_PROG(APTITUDE,[aptitude],[aptitude],[no])
AC_CHECK_PROG(DPKG,[dpkg],[dpkg],[no])
-dnl Required e2fsprogs, libs.
-AC_PATH_PROG([MKE2FS],[mke2fs],[no])
+dnl For ArchLinux handler.
+AC_CHECK_PROG(PACMAN,[pacman],[pacman],[no])
+
+dnl Required programs, libraries.
+AC_PATH_PROG([MKE2FS],[mke2fs],[no],
+ [$PATH$PATH_SEPARATOR/sbin$PATH_SEPARATOR])
if test "x$MKE2FS" = "xno" ; then
- AC_MSG_FAILURE([mke2fs program not found (is /sbin in your current path?)])
+ AC_MSG_FAILURE([mke2fs program not found])
fi
AC_DEFINE_UNQUOTED([MKE2FS],["$MKE2FS"],
[Full path to the mke2fs program.])
AC_MSG_FAILURE([Header <ext2fs/ext2fs.h> not found (part of e2fsprogs)])
])
+AC_CHECK_PROG(GAWK,[gawk],[gawk],[no])
+if test "x$GAWK" = "xno" ; then
+ AC_MSG_FAILURE([gawk (GNU awk) not found])
+fi
+
AC_CONFIG_HEADERS([config.h])
-AC_CONFIG_FILES([config.ml Makefile lib/Makefile helper/Makefile])
+AC_CONFIG_FILES([config.ml
+ debian/changelog
+ Makefile
+ lib/Makefile
+ helper/Makefile])
AC_OUTPUT