3 # The idea to this kind of setup info script was stolen from numerous
4 # other packages, such as neon, libxml and gnome.
9 exec_prefix=@exec_prefix@
10 includedir=@includedir@
15 Usage: curl-config [OPTION]
17 Available values for OPTION include:
19 --ca ca bundle install path
21 --cflags pre-processor and compiler flags
22 --features newline separated list of enabled features
23 --protocols newline separated list of enabled protocols
24 --help display this help and exit
25 --libs library linking information
26 --prefix curl install prefix
27 --version output version information
28 --vernum output the version information as a number (hexadecimal)
34 if test $# -eq 0; then
38 while test $# -gt 0; do
40 # this deals with options in the style
41 # --option=value and extracts the value part
42 # [not currently used]
43 -*=*) value=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
49 echo "@CURL_CA_BUNDLE@"
61 if test "@USE_SSLEAY@" = "1"; then
64 if test "@KRB4_ENABLED@" = "1"; then
67 if test "@IPV6_ENABLED@" = "1"; then
70 if test "@HAVE_LIBZ@" = "1"; then
73 if test "@HAVE_ARES@" = "1"; then
79 if test "@CURL_DISABLE_HTTP@" != "1"; then
81 if test "@USE_SSLEAY@" = "1"; then
85 if test "@CURL_DISABLE_FTP@" != "1"; then
87 if test "@USE_SSLEAY@" = "1"; then
91 if test "@CURL_DISABLE_GOPHER@" != "1"; then
94 if test "@CURL_DISABLE_FILE@" != "1"; then
97 if test "@CURL_DISABLE_TELNET@" != "1"; then
100 if test "@CURL_DISABLE_LDAP@" != "1"; then
103 if test "@CURL_DISABLE_DICT@" != "1"; then
108 echo libcurl @VERSION@
122 if test "X@includedir@" = "X/usr/include"; then
125 echo "-I@includedir@"
130 echo -L@libdir@ -lcurl @LDFLAGS@ @LIBS@
134 echo "unknown option: $1"