0
|
1 |
'\" t
|
|
2 |
.\"
|
11
|
3 |
.\" Copyright 2010 Sun Microsystems, Inc. All rights reserved.
|
0
|
4 |
.\" Use is subject to license terms.
|
|
5 |
.\"
|
11
|
6 |
.\" ident "@(#)guile-config.1 1.2 10/03/16 SMI"
|
0
|
7 |
.\"
|
|
8 |
.\" This man page created by Sun to provide a reference to the
|
|
9 |
.\" Info format documentation for guile provided with the distribution.
|
|
10 |
.\"
|
|
11 |
.TH guile-config 1 "26 May 2008"
|
|
12 |
.SH NAME
|
|
13 |
guile-config \- a tool designed to help guile users to get guile
|
|
14 |
configuration information
|
|
15 |
.SH SYNOPSIS
|
|
16 |
/usr/bin/guile-config [OPTIONS]
|
|
17 |
.SH DESCRIPTION
|
|
18 |
On most systems, you should not need to tell the compiler and linker
|
|
19 |
explicitly where they can find `libguile.h' and `libguile'. When Guile
|
|
20 |
has been installed in a peculiar way, or when you are on a peculiar
|
|
21 |
system, things might not be so easy and you might need to pass
|
|
22 |
additional `-I' or `-L' options to the compiler. Guile provides the
|
|
23 |
utility program `guile-config' to help you find the right values for
|
|
24 |
these options. You would typically run `guile-config' during the
|
|
25 |
configuration phase of your program and use the obtained information in
|
|
26 |
the Makefile.
|
|
27 |
.SH OPTIONS
|
|
28 |
.I guile-config link
|
|
29 |
|
|
30 |
Print the linker command-line flags necessary to link against libguile, and
|
|
31 |
any other libraries it requires.
|
|
32 |
|
|
33 |
.I guile-config compile
|
|
34 |
|
|
35 |
Print C compiler flags for compiling code that uses Guile. This includes
|
|
36 |
any `-I' flags needed to find Guile's header files.
|
|
37 |
|
|
38 |
.I guile-config info [VAR]
|
|
39 |
|
|
40 |
Display the value of the Makefile variable VAR used when Guile was built.
|
|
41 |
If VAR is omitted, display all Makefile variables. Use this command to find
|
|
42 |
out where Guile was installed, where it will look for Scheme code at run-time,
|
|
43 |
and so on.
|
|
44 |
|
|
45 |
.SH EXAMPLES
|
|
46 |
You can use guile-config for a Scheme program:
|
|
47 |
.LP
|
|
48 |
(use-modules (scripts guile-config))
|
|
49 |
(guile-config . args) => string
|
|
50 |
(guile-config/split . args) => list of strings
|
|
51 |
.LP
|
|
52 |
ARGS is one of the "commands" above, such as "info" or "compile",
|
|
53 |
followed by an additional optional specifier. Either element of
|
|
54 |
ARGS can be a symbol or a string. For example, here are two sets
|
|
55 |
of equivalent invocations:
|
|
56 |
|
|
57 |
(guile-config 'info 'pkgdatadir)
|
|
58 |
(guile-config 'info "pkgdatadir")
|
|
59 |
(guile-config "info" 'pkgdatadir)
|
|
60 |
(guile-config "info" "pkgdatadir")
|
|
61 |
.LP
|
|
62 |
(guile-config 'compile)
|
|
63 |
(guile-config "compile")
|
|
64 |
|
|
65 |
These procedures basically capture the output as if guile-config
|
|
66 |
were invoked as a command from the shell. The former discards
|
|
67 |
the final newline. The latter additionally discards whitespace,
|
|
68 |
and always returns a list (sometimes of length 1).
|
|
69 |
|
|
70 |
Behavior is undefined for null ARGS or unrecognized commands.
|
|
71 |
.PD
|
|
72 |
.SH ATTRIBUTES
|
|
73 |
See
|
|
74 |
.BR attributes (5)
|
|
75 |
for descriptions of the following attributes:
|
|
76 |
.sp
|
|
77 |
.TS
|
|
78 |
box;
|
|
79 |
cbp-1 | cbp-1
|
|
80 |
l | l .
|
|
81 |
ATTRIBUTE TYPE ATTRIBUTE VALUE
|
|
82 |
=
|
11
|
83 |
Availability library/guile
|
0
|
84 |
=
|
|
85 |
Interface Stability Uncommitted
|
|
86 |
.TE
|
|
87 |
.SH NOTES
|
|
88 |
Source for guile is available on http://opensolaris.org.
|