1 To: vim_dev@googlegroups.com
4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
11 Problem: Configure silently skips interfaces that won't work.
12 Solution: Add the --enable-fail_if_missing argument. (Shlomi Fish)
13 Files: src/Makefile, src/configure.in, src/auto/configure
16 *** ../vim-7.3.380/src/Makefile 2011-12-08 15:17:28.000000000 +0100
17 --- src/Makefile 2011-12-14 20:49:26.000000000 +0100
21 #CONF_OPT_PLTHOME = --with-plthome=/usr/local/drscheme
22 #CONF_OPT_PLTHOME = --with-plthome=/home/me/mz
24 + # Uncomment the next line to fail if one of the requested language interfaces
25 + # cannot be configured. Without this Vim will be build anyway, without
26 + # the failing interfaces.
27 + #CONF_OPT_FAIL = --enable-fail-if-missing
30 # Uncomment one of these when you want to include the Perl interface.
31 # First one is for static linking, second one for dynamic loading.
34 CC="$(CC)" CPPFLAGS="$(CPPFLAGS)" CFLAGS="$(CFLAGS)" \
35 LDFLAGS="$(LDFLAGS)" $(CONF_SHELL) srcdir="$(srcdir)" \
36 ./configure $(CONF_OPT_GUI) $(CONF_OPT_X) $(CONF_OPT_XSMP) \
37 ! $(CONF_OPT_DARWIN) $(CONF_OPT_PERL) $(CONF_OPT_PYTHON) $(CONF_OPT_PYTHON3) \
38 $(CONF_OPT_TCL) $(CONF_OPT_RUBY) $(CONF_OPT_NLS) \
39 $(CONF_OPT_CSCOPE) $(CONF_OPT_MULTIBYTE) $(CONF_OPT_INPUT) \
40 $(CONF_OPT_OUTPUT) $(CONF_OPT_GPM) $(CONF_OPT_WORKSHOP) \
42 CC="$(CC)" CPPFLAGS="$(CPPFLAGS)" CFLAGS="$(CFLAGS)" \
43 LDFLAGS="$(LDFLAGS)" $(CONF_SHELL) srcdir="$(srcdir)" \
44 ./configure $(CONF_OPT_GUI) $(CONF_OPT_X) $(CONF_OPT_XSMP) \
45 ! $(CONF_OPT_DARWIN) $(CONF_OPT_FAIL) \
46 ! $(CONF_OPT_PERL) $(CONF_OPT_PYTHON) $(CONF_OPT_PYTHON3) \
47 $(CONF_OPT_TCL) $(CONF_OPT_RUBY) $(CONF_OPT_NLS) \
48 $(CONF_OPT_CSCOPE) $(CONF_OPT_MULTIBYTE) $(CONF_OPT_INPUT) \
49 $(CONF_OPT_OUTPUT) $(CONF_OPT_GPM) $(CONF_OPT_WORKSHOP) \
50 *** ../vim-7.3.380/src/configure.in 2011-12-14 19:22:29.000000000 +0100
51 --- src/configure.in 2011-12-14 20:46:36.000000000 +0100
58 + dnl Check for the flag that fails if stuff are missing.
60 + AC_MSG_CHECKING(--enable-fail-if-missing argument)
61 + AC_ARG_ENABLE(fail_if_missing,
62 + [ --enable-fail-if-missing Fail if dependencies on additional features
63 + specified on the command line are missing.],
64 + [fail_if_missing="yes"],
65 + [fail_if_missing="no"])
66 + AC_MSG_RESULT($fail_if_missing)
68 dnl Set default value for CFLAGS if none is defined or it's empty
69 if test -z "$CFLAGS"; then
74 LUA_CFLAGS="-DDYNAMIC_LUA_DLL=\\\"liblua${vi_cv_version_lua}.so$LUA_SONAME\\\" $LUA_CFLAGS"
77 + if test "$fail_if_missing" = "yes" -a -z "$LUA_SRC"; then
78 + AC_MSG_ERROR([could not configure lua])
86 PERL_CFLAGS="-DDYNAMIC_PERL_DLL=\\\"$libperl\\\" $PERL_CFLAGS"
90 + if test "$fail_if_missing" = "yes" -a "$perl_ok" != "yes"; then
91 + AC_MSG_ERROR([could not configure perl])
99 AC_MSG_RESULT(too old)
103 + if test "$fail_if_missing" = "yes" -a "$python_ok" != "yes"; then
104 + AC_MSG_ERROR([could not configure python])
108 AC_SUBST(PYTHON_CONFDIR)
112 AC_MSG_RESULT(too old; need Tcl version 8.0 or later)
115 + if test "$fail_if_missing" = "yes" -a -z "$TCL_SRC"; then
116 + AC_MSG_ERROR([could not configure Tcl])
124 AC_MSG_RESULT(too old; need Ruby version 1.6.0 or later)
128 + if test "$fail_if_missing" = "yes" -a -z "$RUBY_OBJ"; then
129 + AC_MSG_ERROR([could not configure Ruby])
134 *** ../vim-7.3.380/src/auto/configure 2011-12-14 19:22:29.000000000 +0100
135 --- src/auto/configure 2011-12-14 20:49:51.000000000 +0100
141 enable_option_checking
142 + enable_fail_if_missing
149 --disable-option-checking ignore unrecognized --enable/--with options
150 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
151 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
152 + --enable-fail-if-missing Fail if dependencies on additional features
153 + specified on the command line are missing.
154 --disable-darwin Disable Darwin (Mac OS X) support.
155 --disable-selinux Don't check for SELinux support.
156 --disable-xsmp Disable XSMP session management
164 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-fail-if-missing argument" >&5
165 + $as_echo_n "checking --enable-fail-if-missing argument... " >&6; }
166 + # Check whether --enable-fail_if_missing was given.
167 + if test "${enable_fail_if_missing+set}" = set; then :
168 + enableval=$enable_fail_if_missing; fail_if_missing="yes"
170 + fail_if_missing="no"
173 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fail_if_missing" >&5
174 + $as_echo "$fail_if_missing" >&6; }
176 if test -z "$CFLAGS"; then
178 test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall"
182 LUA_CFLAGS="-DDYNAMIC_LUA_DLL=\\\"liblua${vi_cv_version_lua}.so$LUA_SONAME\\\" $LUA_CFLAGS"
185 + if test "$fail_if_missing" = "yes" -a -z "$LUA_SRC"; then
186 + as_fn_error "could not configure lua" "$LINENO" 5
194 PERL_CFLAGS="-DDYNAMIC_PERL_DLL=\\\"$libperl\\\" $PERL_CFLAGS"
198 + if test "$fail_if_missing" = "yes" -a "$perl_ok" != "yes"; then
199 + as_fn_error "could not configure perl" "$LINENO" 5
207 $as_echo "too old" >&6; }
211 + if test "$fail_if_missing" = "yes" -a "$python_ok" != "yes"; then
212 + as_fn_error "could not configure python" "$LINENO" 5
220 $as_echo "too old; need Tcl version 8.0 or later" >&6; }
223 + if test "$fail_if_missing" = "yes" -a -z "$TCL_SRC"; then
224 + as_fn_error "could not configure Tcl" "$LINENO" 5
232 $as_echo "too old; need Ruby version 1.6.0 or later" >&6; }
236 + if test "$fail_if_missing" = "yes" -a -z "$RUBY_OBJ"; then
237 + as_fn_error "could not configure Ruby" "$LINENO" 5
242 *** ../vim-7.3.380/src/version.c 2011-12-14 20:21:29.000000000 +0100
243 --- src/version.c 2011-12-14 20:50:42.000000000 +0100
247 { /* Add new patch number below this line */
253 The psychic said, "God bless you." I said, "I didn't sneeze." She
254 looked deep into my eyes and said, "You will, eventually." And, damn
255 if she wasn't right. Two days later, I sneezed. --Ellen Degeneres
257 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
258 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
259 \\\ an exciting new programming language -- http://www.Zimbu.org ///
260 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///