From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Neil Jerram Newsgroups: gmane.lisp.guile.bugs Subject: Re: INSTALL matters Date: Mon, 15 Jun 2009 20:40:18 +0100 Message-ID: <873aa1e15p.fsf@arudy.ossau.uklinux.net> References: <200805160146.17580.bruno@clisp.org> <200905102034.41116.bruno@clisp.org> <87my9b1ve2.fsf@arudy.ossau.uklinux.net> <200905240104.09138.bruno@clisp.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1245094877 6934 80.91.229.12 (15 Jun 2009 19:41:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 15 Jun 2009 19:41:17 +0000 (UTC) Cc: bug-guile@gnu.org To: Bruno Haible Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Mon Jun 15 21:41:14 2009 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MGI3N-0007rX-G1 for guile-bugs@m.gmane.org; Mon, 15 Jun 2009 21:41:14 +0200 Original-Received: from localhost ([127.0.0.1]:53345 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MGI3J-0007AW-Hx for guile-bugs@m.gmane.org; Mon, 15 Jun 2009 15:41:09 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MGI3F-0007AF-AK for bug-guile@gnu.org; Mon, 15 Jun 2009 15:41:05 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MGI39-00079q-S7 for bug-guile@gnu.org; Mon, 15 Jun 2009 15:41:04 -0400 Original-Received: from [199.232.76.173] (port=51425 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MGI39-00079n-OQ for bug-guile@gnu.org; Mon, 15 Jun 2009 15:40:59 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:61405) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MGI39-0006wA-AJ for bug-guile@gnu.org; Mon, 15 Jun 2009 15:40:59 -0400 Original-Received: from mail3.uklinux.net ([80.84.72.33]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MGI2X-0003mc-Ui for bug-guile@gnu.org; Mon, 15 Jun 2009 15:40:22 -0400 Original-Received: from arudy (host86-152-99-133.range86-152.btcentralplus.com [86.152.99.133]) by mail3.uklinux.net (Postfix) with ESMTP id 533A61F7187; Mon, 15 Jun 2009 20:40:19 +0100 (BST) Original-Received: from arudy.ossau.uklinux.net (arudy [127.0.0.1]) by arudy (Postfix) with ESMTP id 8035C38021; Mon, 15 Jun 2009 20:40:18 +0100 (BST) In-Reply-To: <200905240104.09138.bruno@clisp.org> (Bruno Haible's message of "Sun\, 24 May 2009 01\:04\:07 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) X-Detected-Operating-System: by mx20.gnu.org: GNU/Linux 2.4-2.6 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:4227 Archived-At: Bruno Haible writes: > In the weird cases that you are mentioning (like /dir1/lib/ and /dir2/lib/ > which each contain libA and libB, and the user asks to use /dir1/lib/libA.so > and /dir2/lib/libB.so), yes, there are platforms where this will not work. > > But these are not the typical cases and not the common cases. In this case, > where the emphasis is on making the user's life easier, it is acceptable to > choose a solution that "works" only in 98% of the cases. I agree; I just wanted to make sure that I fully understood. >> OK, so you _do_ think that $prefix/lib should be added to LDFLAGS by >> default, and $prefix/include to CPPFLAGS. > > Yes. This makes most sense for the installing user. And I see now that havelib does this. >> Is there an autoconf macro >> to do that? If there is, does it support a ./configure option for >> disabling it, for any cases where it isn't wanted? > > Good points :-) You are welcome to ask for this on the autoconf list; I > support your idea. OK, but I'll wait for a case (if any) where it's needed. > The AC_LIB_LINKFLAGS_BODY is maintained for a couple of years already. > Most problems must have been shaken out already: > http://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=history;f=m4/lib-link.m4;h=21442033c87bd65912d4337d2f3fe686da708e01;hb=68dfc9591e97db34b5ba693da028ff1f356a12b7 [...] > The doc is also in gnulib, at > http://www.gnu.org/software/gnulib/manual/html_node/Searching-for-Libraries.html > (generated from gnulib/doc/havelib.texi). It's explained in some > detail, but more from the perspective of the developer than from the > view of the user. Many thanks for all your input on this subject, Bruno. I've applied your suggestions to Guile's master branch (which will become the next stable release series, 2.0.x): http://git.savannah.gnu.org/gitweb/?p=guile.git;a=commit;h=39b94fee4304d56babf5bd62e10c5786a79f4389 http://git.savannah.gnu.org/gitweb/?p=guile.git;a=commit;h=a89cafc0562942680db63fe8ddf89f466ba2f7af If you have any further comments on this, I'd be happy to hear them. Regards, Neil