~ubuntu-branches/ubuntu/saucy/clamav/saucy

1 by Stephen Gran
Import upstream version 0.73
1
#! /bin/sh
2
# Originally from libxml, Copyright (C) Daniel Veillard
3
4
prefix=@prefix@
5
exec_prefix=@exec_prefix@
6
includedir=@includedir@
7
libdir=@libdir@
8
9
usage()
10
{
11
    cat <<EOF
12
Usage: clamav-config [OPTION]
13
14
Known values for OPTION are:
15
16
  --prefix=DIR		change libclamav prefix [default $prefix]
17
  --libs		print library linking information
18
  --cflags		print pre-processor and compiler flags
19
  --help		display this help and exit
20
  --version		output version information
21
EOF
22
23
    exit $1
24
}
25
26
if test $# -eq 0; then
27
    usage 1
28
fi
29
30
cflags=false
31
libs=false
32
33
while test $# -gt 0; do
34
    case "$1" in
35
    -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
36
    *) optarg= ;;
37
    esac
38
39
    case "$1" in
40
    --prefix=*)
41
	prefix=$optarg
42
	;;
43
44
    --prefix)
45
	echo $prefix
46
	;;
47
48
    --version)
49
	echo @VERSION@
50
	exit 0
51
	;;
52
53
    --help)
54
	usage 0
55
	;;
56
57
    --cflags)
58
       	echo -I@includedir@ @CFLAGS@
59
       	;;
60
61
    --libs)
62
       	echo -L@libdir@ @LIBCLAMAV_LIBS@
63
       	;;
64
65
    *)
66
	usage
67
	exit 1
68
	;;
69
    esac
70
    shift
71
done
72
73
exit 0
74