<div>Does it even need to be there at all?  Must things like "Map.hh" be in the public namespace like this?  Do we really need -I/usr/lib?  How about -I/usr/local/include (my /usr/local is empty so configure definitely didn't find anything there, it's not mentioned in my environment either).  How about /usr/include (which is a system directory and need not, indeed should not, be specified explicitly) and /usr/lib/openmpi which has no C headers in it and really shouldn't be specified either.  Why can't I have -I$PETSC_DIR/$PETSC_ARCH/include -I$PETSC_DIR/include and *nothing* else unless I have packages in non-system directories?</div>
<div><br></div><div>This with current -dev, it was cleaner with 3.1 where at least /usr/lib and /usr/local/include were not shoved in there.  I haven't checked when they crept in.</div><div><br></div>/usr/bin/mpicc -o ex51.o -c -fPIC -Wall -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas -g3 -I/home/jed/petsc/src/dm/mesh/sieve -I/home/jed/petsc/ompi/include -I/home/jed/petsc/include -I/usr/include -I/usr/lib/openmpi -I/home/jed/petsc/ompi/include -I/usr/lib -I/usr/local/include -D__INSDIR__=src/ksp/ksp/examples/tutorials/ ex51.c<div>
<br></div><div><div>#!/usr/bin/python</div><div>if __name__ == '__main__':</div><div>  import sys</div><div>  import os</div><div>  sys.path.insert(0, os.path.abspath('config'))</div><div>  import configure</div>
<div>  configure_options = [</div><div>    '--with-zoltan-dir=/usr',</div><div>    '--download-ml',</div><div>    '--with-blas-lapack-dir=/usr',</div><div>    '--download-pastix',</div><div>
    '--download-blacs',</div><div>    '--download-chaco',</div><div>    '--with-hdf5-dir=/usr',</div><div>    '--with-sowing',</div><div>    '--download-superlu_dist',</div><div>    '--with-cholmod-dir=/usr',</div>
<div>    '--download-spooles',</div><div>    '--download-sundials',</div><div>    '--download-hypre',</div><div>    '--with-c2html',</div><div>    '--with-mpi-dir=/usr',</div><div>    '--with-umfpack-dir=/usr',</div>
<div>    '--with-parmetis-dir=/usr',</div><div>    '--with-single-library=0',</div><div>    '--download-scalapack',</div><div>    '--with-java-dir=/usr',</div><div>    '--with-lgrind',</div>
<div>    '--download-mumps',</div><div>    'PETSC_ARCH=ompi',</div><div>    '--download-superlu',</div><div>    '--download-scotch',</div><div>    '--download-spai',</div><div>    '--with-shared-libraries',</div>
<div>  ]</div><div>  configure.petsc_configure(configure_options)</div></div><div><br></div>