|
Karsten Hopp |
e7b51d |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
e7b51d |
Subject: Patch 7.3.381
|
|
Karsten Hopp |
e7b51d |
Fcc: outbox
|
|
Karsten Hopp |
e7b51d |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
e7b51d |
Mime-Version: 1.0
|
|
Karsten Hopp |
e7b51d |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
e7b51d |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
e7b51d |
------------
|
|
Karsten Hopp |
e7b51d |
|
|
Karsten Hopp |
e7b51d |
Patch 7.3.381
|
|
Karsten Hopp |
e7b51d |
Problem: Configure silently skips interfaces that won't work.
|
|
Karsten Hopp |
e7b51d |
Solution: Add the --enable-fail_if_missing argument. (Shlomi Fish)
|
|
Karsten Hopp |
e7b51d |
Files: src/Makefile, src/configure.in, src/auto/configure
|
|
Karsten Hopp |
e7b51d |
|
|
Karsten Hopp |
e7b51d |
|
|
Karsten Hopp |
e7b51d |
*** ../vim-7.3.380/src/Makefile 2011-12-08 15:17:28.000000000 +0100
|
|
Karsten Hopp |
e7b51d |
--- src/Makefile 2011-12-14 20:49:26.000000000 +0100
|
|
Karsten Hopp |
e7b51d |
***************
|
|
Karsten Hopp |
e7b51d |
*** 389,394 ****
|
|
Karsten Hopp |
e7b51d |
--- 389,399 ----
|
|
Karsten Hopp |
e7b51d |
#CONF_OPT_PLTHOME = --with-plthome=/usr/local/drscheme
|
|
Karsten Hopp |
e7b51d |
#CONF_OPT_PLTHOME = --with-plthome=/home/me/mz
|
|
Karsten Hopp |
e7b51d |
|
|
Karsten Hopp |
e7b51d |
+ # Uncomment the next line to fail if one of the requested language interfaces
|
|
Karsten Hopp |
e7b51d |
+ # cannot be configured. Without this Vim will be build anyway, without
|
|
Karsten Hopp |
e7b51d |
+ # the failing interfaces.
|
|
Karsten Hopp |
e7b51d |
+ #CONF_OPT_FAIL = --enable-fail-if-missing
|
|
Karsten Hopp |
e7b51d |
+
|
|
Karsten Hopp |
e7b51d |
# PERL
|
|
Karsten Hopp |
e7b51d |
# Uncomment one of these when you want to include the Perl interface.
|
|
Karsten Hopp |
e7b51d |
# First one is for static linking, second one for dynamic loading.
|
|
Karsten Hopp |
e7b51d |
***************
|
|
Karsten Hopp |
e7b51d |
*** 1648,1654 ****
|
|
Karsten Hopp |
e7b51d |
CC="$(CC)" CPPFLAGS="$(CPPFLAGS)" CFLAGS="$(CFLAGS)" \
|
|
Karsten Hopp |
e7b51d |
LDFLAGS="$(LDFLAGS)" $(CONF_SHELL) srcdir="$(srcdir)" \
|
|
Karsten Hopp |
e7b51d |
./configure $(CONF_OPT_GUI) $(CONF_OPT_X) $(CONF_OPT_XSMP) \
|
|
Karsten Hopp |
e7b51d |
! $(CONF_OPT_DARWIN) $(CONF_OPT_PERL) $(CONF_OPT_PYTHON) $(CONF_OPT_PYTHON3) \
|
|
Karsten Hopp |
e7b51d |
$(CONF_OPT_TCL) $(CONF_OPT_RUBY) $(CONF_OPT_NLS) \
|
|
Karsten Hopp |
e7b51d |
$(CONF_OPT_CSCOPE) $(CONF_OPT_MULTIBYTE) $(CONF_OPT_INPUT) \
|
|
Karsten Hopp |
e7b51d |
$(CONF_OPT_OUTPUT) $(CONF_OPT_GPM) $(CONF_OPT_WORKSHOP) \
|
|
Karsten Hopp |
e7b51d |
--- 1653,1660 ----
|
|
Karsten Hopp |
e7b51d |
CC="$(CC)" CPPFLAGS="$(CPPFLAGS)" CFLAGS="$(CFLAGS)" \
|
|
Karsten Hopp |
e7b51d |
LDFLAGS="$(LDFLAGS)" $(CONF_SHELL) srcdir="$(srcdir)" \
|
|
Karsten Hopp |
e7b51d |
./configure $(CONF_OPT_GUI) $(CONF_OPT_X) $(CONF_OPT_XSMP) \
|
|
Karsten Hopp |
e7b51d |
! $(CONF_OPT_DARWIN) $(CONF_OPT_FAIL) \
|
|
Karsten Hopp |
e7b51d |
! $(CONF_OPT_PERL) $(CONF_OPT_PYTHON) $(CONF_OPT_PYTHON3) \
|
|
Karsten Hopp |
e7b51d |
$(CONF_OPT_TCL) $(CONF_OPT_RUBY) $(CONF_OPT_NLS) \
|
|
Karsten Hopp |
e7b51d |
$(CONF_OPT_CSCOPE) $(CONF_OPT_MULTIBYTE) $(CONF_OPT_INPUT) \
|
|
Karsten Hopp |
e7b51d |
$(CONF_OPT_OUTPUT) $(CONF_OPT_GPM) $(CONF_OPT_WORKSHOP) \
|
|
Karsten Hopp |
e7b51d |
*** ../vim-7.3.380/src/configure.in 2011-12-14 19:22:29.000000000 +0100
|
|
Karsten Hopp |
e7b51d |
--- src/configure.in 2011-12-14 20:46:36.000000000 +0100
|
|
Karsten Hopp |
e7b51d |
***************
|
|
Karsten Hopp |
e7b51d |
*** 28,33 ****
|
|
Karsten Hopp |
e7b51d |
--- 28,43 ----
|
|
Karsten Hopp |
e7b51d |
AC_HEADER_STDC
|
|
Karsten Hopp |
e7b51d |
AC_HEADER_SYS_WAIT
|
|
Karsten Hopp |
e7b51d |
|
|
Karsten Hopp |
e7b51d |
+ dnl Check for the flag that fails if stuff are missing.
|
|
Karsten Hopp |
e7b51d |
+
|
|
Karsten Hopp |
e7b51d |
+ AC_MSG_CHECKING(--enable-fail-if-missing argument)
|
|
Karsten Hopp |
e7b51d |
+ AC_ARG_ENABLE(fail_if_missing,
|
|
Karsten Hopp |
e7b51d |
+ [ --enable-fail-if-missing Fail if dependencies on additional features
|
|
Karsten Hopp |
e7b51d |
+ specified on the command line are missing.],
|
|
Karsten Hopp |
e7b51d |
+ [fail_if_missing="yes"],
|
|
Karsten Hopp |
e7b51d |
+ [fail_if_missing="no"])
|
|
Karsten Hopp |
e7b51d |
+ AC_MSG_RESULT($fail_if_missing)
|
|
Karsten Hopp |
e7b51d |
+
|
|
Karsten Hopp |
e7b51d |
dnl Set default value for CFLAGS if none is defined or it's empty
|
|
Karsten Hopp |
e7b51d |
if test -z "$CFLAGS"; then
|
|
Karsten Hopp |
e7b51d |
CFLAGS="-O"
|
|
Karsten Hopp |
e7b51d |
***************
|
|
Karsten Hopp |
e7b51d |
*** 491,496 ****
|
|
Karsten Hopp |
e7b51d |
--- 501,509 ----
|
|
Karsten Hopp |
e7b51d |
LUA_CFLAGS="-DDYNAMIC_LUA_DLL=\\\"liblua${vi_cv_version_lua}.so$LUA_SONAME\\\" $LUA_CFLAGS"
|
|
Karsten Hopp |
e7b51d |
fi
|
|
Karsten Hopp |
e7b51d |
fi
|
|
Karsten Hopp |
e7b51d |
+ if test "$fail_if_missing" = "yes" -a -z "$LUA_SRC"; then
|
|
Karsten Hopp |
e7b51d |
+ AC_MSG_ERROR([could not configure lua])
|
|
Karsten Hopp |
e7b51d |
+ fi
|
|
Karsten Hopp |
e7b51d |
AC_SUBST(LUA_SRC)
|
|
Karsten Hopp |
e7b51d |
AC_SUBST(LUA_OBJ)
|
|
Karsten Hopp |
e7b51d |
AC_SUBST(LUA_PRO)
|
|
Karsten Hopp |
e7b51d |
***************
|
|
Karsten Hopp |
e7b51d |
*** 781,786 ****
|
|
Karsten Hopp |
e7b51d |
--- 794,803 ----
|
|
Karsten Hopp |
e7b51d |
PERL_CFLAGS="-DDYNAMIC_PERL_DLL=\\\"$libperl\\\" $PERL_CFLAGS"
|
|
Karsten Hopp |
e7b51d |
fi
|
|
Karsten Hopp |
e7b51d |
fi
|
|
Karsten Hopp |
e7b51d |
+
|
|
Karsten Hopp |
e7b51d |
+ if test "$fail_if_missing" = "yes" -a "$perl_ok" != "yes"; then
|
|
Karsten Hopp |
e7b51d |
+ AC_MSG_ERROR([could not configure perl])
|
|
Karsten Hopp |
e7b51d |
+ fi
|
|
Karsten Hopp |
e7b51d |
fi
|
|
Karsten Hopp |
e7b51d |
AC_SUBST(shrpenv)
|
|
Karsten Hopp |
e7b51d |
AC_SUBST(PERL_SRC)
|
|
Karsten Hopp |
e7b51d |
***************
|
|
Karsten Hopp |
e7b51d |
*** 966,971 ****
|
|
Karsten Hopp |
e7b51d |
--- 983,992 ----
|
|
Karsten Hopp |
e7b51d |
AC_MSG_RESULT(too old)
|
|
Karsten Hopp |
e7b51d |
fi
|
|
Karsten Hopp |
e7b51d |
fi
|
|
Karsten Hopp |
e7b51d |
+
|
|
Karsten Hopp |
e7b51d |
+ if test "$fail_if_missing" = "yes" -a "$python_ok" != "yes"; then
|
|
Karsten Hopp |
e7b51d |
+ AC_MSG_ERROR([could not configure python])
|
|
Karsten Hopp |
e7b51d |
+ fi
|
|
Karsten Hopp |
e7b51d |
fi
|
|
Karsten Hopp |
e7b51d |
|
|
Karsten Hopp |
e7b51d |
AC_SUBST(PYTHON_CONFDIR)
|
|
Karsten Hopp |
e7b51d |
***************
|
|
Karsten Hopp |
e7b51d |
*** 1389,1394 ****
|
|
Karsten Hopp |
e7b51d |
--- 1410,1418 ----
|
|
Karsten Hopp |
e7b51d |
AC_MSG_RESULT(too old; need Tcl version 8.0 or later)
|
|
Karsten Hopp |
e7b51d |
fi
|
|
Karsten Hopp |
e7b51d |
fi
|
|
Karsten Hopp |
e7b51d |
+ if test "$fail_if_missing" = "yes" -a -z "$TCL_SRC"; then
|
|
Karsten Hopp |
e7b51d |
+ AC_MSG_ERROR([could not configure Tcl])
|
|
Karsten Hopp |
e7b51d |
+ fi
|
|
Karsten Hopp |
e7b51d |
fi
|
|
Karsten Hopp |
e7b51d |
AC_SUBST(TCL_SRC)
|
|
Karsten Hopp |
e7b51d |
AC_SUBST(TCL_OBJ)
|
|
Karsten Hopp |
e7b51d |
***************
|
|
Karsten Hopp |
e7b51d |
*** 1469,1474 ****
|
|
Karsten Hopp |
e7b51d |
--- 1493,1502 ----
|
|
Karsten Hopp |
e7b51d |
AC_MSG_RESULT(too old; need Ruby version 1.6.0 or later)
|
|
Karsten Hopp |
e7b51d |
fi
|
|
Karsten Hopp |
e7b51d |
fi
|
|
Karsten Hopp |
e7b51d |
+
|
|
Karsten Hopp |
e7b51d |
+ if test "$fail_if_missing" = "yes" -a -z "$RUBY_OBJ"; then
|
|
Karsten Hopp |
e7b51d |
+ AC_MSG_ERROR([could not configure Ruby])
|
|
Karsten Hopp |
e7b51d |
+ fi
|
|
Karsten Hopp |
e7b51d |
fi
|
|
Karsten Hopp |
e7b51d |
AC_SUBST(RUBY_SRC)
|
|
Karsten Hopp |
e7b51d |
AC_SUBST(RUBY_OBJ)
|
|
Karsten Hopp |
e7b51d |
*** ../vim-7.3.380/src/auto/configure 2011-12-14 19:22:29.000000000 +0100
|
|
Karsten Hopp |
e7b51d |
--- src/auto/configure 2011-12-14 20:49:51.000000000 +0100
|
|
Karsten Hopp |
e7b51d |
***************
|
|
Karsten Hopp |
e7b51d |
*** 741,746 ****
|
|
Karsten Hopp |
e7b51d |
--- 741,747 ----
|
|
Karsten Hopp |
e7b51d |
ac_subst_files=''
|
|
Karsten Hopp |
e7b51d |
ac_user_opts='
|
|
Karsten Hopp |
e7b51d |
enable_option_checking
|
|
Karsten Hopp |
e7b51d |
+ enable_fail_if_missing
|
|
Karsten Hopp |
e7b51d |
enable_darwin
|
|
Karsten Hopp |
e7b51d |
with_mac_arch
|
|
Karsten Hopp |
e7b51d |
with_developer_dir
|
|
Karsten Hopp |
e7b51d |
***************
|
|
Karsten Hopp |
e7b51d |
*** 1418,1423 ****
|
|
Karsten Hopp |
e7b51d |
--- 1419,1426 ----
|
|
Karsten Hopp |
e7b51d |
--disable-option-checking ignore unrecognized --enable/--with options
|
|
Karsten Hopp |
e7b51d |
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
|
Karsten Hopp |
e7b51d |
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
|
Karsten Hopp |
e7b51d |
+ --enable-fail-if-missing Fail if dependencies on additional features
|
|
Karsten Hopp |
e7b51d |
+ specified on the command line are missing.
|
|
Karsten Hopp |
e7b51d |
--disable-darwin Disable Darwin (Mac OS X) support.
|
|
Karsten Hopp |
e7b51d |
--disable-selinux Don't check for SELinux support.
|
|
Karsten Hopp |
e7b51d |
--disable-xsmp Disable XSMP session management
|
|
Karsten Hopp |
e7b51d |
***************
|
|
Karsten Hopp |
e7b51d |
*** 3949,3954 ****
|
|
Karsten Hopp |
e7b51d |
--- 3952,3970 ----
|
|
Karsten Hopp |
e7b51d |
fi
|
|
Karsten Hopp |
e7b51d |
|
|
Karsten Hopp |
e7b51d |
|
|
Karsten Hopp |
e7b51d |
+
|
|
Karsten Hopp |
e7b51d |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-fail-if-missing argument" >&5
|
|
Karsten Hopp |
e7b51d |
+ $as_echo_n "checking --enable-fail-if-missing argument... " >&6; }
|
|
Karsten Hopp |
e7b51d |
+ # Check whether --enable-fail_if_missing was given.
|
|
Karsten Hopp |
e7b51d |
+ if test "${enable_fail_if_missing+set}" = set; then :
|
|
Karsten Hopp |
e7b51d |
+ enableval=$enable_fail_if_missing; fail_if_missing="yes"
|
|
Karsten Hopp |
e7b51d |
+ else
|
|
Karsten Hopp |
e7b51d |
+ fail_if_missing="no"
|
|
Karsten Hopp |
e7b51d |
+ fi
|
|
Karsten Hopp |
e7b51d |
+
|
|
Karsten Hopp |
e7b51d |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fail_if_missing" >&5
|
|
Karsten Hopp |
e7b51d |
+ $as_echo "$fail_if_missing" >&6; }
|
|
Karsten Hopp |
e7b51d |
+
|
|
Karsten Hopp |
e7b51d |
if test -z "$CFLAGS"; then
|
|
Karsten Hopp |
e7b51d |
CFLAGS="-O"
|
|
Karsten Hopp |
e7b51d |
test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall"
|
|
Karsten Hopp |
e7b51d |
***************
|
|
Karsten Hopp |
e7b51d |
*** 4727,4732 ****
|
|
Karsten Hopp |
e7b51d |
--- 4743,4751 ----
|
|
Karsten Hopp |
e7b51d |
LUA_CFLAGS="-DDYNAMIC_LUA_DLL=\\\"liblua${vi_cv_version_lua}.so$LUA_SONAME\\\" $LUA_CFLAGS"
|
|
Karsten Hopp |
e7b51d |
fi
|
|
Karsten Hopp |
e7b51d |
fi
|
|
Karsten Hopp |
e7b51d |
+ if test "$fail_if_missing" = "yes" -a -z "$LUA_SRC"; then
|
|
Karsten Hopp |
e7b51d |
+ as_fn_error "could not configure lua" "$LINENO" 5
|
|
Karsten Hopp |
e7b51d |
+ fi
|
|
Karsten Hopp |
e7b51d |
|
|
Karsten Hopp |
e7b51d |
|
|
Karsten Hopp |
e7b51d |
|
|
Karsten Hopp |
e7b51d |
***************
|
|
Karsten Hopp |
e7b51d |
*** 5140,5145 ****
|
|
Karsten Hopp |
e7b51d |
--- 5159,5168 ----
|
|
Karsten Hopp |
e7b51d |
PERL_CFLAGS="-DDYNAMIC_PERL_DLL=\\\"$libperl\\\" $PERL_CFLAGS"
|
|
Karsten Hopp |
e7b51d |
fi
|
|
Karsten Hopp |
e7b51d |
fi
|
|
Karsten Hopp |
e7b51d |
+
|
|
Karsten Hopp |
e7b51d |
+ if test "$fail_if_missing" = "yes" -a "$perl_ok" != "yes"; then
|
|
Karsten Hopp |
e7b51d |
+ as_fn_error "could not configure perl" "$LINENO" 5
|
|
Karsten Hopp |
e7b51d |
+ fi
|
|
Karsten Hopp |
e7b51d |
fi
|
|
Karsten Hopp |
e7b51d |
|
|
Karsten Hopp |
e7b51d |
|
|
Karsten Hopp |
e7b51d |
***************
|
|
Karsten Hopp |
e7b51d |
*** 5429,5434 ****
|
|
Karsten Hopp |
e7b51d |
--- 5452,5461 ----
|
|
Karsten Hopp |
e7b51d |
$as_echo "too old" >&6; }
|
|
Karsten Hopp |
e7b51d |
fi
|
|
Karsten Hopp |
e7b51d |
fi
|
|
Karsten Hopp |
e7b51d |
+
|
|
Karsten Hopp |
e7b51d |
+ if test "$fail_if_missing" = "yes" -a "$python_ok" != "yes"; then
|
|
Karsten Hopp |
e7b51d |
+ as_fn_error "could not configure python" "$LINENO" 5
|
|
Karsten Hopp |
e7b51d |
+ fi
|
|
Karsten Hopp |
e7b51d |
fi
|
|
Karsten Hopp |
e7b51d |
|
|
Karsten Hopp |
e7b51d |
|
|
Karsten Hopp |
e7b51d |
***************
|
|
Karsten Hopp |
e7b51d |
*** 6216,6221 ****
|
|
Karsten Hopp |
e7b51d |
--- 6243,6251 ----
|
|
Karsten Hopp |
e7b51d |
$as_echo "too old; need Tcl version 8.0 or later" >&6; }
|
|
Karsten Hopp |
e7b51d |
fi
|
|
Karsten Hopp |
e7b51d |
fi
|
|
Karsten Hopp |
e7b51d |
+ if test "$fail_if_missing" = "yes" -a -z "$TCL_SRC"; then
|
|
Karsten Hopp |
e7b51d |
+ as_fn_error "could not configure Tcl" "$LINENO" 5
|
|
Karsten Hopp |
e7b51d |
+ fi
|
|
Karsten Hopp |
e7b51d |
fi
|
|
Karsten Hopp |
e7b51d |
|
|
Karsten Hopp |
e7b51d |
|
|
Karsten Hopp |
e7b51d |
***************
|
|
Karsten Hopp |
e7b51d |
*** 6353,6358 ****
|
|
Karsten Hopp |
e7b51d |
--- 6383,6392 ----
|
|
Karsten Hopp |
e7b51d |
$as_echo "too old; need Ruby version 1.6.0 or later" >&6; }
|
|
Karsten Hopp |
e7b51d |
fi
|
|
Karsten Hopp |
e7b51d |
fi
|
|
Karsten Hopp |
e7b51d |
+
|
|
Karsten Hopp |
e7b51d |
+ if test "$fail_if_missing" = "yes" -a -z "$RUBY_OBJ"; then
|
|
Karsten Hopp |
e7b51d |
+ as_fn_error "could not configure Ruby" "$LINENO" 5
|
|
Karsten Hopp |
e7b51d |
+ fi
|
|
Karsten Hopp |
e7b51d |
fi
|
|
Karsten Hopp |
e7b51d |
|
|
Karsten Hopp |
e7b51d |
|
|
Karsten Hopp |
e7b51d |
*** ../vim-7.3.380/src/version.c 2011-12-14 20:21:29.000000000 +0100
|
|
Karsten Hopp |
e7b51d |
--- src/version.c 2011-12-14 20:50:42.000000000 +0100
|
|
Karsten Hopp |
e7b51d |
***************
|
|
Karsten Hopp |
e7b51d |
*** 716,717 ****
|
|
Karsten Hopp |
e7b51d |
--- 716,719 ----
|
|
Karsten Hopp |
e7b51d |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
e7b51d |
+ /**/
|
|
Karsten Hopp |
e7b51d |
+ 381,
|
|
Karsten Hopp |
e7b51d |
/**/
|
|
Karsten Hopp |
e7b51d |
|
|
Karsten Hopp |
e7b51d |
--
|
|
Karsten Hopp |
e7b51d |
The psychic said, "God bless you." I said, "I didn't sneeze." She
|
|
Karsten Hopp |
e7b51d |
looked deep into my eyes and said, "You will, eventually." And, damn
|
|
Karsten Hopp |
e7b51d |
if she wasn't right. Two days later, I sneezed. --Ellen Degeneres
|
|
Karsten Hopp |
e7b51d |
|
|
Karsten Hopp |
e7b51d |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
e7b51d |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
e7b51d |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
e7b51d |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|