xref: /freebsd/contrib/ldns/packaging/ldns-config.in (revision 63a938566d524836885917d95bd491aa4400b181)
1#!/bin/sh
2
3prefix="@prefix@"
4exec_prefix="@exec_prefix@"
5VERSION="@PACKAGE_VERSION@"
6CFLAGS="@CFLAGS@"
7CPPFLAGS="@CPPFLAGS@ @LIBSSL_CPPFLAGS@ @PYTHON_CPPFLAGS@"
8LDFLAGS="@LDFLAGS@ @LIBSSL_LDFLAGS@ @PYTHON_LDFLAGS@"
9LIBS="@LIBS@ @LIBSSL_LIBS@"
10LIBDIR="@libdir@"
11INCLUDEDIR="@includedir@"
12
13for arg in $@
14do
15    if [ $arg = "--cflags" ]
16    then
17        echo "-I${INCLUDEDIR}"
18    fi
19    if [ $arg = "--libs" ]
20    then
21        echo "${LDFLAGS} -L${LIBDIR} ${LIBS} -lldns"
22    fi
23    if [ $arg = "-h" ] || [ $arg = "--help" ]
24    then
25        echo "Usage: $0 [--cflags] [--libs] [--version]"
26    fi
27    if [ $arg = "--version" ]
28    then
29        echo "${VERSION}"
30    fi
31done
32