xref: /titanic_52/usr/src/man/man1/krb5-config.1 (revision 4a5d661a82b942b6538acd26209d959ce98b593a)
te
Copyright (c) 2009, Sun Microsystems, Inc. All Rights Reserved.
The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License. You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.
See the License for the specific language governing permissions and limitations under the License. When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with
the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
KRB5-CONFIG 1 "Aug 24, 2009"
NAME
krb5-config - link against the installed Kerberos libraries
SYNOPSIS

krb5-config
 [--all | --cflags | --exec-prefix | --help | --libs library |
 --prefix | --vendor | --version]
DESCRIPTION

krb5-config identifies and displays the special flags that are needed to compile and link programs against the installed Kerberos libraries.

OPTIONS

The following options are supported: --all

Displays the version, vendor, prefix and exec-prefix.

--cflags

Displays the compiler flags with which Kerberos was built.

--exec-prefix

Displays the exec-prefix with which Kerberos was built.

--help

Displays the usage message. This is the default.

--libs library

Displays compiler options required to link with library. The following library values are supported: krb5

Kerberos 5 application

--prefix

Displays the prefix with which Kerberos was built.

--vendor

Displays the vendor of the installed Kerberos implementation.

--version

Displays the version of the installed Kerberos implementation.

EXAMPLES

Example 1 Using the --cflags Option

The following example displays the C compiler flags needed to use libkrb5(3LIB):

% krb5-config --cflags
-I/usr/include/kerberosv5

Example 2 Using the--libs Option

The following example shows the C compiler options needed to link against libkrb5(3LIB):

% krb5-config --libs
-L/usr/lib -R/usr/lib -lkrb5
EXIT STATUS

The following exit values are returned: 0

Successful completion.

>0

An error occurred.

ATTRIBUTES

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPE ATTRIBUTE VALUE
Interface Stability Volatile
SEE ALSO

libgss(3LIB), libkrb5(3LIB), attributes(5)