Skip to content

Commit 43a5cf0

Browse files
committed
updated for version 7.3.381
Problem: Configure silently skips interfaces that won't work. Solution: Add the --enable-fail_if_missing argument. (Shlomi Fish)
1 parent 33a3025 commit 43a5cf0

File tree

4 files changed

+71
-1
lines changed

4 files changed

+71
-1
lines changed

src/Makefile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,11 @@ CClink = $(CC)
389389
#CONF_OPT_PLTHOME = --with-plthome=/usr/local/drscheme
390390
#CONF_OPT_PLTHOME = --with-plthome=/home/me/mz
391391

392+
# Uncomment the next line to fail if one of the requested language interfaces
393+
# cannot be configured. Without this Vim will be build anyway, without
394+
# the failing interfaces.
395+
#CONF_OPT_FAIL = --enable-fail-if-missing
396+
392397
# PERL
393398
# Uncomment one of these when you want to include the Perl interface.
394399
# First one is for static linking, second one for dynamic loading.
@@ -1648,7 +1653,8 @@ config auto/config.mk: auto/configure config.mk.in config.h.in
16481653
CC="$(CC)" CPPFLAGS="$(CPPFLAGS)" CFLAGS="$(CFLAGS)" \
16491654
LDFLAGS="$(LDFLAGS)" $(CONF_SHELL) srcdir="$(srcdir)" \
16501655
./configure $(CONF_OPT_GUI) $(CONF_OPT_X) $(CONF_OPT_XSMP) \
1651-
$(CONF_OPT_DARWIN) $(CONF_OPT_PERL) $(CONF_OPT_PYTHON) $(CONF_OPT_PYTHON3) \
1656+
$(CONF_OPT_DARWIN) $(CONF_OPT_FAIL) \
1657+
$(CONF_OPT_PERL) $(CONF_OPT_PYTHON) $(CONF_OPT_PYTHON3) \
16521658
$(CONF_OPT_TCL) $(CONF_OPT_RUBY) $(CONF_OPT_NLS) \
16531659
$(CONF_OPT_CSCOPE) $(CONF_OPT_MULTIBYTE) $(CONF_OPT_INPUT) \
16541660
$(CONF_OPT_OUTPUT) $(CONF_OPT_GPM) $(CONF_OPT_WORKSHOP) \

src/auto/configure

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -741,6 +741,7 @@ SHELL'
741741
ac_subst_files=''
742742
ac_user_opts='
743743
enable_option_checking
744+
enable_fail_if_missing
744745
enable_darwin
745746
with_mac_arch
746747
with_developer_dir
@@ -1418,6 +1419,8 @@ Optional Features:
14181419
--disable-option-checking ignore unrecognized --enable/--with options
14191420
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
14201421
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1422+
--enable-fail-if-missing Fail if dependencies on additional features
1423+
specified on the command line are missing.
14211424
--disable-darwin Disable Darwin (Mac OS X) support.
14221425
--disable-selinux Don't check for SELinux support.
14231426
--disable-xsmp Disable XSMP session management
@@ -3949,6 +3952,19 @@ $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
39493952
fi
39503953

39513954

3955+
3956+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-fail-if-missing argument" >&5
3957+
$as_echo_n "checking --enable-fail-if-missing argument... " >&6; }
3958+
# Check whether --enable-fail_if_missing was given.
3959+
if test "${enable_fail_if_missing+set}" = set; then :
3960+
enableval=$enable_fail_if_missing; fail_if_missing="yes"
3961+
else
3962+
fail_if_missing="no"
3963+
fi
3964+
3965+
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $fail_if_missing" >&5
3966+
$as_echo "$fail_if_missing" >&6; }
3967+
39523968
if test -z "$CFLAGS"; then
39533969
CFLAGS="-O"
39543970
test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall"
@@ -4727,6 +4743,9 @@ $as_echo "no" >&6; }
47274743
LUA_CFLAGS="-DDYNAMIC_LUA_DLL=\\\"liblua${vi_cv_version_lua}.so$LUA_SONAME\\\" $LUA_CFLAGS"
47284744
fi
47294745
fi
4746+
if test "$fail_if_missing" = "yes" -a -z "$LUA_SRC"; then
4747+
as_fn_error "could not configure lua" "$LINENO" 5
4748+
fi
47304749

47314750

47324751

@@ -5140,6 +5159,10 @@ $as_echo ">>> too old; need Perl version 5.003_01 or later <<<" >&6; }
51405159
PERL_CFLAGS="-DDYNAMIC_PERL_DLL=\\\"$libperl\\\" $PERL_CFLAGS"
51415160
fi
51425161
fi
5162+
5163+
if test "$fail_if_missing" = "yes" -a "$perl_ok" != "yes"; then
5164+
as_fn_error "could not configure perl" "$LINENO" 5
5165+
fi
51435166
fi
51445167

51455168

@@ -5429,6 +5452,10 @@ rm -f core conftest.err conftest.$ac_objext \
54295452
$as_echo "too old" >&6; }
54305453
fi
54315454
fi
5455+
5456+
if test "$fail_if_missing" = "yes" -a "$python_ok" != "yes"; then
5457+
as_fn_error "could not configure python" "$LINENO" 5
5458+
fi
54325459
fi
54335460

54345461

@@ -6216,6 +6243,9 @@ $as_echo "<not found>" >&6; }
62166243
$as_echo "too old; need Tcl version 8.0 or later" >&6; }
62176244
fi
62186245
fi
6246+
if test "$fail_if_missing" = "yes" -a -z "$TCL_SRC"; then
6247+
as_fn_error "could not configure Tcl" "$LINENO" 5
6248+
fi
62196249
fi
62206250

62216251

@@ -6353,6 +6383,10 @@ $as_echo "not found; disabling Ruby" >&6; }
63536383
$as_echo "too old; need Ruby version 1.6.0 or later" >&6; }
63546384
fi
63556385
fi
6386+
6387+
if test "$fail_if_missing" = "yes" -a -z "$RUBY_OBJ"; then
6388+
as_fn_error "could not configure Ruby" "$LINENO" 5
6389+
fi
63566390
fi
63576391

63586392

src/configure.in

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,16 @@ dnl in autoconf needs it, where it uses STDC_HEADERS.
2828
AC_HEADER_STDC
2929
AC_HEADER_SYS_WAIT
3030

31+
dnl Check for the flag that fails if stuff are missing.
32+
33+
AC_MSG_CHECKING(--enable-fail-if-missing argument)
34+
AC_ARG_ENABLE(fail_if_missing,
35+
[ --enable-fail-if-missing Fail if dependencies on additional features
36+
specified on the command line are missing.],
37+
[fail_if_missing="yes"],
38+
[fail_if_missing="no"])
39+
AC_MSG_RESULT($fail_if_missing)
40+
3141
dnl Set default value for CFLAGS if none is defined or it's empty
3242
if test -z "$CFLAGS"; then
3343
CFLAGS="-O"
@@ -491,6 +501,9 @@ if test "$enable_luainterp" = "yes" -o "$enable_luainterp" = "dynamic"; then
491501
LUA_CFLAGS="-DDYNAMIC_LUA_DLL=\\\"liblua${vi_cv_version_lua}.so$LUA_SONAME\\\" $LUA_CFLAGS"
492502
fi
493503
fi
504+
if test "$fail_if_missing" = "yes" -a -z "$LUA_SRC"; then
505+
AC_MSG_ERROR([could not configure lua])
506+
fi
494507
AC_SUBST(LUA_SRC)
495508
AC_SUBST(LUA_OBJ)
496509
AC_SUBST(LUA_PRO)
@@ -781,6 +794,10 @@ if test "$enable_perlinterp" = "yes" -o "$enable_perlinterp" = "dynamic"; then
781794
PERL_CFLAGS="-DDYNAMIC_PERL_DLL=\\\"$libperl\\\" $PERL_CFLAGS"
782795
fi
783796
fi
797+
798+
if test "$fail_if_missing" = "yes" -a "$perl_ok" != "yes"; then
799+
AC_MSG_ERROR([could not configure perl])
800+
fi
784801
fi
785802
AC_SUBST(shrpenv)
786803
AC_SUBST(PERL_SRC)
@@ -966,6 +983,10 @@ eof
966983
AC_MSG_RESULT(too old)
967984
fi
968985
fi
986+
987+
if test "$fail_if_missing" = "yes" -a "$python_ok" != "yes"; then
988+
AC_MSG_ERROR([could not configure python])
989+
fi
969990
fi
970991

971992
AC_SUBST(PYTHON_CONFDIR)
@@ -1389,6 +1410,9 @@ if test "$enable_tclinterp" = "yes"; then
13891410
AC_MSG_RESULT(too old; need Tcl version 8.0 or later)
13901411
fi
13911412
fi
1413+
if test "$fail_if_missing" = "yes" -a -z "$TCL_SRC"; then
1414+
AC_MSG_ERROR([could not configure Tcl])
1415+
fi
13921416
fi
13931417
AC_SUBST(TCL_SRC)
13941418
AC_SUBST(TCL_OBJ)
@@ -1469,6 +1493,10 @@ if test "$enable_rubyinterp" = "yes" -o "$enable_rubyinterp" = "dynamic"; then
14691493
AC_MSG_RESULT(too old; need Ruby version 1.6.0 or later)
14701494
fi
14711495
fi
1496+
1497+
if test "$fail_if_missing" = "yes" -a -z "$RUBY_OBJ"; then
1498+
AC_MSG_ERROR([could not configure Ruby])
1499+
fi
14721500
fi
14731501
AC_SUBST(RUBY_SRC)
14741502
AC_SUBST(RUBY_OBJ)

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -714,6 +714,8 @@ static char *(features[]) =
714714

715715
static int included_patches[] =
716716
{ /* Add new patch number below this line */
717+
/**/
718+
381,
717719
/**/
718720
380,
719721
/**/

0 commit comments

Comments
 (0)