From p.dalgaard@biostat.ku.dk  Tue Aug 18 20:39:34 1998
From: p.dalgaard@biostat.ku.dk (Peter Dalgaard BSA)
Date: 18 Aug 1998 21:39:34 +0200
Subject: Problem in "configure" for Solaris (cc) -- solved (partly) --
In-Reply-To: Prof Brian Ripley's message of Tue, 18 Aug 1998 18:28:50 +0100 (BST)
References: <199808181728.SAA04981@toucan.stats.ox.ac.uk>
Message-ID: <x2n292xeo9.fsf@biostat.ku.dk>

Prof Brian Ripley <ripley@stats.ox.ac.uk> writes:

> $ CC=cc CFLAGS=-O2 ./configure
> $ cat config.log
> This file contains any messages produced by compilers while
> running configure, to aid debugging if configure makes a mistake.
> 
> configure:708: checking for a BSD compatible install
...
> 
> Note, no details of the compiler failure appear ....

Hmmm. Yes. Easily reproduced on other systems by using:

CC=/bin/false ./configure

The basic problem here is that this part of configure.in is handwritten,
and doesn't use the "autoconf conventions" (which are probably as
well-documented as certain aspects of R...) of sending the compile
commands and in the case of failure also the program contents to file
descriptor 5.  I.e. what yields all the constructions of the type

if { (eval echo configure:1475: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi

There must be a relevant macro for this somewhere?

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)             FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


Problem in "configure" for Solaris (cc) -- solved (partly) --
Peter Dalgaard BSA