#!/bin/sh

prefix=/usr

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

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

VERSION=0.5.10

CFLAGS="-D_REENTRANT -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/c-icap-0.5.10=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -std=gnu17 -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;
