X-Git-Url: http://git.madism.org/?p=apps%2Fmadtty.git;a=blobdiff_plain;f=configure.ac;h=eef258c595d9e8f2b04e632c9647670a3915c5f0;hp=9c997d23c404046ee958b6547ca1b173b148c0de;hb=HEAD;hpb=0ea862e426edf62d5ee05178d8709a67ab316145 diff --git a/configure.ac b/configure.ac index 9c997d2..eef258c 100644 --- a/configure.ac +++ b/configure.ac @@ -8,41 +8,17 @@ AC_SUBST(PACKAGE_VERSION) AC_CONFIG_SRCDIR([madtty/madtty.h]) dnl Checks for programs. -AC_PROG_CC +AC_PROG_CC_C99 +AC_GNU_SOURCE dnl Checks for header files. AC_HEADER_STDC AC_HEADER_STDBOOL AC_CHECK_HEADERS([sys/types.h unistd.h stdlib.h string.h]) -dnl Check for libraries -AC_ARG_ENABLE([ncurses], - AS_HELP_STRING([--disable-ncurses], [disables ncurses support (default enabled)])) -if test "${enable_curses}" != "no"; then - AC_CHECK_LIB([ncurses], [initscr], [], - AC_MSG_ERROR([Need ncurses to compile ncurses support.])) - CFLAGS="$CFLAGS -DUSE_NCURSES" -fi - -AC_ARG_ENABLE([pty], - AS_HELP_STRING([--disable-pty], [disables pty support (default enabled)])) -if test "${enable_pty}" != "no"; then - AC_CHECK_LIB([util], [forkpty], [], - AC_MSG_ERROR([Need util library (forkpty function) to compile pty support.])) - CFLAGS="$CFLAGS -DUSE_PTY" -fi - -dnl Checks for library functions -AC_CHECK_FUNCS([memset select setenv]) -AC_FUNC_MALLOC -AC_FUNC_SELECT_ARGTYPES - dnl Checks for typedefs, structures, and compiler characteristics. AC_C_CONST -AC_HEADER_TIME AC_C_INLINE -AC_TYPE_PID_T -AC_TYPE_SIGNAL AC_CONFIG_FILES([am/vars.mk madtty/madtty.pc