<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[116384] trunk/dports/math</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="https://trac.macports.org/changeset/116384">116384</a></dd>
<dt>Author</dt> <dd>sean@macports.org</dd>
<dt>Date</dt> <dd>2014-01-23 12:15:16 -0800 (Thu, 23 Jan 2014)</dd>
</dl>

<h3>Log Message</h3>
<pre>sundials: add new port; closes #35342</pre>

<h3>Added Paths</h3>
<ul>
<li>trunk/dports/math/sundials/</li>
<li><a href="#trunkdportsmathsundialsPortfile">trunk/dports/math/sundials/Portfile</a></li>
<li>trunk/dports/math/sundials/files/</li>
<li><a href="#trunkdportsmathsundialsfilessundials250_destdirpatch">trunk/dports/math/sundials/files/sundials-2.5.0_destdir.patch</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkdportsmathsundialsPortfile"></a>
<div class="addfile"><h4>Added: trunk/dports/math/sundials/Portfile (0 => 116384)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/math/sundials/Portfile                                (rev 0)
+++ trunk/dports/math/sundials/Portfile        2014-01-23 20:15:16 UTC (rev 116384)
</span><span class="lines">@@ -0,0 +1,89 @@
</span><ins>+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id:
+
+PortSystem          1.0
+PortGroup           mpi 1.0
+
+mpi.setup
+
+name                sundials
+version             2.5.0
+categories          math devel
+license             bsd
+platforms           darwin
+maintainers         sean openmaintainer
+
+description         SUite of Nonlinear and DIfferential/ALgebraic equation Solvers
+
+long_description    SUNDIALS consists of the following five solvers: CVODE\
+                    solves initial value problems for ordinary differential\
+                    equation (ODE) systems.  CVODES solves ODE systems and\
+                    includes sensitivity analysis capabilities (forward and\
+                    adjoint).  IDA solves initial value problems for\
+                    differential-algebraic equation (DAE) systems.  IDAS solves\
+                    DAE systems and includes sensitivity analysis capabilities\
+                    (forward and adjoint).  KINSOL solves nonlinear algebraic\
+                    systems.
+
+homepage            https://computation.llnl.gov/casc/sundials/main.html
+master_sites        http://www.llnl.gov/casc/sundials/download/code/
+
+checksums           rmd160  c489fcb114f6846c7d5aef2d0eb096cb96f3fbc9 \
+                    sha256  9935760931fa6539edd0741acbcf4986770426fd5ea40e50ad4ebed0fc77b0d3
+
+patchfiles          sundials-2.5.0_destdir.patch
+patch.pre_args      -p1
+
+configure.args      --enable-shared \
+                    --disable-mpi \
+                    --without-blas \
+                    --without-lapack
+
+if {![mpi_variant_isset]} {
+    default_variants      +mpich
+}
+
+if {![fortran_variant_isset] &amp;&amp; ![mpi_variant_isset]} {
+    if {[variant_isset atlas]} {
+        ui_error &quot;Atlas requires a fortran compiler&quot;
+        return -code error &quot;no fortran compiler selected&quot;
+    }
+
+    # ensure that sundials doesn't try to find a fortran compiler in the user's
+    # path
+    pre-configure {
+        configure.f77
+        configure.f90
+        configure.fc
+    }
+} else {
+    configure.args-delete --without-blas --without-lapack
+    if {![variant_isset atlas]} {
+        configure.args-append --with-blas=&quot;-framework Accelerate&quot; \
+                              --with-lapack=&quot;-framework Accelerate&quot;
+    }
+}
+
+pre-configure {
+    if {[mpi_variant_isset]} {
+        configure.args-delete --disable-mpi
+        configure.args-append --enable-mpi \
+                              --with-mpicc=${mpi.cc} \
+                              --with-mpif77=${mpi.fc}
+    }
+}
+
+# gcc is hardcoded in libtool, so we change it to use the CC it found from
+# configure
+post-configure {
+    reinplace &quot;s,`gcc,`\$CC,&quot; ${worksrcpath}/libtool
+}
+
+variant atlas description {build with atlas (requires a fortran compiler)} {
+    depends_lib-append port:atlas
+    configure.args-append --with-blas=${prefix}/lib/libtatlas.dylib
+    configure.args-append --with-lapack=${prefix}/lib/libtatlas.dylib
+}
+
+livecheck.type      regex
+livecheck.regex     v.(\[0-9.\]+)
</ins></span></pre></div>
<a id="trunkdportsmathsundialsfilessundials250_destdirpatch"></a>
<div class="addfile"><h4>Added: trunk/dports/math/sundials/files/sundials-2.5.0_destdir.patch (0 => 116384)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/math/sundials/files/sundials-2.5.0_destdir.patch                                (rev 0)
+++ trunk/dports/math/sundials/files/sundials-2.5.0_destdir.patch        2014-01-23 20:15:16 UTC (rev 116384)
</span><span class="lines">@@ -0,0 +1,1320 @@
</span><ins>+diff -ur sundials-2.5.0_orig/Makefile.in sundials-2.5.0_patched/Makefile.in
+--- sundials-2.5.0_orig/Makefile.in        2012-04-11 18:31:04.000000000 -0600
++++ sundials-2.5.0_patched/Makefile.in        2012-08-20 10:05:22.000000000 -0600
+@@ -58,10 +58,10 @@
+          done

+ install:
+-        $(mkinstalldirs) $(bindir)
+-        $(INSTALL_PROG)  $(top_builddir)/bin/sundials-config    $(bindir)/
++        $(mkinstalldirs) $(DESTDIR)$(bindir)
++        $(INSTALL_PROG) $(top_builddir)/bin/sundials-config $(DESTDIR)$(bindir)/
+         @if test -f $(top_builddir)/bin/fortran-update.sh ; then              \
+-          $(INSTALL_PROG)  $(top_builddir)/bin/fortran-update.sh  $(bindir)/ ;\
++          $(INSTALL_PROG)  $(top_builddir)/bin/fortran-update.sh  $(DESTDIR)$(bindir)/ ;\
+         fi
+         @for i in ${SLV_MODULES} ; do                                         \
+            if test -d $${i} ; then                                            \
+@@ -106,8 +106,8 @@
+          done

+ uninstall:
+-        rm -f $(bindir)/sundials-config
+-        rm -f $(bindir)/fortran-update.sh
++        rm -f $(DESTDIR)$(bindir)/sundials-config
++        rm -f $(DESTDIR)$(bindir)/fortran-update.sh
+         @for i in ${ALL_MODULES} ; do       \
+            if test -d $${i} ; then          \
+              echo &quot;----------------------&quot;; \
+diff -ur sundials-2.5.0_orig/examples/cvode/fcmix_parallel/Makefile.in sundials-2.5.0_patched/examples/cvode/fcmix_parallel/Makefile.in
+--- sundials-2.5.0_orig/examples/cvode/fcmix_parallel/Makefile.in        2012-04-11 18:31:13.000000000 -0600
++++ sundials-2.5.0_patched/examples/cvode/fcmix_parallel/Makefile.in        2012-08-20 11:41:31.000000000 -0600
+@@ -79,23 +79,23 @@
+         done

+ install:
+-        $(mkinstalldirs) $(EXS_INSTDIR)/cvode/fcmix_parallel
+-        $(INSTALL_FILE) Makefile_ex  $(EXS_INSTDIR)/cvode/fcmix_parallel/Makefile
+-        $(INSTALL_FILE) $(top_srcdir)/examples/cvode/fcmix_parallel/README  $(EXS_INSTDIR)/cvode/fcmix_parallel/
++        $(mkinstalldirs) $(DESTDIR)$(EXS_INSTDIR)/cvode/fcmix_parallel
++        $(INSTALL_FILE) Makefile_ex  $(DESTDIR)$(EXS_INSTDIR)/cvode/fcmix_parallel/Makefile
++        $(INSTALL_FILE) $(top_srcdir)/examples/cvode/fcmix_parallel/README  $(DESTDIR)$(EXS_INSTDIR)/cvode/fcmix_parallel/
+         for i in ${EXAMPLES} ; do \
+-          $(INSTALL_FILE) $(top_srcdir)/examples/cvode/fcmix_parallel/$${i}.f   $(EXS_INSTDIR)/cvode/fcmix_parallel/ ; \
+-          $(INSTALL_FILE) $(top_srcdir)/examples/cvode/fcmix_parallel/$${i}.out $(EXS_INSTDIR)/cvode/fcmix_parallel/ ; \
++          $(INSTALL_FILE) $(top_srcdir)/examples/cvode/fcmix_parallel/$${i}.f   $(DESTDIR)$(EXS_INSTDIR)/cvode/fcmix_parallel/ ; \
++          $(INSTALL_FILE) $(top_srcdir)/examples/cvode/fcmix_parallel/$${i}.out $(DESTDIR)$(EXS_INSTDIR)/cvode/fcmix_parallel/ ; \
+         done

+ uninstall:
+-        rm -f $(EXS_INSTDIR)/cvode/fcmix_parallel/Makefile
+-        rm -f $(EXS_INSTDIR)/cvode/fcmix_parallel/README
++        rm -f $(DESTDIR)$(EXS_INSTDIR)/cvode/fcmix_parallel/Makefile
++        rm -f $(DESTDIR)$(EXS_INSTDIR)/cvode/fcmix_parallel/README
+         for i in ${EXAMPLES} ; do \
+-          rm -f $(EXS_INSTDIR)/cvode/fcmix_parallel/$${i}.f ; \
+-          rm -f $(EXS_INSTDIR)/cvode/fcmix_parallel/$${i}.out ; \
++          rm -f $(DESTDIR)$(EXS_INSTDIR)/cvode/fcmix_parallel/$${i}.f ; \
++          rm -f $(DESTDIR)$(EXS_INSTDIR)/cvode/fcmix_parallel/$${i}.out ; \
+         done
+-        $(rminstalldirs) $(EXS_INSTDIR)/cvode/fcmix_parallel
+-        $(rminstalldirs) $(EXS_INSTDIR)/cvode
++        $(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/cvode/fcmix_parallel
++        $(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/cvode

+ clean:
+         rm -rf .libs
+diff -ur sundials-2.5.0_orig/examples/cvode/fcmix_serial/Makefile.in sundials-2.5.0_patched/examples/cvode/fcmix_serial/Makefile.in
+--- sundials-2.5.0_orig/examples/cvode/fcmix_serial/Makefile.in        2012-04-11 18:31:13.000000000 -0600
++++ sundials-2.5.0_patched/examples/cvode/fcmix_serial/Makefile.in        2012-08-20 11:41:31.000000000 -0600
+@@ -88,35 +88,35 @@


+ install:
+-        $(mkinstalldirs) $(EXS_INSTDIR)/cvode/fcmix_serial
+-        $(INSTALL_FILE) Makefile_ex $(EXS_INSTDIR)/cvode/fcmix_serial/Makefile
+-        $(INSTALL_FILE) $(top_srcdir)/examples/cvode/fcmix_serial/README $(EXS_INSTDIR)/cvode/fcmix_serial/
++        $(mkinstalldirs) $(DESTDIR)$(EXS_INSTDIR)/cvode/fcmix_serial
++        $(INSTALL_FILE) Makefile_ex $(DESTDIR)$(EXS_INSTDIR)/cvode/fcmix_serial/Makefile
++        $(INSTALL_FILE) $(top_srcdir)/examples/cvode/fcmix_serial/README $(DESTDIR)$(EXS_INSTDIR)/cvode/fcmix_serial/
+         for i in ${EXAMPLES} ; do \
+-          $(INSTALL_FILE) $(top_srcdir)/examples/cvode/fcmix_serial/$${i}.f   $(EXS_INSTDIR)/cvode/fcmix_serial/ ; \
+-          $(INSTALL_FILE) $(top_srcdir)/examples/cvode/fcmix_serial/$${i}.out $(EXS_INSTDIR)/cvode/fcmix_serial/ ; \
++          $(INSTALL_FILE) $(top_srcdir)/examples/cvode/fcmix_serial/$${i}.f   $(DESTDIR)$(EXS_INSTDIR)/cvode/fcmix_serial/ ; \
++          $(INSTALL_FILE) $(top_srcdir)/examples/cvode/fcmix_serial/$${i}.out $(DESTDIR)$(EXS_INSTDIR)/cvode/fcmix_serial/ ; \
+         done
+         @if test &quot;X${LAPACK_ENABLED}&quot; = &quot;Xyes&quot;; then \
+         for i in ${EXAMPLES_BL} ; do \
+-          $(INSTALL_FILE) $(top_srcdir)/examples/cvode/fcmix_serial/$${i}.f   $(EXS_INSTDIR)/cvode/fcmix_serial/ ; \
+-          $(INSTALL_FILE) $(top_srcdir)/examples/cvode/fcmix_serial/$${i}.out $(EXS_INSTDIR)/cvode/fcmix_serial/ ; \
++          $(INSTALL_FILE) $(top_srcdir)/examples/cvode/fcmix_serial/$${i}.f   $(DESTDIR)$(EXS_INSTDIR)/cvode/fcmix_serial/ ; \
++          $(INSTALL_FILE) $(top_srcdir)/examples/cvode/fcmix_serial/$${i}.out $(DESTDIR)$(EXS_INSTDIR)/cvode/fcmix_serial/ ; \
+         done ; \
+         fi

+ uninstall:
+-        rm -f $(EXS_INSTDIR)/cvode/fcmix_serial/Makefile
+-        rm -f $(EXS_INSTDIR)/cvode/fcmix_serial/README
++        rm -f $(DESTDIR)$(EXS_INSTDIR)/cvode/fcmix_serial/Makefile
++        rm -f $(DESTDIR)$(EXS_INSTDIR)/cvode/fcmix_serial/README
+         for i in ${EXAMPLES} ; do \
+-          rm -f $(EXS_INSTDIR)/cvode/fcmix_serial/$${i}.f ; \
+-          rm -f $(EXS_INSTDIR)/cvode/fcmix_serial/$${i}.out ; \
++          rm -f $(DESTDIR)$(EXS_INSTDIR)/cvode/fcmix_serial/$${i}.f ; \
++          rm -f $(DESTDIR)$(EXS_INSTDIR)/cvode/fcmix_serial/$${i}.out ; \
+         done
+         @if test &quot;X${LAPACK_ENABLED}&quot; = &quot;Xyes&quot;; then \
+         for i in ${EXAMPLES_BL} ; do \
+-          rm -f $(EXS_INSTDIR)/cvode/fcmix_serial/$${i}.f ; \
+-          rm -f $(EXS_INSTDIR)/cvode/fcmix_serial/$${i}.out ; \
++          rm -f $(DESTDIR)$(EXS_INSTDIR)/cvode/fcmix_serial/$${i}.f ; \
++          rm -f $(DESTDIR)$(EXS_INSTDIR)/cvode/fcmix_serial/$${i}.out ; \
+         done ; \
+         fi
+-        $(rminstalldirs) $(EXS_INSTDIR)/cvode/fcmix_serial
+-        $(rminstalldirs) $(EXS_INSTDIR)/cvode
++        $(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/cvode/fcmix_serial
++        $(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/cvode

+ clean:
+         rm -rf .libs
+diff -ur sundials-2.5.0_orig/examples/cvode/parallel/Makefile.in sundials-2.5.0_patched/examples/cvode/parallel/Makefile.in
+--- sundials-2.5.0_orig/examples/cvode/parallel/Makefile.in        2012-04-11 18:31:13.000000000 -0600
++++ sundials-2.5.0_patched/examples/cvode/parallel/Makefile.in        2012-08-20 11:41:31.000000000 -0600
+@@ -77,23 +77,23 @@
+         done

+ install:
+-        $(mkinstalldirs) $(EXS_INSTDIR)/cvode/parallel
+-        $(INSTALL_FILE) Makefile_ex $(EXS_INSTDIR)/cvode/parallel/Makefile
+-        $(INSTALL_FILE) $(top_srcdir)/examples/cvode/parallel/README $(EXS_INSTDIR)/cvode/parallel/
++        $(mkinstalldirs) $(DESTDIR)$(EXS_INSTDIR)/cvode/parallel
++        $(INSTALL_FILE) Makefile_ex $(DESTDIR)$(EXS_INSTDIR)/cvode/parallel/Makefile
++        $(INSTALL_FILE) $(top_srcdir)/examples/cvode/parallel/README $(DESTDIR)$(EXS_INSTDIR)/cvode/parallel/
+         for i in ${EXAMPLES} ; do \
+-          $(INSTALL_FILE) $(top_srcdir)/examples/cvode/parallel/$${i}.c   $(EXS_INSTDIR)/cvode/parallel/ ; \
+-          $(INSTALL_FILE) $(top_srcdir)/examples/cvode/parallel/$${i}.out $(EXS_INSTDIR)/cvode/parallel/ ; \
++          $(INSTALL_FILE) $(top_srcdir)/examples/cvode/parallel/$${i}.c   $(DESTDIR)$(EXS_INSTDIR)/cvode/parallel/ ; \
++          $(INSTALL_FILE) $(top_srcdir)/examples/cvode/parallel/$${i}.out $(DESTDIR)$(EXS_INSTDIR)/cvode/parallel/ ; \
+         done

+ uninstall:
+-        rm -f $(EXS_INSTDIR)/cvode/parallel/Makefile
+-        rm -f $(EXS_INSTDIR)/cvode/parallel/README
++        rm -f $(DESTDIR)$(EXS_INSTDIR)/cvode/parallel/Makefile
++        rm -f $(DESTDIR)$(EXS_INSTDIR)/cvode/parallel/README
+         for i in ${EXAMPLES} ; do \
+-          rm -f $(EXS_INSTDIR)/cvode/parallel/$${i}.c ; \
+-          rm -f $(EXS_INSTDIR)/cvode/parallel/$${i}.out ; \
++          rm -f $(DESTDIR)$(EXS_INSTDIR)/cvode/parallel/$${i}.c ; \
++          rm -f $(DESTDIR)$(EXS_INSTDIR)/cvode/parallel/$${i}.out ; \
+         done
+-        $(rminstalldirs) $(EXS_INSTDIR)/cvode/parallel
+-        $(rminstalldirs) $(EXS_INSTDIR)/cvode
++        $(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/cvode/parallel
++        $(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/cvode

+ clean:
+         rm -rf .libs
+diff -ur sundials-2.5.0_orig/examples/cvode/serial/Makefile.in sundials-2.5.0_patched/examples/cvode/serial/Makefile.in
+--- sundials-2.5.0_orig/examples/cvode/serial/Makefile.in        2012-04-11 18:31:13.000000000 -0600
++++ sundials-2.5.0_patched/examples/cvode/serial/Makefile.in        2012-08-20 11:41:31.000000000 -0600
+@@ -91,35 +91,35 @@
+         fi

+ install:
+-        $(mkinstalldirs) $(EXS_INSTDIR)/cvode/serial
+-        $(INSTALL_FILE) Makefile_ex $(EXS_INSTDIR)/cvode/serial/Makefile
+-        $(INSTALL_FILE) $(top_srcdir)/examples/cvode/serial/README $(EXS_INSTDIR)/cvode/serial/
++        $(mkinstalldirs) $(DESTDIR)$(EXS_INSTDIR)/cvode/serial
++        $(INSTALL_FILE) Makefile_ex $(DESTDIR)$(EXS_INSTDIR)/cvode/serial/Makefile
++        $(INSTALL_FILE) $(top_srcdir)/examples/cvode/serial/README $(DESTDIR)$(EXS_INSTDIR)/cvode/serial/
+         for i in ${EXAMPLES} ; do \
+-          $(INSTALL_FILE) $(top_srcdir)/examples/cvode/serial/$${i}.c   $(EXS_INSTDIR)/cvode/serial/ ; \
+-          $(INSTALL_FILE) $(top_srcdir)/examples/cvode/serial/$${i}.out $(EXS_INSTDIR)/cvode/serial/ ; \
++          $(INSTALL_FILE) $(top_srcdir)/examples/cvode/serial/$${i}.c   $(DESTDIR)$(EXS_INSTDIR)/cvode/serial/ ; \
++          $(INSTALL_FILE) $(top_srcdir)/examples/cvode/serial/$${i}.out $(DESTDIR)$(EXS_INSTDIR)/cvode/serial/ ; \
+         done
+         @if test &quot;X${LAPACK_ENABLED}&quot; = &quot;Xyes&quot;; then \
+         for i in ${EXAMPLES_BL} ; do \
+-          $(INSTALL_FILE) $(top_srcdir)/examples/cvode/serial/$${i}.c   $(EXS_INSTDIR)/cvode/serial/ ; \
+-          $(INSTALL_FILE) $(top_srcdir)/examples/cvode/serial/$${i}.out $(EXS_INSTDIR)/cvode/serial/ ; \
++          $(INSTALL_FILE) $(top_srcdir)/examples/cvode/serial/$${i}.c   $(DESTDIR)$(EXS_INSTDIR)/cvode/serial/ ; \
++          $(INSTALL_FILE) $(top_srcdir)/examples/cvode/serial/$${i}.out $(DESTDIR)$(EXS_INSTDIR)/cvode/serial/ ; \
+         done ; \
+         fi

+ uninstall:
+-        rm -f $(EXS_INSTDIR)/cvode/serial/Makefile
+-        rm -f $(EXS_INSTDIR)/cvode/serial/README
++        rm -f $(DESTDIR)$(EXS_INSTDIR)/cvode/serial/Makefile
++        rm -f $(DESTDIR)$(EXS_INSTDIR)/cvode/serial/README
+         for i in ${EXAMPLES} ; do \
+-          rm -f $(EXS_INSTDIR)/cvode/serial/$${i}.c ; \
+-          rm -f $(EXS_INSTDIR)/cvode/serial/$${i}.out ; \
++          rm -f $(DESTDIR)$(EXS_INSTDIR)/cvode/serial/$${i}.c ; \
++          rm -f $(DESTDIR)$(EXS_INSTDIR)/cvode/serial/$${i}.out ; \
+         done
+         @if test &quot;X${LAPACK_ENABLED}&quot; = &quot;Xyes&quot;; then \
+         for i in ${EXAMPLES_BL} ; do \
+-          rm -f $(EXS_INSTDIR)/cvode/serial/$${i}.c ; \
+-          rm -f $(EXS_INSTDIR)/cvode/serial/$${i}.out ; \
++          rm -f $(DESTDIR)$(EXS_INSTDIR)/cvode/serial/$${i}.c ; \
++          rm -f $(DESTDIR)$(EXS_INSTDIR)/cvode/serial/$${i}.out ; \
+         done ; \
+         fi
+-        $(rminstalldirs) $(EXS_INSTDIR)/cvode/serial
+-        $(rminstalldirs) $(EXS_INSTDIR)/cvode
++        $(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/cvode/serial
++        $(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/cvode

+ clean:
+         rm -rf .libs
+diff -ur sundials-2.5.0_orig/examples/cvodes/parallel/Makefile.in sundials-2.5.0_patched/examples/cvodes/parallel/Makefile.in
+--- sundials-2.5.0_orig/examples/cvodes/parallel/Makefile.in        2012-04-11 18:31:37.000000000 -0600
++++ sundials-2.5.0_patched/examples/cvodes/parallel/Makefile.in        2012-08-20 11:41:31.000000000 -0600
+@@ -80,23 +80,23 @@
+         done

+ install:
+-        $(mkinstalldirs) $(EXS_INSTDIR)/cvodes/parallel
+-        $(INSTALL_FILE) Makefile_ex $(EXS_INSTDIR)/cvodes/parallel/Makefile
+-        $(INSTALL_FILE) $(top_srcdir)/examples/cvodes/parallel/README $(EXS_INSTDIR)/cvodes/parallel/
++        $(mkinstalldirs) $(DESTDIR)$(EXS_INSTDIR)/cvodes/parallel
++        $(INSTALL_FILE) Makefile_ex $(DESTDIR)$(EXS_INSTDIR)/cvodes/parallel/Makefile
++        $(INSTALL_FILE) $(top_srcdir)/examples/cvodes/parallel/README $(DESTDIR)$(EXS_INSTDIR)/cvodes/parallel/
+         for i in ${EXAMPLES} ; do \
+-          $(INSTALL_FILE) $(top_srcdir)/examples/cvodes/parallel/$${i}.c   $(EXS_INSTDIR)/cvodes/parallel/ ; \
+-          $(INSTALL_FILE) $(top_srcdir)/examples/cvodes/parallel/$${i}.out $(EXS_INSTDIR)/cvodes/parallel/ ; \
++          $(INSTALL_FILE) $(top_srcdir)/examples/cvodes/parallel/$${i}.c   $(DESTDIR)$(EXS_INSTDIR)/cvodes/parallel/ ; \
++          $(INSTALL_FILE) $(top_srcdir)/examples/cvodes/parallel/$${i}.out $(DESTDIR)$(EXS_INSTDIR)/cvodes/parallel/ ; \
+         done

+ uninstall:
+-        rm -f $(EXS_INSTDIR)/cvodes/parallel/Makefile
+-        rm -f $(EXS_INSTDIR)/cvodes/parallel/README
++        rm -f $(DESTDIR)$(EXS_INSTDIR)/cvodes/parallel/Makefile
++        rm -f $(DESTDIR)$(EXS_INSTDIR)/cvodes/parallel/README
+         for i in ${EXAMPLES} ; do \
+-          rm -f $(EXS_INSTDIR)/cvodes/parallel/$${i}.c ; \
+-          rm -f $(EXS_INSTDIR)/cvodes/parallel/$${i}.out ; \
++          rm -f $(DESTDIR)$(EXS_INSTDIR)/cvodes/parallel/$${i}.c ; \
++          rm -f $(DESTDIR)$(EXS_INSTDIR)/cvodes/parallel/$${i}.out ; \
+         done
+-        $(rminstalldirs) $(EXS_INSTDIR)/cvodes/parallel
+-        $(rminstalldirs) $(EXS_INSTDIR)/cvodes
++        $(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/cvodes/parallel
++        $(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/cvodes

+ clean:
+         rm -rf .libs
+diff -ur sundials-2.5.0_orig/examples/cvodes/serial/Makefile.in sundials-2.5.0_patched/examples/cvodes/serial/Makefile.in
+--- sundials-2.5.0_orig/examples/cvodes/serial/Makefile.in        2012-04-11 18:31:37.000000000 -0600
++++ sundials-2.5.0_patched/examples/cvodes/serial/Makefile.in        2012-08-20 11:41:31.000000000 -0600
+@@ -98,35 +98,35 @@
+         fi

+ install:
+-        $(mkinstalldirs) $(EXS_INSTDIR)/cvodes/serial
+-        $(INSTALL_FILE) Makefile_ex $(EXS_INSTDIR)/cvodes/serial/Makefile
+-        $(INSTALL_FILE) $(top_srcdir)/examples/cvodes/serial/README $(EXS_INSTDIR)/cvodes/serial/
++        $(mkinstalldirs) $(DESTDIR)$(EXS_INSTDIR)/cvodes/serial
++        $(INSTALL_FILE) Makefile_ex $(DESTDIR)$(EXS_INSTDIR)/cvodes/serial/Makefile
++        $(INSTALL_FILE) $(top_srcdir)/examples/cvodes/serial/README $(DESTDIR)$(EXS_INSTDIR)/cvodes/serial/
+         for i in ${EXAMPLES} ; do \
+-          $(INSTALL_FILE) $(top_srcdir)/examples/cvodes/serial/$${i}.c   $(EXS_INSTDIR)/cvodes/serial/ ; \
+-          $(INSTALL_FILE) $(top_srcdir)/examples/cvodes/serial/$${i}.out $(EXS_INSTDIR)/cvodes/serial/ ; \
++          $(INSTALL_FILE) $(top_srcdir)/examples/cvodes/serial/$${i}.c   $(DESTDIR)$(EXS_INSTDIR)/cvodes/serial/ ; \
++          $(INSTALL_FILE) $(top_srcdir)/examples/cvodes/serial/$${i}.out $(DESTDIR)$(EXS_INSTDIR)/cvodes/serial/ ; \
+         done
+         @if test &quot;X${LAPACK_ENABLED}&quot; = &quot;Xyes&quot;; then \
+         for i in ${EXAMPLES_BL} ; do \
+-          $(INSTALL_FILE) $(top_srcdir)/examples/cvodes/serial/$${i}.c   $(EXS_INSTDIR)/cvodes/serial/ ; \
+-          $(INSTALL_FILE) $(top_srcdir)/examples/cvodes/serial/$${i}.out $(EXS_INSTDIR)/cvodes/serial/ ; \
++          $(INSTALL_FILE) $(top_srcdir)/examples/cvodes/serial/$${i}.c   $(DESTDIR)$(EXS_INSTDIR)/cvodes/serial/ ; \
++          $(INSTALL_FILE) $(top_srcdir)/examples/cvodes/serial/$${i}.out $(DESTDIR)$(EXS_INSTDIR)/cvodes/serial/ ; \
+         done ; \
+         fi

+ uninstall:
+-        rm -f $(EXS_INSTDIR)/cvodes/serial/Makefile
+-        rm -f $(EXS_INSTDIR)/cvodes/serial/README
++        rm -f $(DESTDIR)$(EXS_INSTDIR)/cvodes/serial/Makefile
++        rm -f $(DESTDIR)$(EXS_INSTDIR)/cvodes/serial/README
+         for i in ${EXAMPLES} ; do \
+-          rm -f $(EXS_INSTDIR)/cvodes/serial/$${i}.c ; \
+-          rm -f $(EXS_INSTDIR)/cvodes/serial/$${i}.out ; \
++          rm -f $(DESTDIR)$(EXS_INSTDIR)/cvodes/serial/$${i}.c ; \
++          rm -f $(DESTDIR)$(EXS_INSTDIR)/cvodes/serial/$${i}.out ; \
+         done
+         @if test &quot;X${LAPACK_ENABLED}&quot; = &quot;Xyes&quot;; then \
+         for i in ${EXAMPLES_BL} ; do \
+-          rm -f $(EXS_INSTDIR)/cvodes/serial/$${i}.c ; \
+-          rm -f $(EXS_INSTDIR)/cvodes/serial/$${i}.out ; \
++          rm -f $(DESTDIR)$(EXS_INSTDIR)/cvodes/serial/$${i}.c ; \
++          rm -f $(DESTDIR)$(EXS_INSTDIR)/cvodes/serial/$${i}.out ; \
+         done ; \
+         fi
+-        $(rminstalldirs) $(EXS_INSTDIR)/cvodes/serial
+-        $(rminstalldirs) $(EXS_INSTDIR)/cvodes
++        $(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/cvodes/serial
++        $(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/cvodes

+ clean:
+         rm -rf .libs
+diff -ur sundials-2.5.0_orig/examples/ida/fcmix_parallel/Makefile.in sundials-2.5.0_patched/examples/ida/fcmix_parallel/Makefile.in
+--- sundials-2.5.0_orig/examples/ida/fcmix_parallel/Makefile.in        2012-04-11 18:32:13.000000000 -0600
++++ sundials-2.5.0_patched/examples/ida/fcmix_parallel/Makefile.in        2012-08-20 11:41:31.000000000 -0600
+@@ -77,23 +77,23 @@
+         done

+ install:
+-        $(mkinstalldirs) $(EXS_INSTDIR)/ida/fcmix_parallel
+-        $(INSTALL_FILE) Makefile_ex  $(EXS_INSTDIR)/ida/fcmix_parallel/Makefile
+-        $(INSTALL_FILE) $(top_srcdir)/examples/ida/fcmix_parallel/README  $(EXS_INSTDIR)/ida/fcmix_parallel/
++        $(mkinstalldirs) $(DESTDIR)$(EXS_INSTDIR)/ida/fcmix_parallel
++        $(INSTALL_FILE) Makefile_ex  $(DESTDIR)$(EXS_INSTDIR)/ida/fcmix_parallel/Makefile
++        $(INSTALL_FILE) $(top_srcdir)/examples/ida/fcmix_parallel/README  $(DESTDIR)$(EXS_INSTDIR)/ida/fcmix_parallel/
+         for i in ${EXAMPLES} ; do \
+-          $(INSTALL_FILE) $(top_srcdir)/examples/ida/fcmix_parallel/$${i}.f   $(EXS_INSTDIR)/ida/fcmix_parallel/ ; \
+-          $(INSTALL_FILE) $(top_srcdir)/examples/ida/fcmix_parallel/$${i}.out $(EXS_INSTDIR)/ida/fcmix_parallel/ ; \
++          $(INSTALL_FILE) $(top_srcdir)/examples/ida/fcmix_parallel/$${i}.f   $(DESTDIR)$(EXS_INSTDIR)/ida/fcmix_parallel/ ; \
++          $(INSTALL_FILE) $(top_srcdir)/examples/ida/fcmix_parallel/$${i}.out $(DESTDIR)$(EXS_INSTDIR)/ida/fcmix_parallel/ ; \
+         done

+ uninstall:
+-        rm -f $(EXS_INSTDIR)/ida/fcmix_parallel/Makefile
+-        rm -f $(EXS_INSTDIR)/ida/fcmix_parallel/README
++        rm -f $(DESTDIR)$(EXS_INSTDIR)/ida/fcmix_parallel/Makefile
++        rm -f $(DESTDIR)$(EXS_INSTDIR)/ida/fcmix_parallel/README
+         for i in ${EXAMPLES} ; do \
+-          rm -f $(EXS_INSTDIR)/ida/fcmix_parallel/$${i}.f ; \
+-          rm -f $(EXS_INSTDIR)/ida/fcmix_parallel/$${i}.out ; \
++          rm -f $(DESTDIR)$(EXS_INSTDIR)/ida/fcmix_parallel/$${i}.f ; \
++          rm -f $(DESTDIR)$(EXS_INSTDIR)/ida/fcmix_parallel/$${i}.out ; \
+         done
+-        $(rminstalldirs) $(EXS_INSTDIR)/ida/fcmix_parallel
+-        $(rminstalldirs) $(EXS_INSTDIR)/ida
++        $(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/ida/fcmix_parallel
++        $(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/ida

+ clean:
+         rm -rf .libs
+diff -ur sundials-2.5.0_orig/examples/ida/fcmix_serial/Makefile.in sundials-2.5.0_patched/examples/ida/fcmix_serial/Makefile.in
+--- sundials-2.5.0_orig/examples/ida/fcmix_serial/Makefile.in        2012-04-11 18:32:13.000000000 -0600
++++ sundials-2.5.0_patched/examples/ida/fcmix_serial/Makefile.in        2012-08-20 11:41:31.000000000 -0600
+@@ -85,35 +85,35 @@


+ install:
+-        $(mkinstalldirs) $(EXS_INSTDIR)/ida/fcmix_serial
+-        $(INSTALL_FILE) Makefile_ex $(EXS_INSTDIR)/ida/fcmix_serial/Makefile
+-        $(INSTALL_FILE) $(top_srcdir)/examples/ida/fcmix_serial/README $(EXS_INSTDIR)/ida/fcmix_serial/
++        $(mkinstalldirs) $(DESTDIR)$(EXS_INSTDIR)/ida/fcmix_serial
++        $(INSTALL_FILE) Makefile_ex $(DESTDIR)$(EXS_INSTDIR)/ida/fcmix_serial/Makefile
++        $(INSTALL_FILE) $(top_srcdir)/examples/ida/fcmix_serial/README $(DESTDIR)$(EXS_INSTDIR)/ida/fcmix_serial/
+         for i in ${EXAMPLES} ; do \
+-          $(INSTALL_FILE) $(top_srcdir)/examples/ida/fcmix_serial/$${i}.f   $(EXS_INSTDIR)/ida/fcmix_serial/ ; \
+-          $(INSTALL_FILE) $(top_srcdir)/examples/ida/fcmix_serial/$${i}.out $(EXS_INSTDIR)/ida/fcmix_serial/ ; \
++          $(INSTALL_FILE) $(top_srcdir)/examples/ida/fcmix_serial/$${i}.f   $(DESTDIR)$(EXS_INSTDIR)/ida/fcmix_serial/ ; \
++          $(INSTALL_FILE) $(top_srcdir)/examples/ida/fcmix_serial/$${i}.out $(DESTDIR)$(EXS_INSTDIR)/ida/fcmix_serial/ ; \
+         done
+         @if test &quot;X${LAPACK_ENABLED}&quot; = &quot;Xyes&quot;; then \
+         for i in ${EXAMPLES_BL} ; do \
+-          $(INSTALL_FILE) $(top_srcdir)/examples/ida/fcmix_serial/$${i}.f   $(EXS_INSTDIR)/ida/fcmix_serial/ ; \
+-          $(INSTALL_FILE) $(top_srcdir)/examples/ida/fcmix_serial/$${i}.out $(EXS_INSTDIR)/ida/fcmix_serial/ ; \
++          $(INSTALL_FILE) $(top_srcdir)/examples/ida/fcmix_serial/$${i}.f   $(DESTDIR)$(EXS_INSTDIR)/ida/fcmix_serial/ ; \
++          $(INSTALL_FILE) $(top_srcdir)/examples/ida/fcmix_serial/$${i}.out $(DESTDIR)$(EXS_INSTDIR)/ida/fcmix_serial/ ; \
+         done ; \
+         fi

+ uninstall:
+-        rm -f $(EXS_INSTDIR)/ida/fcmix_serial/Makefile
+-        rm -f $(EXS_INSTDIR)/ida/fcmix_serial/README
++        rm -f $(DESTDIR)$(EXS_INSTDIR)/ida/fcmix_serial/Makefile
++        rm -f $(DESTDIR)$(EXS_INSTDIR)/ida/fcmix_serial/README
+         for i in ${EXAMPLES} ; do \
+-          rm -f $(EXS_INSTDIR)/ida/fcmix_serial/$${i}.f ; \
+-          rm -f $(EXS_INSTDIR)/ida/fcmix_serial/$${i}.out ; \
++          rm -f $(DESTDIR)$(EXS_INSTDIR)/ida/fcmix_serial/$${i}.f ; \
++          rm -f $(DESTDIR)$(EXS_INSTDIR)/ida/fcmix_serial/$${i}.out ; \
+         done
+         @if test &quot;X${LAPACK_ENABLED}&quot; = &quot;Xyes&quot;; then \
+         for i in ${EXAMPLES_BL} ; do \
+-          rm -f $(EXS_INSTDIR)/ida/fcmix_serial/$${i}.f ; \
+-          rm -f $(EXS_INSTDIR)/ida/fcmix_serial/$${i}.out ; \
++          rm -f $(DESTDIR)$(EXS_INSTDIR)/ida/fcmix_serial/$${i}.f ; \
++          rm -f $(DESTDIR)$(EXS_INSTDIR)/ida/fcmix_serial/$${i}.out ; \
+         done ; \
+         fi
+-        $(rminstalldirs) $(EXS_INSTDIR)/ida/fcmix_serial
+-        $(rminstalldirs) $(EXS_INSTDIR)/ida
++        $(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/ida/fcmix_serial
++        $(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/ida

+ clean:
+         rm -rf .libs
+diff -ur sundials-2.5.0_orig/examples/ida/parallel/Makefile.in sundials-2.5.0_patched/examples/ida/parallel/Makefile.in
+--- sundials-2.5.0_orig/examples/ida/parallel/Makefile.in        2012-04-11 18:32:13.000000000 -0600
++++ sundials-2.5.0_patched/examples/ida/parallel/Makefile.in        2012-08-20 11:41:31.000000000 -0600
+@@ -77,23 +77,23 @@
+         done

+ install:
+-        $(mkinstalldirs) $(EXS_INSTDIR)/ida/parallel
+-        $(INSTALL_FILE) Makefile_ex $(EXS_INSTDIR)/ida/parallel/Makefile
+-        $(INSTALL_FILE) $(top_srcdir)/examples/ida/parallel/README $(EXS_INSTDIR)/ida/parallel/
++        $(mkinstalldirs) $(DESTDIR)$(EXS_INSTDIR)/ida/parallel
++        $(INSTALL_FILE) Makefile_ex $(DESTDIR)$(EXS_INSTDIR)/ida/parallel/Makefile
++        $(INSTALL_FILE) $(top_srcdir)/examples/ida/parallel/README $(DESTDIR)$(EXS_INSTDIR)/ida/parallel/
+         for i in ${EXAMPLES} ; do \
+-          $(INSTALL_FILE) $(top_srcdir)/examples/ida/parallel/$${i}.c   $(EXS_INSTDIR)/ida/parallel/ ; \
+-          $(INSTALL_FILE) $(top_srcdir)/examples/ida/parallel/$${i}.out $(EXS_INSTDIR)/ida/parallel/ ; \
++          $(INSTALL_FILE) $(top_srcdir)/examples/ida/parallel/$${i}.c   $(DESTDIR)$(EXS_INSTDIR)/ida/parallel/ ; \
++          $(INSTALL_FILE) $(top_srcdir)/examples/ida/parallel/$${i}.out $(DESTDIR)$(EXS_INSTDIR)/ida/parallel/ ; \
+         done

+ uninstall:
+-        rm -f $(EXS_INSTDIR)/ida/parallel/Makefile
+-        rm -f $(EXS_INSTDIR)/ida/parallel/README
++        rm -f $(DESTDIR)$(EXS_INSTDIR)/ida/parallel/Makefile
++        rm -f $(DESTDIR)$(EXS_INSTDIR)/ida/parallel/README
+         for i in ${EXAMPLES} ; do \
+-          rm -f $(EXS_INSTDIR)/ida/parallel/$${i}.c ; \
+-          rm -f $(EXS_INSTDIR)/ida/parallel/$${i}.out ; \
++          rm -f $(DESTDIR)$(EXS_INSTDIR)/ida/parallel/$${i}.c ; \
++          rm -f $(DESTDIR)$(EXS_INSTDIR)/ida/parallel/$${i}.out ; \
+         done
+-        $(rminstalldirs) $(EXS_INSTDIR)/ida/parallel
+-        $(rminstalldirs) $(EXS_INSTDIR)/ida
++        $(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/ida/parallel
++        $(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/ida

+ clean:
+         rm -rf .libs
+diff -ur sundials-2.5.0_orig/examples/ida/serial/Makefile.in sundials-2.5.0_patched/examples/ida/serial/Makefile.in
+--- sundials-2.5.0_orig/examples/ida/serial/Makefile.in        2012-04-11 18:32:13.000000000 -0600
++++ sundials-2.5.0_patched/examples/ida/serial/Makefile.in        2012-08-20 11:41:31.000000000 -0600
+@@ -86,35 +86,35 @@
+         fi

+ install:
+-        $(mkinstalldirs) $(EXS_INSTDIR)/ida/serial
+-        $(INSTALL_FILE) Makefile_ex $(EXS_INSTDIR)/ida/serial/Makefile
+-        $(INSTALL_FILE) $(top_srcdir)/examples/ida/serial/README $(EXS_INSTDIR)/ida/serial/
++        $(mkinstalldirs) $(DESTDIR)$(EXS_INSTDIR)/ida/serial
++        $(INSTALL_FILE) Makefile_ex $(DESTDIR)$(EXS_INSTDIR)/ida/serial/Makefile
++        $(INSTALL_FILE) $(top_srcdir)/examples/ida/serial/README $(DESTDIR)$(EXS_INSTDIR)/ida/serial/
+         for i in ${EXAMPLES} ; do \
+-          $(INSTALL_FILE) $(top_srcdir)/examples/ida/serial/$${i}.c   $(EXS_INSTDIR)/ida/serial/ ; \
+-          $(INSTALL_FILE) $(top_srcdir)/examples/ida/serial/$${i}.out $(EXS_INSTDIR)/ida/serial/ ; \
++          $(INSTALL_FILE) $(top_srcdir)/examples/ida/serial/$${i}.c   $(DESTDIR)$(EXS_INSTDIR)/ida/serial/ ; \
++          $(INSTALL_FILE) $(top_srcdir)/examples/ida/serial/$${i}.out $(DESTDIR)$(EXS_INSTDIR)/ida/serial/ ; \
+         done
+         @if test &quot;X${LAPACK_ENABLED}&quot; = &quot;Xyes&quot;; then \
+         for i in ${EXAMPLES_BL} ; do \
+-          $(INSTALL_FILE) $(top_srcdir)/examples/ida/serial/$${i}.c   $(EXS_INSTDIR)/ida/serial/ ; \
+-          $(INSTALL_FILE) $(top_srcdir)/examples/ida/serial/$${i}.out $(EXS_INSTDIR)/ida/serial/ ; \
++          $(INSTALL_FILE) $(top_srcdir)/examples/ida/serial/$${i}.c   $(DESTDIR)$(EXS_INSTDIR)/ida/serial/ ; \
++          $(INSTALL_FILE) $(top_srcdir)/examples/ida/serial/$${i}.out $(DESTDIR)$(EXS_INSTDIR)/ida/serial/ ; \
+         done ; \
+         fi

+ uninstall:
+-        rm -f $(EXS_INSTDIR)/ida/serial/Makefile
+-        rm -f $(EXS_INSTDIR)/ida/serial/README
++        rm -f $(DESTDIR)$(EXS_INSTDIR)/ida/serial/Makefile
++        rm -f $(DESTDIR)$(EXS_INSTDIR)/ida/serial/README
+         for i in ${EXAMPLES} ; do \
+-          rm -f $(EXS_INSTDIR)/ida/serial/$${i}.c ; \
+-          rm -f $(EXS_INSTDIR)/ida/serial/$${i}.out ; \
++          rm -f $(DESTDIR)$(EXS_INSTDIR)/ida/serial/$${i}.c ; \
++          rm -f $(DESTDIR)$(EXS_INSTDIR)/ida/serial/$${i}.out ; \
+         done
+         @if test &quot;X${LAPACK_ENABLED}&quot; = &quot;Xyes&quot;; then \
+         for i in ${EXAMPLES_BL} ; do \
+-          rm -f $(EXS_INSTDIR)/ida/serial/$${i}.c ; \
+-          rm -f $(EXS_INSTDIR)/ida/serial/$${i}.out ; \
++          rm -f $(DESTDIR)$(EXS_INSTDIR)/ida/serial/$${i}.c ; \
++          rm -f $(DESTDIR)$(EXS_INSTDIR)/ida/serial/$${i}.out ; \
+         done ; \
+         fi
+-        $(rminstalldirs) $(EXS_INSTDIR)/ida/serial
+-        $(rminstalldirs) $(EXS_INSTDIR)/ida
++        $(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/ida/serial
++        $(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/ida

+ clean:
+         rm -rf .libs
+diff -ur sundials-2.5.0_orig/examples/idas/parallel/Makefile.in sundials-2.5.0_patched/examples/idas/parallel/Makefile.in
+--- sundials-2.5.0_orig/examples/idas/parallel/Makefile.in        2012-04-11 18:32:34.000000000 -0600
++++ sundials-2.5.0_patched/examples/idas/parallel/Makefile.in        2012-08-20 11:41:31.000000000 -0600
+@@ -81,23 +81,23 @@
+         done

+ install:
+-        $(mkinstalldirs) $(EXS_INSTDIR)/idas/parallel
+-        $(INSTALL_FILE) Makefile_ex $(EXS_INSTDIR)/idas/parallel/Makefile
+-        $(INSTALL_FILE) $(top_srcdir)/examples/idas/parallel/README $(EXS_INSTDIR)/idas/parallel/
++        $(mkinstalldirs) $(DESTDIR)$(EXS_INSTDIR)/idas/parallel
++        $(INSTALL_FILE) Makefile_ex $(DESTDIR)$(EXS_INSTDIR)/idas/parallel/Makefile
++        $(INSTALL_FILE) $(top_srcdir)/examples/idas/parallel/README $(DESTDIR)$(EXS_INSTDIR)/idas/parallel/
+         for i in ${EXAMPLES} ; do \
+-          $(INSTALL_FILE) $(top_srcdir)/examples/idas/parallel/$${i}.c   $(EXS_INSTDIR)/idas/parallel/ ; \
+-          $(INSTALL_FILE) $(top_srcdir)/examples/idas/parallel/$${i}.out $(EXS_INSTDIR)/idas/parallel/ ; \
++          $(INSTALL_FILE) $(top_srcdir)/examples/idas/parallel/$${i}.c   $(DESTDIR)$(EXS_INSTDIR)/idas/parallel/ ; \
++          $(INSTALL_FILE) $(top_srcdir)/examples/idas/parallel/$${i}.out $(DESTDIR)$(EXS_INSTDIR)/idas/parallel/ ; \
+         done

+ uninstall:
+-        rm -f $(EXS_INSTDIR)/idas/parallel/Makefile
+-        rm -f $(EXS_INSTDIR)/idas/parallel/README
++        rm -f $(DESTDIR)$(EXS_INSTDIR)/idas/parallel/Makefile
++        rm -f $(DESTDIR)$(EXS_INSTDIR)/idas/parallel/README
+         for i in ${EXAMPLES} ; do \
+-          rm -f $(EXS_INSTDIR)/idas/parallel/$${i}.c ; \
+-          rm -f $(EXS_INSTDIR)/idas/parallel/$${i}.out ; \
++          rm -f $(DESTDIR)$(EXS_INSTDIR)/idas/parallel/$${i}.c ; \
++          rm -f $(DESTDIR)$(EXS_INSTDIR)/idas/parallel/$${i}.out ; \
+         done
+-        $(rminstalldirs) $(EXS_INSTDIR)/idas/parallel
+-        $(rminstalldirs) $(EXS_INSTDIR)/idas
++        $(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/idas/parallel
++        $(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/idas

+ clean:
+         rm -rf .libs
+diff -ur sundials-2.5.0_orig/examples/idas/serial/Makefile.in sundials-2.5.0_patched/examples/idas/serial/Makefile.in
+--- sundials-2.5.0_orig/examples/idas/serial/Makefile.in        2012-04-11 18:32:34.000000000 -0600
++++ sundials-2.5.0_patched/examples/idas/serial/Makefile.in        2012-08-20 11:41:31.000000000 -0600
+@@ -92,35 +92,35 @@
+         fi

+ install:
+-        $(mkinstalldirs) $(EXS_INSTDIR)/idas/serial
+-        $(INSTALL_FILE) Makefile_ex $(EXS_INSTDIR)/idas/serial/Makefile
+-        $(INSTALL_FILE) $(top_srcdir)/examples/idas/serial/README $(EXS_INSTDIR)/idas/serial/
++        $(mkinstalldirs) $(DESTDIR)$(EXS_INSTDIR)/idas/serial
++        $(INSTALL_FILE) Makefile_ex $(DESTDIR)$(EXS_INSTDIR)/idas/serial/Makefile
++        $(INSTALL_FILE) $(top_srcdir)/examples/idas/serial/README $(DESTDIR)$(EXS_INSTDIR)/idas/serial/
+         for i in ${EXAMPLES} ; do \
+-          $(INSTALL_FILE) $(top_srcdir)/examples/idas/serial/$${i}.c   $(EXS_INSTDIR)/idas/serial/ ; \
+-          $(INSTALL_FILE) $(top_srcdir)/examples/idas/serial/$${i}.out $(EXS_INSTDIR)/idas/serial/ ; \
++          $(INSTALL_FILE) $(top_srcdir)/examples/idas/serial/$${i}.c   $(DESTDIR)$(EXS_INSTDIR)/idas/serial/ ; \
++          $(INSTALL_FILE) $(top_srcdir)/examples/idas/serial/$${i}.out $(DESTDIR)$(EXS_INSTDIR)/idas/serial/ ; \
+         done
+         @if test &quot;X${LAPACK_ENABLED}&quot; = &quot;Xyes&quot;; then \
+         for i in ${EXAMPLES_BL} ; do \
+-          $(INSTALL_FILE) $(top_srcdir)/examples/idas/serial/$${i}.c   $(EXS_INSTDIR)/idas/serial/ ; \
+-          $(INSTALL_FILE) $(top_srcdir)/examples/idas/serial/$${i}.out $(EXS_INSTDIR)/idas/serial/ ; \
++          $(INSTALL_FILE) $(top_srcdir)/examples/idas/serial/$${i}.c   $(DESTDIR)$(EXS_INSTDIR)/idas/serial/ ; \
++          $(INSTALL_FILE) $(top_srcdir)/examples/idas/serial/$${i}.out $(DESTDIR)$(EXS_INSTDIR)/idas/serial/ ; \
+         done ; \
+         fi

+ uninstall:
+-        rm -f $(EXS_INSTDIR)/idas/serial/Makefile
+-        rm -f $(EXS_INSTDIR)/idas/serial/README
++        rm -f $(DESTDIR)$(EXS_INSTDIR)/idas/serial/Makefile
++        rm -f $(DESTDIR)$(EXS_INSTDIR)/idas/serial/README
+         for i in ${EXAMPLES} ; do \
+-          rm -f $(EXS_INSTDIR)/idas/serial/$${i}.c ; \
+-          rm -f $(EXS_INSTDIR)/idas/serial/$${i}.out ; \
++          rm -f $(DESTDIR)$(EXS_INSTDIR)/idas/serial/$${i}.c ; \
++          rm -f $(DESTDIR)$(EXS_INSTDIR)/idas/serial/$${i}.out ; \
+         done
+         @if test &quot;X${LAPACK_ENABLED}&quot; = &quot;Xyes&quot;; then \
+         for i in ${EXAMPLES_BL} ; do \
+-          rm -f $(EXS_INSTDIR)/idas/serial/$${i}.c ; \
+-          rm -f $(EXS_INSTDIR)/idas/serial/$${i}.out ; \
++          rm -f $(DESTDIR)$(EXS_INSTDIR)/idas/serial/$${i}.c ; \
++          rm -f $(DESTDIR)$(EXS_INSTDIR)/idas/serial/$${i}.out ; \
+         done ; \
+         fi
+-        $(rminstalldirs) $(EXS_INSTDIR)/idas/serial
+-        $(rminstalldirs) $(EXS_INSTDIR)/idas
++        $(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/idas/serial
++        $(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/idas

+ clean:
+         rm -rf .libs
+diff -ur sundials-2.5.0_orig/examples/kinsol/fcmix_parallel/Makefile.in sundials-2.5.0_patched/examples/kinsol/fcmix_parallel/Makefile.in
+--- sundials-2.5.0_orig/examples/kinsol/fcmix_parallel/Makefile.in        2012-04-11 18:32:59.000000000 -0600
++++ sundials-2.5.0_patched/examples/kinsol/fcmix_parallel/Makefile.in        2012-08-20 11:41:31.000000000 -0600
+@@ -77,23 +77,23 @@
+         done

+ install:
+-        $(mkinstalldirs) $(EXS_INSTDIR)/kinsol/fcmix_parallel
+-        $(INSTALL_FILE) Makefile_ex  $(EXS_INSTDIR)/kinsol/fcmix_parallel/Makefile
+-        $(INSTALL_FILE) $(top_srcdir)/examples/kinsol/fcmix_parallel/README  $(EXS_INSTDIR)/kinsol/fcmix_parallel/
++        $(mkinstalldirs) $(DESTDIR)$(EXS_INSTDIR)/kinsol/fcmix_parallel
++        $(INSTALL_FILE) Makefile_ex  $(DESTDIR)$(EXS_INSTDIR)/kinsol/fcmix_parallel/Makefile
++        $(INSTALL_FILE) $(top_srcdir)/examples/kinsol/fcmix_parallel/README  $(DESTDIR)$(EXS_INSTDIR)/kinsol/fcmix_parallel/
+         for i in ${EXAMPLES} ; do \
+-          $(INSTALL_FILE) $(top_srcdir)/examples/kinsol/fcmix_parallel/$${i}.f   $(EXS_INSTDIR)/kinsol/fcmix_parallel/ ; \
+-          $(INSTALL_FILE) $(top_srcdir)/examples/kinsol/fcmix_parallel/$${i}.out $(EXS_INSTDIR)/kinsol/fcmix_parallel/ ; \
++          $(INSTALL_FILE) $(top_srcdir)/examples/kinsol/fcmix_parallel/$${i}.f   $(DESTDIR)$(EXS_INSTDIR)/kinsol/fcmix_parallel/ ; \
++          $(INSTALL_FILE) $(top_srcdir)/examples/kinsol/fcmix_parallel/$${i}.out $(DESTDIR)$(EXS_INSTDIR)/kinsol/fcmix_parallel/ ; \
+         done

+ uninstall:
+-        rm -f $(EXS_INSTDIR)/kinsol/fcmix_parallel/Makefile
+-        rm -f $(EXS_INSTDIR)/kinsol/fcmix_parallel/README
++        rm -f $(DESTDIR)$(EXS_INSTDIR)/kinsol/fcmix_parallel/Makefile
++        rm -f $(DESTDIR)$(EXS_INSTDIR)/kinsol/fcmix_parallel/README
+         for i in ${EXAMPLES} ; do \
+-          rm -f $(EXS_INSTDIR)/kinsol/fcmix_parallel/$${i}.f ; \
+-          rm -f $(EXS_INSTDIR)/kinsol/fcmix_parallel/$${i}.out ; \
++          rm -f $(DESTDIR)$(EXS_INSTDIR)/kinsol/fcmix_parallel/$${i}.f ; \
++          rm -f $(DESTDIR)$(EXS_INSTDIR)/kinsol/fcmix_parallel/$${i}.out ; \
+         done
+-        $(rminstalldirs) $(EXS_INSTDIR)/kinsol/fcmix_parallel
+-        $(rminstalldirs) $(EXS_INSTDIR)/kinsol
++        $(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/kinsol/fcmix_parallel
++        $(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/kinsol

+ clean:
+         rm -rf .libs
+diff -ur sundials-2.5.0_orig/examples/kinsol/fcmix_serial/Makefile.in sundials-2.5.0_patched/examples/kinsol/fcmix_serial/Makefile.in
+--- sundials-2.5.0_orig/examples/kinsol/fcmix_serial/Makefile.in        2012-04-11 18:32:59.000000000 -0600
++++ sundials-2.5.0_patched/examples/kinsol/fcmix_serial/Makefile.in        2012-08-20 11:41:31.000000000 -0600
+@@ -85,35 +85,35 @@


+ install:
+-        $(mkinstalldirs) $(EXS_INSTDIR)/kinsol/fcmix_serial
+-        $(INSTALL_FILE) Makefile_ex $(EXS_INSTDIR)/kinsol/fcmix_serial/Makefile
+-        $(INSTALL_FILE) $(top_srcdir)/examples/kinsol/fcmix_serial/README $(EXS_INSTDIR)/kinsol/fcmix_serial/
++        $(mkinstalldirs) $(DESTDIR)$(EXS_INSTDIR)/kinsol/fcmix_serial
++        $(INSTALL_FILE) Makefile_ex $(DESTDIR)$(EXS_INSTDIR)/kinsol/fcmix_serial/Makefile
++        $(INSTALL_FILE) $(top_srcdir)/examples/kinsol/fcmix_serial/README $(DESTDIR)$(EXS_INSTDIR)/kinsol/fcmix_serial/
+         for i in ${EXAMPLES} ; do \
+-          $(INSTALL_FILE) $(top_srcdir)/examples/kinsol/fcmix_serial/$${i}.f   $(EXS_INSTDIR)/kinsol/fcmix_serial/ ; \
+-          $(INSTALL_FILE) $(top_srcdir)/examples/kinsol/fcmix_serial/$${i}.out $(EXS_INSTDIR)/kinsol/fcmix_serial/ ; \
++          $(INSTALL_FILE) $(top_srcdir)/examples/kinsol/fcmix_serial/$${i}.f   $(DESTDIR)$(EXS_INSTDIR)/kinsol/fcmix_serial/ ; \
++          $(INSTALL_FILE) $(top_srcdir)/examples/kinsol/fcmix_serial/$${i}.out $(DESTDIR)$(EXS_INSTDIR)/kinsol/fcmix_serial/ ; \
+         done
+         @if test &quot;X${LAPACK_ENABLED}&quot; = &quot;Xyes&quot;; then \
+         for i in ${EXAMPLES_BL} ; do \
+-          $(INSTALL_FILE) $(top_srcdir)/examples/kinsol/fcmix_serial/$${i}.f   $(EXS_INSTDIR)/kinsol/fcmix_serial/ ; \
+-          $(INSTALL_FILE) $(top_srcdir)/examples/kinsol/fcmix_serial/$${i}.out $(EXS_INSTDIR)/kinsol/fcmix_serial/ ; \
++          $(INSTALL_FILE) $(top_srcdir)/examples/kinsol/fcmix_serial/$${i}.f   $(DESTDIR)$(EXS_INSTDIR)/kinsol/fcmix_serial/ ; \
++          $(INSTALL_FILE) $(top_srcdir)/examples/kinsol/fcmix_serial/$${i}.out $(DESTDIR)$(EXS_INSTDIR)/kinsol/fcmix_serial/ ; \
+         done ; \
+         fi

+ uninstall:
+-        rm -f $(EXS_INSTDIR)/kinsol/fcmix_serial/Makefile
+-        rm -f $(EXS_INSTDIR)/kinsol/fcmix_serial/README
++        rm -f $(DESTDIR)$(EXS_INSTDIR)/kinsol/fcmix_serial/Makefile
++        rm -f $(DESTDIR)$(EXS_INSTDIR)/kinsol/fcmix_serial/README
+         for i in ${EXAMPLES} ; do \
+-          rm -f $(EXS_INSTDIR)/kinsol/fcmix_serial/$${i}.f ; \
+-          rm -f $(EXS_INSTDIR)/kinsol/fcmix_serial/$${i}.out ; \
++          rm -f $(DESTDIR)$(EXS_INSTDIR)/kinsol/fcmix_serial/$${i}.f ; \
++          rm -f $(DESTDIR)$(EXS_INSTDIR)/kinsol/fcmix_serial/$${i}.out ; \
+         done
+         @if test &quot;X${LAPACK_ENABLED}&quot; = &quot;Xyes&quot;; then \
+         for i in ${EXAMPLES_BL} ; do \
+-          rm -f $(EXS_INSTDIR)/kinsol/fcmix_serial/$${i}.f ; \
+-          rm -f $(EXS_INSTDIR)/kinsol/fcmix_serial/$${i}.out ; \
++          rm -f $(DESTDIR)$(EXS_INSTDIR)/kinsol/fcmix_serial/$${i}.f ; \
++          rm -f $(DESTDIR)$(EXS_INSTDIR)/kinsol/fcmix_serial/$${i}.out ; \
+         done ; \
+         fi
+-        $(rminstalldirs) $(EXS_INSTDIR)/kinsol/fcmix_serial
+-        $(rminstalldirs) $(EXS_INSTDIR)/kinsol
++        $(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/kinsol/fcmix_serial
++        $(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/kinsol

+ clean:
+         rm -rf .libs
+diff -ur sundials-2.5.0_orig/examples/kinsol/parallel/Makefile.in sundials-2.5.0_patched/examples/kinsol/parallel/Makefile.in
+--- sundials-2.5.0_orig/examples/kinsol/parallel/Makefile.in        2012-04-11 18:32:59.000000000 -0600
++++ sundials-2.5.0_patched/examples/kinsol/parallel/Makefile.in        2012-08-20 11:41:31.000000000 -0600
+@@ -75,23 +75,23 @@
+         done

+ install:
+-        $(mkinstalldirs) $(EXS_INSTDIR)/kinsol/parallel
+-        $(INSTALL_FILE) Makefile_ex $(EXS_INSTDIR)/kinsol/parallel/Makefile
+-        $(INSTALL_FILE) $(top_srcdir)/examples/kinsol/parallel/README $(EXS_INSTDIR)/kinsol/parallel/
++        $(mkinstalldirs) $(DESTDIR)$(EXS_INSTDIR)/kinsol/parallel
++        $(INSTALL_FILE) Makefile_ex $(DESTDIR)$(EXS_INSTDIR)/kinsol/parallel/Makefile
++        $(INSTALL_FILE) $(top_srcdir)/examples/kinsol/parallel/README $(DESTDIR)$(EXS_INSTDIR)/kinsol/parallel/
+         for i in ${EXAMPLES} ; do \
+-          $(INSTALL_FILE) $(top_srcdir)/examples/kinsol/parallel/$${i}.c   $(EXS_INSTDIR)/kinsol/parallel/ ; \
+-          $(INSTALL_FILE) $(top_srcdir)/examples/kinsol/parallel/$${i}.out $(EXS_INSTDIR)/kinsol/parallel/ ; \
++          $(INSTALL_FILE) $(top_srcdir)/examples/kinsol/parallel/$${i}.c   $(DESTDIR)$(EXS_INSTDIR)/kinsol/parallel/ ; \
++          $(INSTALL_FILE) $(top_srcdir)/examples/kinsol/parallel/$${i}.out $(DESTDIR)$(EXS_INSTDIR)/kinsol/parallel/ ; \
+         done

+ uninstall:
+-        rm -f $(EXS_INSTDIR)/kinsol/parallel/Makefile
+-        rm -f $(EXS_INSTDIR)/kinsol/parallel/README
++        rm -f $(DESTDIR)$(EXS_INSTDIR)/kinsol/parallel/Makefile
++        rm -f $(DESTDIR)$(EXS_INSTDIR)/kinsol/parallel/README
+         for i in ${EXAMPLES} ; do \
+-          rm -f $(EXS_INSTDIR)/kinsol/parallel/$${i}.c ; \
+-          rm -f $(EXS_INSTDIR)/kinsol/parallel/$${i}.out ; \
++          rm -f $(DESTDIR)$(EXS_INSTDIR)/kinsol/parallel/$${i}.c ; \
++          rm -f $(DESTDIR)$(EXS_INSTDIR)/kinsol/parallel/$${i}.out ; \
+         done
+-        $(rminstalldirs) $(EXS_INSTDIR)/kinsol/parallel
+-        $(rminstalldirs) $(EXS_INSTDIR)/kinsol
++        $(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/kinsol/parallel
++        $(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/kinsol

+ clean:
+         rm -rf .libs
+diff -ur sundials-2.5.0_orig/examples/kinsol/serial/Makefile.in sundials-2.5.0_patched/examples/kinsol/serial/Makefile.in
+--- sundials-2.5.0_orig/examples/kinsol/serial/Makefile.in        2012-04-11 18:32:59.000000000 -0600
++++ sundials-2.5.0_patched/examples/kinsol/serial/Makefile.in        2012-08-20 11:41:31.000000000 -0600
+@@ -85,35 +85,35 @@
+         fi

+ install:
+-        $(mkinstalldirs) $(EXS_INSTDIR)/kinsol/serial
+-        $(INSTALL_FILE) Makefile_ex $(EXS_INSTDIR)/kinsol/serial/Makefile
+-        $(INSTALL_FILE) $(top_srcdir)/examples/kinsol/serial/README $(EXS_INSTDIR)/kinsol/serial/
++        $(mkinstalldirs) $(DESTDIR)$(EXS_INSTDIR)/kinsol/serial
++        $(INSTALL_FILE) Makefile_ex $(DESTDIR)$(EXS_INSTDIR)/kinsol/serial/Makefile
++        $(INSTALL_FILE) $(top_srcdir)/examples/kinsol/serial/README $(DESTDIR)$(EXS_INSTDIR)/kinsol/serial/
+         for i in ${EXAMPLES} ; do \
+-          $(INSTALL_FILE) $(top_srcdir)/examples/kinsol/serial/$${i}.c   $(EXS_INSTDIR)/kinsol/serial/ ; \
+-          $(INSTALL_FILE) $(top_srcdir)/examples/kinsol/serial/$${i}.out $(EXS_INSTDIR)/kinsol/serial/ ; \
++          $(INSTALL_FILE) $(top_srcdir)/examples/kinsol/serial/$${i}.c   $(DESTDIR)$(EXS_INSTDIR)/kinsol/serial/ ; \
++          $(INSTALL_FILE) $(top_srcdir)/examples/kinsol/serial/$${i}.out $(DESTDIR)$(EXS_INSTDIR)/kinsol/serial/ ; \
+         done
+         @if test &quot;X${LAPACK_ENABLED}&quot; = &quot;Xyes&quot;; then \
+         for i in ${EXAMPLES_BL} ; do \
+-          $(INSTALL_FILE) $(top_srcdir)/examples/kinsol/serial/$${i}.c   $(EXS_INSTDIR)/kinsol/serial/ ; \
+-          $(INSTALL_FILE) $(top_srcdir)/examples/kinsol/serial/$${i}.out $(EXS_INSTDIR)/kinsol/serial/ ; \
++          $(INSTALL_FILE) $(top_srcdir)/examples/kinsol/serial/$${i}.c   $(DESTDIR)$(EXS_INSTDIR)/kinsol/serial/ ; \
++          $(INSTALL_FILE) $(top_srcdir)/examples/kinsol/serial/$${i}.out $(DESTDIR)$(EXS_INSTDIR)/kinsol/serial/ ; \
+         done ; \
+         fi

+ uninstall:
+-        rm -f $(EXS_INSTDIR)/kinsol/serial/Makefile
+-        rm -f $(EXS_INSTDIR)/kinsol/serial/README
++        rm -f $(DESTDIR)$(EXS_INSTDIR)/kinsol/serial/Makefile
++        rm -f $(DESTDIR)$(EXS_INSTDIR)/kinsol/serial/README
+         for i in ${EXAMPLES} ; do \
+-          rm -f $(EXS_INSTDIR)/kinsol/serial/$${i}.c ; \
+-          rm -f $(EXS_INSTDIR)/kinsol/serial/$${i}.out ; \
++          rm -f $(DESTDIR)$(EXS_INSTDIR)/kinsol/serial/$${i}.c ; \
++          rm -f $(DESTDIR)$(EXS_INSTDIR)/kinsol/serial/$${i}.out ; \
+         done
+         @if test &quot;X${LAPACK_ENABLED}&quot; = &quot;Xyes&quot;; then \
+         for i in ${EXAMPLES_BL} ; do \
+-          rm -f $(EXS_INSTDIR)/kinsol/serial/$${i}.c ; \
+-          rm -f $(EXS_INSTDIR)/kinsol/serial/$${i}.out ; \
++          rm -f $(DESTDIR)$(EXS_INSTDIR)/kinsol/serial/$${i}.c ; \
++          rm -f $(DESTDIR)$(EXS_INSTDIR)/kinsol/serial/$${i}.out ; \
+         done ; \
+         fi
+-        $(rminstalldirs) $(EXS_INSTDIR)/kinsol/serial
+-        $(rminstalldirs) $(EXS_INSTDIR)/kinsol
++        $(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/kinsol/serial
++        $(rminstalldirs) $(DESTDIR)$(EXS_INSTDIR)/kinsol

+ clean:
+         rm -rf .libs
+diff -ur sundials-2.5.0_orig/src/cvode/Makefile.in sundials-2.5.0_patched/src/cvode/Makefile.in
+--- sundials-2.5.0_orig/src/cvode/Makefile.in        2012-04-11 18:31:13.000000000 -0600
++++ sundials-2.5.0_patched/src/cvode/Makefile.in        2012-08-20 10:26:47.000000000 -0600
+@@ -91,41 +91,41 @@
+         $(LIBTOOL) --mode=link $(CC) $(CFLAGS) -o $(CVODE_LIB) $(CVODE_LIB_FILES)  $(CVODE_BL_LIB_FILES) $(SHARED_LIB_FILES) -rpath $(libdir) $(LDFLAGS) $(LIBS) -version-info $(LIB_REVISION)

+ install: $(CVODE_LIB)
+-        $(mkinstalldirs) $(includedir)/cvode
+-        $(mkinstalldirs) $(libdir)
+-        $(LIBTOOL) --mode=install $(INSTALL_LIB) $(CVODE_LIB) $(libdir)
+-        $(INSTALL_HEADER) $(top_srcdir)/include/cvode/cvode.h         $(includedir)/cvode/
+-        $(INSTALL_HEADER) $(top_srcdir)/include/cvode/cvode_direct.h  $(includedir)/cvode/
+-        $(INSTALL_HEADER) $(top_srcdir)/include/cvode/cvode_dense.h   $(includedir)/cvode/
+-        $(INSTALL_HEADER) $(top_srcdir)/include/cvode/cvode_band.h    $(includedir)/cvode/
+-        $(INSTALL_HEADER) $(top_srcdir)/include/cvode/cvode_diag.h    $(includedir)/cvode/
+-        $(INSTALL_HEADER) $(top_srcdir)/include/cvode/cvode_spils.h   $(includedir)/cvode/
+-        $(INSTALL_HEADER) $(top_srcdir)/include/cvode/cvode_spbcgs.h  $(includedir)/cvode/
+-        $(INSTALL_HEADER) $(top_srcdir)/include/cvode/cvode_spgmr.h   $(includedir)/cvode/
+-        $(INSTALL_HEADER) $(top_srcdir)/include/cvode/cvode_sptfqmr.h $(includedir)/cvode/
+-        $(INSTALL_HEADER) $(top_srcdir)/include/cvode/cvode_bandpre.h $(includedir)/cvode/
+-        $(INSTALL_HEADER) $(top_srcdir)/include/cvode/cvode_bbdpre.h  $(includedir)/cvode/
+-        $(INSTALL_HEADER) $(top_srcdir)/src/cvode/cvode_impl.h        $(includedir)/cvode/
++        $(mkinstalldirs) $(DESTDIR)$(includedir)/cvode
++        $(mkinstalldirs) $(DESTDIR)$(libdir)
++        $(LIBTOOL) --mode=install $(INSTALL_LIB) $(CVODE_LIB) $(DESTDIR)$(libdir)
++        $(INSTALL_HEADER) $(top_srcdir)/include/cvode/cvode.h         $(DESTDIR)$(includedir)/cvode/
++        $(INSTALL_HEADER) $(top_srcdir)/include/cvode/cvode_direct.h  $(DESTDIR)$(includedir)/cvode/
++        $(INSTALL_HEADER) $(top_srcdir)/include/cvode/cvode_dense.h   $(DESTDIR)$(includedir)/cvode/
++        $(INSTALL_HEADER) $(top_srcdir)/include/cvode/cvode_band.h    $(DESTDIR)$(includedir)/cvode/
++        $(INSTALL_HEADER) $(top_srcdir)/include/cvode/cvode_diag.h    $(DESTDIR)$(includedir)/cvode/
++        $(INSTALL_HEADER) $(top_srcdir)/include/cvode/cvode_spils.h   $(DESTDIR)$(includedir)/cvode/
++        $(INSTALL_HEADER) $(top_srcdir)/include/cvode/cvode_spbcgs.h  $(DESTDIR)$(includedir)/cvode/
++        $(INSTALL_HEADER) $(top_srcdir)/include/cvode/cvode_spgmr.h   $(DESTDIR)$(includedir)/cvode/
++        $(INSTALL_HEADER) $(top_srcdir)/include/cvode/cvode_sptfqmr.h $(DESTDIR)$(includedir)/cvode/
++        $(INSTALL_HEADER) $(top_srcdir)/include/cvode/cvode_bandpre.h $(DESTDIR)$(includedir)/cvode/
++        $(INSTALL_HEADER) $(top_srcdir)/include/cvode/cvode_bbdpre.h  $(DESTDIR)$(includedir)/cvode/
++        $(INSTALL_HEADER) $(top_srcdir)/src/cvode/cvode_impl.h        $(DESTDIR)$(includedir)/cvode/
+         @if test &quot;X${LAPACK_ENABLED}&quot; = &quot;Xyes&quot;; then \
+-          $(INSTALL_HEADER) $(top_srcdir)/include/cvode/cvode_lapack.h  $(includedir)/cvode/ ; \
++          $(INSTALL_HEADER) $(top_srcdir)/include/cvode/cvode_lapack.h  $(DESTDIR)$(includedir)/cvode/ ; \
+         fi

+ uninstall:
+-        $(LIBTOOL) --mode=uninstall rm -f $(libdir)/$(CVODE_LIB)
+-        rm -f $(includedir)/cvode/cvode.h
+-        rm -f $(includedir)/cvode/cvode_direct.h
+-        rm -f $(includedir)/cvode/cvode_dense.h
+-        rm -f $(includedir)/cvode/cvode_band.h
+-        rm -f $(includedir)/cvode/cvode_diag.h
+-        rm -f $(includedir)/cvode/cvode_lapack.h
+-        rm -f $(includedir)/cvode/cvode_spils.h
+-        rm -f $(includedir)/cvode/cvode_spbcgs.h
+-        rm -f $(includedir)/cvode/cvode_spgmr.h
+-        rm -f $(includedir)/cvode/cvode_sptfqmr.h
+-        rm -f $(includedir)/cvode/cvode_bandpre.h
+-        rm -f $(includedir)/cvode/cvode_bbdpre.h
+-        rm -f $(includedir)/cvode/cvode_impl.h
+-        $(rminstalldirs) $(includedir)/cvode
++        $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$(CVODE_LIB)
++        rm -f $(DESTDIR)$(includedir)/cvode/cvode.h
++        rm -f $(DESTDIR)$(includedir)/cvode/cvode_direct.h
++        rm -f $(DESTDIR)$(includedir)/cvode/cvode_dense.h
++        rm -f $(DESTDIR)$(includedir)/cvode/cvode_band.h
++        rm -f $(DESTDIR)$(includedir)/cvode/cvode_diag.h
++        rm -f $(DESTDIR)$(includedir)/cvode/cvode_lapack.h
++        rm -f $(DESTDIR)$(includedir)/cvode/cvode_spils.h
++        rm -f $(DESTDIR)$(includedir)/cvode/cvode_spbcgs.h
++        rm -f $(DESTDIR)$(includedir)/cvode/cvode_spgmr.h
++        rm -f $(DESTDIR)$(includedir)/cvode/cvode_sptfqmr.h
++        rm -f $(DESTDIR)$(includedir)/cvode/cvode_bandpre.h
++        rm -f $(DESTDIR)$(includedir)/cvode/cvode_bbdpre.h
++        rm -f $(DESTDIR)$(includedir)/cvode/cvode_impl.h
++        $(rminstalldirs) $(DESTDIR)$(includedir)/cvode

+ shared:
+         @cd ${top_builddir}/src/sundials ; \
+diff -ur sundials-2.5.0_orig/src/cvode/fcmix/Makefile.in sundials-2.5.0_patched/src/cvode/fcmix/Makefile.in
+--- sundials-2.5.0_orig/src/cvode/fcmix/Makefile.in        2012-04-11 18:31:13.000000000 -0600
++++ sundials-2.5.0_patched/src/cvode/fcmix/Makefile.in        2012-08-20 10:37:05.000000000 -0600
+@@ -78,11 +78,11 @@
+         $(LIBTOOL) --mode=link $(CC) $(CFLAGS) -o $(FCVODE_LIB) $(FCVODE_LIB_FILES) $(FCVODE_BL_LIB_FILES) -rpath $(libdir) $(LDFLAGS) $(LIBS) -static -version-info $(LIB_REVISION)

+ install: $(FCVODE_LIB)
+-        $(mkinstalldirs) $(libdir)
+-        $(LIBTOOL) --mode=install $(INSTALL_LIB) $(FCVODE_LIB) $(libdir)
++        $(mkinstalldirs) $(DESTDIR)$(libdir)
++        $(LIBTOOL) --mode=install $(INSTALL_LIB) $(FCVODE_LIB) $(DESTDIR)$(libdir)

+ uninstall:
+-        $(LIBTOOL) --mode=uninstall rm -f $(libdir)/$(FCVODE_LIB)
++        $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$(FCVODE_LIB)

+ clean:
+         $(LIBTOOL) --mode=clean rm -f $(FCVODE_LIB)
+diff -ur sundials-2.5.0_orig/src/cvodes/Makefile.in sundials-2.5.0_patched/src/cvodes/Makefile.in
+--- sundials-2.5.0_orig/src/cvodes/Makefile.in        2012-04-11 18:31:36.000000000 -0600
++++ sundials-2.5.0_patched/src/cvodes/Makefile.in        2012-08-20 10:39:22.000000000 -0600
+@@ -91,41 +91,41 @@
+         $(LIBTOOL) --mode=link $(CC) $(CFLAGS) -o $(CVODES_LIB) $(CVODES_LIB_FILES) $(CVODES_BL_LIB_FILES) $(SHARED_LIB_FILES) -rpath $(libdir) $(LDFLAGS) $(LIBS) -version-info $(LIB_REVISION)

+ install: $(CVODES_LIB)
+-        $(mkinstalldirs) $(includedir)/cvodes
+-        $(mkinstalldirs) $(libdir)
+-        $(LIBTOOL) --mode=install $(INSTALL_LIB) $(CVODES_LIB) $(libdir)
+-        $(INSTALL_HEADER) $(top_srcdir)/include/cvodes/cvodes.h         $(includedir)/cvodes/
+-        $(INSTALL_HEADER) $(top_srcdir)/include/cvodes/cvodes_direct.h  $(includedir)/cvodes/
+-        $(INSTALL_HEADER) $(top_srcdir)/include/cvodes/cvodes_dense.h   $(includedir)/cvodes/
+-        $(INSTALL_HEADER) $(top_srcdir)/include/cvodes/cvodes_band.h    $(includedir)/cvodes/
+-        $(INSTALL_HEADER) $(top_srcdir)/include/cvodes/cvodes_diag.h    $(includedir)/cvodes/
+-        $(INSTALL_HEADER) $(top_srcdir)/include/cvodes/cvodes_spils.h   $(includedir)/cvodes/
+-        $(INSTALL_HEADER) $(top_srcdir)/include/cvodes/cvodes_spbcgs.h  $(includedir)/cvodes/
+-        $(INSTALL_HEADER) $(top_srcdir)/include/cvodes/cvodes_spgmr.h   $(includedir)/cvodes/
+-        $(INSTALL_HEADER) $(top_srcdir)/include/cvodes/cvodes_sptfqmr.h $(includedir)/cvodes/
+-        $(INSTALL_HEADER) $(top_srcdir)/include/cvodes/cvodes_bandpre.h $(includedir)/cvodes/
+-        $(INSTALL_HEADER) $(top_srcdir)/include/cvodes/cvodes_bbdpre.h  $(includedir)/cvodes/
+-        $(INSTALL_HEADER) $(top_srcdir)/src/cvodes/cvodes_impl.h        $(includedir)/cvodes/
++        $(mkinstalldirs) $(DESTDIR)$(includedir)/cvodes
++        $(mkinstalldirs) $(DESTDIR)$(libdir)
++        $(LIBTOOL) --mode=install $(INSTALL_LIB) $(CVODES_LIB) $(DESTDIR)$(libdir)
++        $(INSTALL_HEADER) $(top_srcdir)/include/cvodes/cvodes.h         $(DESTDIR)$(includedir)/cvodes/
++        $(INSTALL_HEADER) $(top_srcdir)/include/cvodes/cvodes_direct.h  $(DESTDIR)$(includedir)/cvodes/
++        $(INSTALL_HEADER) $(top_srcdir)/include/cvodes/cvodes_dense.h   $(DESTDIR)$(includedir)/cvodes/
++        $(INSTALL_HEADER) $(top_srcdir)/include/cvodes/cvodes_band.h    $(DESTDIR)$(includedir)/cvodes/
++        $(INSTALL_HEADER) $(top_srcdir)/include/cvodes/cvodes_diag.h    $(DESTDIR)$(includedir)/cvodes/
++        $(INSTALL_HEADER) $(top_srcdir)/include/cvodes/cvodes_spils.h   $(DESTDIR)$(includedir)/cvodes/
++        $(INSTALL_HEADER) $(top_srcdir)/include/cvodes/cvodes_spbcgs.h  $(DESTDIR)$(includedir)/cvodes/
++        $(INSTALL_HEADER) $(top_srcdir)/include/cvodes/cvodes_spgmr.h   $(DESTDIR)$(includedir)/cvodes/
++        $(INSTALL_HEADER) $(top_srcdir)/include/cvodes/cvodes_sptfqmr.h $(DESTDIR)$(includedir)/cvodes/
++        $(INSTALL_HEADER) $(top_srcdir)/include/cvodes/cvodes_bandpre.h $(DESTDIR)$(includedir)/cvodes/
++        $(INSTALL_HEADER) $(top_srcdir)/include/cvodes/cvodes_bbdpre.h  $(DESTDIR)$(includedir)/cvodes/
++        $(INSTALL_HEADER) $(top_srcdir)/src/cvodes/cvodes_impl.h        $(DESTDIR)$(includedir)/cvodes/
+         @if test &quot;X${LAPACK_ENABLED}&quot; = &quot;Xyes&quot;; then \
+-          $(INSTALL_HEADER) $(top_srcdir)/include/cvodes/cvodes_lapack.h  $(includedir)/cvodes/ ; \
++          $(INSTALL_HEADER) $(top_srcdir)/include/cvodes/cvodes_lapack.h  $(DESTDIR)$(includedir)/cvodes/ ; \
+         fi

+ uninstall:
+-        $(LIBTOOL) --mode=uninstall rm -f $(libdir)/$(CVODES_LIB)
+-        rm -f $(includedir)/cvodes/cvodes.h
+-        rm -f $(includedir)/cvodes/cvodes_direct.h
+-        rm -f $(includedir)/cvodes/cvodes_dense.h
+-        rm -f $(includedir)/cvodes/cvodes_band.h
+-        rm -f $(includedir)/cvodes/cvodes_diag.h
+-        rm -f $(includedir)/cvodes/cvodes_lapack.h
+-        rm -f $(includedir)/cvodes/cvodes_spils.h
+-        rm -f $(includedir)/cvodes/cvodes_spbcgs.h
+-        rm -f $(includedir)/cvodes/cvodes_spgmr.h
+-        rm -f $(includedir)/cvodes/cvodes_sptfqmr.h
+-        rm -f $(includedir)/cvodes/cvodes_bandpre.h
+-        rm -f $(includedir)/cvodes/cvodes_bbdpre.h
+-        rm -f $(includedir)/cvodes/cvodes_impl.h
+-        $(rminstalldirs) ${includedir}/cvodes
++        $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$(CVODES_LIB)
++        rm -f $(DESTDIR)$(includedir)/cvodes/cvodes.h
++        rm -f $(DESTDIR)$(includedir)/cvodes/cvodes_direct.h
++        rm -f $(DESTDIR)$(includedir)/cvodes/cvodes_dense.h
++        rm -f $(DESTDIR)$(includedir)/cvodes/cvodes_band.h
++        rm -f $(DESTDIR)$(includedir)/cvodes/cvodes_diag.h
++        rm -f $(DESTDIR)$(includedir)/cvodes/cvodes_lapack.h
++        rm -f $(DESTDIR)$(includedir)/cvodes/cvodes_spils.h
++        rm -f $(DESTDIR)$(includedir)/cvodes/cvodes_spbcgs.h
++        rm -f $(DESTDIR)$(includedir)/cvodes/cvodes_spgmr.h
++        rm -f $(DESTDIR)$(includedir)/cvodes/cvodes_sptfqmr.h
++        rm -f $(DESTDIR)$(includedir)/cvodes/cvodes_bandpre.h
++        rm -f $(DESTDIR)$(includedir)/cvodes/cvodes_bbdpre.h
++        rm -f $(DESTDIR)$(includedir)/cvodes/cvodes_impl.h
++        $(rminstalldirs) $(DESTDIR)$(includedir)/cvodes

+ shared:
+         @cd ${top_builddir}/src/sundials ; \
+diff -ur sundials-2.5.0_orig/src/ida/Makefile.in sundials-2.5.0_patched/src/ida/Makefile.in
+--- sundials-2.5.0_orig/src/ida/Makefile.in        2012-04-11 18:32:13.000000000 -0600
++++ sundials-2.5.0_patched/src/ida/Makefile.in        2012-08-20 10:40:41.000000000 -0600
+@@ -91,37 +91,37 @@
+         $(LIBTOOL) --mode=link $(CC) $(CFLAGS) -o $(IDA_LIB) $(IDA_LIB_FILES) $(IDA_BL_LIB_FILES) $(SHARED_LIB_FILES) -rpath $(libdir) $(LDFLAGS) $(LIBS) -version-info $(LIB_REVISION)

+ install: $(IDA_LIB)
+-        $(mkinstalldirs) $(includedir)/ida
+-        $(mkinstalldirs) $(libdir)
+-        $(LIBTOOL) --mode=install $(INSTALL_LIB) $(IDA_LIB) $(libdir)
+-        $(INSTALL_HEADER) $(top_srcdir)/include/ida/ida.h         $(includedir)/ida/
+-        $(INSTALL_HEADER) $(top_srcdir)/include/ida/ida_direct.h  $(includedir)/ida/
+-        $(INSTALL_HEADER) $(top_srcdir)/include/ida/ida_dense.h   $(includedir)/ida/
+-        $(INSTALL_HEADER) $(top_srcdir)/include/ida/ida_band.h    $(includedir)/ida/
+-        $(INSTALL_HEADER) $(top_srcdir)/include/ida/ida_spbcgs.h  $(includedir)/ida/
+-        $(INSTALL_HEADER) $(top_srcdir)/include/ida/ida_spgmr.h   $(includedir)/ida/
+-        $(INSTALL_HEADER) $(top_srcdir)/include/ida/ida_sptfqmr.h $(includedir)/ida/
+-        $(INSTALL_HEADER) $(top_srcdir)/include/ida/ida_bbdpre.h  $(includedir)/ida/
+-        $(INSTALL_HEADER) $(top_srcdir)/include/ida/ida_spils.h   $(includedir)/ida/
+-        $(INSTALL_HEADER) $(top_srcdir)/src/ida/ida_impl.h        $(includedir)/ida/
++        $(mkinstalldirs) $(DESTDIR)$(includedir)/ida
++        $(mkinstalldirs) $(DESTDIR)$(libdir)
++        $(LIBTOOL) --mode=install $(INSTALL_LIB) $(IDA_LIB) $(DESTDIR)$(libdir)
++        $(INSTALL_HEADER) $(top_srcdir)/include/ida/ida.h         $(DESTDIR)$(includedir)/ida/
++        $(INSTALL_HEADER) $(top_srcdir)/include/ida/ida_direct.h  $(DESTDIR)$(includedir)/ida/
++        $(INSTALL_HEADER) $(top_srcdir)/include/ida/ida_dense.h   $(DESTDIR)$(includedir)/ida/
++        $(INSTALL_HEADER) $(top_srcdir)/include/ida/ida_band.h    $(DESTDIR)$(includedir)/ida/
++        $(INSTALL_HEADER) $(top_srcdir)/include/ida/ida_spbcgs.h  $(DESTDIR)$(includedir)/ida/
++        $(INSTALL_HEADER) $(top_srcdir)/include/ida/ida_spgmr.h   $(DESTDIR)$(includedir)/ida/
++        $(INSTALL_HEADER) $(top_srcdir)/include/ida/ida_sptfqmr.h $(DESTDIR)$(includedir)/ida/
++        $(INSTALL_HEADER) $(top_srcdir)/include/ida/ida_bbdpre.h  $(DESTDIR)$(includedir)/ida/
++        $(INSTALL_HEADER) $(top_srcdir)/include/ida/ida_spils.h   $(DESTDIR)$(includedir)/ida/
++        $(INSTALL_HEADER) $(top_srcdir)/src/ida/ida_impl.h        $(DESTDIR)$(includedir)/ida/
+         @if test &quot;X${LAPACK_ENABLED}&quot; = &quot;Xyes&quot;; then \
+-          $(INSTALL_HEADER) $(top_srcdir)/include/ida/ida_lapack.h  $(includedir)/ida/ ; \
++          $(INSTALL_HEADER) $(top_srcdir)/include/ida/ida_lapack.h  $(DESTDIR)$(includedir)/ida/ ; \
+         fi

+ uninstall:
+-        $(LIBTOOL) --mode=uninstall rm -f $(libdir)/$(IDA_LIB)
+-        rm -f $(includedir)/ida/ida.h
+-        rm -f $(includedir)/ida/ida_direct.h
+-        rm -f $(includedir)/ida/ida_dense.h
+-        rm -f $(includedir)/ida/ida_band.h
+-        rm -f $(includedir)/ida/ida_lapack.h
+-        rm -f $(includedir)/ida/ida_spbcgs.h
+-        rm -f $(includedir)/ida/ida_spgmr.h
+-        rm -f $(includedir)/ida/ida_sptfqmr.h
+-        rm -f $(includedir)/ida/ida_bbdpre.h
+-        rm -f $(includedir)/ida/ida_spils.h
+-        rm -f $(includedir)/ida/ida_impl.h
+-        $(rminstalldirs) ${includedir}/ida
++        $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$(IDA_LIB)
++        rm -f $(DESTDIR)$(includedir)/ida/ida.h
++        rm -f $(DESTDIR)$(includedir)/ida/ida_direct.h
++        rm -f $(DESTDIR)$(includedir)/ida/ida_dense.h
++        rm -f $(DESTDIR)$(includedir)/ida/ida_band.h
++        rm -f $(DESTDIR)$(includedir)/ida/ida_lapack.h
++        rm -f $(DESTDIR)$(includedir)/ida/ida_spbcgs.h
++        rm -f $(DESTDIR)$(includedir)/ida/ida_spgmr.h
++        rm -f $(DESTDIR)$(includedir)/ida/ida_sptfqmr.h
++        rm -f $(DESTDIR)$(includedir)/ida/ida_bbdpre.h
++        rm -f $(DESTDIR)$(includedir)/ida/ida_spils.h
++        rm -f $(DESTDIR)$(includedir)/ida/ida_impl.h
++        $(rminstalldirs) $(DESTDIR)$(includedir)/ida

+ shared:
+         @cd ${top_builddir}/src/sundials ; \
+diff -ur sundials-2.5.0_orig/src/ida/fcmix/Makefile.in sundials-2.5.0_patched/src/ida/fcmix/Makefile.in
+--- sundials-2.5.0_orig/src/ida/fcmix/Makefile.in        2012-04-11 18:32:13.000000000 -0600
++++ sundials-2.5.0_patched/src/ida/fcmix/Makefile.in        2012-08-20 10:40:59.000000000 -0600
+@@ -78,11 +78,11 @@
+         $(LIBTOOL) --mode=link $(CC) $(CFLAGS) -o $(FIDA_LIB) $(FIDA_LIB_FILES) $(FIDA_BL_LIB_FILES) -rpath $(libdir) $(LDFLAGS) $(LIBS) -static -version-info $(LIB_REVISION)

+ install: $(FIDA_LIB)
+-        $(mkinstalldirs) $(libdir)
+-        $(LIBTOOL) --mode=install $(INSTALL_LIB) $(FIDA_LIB) $(libdir)
++        $(mkinstalldirs) $(DESTDIR)$(libdir)
++        $(LIBTOOL) --mode=install $(INSTALL_LIB) $(FIDA_LIB) $(DESTDIR)$(libdir)

+ uninstall:
+-        $(LIBTOOL) --mode=uninstall rm -f $(libdir)/$(FIDA_LIB)
++        $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$(FIDA_LIB)

+ clean:
+         $(LIBTOOL) --mode=clean rm -f $(FIDA_LIB)
+diff -ur sundials-2.5.0_orig/src/idas/Makefile.in sundials-2.5.0_patched/src/idas/Makefile.in
+--- sundials-2.5.0_orig/src/idas/Makefile.in        2012-04-11 18:32:34.000000000 -0600
++++ sundials-2.5.0_patched/src/idas/Makefile.in        2012-08-20 10:42:08.000000000 -0600
+@@ -91,37 +91,37 @@
+         $(LIBTOOL) --mode=link $(CC) $(CFLAGS) -o $(IDAS_LIB) $(IDAS_LIB_FILES) $(IDAS_BL_LIB_FILES) $(SHARED_LIB_FILES) -rpath $(libdir) $(LDFLAGS) $(LIBS) -version-info $(LIB_REVISION)

+ install: $(IDAS_LIB)
+-        $(mkinstalldirs) $(includedir)/idas
+-        $(mkinstalldirs) $(libdir)
+-        $(LIBTOOL) --mode=install $(INSTALL_LIB) $(IDAS_LIB) $(libdir)
+-        $(INSTALL_HEADER) $(top_srcdir)/include/idas/idas.h         $(includedir)/idas/
+-        $(INSTALL_HEADER) $(top_srcdir)/include/idas/idas_direct.h  $(includedir)/idas/
+-        $(INSTALL_HEADER) $(top_srcdir)/include/idas/idas_dense.h   $(includedir)/idas/
+-        $(INSTALL_HEADER) $(top_srcdir)/include/idas/idas_band.h    $(includedir)/idas/
+-        $(INSTALL_HEADER) $(top_srcdir)/include/idas/idas_spbcgs.h  $(includedir)/idas/
+-        $(INSTALL_HEADER) $(top_srcdir)/include/idas/idas_spgmr.h   $(includedir)/idas/
+-        $(INSTALL_HEADER) $(top_srcdir)/include/idas/idas_sptfqmr.h $(includedir)/idas/
+-        $(INSTALL_HEADER) $(top_srcdir)/include/idas/idas_bbdpre.h  $(includedir)/idas/
+-        $(INSTALL_HEADER) $(top_srcdir)/include/idas/idas_spils.h   $(includedir)/idas/
+-        $(INSTALL_HEADER) $(top_srcdir)/src/idas/idas_impl.h        $(includedir)/idas/
++        $(mkinstalldirs) $(DESTDIR)$(includedir)/idas
++        $(mkinstalldirs) $(DESTDIR)$(libdir)
++        $(LIBTOOL) --mode=install $(INSTALL_LIB) $(IDAS_LIB) $(DESTDIR)$(libdir)
++        $(INSTALL_HEADER) $(top_srcdir)/include/idas/idas.h         $(DESTDIR)$(includedir)/idas/
++        $(INSTALL_HEADER) $(top_srcdir)/include/idas/idas_direct.h  $(DESTDIR)$(includedir)/idas/
++        $(INSTALL_HEADER) $(top_srcdir)/include/idas/idas_dense.h   $(DESTDIR)$(includedir)/idas/
++        $(INSTALL_HEADER) $(top_srcdir)/include/idas/idas_band.h    $(DESTDIR)$(includedir)/idas/
++        $(INSTALL_HEADER) $(top_srcdir)/include/idas/idas_spbcgs.h  $(DESTDIR)$(includedir)/idas/
++        $(INSTALL_HEADER) $(top_srcdir)/include/idas/idas_spgmr.h   $(DESTDIR)$(includedir)/idas/
++        $(INSTALL_HEADER) $(top_srcdir)/include/idas/idas_sptfqmr.h $(DESTDIR)$(includedir)/idas/
++        $(INSTALL_HEADER) $(top_srcdir)/include/idas/idas_bbdpre.h  $(DESTDIR)$(includedir)/idas/
++        $(INSTALL_HEADER) $(top_srcdir)/include/idas/idas_spils.h   $(DESTDIR)$(includedir)/idas/
++        $(INSTALL_HEADER) $(top_srcdir)/src/idas/idas_impl.h        $(DESTDIR)$(includedir)/idas/
+         @if test &quot;X${LAPACK_ENABLED}&quot; = &quot;Xyes&quot;; then \
+-          $(INSTALL_HEADER) $(top_srcdir)/include/idas/idas_lapack.h  $(includedir)/idas/ ; \
++          $(INSTALL_HEADER) $(top_srcdir)/include/idas/idas_lapack.h  $(DESTDIR)$(includedir)/idas/ ; \
+         fi

+ uninstall:
+-        $(LIBTOOL) --mode=uninstall rm -f $(libdir)/$(IDAS_LIB)
+-        rm -f $(includedir)/idas/idas.h
+-        rm -f $(includedir)/idas/idas_direct.h
+-        rm -f $(includedir)/idas/idas_dense.h
+-        rm -f $(includedir)/idas/idas_band.h
+-        rm -f $(includedir)/idas/idas_lapack.h
+-        rm -f $(includedir)/idas/idas_spbcgs.h
+-        rm -f $(includedir)/idas/idas_spgmr.h
+-        rm -f $(includedir)/idas/idas_sptfqmr.h
+-        rm -f $(includedir)/idas/idas_bbdpre.h
+-        rm -f $(includedir)/idas/idas_spils.h
+-        rm -f $(includedir)/idas/idas_impl.h
+-        $(rminstalldirs) ${includedir}/idas
++        $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$(IDAS_LIB)
++        rm -f $(DESTDIR)$(includedir)/idas/idas.h
++        rm -f $(DESTDIR)$(includedir)/idas/idas_direct.h
++        rm -f $(DESTDIR)$(includedir)/idas/idas_dense.h
++        rm -f $(DESTDIR)$(includedir)/idas/idas_band.h
++        rm -f $(DESTDIR)$(includedir)/idas/idas_lapack.h
++        rm -f $(DESTDIR)$(includedir)/idas/idas_spbcgs.h
++        rm -f $(DESTDIR)$(includedir)/idas/idas_spgmr.h
++        rm -f $(DESTDIR)$(includedir)/idas/idas_sptfqmr.h
++        rm -f $(DESTDIR)$(includedir)/idas/idas_bbdpre.h
++        rm -f $(DESTDIR)$(includedir)/idas/idas_spils.h
++        rm -f $(DESTDIR)$(includedir)/idas/idas_impl.h
++        $(rminstalldirs) $(DESTDIR)$(includedir)/idas

+ shared:
+         @cd ${top_builddir}/src/sundials ; \
+diff -ur sundials-2.5.0_orig/src/kinsol/Makefile.in sundials-2.5.0_patched/src/kinsol/Makefile.in
+--- sundials-2.5.0_orig/src/kinsol/Makefile.in        2012-04-11 18:32:58.000000000 -0600
++++ sundials-2.5.0_patched/src/kinsol/Makefile.in        2012-08-20 10:43:23.000000000 -0600
+@@ -91,37 +91,37 @@
+         $(LIBTOOL) --mode=link $(CC) $(CFLAGS) -o $(KINSOL_LIB) $(KINSOL_LIB_FILES) $(KINSOL_BL_LIB_FILES) $(SHARED_LIB_FILES) -rpath $(libdir) $(LDFLAGS) $(LIBS) -version-info $(LIB_REVISION)

+ install: $(KINSOL_LIB)
+-        $(mkinstalldirs) $(includedir)/kinsol
+-        $(mkinstalldirs) $(libdir)
+-        $(LIBTOOL) --mode=install $(INSTALL_LIB) $(KINSOL_LIB) $(libdir)
+-        $(INSTALL_HEADER) $(top_srcdir)/include/kinsol/kinsol.h         $(includedir)/kinsol/
+-        $(INSTALL_HEADER) $(top_srcdir)/include/kinsol/kinsol_direct.h  $(includedir)/kinsol/
+-        $(INSTALL_HEADER) $(top_srcdir)/include/kinsol/kinsol_dense.h   $(includedir)/kinsol/
+-        $(INSTALL_HEADER) $(top_srcdir)/include/kinsol/kinsol_band.h    $(includedir)/kinsol/
+-        $(INSTALL_HEADER) $(top_srcdir)/include/kinsol/kinsol_spgmr.h   $(includedir)/kinsol/
+-        $(INSTALL_HEADER) $(top_srcdir)/include/kinsol/kinsol_spbcgs.h  $(includedir)/kinsol/
+-        $(INSTALL_HEADER) $(top_srcdir)/include/kinsol/kinsol_sptfqmr.h $(includedir)/kinsol/
+-        $(INSTALL_HEADER) $(top_srcdir)/include/kinsol/kinsol_bbdpre.h  $(includedir)/kinsol/
+-        $(INSTALL_HEADER) $(top_srcdir)/include/kinsol/kinsol_spils.h   $(includedir)/kinsol/
+-        $(INSTALL_HEADER) $(top_srcdir)/src/kinsol/kinsol_impl.h        $(includedir)/kinsol/
++        $(mkinstalldirs) $(DESTDIR)$(includedir)/kinsol
++        $(mkinstalldirs) $(DESTDIR)$(libdir)
++        $(LIBTOOL) --mode=install $(INSTALL_LIB) $(KINSOL_LIB) $(DESTDIR)$(libdir)
++        $(INSTALL_HEADER) $(top_srcdir)/include/kinsol/kinsol.h         $(DESTDIR)$(includedir)/kinsol/
++        $(INSTALL_HEADER) $(top_srcdir)/include/kinsol/kinsol_direct.h  $(DESTDIR)$(includedir)/kinsol/
++        $(INSTALL_HEADER) $(top_srcdir)/include/kinsol/kinsol_dense.h   $(DESTDIR)$(includedir)/kinsol/
++        $(INSTALL_HEADER) $(top_srcdir)/include/kinsol/kinsol_band.h    $(DESTDIR)$(includedir)/kinsol/
++        $(INSTALL_HEADER) $(top_srcdir)/include/kinsol/kinsol_spgmr.h   $(DESTDIR)$(includedir)/kinsol/
++        $(INSTALL_HEADER) $(top_srcdir)/include/kinsol/kinsol_spbcgs.h  $(DESTDIR)$(includedir)/kinsol/
++        $(INSTALL_HEADER) $(top_srcdir)/include/kinsol/kinsol_sptfqmr.h $(DESTDIR)$(includedir)/kinsol/
++        $(INSTALL_HEADER) $(top_srcdir)/include/kinsol/kinsol_bbdpre.h  $(DESTDIR)$(includedir)/kinsol/
++        $(INSTALL_HEADER) $(top_srcdir)/include/kinsol/kinsol_spils.h   $(DESTDIR)$(includedir)/kinsol/
++        $(INSTALL_HEADER) $(top_srcdir)/src/kinsol/kinsol_impl.h        $(DESTDIR)$(includedir)/kinsol/
+         @if test &quot;X${LAPACK_ENABLED}&quot; = &quot;Xyes&quot;; then \
+-          $(INSTALL_HEADER) $(top_srcdir)/include/kinsol/kinsol_lapack.h  $(includedir)/kinsol/ ; \
++          $(INSTALL_HEADER) $(top_srcdir)/include/kinsol/kinsol_lapack.h  $(DESTDIR)$(includedir)/kinsol/ ; \
+         fi

+ uninstall:
+-        $(LIBTOOL) --mode=uninstall rm -f $(libdir)/$(KINSOL_LIB)
+-        rm -f $(includedir)/kinsol/kinsol.h
+-        rm -f $(includedir)/kinsol/kinsol_direct.h
+-        rm -f $(includedir)/kinsol/kinsol_dense.h
+-        rm -f $(includedir)/kinsol/kinsol_band.h
+-        rm -f $(includedir)/kinsol/kinsol_lapack.h
+-        rm -f $(includedir)/kinsol/kinsol_spgmr.h
+-        rm -f $(includedir)/kinsol/kinsol_spbcgs.h
+-        rm -f $(includedir)/kinsol/kinsol_sptfqmr.h
+-        rm -f $(includedir)/kinsol/kinsol_bbdpre.h
+-        rm -f $(includedir)/kinsol/kinsol_spils.h
+-        rm -f $(includedir)/kinsol/kinsol_impl.h
+-        $(rminstalldirs) ${includedir}/kinsol
++        $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$(KINSOL_LIB)
++        rm -f $(DESTDIR)$(includedir)/kinsol/kinsol.h
++        rm -f $(DESTDIR)$(includedir)/kinsol/kinsol_direct.h
++        rm -f $(DESTDIR)$(includedir)/kinsol/kinsol_dense.h
++        rm -f $(DESTDIR)$(includedir)/kinsol/kinsol_band.h
++        rm -f $(DESTDIR)$(includedir)/kinsol/kinsol_lapack.h
++        rm -f $(DESTDIR)$(includedir)/kinsol/kinsol_spgmr.h
++        rm -f $(DESTDIR)$(includedir)/kinsol/kinsol_spbcgs.h
++        rm -f $(DESTDIR)$(includedir)/kinsol/kinsol_sptfqmr.h
++        rm -f $(DESTDIR)$(includedir)/kinsol/kinsol_bbdpre.h
++        rm -f $(DESTDIR)$(includedir)/kinsol/kinsol_spils.h
++        rm -f $(DESTDIR)$(includedir)/kinsol/kinsol_impl.h
++        $(rminstalldirs) $(DESTDIR)$(includedir)/kinsol

+ shared:
+         @cd ${top_builddir}/src/sundials ; \
+diff -ur sundials-2.5.0_orig/src/kinsol/fcmix/Makefile.in sundials-2.5.0_patched/src/kinsol/fcmix/Makefile.in
+--- sundials-2.5.0_orig/src/kinsol/fcmix/Makefile.in        2012-04-11 18:32:58.000000000 -0600
++++ sundials-2.5.0_patched/src/kinsol/fcmix/Makefile.in        2012-08-20 10:43:45.000000000 -0600
+@@ -78,11 +78,11 @@
+         $(LIBTOOL) --mode=link $(CC) $(CFLAGS) -o $(FKINSOL_LIB) $(FKINSOL_LIB_FILES) $(FKINSOL_BL_LIB_FILES) -rpath $(libdir) $(LDFLAGS) $(LIBS) -static -version-info $(LIB_REVISION)

+ install: $(FKINSOL_LIB)
+-        $(mkinstalldirs) $(libdir)
+-        $(LIBTOOL) --mode=install $(INSTALL_LIB) $(FKINSOL_LIB) $(libdir)
++        $(mkinstalldirs) $(DESTDIR)$(libdir)
++        $(LIBTOOL) --mode=install $(INSTALL_LIB) $(FKINSOL_LIB) $(DESTDIR)$(libdir)

+ uninstall:
+-        $(LIBTOOL) --mode=uninstall rm -f $(libdir)/$(FKINSOL_LIB)
++        $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$(FKINSOL_LIB)

+ clean:
+         $(LIBTOOL) --mode=clean rm -f $(FKINSOL_LIB)
+diff -ur sundials-2.5.0_orig/src/nvec_par/Makefile.in sundials-2.5.0_patched/src/nvec_par/Makefile.in
+--- sundials-2.5.0_orig/src/nvec_par/Makefile.in        2012-04-11 18:31:04.000000000 -0600
++++ sundials-2.5.0_patched/src/nvec_par/Makefile.in        2012-08-20 10:46:47.000000000 -0600
+@@ -75,23 +75,23 @@
+          fi

+ install: $(NVECPAR_LIB) $(FNVECPAR_LIB)
+-        $(mkinstalldirs) $(includedir)/nvector
+-        $(mkinstalldirs) $(libdir)
+-        $(LIBTOOL) --mode=install $(INSTALL_LIB) $(NVECPAR_LIB) $(libdir)
+-        $(INSTALL_HEADER) $(top_srcdir)/include/nvector/nvector_parallel.h $(includedir)/nvector/
++        $(mkinstalldirs) $(DESTDIR)$(includedir)/nvector
++        $(mkinstalldirs) $(DESTDIR)$(libdir)
++        $(LIBTOOL) --mode=install $(INSTALL_LIB) $(NVECPAR_LIB) $(DESTDIR)$(libdir)
++        $(INSTALL_HEADER) $(top_srcdir)/include/nvector/nvector_parallel.h $(DESTDIR)$(includedir)/nvector/
+         @if test &quot;X${FCMIX_ENABLED}&quot; = &quot;Xyes&quot;; then                                    \
+-           echo &quot;${LIBTOOL} --mode=install ${INSTALL_LIB} ${FNVECPAR_LIB} ${libdir}&quot; ; \
+-           ${LIBTOOL} --mode=install ${INSTALL_LIB} ${FNVECPAR_LIB} ${libdir} ;        \
++           echo &quot;${LIBTOOL} --mode=install ${INSTALL_LIB} ${FNVECPAR_LIB} ${DESTDIR}${libdir}&quot; ; \
++           ${LIBTOOL} --mode=install ${INSTALL_LIB} ${FNVECPAR_LIB} ${DESTDIR}${libdir} ;        \
+          fi

+ uninstall:
+-        $(LIBTOOL) --mode=uninstall rm -f $(libdir)/$(NVECPAR_LIB)
++        $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$(NVECPAR_LIB)
+         @if test &quot;X${FCMIX_ENABLED}&quot; = &quot;Xyes&quot;; then                             \
+-           echo &quot;${LIBTOOL} --mode=uninstall rm -f ${libdir}/${FNVECPAR_LIB}&quot; ; \
+-           ${LIBTOOL} --mode=uninstall rm -f ${libdir}/${FNVECPAR_LIB} ;        \
++           echo &quot;${LIBTOOL} --mode=uninstall rm -f ${DESTDIR}${libdir}/${FNVECPAR_LIB}&quot; ; \
++           ${LIBTOOL} --mode=uninstall rm -f ${DESTDIR}${libdir}/${FNVECPAR_LIB} ;        \
+          fi
+-        rm -f $(includedir)/nvector/nvector_parallel.h
+-        $(rminstalldirs) ${includedir}/nvector
++        rm -f $(DESTDIR)$(includedir)/nvector/nvector_parallel.h
++        $(rminstalldirs) $(DESTDIR)$(includedir)/nvector

+ shared:
+         @cd ${top_builddir}/src/sundials ; \
+diff -ur sundials-2.5.0_orig/src/nvec_ser/Makefile.in sundials-2.5.0_patched/src/nvec_ser/Makefile.in
+--- sundials-2.5.0_orig/src/nvec_ser/Makefile.in        2012-04-11 18:31:04.000000000 -0600
++++ sundials-2.5.0_patched/src/nvec_ser/Makefile.in        2012-08-20 10:48:11.000000000 -0600
+@@ -72,23 +72,23 @@
+         fi

+ install: $(NVECSER_LIB) $(FNVECSER_LIB)
+-        $(mkinstalldirs) $(includedir)/nvector
+-        $(mkinstalldirs) $(libdir)
+-        $(LIBTOOL) --mode=install $(INSTALL_LIB) $(NVECSER_LIB) $(libdir)
+-        $(INSTALL_HEADER) $(top_srcdir)/include/nvector/nvector_serial.h $(includedir)/nvector/
++        $(mkinstalldirs) $(DESTDIR)$(includedir)/nvector
++        $(mkinstalldirs) $(DESTDIR)$(libdir)
++        $(LIBTOOL) --mode=install $(INSTALL_LIB) $(NVECSER_LIB) $(DESTDIR)$(libdir)
++        $(INSTALL_HEADER) $(top_srcdir)/include/nvector/nvector_serial.h $(DESTDIR)$(includedir)/nvector/
+         @if test &quot;X${FCMIX_ENABLED}&quot; = &quot;Xyes&quot;; then                                    \
+-           echo &quot;${LIBTOOL} --mode=install ${INSTALL_LIB} ${FNVECSER_LIB} ${libdir}&quot; ; \
+-           ${LIBTOOL} --mode=install ${INSTALL_LIB} ${FNVECSER_LIB} ${libdir} ;        \
++           echo &quot;${LIBTOOL} --mode=install ${INSTALL_LIB} ${FNVECSER_LIB} ${DESTDIR}${libdir}&quot; ; \
++           ${LIBTOOL} --mode=install ${INSTALL_LIB} ${FNVECSER_LIB} ${DESTDIR}${libdir} ;        \
+          fi

+ uninstall:
+-        $(LIBTOOL) --mode=uninstall rm -f $(libdir)/$(NVECSER_LIB)
++        $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$(NVECSER_LIB)
+         @if test &quot;X${FCMIX_ENABLED}&quot; = &quot;Xyes&quot;; then                             \
+-           echo &quot;${LIBTOOL} --mode=uninstall rm -f ${libdir}/${FNVECSER_LIB}&quot; ; \
+-           ${LIBTOOL} --mode=uninstall rm -f ${libdir}/${FNVECSER_LIB} ;        \
++           echo &quot;${LIBTOOL} --mode=uninstall rm -f ${DESTDIR}${libdir}/${FNVECSER_LIB}&quot; ; \
++           ${LIBTOOL} --mode=uninstall rm -f ${DESTDIR}${libdir}/${FNVECSER_LIB} ;        \
+          fi
+-        rm -f $(includedir)/nvector/nvector_serial.h
+-        $(rminstalldirs) ${includedir}/nvector
++        rm -f $(DESTDIR)$(includedir)/nvector/nvector_serial.h
++        $(rminstalldirs) $(DESTDIR)$(includedir)/nvector

+ shared:
+         @cd ${top_builddir}/src/sundials ; \
+diff -ur sundials-2.5.0_orig/src/sundials/Makefile.in sundials-2.5.0_patched/src/sundials/Makefile.in
+--- sundials-2.5.0_orig/src/sundials/Makefile.in        2012-04-11 18:31:04.000000000 -0600
++++ sundials-2.5.0_patched/src/sundials/Makefile.in        2012-08-20 10:48:43.000000000 -0600
+@@ -70,38 +70,38 @@
+ lib_with_bl: $(SHARED_LIB_FILES)

+ install:
+-        $(mkinstalldirs)  $(includedir)/sundials
+-        $(INSTALL_HEADER) $(top_srcdir)/include/sundials/sundials_direct.h     $(includedir)/sundials/
+-        $(INSTALL_HEADER) $(top_srcdir)/include/sundials/sundials_band.h       $(includedir)/sundials/
+-        $(INSTALL_HEADER) $(top_srcdir)/include/sundials/sundials_dense.h      $(includedir)/sundials/
+-        $(INSTALL_HEADER) $(top_srcdir)/include/sundials/sundials_iterative.h  $(includedir)/sundials/
+-        $(INSTALL_HEADER) $(top_srcdir)/include/sundials/sundials_spgmr.h      $(includedir)/sundials/
+-        $(INSTALL_HEADER) $(top_srcdir)/include/sundials/sundials_spbcgs.h     $(includedir)/sundials/
+-        $(INSTALL_HEADER) $(top_srcdir)/include/sundials/sundials_sptfqmr.h    $(includedir)/sundials/
+-        $(INSTALL_HEADER) $(top_srcdir)/include/sundials/sundials_math.h       $(includedir)/sundials/
+-        $(INSTALL_HEADER) $(top_srcdir)/include/sundials/sundials_types.h      $(includedir)/sundials/
+-        $(INSTALL_HEADER) $(top_srcdir)/include/sundials/sundials_nvector.h    $(includedir)/sundials/
+-        $(INSTALL_HEADER) $(top_srcdir)/include/sundials/sundials_fnvector.h   $(includedir)/sundials/
+-        $(INSTALL_HEADER) $(top_builddir)/include/sundials/sundials_config.h   $(includedir)/sundials/
++        $(mkinstalldirs)  $(DESTDIR)$(includedir)/sundials
++        $(INSTALL_HEADER) $(top_srcdir)/include/sundials/sundials_direct.h     $(DESTDIR)$(includedir)/sundials/
++        $(INSTALL_HEADER) $(top_srcdir)/include/sundials/sundials_band.h       $(DESTDIR)$(includedir)/sundials/
++        $(INSTALL_HEADER) $(top_srcdir)/include/sundials/sundials_dense.h      $(DESTDIR)$(includedir)/sundials/
++        $(INSTALL_HEADER) $(top_srcdir)/include/sundials/sundials_iterative.h  $(DESTDIR)$(includedir)/sundials/
++        $(INSTALL_HEADER) $(top_srcdir)/include/sundials/sundials_spgmr.h      $(DESTDIR)$(includedir)/sundials/
++        $(INSTALL_HEADER) $(top_srcdir)/include/sundials/sundials_spbcgs.h     $(DESTDIR)$(includedir)/sundials/
++        $(INSTALL_HEADER) $(top_srcdir)/include/sundials/sundials_sptfqmr.h    $(DESTDIR)$(includedir)/sundials/
++        $(INSTALL_HEADER) $(top_srcdir)/include/sundials/sundials_math.h       $(DESTDIR)$(includedir)/sundials/
++        $(INSTALL_HEADER) $(top_srcdir)/include/sundials/sundials_types.h      $(DESTDIR)$(includedir)/sundials/
++        $(INSTALL_HEADER) $(top_srcdir)/include/sundials/sundials_nvector.h    $(DESTDIR)$(includedir)/sundials/
++        $(INSTALL_HEADER) $(top_srcdir)/include/sundials/sundials_fnvector.h   $(DESTDIR)$(includedir)/sundials/
++        $(INSTALL_HEADER) $(top_builddir)/include/sundials/sundials_config.h   $(DESTDIR)$(includedir)/sundials/
+         @if test &quot;X${LAPACK_ENABLED}&quot; = &quot;Xyes&quot;; then \
+-          $(INSTALL_HEADER) $(top_srcdir)/include/sundials/sundials_lapack.h     $(includedir)/sundials/ ; \
++          $(INSTALL_HEADER) $(top_srcdir)/include/sundials/sundials_lapack.h     $(DESTDIR)$(includedir)/sundials/ ; \
+         fi

+ uninstall:
+-        rm -f $(includedir)/sundials/sundials_direct.h
+-        rm -f $(includedir)/sundials/sundials_band.h
+-        rm -f $(includedir)/sundials/sundials_dense.h
+-        rm -f $(includedir)/sundials/sundials_lapack.h
+-        rm -f $(includedir)/sundials/sundials_iterative.h
+-        rm -f $(includedir)/sundials/sundials_spgmr.h
+-        rm -f $(includedir)/sundials/sundials_spbcgs.h
+-        rm -f $(includedir)/sundials/sundials_sptfqmr.h
+-        rm -f $(includedir)/sundials/sundials_math.h
+-        rm -f $(includedir)/sundials/sundials_types.h
+-        rm -f $(includedir)/sundials/sundials_nvector.h
+-        rm -f $(includedir)/sundials/sundials_fnvector.h
+-        rm -f $(includedir)/sundials/sundials_config.h
+-        $(rminstalldirs) $(includedir)/sundials
++        rm -f $(DESTDIR)$(includedir)/sundials/sundials_direct.h
++        rm -f $(DESTDIR)$(includedir)/sundials/sundials_band.h
++        rm -f $(DESTDIR)$(includedir)/sundials/sundials_dense.h
++        rm -f $(DESTDIR)$(includedir)/sundials/sundials_lapack.h
++        rm -f $(DESTDIR)$(includedir)/sundials/sundials_iterative.h
++        rm -f $(DESTDIR)$(includedir)/sundials/sundials_spgmr.h
++        rm -f $(DESTDIR)$(includedir)/sundials/sundials_spbcgs.h
++        rm -f $(DESTDIR)$(includedir)/sundials/sundials_sptfqmr.h
++        rm -f $(DESTDIR)$(includedir)/sundials/sundials_math.h
++        rm -f $(DESTDIR)$(includedir)/sundials/sundials_types.h
++        rm -f $(DESTDIR)$(includedir)/sundials/sundials_nvector.h
++        rm -f $(DESTDIR)$(includedir)/sundials/sundials_fnvector.h
++        rm -f $(DESTDIR)$(includedir)/sundials/sundials_config.h
++        $(rminstalldirs) $(DESTDIR)$(includedir)/sundials

+ clean:
+         rm -f $(SHARED_LIB_FILES)
</ins></span></pre>
</div>
</div>

</body>
</html>