mirror of
https://github.com/tmux/tmux.git
synced 2025-01-05 23:38:48 +00:00
Check for headers for ncurses and libevent as well as libraries.
This commit is contained in:
parent
6c94774b70
commit
727ce7e4bb
16
configure.ac
16
configure.ac
@ -95,12 +95,10 @@ AC_MSG_RESULT($found_glibc)
|
|||||||
AC_CHECK_HEADERS(
|
AC_CHECK_HEADERS(
|
||||||
[ \
|
[ \
|
||||||
bitstring.h \
|
bitstring.h \
|
||||||
curses.h \
|
|
||||||
dirent.h \
|
dirent.h \
|
||||||
fcntl.h \
|
fcntl.h \
|
||||||
inttypes.h \
|
inttypes.h \
|
||||||
libutil.h \
|
libutil.h \
|
||||||
ncurses.h \
|
|
||||||
ndir.h \
|
ndir.h \
|
||||||
paths.h \
|
paths.h \
|
||||||
pty.h \
|
pty.h \
|
||||||
@ -148,6 +146,11 @@ PKG_CHECK_MODULES(
|
|||||||
)
|
)
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
AC_CHECK_HEADER(
|
||||||
|
event.h,
|
||||||
|
,
|
||||||
|
found_libevent=no
|
||||||
|
)
|
||||||
if test "x$found_libevent" = xno; then
|
if test "x$found_libevent" = xno; then
|
||||||
AC_MSG_ERROR("libevent not found")
|
AC_MSG_ERROR("libevent not found")
|
||||||
fi
|
fi
|
||||||
@ -170,6 +173,15 @@ PKG_CHECK_MODULES(
|
|||||||
)
|
)
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
AC_CHECK_HEADER(
|
||||||
|
ncurses.h,
|
||||||
|
AC_DEFINE(HAVE_NCURSES_H),
|
||||||
|
AC_CHECK_HEADER(
|
||||||
|
curses.h,
|
||||||
|
AC_DEFINE(HAVE_CURSES_H),
|
||||||
|
found_curses=no
|
||||||
|
)
|
||||||
|
)
|
||||||
if test "x$found_curses" = xno; then
|
if test "x$found_curses" = xno; then
|
||||||
AC_MSG_ERROR("curses not found")
|
AC_MSG_ERROR("curses not found")
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user