X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fupstream%2Fbackupninja.git;a=blobdiff_plain;f=configure.in;h=26e95be3041089b0cf80a6ae044b109a6bbfcf98;hp=2b8c2693f5e6cbf3b2f34eb5289a9072d5b43f64;hb=d404d8b754758dd3ac27c0be280f3ef9187ffce4;hpb=911ae7d54809babedc3a8f324b3974acbc4c12fb diff --git a/configure.in b/configure.in index 2b8c269..26e95be 100644 --- a/configure.in +++ b/configure.in @@ -3,7 +3,7 @@ # The maintainer mode is causing me grief with newest versions of autotools #AM_MAINTAINER_MODE -AC_INIT([backupninja],[0.9.4],[backupninja@lists.riseup.net]) +AC_INIT([backupninja],[0.9.6],[backupninja@lists.riseup.net]) AC_CONFIG_SRCDIR([src/backupninja.in]) AM_INIT_AUTOMAKE @@ -12,20 +12,30 @@ AM_INIT_AUTOMAKE # BASH may already be set in the shell, if the admin then changes the # the /bin/sh symlink to a non-bash shell, all hell will break lose. unset BASH -AC_PATH_PROGS([BASH], [bash], [/bin/bash], [$PATH:/bin:/usr/bin:/usr/sbin]) -if test x$BASH = "x"; then +AC_PATH_PROGS(BASH, bash, "no", [$PATH:/bin:/usr/bin:/usr/sbin]) +if test x$BASH = "xno"; then AC_MSG_ERROR([bash is required]) fi -AC_CHECK_PROGS(SED, sed) -if test x$SED = "x"; then +AC_PATH_PROGS(SED, sed, "no") +if test x$SED = "xno"; then AC_MSG_ERROR([sed is required]) +else + export SED fi -AC_CHECK_PROGS(AWK, awk) -if test x$AWK = "x"; then +AC_PATH_PROGS(AWK, awk, "no") +if test x$AWK = "xno"; then AC_MSG_ERROR([awk is required]) +else + export AWK fi + +AC_PATH_PROGS(MKTEMP, mktemp, "no") +if test x$MKTEMPT = "xno"; then + AC_MSG_ERROR([mktemp 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