R-beta: compiling R with libncurses on SuSE Linux

Albrecht Gebhardt (agebhard@zidsrv.sci.uni-klu.ac.at)
Tue, 6 May 1997 15:39:19 +0200 (MET DST)


Date: Tue, 6 May 1997 15:39:19 +0200 (MET DST)
From: Albrecht Gebhardt <agebhard@zidsrv.sci.uni-klu.ac.at>
To: r-testers <r-testers@stat.math.ethz.ch>
Subject: R-beta: compiling R with libncurses on SuSE Linux
Message-Id: <Pine.OSF.3.93.970506151139.32413B-100000@alpha2-stat.sci.uni-klu.ac.at>


When I tried to compile R on a S.u.S.E-4.4 linux box, I ended up with
unresolved symbols from libtermcap. So I decided to use the newer libncurses.

Applying the following patch to configure.in and creating a new
configure script with "autoconf  configure.in > configure" solved my problems.

--- configure.in.orig   Tue May  6 15:05:20 1997
+++ configure.in        Tue May  6 15:05:23 1997
@@ -142,13 +142,17 @@
 
 #  LIBRARIES
 #
-#  This is set up so we only get one of one of -ltermcap and -ltermlib
+#  This is set up so we only get one of one of -lncurses -ltermcap and -ltermlib
 
 AC_CHECK_LIB(m, sin)
+AC_CHECK_LIB(ncurses, main)
+if test -z "HAVE_LIBNCURSES"
+then
 AC_CHECK_LIB(termcap, main)
 if test -z "HAVE_LIBTERMCAP"
 then
 AC_CHECK_LIB(termlib, main)
+fi
 fi
 AC_CHECK_LIB(readline, main)
 AC_CHECK_LIB(dl, dlopen)


-------------------------------------------------------------------------------
Albrecht Gebhardt                   email   : albrecht.gebhardt@uni-klu.ac.at
Institut fuer Mathematik            Tel.    : (++43 463) 2700/837
Universitaet Klagenfurt             Fax     : (++43 463) 2700/834
Villacher Str. 161
A-9020 Klagenfurt, Austria
-------------------------------------------------------------------------------





=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
r-help 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-help-request@stat.math.ethz.ch
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=