aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
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