|
Karsten Hopp |
21ea9c |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
21ea9c |
Subject: Patch 7.4.094
|
|
Karsten Hopp |
21ea9c |
Fcc: outbox
|
|
Karsten Hopp |
21ea9c |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
21ea9c |
Mime-Version: 1.0
|
|
Karsten Hopp |
21ea9c |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
21ea9c |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
21ea9c |
------------
|
|
Karsten Hopp |
21ea9c |
|
|
Karsten Hopp |
21ea9c |
Patch 7.4.094
|
|
Karsten Hopp |
21ea9c |
Problem: Configure may not find that -lint is needed for gettext().
|
|
Karsten Hopp |
21ea9c |
Solution: Check for gettext() with empty $LIBS. (Thomas De Schampheleire)
|
|
Karsten Hopp |
21ea9c |
Files: src/configure.in, src/auto/configure
|
|
Karsten Hopp |
21ea9c |
|
|
Karsten Hopp |
21ea9c |
|
|
Karsten Hopp |
21ea9c |
*** ../vim-7.4.093/src/configure.in 2013-11-17 20:17:05.000000000 +0100
|
|
Karsten Hopp |
21ea9c |
--- src/configure.in 2013-11-17 20:23:49.000000000 +0100
|
|
Karsten Hopp |
21ea9c |
***************
|
|
Karsten Hopp |
21ea9c |
*** 3725,3730 ****
|
|
Karsten Hopp |
21ea9c |
--- 3725,3733 ----
|
|
Karsten Hopp |
21ea9c |
fi
|
|
Karsten Hopp |
21ea9c |
|
|
Karsten Hopp |
21ea9c |
dnl Check if gettext() is working and if it needs -lintl
|
|
Karsten Hopp |
21ea9c |
+ dnl We take care to base this on an empty LIBS: on some systems libelf would be
|
|
Karsten Hopp |
21ea9c |
+ dnl in LIBS and implicitly take along libintl. The final LIBS would then not
|
|
Karsten Hopp |
21ea9c |
+ dnl contain libintl, and the link step would fail due to -Wl,--as-needed.
|
|
Karsten Hopp |
21ea9c |
AC_MSG_CHECKING(--disable-nls argument)
|
|
Karsten Hopp |
21ea9c |
AC_ARG_ENABLE(nls,
|
|
Karsten Hopp |
21ea9c |
[ --disable-nls Don't support NLS (gettext()).], ,
|
|
Karsten Hopp |
21ea9c |
***************
|
|
Karsten Hopp |
21ea9c |
*** 3743,3758 ****
|
|
Karsten Hopp |
21ea9c |
if test -f po/Makefile; then
|
|
Karsten Hopp |
21ea9c |
have_gettext="no"
|
|
Karsten Hopp |
21ea9c |
if test -n "$MSGFMT"; then
|
|
Karsten Hopp |
21ea9c |
AC_TRY_LINK(
|
|
Karsten Hopp |
21ea9c |
[#include <libintl.h>],
|
|
Karsten Hopp |
21ea9c |
[gettext("Test");],
|
|
Karsten Hopp |
21ea9c |
! AC_MSG_RESULT([gettext() works]); have_gettext="yes",
|
|
Karsten Hopp |
21ea9c |
! olibs=$LIBS
|
|
Karsten Hopp |
21ea9c |
! LIBS="$LIBS -lintl"
|
|
Karsten Hopp |
21ea9c |
AC_TRY_LINK(
|
|
Karsten Hopp |
21ea9c |
[#include <libintl.h>],
|
|
Karsten Hopp |
21ea9c |
[gettext("Test");],
|
|
Karsten Hopp |
21ea9c |
! AC_MSG_RESULT([gettext() works with -lintl]); have_gettext="yes",
|
|
Karsten Hopp |
21ea9c |
AC_MSG_RESULT([gettext() doesn't work]);
|
|
Karsten Hopp |
21ea9c |
LIBS=$olibs))
|
|
Karsten Hopp |
21ea9c |
else
|
|
Karsten Hopp |
21ea9c |
--- 3746,3763 ----
|
|
Karsten Hopp |
21ea9c |
if test -f po/Makefile; then
|
|
Karsten Hopp |
21ea9c |
have_gettext="no"
|
|
Karsten Hopp |
21ea9c |
if test -n "$MSGFMT"; then
|
|
Karsten Hopp |
21ea9c |
+ olibs=$LIBS
|
|
Karsten Hopp |
21ea9c |
+ LIBS=""
|
|
Karsten Hopp |
21ea9c |
AC_TRY_LINK(
|
|
Karsten Hopp |
21ea9c |
[#include <libintl.h>],
|
|
Karsten Hopp |
21ea9c |
[gettext("Test");],
|
|
Karsten Hopp |
21ea9c |
! AC_MSG_RESULT([gettext() works]); have_gettext="yes"; LIBS=$olibs,
|
|
Karsten Hopp |
21ea9c |
! LIBS="-lintl"
|
|
Karsten Hopp |
21ea9c |
AC_TRY_LINK(
|
|
Karsten Hopp |
21ea9c |
[#include <libintl.h>],
|
|
Karsten Hopp |
21ea9c |
[gettext("Test");],
|
|
Karsten Hopp |
21ea9c |
! AC_MSG_RESULT([gettext() works with -lintl]); have_gettext="yes";
|
|
Karsten Hopp |
21ea9c |
! LIBS="$olibs -lintl",
|
|
Karsten Hopp |
21ea9c |
AC_MSG_RESULT([gettext() doesn't work]);
|
|
Karsten Hopp |
21ea9c |
LIBS=$olibs))
|
|
Karsten Hopp |
21ea9c |
else
|
|
Karsten Hopp |
21ea9c |
*** ../vim-7.4.093/src/auto/configure 2013-11-17 20:17:05.000000000 +0100
|
|
Karsten Hopp |
21ea9c |
--- src/auto/configure 2013-11-17 20:25:13.000000000 +0100
|
|
Karsten Hopp |
21ea9c |
***************
|
|
Karsten Hopp |
21ea9c |
*** 12690,12695 ****
|
|
Karsten Hopp |
21ea9c |
--- 12690,12697 ----
|
|
Karsten Hopp |
21ea9c |
if test -f po/Makefile; then
|
|
Karsten Hopp |
21ea9c |
have_gettext="no"
|
|
Karsten Hopp |
21ea9c |
if test -n "$MSGFMT"; then
|
|
Karsten Hopp |
21ea9c |
+ olibs=$LIBS
|
|
Karsten Hopp |
21ea9c |
+ LIBS=""
|
|
Karsten Hopp |
21ea9c |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
Karsten Hopp |
21ea9c |
/* end confdefs.h. */
|
|
Karsten Hopp |
21ea9c |
#include <libintl.h>
|
|
Karsten Hopp |
21ea9c |
***************
|
|
Karsten Hopp |
21ea9c |
*** 12703,12712 ****
|
|
Karsten Hopp |
21ea9c |
_ACEOF
|
|
Karsten Hopp |
21ea9c |
if ac_fn_c_try_link "$LINENO"; then :
|
|
Karsten Hopp |
21ea9c |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() works" >&5
|
|
Karsten Hopp |
21ea9c |
! $as_echo "gettext() works" >&6; }; have_gettext="yes"
|
|
Karsten Hopp |
21ea9c |
else
|
|
Karsten Hopp |
21ea9c |
! olibs=$LIBS
|
|
Karsten Hopp |
21ea9c |
! LIBS="$LIBS -lintl"
|
|
Karsten Hopp |
21ea9c |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
Karsten Hopp |
21ea9c |
/* end confdefs.h. */
|
|
Karsten Hopp |
21ea9c |
#include <libintl.h>
|
|
Karsten Hopp |
21ea9c |
--- 12705,12713 ----
|
|
Karsten Hopp |
21ea9c |
_ACEOF
|
|
Karsten Hopp |
21ea9c |
if ac_fn_c_try_link "$LINENO"; then :
|
|
Karsten Hopp |
21ea9c |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() works" >&5
|
|
Karsten Hopp |
21ea9c |
! $as_echo "gettext() works" >&6; }; have_gettext="yes"; LIBS=$olibs
|
|
Karsten Hopp |
21ea9c |
else
|
|
Karsten Hopp |
21ea9c |
! LIBS="-lintl"
|
|
Karsten Hopp |
21ea9c |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
Karsten Hopp |
21ea9c |
/* end confdefs.h. */
|
|
Karsten Hopp |
21ea9c |
#include <libintl.h>
|
|
Karsten Hopp |
21ea9c |
***************
|
|
Karsten Hopp |
21ea9c |
*** 12720,12726 ****
|
|
Karsten Hopp |
21ea9c |
_ACEOF
|
|
Karsten Hopp |
21ea9c |
if ac_fn_c_try_link "$LINENO"; then :
|
|
Karsten Hopp |
21ea9c |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() works with -lintl" >&5
|
|
Karsten Hopp |
21ea9c |
! $as_echo "gettext() works with -lintl" >&6; }; have_gettext="yes"
|
|
Karsten Hopp |
21ea9c |
else
|
|
Karsten Hopp |
21ea9c |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() doesn't work" >&5
|
|
Karsten Hopp |
21ea9c |
$as_echo "gettext() doesn't work" >&6; };
|
|
Karsten Hopp |
21ea9c |
--- 12721,12728 ----
|
|
Karsten Hopp |
21ea9c |
_ACEOF
|
|
Karsten Hopp |
21ea9c |
if ac_fn_c_try_link "$LINENO"; then :
|
|
Karsten Hopp |
21ea9c |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() works with -lintl" >&5
|
|
Karsten Hopp |
21ea9c |
! $as_echo "gettext() works with -lintl" >&6; }; have_gettext="yes";
|
|
Karsten Hopp |
21ea9c |
! LIBS="$olibs -lintl"
|
|
Karsten Hopp |
21ea9c |
else
|
|
Karsten Hopp |
21ea9c |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() doesn't work" >&5
|
|
Karsten Hopp |
21ea9c |
$as_echo "gettext() doesn't work" >&6; };
|
|
Karsten Hopp |
21ea9c |
*** ../vim-7.4.093/src/version.c 2013-11-17 20:17:05.000000000 +0100
|
|
Karsten Hopp |
21ea9c |
--- src/version.c 2013-11-17 20:27:43.000000000 +0100
|
|
Karsten Hopp |
21ea9c |
***************
|
|
Karsten Hopp |
21ea9c |
*** 740,741 ****
|
|
Karsten Hopp |
21ea9c |
--- 740,743 ----
|
|
Karsten Hopp |
21ea9c |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
21ea9c |
+ /**/
|
|
Karsten Hopp |
21ea9c |
+ 94,
|
|
Karsten Hopp |
21ea9c |
/**/
|
|
Karsten Hopp |
21ea9c |
|
|
Karsten Hopp |
21ea9c |
--
|
|
Karsten Hopp |
21ea9c |
BLACK KNIGHT: The Black Knight always triumphs. Have at you!
|
|
Karsten Hopp |
21ea9c |
ARTHUR takes his last leg off. The BLACK KNIGHT's body lands upright.
|
|
Karsten Hopp |
21ea9c |
BLACK KNIGHT: All right, we'll call it a draw.
|
|
Karsten Hopp |
21ea9c |
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
|
|
Karsten Hopp |
21ea9c |
|
|
Karsten Hopp |
21ea9c |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
21ea9c |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
21ea9c |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
21ea9c |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|