[Rd] Problems with autoconf example from r-ext.

dhinds@sonic.net dhinds at sonic.net
Wed Oct 5 20:40:26 CEST 2005


Prof Brian Ripley <ripley at stats.ox.ac.uk> wrote:
> The current R-exts.texi has

> AC_INIT([RODBC], 1.1.4) dnl package name, version

> and that is crucially different from your example.  Autoconf 2.59 has a 
> barely documented back-compatibility mode than is invoked for AC_INIT with 
> just one argument.

I was tripped up by this same issue, and was not easily able to figure
out from the autoconf documentation how AC_INIT had changed over time.
The one-argument AC_INIT, for the version of autoconf I was using
(2.57), expects its argument to be a path to a file that is relatively
unique to the package.

However, this isn't actually related to the problem at hand:

> > R CMD INSTALL
> > --configure-args='--with-sbmlode-lib=/data/opt/sbmlodesolve/include \
> > --with-sbmlode-include=/data/opt/sbmlodesolve/lib' \
> > SBMLodeSolveR

This is a shell programming error.  Remove the '\' inside your quoted
--configure-args argument.  The backslash causes the newline to be
escaped in the string passed to the configure script, which confuses
the argument parser.  You don't need the backslash because a quoted
string is automatically continued until the closing quote is seen.

-- Dave



More information about the R-devel mailing list