curl-config(1)
Hey bestie! Welcome to the curl-config(1) manual page from the curl-config manualβit's all about curl-config, the little script that gives you the 411 on your libcurl installation. πΈ
π NAME π
curl-config β get the 411 on a libcurl installation. Periodt. π
β¨ SYNOPSIS β¨
curl-config [options]
That's the whole vibe. Just run it with some options and it'll give you what you need. β¨
πΈ DESCRIPTION πΈ
Okay so basically, curl-config displays all the info about your curl and libcurl installation. It's literally your bestie for figuring out what's what with your libcurl setup. π¦
π OPTIONS π
--caβ Displays the built-in path to the CA cert bundle that this libcurl uses. Like, where it keeps its trusty certs. π--ccβ Shows you the compiler that was used to build libcurl. Ngl, kinda iconic to know. π»--cflagsβ Gives you the set of compiler options (CFLAGS) to use when compiling files that use libcurl. Currently that's only the include path to the curl include files. So like, just the include path, no cap. π--checkfor [version]β You specify the oldest possible libcurl version string you want, and this script will return0if the current installation is new enough. Or it returns1and outputs a text saying that the current version is not new enough. (Added in 7.15.4) β³--configureβ Displays the arguments that were given to configure when building curl. Like, the receipts of how it was built. π§Ύ--featureβ 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. So like, check the vibes, but don't expect a specific order. π--helpβ Displays the available options. The classic "help me help you" move. π--libsβ Shows the complete set of libs and other linker options you will need in order to link your application with libcurl. It's giving linker realness. π--prefixβ This is the prefix used when libcurl was installed. Libcurl is then installed in$prefix/liband its header files are installed in$prefix/includeand so on. The prefix is set with"configure --prefix". So like, where everything lives. π--protocolsβ 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) π--ssl-backendsβ 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) π--static-libsβ 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) ποΈ--versionβ Outputs version information about the installed libcurl. The classic "what version are we on" tea. β--vernumβ 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, and patch. So that libcurl 7.7.4 would appear as070704and libcurl 12.13.14 would appear as0c0d0e...Note that the initial zero might be omitted. (This option was broken in the 7.15.0 release.) π’
β οΈ Heads up: this option was broken in the 7.15.0 release. Just so you know. π
π¦ EXAMPLES π¦
- What linker options do I need when I link with libcurl? π
$ curl-config --libs
- What compiler options do I need when I compile using libcurl functions? π€
$ curl-config --cflags
- How do I know if libcurl was built with SSL support? π
$ curl-config --feature | grep SSL
- What's the installed libcurl version? π¦
$ curl-config --version
- How do I build a single file with a one-line command? π οΈ
$ `curl-config --cc --cflags` -o example example.c `curl-config --libs`
π SEE ALSO π
Also check out curl(1)βthe main character of the curl universe. π
This page is from the curl-config manual, Curl 7.17.1, dated 25 Oct 2007. Hope that helps, bestie! πβ¨
π¦ where this page comes from
- nixos 26.05: libgnurl 7.72.0
- nixpkgs unstable: libgnurl 7.72.0
- Copyright (C) 1998 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms