X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=configure.ac;fp=configure.ac;h=5a139d95e36b4a53542791576bf57369ab62a401;hb=8e5831e371def4903b232c4e91962d2053cc6ce1;hp=a4aabb12f643d6fb293083cb34bb622337c1ed3a;hpb=8ee322e11778f9e274831ba71a91a1a7772f34ab;p=apps%2Fmadtty.git diff --git a/configure.ac b/configure.ac index a4aabb1..5a139d9 100644 --- a/configure.ac +++ b/configure.ac @@ -1,6 +1,6 @@ dnl Process this file with autoconf to produce a configure script. -AC_INIT([rote], 0.3.0) +AC_INIT([maddty], 0.0.0) AC_SUBST(PACKAGE_NAME) AC_SUBST(PACKAGE_VERSION) @@ -16,20 +16,25 @@ 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)]),[enable_curses=n],[enable_curses=y]) - +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 - AC_CHECK_LIB([ncurses], [initscr], [], - AC_MSG_ERROR([Need ncurses to compile ncurses support.])) - CFLAGS="$CFLAGS -DUSE_NCURSES" + 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]) +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 - AC_CHECK_LIB([util], [forkpty], [], - AC_MSG_ERROR([Need util library (forkpty function) to compile pty support.])) - CFLAGS="$CFLAGS -DUSE_PTY" + 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 @@ -44,6 +49,6 @@ AC_C_INLINE AC_TYPE_PID_T AC_TYPE_SIGNAL -AC_CONFIG_FILES([Makefile rote-config]) +AC_CONFIG_FILES([Makefile madtty.pc]) AC_OUTPUT