X-Git-Url: http://git.madism.org/?p=apps%2Fmadtty.git;a=blobdiff_plain;f=configure.ac;h=9c997d23c404046ee958b6547ca1b173b148c0de;hp=5a139d95e36b4a53542791576bf57369ab62a401;hb=098c96356d6cd6460fb7f5ab74db53d91add9333;hpb=8e5831e371def4903b232c4e91962d2053cc6ce1 diff --git a/configure.ac b/configure.ac index 5a139d9..9c997d2 100644 --- a/configure.ac +++ b/configure.ac @@ -5,7 +5,7 @@ AC_INIT([maddty], 0.0.0) AC_SUBST(PACKAGE_NAME) AC_SUBST(PACKAGE_VERSION) -AC_CONFIG_SRCDIR([rote.c]) +AC_CONFIG_SRCDIR([madtty/madtty.h]) dnl Checks for programs. AC_PROG_CC @@ -17,21 +17,16 @@ 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)]), - [enable_curses=n],[enable_curses=y]) -if test "$enable_curses" = y; then + 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)]), - [enable_pty=n],[enable_pty=y]) - -if test "$enable_pty" = y; then + 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" @@ -49,6 +44,8 @@ AC_C_INLINE AC_TYPE_PID_T AC_TYPE_SIGNAL -AC_CONFIG_FILES([Makefile madtty.pc]) +AC_CONFIG_FILES([am/vars.mk + madtty/madtty.pc + madtty/Makefile +]) AC_OUTPUT -