summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/postgresql/package.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/postgresql/package.py b/var/spack/repos/builtin/packages/postgresql/package.py
index 328203138c..9cbf44a413 100644
--- a/var/spack/repos/builtin/packages/postgresql/package.py
+++ b/var/spack/repos/builtin/packages/postgresql/package.py
@@ -44,6 +44,7 @@ class Postgresql(AutotoolsPackage):
variant('tcl', default=False, description='Enable Tcl bindings.')
variant('gssapi', default=False,
description='Build with GSSAPI functionality.')
+ variant('xml', default=False, description='Build with XML support.')
depends_on('readline', when='lineedit=readline')
depends_on('libedit', when='lineedit=libedit')
@@ -51,6 +52,7 @@ class Postgresql(AutotoolsPackage):
depends_on('tcl', when='+tcl')
depends_on('perl', when='+perl')
depends_on('python', when='+python')
+ depends_on('libxml2', when='+xml')
def configure_args(self):
config_args = ["--with-openssl"]
@@ -77,6 +79,9 @@ class Postgresql(AutotoolsPackage):
if '+tcl' in self.spec:
config_args.append('--with-tcl')
+ if '+xml' in self.spec:
+ config_args.append('--with-libxml')
+
return config_args
def install(self, spec, prefix):