interrupt compilation if XML+libxml2 is requested but libxml2 headers are unavailable

This commit is contained in:
roberto@sirius
2010-03-31 11:34:10 +02:00
parent 0bfa5c4f46
commit dd12caa6f3
+6 -4
View File
@@ -1,6 +1,6 @@
# uWSGI configuration
XML=False
XML=True
SNMP=True
SCTP=False
ERLANG=False
@@ -204,14 +204,16 @@ def parse_vars():
if XML:
if XML_IMPLEMENTATION == 'libxml2':
xmlconf = spcall('xml2-config --libs')
xmlconf = spcall('ixml2-config --libs')
if xmlconf is None:
print("libxml2 headers unavailable. XML support will be disabled")
print("*** libxml2 headers unavailable. uWSGI build is interrupted. You have to install libxml2 development package or use libexpat or disable XML")
sys.exit(1)
else:
ldflags.append(xmlconf)
xmlconf = spcall("xml2-config --cflags")
if xmlconf is None:
print("libxml2 headers unavailable. XML support will be disabled")
print("*** libxml2 headers unavailable. uWSGI build is interrupted. You have to install libxml2 development package or use libexpat or disable XML")
sys.exit(1)
else:
cflags.append(xmlconf)
cflags.append("-DUWSGI_XML -DUWSGI_XML_LIBXML2")