#!/bin/sh

prefix=/usr/pkg

PKGLIBDIR=/usr/pkg/lib/c_icap/
LIBDIR=/usr/pkg/lib/
CONFIGDIR=/usr/pkg/etc/
DATADIR=/usr/pkg/share/c_icap/
#LOGDIR=
SOCKDIR=/var/run/c-icap

INCDIR=/usr/pkg/include
INCDIR2=/usr/pkg/include/c_icap

VERSION=0.5.5

CFLAGS="-I/usr/pkg/include -D_REENTRANT -O2 -I/usr/pkg/include/db4 -I/usr/include -DLDAP_DEPRECATED -I/usr/pkg/include -Wall -D_FILE_OFFSET_BITS=64"
LIBS="-L$LIBDIR -licapapi "
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;
