1curl-config(1)                curl-config manual                curl-config(1)
2
3
4

NAME

6       curl-config - Get information about a libcurl installation
7

SYNOPSIS

9       curl-config [options]
10

DESCRIPTION

12       curl-config  displays  information  about  a  previous curl and libcurl
13       installation.
14

OPTIONS

16       --ca   Displays the built-in path to the CA cert  bundle  this  libcurl
17              uses.
18
19       --cc   Displays the compiler used to build libcurl.
20
21       --cflags
22              Set  of  compiler  options  (CFLAGS) to use when compiling files
23              that use libcurl. Currently that is only thw include path to the
24              curl include files.
25
26       --checkfor [version]
27              Specify the oldest possible libcurl version string you want, and
28              this script will return 0 if the  current  installation  is  new
29              enough  or  it returns 1 and outputs a text saying that the cur‐
30              rent version is not new enough. (Added in 7.15.4)
31
32       --feature
33              Lists what particular main features the  installed  libcurl  was
34              built  with.  At the time of writing, this list may include SSL,
35              KRB4 or IPv6. Do not assume any particular order.  The  keywords
36              will be separated by newlines. There may be none, one or several
37              keywords in the list.
38
39       --help Displays the available options.
40
41       --libs Shows the complete set of libs and other linker options you will
42              need in order to link your application with libcurl.
43
44       --prefix
45              This  is  the prefix used when libcurl was installed. Libcurl is
46              then installed in $prefix/lib and its header files are installed
47              in  $prefix/include and so on. The prefix is set with "configure
48              --prefix".
49
50       --protocols
51              Lists what particular protocols the installed libcurl was  built
52              to  support. At the time of writing, this list may include HTTP,
53              HTTPS, FTP, FTPS, FILE, TELNET, LDAP, DICT. Do  not  assume  any
54              particular  order.  The protocols will be listed using uppercase
55              and are separated by newlines. There may be none, one or several
56              protocols in the list. (Added in 7.13.0)
57
58       --version
59              Outputs version information about the installed libcurl.
60
61       --vernum
62              Outputs  version  information  about  the  installed libcurl, in
63              numerical mode.  This outputs the version number,  in  hexadeci‐
64              mal,  with  8  bits  for each part; major, minor, patch. So that
65              libcurl 7.7.4 would appear as 070704 and libcurl 12.13.14  would
66              appear as 0c0d0e... Note that the initial zero might be omitted.
67              (This option was broken in the 7.15.0 release.)
68

EXAMPLES

70       What linker options do I need when I link with libcurl?
71
72         $ curl-config --libs
73
74       What compiler options do I need when I compile using libcurl functions?
75
76         $ curl-config --cflags
77
78       How do I know if libcurl was built with SSL support?
79
80         $ curl-config --feature | grep SSL
81
82       What's the installed libcurl version?
83
84         $ curl-config --version
85
86       How do I build a single file with a one-line command?
87
88         $ `curl-config --cc --cflags --libs` -o example example.c
89
90

SEE ALSO

92       curl(1)
93
94
95
96Curl 7.15.4                       25 Jan 2004                   curl-config(1)
Impressum