mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Add --disable-utempter to build without it.
This commit is contained in:
		
							
								
								
									
										3
									
								
								README
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								README
									
									
									
									
									
								
							@@ -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
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										10
									
								
								configure.ac
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								configure.ac
									
									
									
									
									
								
							@@ -167,8 +167,15 @@ 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_CHECK_HEADER(utempter.h, found_utempter=yes, found_utempter=no)
 | 
			
		||||
	if test "x$found_utempter" = xyes; then
 | 
			
		||||
		AC_SEARCH_LIBS(
 | 
			
		||||
			utempter_add_record,
 | 
			
		||||
			utempter,
 | 
			
		||||
@@ -178,6 +185,7 @@ if test "x$found_utempter" = xyes; then
 | 
			
		||||
		if test "x$found_utempter" = xyes; then
 | 
			
		||||
			AC_DEFINE(HAVE_UTEMPTER)
 | 
			
		||||
		fi
 | 
			
		||||
	fi
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
# Check for b64_ntop.
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user