From cfa07eba076c7728c0de4ba5669a222742d04d70 Mon Sep 17 00:00:00 2001 From: Michael Elkins Date: Thu, 28 Feb 2013 17:15:00 +0000 Subject: if the django-admin script is not found, configure should exit and inform the user so they can correct their $PATH see #431 svn path=/trunk/; revision=5090 --- configure.ac | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 51f432d2..e87b25f3 100644 --- a/configure.ac +++ b/configure.ac @@ -684,7 +684,10 @@ then AC_SUBST(DJANGO_DIR, [`$PYTHON -c 'import os,sys; print [[os.path.join(p, "django") for p in sys.path if os.path.exists(os.path.join(p, "django"))]][[0]]'`]) # There is no standard name for this tool, so check for it. - AC_PATH_PROGS(DJANGO_ADMIN, [django-admin django-admin.py]) + AC_PATH_PROGS(DJANGO_ADMIN, [django-admin django-admin.py], [no]) + if test "$DJANGO_ADMIN" = no; then + AC_MSG_ERROR([unable to locate the django-admin script in your \$PATH]) + fi if test "$enable_wsgi_daemon_mode" != no then -- cgit v1.2.3