AC_SUB bup_make "$MAKE"
-bup_python="$PYTHON"
+bup_python="$(type -p "$PYTHON")"
test -z "$bup_python" && bup_python="$(bup_find_prog python2.7 '')"
test -z "$bup_python" && bup_python="$(bup_find_prog python2.6 '')"
test -z "$bup_python" && bup_python="$(bup_find_prog python2 '')"
AC_CHECK_FUNCS lutimes
+builtin_mul_overflow_code="
+#include <stddef.h>
+int main(int argc, char **argv)
+{
+ size_t n = 0, size = 0, total;
+ __builtin_mul_overflow(n, size, &total);
+ return 0;
+}
+"
+
+TLOGN "checking for __builtin_mul_overflow"
+if bup_try_c_code "$builtin_mul_overflow_code"; then
+ AC_DEFINE BUP_HAVE_BUILTIN_MUL_OVERFLOW 1
+ TLOG ' (found)'
+else
+ TLOG ' (not found)'
+fi
+
+
AC_CHECK_FUNCS mincore
mincore_incore_code="
fi
fi
+TLOGN "checking for readline"
+if pkg-config readline; then
+ AC_DEFINE BUP_HAVE_READLINE 1
+ TLOG ' (yes)'
+else
+ TLOG ' (no)'
+fi
AC_CHECK_FIELD stat st_atim sys/types.h sys/stat.h unistd.h
AC_CHECK_FIELD stat st_mtim sys/types.h sys/stat.h unistd.h