gtk+3: fix dependencies for new gnome/accessibility/at-spi2-core
[oi-userland.git] / components / web / curl / Solaris / curl-config
blob92d2612913d7dfbe42465cca37dd95792900961f
1 #! /bin/sh
2 #***************************************************************************
3 # _ _ ____ _
4 # Project ___| | | | _ \| |
5 # / __| | | | |_) | |
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 ###########################################################################
26 prefix=/usr
27 exec_prefix=${prefix}
28 includedir=${prefix}/include/curl
30 usage()
32 cat <<EOF
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
39 --cc compiler
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)
51 EOF
53 exit $1
56 if test $# -eq 0; then
57 usage 1
60 while test $# -gt 0; do
61 case "$1" in
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]*=//'` ;;
66 *) value= ;;
67 esac
69 case "$1" in
70 --built-shared)
71 echo yes
74 --ca)
75 echo ""
78 --cc)
79 echo "${CC}"
82 --prefix)
83 echo "$prefix"
86 --feature|--features)
87 for feature in SSL IPv6 libz IDN NTLM ""; do
88 test -n "$feature" && echo "$feature"
89 done
92 --protocols)
93 for protocol in DICT FILE FTP FTPS GOPHER HTTP HTTPS IMAP IMAPS LDAP POP3 POP3S RTSP SMTP SMTPS TELNET TFTP; do
94 echo "$protocol"
95 done
98 --version)
99 echo libcurl 7.21.2
100 exit 0
103 --checkfor)
104 checkfor=$2
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
115 # silent success
116 exit 0
117 else
118 echo "requested version $checkfor is newer than existing 7.21.2"
119 exit 1
123 --vernum)
124 echo 071502
125 exit 0
128 --help)
129 usage 0
132 --cflags)
133 echo "-I${prefix}/include/curl"
136 --libs)
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
141 --static-libs)
142 echo "Static libcurl 7.21.2 is not available."
145 --configure)
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"
151 usage 1
153 esac
154 shift
155 done
157 exit 0