125 lines
4.5 KiB
HTML
125 lines
4.5 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of curl-config</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>curl-config</H1>
|
|
Section: curl-config manual (1)<BR>Updated: November 30, 2017<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
<P>
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
curl-config - Get information about a libcurl installation
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
<B>curl-config [options]</B>
|
|
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
<B>curl-config</B>
|
|
|
|
displays information about the curl and libcurl installation.
|
|
<A NAME="lbAE"> </A>
|
|
<H2>OPTIONS</H2>
|
|
|
|
<DL COMPACT>
|
|
<DT id="1">--ca<DD>
|
|
Displays the built-in path to the CA cert bundle this libcurl uses.
|
|
<DT id="2">--cc<DD>
|
|
Displays the compiler used to build libcurl.
|
|
<DT id="3">--cflags<DD>
|
|
Set of compiler options (CFLAGS) to use when compiling files that use
|
|
libcurl. Currently that is only the include path to the curl include files.
|
|
<DT id="4">--checkfor [version]<DD>
|
|
Specify the oldest possible libcurl version string you want, and this
|
|
script will return 0 if the current installation is new enough or it
|
|
returns 1 and outputs a text saying that the current version is not new
|
|
enough. (Added in 7.15.4)
|
|
<DT id="5">--configure<DD>
|
|
Displays the arguments given to configure when building curl.
|
|
<DT id="6">--feature<DD>
|
|
Lists what particular main features the installed libcurl was built with. At
|
|
the time of writing, this list may include SSL, KRB4 or IPv6. Do not assume
|
|
any particular order. The keywords will be separated by newlines. There may be
|
|
none, one, or several keywords in the list.
|
|
<DT id="7">--help<DD>
|
|
Displays the available options.
|
|
<DT id="8">--libs<DD>
|
|
Shows the complete set of libs and other linker options you will need in order
|
|
to link your application with libcurl.
|
|
<DT id="9">--prefix<DD>
|
|
This is the prefix used when libcurl was installed. Libcurl is then installed
|
|
in $prefix/lib and its header files are installed in $prefix/include and so
|
|
on. The prefix is set with "configure --prefix".
|
|
<DT id="10">--protocols<DD>
|
|
Lists what particular protocols the installed libcurl was built to support. At
|
|
the time of writing, this list may include HTTP, HTTPS, FTP, FTPS, FILE,
|
|
TELNET, LDAP, DICT. Do not assume any particular order. The protocols will
|
|
be listed using uppercase and are separated by newlines. There may be none,
|
|
one, or several protocols in the list. (Added in 7.13.0)
|
|
<DT id="11">--ssl-backends<DD>
|
|
Lists the SSL backends that were enabled when libcurl was built. It might be
|
|
no, one or several names. If more than one name, they will appear
|
|
comma-separated. (Added in 7.58.0)
|
|
<DT id="12">--static-libs<DD>
|
|
Shows the complete set of libs and other linker options you will need in order
|
|
to link your application with libcurl statically. (Added in 7.17.1)
|
|
<DT id="13">--version<DD>
|
|
Outputs version information about the installed libcurl.
|
|
<DT id="14">--vernum<DD>
|
|
Outputs version information about the installed libcurl, in numerical mode.
|
|
This outputs the version number, in hexadecimal, with 8 bits for each part;
|
|
major, minor, patch. So that libcurl 7.7.4 would appear as 070704 and libcurl
|
|
12.13.14 would appear as 0c0d0e... Note that the initial zero might be
|
|
omitted. (This option was broken in the 7.15.0 release.)
|
|
</DL>
|
|
<A NAME="lbAF"> </A>
|
|
<H2>EXAMPLES</H2>
|
|
|
|
What linker options do I need when I link with libcurl?
|
|
<P>
|
|
<BR> $ curl-config --libs
|
|
<P>
|
|
What compiler options do I need when I compile using libcurl functions?
|
|
<P>
|
|
<BR> $ curl-config --cflags
|
|
<P>
|
|
How do I know if libcurl was built with SSL support?
|
|
<P>
|
|
<BR> $ curl-config --feature | grep SSL
|
|
<P>
|
|
What's the installed libcurl version?
|
|
<P>
|
|
<BR> $ curl-config --version
|
|
<P>
|
|
How do I build a single file with a one-line command?
|
|
<P>
|
|
<BR> $ `curl-config --cc --cflags` -o example example.c `curl-config --libs`
|
|
<A NAME="lbAG"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?1+curl">curl</A></B>(1)
|
|
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="15"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="16"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="17"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="18"><A HREF="#lbAE">OPTIONS</A><DD>
|
|
<DT id="19"><A HREF="#lbAF">EXAMPLES</A><DD>
|
|
<DT id="20"><A HREF="#lbAG">SEE ALSO</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:05:09 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|