summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTony Garnock-Jones <tonyg@kcbbs.gen.nz>2009-11-30 20:25:56 +0000
committerTony Garnock-Jones <tonyg@kcbbs.gen.nz>2009-11-30 20:25:56 +0000
commit89f3e8fead76e8692b8c3f641c962ea9e3c36ec7 (patch)
tree7215e3e2fe9787fdacb2494787fadcebaf22fb20 /Makefile
parentb8892e9842e6e46bdc6ad2734e4ea364b6cbafbf (diff)
downloadrabbitmq-server-git-89f3e8fead76e8692b8c3f641c962ea9e3c36ec7.tar.gz
Try harder to find a simplejson-supporting python
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index a98456076a..1cd48df210 100644
--- a/Makefile
+++ b/Makefile
@@ -15,7 +15,20 @@ TARGETS=$(EBIN_DIR)/rabbit.app $(BEAM_TARGETS)
WEB_URL=http://stage.rabbitmq.com/
MANPAGES=$(patsubst %.pod, %.gz, $(wildcard docs/*.[0-9].pod))
+ifeq ($(shell python -c 'import simplejson' 2>/dev/null && echo yes),yes)
PYTHON=python
+else
+ifeq ($(shell python2.6 -c 'import simplejson' 2>/dev/null && echo yes),yes)
+PYTHON=python2.6
+else
+ifeq ($(shell python2.5 -c 'import simplejson' 2>/dev/null && echo yes),yes)
+PYTHON=python2.5
+else
+# Hmm. Missing simplejson?
+PYTHON=python
+endif
+endif
+endif
BASIC_PLT=basic.plt
RABBIT_PLT=rabbit.plt