projects
/
apps
/
madtty.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8ae25c5
)
smaller configure
author
Pierre Habouzit
<madcoder@debian.org>
Fri, 10 Nov 2006 20:55:22 +0000
(21:55 +0100)
committer
Pierre Habouzit
<madcoder@debian.org>
Fri, 10 Nov 2006 20:55:22 +0000
(21:55 +0100)
configure.ac
patch
|
blob
|
history
diff --git
a/configure.ac
b/configure.ac
index
5a139d9
..
29d47f0
100644
(file)
--- a/
configure.ac
+++ b/
configure.ac
@@
-17,21
+17,16
@@
AC_CHECK_HEADERS([sys/types.h unistd.h stdlib.h string.h])
dnl Check for libraries
AC_ARG_ENABLE([ncurses],
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],
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"
AC_CHECK_LIB([util], [forkpty], [],
AC_MSG_ERROR([Need util library (forkpty function) to compile pty support.]))
CFLAGS="$CFLAGS -DUSE_PTY"