fixed json support with pkg-config

This commit is contained in:
roberto@natty32
2011-04-14 09:10:03 +02:00
parent 3c068b2a00
commit 5e96c4ca79
+1
View File
@@ -397,6 +397,7 @@ class uConf(object):
jsonconf = spcall("pkg-config --cflags jansson")
if jsonconf:
self.cflags.append(jsonconf)
self.cflags.append("-DUWSGI_JSON")
self.gcc_list.append('json')
self.libs.append(spcall("pkg-config --libs jansson"))
elif os.path.exists('/usr/include/jansson.h') or os.path.exists('/usr/local/include/jansson.h'):