. ./configure.inc
# FIXME: real tmpdir
-rm -rf config.var config.var.tmp config.vars
+rm -rf finished config/bin config.var config.var.tmp config.vars
AC_INIT $TARGET
exit 1
fi
-MAKE="$(bup_find_prog make "$MAKE")"
-if test -z "$MAKE"; then
- MAKE="$(bup_find_prog gmake "$GMAKE")"
-fi
-
-if test -z "$MAKE"; then
- AC_FAIL "ERROR: unable to find make"
-fi
+for make_candidate in make gmake; do
+ found_make="$(bup_find_prog "$make_candidate" "$MAKE")"
+ if test "$found_make" \
+ && ("$found_make" --version | grep "GNU Make"); then
+ MAKE="$found_make"
+ break;
+ fi
+done
-if ! ($MAKE --version | grep "GNU Make"); then
- AC_FAIL "ERROR: $MAKE is not GNU Make"
+if ! test "$MAKE"; then
+ AC_FAIL "ERROR: unable to find GNU make as make or gmake"
fi
MAKE_VERSION=`$MAKE --version | grep "GNU Make" | awk '{print $3}'`
AC_CC="$orig_ac_cc"
LIBS="$orig_libs"
-
AC_OUTPUT config.vars
-
set -euo pipefail
# FIXME: real tmpdir
echo -n "$bup_python_config" > config.var.tmp/bup-python-config
mv config.var.tmp config.var
+if test -e bin; then rm -r bin; fi
+mkdir -p bin
+(cd bin && ln -s "$MAKE" make)
+
+touch finished
+
printf "
found: python-config (%q)
found: git (%q, ($("$bup_git" --version))