From mgd@swarm.org  Wed Jan 26 01:36:02 2000
From: mgd@swarm.org (Marcus G. Daniels)
Date: 25 Jan 2000 17:36:02 -0800
Subject: passing through configure parameters during module installation?
Message-ID: <rfisnzl398d.fsf@cathcart.sysc.pdx.edu>


This patch makes it possible do module installs in this way:

$ R INSTALL --with-hdf5=/packages .

Is there a better/conventional way to do this kind of thing that I'm
not seeing?

diff -c -r1.29 INSTALL.in
*** src/scripts/INSTALL.in	2000/01/24 19:48:48	1.29
--- src/scripts/INSTALL.in	2000/01/26 01:26:11
***************
*** 107,112 ****
--- 107,116 ----
        lib=${2}; shift ;;
      --library=*)
        lib=`echo "${1}" | sed -e 's/[^=]*=//'` ;;
+     --with-*=*)
+       configure_args="$configure_args $1";;
+     --with-*)
+       configure_args="$configure_args $1=$2"; shift ;;
      *)
        if test -f "${1}"; then
          mkdir -p ${tmpdir}
***************
*** 181,187 ****
    echo "Installing package \`${pkg}' ..."
  
    if test -x ./configure ; then
!     ./configure
    fi
  
    if test -d src; then
--- 185,191 ----
    echo "Installing package \`${pkg}' ..."
  
    if test -x ./configure ; then
!     ./configure $configure_args
    fi
  
    if test -d src; then
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


passing through configure parameters during module installation?
Marcus G. Daniels