File: libslack-config.pod

package info (click to toggle)
daemon 0.8.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,072 kB
  • sloc: ansic: 30,432; sh: 4,310; perl: 592; makefile: 307
file content (139 lines) | stat: -rw-r--r-- 3,622 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
#
# libslack - https://libslack.org
#
# Copyright (C) 1999-2004, 2010, 2020-2023 raf <raf@raf.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, see <https://www.gnu.org/licenses/>.
#
# 20230824 raf <raf@raf.org>
#

=head1 NAME

I<libslack-config> - administrative tool for libslack

=head1 SYNOPSIS

 libslack-config [options]
 options:

   -h, --help      - Print this help and exit
   -v, --version   - Print the version of the currently installed libslack
   -L, --latest    - Print the latest version of libslack (uses wget)
   -D, --download  - Download the latest version of libslack (uses wget)
   -U, --upgrade   - Upgrade to the latest version of libslack (uses wget)
   -p, --prefix    - Print the prefix directory of the libslack installation
   -c, --cflags    - Print CFLAGS needed to compile clients of libslack
   -l, --libs      - Print LDFLAGS needed to link against libslack
   -l, --ldflags   - Identical to --libs
   -u, --uninstall - Uninstall libslack

 Note: The dashes are optional for long option names

 Command line example:
   gcc -o app app.c `libslack-config --cflags --libs`

 Makefile example:
   APP_CFLAGS  += $(shell libslack-config --cflags)
   APP_LDFLAGS += $(shell libslack-config --libs)

=head1 DESCRIPTION

I<libslack-config> is an administrative tool for I<libslack(3)>. It can
print the compiler and linker flags that are needed to compile and link
programs that use I<libslack(3)>. It can also print the version of the
currently installed I<libslack(3)> or print the latest version available at
C<https://www.libslack.org>. It can also download the latest version. It can
also upgrade libslack. It can also uninstall libslack.

=head1 OPTIONS

=over 4

=item C<-h>, C<--help>

Print a help message and exit.

=item C<-v>, C<--version>

Print the version of the currently installed I<libslack>.

=item C<-L>, C<--latest>

Print the latest version of I<libslack> available at
C<https://libslack.org>.

=item C<-D>, C<--download>

Download the latest version of I<libslack> from
C<https://libslack.org>.

=item C<-U>, C<--upgrade>

Upgrade to the latest version of I<libslack> from
C<https://libslack.org>. This downloads the latest
version, configures it, compiles it, uninstalls the currently installed
version and then installs the new version wherever the current version
was installed.

=item C<-p>, C<--prefix>

Print the prefix directory under which I<libslack> was installed.

=item C<-c>, C<--cflags>

Print the compiler flags needed to compile code that uses I<libslack>.

=item C<-l>, C<--libs>, C<--ldflags>

Print the linker flags needed to link code against I<libslack>.

=item C<-u>, C<--uninstall>

Uninstall I<libslack>.

=back

=head1 SEE ALSO

C<https://libslack.org>,
I<libslack(3)>,
I<agent(3)>,
I<coproc(3)>,
I<daemon(3)>,
I<err(3)>,
I<fio(3)>,
I<getopt(3)>,
I<hsort(3)>,
I<lim(3)>,
I<link(3)>,
I<list(3)>,
I<locker(3)>,
I<map(3)>,
I<mem(3)>,
I<msg(3)>,
I<net(3)>,
I<prog(3)>,
I<prop(3)>,
I<pseudo(3)>,
I<sig(3)>,
I<snprintf(3)>,
I<str(3)>,
I<vsscanf(3)>

=head1 AUTHOR

20230824 raf <raf@raf.org>

=cut