#!/bin/sh

prefix="/usr"
exec_prefix="/usr"
VERSION="1.6.1"
CFLAGS="-Wwrite-strings -W -Wall -O2 -g -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE"
CPPFLAGS=""
LDFLAGS=""
LIBS="-lnsl  -lcrypto"
LIBDIR="/usr/lib64"
INCLUDEDIR="/usr/include"

for arg in $@
do
    if [ $arg = "--cflags" ]
    then
        echo "-I${INCLUDEDIR}"
    fi
    if [ $arg = "--libs" ]
    then
        echo "${LDFLAGS} -L${LIBDIR} ${LIBS} -lldns"
    fi
    if [ $arg = "-h" ] || [ $arg = "--help" ]
    then
        echo "Usage: $0 [--cflags] [--libs] [--version]"
    fi
    if [ $arg = "--version" ]
    then
        echo "${VERSION}"
    fi
done
