summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile.am2
-rw-r--r--configure.ac3
2 files changed, 3 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am
index 87bbee6a..e07321b3 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -6,7 +6,7 @@ EXTRA_DIST = HACKING
# run the pactest test suite
check-local: src/pacman
- python $(top_srcdir)/pactest/pactest.py --debug=1 \
+ $(PYTHON) $(top_srcdir)/pactest/pactest.py --debug=1 \
--test $(top_srcdir)/pactest/tests/*.py \
-p $(top_builddir)/src/pacman/pacman
rm -rf $(top_builddir)/root
diff --git a/configure.ac b/configure.ac
index 4feb9dd1..ece29985 100644
--- a/configure.ac
+++ b/configure.ac
@@ -125,7 +125,8 @@ AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET
AC_PROG_RANLIB
-AM_PROG_LIBTOOL
+AC_PROG_LIBTOOL
+AC_CHECK_PROGS([PYTHON], [python2.5 python2.4 python], [false])
# find installed gettext
AM_GNU_GETTEXT([external])