2 #***************************************************************************
4 # Project ___| | | | _ \| |
6 # | (__| |_| | _ <| |___
7 # \___|\___/|_| \_\_____|
9 # Copyright (C) 2001 - 2010, Daniel Stenberg, <daniel@haxx.se>, et al.
11 # This software is licensed as described in the file COPYING, which
12 # you should have received as part of this distribution. The terms
13 # are also available at http://curl.haxx.se/docs/copyright.html.
15 # You may opt to use, copy, modify, merge, publish, distribute and/or sell
16 # copies of the Software, and permit persons to whom the Software is
17 # furnished to do so, under the terms of the COPYING file.
19 # This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
20 # KIND, either express or implied.
22 # Modified to conform to Solaris standards.
24 ###########################################################################
28 includedir
=${prefix}/include
/curl
33 Usage: curl-config [OPTION]
35 Available values for OPTION include:
37 --built-shared says 'yes' if libcurl was built shared
38 --ca ca bundle install path
40 --cflags pre-processor and compiler flags
41 --checkfor [version] check for (lib)curl of the specified version
42 --configure the arguments given to configure when building curl
43 --features newline separated list of enabled features
44 --help display this help and exit
45 --libs library linking information
46 --prefix curl install prefix
47 --protocols newline separated list of enabled protocols
48 --static-libs static libcurl library linking information
49 --version output version information
50 --vernum output the version information as a number (hexadecimal)
56 if test $# -eq 0; then
60 while test $# -gt 0; do
62 # this deals with options in the style
63 # --option=value and extracts the value part
64 # [not currently used]
65 -*=*) value
=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
87 for feature
in SSL IPv6 libz IDN NTLM
""; do
88 test -n "$feature" && echo "$feature"
93 for protocol
in DICT FILE FTP FTPS GOPHER HTTP HTTPS IMAP IMAPS LDAP POP3 POP3S RTSP SMTP SMTPS TELNET TFTP
; do
105 cmajor
=`echo $checkfor | cut -d. -f1`
106 cminor
=`echo $checkfor | cut -d. -f2`
107 # when extracting the patch part we strip off everything after a
108 # dash as that's used for things like version 1.2.3-CVS
109 cpatch
=`echo $checkfor | cut -d. -f3 | cut -d- -f1`
110 checknum
=`echo "$cmajor*256*256 + $cminor*256 + ${cpatch:-0}" | bc`
111 numuppercase
=`echo 071502 | tr 'a-f' 'A-F'`
112 nownum
=`echo "obase=10; ibase=16; $numuppercase" | bc`
114 if test "$nownum" -ge "$checknum"; then
118 echo "requested version $checkfor is newer than existing 7.21.2"
133 echo "-I${prefix}/include/curl"
137 CURLLIBDIR
="-L/usr/lib "
138 echo ${CURLLIBDIR} -R/usr
/lib
-lcurl -lgss -lidn -lssl -lcrypto -llber-2.4
-lldap_r-2.4
-lgss -lssl -lcrypto -lsocket -lnsl -lc -lz
142 echo "Static libcurl 7.21.2 is not available."
146 echo " '--prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--enable-shared' '--disable-static' '--enable-http' '--enable-ftp' '--enable-file' '--enable-dict' '--enable-manual' '--disable-libgcc' '--enable-rtsp' '--enable-proxy' '--enable-telnet' '--enable-tftp' '--enable-pop3' '--enable-imap' '--enable-smtp' '--enable-ipv6' '--enable-nonblocking' '--enable-thread' '--enable-verbose' '--disable-sspi' '--enable-crypto-auth' '--enable-cookies' '--disable-hidden-symbols' '--disable-soname-bump' '--enable-ldap' '--with-random=/dev/urandom' '--with-ssl' '--with-ldap-lib=ldap_r-2.4' '--with-lber-lib=lber-2.4' '--with-gssapi-includes=/usr/include/gssapi' '--with-gssapi-libs=/usr/lib' '--with-gssapi=/usr' '--with-ca-bundle=/etc/certs/CA' '--with-zlib=/usr' '--with-libidn=/usr' '--with-pic' 'curl_disallow_getifaddrs=yes'"
150 echo "unknown option: $1"