X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=configure.ac;h=7a1377ef9d68aa532b0091d8d2aebac523f2bb21;hb=f71a10c6282c56aac97e8b1651e018e5d63c7a4b;hp=8afb6b4bf0a04c246b058eb3c6e55709d2e7adab;hpb=56a3b79fbdcb80ef68f0311ca1d6af8b0789bff1;p=virt-hostinfo.git diff --git a/configure.ac b/configure.ac index 8afb6b4..7a1377e 100644 --- a/configure.ac +++ b/configure.ac @@ -33,7 +33,35 @@ AM_PROG_CC_C_O dnl Check support for 64 bit file offsets. AC_SYS_LARGEFILE +dnl C functions which may be missing on older systems. +AC_CHECK_FUNCS([inotify_init1 clock_gettime]) + +dnl Check for required packages using pkg-config. +PKG_CHECK_MODULES([HOSTINFOD],[apr-1 >= 1.3 libvirt >= 0.2.1]) + +dnl Check for Perl and POD. +AC_CHECK_PROG([PERL],[perl],[perl],[no]) +AC_CHECK_PROG([POD2MAN],[pod2man],[pod2man],[no]) +test "x$POD2MAN" = "xno" && + AC_MSG_ERROR([pod2man must be installed]) +AC_CHECK_PROG([POD2TEXT],[pod2text],[pod2text],[no]) +test "x$POD2TEXT" = "xno" && + AC_MSG_ERROR([pod2text must be installed]) + dnl Produce output files. AC_CONFIG_HEADERS([config.h]) -AC_CONFIG_FILES([Makefile hostinfod/Makefile]) +AC_CONFIG_FILES([Makefile + hostinfod/Makefile + conf/Makefile + conf/hostinfo.conf + conf/guests.conf + hostinfo-status/Makefile + hostinfo-set/Makefile + hostinfo-test/Makefile]) +AC_CONFIG_FILES([hostinfo-status/hostinfo-status:hostinfo-status/hostinfo-status.pl], + [chmod 0555 hostinfo-status/hostinfo-status]) +AC_CONFIG_FILES([hostinfo-set/hostinfo-set:hostinfo-set/hostinfo-set.pl], + [chmod 0555 hostinfo-set/hostinfo-set]) +AC_CONFIG_FILES([hostinfo-test/hostinfo-test:hostinfo-test/hostinfo-test.pl], + [chmod 0555 hostinfo-test/hostinfo-test]) AC_OUTPUT