]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
New configure option --disable-curses.
authorBruno Haible <bruno@clisp.org>
Sun, 13 Jan 2008 17:04:46 +0000 (17:04 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:15:36 +0000 (12:15 +0200)
gnulib-local/ChangeLog
gnulib-local/Makefile.am
gnulib-local/m4/termcap.m4
gnulib-local/m4/terminfo.m4
gnulib-local/modules/termcap
gnulib-local/modules/terminfo

index 1e613a76f0ac8dc1b87c53840e93e94caa521644..32f32ef070a5f86a840691588f7dfb691a6de56e 100644 (file)
@@ -1,3 +1,14 @@
+2008-01-13  Bruno Haible  <bruno@clisp.org>
+
+       New configure option --disable-curses.
+       * m4/curses.m4: New file.
+       * m4/termcap.m4 (gl_TERMCAP_BODY): Require gl_CURSES and consider its
+       result.
+       * m4/terminfo.m4 (gl_TERMINFO_BODY): Likewise.
+       * modules/termcap (Files): Add m4/curses.m4.
+       * modules/terminfo (Files): Likewise.
+       * Makefile.am (EXTRA_DIST): Add m4/curses.m4.
+
 2007-11-09  Bruno Haible  <bruno@clisp.org>
 
        * m4/libglib.m4 (gl_LIBGLIB): Ensure that the <glib.h> is from a glib
index 88632ef0be8cdfd9e2a5b4204514879f1025a781..228e45c3fa7ce3575b964a682a940a438abbeb4a 100644 (file)
@@ -1,5 +1,5 @@
 ## Makefile for the gnulib-local directory of GNU gettext
-## Copyright (C) 2006-2007 Free Software Foundation, Inc.
+## Copyright (C) 2006-2008 Free Software Foundation, Inc.
 ##
 ## This program is free software: you can redistribute it and/or modify
 ## it under the terms of the GNU General Public License as published by
@@ -250,6 +250,7 @@ m4/alloca.m4 \
 m4/backupfile.m4 \
 m4/ChangeLog.0 \
 m4/ChangeLog.1 \
+m4/curses.m4 \
 m4/exitfail.m4.diff \
 m4/gcj.m4 \
 m4/hard-locale.m4.diff \
index f4bed5708647ff295771ec0c1ad498e4ca61d380..a79cd51e05db2527c3c88725d39c01d2f84f98c4 100644 (file)
@@ -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"
index e4a77708194898478d3776d64486ff57252e9575..461137a4be9408c7151fed322950f7e70cff0a86 100644 (file)
@@ -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.
index dfd4928dd0e8cf1c48314181d76ea891272ba281..fbee86cc11bd206e0c4988a6504a3d62c97f1c7e 100644 (file)
@@ -3,6 +3,7 @@ Information about terminal capabilities.
 
 Files:
 m4/termcap.m4
+m4/curses.m4
 lib/tparm.c
 lib/tputs.c
 
index 32d408795eaf805b1b01e5bc39aa913cedf76ea4..6d5625e643a8034801979397196f5dc05b05709e 100644 (file)
@@ -3,6 +3,7 @@ Information about terminal capabilities.
 
 Files:
 m4/terminfo.m4
+m4/curses.m4
 lib/tparm.c
 lib/tputs.c