2 # $Heimdal: krb5-config.in 20528 2007-04-22 13:22:16Z lha $
12 if test $# -eq 0; then
24 echo "@PACKAGE@ @VERSION@"
25 echo '$Id: krb5-config.in,v 1.3 2008/03/22 08:37:24 mlelstv Exp $'
29 prefix
=`echo $i | sed 's/^--prefix=//'`
35 exec_prefix
=`echo $i | sed 's/^--exec-prefix=//'`
62 echo "unknown option: $i"
68 if test "$do_usage" = "yes"; then
69 echo "usage: $0 [options] [libraries]"
70 echo "options: [--prefix[=dir]] [--exec-prefix[=dir]] [--libs] [--cflags]"
71 echo "libraries: krb5 gssapi kadm-client kadm-server kafs"
75 if test "$prefix" = ""; then
78 if test "$exec_prefix" = ""; then
79 exec_prefix
=@exec_prefix@
83 includedir
=@includedir@
85 if test "$print_prefix" = "yes"; then
89 if test "$print_exec_prefix" = "yes"; then
93 if test "$do_libs" = "yes"; then
94 lib_flags
="-L${libdir}"
97 lib_flags
="$lib_flags -lgssapi -lheimntlm"
100 lib_flags
="$lib_flags -lkadm5clnt"
103 lib_flags
="$lib_flags -lkadm5srv @LIB_dbopen@"
106 lib_flags
="$lib_flags -lkafs"
109 lib_flags
="$lib_flags -lkrb5 @LIB_pkinit@ -lcom_err"
110 lib_flags
="$lib_flags @LIB_hcrypto_appl@ -lasn1 -lroken"
111 lib_flags
="$lib_flags @LIB_crypt@ @LIB_dlopen@"
112 lib_flags
="$lib_flags @LIB_door_create@ @LIBS@"
115 if test "$do_cflags" = "yes"; then
116 echo "-I${includedir} @INCLUDE_hcrypto@"