3
# Copyright 2001, 2002, 2003 by the Massachusetts Institute of Technology.
6
# Export of this software from the United States of America may
7
# require a specific license from the United States Government.
8
# It is the responsibility of any person or organization contemplating
9
# export to obtain such a license before exporting.
11
# WITHIN THAT CONSTRAINT, permission to use, copy, modify, and
12
# distribute this software and its documentation for any purpose and
13
# without fee is hereby granted, provided that the above copyright
14
# notice appear in all copies and that both that copyright notice and
15
# this permission notice appear in supporting documentation, and that
16
# the name of M.I.T. not be used in advertising or publicity pertaining
17
# to distribution of the software without specific, written prior
18
# permission. Furthermore if you modify this software you must label
19
# your software as modified software and not distribute it in such a
20
# fashion that it might be confused with the original M.I.T. software.
21
# M.I.T. makes no representations about the suitability of
22
# this software for any purpose. It is provided "as is" without express
23
# or implied warranty.
27
# Configurable parameters set by autoconf
28
version_string="Kerberos 5 release @KRB5_VERSION@"
31
exec_prefix=@exec_prefix@
32
includedir=@includedir@
35
KDB5_DB_LIB=@KDB5_DB_LIB@
37
RPATH_FLAG='@RPATH_FLAG@'
38
PROG_RPATH_FLAGS='@PROG_RPATH_FLAGS@'
39
PTHREAD_CFLAGS='@PTHREAD_CFLAGS@'
45
# Defaults for program
49
vendor_string="Massachusetts Institute of Technology"
52
# Yes, we are sloppy, library specifications can come before options
53
while test $# != 0; do
98
echo "$0: Unknown option \`$1' -- use \`--help' for usage"
104
# If required options - provide help
105
if test -z "$do_all" -a -z "$do_version" -a -z "$do_vendor" -a -z "$do_prefix" -a -z "$do_vendor" -a -z "$do_exec_prefix" -a -z "$do_cflags" -a -z "$do_libs"; then
110
if test -n "$do_help"; then
111
echo "Usage: $0 [OPTIONS] [LIBRARIES]"
113
echo " [--help] Help"
114
echo " [--all] Display version, vendor, and various values"
115
echo " [--version] Version information"
116
echo " [--vendor] Vendor information"
117
echo " [--prefix] Kerberos installed prefix"
118
echo " [--exec-prefix] Kerberos installed exec_prefix"
119
echo " [--cflags] Compile time CFLAGS"
120
echo " [--libs] List libraries required to link [LIBRARIES]"
122
echo " krb5 Kerberos 5 application"
123
echo " gssapi GSSAPI application with Kerberos 5 bindings"
124
echo " kadm-client Kadmin client"
125
echo " kadm-server Kadmin server"
126
echo " kdb Application that accesses the kerberos database"
130
if test -n "$do_all"; then
136
title_version="Version: "
137
title_prefix="Prefix: "
138
title_exec_prefix="Exec_prefix: "
139
title_vendor="Vendor: "
144
if test -n "$do_version"; then
145
echo "$title_version$version_string"
149
if test -n "$do_vendor"; then
150
echo "$title_vendor$vendor_string"
154
if test -n "$do_prefix"; then
155
echo "$title_prefix$prefix"
159
if test -n "$do_exec_prefix"; then
160
echo "$title_exec_prefix$exec_prefix"
164
if test -n "$do_cflags"; then
165
if test x"$includedir" != x"/usr/include" ; then
166
echo "-I${includedir}"
173
if test -n "$do_libs"; then
174
# Assumes /usr/lib is the standard library directory everywhere...
175
if test "$libdir" = /usr/lib; then
178
libdirarg="-L$libdir"
180
# Ugly gross hack for our build tree
181
lib_flags=`echo $CC_LINK | sed -e 's/\$(CC)//' \
183
-e 's#\$(PROG_RPATH_FLAGS)#'"$PROG_RPATH_FLAGS"'#' \
184
-e 's#\$(PROG_RPATH)#'$libdir'#' \
185
-e 's#\$(PROG_LIBPATH)#'$libdirarg'#' \
186
-e 's#\$(RPATH_FLAG)#'"$RPATH_FLAG"'#' \
187
-e 's#\$(LDFLAGS)#'"$LDFLAGS"'#' \
188
-e 's#\$(PTHREAD_CFLAGS)#'"$PTHREAD_CFLAGS"'#' \
191
if test $library = 'kdb'; then
192
lib_flags="$lib_flags -lkdb5 $KDB5_DB_LIB"
196
if test $library = 'kadm_server'; then
197
lib_flags="$lib_flags -lkadm5srv_mit -lkdb5 $KDB5_DB_LIB"
201
if test $library = 'kadm_client'; then
202
lib_flags="$lib_flags -lkadm5clnt_mit"
206
if test $library = 'kadm_common'; then
207
lib_flags="$lib_flags -lgssrpc"
211
if test $library = 'gssapi'; then
212
lib_flags="$lib_flags -lgssapi_krb5"
216
if test $library = 'krb5'; then
217
lib_flags="$lib_flags -lkrb5 -lk5crypto -lcom_err"
220
# If we ever support a flag to generate output suitable for static
221
# linking, we would output "-lkrb5support $GEN_LIB $LIBS $DL_LIB"