2 # Heimdal: krb5-config.in,v 1.9 2002/09/09 22:29:06 joda Exp
3 # $NetBSD: krb5-config,v 1.1 2006/01/26 22:46:15 markd Exp $
12 if test $# -eq 0; then
24 echo "heimdal @HEIMDAL_VERSION@"
28 prefix
=`echo $i | sed 's/^--prefix=//'`
34 exec_prefix
=`echo $i | sed 's/^--exec-prefix=//'`
58 echo "unknown option: $i"
64 if test "$do_usage" = "yes"; then
65 echo "usage: $0 [options] [libraries]"
66 echo "options: [--prefix[=dir]] [--exec-prefix[=dir]] [--libs] [--cflags]"
67 echo "libraries: krb5 gssapi kadm-client kadm-server"
71 if test "$prefix" = ""; then
74 if test "$exec_prefix" = ""; then
78 if test "$print_prefix" = "yes"; then
82 if test "$print_exec_prefix" = "yes"; then
86 if test "$do_libs" = "yes"; then
87 lib_flags
="-L/usr/lib"
90 lib_flags
="$lib_flags -lgssapi"
93 lib_flags
="$lib_flags -lkadm5clnt"
96 lib_flags
="$lib_flags -lkadm5srv"
99 lib_flags
="$lib_flags -lkrb5 -lasn1 -ldes -lroken"
100 lib_flags
="$lib_flags -lcrypto -lcom_err"
103 if test "$do_cflags" = "yes"; then
104 echo "-I/usr/include/gssapi -I/usr/include/krb5"