From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.devel Subject: Re: pkg-config support Date: Thu, 01 May 2008 18:21:43 +0200 Message-ID: References: <87lk2xd5qp.fsf@gnu.org> <87r6cpf11e.fsf@ambire.localdomain> <87r6cna7gl.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1209658992 1351 80.91.229.12 (1 May 2008 16:23:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 1 May 2008 16:23:12 +0000 (UTC) Cc: Thien-Thi Nguyen , guile-devel@gnu.org To: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Thu May 01 18:23:47 2008 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JrbZK-0004fd-Qp for guile-devel@m.gmane.org; Thu, 01 May 2008 18:23:39 +0200 Original-Received: from localhost ([127.0.0.1]:45612 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JrbYd-0007F4-FG for guile-devel@m.gmane.org; Thu, 01 May 2008 12:22:55 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JrbYa-0007Er-LE for guile-devel@gnu.org; Thu, 01 May 2008 12:22:52 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JrbYX-0007CZ-U7 for guile-devel@gnu.org; Thu, 01 May 2008 12:22:51 -0400 Original-Received: from [199.232.76.173] (port=54323 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JrbYX-0007CP-Om for guile-devel@gnu.org; Thu, 01 May 2008 12:22:49 -0400 Original-Received: from a-sasl-fastnet.sasl.smtp.pobox.com ([207.106.133.19] helo=sasl.smtp.pobox.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JrbYO-0005t0-Kk; Thu, 01 May 2008 12:22:40 -0400 Original-Received: from localhost.localdomain (localhost [127.0.0.1]) by a-sasl-fastnet.sasl.smtp.pobox.com (Postfix) with ESMTP id F16944884; Thu, 1 May 2008 12:22:19 -0400 (EDT) Original-Received: from unquote (131.Red-81-39-159.dynamicIP.rima-tde.net [81.39.159.131]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-sasl-fastnet.sasl.smtp.pobox.com (Postfix) with ESMTP id 20882487C; Thu, 1 May 2008 12:22:15 -0400 (EDT) In-Reply-To: <87r6cna7gl.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "Wed, 30 Apr 2008 13:49:14 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-Pobox-Relay-ID: C5AB9A54-179A-11DD-BF83-80001473D85F-02397024!a-sasl-fastnet.pobox.com X-detected-kernel: by monty-python.gnu.org: Solaris 10 (beta) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:7203 Archived-At: On Wed 30 Apr 2008 13:49, ludo@gnu.org (Ludovic Court=C3=A8s) writes: > As for libraries, there's an additional problem. Libraries that are not > meant to be used from C (e.g., bindings of some C library whose C API is > not public) would better fit under $pkglibdir than under $libdir. In > that case, the `.scm' module that calls `load-extension' must contain > the full path to the lib, since it cannot expect it to be in ld.so's > search path. The problem is that doing so precludes running tests from > the build tree, before installation. This is cairo/config.scm.in: (define-module (cairo config) :export (*cairo-lib-path* *cairo-documentation-path*)) (define *cairo-lib-path* "@cairolibpath@") (define *cairo-documentation-path* "@cairodocumentationpath@") This is part of cairo/Makefile.am: config.scm: Makefile config.scm.in sed -e "s|@cairolibpath\@|$(lib_builddir)/libguile-cairo|" \ -e "s|@cairodocumentationpath\@|$(docs_builddir)/cairo-procedures.txt|= " \ $(srcdir)/config.scm.in > config.scm install-data-local: Makefile config.scm.in $(mkinstalldirs) $(DESTDIR)$(moduledir) sed -e "s|@cairolibpath\@|$(libdir)/libguile-cairo|" \ -e "s|@cairodocumentationpath\@|$(moduledir)/cairo-procedures.txt|" \ $(srcdir)/config.scm.in > $(DESTDIR)$(moduledir)/config.scm chmod 644 $(DESTDIR)$(moduledir)/config.scm uninstall-local: rm -f $(DESTDIR)$(moduledir)/config.scm It's verbose but it does work in both cases. Andy --=20 http://wingolog.org/