Project

General

Profile

Bug #1295 ยป krb5-config.patch

Gordon Ross, 2012-02-09 08:21 PM

View differences:

krb5-config2 Thu Feb 9 15:19:53 2012
1 1
#!/bin/sh
2 2

  
3 3
#
4
# Copyright 2012 Nexenta Systems, Inc.  All rights reserved.
5
#
4 6
# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
5 7
# Use is subject to license terms.
6 8
#
......
87 89
	krb5)
88 90
	    library=krb5
89 91
	    ;;
92
	gssapi)
93
	    library=gssapi
94
	    ;;
90 95
	*)
91 96
	    echo "$0: Unknown option \`$1' -- use \`--help' for usage"
92 97
	    exit 1
......
152 157
fi
153 158

  
154 159
if test -n "$do_cflags"; then
160
    if test $library = 'gssapi'; then
161
	includedir=${prefix}/include/gssapi
162
    fi
163

  
155 164
    echo "-I${includedir}"
156 165
fi
157 166

  
......
188 197
    fi
189 198

  
190 199
    if test $library = 'gssapi'; then
191
	lib_flags="$lib_flags -lgssapi_krb5"
192
	library=krb5
200
	lib_flags="$lib_flags -lgss"
193 201
    fi
194 202

  
195 203
    if test $library = 'krb4'; then
    (1-1/1)