curl-config.1 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. .\" You can view this file with:
  2. .\" nroff -man curl-config.1
  3. .\" Written by Daniel Stenberg
  4. .\"
  5. .TH curl-config 1 "8 Oct 2002" "Curl 7.10" "curl-config manual"
  6. .SH NAME
  7. curl-config \- Get information about a libcurl installation
  8. .SH SYNOPSIS
  9. .B curl-config [options]
  10. .SH DESCRIPTION
  11. .B curl-config
  12. displays information about a previous curl and libcurl installation.
  13. .SH OPTIONS
  14. .IP "--ca"
  15. Displays the built-in path to the CA cert bundle this libcurl uses.
  16. .IP "--cc"
  17. Displays the compiler used to build libcurl.
  18. .IP "--cflags"
  19. Set of compiler options (CFLAGS) to use when compiling files that use
  20. libcurl. Currently that is only thw include path to the curl include files.
  21. .IP "--feature"
  22. Lists what particular main features the installed libcurl was built with. At
  23. the time of writing, this list may include SSL, KRB4 or IPv6. Do not assume
  24. any particular order. The keywords will be separated by newlines. There may be
  25. none, one or several keywords in the list.
  26. .IP "--help"
  27. Displays the available options.
  28. .IP "--libs"
  29. Shows the complete set of libs and other linker options you will need in order
  30. to link your application with libcurl.
  31. .IP "--prefix"
  32. This is the prefix used when libcurl was installed. Libcurl is then installed
  33. in $prefix/lib and its header files are installed in $prefix/include and so
  34. on. The prefix is set with "configure --prefix".
  35. .IP "--version"
  36. Outputs version information about the installed libcurl.
  37. .IP "--vernum"
  38. Outputs version information about the installed libcurl, in numerical mode.
  39. This outputs the version number, in hexadecimal, with 8 bits for each part;
  40. major, minor, patch. So that libcurl 7.7.4 would appear as 070704 and libcurl
  41. 12.13.14 would appear as 0c0d0e...
  42. .SH "EXAMPLES"
  43. What linker options do I need when I link with libcurl?
  44. $ curl-config --libs
  45. What compiler options do I need when I compile using libcurl functions?
  46. $ curl-config --cflags
  47. How do I know if libcurl was built with SSL support?
  48. $ curl-config --feature | grep SSL
  49. What's the installed libcurl version?
  50. $ curl-config --version
  51. How do I build a single file with a one-line command?
  52. $ `curl-config --cc --cflags --libs` -o example example.c
  53. .SH "SEE ALSO"
  54. .BR curl (1)