# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-AC_INIT([libguestfs],0.1.0)
+AC_INIT([virt-tools],0.1.0)
AM_INIT_AUTOMAKE([foreign])
AC_CONFIG_MACRO_DIR([m4])
AC_MSG_FAILURE([Perl must be installed])
fi
-dnl Check for Perl modules that must be present to compile and
-dnl test the Perl bindings.
+AM_PROG_MKDIR_P
+
+dnl Check for required and optional Perl modules.
missing_perl_modules=no
-required_perl_modules="Test::More Test::Pod Test::Pod::Coverage ExtUtils::MakeMaker Sys::Virt"
-optional_perl_modules="Sys::Guestfs"
+required_perl_modules="Test::More Test::Pod Test::Pod::Coverage ExtUtils::MakeMaker Sys::Virt Sys::Guestfs Locale::TextDomain"
+optional_perl_modules=""
for pm in $required_perl_modules; do
AC_MSG_CHECKING([for $pm])
test "x$POD2TEXT" = "xno" &&
AC_MSG_ERROR([pod2text must be installed])
+AC_CONFIG_FILES([linux/50-virt-tools:linux/50-virt-tools.in],
+ [chmod +x linux/50-virt-tools])
+
AC_CONFIG_FILES([tools/virt-tools-get-key:tools/virt-tools-get-key.pl],
[chmod +x tools/virt-tools-get-key])
AC_CONFIG_FILES([tools/virt-tools-get-transport:tools/virt-tools-get-transport.pl],
[chmod +x tools/virt-uname])
AC_CONFIG_FILES([tools/virt-ifconfig:tools/virt-ifconfig.pl],
[chmod +x tools/virt-ifconfig])
+
AC_CONFIG_FILES([Makefile
- daemon/Makefile docs/Makefile linux/Makefile tools/Makefile])
+ virt-tools.spec
+ daemon/Makefile linux/Makefile tools/Makefile])
AC_OUTPUT