mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-10-04 07:58:33 +00:00
interrupt compilation if XML+libxml2 is requested but libxml2 headers are unavailable
This commit is contained in:
+6
-4
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user