summaryrefslogtreecommitdiffstats
path: root/gnulib-local/m4
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2008-01-13 17:04:46 +0000
committerBruno Haible <bruno@clisp.org>2009-06-23 12:15:36 +0200
commit0ebb0a109f18b297dd0032ba671ed6e58a9032b6 (patch)
treeb9368e2e96773860918403cb0ac1245db77b122c /gnulib-local/m4
parent40311de248f323c46b6bfa1718cdb54cad052345 (diff)
downloadexternal_gettext-0ebb0a109f18b297dd0032ba671ed6e58a9032b6.zip
external_gettext-0ebb0a109f18b297dd0032ba671ed6e58a9032b6.tar.gz
external_gettext-0ebb0a109f18b297dd0032ba671ed6e58a9032b6.tar.bz2
New configure option --disable-curses.
Diffstat (limited to 'gnulib-local/m4')
-rw-r--r--gnulib-local/m4/termcap.m434
-rw-r--r--gnulib-local/m4/terminfo.m454
2 files changed, 66 insertions, 22 deletions
diff --git a/gnulib-local/m4/termcap.m4 b/gnulib-local/m4/termcap.m4
index f4bed57..a79cd51 100644
--- a/gnulib-local/m4/termcap.m4
+++ b/gnulib-local/m4/termcap.m4
@@ -1,5 +1,5 @@
-# termcap.m4 serial 6 (gettext-0.17)
-dnl Copyright (C) 2000-2002, 2006 Free Software Foundation, Inc.
+# termcap.m4 serial 7 (gettext-0.18)
+dnl Copyright (C) 2000-2002, 2006, 2008 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
@@ -34,17 +34,35 @@ AC_DEFUN([gl_TERMCAP_BODY],
dnl tparm().
dnl Some systems, like mingw, have nothing at all.
+ dnl Some people want to avoid these libraries, in special situations such
+ dnl as when cross-compiling.
+ AC_REQUIRE([gl_CURSES])
+
dnl Prerequisites of AC_LIB_LINKFLAGS_BODY.
AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
AC_REQUIRE([AC_LIB_RPATH])
- dnl Search for libncurses and define LIBNCURSES, LTLIBNCURSES and INCNCURSES
- dnl accordingly.
- AC_LIB_LINKFLAGS_BODY([ncurses])
+ if test "$gl_curses_allowed" != no; then
+
+ dnl Search for libncurses and define LIBNCURSES, LTLIBNCURSES and INCNCURSES
+ dnl accordingly.
+ AC_LIB_LINKFLAGS_BODY([ncurses])
+
+ dnl Search for libtermcap and define LIBTERMCAP, LTLIBTERMCAP and INCTERMCAP
+ dnl accordingly.
+ AC_LIB_LINKFLAGS_BODY([termcap])
+
+ else
+
+ LIBNCURSES=
+ LTLIBNCURSES=
+ INCNCURSES=
- dnl Search for libtermcap and define LIBTERMCAP, LTLIBTERMCAP and INCTERMCAP
- dnl accordingly.
- AC_LIB_LINKFLAGS_BODY([termcap])
+ LIBTERMCAP=
+ LTLIBTERMCAP=
+ INCTERMCAP=
+
+ fi
AC_CACHE_CHECK([where termcap library functions come from], [gl_cv_termcap], [
gl_cv_termcap="not found, consider installing GNU ncurses"
diff --git a/gnulib-local/m4/terminfo.m4 b/gnulib-local/m4/terminfo.m4
index e4a7770..461137a 100644
--- a/gnulib-local/m4/terminfo.m4
+++ b/gnulib-local/m4/terminfo.m4
@@ -1,5 +1,5 @@
-# terminfo.m4 serial 2 (gettext-0.17)
-dnl Copyright (C) 2000-2002, 2006 Free Software Foundation, Inc.
+# terminfo.m4 serial 3 (gettext-0.18)
+dnl Copyright (C) 2000-2002, 2006, 2008 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
@@ -37,25 +37,51 @@ AC_DEFUN([gl_TERMINFO_BODY],
dnl tparm().
dnl Some systems, like mingw, have nothing at all.
+ dnl Some people want to avoid these libraries, in special situations such
+ dnl as when cross-compiling.
+ AC_REQUIRE([gl_CURSES])
+
dnl Prerequisites of AC_LIB_LINKFLAGS_BODY.
AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
AC_REQUIRE([AC_LIB_RPATH])
- dnl Search for libncurses and define LIBNCURSES, LTLIBNCURSES and INCNCURSES
- dnl accordingly.
- AC_LIB_LINKFLAGS_BODY([ncurses])
+ if test "$gl_curses_allowed" != no; then
+
+ dnl Search for libncurses and define LIBNCURSES, LTLIBNCURSES and INCNCURSES
+ dnl accordingly.
+ AC_LIB_LINKFLAGS_BODY([ncurses])
+
+ dnl Search for libtermcap and define LIBTERMCAP, LTLIBTERMCAP and INCTERMCAP
+ dnl accordingly.
+ AC_LIB_LINKFLAGS_BODY([termcap])
+
+ dnl Search for libxcurses and define LIBXCURSES, LTLIBXCURSES and INCXCURSES
+ dnl accordingly.
+ AC_LIB_LINKFLAGS_BODY([xcurses])
+
+ dnl Search for libcurses and define LIBCURSES, LTLIBCURSES and INCCURSES
+ dnl accordingly.
+ AC_LIB_LINKFLAGS_BODY([curses])
- dnl Search for libtermcap and define LIBTERMCAP, LTLIBTERMCAP and INCTERMCAP
- dnl accordingly.
- AC_LIB_LINKFLAGS_BODY([termcap])
+ else
+
+ LIBNCURSES=
+ LTLIBNCURSES=
+ INCNCURSES=
+
+ LIBTERMCAP=
+ LTLIBTERMCAP=
+ INCTERMCAP=
- dnl Search for libxcurses and define LIBXCURSES, LTLIBXCURSES and INCXCURSES
- dnl accordingly.
- AC_LIB_LINKFLAGS_BODY([xcurses])
+ LIBXCURSES=
+ LTLIBXCURSES=
+ INCXCURSES=
- dnl Search for libcurses and define LIBCURSES, LTLIBCURSES and INCCURSES
- dnl accordingly.
- AC_LIB_LINKFLAGS_BODY([curses])
+ LIBCURSES=
+ LTLIBCURSES=
+ INCCURSES=
+
+ fi
dnl When searching for the terminfo functions, prefer libtermcap over
dnl libxcurses and libcurses, because it is smaller.