#!/bin/sh

prefix="/usr"
exec_prefix="/usr"
VERSION="1.6.10"
CFLAGS="-Wwrite-strings -W -Wall -O2 -g -O2 -fno-strict-aliasing -fwrapv -march=i686 -mtune=pentium4 -gdwarf-3 -g2  -D_GNU_SOURCE"
CPPFLAGS="-D_FORTIFY_SOURCE=2   "
LDFLAGS="-Wl,--as-needed -Wl,--no-copy-dt-needed-entries -Wl,-z,relro -Wl,-z,combreloc   "
LIBS="  -lcrypto -ldl"
LIBDIR="/usr/lib"
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
