Added rote_vt_get_pty_fd function
[apps/madtty.git] / configure.ac
1 dnl Process this file with autoconf to produce a configure script.
2
3 AC_INIT([rote], 0.2.8)
4
5 AC_SUBST(PACKAGE_NAME)
6 AC_SUBST(PACKAGE_VERSION)
7
8 AC_CONFIG_SRCDIR([rote.c])
9
10 dnl Checks for programs.
11 AC_PROG_CC
12
13 dnl Checks for header files.
14 AC_HEADER_STDC
15 AC_HEADER_STDBOOL
16 AC_CHECK_HEADERS([sys/types.h unistd.h stdlib.h string.h])
17
18 dnl Check for libraries
19 AC_CHECK_LIB([ncurses], [initscr], [],
20                 AC_MSG_ERROR([Need ncurses to compile librote.]))
21 AC_CHECK_LIB([util], [forkpty], [],
22       AC_MSG_ERROR([Need util library (forkpty function) to compile librote.]))
23
24 dnl Checks for library functions
25 AC_CHECK_FUNCS([memset select setenv])
26 AC_FUNC_MALLOC
27 AC_FUNC_SELECT_ARGTYPES
28
29 dnl Checks for typedefs, structures, and compiler characteristics.
30 AC_C_CONST
31 AC_HEADER_TIME
32 AC_C_INLINE
33 AC_TYPE_PID_T
34 AC_TYPE_SIGNAL
35
36 AC_CONFIG_FILES([Makefile rote-config])
37 AC_OUTPUT
38