summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e365720)
raw | patch | inline | side by side (parent: e365720)
author | Kalle Wallin <kaw@linux.se> | |
Tue, 28 Mar 2006 08:55:24 +0000 (08:55 +0000) | ||
committer | Kalle Wallin <kaw@linux.se> | |
Tue, 28 Mar 2006 08:55:24 +0000 (08:55 +0000) |
configure.ac | patch | blob | history |
diff --git a/configure.ac b/configure.ac
index 9cda7754691fceaf55ff51fd3fff25e277f2257e..0e6957f822ca5d486a5d14a88b46bf872f90474f 100644 (file)
--- a/configure.ac
+++ b/configure.ac
dnl ncurses
-ncurses=ncursesw
+ncurses=auto
AC_ARG_WITH([ncurses],
AC_HELP_STRING([--with-ncurses], [compile/link with ncurses library] ),
[ncurses=ncurses])
AC_HELP_STRING([--with-ncursesw], [compile/link with wide-char ncurses library @<:@default@:>@]),
[ncurses=ncursesw])
+if test "x$ncurses" = "xauto"; then
+ AC_CHECK_LIB([ncursesw],
+ [initscr],
+ [ncurses=ncursesw],
+ [ncurses=ncurses])
+fi
+
+
AC_CHECK_LIB([$ncurses],
[initscr],
- [LIBS="$LIBS -l$ncurses"],
- [AC_MSG_ERROR($ncurses library is required)])
+ [LIBS="$LIBS -l$ncurses"],
+ [AC_MSG_ERROR($ncurses library is required)])
+
if test "x$ncurses" = "xncursesw" ; then
AC_DEFINE(_XOPEN_SOURCE_EXTENDED, 1, [wide-char wget_ch()])