aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorMichael Elkins <melkins@tislabs.com>2011-01-24 21:21:55 +0000
committerMichael Elkins <melkins@tislabs.com>2011-01-24 21:21:55 +0000
commitf8e664a34c21d10efbd91d21d56d98e097872b73 (patch)
tree6762f255a76e1166753e2199c695d1d0143376ed /configure
parent6f9a00b15fe27c894a18e4daa5b01448589c2fe4 (diff)
check for both django-admin and django-admin.py since it can be named either
svn path=/configure; revision=3647
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure48
1 files changed, 48 insertions, 0 deletions
diff --git a/configure b/configure
index 18e5c6aa..a29d7715 100755
--- a/configure
+++ b/configure
@@ -593,6 +593,7 @@ ac_includes_default="\
ac_subst_vars='LTLIBOBJS
LIBOBJS
+DJANGO_ADMIN
SECRET_KEY
WEBUSER
PYWRAP_LIBDIR
@@ -4272,6 +4273,53 @@ then
SECRET_KEY=`$PYTHON -c 'import random; print "".join(random.choice("abcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*(-_=+)") for i in range(50))'`
+ # there is no standard name for this tool, so check for it
+ for ac_prog in django-admin django-admin.py
+do
+ # Extract the first word of "$ac_prog", so it can be a program name with args.
+set dummy $ac_prog; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_path_DJANGO_ADMIN+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $DJANGO_ADMIN in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_DJANGO_ADMIN="$DJANGO_ADMIN" # Let the user override the test with a path.
+ ;;
+ *)
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_path_DJANGO_ADMIN="$as_dir/$ac_word$ac_exec_ext"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+ ;;
+esac
+fi
+DJANGO_ADMIN=$ac_cv_path_DJANGO_ADMIN
+if test -n "$DJANGO_ADMIN"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DJANGO_ADMIN" >&5
+$as_echo "$DJANGO_ADMIN" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ test -n "$DJANGO_ADMIN" && break
+done
+
+
ac_config_files="$ac_config_files portal-gui/Makefile"
fi