unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* Autoconf test for site scheme files
@ 2007-08-07 15:42 Mike Gran
  2007-08-07 16:35 ` Greg Troxel
  0 siblings, 1 reply; 7+ messages in thread
From: Mike Gran @ 2007-08-07 15:42 UTC (permalink / raw)
  To: Gule User

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


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-08-12 11:43 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-07 15:42 Autoconf test for site scheme files Mike Gran
2007-08-07 16:35 ` Greg Troxel
2007-08-07 16:52   ` Mike Gran
2007-08-08  7:20     ` Ludovic Courtès
2007-08-08 15:03       ` Mike Gran
2007-08-12  4:27       ` Jon Wilson
2007-08-12 11:43         ` Greg Troxel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).