From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mike Gran Newsgroups: gmane.lisp.guile.user Subject: Autoconf test for site scheme files Date: Tue, 7 Aug 2007 08:42:12 -0700 (PDT) Message-ID: <140901.61872.qm@web37904.mail.mud.yahoo.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1186501438 32516 80.91.229.12 (7 Aug 2007 15:43:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 7 Aug 2007 15:43:58 +0000 (UTC) To: Gule User Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Tue Aug 07 17:43:56 2007 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IIRDt-0004dU-MI for guile-user@m.gmane.org; Tue, 07 Aug 2007 17:43:54 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IIRDh-0003ex-Ns for guile-user@m.gmane.org; Tue, 07 Aug 2007 11:43:41 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IIRCk-0002tn-Dk for guile-user@gnu.org; Tue, 07 Aug 2007 11:42:42 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IIRCi-0002sj-L3 for guile-user@gnu.org; Tue, 07 Aug 2007 11:42:41 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IIRCi-0002sf-GH for guile-user@gnu.org; Tue, 07 Aug 2007 11:42:40 -0400 Original-Received: from web37904.mail.mud.yahoo.com ([209.191.91.166]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1IIRCe-0003Jf-F7 for guile-user@gnu.org; Tue, 07 Aug 2007 11:42:39 -0400 Original-Received: (qmail 62444 invoked by uid 60001); 7 Aug 2007 15:42:13 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=i6DrKzBz2msGLLsfyP1HpThFFcdPBDSeHihDVo0X161p2CPkxFu0onwOxiAnAbxMCYmhyqlrIxDRg7YCICfFtRW5V3baO2zzbM5VMHNgOdWMX5Beivn3Q9dmnLnwWfNMo7UuWGenfmDD3B5icKjCy9jxcQNIMyLoh24nuO655V8=; X-YMail-OSG: ZpfclkkVM1mF0K0tElU7dYPq0LwMupAaOhFOWfftIbFJAlEPjp9Gg9LMdiCmOpSJdLbgg0BtNhhXLSAkwEZIwfj4nFSOP4uD28CgEWl_Qd_Qty4TNEniYd4b5WC57vitFid4dOkg52YZpg-- Original-Received: from [76.80.200.209] by web37904.mail.mud.yahoo.com via HTTP; Tue, 07 Aug 2007 08:42:12 PDT X-Detected-Kernel: FreeBSD 4.7-5.2 (or MacOS X 10.2-10.4) (2) X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:6093 Archived-At: Hi- I'm setting up the configure.ac and Makefile.in for a project that will install some guile modules. The modules have scheme wrappers and load a shared object file. The shared object library will go into /usr/local/lib Is there a "standard" way to get the site scheme directory? At first glance, I would set it as schemedir = $(datarootdir)/guile/site, but, if $(datarootdir) is /usr/local/share, then $(schemedir) will be /usr/local/share/guile/site, which is not in the default %load-path. One solution would be to make a configure test that runs guile, prints the %load-path, and then saves the first element in %load-path that ends in the word "site". Or something with `guile-config info pkgdatadir`, I guess. Thanks, Mike Gran _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user