10 [**-**\ **-help** | **-**\ **-all** | **-**\ **-version** | **-**\ **-vendor** | **-**\ **-prefix** | **-**\ **-exec-prefix** | **-**\ **-defccname** | **-**\ **-defktname** | **-**\ **-defcktname** | **-**\ **-cflags** | **-**\ **-libs** [*libraries*]]
16 krb5-config tells the application programmer what flags to use to compile
17 and link programs against the installed Kerberos libraries.
24 prints a usage message. This is the default behavior when no options
28 prints the version, vendor, prefix, and exec-prefix.
31 prints the version number of the Kerberos installation.
34 prints the name of the vendor of the Kerberos installation.
37 prints the prefix for which the Kerberos installation was built.
39 **-**\ **-exec-prefix**
40 prints the prefix for executables for which the Kerberos installation
44 prints the built-in default credentials cache location.
47 prints the built-in default keytab location.
49 **-**\ **-defcktname**
50 prints the built-in default client (initiator) keytab location.
53 prints the compilation flags used to build the Kerberos installation.
55 **-**\ **-libs** [*library*]
56 prints the compiler options needed to link against *library*.
57 Allowed values for *library* are:
59 ============ ===============================================
60 krb5 Kerberos 5 applications (default)
61 gssapi GSSAPI applications with Kerberos 5 bindings
62 kadm-client Kadmin client
63 kadm-server Kadmin server
64 kdb Applications that access the Kerberos database
65 ============ ===============================================
70 krb5-config is particularly useful for compiling against a Kerberos
71 installation that was installed in a non-standard location. For example,
72 a Kerberos installation that is installed in ``/opt/krb5/`` but uses
73 libraries in ``/usr/local/lib/`` for text localization would produce
74 the following output::
76 shell% krb5-config --libs krb5
77 -L/opt/krb5/lib -Wl,-rpath -Wl,/opt/krb5/lib -L/usr/local/lib -lkrb5 -lk5crypto -lcom_err
83 :ref:`kerberos(7)`, cc(1)