Merge pull request #240 from t-b/update_openssl_to_101i
[msysgit.git] / bin / neon-config
blob45aef655d6aaaa36116a63595a9ea7af5aa4609f
1 #! /bin/sh
2 # Originally from libxml, Copyright (C) Daniel Veillard
3 # Modifications for neon Copyright (C) 2000-2005 Joe Orton.
5 prefix=
6 exec_prefix=${prefix}
7 includedir=${prefix}/include
8 libdir=${exec_prefix}/lib
10 usage()
12 cat <<EOF
13 Usage: neon-config [OPTION]
15 Known values for OPTION are:
17 --prefix=DIR change neon prefix [default $prefix]
18 --libs print library linking information
19 --la-file print location of libtool .la file
20 --cflags print pre-processor and compiler flags
21 --help display this help and exit
22 --version output version information
23 --support FEATURE exit with success if feature is supported
24 Known features: dav [yes], ssl [yes], zlib [yes], ipv6 [], lfs [no]
26 EOF
28 exit $1
31 support()
33 if test "$1" = "yes"; then
34 exit 0
35 else
36 exit 1
40 if test $# -eq 0; then
41 usage 1
44 while test $# -gt 0; do
45 case "$1" in
46 -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
47 *) optarg= ;;
48 esac
50 case "$1" in
51 --prefix=*)
52 prefix=$optarg
55 --prefix)
56 echo $prefix
59 --version)
60 echo neon 0.25.5
61 exit 0
64 --help)
65 usage 0
68 --cflags)
69 echo -I${includedir}/neon
72 --libs)
73 LIBS="-lneon -lssl -lcrypto -lz"
74 # Don't add standard library paths
75 if test "$prefix" != "/usr"; then
76 LIBS="-L${libdir} ${LIBS}"
78 echo ${LIBS}
81 --la-file)
82 echo ${libdir}/libneon.la
85 --support)
86 shift
88 case "$1" in
89 ssl|SSL) support yes ;;
90 zlib|ZLIB) support yes ;;
91 ipv6|IPV6) support ;;
92 dav|DAV) support yes ;;
93 lfs|LFS) support no ;;
94 *) support no ;;
95 esac
99 usage 1 1>&2
101 esac
102 shift
103 done
105 exit 0