diff src/auto/configure @ 11405:b164223c0119 v8.0.0587

patch 8.0.0587: configure check for return value of tgetent skipped commit https://github.com/vim/vim/commit/696cbd224b4f78b99b8fc34538867303a8a922fc Author: Bram Moolenaar <Bram@vim.org> Date: Fri Apr 28 15:45:46 2017 +0200 patch 8.0.0587: configure check for return value of tgetent skipped Problem: Configure check for return value of tgetent is skipped. Solution: Always perform the check. (Marvin Schmidt, closes https://github.com/vim/vim/issues/1664)
author Christian Brabandt <cb@256bit.org>
date Fri, 28 Apr 2017 16:00:06 +0200
parents 3f399c28e4af
children 621e41f6dcc2
line wrap: on
line diff
--- a/src/auto/configure
+++ b/src/auto/configure
@@ -11506,16 +11506,15 @@ if test "x$vim_cv_terminfo" = "xyes" ; t
 
 fi
 
-if test "x$olibs" != "x$LIBS"; then
-  { $as_echo "$as_me:${as_lineno-$LINENO}: checking what tgetent() returns for an unknown terminal" >&5
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what tgetent() returns for an unknown terminal" >&5
 $as_echo_n "checking what tgetent() returns for an unknown terminal... " >&6; }
 if ${vim_cv_tgent+:} false; then :
   $as_echo_n "(cached) " >&6
 else
 
-      if test "$cross_compiling" = yes; then :
-
-	as_fn_error $? "failed to compile test program." "$LINENO" 5
+    if test "$cross_compiling" = yes; then :
+
+      as_fn_error $? "failed to compile test program." "$LINENO" 5
 
 else
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@@ -11535,11 +11534,11 @@ main()
 _ACEOF
 if ac_fn_c_try_run "$LINENO"; then :
 
-	vim_cv_tgent=zero
-
-else
-
-	vim_cv_tgent=non-zero
+      vim_cv_tgent=zero
+
+else
+
+      vim_cv_tgent=non-zero
 
 fi
 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
@@ -11551,10 +11550,9 @@ fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_tgent" >&5
 $as_echo "$vim_cv_tgent" >&6; }
 
-  if test "x$vim_cv_tgent" = "xzero" ; then
-    $as_echo "#define TGETENT_ZERO_ERR 0" >>confdefs.h
-
-  fi
+if test "x$vim_cv_tgent" = "xzero" ; then
+  $as_echo "#define TGETENT_ZERO_ERR 0" >>confdefs.h
+
 fi
 
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termcap.h contains ospeed" >&5