#! /usr/bin/env python
# encoding: utf-8

def configure(conf):
    def get_param(varname,default):
        return getattr(Options.options,varname,'')or default

    # Find Elemental
    if conf.options.elemental_dir:
        if not conf.options.elemental_incdir:
            conf.options.elemental_incdir=conf.options.elemental_dir + "/include"
        if not conf.options.elemental_libdir:
            conf.options.elemental_libdir=conf.options.elemental_dir + "/lib"

    if conf.options.elemental_incdir:
        elemental_incdir=[conf.options.elemental_incdir]
    else:
        elemental_incdir=[]
    if conf.options.elemental_libdir:
        elemental_libdir=[conf.options.elemental_libdir]
    else:
        elemental_libdir=[]

    if conf.options.elemental_libs:
        elemental_libs=conf.options.elemental_libs.split()
    else:
        elemental_libs=['El', 'pmrrr', 'ElSuiteSparse', 'pthread', 'm', 'qd', 'mpc',
                        'mpfr', 'gmp', 'parmetis', 'metis' ]

    conf.check_cxx(msg="Checking for Elemental",
                   header_name='El.hpp',
                   includes=elemental_incdir,
                   uselib_store='elemental',
                   libpath=elemental_libdir,
                   rpath=elemental_libdir,
                   lib=elemental_libs)

def options(opt):
    elemental=opt.add_option_group('Elemental Options')
    elemental.add_option('--elemental-dir',
                   help='Base directory where elemental is installed')
    elemental.add_option('--elemental-incdir',
                   help='Directory where elemental include files are installed')
    elemental.add_option('--elemental-libdir',
                   help='Directory where elemental library files are installed')
    elemental.add_option('--elemental-libs',
                   help='Names of the elemental libraries without prefix or suffix\n'
                   '(e.g. "El pmrrr ElSuiteSparse")')

@@ -154,16 +154,57 @@
 efault%0A%0A
+    conf.load('compiler_cxx cxx14')%0A    %0A
     # Fi
@@ -216,16 +216,16 @@
 emental%0A
-
     if c
@@ -563,25 +563,24 @@
 ntal_incdir=
-%5B
 conf.options
@@ -596,17 +596,24 @@
 l_incdir
-%5D
+.split()
 %0A    els
@@ -706,17 +706,16 @@
 _libdir=
-%5B
 conf.opt
@@ -735,17 +735,24 @@
 l_libdir
-%5D
+.split()
 %0A    els
@@ -963,14 +963,8 @@
 'm',
- 'qd',
  'mp
@@ -1009,20 +1009,8 @@
 mp',
- 'parmetis',
  'me
@@ -1278,32 +1278,32 @@
 emental_libdir,%0A
-
                 
@@ -1323,16 +1323,48 @@
 tal_libs
+,%0A                   use='cxx14'
 )%0A%0Adef o

Check for c++14 in elemental.py