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 --feature newline separated list of enabled features
23 --help display this help and exit
24 --libs library linking information
25 --prefix curl install prefix
26 --version output version information
27 --vernum output the version information as a number (hexadecimal)
33 if test $# -eq 0; then
37 while test $# -gt 0; do
39 # this deals with options in the style
40 # --option=value and extracts the value part
41 # [not currently used]
42 -*=*) value=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
60 if test "@OPENSSL_ENABLED@" = "1"; then
63 if test "@KRB4_ENABLED@" = "1"; then
66 if test "@IPV6_ENABLED@" = "1"; then
69 if test "@HAVE_LIBZ@" = "1"; then
72 if test "@CURL_DISABLE_HTTP@" = "1"; then
75 if test "@CURL_DISABLE_FTP@" = "1"; then
78 if test "@CURL_DISABLE_GOPHER@" = "1"; then
79 echo "GOPHER-disabled"
81 if test "@CURL_DISABLE_FILE@" = "1"; then
84 if test "@CURL_DISABLE_TELNET@" = "1"; then
85 echo "TELNET-disabled"
87 if test "@CURL_DISABLE_LDAP@" = "1"; then
90 if test "@CURL_DISABLE_DICT@" = "1"; then
93 if test "@HAVE_ARES@" = "1"; then
99 echo libcurl @VERSION@
113 if test "X@includedir@" = "X/usr/include"; then
116 echo "-I@includedir@"
121 echo -L@libdir@ -lcurl @LDFLAGS@ @LIBS@
125 echo "unknown option: $1"