curl-config(1)

πŸ“¦ version 7.72.0, in nixos 26.05, nixpkgs unstable

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 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) ⏳
  • --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/lib and its header files are installed in $prefix/include and 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 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.) πŸ”’
⚠️ Heads up: this option was broken in the 7.15.0 release. Just so you know. πŸ’€

πŸ¦‹ EXAMPLES πŸ¦‹

  1. What linker options do I need when I link with libcurl? πŸ’­
$ curl-config --libs
  1. What compiler options do I need when I compile using libcurl functions? πŸ€”
$ curl-config --cflags
  1. How do I know if libcurl was built with SSL support? πŸ”
$ curl-config --feature | grep SSL
  1. What's the installed libcurl version? πŸ“¦
$ curl-config --version
  1. 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