X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=configure.in;h=99ebdeed582304d764c57f66cbb9ebb7d2afa5bb;hb=4af69c37034f27f0a0aaeb7a3c5bb5376b5a2580;hp=ae6b10722501d1549f17753da108a5c26f449b5f;hpb=ae0fedbfa81006c7ba9ac1261d0f042e94fdf19d;p=matthijs%2Fupstream%2Fbackupninja-vserver.git diff --git a/configure.in b/configure.in index ae6b107..99ebdee 100644 --- a/configure.in +++ b/configure.in @@ -1,7 +1,8 @@ # -*- Autoconf -*- # Process this file with autoconf to produce a configure script. -AM_MAINTAINER_MODE +# The maintainer mode is causing me grief with newest versions of autotools +#AM_MAINTAINER_MODE AC_INIT([backupninja],[0.9.3],[backupninja@lists.riseup.net]) AC_CONFIG_SRCDIR([src/backupninja.in]) AM_INIT_AUTOMAKE @@ -25,6 +26,19 @@ AC_CHECK_PROGS(AWK, awk) if test x$AWK = "x"; then AC_MSG_ERROR([awk is required]) fi +AC_CHECK_PROG(ac_cv_have_rpm, rpm, "yes", "no") +if test "x$ac_cv_have_rpm" = "xyes"; then + rpm --define '_topdir /tmp' > /dev/null 2>&1 + AC_MSG_CHECKING(to see if we can redefine _topdir) + if test $? -eq 0 ; then + AC_MSG_RESULT(yes) + HAVE_RPM=yes + else + AC_MSG_RESULT(no. You'll have to build packages manually.) + HAVE_RPM=no + fi +fi +AC_SUBST(HAVE_RPM) AC_SUBST([CFGDIR], "${sysconfdir}")