3 # Copyright (C) 2004, 2007, 2012, 2013, 2015 Internet Systems Consortium, Inc. ("ISC")
4 # Copyright (C) 2000, 2001, 2003 Internet Software Consortium.
6 # Permission to use, copy, modify, and/or distribute this software for any
7 # purpose with or without fee is hereby granted, provided that the above
8 # copyright notice and this permission notice appear in all copies.
10 # THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
11 # REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
12 # AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
13 # INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
14 # LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
15 # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
16 # PERFORMANCE OF THIS SOFTWARE.
18 # $Id: isc-config.sh.in,v 1.17 2007/06/19 23:46:59 tbox Exp $
21 exec_prefix=@exec_prefix@
23 includedir=@includedir@
29 Usage: isc-config [OPTIONS] [LIBRARIES]
48 if test $# -eq 0; then
52 while test $# -gt 0; do
54 -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
61 if test "x$exec_prefix_set" = x ; then
122 if test x"$echo_prefix" = x"true" ; then
125 if test x"$echo_exec_prefix" = x"true" ; then
128 if test x"$echo_cflags" = x"true"; then
129 if test x"${exec_prefix_set}" = x"true"; then
130 includes="-I${exec_prefix}/include"
132 includes="-I${includedir}"
134 if test x"$libisc" = x"true"; then
135 includes="$includes @ALWAYS_DEFINES@ @STD_CINCLUDES@ @STD_CDEFINES@ @CCOPT@"
139 if test x"$echo_libs" = x"true"; then
140 if test x"${exec_prefix_set}" = x"true"; then
141 libs="-L${exec_prefix}/lib"
145 if test x"$libirs" = x"true" ; then
148 if test x"$liblwres" = x"true" ; then
151 if test x"$libbind9" = x"true" ; then
154 if test x"$libdns" = x"true" ; then
155 libs="$libs -ldns @DNS_CRYPTO_LIBS@"
157 if test x"$libisccfg" = x"true" ; then
158 libs="$libs -lisccfg"
160 if test x"$libisccc" = x"true" ; then
163 if test x"$libisc" = x"true" ; then
167 if test x"$needothers" = x"true" ; then
168 libs="$libs @CCOPT@ @LIBS@"