mirror of
https://github.com/tmate-io/tmate.git
synced 2024-12-28 17:49:02 +01:00
Merge branch 'master' of ssh://git.code.sf.net/p/tmux/tmux-code
This commit is contained in:
commit
2a9a75a569
@ -54,10 +54,12 @@ vasprintf(char **ret, const char *fmt, va_list ap)
|
|||||||
free(*ret);
|
free(*ret);
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
va_end(ap2);
|
||||||
|
|
||||||
return (n);
|
return (n);
|
||||||
|
|
||||||
error:
|
error:
|
||||||
|
va_end(ap2);
|
||||||
*ret = NULL;
|
*ret = NULL;
|
||||||
return (-1);
|
return (-1);
|
||||||
}
|
}
|
||||||
|
68
configure.ac
68
configure.ac
@ -23,28 +23,6 @@ AC_PROG_INSTALL
|
|||||||
# Default tmux.conf goes in /etc not ${prefix}/etc.
|
# Default tmux.conf goes in /etc not ${prefix}/etc.
|
||||||
test "$sysconfdir" = '${prefix}/etc' && sysconfdir=/etc
|
test "$sysconfdir" = '${prefix}/etc' && sysconfdir=/etc
|
||||||
|
|
||||||
# Check for various headers. Alternatives included from compat.h.
|
|
||||||
AC_CHECK_HEADERS(
|
|
||||||
[ \
|
|
||||||
bitstring.h \
|
|
||||||
curses.h \
|
|
||||||
dirent.h \
|
|
||||||
fcntl.h \
|
|
||||||
inttypes.h \
|
|
||||||
libutil.h \
|
|
||||||
ncurses.h \
|
|
||||||
ndir.h \
|
|
||||||
paths.h \
|
|
||||||
pty.h \
|
|
||||||
stdint.h \
|
|
||||||
sys/dir.h \
|
|
||||||
sys/ndir.h \
|
|
||||||
sys/tree.h \
|
|
||||||
term.h \
|
|
||||||
util.h \
|
|
||||||
]
|
|
||||||
)
|
|
||||||
|
|
||||||
# Is this a debug build?
|
# Is this a debug build?
|
||||||
found_debug=yes
|
found_debug=yes
|
||||||
AC_ARG_ENABLE(
|
AC_ARG_ENABLE(
|
||||||
@ -109,6 +87,40 @@ AC_EGREP_CPP(
|
|||||||
AM_CONDITIONAL(IS_GLIBC, test "x$found_glibc" = xyes)
|
AM_CONDITIONAL(IS_GLIBC, test "x$found_glibc" = xyes)
|
||||||
AC_MSG_RESULT($found_glibc)
|
AC_MSG_RESULT($found_glibc)
|
||||||
|
|
||||||
|
# Check for various headers. Alternatives included from compat.h.
|
||||||
|
AC_CHECK_HEADERS(
|
||||||
|
[ \
|
||||||
|
bitstring.h \
|
||||||
|
curses.h \
|
||||||
|
dirent.h \
|
||||||
|
fcntl.h \
|
||||||
|
inttypes.h \
|
||||||
|
libutil.h \
|
||||||
|
ncurses.h \
|
||||||
|
ndir.h \
|
||||||
|
paths.h \
|
||||||
|
pty.h \
|
||||||
|
stdint.h \
|
||||||
|
sys/dir.h \
|
||||||
|
sys/ndir.h \
|
||||||
|
sys/tree.h \
|
||||||
|
term.h \
|
||||||
|
util.h \
|
||||||
|
]
|
||||||
|
)
|
||||||
|
|
||||||
|
# Check for some functions that are replaced or omitted.
|
||||||
|
AC_CHECK_FUNCS(
|
||||||
|
[ \
|
||||||
|
bzero \
|
||||||
|
dirfd \
|
||||||
|
flock \
|
||||||
|
setproctitle \
|
||||||
|
sysconf \
|
||||||
|
cfmakeraw \
|
||||||
|
]
|
||||||
|
)
|
||||||
|
|
||||||
# Look for clock_gettime. Must come before event_init.
|
# Look for clock_gettime. Must come before event_init.
|
||||||
AC_SEARCH_LIBS(clock_gettime, rt)
|
AC_SEARCH_LIBS(clock_gettime, rt)
|
||||||
|
|
||||||
@ -381,18 +393,6 @@ if test "x$found_getopt" != xno; then
|
|||||||
fi
|
fi
|
||||||
AM_CONDITIONAL(NO_GETOPT, [test "x$found_getopt" = xno])
|
AM_CONDITIONAL(NO_GETOPT, [test "x$found_getopt" = xno])
|
||||||
|
|
||||||
# Check for some functions that are replaced or omitted.
|
|
||||||
AC_CHECK_FUNCS(
|
|
||||||
[ \
|
|
||||||
bzero \
|
|
||||||
dirfd \
|
|
||||||
flock \
|
|
||||||
setproctitle \
|
|
||||||
sysconf \
|
|
||||||
cfmakeraw \
|
|
||||||
]
|
|
||||||
)
|
|
||||||
|
|
||||||
# Check for BSD-style integer types.
|
# Check for BSD-style integer types.
|
||||||
AC_MSG_CHECKING(for BSD-style unsigned types)
|
AC_MSG_CHECKING(for BSD-style unsigned types)
|
||||||
AC_COMPILE_IFELSE([AC_LANG_SOURCE(
|
AC_COMPILE_IFELSE([AC_LANG_SOURCE(
|
||||||
|
Loading…
Reference in New Issue
Block a user