File: c-icap-libicapapi-config.in

package info (click to toggle)
c-icap 1:0.5.3-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 3,600 kB
  • sloc: ansic: 27,220; sh: 4,415; makefile: 242; perl: 95; awk: 10
file content (47 lines) | stat: -rw-r--r-- 740 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/bin/sh

prefix=@prefix@

PKGLIBDIR=@PKGLIBDIR@/
LIBDIR=@LIBDIR@/
CONFIGDIR=@SYSCONFDIR@/
DATADIR=@PKGDATADIR@/
#LOGDIR=
SOCKDIR=@SOCKDIR@

INCDIR=@INCLUDEDIR@
INCDIR2=@PKGINCLUDEDIR@

VERSION=@PACKAGE_VERSION@

CFLAGS="@CFLAGS@"
LIBS="-L$LIBDIR -licapapi @EXT_PROGRAMS_LIBADD@"
LDFLAGS=""


usage()
{
   cat <<EOTXT
Usage: c-icap-libicapapi-config [OPTIONS]

Where OPTION one of the following:
   --cflags		print preprocessor and compiler flags
   --libs		print linker flags
   --version		print the c-icap library  version
EOTXT
}


case $1 in
    '--cflags')
        echo $CFLAGS" -I"$INCDIR" -I"$INCDIR2;
        ;;
    '--libs')
       echo $LIBS;
       ;;
    '--version')
       echo $VERSION;
       ;;
    *)
        usage
esac;