diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2020-12-06 21:07:44 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2020-12-06 21:07:44 +0000 |
commit | 46b44d5f433764fb7976da47f449b35d31b04098 (patch) | |
tree | 5ad4103bc63ec63867434a2a65b355dcf27b5d87 /doc/libutmps/index.html | |
parent | 84a2d25e5995a55729b27cbd0502b5cb2745e554 (diff) | |
download | utmps-46b44d5f433764fb7976da47f449b35d31b04098.tar.xz |
Prepare for 0.1.0.0; don't install utmpx.h by default
New --enable-libc-includes configure option to overwrite the
system utmpx.h
Diffstat (limited to 'doc/libutmps/index.html')
-rw-r--r-- | doc/libutmps/index.html | 25 |
1 files changed, 22 insertions, 3 deletions
diff --git a/doc/libutmps/index.html b/doc/libutmps/index.html index f2fb86f..dc41fda 100644 --- a/doc/libutmps/index.html +++ b/doc/libutmps/index.html @@ -35,6 +35,17 @@ interface, which in utmps is implemented as a series of thin wrappers around the utmps library. </p> +<p> + A suitable <tt>utmpx.h</tt> header can be found in the <tt>utmps/</tt> +subdirectory of +the header installation directory; if the <tt>--enable-libc-includes</tt> +option has been given to configure, it can also be found directly +in that directory. (Example: <tt>/usr/include/utmps/utmpz.h</tt> is +always installed, but if the option has been given at nsss build time, +<tt>/usr/include/utmpx.h</tt> is also installed and replaces the +version provided by the libc.) +</p> + <h2> Compiling </h2> <ul> @@ -42,9 +53,17 @@ around the utmps library. are visible in your header search path. </li> <li> Use <tt>#include <utmps/utmps.h></tt> </li> <li> To use the standard <tt>utmpx.h</tt> interface, you can -just <tt>#include <utmpx.h></tt>, which will work as long -as the <tt>utmps/utmpx.h</tt> header is accessible in your header -search path. </li> +just <tt>#include <utmpx.h></tt>, which will work: + <ul> + <li> either if the <tt>--enable-libc-includes</tt> option +has been given at utmps build time </li> + <li> or if you give the <tt>-I/usr/include/utmps</tt> option +to your compiler. (Depending on your standard header location, +specify that the header search path should include the +<tt>utmps</tt> subdirectory of that location.) This is useful when +the administrator did not want to overwrite the libc-provided +<tt>utmpx.h</tt> file when they installed utmps. </li> + </ul> </li> </ul> <h2> Linking </h2> |