diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2016-04-03 23:55:38 +0100 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2016-04-03 23:55:38 +0100 |
commit | 75b2c1693e66d624ef0c012b3b811d08a42ba722 (patch) | |
tree | 3a89ebd1eb27156bcf0bf369d6e10c2e828656ab | |
parent | 5658b628b9bf1c1e0bd5856736332ce8b9c51517 (diff) | |
download | rtmux-75b2c1693e66d624ef0c012b3b811d08a42ba722.tar.gz rtmux-75b2c1693e66d624ef0c012b3b811d08a42ba722.tar.bz2 rtmux-75b2c1693e66d624ef0c012b3b811d08a42ba722.zip |
Add --disable-utempter to build without it.
-rw-r--r-- | README | 3 | ||||
-rw-r--r-- | configure.ac | 24 |
2 files changed, 19 insertions, 8 deletions
@@ -15,6 +15,9 @@ To build tmux from a release tarball, do: $ ./configure && make $ sudo make install +By default, tmux will use the utempter library to update utmp(5), if it is +installed. Run configure with --disable-utempter to disable this. + To get and build the latest from version control: $ git clone https://github.com/tmux/tmux.git diff --git a/configure.ac b/configure.ac index 8ce20632..ad44899f 100644 --- a/configure.ac +++ b/configure.ac @@ -167,16 +167,24 @@ if test "x$found_curses" = xno; then fi # Look for utempter. -AC_CHECK_HEADER(utempter.h, found_utempter=yes, found_utempter=no) +AC_ARG_ENABLE( + utempter, + AC_HELP_STRING(--enable-utempter, use utempter if it is installed), + found_utempter=$enable_utempter, + found_utempter=yes +) if test "x$found_utempter" = xyes; then - AC_SEARCH_LIBS( - utempter_add_record, - utempter, - found_utempter=yes, - found_utempter=no - ) + AC_CHECK_HEADER(utempter.h, found_utempter=yes, found_utempter=no) if test "x$found_utempter" = xyes; then - AC_DEFINE(HAVE_UTEMPTER) + AC_SEARCH_LIBS( + utempter_add_record, + utempter, + found_utempter=yes, + found_utempter=no + ) + if test "x$found_utempter" = xyes; then + AC_DEFINE(HAVE_UTEMPTER) + fi fi fi |